ode-explorer 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -223,7 +223,7 @@ to {
|
|
|
223
223
|
> * {
|
|
224
224
|
pointer-events: auto;
|
|
225
225
|
}
|
|
226
|
-
`,D$1=16,Fe$1=({reverseOrder:tt,position:et="top-center",toastOptions:rt,gutter:st,children:nt,toasterId:ot,containerStyle:at,containerClassName:lt})=>{let{toasts:ut,handlers:ct}=w$1(rt,ot);return reactExports.createElement("div",{"data-rht-toaster":ot||"",style:{position:"fixed",zIndex:9999,top:D$1,left:D$1,right:D$1,bottom:D$1,pointerEvents:"none",...at},className:lt,onMouseEnter:ct.startPause,onMouseLeave:ct.endPause},ut.map(dt=>{let ht=dt.position||et,ft=ct.calculateOffset(dt,{reverseOrder:tt,gutter:st,defaultPosition:et}),xt=Me$1(ht,ft);return reactExports.createElement(we$1,{id:dt.id,key:dt.id,onHeightUpdate:ct.updateHeight,className:dt.visible?Ce$1:"",style:xt},dt.type==="custom"?h$1(dt.message,dt):nt?nt(dt):reactExports.createElement(N$2,{toast:dt,position:ht}))}))},zt=n$1;const DEFAULT_POSITION="top-right";function useToast(){return{success:(tt,et)=>zt.custom(jsxRuntimeExports.jsx(Alert,{type:"success",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),error:(tt,et)=>zt.custom(jsxRuntimeExports.jsx(Alert,{type:"danger",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),info:(tt,et)=>zt.custom(jsxRuntimeExports.jsx(Alert,{type:"info",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),warning:(tt,et)=>zt.custom(jsxRuntimeExports.jsx(Alert,{type:"warning",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),loading:zt.loading,dismiss:tt=>zt.dismiss(tt),remove:tt=>zt.remove(tt)}}const useHttpErrorToast=({active:tt=!0,...et})=>{const rt=reactExports.useRef(),st=useToast(),{t:nt}=useTranslation();return reactExports.useEffect(()=>{if(tt){const ot=odeServices.notify().events().subscribe(LAYER_NAME.TRANSPORT,at=>{var lt;if(!(at!=null&&at.data))return;const{response:ut}=at.data,ct=((lt=at.data.payload)==null?void 0:lt.error)||([400,401,403,404,408,413,500,504].includes(ut==null?void 0:ut.status)?`e${at.data.response.status}`:void 0)||(ut==null?void 0:ut.statusText);typeof ct=="string"&&(rt.current=nt(ct),st.error(React$4.createElement("div",{children:[rt.current]}),et))});return()=>ot.revoke()}},[nt,st,tt]),rt.current};function useIsAdml(){const[tt,et]=reactExports.useState(!1);reactExports.useEffect(()=>{rt()},[]);const rt=reactExports.useCallback(async()=>{const st=await odeServices.session().isAdml();et(st)},[]);return{isAdml:tt}}const useLibraryUrl=tt=>{var et;const{user:rt,appCode:st}=useEdificeClient(),nt=e$3[st],ot=rt==null?void 0:rt.apps.find(dt=>dt.isExternal&&dt.address.includes("library"));if(!ot)return null;const at=(et=ot.address)==null?void 0:et.split("?");if(!at||at.length<2)return null;let lt=at[0];lt.endsWith("/")||(lt=`${lt}/`);const ut=at==null?void 0:at[1],ct=`application%5B0%5D=${nt}&page=1&sort_field=views&sort_order=desc`;return`${lt}search/?${ut}&${ct}`},useWorkspaceFile=()=>({createOrUpdate:async({alt:tt,uri:et,blob:rt,legend:st,parentId:nt,application:ot,visibility:at})=>{const lt=/\/workspace\/document\/([0-9a-fA-F-]+)/,ut=(et??"").match(lt);if(ut&&ut.length===2){const ct=ut[1],dt=await odeServices.workspace().searchDocuments({filter:"all",id:ct,limit:1}),ht=dt.length?dt[0].name:void 0;await odeServices.workspace().updateFile(ct,rt,{alt:tt,legend:st,name:ht});const ft=(await odeServices.workspace().searchDocuments({filter:"all",id:ct,limit:1}))[0];return{file:ft,src:`/workspace/${ft.public?"pub/":""}document/${ct}`}}else{const ct=await odeServices.workspace().saveFile(rt,{application:ot,parentId:nt,visibility:at});return`/workspace/${ct.public?"pub/":""}document/${ct._id}`}},create:async(tt,et)=>await odeServices.workspace().saveFile(tt,et),remove:async tt=>!tt||Array.isArray(tt)&&tt.length===0?Promise.resolve():await odeServices.workspace().deleteFile(Array.isArray(tt)?tt:[tt])}),useMediaLibrary=()=>{const tt=reactExports.useRef(null),[et,rt]=reactExports.useState(),{remove:st}=useWorkspaceFile();return{ref:tt,libraryMedia:et,setLibraryMedia:rt,onCancel:async nt=>{var ot,at;(ot=tt.current)!=null&&ot.type&&nt&&nt.length>0&&await st(nt),(at=tt.current)==null||at.hide()},onSuccess:nt=>{var ot,at,lt,ut;let ct;switch((ot=tt.current)==null?void 0:ot.type){case"video":{if(typeof nt=="object")ct=nt[0];else{const dt=new DOMParser().parseFromString(nt,"text/html").body.firstChild,ht=dt==null?void 0:dt.getAttribute("src");(at=tt.current)==null||at.hide(),ct=ht}break}case"embedder":{const dt=new DOMParser().parseFromString(nt,"text/html").body.firstChild,ht=dt==null?void 0:dt.getAttribute("src");(lt=tt.current)==null||lt.hide(),ct=ht;break}case"audio":{nt.length===void 0?ct=nt:ct=nt[0];break}case"hyperlink":{ct=nt;break}case"image":{ct=`/workspace/document/${nt[0]._id}`;break}default:ct=nt[0]}(ut=tt.current)==null||ut.hide(),rt(ct)},onTabChange:async(nt,ot)=>{var at;(at=tt.current)!=null&&at.type&&ot&&ot.length>0&&await st(ot)}}};function useScrollToTop(){const tt=document.querySelector("html");return()=>{tt&&tt.scrollIntoView()}}function useToggle(tt=!1){const[et,rt]=reactExports.useState(tt),st=reactExports.useCallback(()=>{rt(nt=>!nt)},[]);return[et,st]}const EdificeThemeContext=reactExports.createContext(null);function useEdificeTheme(){const tt=reactExports.useContext(EdificeThemeContext);if(!tt)throw new Error("Cannot be used outside of EdificeThemeProvider");return tt}function useUser(){const{user:tt,userDescription:et}=useEdificeClient(),{theme:rt}=useEdificeTheme();function st(){let nt=et==null?void 0:et.picture;return(!nt||nt==="no-avatar.jpg"||nt==="no-avatar.svg")&&(nt=`${rt==null?void 0:rt.basePath}/img/illustrations/no-avatar.svg`),nt}return{user:tt,avatar:st(),userDescription:et}}const useUpload=(tt,et="media-library")=>{const[rt,st]=reactExports.useState({}),{browser:nt,device:ot}=useBrowserInfo(navigator.userAgent),{create:at}=useWorkspaceFile(),{t:lt}=useTranslation(),ut=reactExports.useCallback(Et=>rt[s$2(Et)],[rt]),ct=(Et,bt)=>{st(wt=>{const St=s$2(Et);return{...wt,[St]:bt}})},dt=Et=>{st(bt=>{const wt=s$2(Et),{[wt]:St,...Rt}=bt;return Rt})},ht=()=>{const Et=new Date;return`${Et.getFullYear()}-${String(Et.getMonth()+1).padStart(2,"0")}-${String(Et.getDate()).padStart(2,"0")} ${String(Et.getHours()).padStart(2,"0")}h${String(Et.getMinutes()).padStart(2,"0")} `+lt("bbm.video.recorder.defaultName")};async function ft(Et,bt){ct(Et,"loading");try{let wt;return et==="media-library"&&Et.type.includes("video")?wt=await yt(Et,{filename:Et.name,...bt}):wt=await at(Et,{application:et,visibility:tt}),ct(Et,"success"),wt}catch(wt){return console.error(wt),ct(Et,"error"),null}}async function xt(Et,bt){ct(Et,"loading");try{let wt;if(Et.type.includes("video"))wt=await yt(Et,bt);else throw new Error(ERROR_CODE.NOT_SUPPORTED);return ct(Et,"success"),wt}catch(wt){return console.error(wt),ct(Et,"error"),null}}const yt=async(Et,bt)=>{const wt={data:{device:ot.type,browser:{name:nt.name,version:nt.version},url:window.location.hostname,file:Et,filename:ht()??"filename",weight:Et.size},appCode:et,captation:!(Et instanceof File),duration:(bt==null?void 0:bt.duration)??0},St=await odeServices.video().upload(wt);if(St.state==="succeed")return{_id:St.videoworkspaceid,file:St.videoid,name:wt.data.filename,eType:"file",eParent:"",children:[],created:new Date,_shared:[],_isShared:!1,owner:{userId:"",displayName:""}};throw St.state==="error"?new Error(St.code||"Error while uploading video"):new Error("Video encoding is still running")};function vt(Et,bt,wt){return s$2(bt,s$2(Et)),ft(bt,wt)}return{getUploadStatus:ut,setUploadStatus:ct,clearUploadStatus:dt,uploadFile:ft,uploadAlternateFile:vt,uploadBlob:xt}},useUploadFiles=({handleOnChange:tt,visibility:et,application:rt})=>{const[st,nt]=reactExports.useState([]),[ot,at]=reactExports.useState(void 0),{files:lt,deleteFile:ut,replaceFileAt:ct,inputRef:dt}=useDropzoneContext(),{remove:ht,createOrUpdate:ft}=useWorkspaceFile(),{getUploadStatus:xt,setUploadStatus:yt,clearUploadStatus:vt,uploadFile:Et,uploadAlternateFile:bt}=useUpload(et,rt),wt=reactExports.useCallback(()=>{dt.current&&(dt.current.value="")},[dt]),St=reactExports.useCallback(Pt=>{Pt.forEach(async(Ot,Ut)=>{if(Ot==null)return;let Nt,Ht;if(Ot.type.startsWith("image"))try{Ht=await p$3.resizeImageFile(Ot),Nt=await bt(Ot,Ht),ct(Ut,Ht)}catch(Lt){console.error(Lt)}!Nt&&!Ht&&(Nt=await Et(Ot)),Nt?nt(Lt=>[...Lt,Nt]):wt()})},[bt,Et,ct]);reactExports.useEffect(()=>{let Pt=0;const Ot=lt.map(Ut=>{if(Pt>=5)return null;const Nt=xt(Ut);return Nt==="loading"&&Pt++,Nt?null:Ut});Ot.forEach(Ut=>Ut&&yt(Ut,"idle")),St(Ot)},[lt,st,xt,yt,St]),reactExports.useEffect(()=>{const Pt=Rt(lt,st);tt(Pt)},[st]);const Rt=(Pt,Ot)=>{const Ut=Pt.reduce((Nt,Ht,Lt)=>(Nt[Ht.name]=Lt,Nt),{});return Ot.sort((Nt,Ht)=>Ut[Nt.name]-Ut[Ht.name])};async function Ct(Pt){const Ot=st.find(Ut=>Ut.name===Pt.name);Ot&&(await ht(Ot),vt(Pt),nt(Ut=>Ut.filter(Nt=>Nt.name!==(Ot==null?void 0:Ot.name)))),ut(Pt),wt()}async function jt({blob:Pt,legend:Ot,altText:Ut}){if(ot)try{const Nt=await ft({blob:Pt,legend:Ot,alt:Ut,uri:It(ot)});Nt&&typeof Nt=="object"&&nt(Ht=>Ht.map(Lt=>Lt._id===Nt.file._id?{...Nt.file,title:Ot,alt:Ut}:Lt))}finally{at(void 0)}}const It=(Pt,Ot)=>{const Ut=`/workspace/${Pt!=null&&Pt.public?"pub/":""}document/${Pt==null?void 0:Pt._id}`;return Pt?Ot?m$3(Ut):Ut:""};return{files:lt,getUploadStatus:xt,clearUploadStatus:vt,uploadedFiles:st,editingImage:ot,setEditingImage:at,getUrl:It,updateImage:jt,uploadFile:Et,removeFile:Ct}};function useWorkspaceSearch(tt,et,rt,st){const nt=useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|listDocuments"),ot=useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|listFolders");function at(dt,ht){switch(ht.type){case"update":{const ft=findNodeById(dt,ht.folderId);return ft&&(ft.children=ht.subfolders.map(xt=>({id:xt._id||"",name:xt.name})),ft.files=ht.files),{...dt}}default:throw Error("[useWorkspaceSearch] Unknown action type: "+ht.type)}}const[lt,ut]=reactExports.useReducer(at,{id:tt,name:et,section:!0}),ct=reactExports.useCallback(async dt=>{if(nt&&ot){const ht=dt===tt?"":dt,ft=await odeServices.workspace().listDocuments(rt,ht),xt=[],yt=[];ft.filter(vt=>{if(!st||vt.eType==="folder")return!0;const Et=DocumentHelper.getRole(vt);return typeof st=="string"?st===Et:Array.isArray(st)?st.findIndex(bt=>bt===Et)>=0:!1}).forEach(vt=>{vt.eType==="folder"?xt.push(vt):yt.push(vt)}),ut({folderId:dt,subfolders:xt,files:yt,type:"update"})}},[nt,ot,tt,rt,st]);return{root:lt,loadContent:ct}}function useXitiTrackPageLoad(){const[tt,et]=reactExports.useState("pending"),{currentApp:rt}=useEdificeClient();reactExports.useEffect(()=>{st()},[]);const st=async()=>{if(!rt){et("[Xiti] Error, currentApp is not defined.");return}try{await odeServices.analytics().trackPageLoad(window.location.pathname,rt),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),et(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(nt){console.error("[Xiti] Error Tracking Page Load",nt),et(`[Xiti] Error Tracking Page Load: ${nt}`)}};return{xitiStatus:tt}}function useZendeskGuide(){const{currentLanguage:tt}=useEdificeClient(),{userDescription:et}=useUser(),{isAdml:rt}=useIsAdml(),{theme:st}=useEdificeTheme(),nt=window.innerWidth<=768,ot=useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"),[at,lt]=reactExports.useState(""),[ut,ct]=reactExports.useState(void 0),dt=()=>{const ht=at.split("/");let ft="",xt="";if(ut!=null&&ut.labels&&Object.keys(ut==null?void 0:ut.labels).length>0&&ht.length>1){for(let yt=1;yt<ht.length;yt++)ht[yt].length>0&&ht[yt].match(/\d/)==null&&(ft.length===0?ft=ht[yt]:ft=ft+"/"+ht[yt]);ut!=null&&ut.labels&&Object.prototype.hasOwnProperty.call(ut==null?void 0:ut.labels,ft)?xt=ut==null?void 0:ut.labels[ft]:ut!=null&&ut.default&&String(ut.default).length>0&&(xt=ut==null?void 0:ut.default)}else ut!=null&&ut.default&&String(ut==null?void 0:ut.default).length>0&&(xt=ut==null?void 0:ut.default);if(ht.includes("collaborativewall")&&ht.includes("id")&&nt&&window.zE("webWidget","hide"),xt.includes("${adml}")&&(rt?xt=xt.replace("${adml}","adml"):xt=xt.replace("/${adml}","")),xt.includes("${profile}")){const yt=et==null?void 0:et.profiles;xt=xt.replace("${profile}",yt[0].toLowerCase())}xt.includes("${theme")&&(st!=null&&st.is1d?xt=xt.replace("${theme}","1D"):xt=xt.replace("${theme}","2D")),window.zE("webWidget","helpCenter:setSuggestions",{labels:[xt]})};return reactExports.useEffect(()=>{window.location.pathname!==at&<(window.location.pathname),!(ut===void 0||Object.keys(ut).length===0)&&dt()},[window.location.pathname,ut]),reactExports.useEffect(()=>{document.getElementById("ze-snippet")||ot===void 0||(async()=>{const ht=await odeServices.http().get("/zendeskGuide/config");if(ht&&ht.key&&ht.key!==""){const ft=document.createElement("script");ft.id="ze-snippet",ft.src=`https://static.zdassets.com/ekr/snippet.js?key=${ht.key}`,document.body.appendChild(ft).onload=()=>{tt==="es"?window.zE(function(){window.zE.setLocale("es-419")}):window.zE(function(){window.zE.setLocale("fr")}),Object.keys(ht.module).length>0&&ct(ht.module),window.zE("webWidget","show"),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:ht.color||"#ffc400"},zIndex:3,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!ot},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"},originalArticleButton:ht.articleRedirectButton??!0}}}),window.addEventListener("scroll",()=>{window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})}),window.zE("webWidget:on","open",function(){ot&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})}),window.zE("webWidget:on","userEvent",function(xt){const yt=xt.category,vt=xt.action,Et=xt.properties;vt==="Contact Form Shown"&&yt==="Zendesk Web Widget"&&Et&&Et.name==="contact-form"&&ot&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))})}}})()},[ot]),null}function isObject$3(tt){return tt!==null&&typeof tt=="object"&&"constructor"in tt&&tt.constructor===Object}function extend$2(tt,et){tt===void 0&&(tt={}),et===void 0&&(et={}),Object.keys(et).forEach(rt=>{typeof tt[rt]>"u"?tt[rt]=et[rt]:isObject$3(et[rt])&&isObject$3(tt[rt])&&Object.keys(et[rt]).length>0&&extend$2(tt[rt],et[rt])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const tt=typeof document<"u"?document:{};return extend$2(tt,ssrDocument),tt}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function tt(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(tt){return typeof setTimeout>"u"?(tt(),null):setTimeout(tt,0)},cancelAnimationFrame(tt){typeof setTimeout>"u"||clearTimeout(tt)}};function getWindow(){const tt=typeof window<"u"?window:{};return extend$2(tt,ssrWindow),tt}function deleteProps(tt){const et=tt;Object.keys(et).forEach(rt=>{try{et[rt]=null}catch{}try{delete et[rt]}catch{}})}function nextTick(tt,et){return et===void 0&&(et=0),setTimeout(tt,et)}function now(){return Date.now()}function getComputedStyle$1(tt){const et=getWindow();let rt;return et.getComputedStyle&&(rt=et.getComputedStyle(tt,null)),!rt&&tt.currentStyle&&(rt=tt.currentStyle),rt||(rt=tt.style),rt}function getTranslate(tt,et){et===void 0&&(et="x");const rt=getWindow();let st,nt,ot;const at=getComputedStyle$1(tt);return rt.WebKitCSSMatrix?(nt=at.transform||at.webkitTransform,nt.split(",").length>6&&(nt=nt.split(", ").map(lt=>lt.replace(",",".")).join(", ")),ot=new rt.WebKitCSSMatrix(nt==="none"?"":nt)):(ot=at.MozTransform||at.OTransform||at.MsTransform||at.msTransform||at.transform||at.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),st=ot.toString().split(",")),et==="x"&&(rt.WebKitCSSMatrix?nt=ot.m41:st.length===16?nt=parseFloat(st[12]):nt=parseFloat(st[4])),et==="y"&&(rt.WebKitCSSMatrix?nt=ot.m42:st.length===16?nt=parseFloat(st[13]):nt=parseFloat(st[5])),nt||0}function isObject$2(tt){return typeof tt=="object"&&tt!==null&&tt.constructor&&Object.prototype.toString.call(tt).slice(8,-1)==="Object"}function isNode(tt){return typeof window<"u"&&typeof window.HTMLElement<"u"?tt instanceof HTMLElement:tt&&(tt.nodeType===1||tt.nodeType===11)}function extend$1(){const tt=Object(arguments.length<=0?void 0:arguments[0]),et=["__proto__","constructor","prototype"];for(let rt=1;rt<arguments.length;rt+=1){const st=rt<0||arguments.length<=rt?void 0:arguments[rt];if(st!=null&&!isNode(st)){const nt=Object.keys(Object(st)).filter(ot=>et.indexOf(ot)<0);for(let ot=0,at=nt.length;ot<at;ot+=1){const lt=nt[ot],ut=Object.getOwnPropertyDescriptor(st,lt);ut!==void 0&&ut.enumerable&&(isObject$2(tt[lt])&&isObject$2(st[lt])?st[lt].__swiper__?tt[lt]=st[lt]:extend$1(tt[lt],st[lt]):!isObject$2(tt[lt])&&isObject$2(st[lt])?(tt[lt]={},st[lt].__swiper__?tt[lt]=st[lt]:extend$1(tt[lt],st[lt])):tt[lt]=st[lt])}}}return tt}function setCSSProperty(tt,et,rt){tt.style.setProperty(et,rt)}function animateCSSModeScroll(tt){let{swiper:et,targetPosition:rt,side:st}=tt;const nt=getWindow(),ot=-et.translate;let at=null,lt;const ut=et.params.speed;et.wrapperEl.style.scrollSnapType="none",nt.cancelAnimationFrame(et.cssModeFrameID);const ct=rt>ot?"next":"prev",dt=(ft,xt)=>ct==="next"&&ft>=xt||ct==="prev"&&ft<=xt,ht=()=>{lt=new Date().getTime(),at===null&&(at=lt);const ft=Math.max(Math.min((lt-at)/ut,1),0),xt=.5-Math.cos(ft*Math.PI)/2;let yt=ot+xt*(rt-ot);if(dt(yt,rt)&&(yt=rt),et.wrapperEl.scrollTo({[st]:yt}),dt(yt,rt)){et.wrapperEl.style.overflow="hidden",et.wrapperEl.style.scrollSnapType="",setTimeout(()=>{et.wrapperEl.style.overflow="",et.wrapperEl.scrollTo({[st]:yt})}),nt.cancelAnimationFrame(et.cssModeFrameID);return}et.cssModeFrameID=nt.requestAnimationFrame(ht)};ht()}function elementChildren(tt,et){return et===void 0&&(et=""),[...tt.children].filter(rt=>rt.matches(et))}function createElement(tt,et){et===void 0&&(et=[]);const rt=document.createElement(tt);return rt.classList.add(...Array.isArray(et)?et:[et]),rt}function elementPrevAll(tt,et){const rt=[];for(;tt.previousElementSibling;){const st=tt.previousElementSibling;et?st.matches(et)&&rt.push(st):rt.push(st),tt=st}return rt}function elementNextAll(tt,et){const rt=[];for(;tt.nextElementSibling;){const st=tt.nextElementSibling;et?st.matches(et)&&rt.push(st):rt.push(st),tt=st}return rt}function elementStyle(tt,et){return getWindow().getComputedStyle(tt,null).getPropertyValue(et)}function elementIndex(tt){let et=tt,rt;if(et){for(rt=0;(et=et.previousSibling)!==null;)et.nodeType===1&&(rt+=1);return rt}}function elementParents(tt,et){const rt=[];let st=tt.parentElement;for(;st;)et?st.matches(et)&&rt.push(st):rt.push(st),st=st.parentElement;return rt}function elementOuterSize(tt,et,rt){const st=getWindow();return tt[et==="width"?"offsetWidth":"offsetHeight"]+parseFloat(st.getComputedStyle(tt,null).getPropertyValue(et==="width"?"margin-right":"margin-top"))+parseFloat(st.getComputedStyle(tt,null).getPropertyValue(et==="width"?"margin-left":"margin-bottom"))}function createElementIfNotDefined(tt,et,rt,st){return tt.params.createElements&&Object.keys(st).forEach(nt=>{if(!rt[nt]&&rt.auto===!0){let ot=elementChildren(tt.el,`.${st[nt]}`)[0];ot||(ot=createElement("div",st[nt]),ot.className=st[nt],tt.el.append(ot)),rt[nt]=ot,et[nt]=ot}}),rt}function classesToSelector(tt){return tt===void 0&&(tt=""),`.${tt.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(tt){let{swiper:et,extendParams:rt,on:st,emit:nt}=tt;const ot="swiper-pagination";rt({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:wt=>wt,formatFractionTotal:wt=>wt,bulletClass:`${ot}-bullet`,bulletActiveClass:`${ot}-bullet-active`,modifierClass:`${ot}-`,currentClass:`${ot}-current`,totalClass:`${ot}-total`,hiddenClass:`${ot}-hidden`,progressbarFillClass:`${ot}-progressbar-fill`,progressbarOppositeClass:`${ot}-progressbar-opposite`,clickableClass:`${ot}-clickable`,lockClass:`${ot}-lock`,horizontalClass:`${ot}-horizontal`,verticalClass:`${ot}-vertical`,paginationDisabledClass:`${ot}-disabled`}}),et.pagination={el:null,bullets:[]};let at,lt=0;const ut=wt=>(Array.isArray(wt)?wt:[wt]).filter(St=>!!St);function ct(){return!et.params.pagination.el||!et.pagination.el||Array.isArray(et.pagination.el)&&et.pagination.el.length===0}function dt(wt,St){const{bulletActiveClass:Rt}=et.params.pagination;wt&&(wt=wt[`${St==="prev"?"previous":"next"}ElementSibling`],wt&&(wt.classList.add(`${Rt}-${St}`),wt=wt[`${St==="prev"?"previous":"next"}ElementSibling`],wt&&wt.classList.add(`${Rt}-${St}-${St}`)))}function ht(wt){const St=wt.target.closest(classesToSelector(et.params.pagination.bulletClass));if(!St)return;wt.preventDefault();const Rt=elementIndex(St)*et.params.slidesPerGroup;if(et.params.loop){if(et.realIndex===Rt)return;const Ct=et.realIndex,jt=et.getSlideIndexByData(Rt),It=et.getSlideIndexByData(et.realIndex),Pt=Ot=>{const Ut=et.activeIndex;et.loopFix({direction:Ot,activeSlideIndex:jt,slideTo:!1});const Nt=et.activeIndex;Ut===Nt&&et.slideToLoop(Ct,0,!1,!0)};if(jt>et.slides.length-et.loopedSlides)Pt(jt>It?"next":"prev");else if(et.params.centeredSlides){const Ot=et.params.slidesPerView==="auto"?et.slidesPerViewDynamic():Math.ceil(parseFloat(et.params.slidesPerView,10));jt<Math.floor(Ot/2)&&Pt("prev")}et.slideToLoop(Rt)}else et.slideTo(Rt)}function ft(){const wt=et.rtl,St=et.params.pagination;if(ct())return;let Rt=et.pagination.el;Rt=ut(Rt);let Ct,jt;const It=et.virtual&&et.params.virtual.enabled?et.virtual.slides.length:et.slides.length,Pt=et.params.loop?Math.ceil(It/et.params.slidesPerGroup):et.snapGrid.length;if(et.params.loop?(jt=et.previousRealIndex||0,Ct=et.params.slidesPerGroup>1?Math.floor(et.realIndex/et.params.slidesPerGroup):et.realIndex):typeof et.snapIndex<"u"?(Ct=et.snapIndex,jt=et.previousSnapIndex):(jt=et.previousIndex||0,Ct=et.activeIndex||0),St.type==="bullets"&&et.pagination.bullets&&et.pagination.bullets.length>0){const Ot=et.pagination.bullets;let Ut,Nt,Ht;if(St.dynamicBullets&&(at=elementOuterSize(Ot[0],et.isHorizontal()?"width":"height"),Rt.forEach(Lt=>{Lt.style[et.isHorizontal()?"width":"height"]=`${at*(St.dynamicMainBullets+4)}px`}),St.dynamicMainBullets>1&&jt!==void 0&&(lt+=Ct-(jt||0),lt>St.dynamicMainBullets-1?lt=St.dynamicMainBullets-1:lt<0&&(lt=0)),Ut=Math.max(Ct-lt,0),Nt=Ut+(Math.min(Ot.length,St.dynamicMainBullets)-1),Ht=(Nt+Ut)/2),Ot.forEach(Lt=>{const kt=[...["","-next","-next-next","-prev","-prev-prev","-main"].map($t=>`${St.bulletActiveClass}${$t}`)].map($t=>typeof $t=="string"&&$t.includes(" ")?$t.split(" "):$t).flat();Lt.classList.remove(...kt)}),Rt.length>1)Ot.forEach(Lt=>{const kt=elementIndex(Lt);kt===Ct?Lt.classList.add(...St.bulletActiveClass.split(" ")):et.isElement&&Lt.setAttribute("part","bullet"),St.dynamicBullets&&(kt>=Ut&&kt<=Nt&&Lt.classList.add(...`${St.bulletActiveClass}-main`.split(" ")),kt===Ut&&dt(Lt,"prev"),kt===Nt&&dt(Lt,"next"))});else{const Lt=Ot[Ct];if(Lt&&Lt.classList.add(...St.bulletActiveClass.split(" ")),et.isElement&&Ot.forEach((kt,$t)=>{kt.setAttribute("part",$t===Ct?"bullet-active":"bullet")}),St.dynamicBullets){const kt=Ot[Ut],$t=Ot[Nt];for(let Ft=Ut;Ft<=Nt;Ft+=1)Ot[Ft]&&Ot[Ft].classList.add(...`${St.bulletActiveClass}-main`.split(" "));dt(kt,"prev"),dt($t,"next")}}if(St.dynamicBullets){const Lt=Math.min(Ot.length,St.dynamicMainBullets+4),kt=(at*Lt-at)/2-Ht*at,$t=wt?"right":"left";Ot.forEach(Ft=>{Ft.style[et.isHorizontal()?$t:"top"]=`${kt}px`})}}Rt.forEach((Ot,Ut)=>{if(St.type==="fraction"&&(Ot.querySelectorAll(classesToSelector(St.currentClass)).forEach(Nt=>{Nt.textContent=St.formatFractionCurrent(Ct+1)}),Ot.querySelectorAll(classesToSelector(St.totalClass)).forEach(Nt=>{Nt.textContent=St.formatFractionTotal(Pt)})),St.type==="progressbar"){let Nt;St.progressbarOpposite?Nt=et.isHorizontal()?"vertical":"horizontal":Nt=et.isHorizontal()?"horizontal":"vertical";const Ht=(Ct+1)/Pt;let Lt=1,kt=1;Nt==="horizontal"?Lt=Ht:kt=Ht,Ot.querySelectorAll(classesToSelector(St.progressbarFillClass)).forEach($t=>{$t.style.transform=`translate3d(0,0,0) scaleX(${Lt}) scaleY(${kt})`,$t.style.transitionDuration=`${et.params.speed}ms`})}St.type==="custom"&&St.renderCustom?(Ot.innerHTML=St.renderCustom(et,Ct+1,Pt),Ut===0&&nt("paginationRender",Ot)):(Ut===0&&nt("paginationRender",Ot),nt("paginationUpdate",Ot)),et.params.watchOverflow&&et.enabled&&Ot.classList[et.isLocked?"add":"remove"](St.lockClass)})}function xt(){const wt=et.params.pagination;if(ct())return;const St=et.virtual&&et.params.virtual.enabled?et.virtual.slides.length:et.slides.length;let Rt=et.pagination.el;Rt=ut(Rt);let Ct="";if(wt.type==="bullets"){let jt=et.params.loop?Math.ceil(St/et.params.slidesPerGroup):et.snapGrid.length;et.params.freeMode&&et.params.freeMode.enabled&&jt>St&&(jt=St);for(let It=0;It<jt;It+=1)wt.renderBullet?Ct+=wt.renderBullet.call(et,It,wt.bulletClass):Ct+=`<${wt.bulletElement} ${et.isElement?'part="bullet"':""} class="${wt.bulletClass}"></${wt.bulletElement}>`}wt.type==="fraction"&&(wt.renderFraction?Ct=wt.renderFraction.call(et,wt.currentClass,wt.totalClass):Ct=`<span class="${wt.currentClass}"></span> / <span class="${wt.totalClass}"></span>`),wt.type==="progressbar"&&(wt.renderProgressbar?Ct=wt.renderProgressbar.call(et,wt.progressbarFillClass):Ct=`<span class="${wt.progressbarFillClass}"></span>`),et.pagination.bullets=[],Rt.forEach(jt=>{wt.type!=="custom"&&(jt.innerHTML=Ct||""),wt.type==="bullets"&&et.pagination.bullets.push(...jt.querySelectorAll(classesToSelector(wt.bulletClass)))}),wt.type!=="custom"&&nt("paginationRender",Rt[0])}function yt(){et.params.pagination=createElementIfNotDefined(et,et.originalParams.pagination,et.params.pagination,{el:"swiper-pagination"});const wt=et.params.pagination;if(!wt.el)return;let St;typeof wt.el=="string"&&et.isElement&&(St=et.el.querySelector(wt.el)),!St&&typeof wt.el=="string"&&(St=[...document.querySelectorAll(wt.el)]),St||(St=wt.el),!(!St||St.length===0)&&(et.params.uniqueNavElements&&typeof wt.el=="string"&&Array.isArray(St)&&St.length>1&&(St=[...et.el.querySelectorAll(wt.el)],St.length>1&&(St=St.filter(Rt=>elementParents(Rt,".swiper")[0]===et.el)[0])),Array.isArray(St)&&St.length===1&&(St=St[0]),Object.assign(et.pagination,{el:St}),St=ut(St),St.forEach(Rt=>{wt.type==="bullets"&&wt.clickable&&Rt.classList.add(...(wt.clickableClass||"").split(" ")),Rt.classList.add(wt.modifierClass+wt.type),Rt.classList.add(et.isHorizontal()?wt.horizontalClass:wt.verticalClass),wt.type==="bullets"&&wt.dynamicBullets&&(Rt.classList.add(`${wt.modifierClass}${wt.type}-dynamic`),lt=0,wt.dynamicMainBullets<1&&(wt.dynamicMainBullets=1)),wt.type==="progressbar"&&wt.progressbarOpposite&&Rt.classList.add(wt.progressbarOppositeClass),wt.clickable&&Rt.addEventListener("click",ht),et.enabled||Rt.classList.add(wt.lockClass)}))}function vt(){const wt=et.params.pagination;if(ct())return;let St=et.pagination.el;St&&(St=ut(St),St.forEach(Rt=>{Rt.classList.remove(wt.hiddenClass),Rt.classList.remove(wt.modifierClass+wt.type),Rt.classList.remove(et.isHorizontal()?wt.horizontalClass:wt.verticalClass),wt.clickable&&(Rt.classList.remove(...(wt.clickableClass||"").split(" ")),Rt.removeEventListener("click",ht))})),et.pagination.bullets&&et.pagination.bullets.forEach(Rt=>Rt.classList.remove(...wt.bulletActiveClass.split(" ")))}st("changeDirection",()=>{if(!et.pagination||!et.pagination.el)return;const wt=et.params.pagination;let{el:St}=et.pagination;St=ut(St),St.forEach(Rt=>{Rt.classList.remove(wt.horizontalClass,wt.verticalClass),Rt.classList.add(et.isHorizontal()?wt.horizontalClass:wt.verticalClass)})}),st("init",()=>{et.params.pagination.enabled===!1?bt():(yt(),xt(),ft())}),st("activeIndexChange",()=>{typeof et.snapIndex>"u"&&ft()}),st("snapIndexChange",()=>{ft()}),st("snapGridLengthChange",()=>{xt(),ft()}),st("destroy",()=>{vt()}),st("enable disable",()=>{let{el:wt}=et.pagination;wt&&(wt=ut(wt),wt.forEach(St=>St.classList[et.enabled?"remove":"add"](et.params.pagination.lockClass)))}),st("lock unlock",()=>{ft()}),st("click",(wt,St)=>{const Rt=St.target,Ct=ut(et.pagination.el);if(et.params.pagination.el&&et.params.pagination.hideOnClick&&Ct&&Ct.length>0&&!Rt.classList.contains(et.params.pagination.bulletClass)){if(et.navigation&&(et.navigation.nextEl&&Rt===et.navigation.nextEl||et.navigation.prevEl&&Rt===et.navigation.prevEl))return;const jt=Ct[0].classList.contains(et.params.pagination.hiddenClass);nt(jt===!0?"paginationShow":"paginationHide"),Ct.forEach(It=>It.classList.toggle(et.params.pagination.hiddenClass))}});const Et=()=>{et.el.classList.remove(et.params.pagination.paginationDisabledClass);let{el:wt}=et.pagination;wt&&(wt=ut(wt),wt.forEach(St=>St.classList.remove(et.params.pagination.paginationDisabledClass))),yt(),xt(),ft()},bt=()=>{et.el.classList.add(et.params.pagination.paginationDisabledClass);let{el:wt}=et.pagination;wt&&(wt=ut(wt),wt.forEach(St=>St.classList.add(et.params.pagination.paginationDisabledClass))),vt()};Object.assign(et.pagination,{enable:Et,disable:bt,render:xt,update:ft,init:yt,destroy:vt})}let support;function calcSupport(){const tt=getWindow(),et=getDocument();return{smoothScroll:et.documentElement&&et.documentElement.style&&"scrollBehavior"in et.documentElement.style,touch:!!("ontouchstart"in tt||tt.DocumentTouch&&et instanceof tt.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice(tt){let{userAgent:et}=tt===void 0?{}:tt;const rt=getSupport(),st=getWindow(),nt=st.navigator.platform,ot=et||st.navigator.userAgent,at={ios:!1,android:!1},lt=st.screen.width,ut=st.screen.height,ct=ot.match(/(Android);?[\s\/]+([\d.]+)?/);let dt=ot.match(/(iPad).*OS\s([\d_]+)/);const ht=ot.match(/(iPod)(.*OS\s([\d_]+))?/),ft=!dt&&ot.match(/(iPhone\sOS|iOS)\s([\d_]+)/),xt=nt==="Win32";let yt=nt==="MacIntel";const vt=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!dt&&yt&&rt.touch&&vt.indexOf(`${lt}x${ut}`)>=0&&(dt=ot.match(/(Version)\/([\d.]+)/),dt||(dt=[0,1,"13_0_0"]),yt=!1),ct&&!xt&&(at.os="android",at.android=!0),(dt||ft||ht)&&(at.os="ios",at.ios=!0),at}function getDevice(tt){return tt===void 0&&(tt={}),deviceCached||(deviceCached=calcDevice(tt)),deviceCached}let browser;function calcBrowser(){const tt=getWindow();let et=!1;function rt(){const st=tt.navigator.userAgent.toLowerCase();return st.indexOf("safari")>=0&&st.indexOf("chrome")<0&&st.indexOf("android")<0}if(rt()){const st=String(tt.navigator.userAgent);if(st.includes("Version/")){const[nt,ot]=st.split("Version/")[1].split(" ")[0].split(".").map(at=>Number(at));et=nt<16||nt===16&&ot<2}}return{isSafari:et||rt(),needPerspectiveFix:et,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(tt.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(tt){let{swiper:et,on:rt,emit:st}=tt;const nt=getWindow();let ot=null,at=null;const lt=()=>{!et||et.destroyed||!et.initialized||(st("beforeResize"),st("resize"))},ut=()=>{!et||et.destroyed||!et.initialized||(ot=new ResizeObserver(ht=>{at=nt.requestAnimationFrame(()=>{const{width:ft,height:xt}=et;let yt=ft,vt=xt;ht.forEach(Et=>{let{contentBoxSize:bt,contentRect:wt,target:St}=Et;St&&St!==et.el||(yt=wt?wt.width:(bt[0]||bt).inlineSize,vt=wt?wt.height:(bt[0]||bt).blockSize)}),(yt!==ft||vt!==xt)&<()})}),ot.observe(et.el))},ct=()=>{at&&nt.cancelAnimationFrame(at),ot&&ot.unobserve&&et.el&&(ot.unobserve(et.el),ot=null)},dt=()=>{!et||et.destroyed||!et.initialized||st("orientationchange")};rt("init",()=>{if(et.params.resizeObserver&&typeof nt.ResizeObserver<"u"){ut();return}nt.addEventListener("resize",lt),nt.addEventListener("orientationchange",dt)}),rt("destroy",()=>{ct(),nt.removeEventListener("resize",lt),nt.removeEventListener("orientationchange",dt)})}function Observer(tt){let{swiper:et,extendParams:rt,on:st,emit:nt}=tt;const ot=[],at=getWindow(),lt=function(dt,ht){ht===void 0&&(ht={});const ft=at.MutationObserver||at.WebkitMutationObserver,xt=new ft(yt=>{if(et.__preventObserver__)return;if(yt.length===1){nt("observerUpdate",yt[0]);return}const vt=function(){nt("observerUpdate",yt[0])};at.requestAnimationFrame?at.requestAnimationFrame(vt):at.setTimeout(vt,0)});xt.observe(dt,{attributes:typeof ht.attributes>"u"?!0:ht.attributes,childList:typeof ht.childList>"u"?!0:ht.childList,characterData:typeof ht.characterData>"u"?!0:ht.characterData}),ot.push(xt)},ut=()=>{if(et.params.observer){if(et.params.observeParents){const dt=elementParents(et.hostEl);for(let ht=0;ht<dt.length;ht+=1)lt(dt[ht])}lt(et.hostEl,{childList:et.params.observeSlideChildren}),lt(et.wrapperEl,{attributes:!1})}},ct=()=>{ot.forEach(dt=>{dt.disconnect()}),ot.splice(0,ot.length)};rt({observer:!1,observeParents:!1,observeSlideChildren:!1}),st("init",ut),st("destroy",ct)}var eventsEmitter={on(tt,et,rt){const st=this;if(!st.eventsListeners||st.destroyed||typeof et!="function")return st;const nt=rt?"unshift":"push";return tt.split(" ").forEach(ot=>{st.eventsListeners[ot]||(st.eventsListeners[ot]=[]),st.eventsListeners[ot][nt](et)}),st},once(tt,et,rt){const st=this;if(!st.eventsListeners||st.destroyed||typeof et!="function")return st;function nt(){st.off(tt,nt),nt.__emitterProxy&&delete nt.__emitterProxy;for(var ot=arguments.length,at=new Array(ot),lt=0;lt<ot;lt++)at[lt]=arguments[lt];et.apply(st,at)}return nt.__emitterProxy=et,st.on(tt,nt,rt)},onAny(tt,et){const rt=this;if(!rt.eventsListeners||rt.destroyed||typeof tt!="function")return rt;const st=et?"unshift":"push";return rt.eventsAnyListeners.indexOf(tt)<0&&rt.eventsAnyListeners[st](tt),rt},offAny(tt){const et=this;if(!et.eventsListeners||et.destroyed||!et.eventsAnyListeners)return et;const rt=et.eventsAnyListeners.indexOf(tt);return rt>=0&&et.eventsAnyListeners.splice(rt,1),et},off(tt,et){const rt=this;return!rt.eventsListeners||rt.destroyed||!rt.eventsListeners||tt.split(" ").forEach(st=>{typeof et>"u"?rt.eventsListeners[st]=[]:rt.eventsListeners[st]&&rt.eventsListeners[st].forEach((nt,ot)=>{(nt===et||nt.__emitterProxy&&nt.__emitterProxy===et)&&rt.eventsListeners[st].splice(ot,1)})}),rt},emit(){const tt=this;if(!tt.eventsListeners||tt.destroyed||!tt.eventsListeners)return tt;let et,rt,st;for(var nt=arguments.length,ot=new Array(nt),at=0;at<nt;at++)ot[at]=arguments[at];return typeof ot[0]=="string"||Array.isArray(ot[0])?(et=ot[0],rt=ot.slice(1,ot.length),st=tt):(et=ot[0].events,rt=ot[0].data,st=ot[0].context||tt),rt.unshift(st),(Array.isArray(et)?et:et.split(" ")).forEach(ut=>{tt.eventsAnyListeners&&tt.eventsAnyListeners.length&&tt.eventsAnyListeners.forEach(ct=>{ct.apply(st,[ut,...rt])}),tt.eventsListeners&&tt.eventsListeners[ut]&&tt.eventsListeners[ut].forEach(ct=>{ct.apply(st,rt)})}),tt}};function updateSize(){const tt=this;let et,rt;const st=tt.el;typeof tt.params.width<"u"&&tt.params.width!==null?et=tt.params.width:et=st.clientWidth,typeof tt.params.height<"u"&&tt.params.height!==null?rt=tt.params.height:rt=st.clientHeight,!(et===0&&tt.isHorizontal()||rt===0&&tt.isVertical())&&(et=et-parseInt(elementStyle(st,"padding-left")||0,10)-parseInt(elementStyle(st,"padding-right")||0,10),rt=rt-parseInt(elementStyle(st,"padding-top")||0,10)-parseInt(elementStyle(st,"padding-bottom")||0,10),Number.isNaN(et)&&(et=0),Number.isNaN(rt)&&(rt=0),Object.assign(tt,{width:et,height:rt,size:tt.isHorizontal()?et:rt}))}function updateSlides(){const tt=this;function et(Nt){return tt.isHorizontal()?Nt:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[Nt]}function rt(Nt,Ht){return parseFloat(Nt.getPropertyValue(et(Ht))||0)}const st=tt.params,{wrapperEl:nt,slidesEl:ot,size:at,rtlTranslate:lt,wrongRTL:ut}=tt,ct=tt.virtual&&st.virtual.enabled,dt=ct?tt.virtual.slides.length:tt.slides.length,ht=elementChildren(ot,`.${tt.params.slideClass}, swiper-slide`),ft=ct?tt.virtual.slides.length:ht.length;let xt=[];const yt=[],vt=[];let Et=st.slidesOffsetBefore;typeof Et=="function"&&(Et=st.slidesOffsetBefore.call(tt));let bt=st.slidesOffsetAfter;typeof bt=="function"&&(bt=st.slidesOffsetAfter.call(tt));const wt=tt.snapGrid.length,St=tt.slidesGrid.length;let Rt=st.spaceBetween,Ct=-Et,jt=0,It=0;if(typeof at>"u")return;typeof Rt=="string"&&Rt.indexOf("%")>=0?Rt=parseFloat(Rt.replace("%",""))/100*at:typeof Rt=="string"&&(Rt=parseFloat(Rt)),tt.virtualSize=-Rt,ht.forEach(Nt=>{lt?Nt.style.marginLeft="":Nt.style.marginRight="",Nt.style.marginBottom="",Nt.style.marginTop=""}),st.centeredSlides&&st.cssMode&&(setCSSProperty(nt,"--swiper-centered-offset-before",""),setCSSProperty(nt,"--swiper-centered-offset-after",""));const Pt=st.grid&&st.grid.rows>1&&tt.grid;Pt&&tt.grid.initSlides(ft);let Ot;const Ut=st.slidesPerView==="auto"&&st.breakpoints&&Object.keys(st.breakpoints).filter(Nt=>typeof st.breakpoints[Nt].slidesPerView<"u").length>0;for(let Nt=0;Nt<ft;Nt+=1){Ot=0;let Ht;if(ht[Nt]&&(Ht=ht[Nt]),Pt&&tt.grid.updateSlide(Nt,Ht,ft,et),!(ht[Nt]&&elementStyle(Ht,"display")==="none")){if(st.slidesPerView==="auto"){Ut&&(ht[Nt].style[et("width")]="");const Lt=getComputedStyle(Ht),kt=Ht.style.transform,$t=Ht.style.webkitTransform;if(kt&&(Ht.style.transform="none"),$t&&(Ht.style.webkitTransform="none"),st.roundLengths)Ot=tt.isHorizontal()?elementOuterSize(Ht,"width"):elementOuterSize(Ht,"height");else{const Ft=rt(Lt,"width"),Gt=rt(Lt,"padding-left"),Mt=rt(Lt,"padding-right"),Vt=rt(Lt,"margin-left"),Bt=rt(Lt,"margin-right"),qt=Lt.getPropertyValue("box-sizing");if(qt&&qt==="border-box")Ot=Ft+Vt+Bt;else{const{clientWidth:Yt,offsetWidth:Kt}=Ht;Ot=Ft+Gt+Mt+Vt+Bt+(Kt-Yt)}}kt&&(Ht.style.transform=kt),$t&&(Ht.style.webkitTransform=$t),st.roundLengths&&(Ot=Math.floor(Ot))}else Ot=(at-(st.slidesPerView-1)*Rt)/st.slidesPerView,st.roundLengths&&(Ot=Math.floor(Ot)),ht[Nt]&&(ht[Nt].style[et("width")]=`${Ot}px`);ht[Nt]&&(ht[Nt].swiperSlideSize=Ot),vt.push(Ot),st.centeredSlides?(Ct=Ct+Ot/2+jt/2+Rt,jt===0&&Nt!==0&&(Ct=Ct-at/2-Rt),Nt===0&&(Ct=Ct-at/2-Rt),Math.abs(Ct)<1/1e3&&(Ct=0),st.roundLengths&&(Ct=Math.floor(Ct)),It%st.slidesPerGroup===0&&xt.push(Ct),yt.push(Ct)):(st.roundLengths&&(Ct=Math.floor(Ct)),(It-Math.min(tt.params.slidesPerGroupSkip,It))%tt.params.slidesPerGroup===0&&xt.push(Ct),yt.push(Ct),Ct=Ct+Ot+Rt),tt.virtualSize+=Ot+Rt,jt=Ot,It+=1}}if(tt.virtualSize=Math.max(tt.virtualSize,at)+bt,lt&&ut&&(st.effect==="slide"||st.effect==="coverflow")&&(nt.style.width=`${tt.virtualSize+Rt}px`),st.setWrapperSize&&(nt.style[et("width")]=`${tt.virtualSize+Rt}px`),Pt&&tt.grid.updateWrapperSize(Ot,xt,et),!st.centeredSlides){const Nt=[];for(let Ht=0;Ht<xt.length;Ht+=1){let Lt=xt[Ht];st.roundLengths&&(Lt=Math.floor(Lt)),xt[Ht]<=tt.virtualSize-at&&Nt.push(Lt)}xt=Nt,Math.floor(tt.virtualSize-at)-Math.floor(xt[xt.length-1])>1&&xt.push(tt.virtualSize-at)}if(ct&&st.loop){const Nt=vt[0]+Rt;if(st.slidesPerGroup>1){const Ht=Math.ceil((tt.virtual.slidesBefore+tt.virtual.slidesAfter)/st.slidesPerGroup),Lt=Nt*st.slidesPerGroup;for(let kt=0;kt<Ht;kt+=1)xt.push(xt[xt.length-1]+Lt)}for(let Ht=0;Ht<tt.virtual.slidesBefore+tt.virtual.slidesAfter;Ht+=1)st.slidesPerGroup===1&&xt.push(xt[xt.length-1]+Nt),yt.push(yt[yt.length-1]+Nt),tt.virtualSize+=Nt}if(xt.length===0&&(xt=[0]),Rt!==0){const Nt=tt.isHorizontal()&<?"marginLeft":et("marginRight");ht.filter((Ht,Lt)=>!st.cssMode||st.loop?!0:Lt!==ht.length-1).forEach(Ht=>{Ht.style[Nt]=`${Rt}px`})}if(st.centeredSlides&&st.centeredSlidesBounds){let Nt=0;vt.forEach(Lt=>{Nt+=Lt+(Rt||0)}),Nt-=Rt;const Ht=Nt-at;xt=xt.map(Lt=>Lt<=0?-Et:Lt>Ht?Ht+bt:Lt)}if(st.centerInsufficientSlides){let Nt=0;if(vt.forEach(Ht=>{Nt+=Ht+(Rt||0)}),Nt-=Rt,Nt<at){const Ht=(at-Nt)/2;xt.forEach((Lt,kt)=>{xt[kt]=Lt-Ht}),yt.forEach((Lt,kt)=>{yt[kt]=Lt+Ht})}}if(Object.assign(tt,{slides:ht,snapGrid:xt,slidesGrid:yt,slidesSizesGrid:vt}),st.centeredSlides&&st.cssMode&&!st.centeredSlidesBounds){setCSSProperty(nt,"--swiper-centered-offset-before",`${-xt[0]}px`),setCSSProperty(nt,"--swiper-centered-offset-after",`${tt.size/2-vt[vt.length-1]/2}px`);const Nt=-tt.snapGrid[0],Ht=-tt.slidesGrid[0];tt.snapGrid=tt.snapGrid.map(Lt=>Lt+Nt),tt.slidesGrid=tt.slidesGrid.map(Lt=>Lt+Ht)}if(ft!==dt&&tt.emit("slidesLengthChange"),xt.length!==wt&&(tt.params.watchOverflow&&tt.checkOverflow(),tt.emit("snapGridLengthChange")),yt.length!==St&&tt.emit("slidesGridLengthChange"),st.watchSlidesProgress&&tt.updateSlidesOffset(),!ct&&!st.cssMode&&(st.effect==="slide"||st.effect==="fade")){const Nt=`${st.containerModifierClass}backface-hidden`,Ht=tt.el.classList.contains(Nt);ft<=st.maxBackfaceHiddenSlides?Ht||tt.el.classList.add(Nt):Ht&&tt.el.classList.remove(Nt)}}function updateAutoHeight(tt){const et=this,rt=[],st=et.virtual&&et.params.virtual.enabled;let nt=0,ot;typeof tt=="number"?et.setTransition(tt):tt===!0&&et.setTransition(et.params.speed);const at=lt=>st?et.slides[et.getSlideIndexByData(lt)]:et.slides[lt];if(et.params.slidesPerView!=="auto"&&et.params.slidesPerView>1)if(et.params.centeredSlides)(et.visibleSlides||[]).forEach(lt=>{rt.push(lt)});else for(ot=0;ot<Math.ceil(et.params.slidesPerView);ot+=1){const lt=et.activeIndex+ot;if(lt>et.slides.length&&!st)break;rt.push(at(lt))}else rt.push(at(et.activeIndex));for(ot=0;ot<rt.length;ot+=1)if(typeof rt[ot]<"u"){const lt=rt[ot].offsetHeight;nt=lt>nt?lt:nt}(nt||nt===0)&&(et.wrapperEl.style.height=`${nt}px`)}function updateSlidesOffset(){const tt=this,et=tt.slides,rt=tt.isElement?tt.isHorizontal()?tt.wrapperEl.offsetLeft:tt.wrapperEl.offsetTop:0;for(let st=0;st<et.length;st+=1)et[st].swiperSlideOffset=(tt.isHorizontal()?et[st].offsetLeft:et[st].offsetTop)-rt-tt.cssOverflowAdjustment()}function updateSlidesProgress(tt){tt===void 0&&(tt=this&&this.translate||0);const et=this,rt=et.params,{slides:st,rtlTranslate:nt,snapGrid:ot}=et;if(st.length===0)return;typeof st[0].swiperSlideOffset>"u"&&et.updateSlidesOffset();let at=-tt;nt&&(at=tt),st.forEach(ut=>{ut.classList.remove(rt.slideVisibleClass)}),et.visibleSlidesIndexes=[],et.visibleSlides=[];let lt=rt.spaceBetween;typeof lt=="string"&<.indexOf("%")>=0?lt=parseFloat(lt.replace("%",""))/100*et.size:typeof lt=="string"&&(lt=parseFloat(lt));for(let ut=0;ut<st.length;ut+=1){const ct=st[ut];let dt=ct.swiperSlideOffset;rt.cssMode&&rt.centeredSlides&&(dt-=st[0].swiperSlideOffset);const ht=(at+(rt.centeredSlides?et.minTranslate():0)-dt)/(ct.swiperSlideSize+lt),ft=(at-ot[0]+(rt.centeredSlides?et.minTranslate():0)-dt)/(ct.swiperSlideSize+lt),xt=-(at-dt),yt=xt+et.slidesSizesGrid[ut];(xt>=0&&xt<et.size-1||yt>1&&yt<=et.size||xt<=0&&yt>=et.size)&&(et.visibleSlides.push(ct),et.visibleSlidesIndexes.push(ut),st[ut].classList.add(rt.slideVisibleClass)),ct.progress=nt?-ht:ht,ct.originalProgress=nt?-ft:ft}}function updateProgress(tt){const et=this;if(typeof tt>"u"){const dt=et.rtlTranslate?-1:1;tt=et&&et.translate&&et.translate*dt||0}const rt=et.params,st=et.maxTranslate()-et.minTranslate();let{progress:nt,isBeginning:ot,isEnd:at,progressLoop:lt}=et;const ut=ot,ct=at;if(st===0)nt=0,ot=!0,at=!0;else{nt=(tt-et.minTranslate())/st;const dt=Math.abs(tt-et.minTranslate())<1,ht=Math.abs(tt-et.maxTranslate())<1;ot=dt||nt<=0,at=ht||nt>=1,dt&&(nt=0),ht&&(nt=1)}if(rt.loop){const dt=et.getSlideIndexByData(0),ht=et.getSlideIndexByData(et.slides.length-1),ft=et.slidesGrid[dt],xt=et.slidesGrid[ht],yt=et.slidesGrid[et.slidesGrid.length-1],vt=Math.abs(tt);vt>=ft?lt=(vt-ft)/yt:lt=(vt+yt-xt)/yt,lt>1&&(lt-=1)}Object.assign(et,{progress:nt,progressLoop:lt,isBeginning:ot,isEnd:at}),(rt.watchSlidesProgress||rt.centeredSlides&&rt.autoHeight)&&et.updateSlidesProgress(tt),ot&&!ut&&et.emit("reachBeginning toEdge"),at&&!ct&&et.emit("reachEnd toEdge"),(ut&&!ot||ct&&!at)&&et.emit("fromEdge"),et.emit("progress",nt)}function updateSlidesClasses(){const tt=this,{slides:et,params:rt,slidesEl:st,activeIndex:nt}=tt,ot=tt.virtual&&rt.virtual.enabled,at=ut=>elementChildren(st,`.${rt.slideClass}${ut}, swiper-slide${ut}`)[0];et.forEach(ut=>{ut.classList.remove(rt.slideActiveClass,rt.slideNextClass,rt.slidePrevClass)});let lt;if(ot)if(rt.loop){let ut=nt-tt.virtual.slidesBefore;ut<0&&(ut=tt.virtual.slides.length+ut),ut>=tt.virtual.slides.length&&(ut-=tt.virtual.slides.length),lt=at(`[data-swiper-slide-index="${ut}"]`)}else lt=at(`[data-swiper-slide-index="${nt}"]`);else lt=et[nt];if(lt){lt.classList.add(rt.slideActiveClass);let ut=elementNextAll(lt,`.${rt.slideClass}, swiper-slide`)[0];rt.loop&&!ut&&(ut=et[0]),ut&&ut.classList.add(rt.slideNextClass);let ct=elementPrevAll(lt,`.${rt.slideClass}, swiper-slide`)[0];rt.loop&&!ct===0&&(ct=et[et.length-1]),ct&&ct.classList.add(rt.slidePrevClass)}tt.emitSlidesClasses()}const processLazyPreloader=(tt,et)=>{if(!tt||tt.destroyed||!tt.params)return;const rt=()=>tt.isElement?"swiper-slide":`.${tt.params.slideClass}`,st=et.closest(rt());if(st){let nt=st.querySelector(`.${tt.params.lazyPreloaderClass}`);!nt&&tt.isElement&&(st.shadowRoot?nt=st.shadowRoot.querySelector(`.${tt.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{st.shadowRoot&&(nt=st.shadowRoot.querySelector(`.${tt.params.lazyPreloaderClass}`),nt&&nt.remove())})),nt&&nt.remove()}},unlazy=(tt,et)=>{if(!tt.slides[et])return;const rt=tt.slides[et].querySelector('[loading="lazy"]');rt&&rt.removeAttribute("loading")},preload=tt=>{if(!tt||tt.destroyed||!tt.params)return;let et=tt.params.lazyPreloadPrevNext;const rt=tt.slides.length;if(!rt||!et||et<0)return;et=Math.min(et,rt);const st=tt.params.slidesPerView==="auto"?tt.slidesPerViewDynamic():Math.ceil(tt.params.slidesPerView),nt=tt.activeIndex;if(tt.params.grid&&tt.params.grid.rows>1){const at=nt,lt=[at-et];lt.push(...Array.from({length:et}).map((ut,ct)=>at+st+ct)),tt.slides.forEach((ut,ct)=>{lt.includes(ut.column)&&unlazy(tt,ct)});return}const ot=nt+st-1;if(tt.params.rewind||tt.params.loop)for(let at=nt-et;at<=ot+et;at+=1){const lt=(at%rt+rt)%rt;(lt<nt||lt>ot)&&unlazy(tt,lt)}else for(let at=Math.max(nt-et,0);at<=Math.min(ot+et,rt-1);at+=1)at!==nt&&(at>ot||at<nt)&&unlazy(tt,at)};function getActiveIndexByTranslate(tt){const{slidesGrid:et,params:rt}=tt,st=tt.rtlTranslate?tt.translate:-tt.translate;let nt;for(let ot=0;ot<et.length;ot+=1)typeof et[ot+1]<"u"?st>=et[ot]&&st<et[ot+1]-(et[ot+1]-et[ot])/2?nt=ot:st>=et[ot]&&st<et[ot+1]&&(nt=ot+1):st>=et[ot]&&(nt=ot);return rt.normalizeSlideIndex&&(nt<0||typeof nt>"u")&&(nt=0),nt}function updateActiveIndex(tt){const et=this,rt=et.rtlTranslate?et.translate:-et.translate,{snapGrid:st,params:nt,activeIndex:ot,realIndex:at,snapIndex:lt}=et;let ut=tt,ct;const dt=ft=>{let xt=ft-et.virtual.slidesBefore;return xt<0&&(xt=et.virtual.slides.length+xt),xt>=et.virtual.slides.length&&(xt-=et.virtual.slides.length),xt};if(typeof ut>"u"&&(ut=getActiveIndexByTranslate(et)),st.indexOf(rt)>=0)ct=st.indexOf(rt);else{const ft=Math.min(nt.slidesPerGroupSkip,ut);ct=ft+Math.floor((ut-ft)/nt.slidesPerGroup)}if(ct>=st.length&&(ct=st.length-1),ut===ot){ct!==lt&&(et.snapIndex=ct,et.emit("snapIndexChange")),et.params.loop&&et.virtual&&et.params.virtual.enabled&&(et.realIndex=dt(ut));return}let ht;et.virtual&&nt.virtual.enabled&&nt.loop?ht=dt(ut):et.slides[ut]?ht=parseInt(et.slides[ut].getAttribute("data-swiper-slide-index")||ut,10):ht=ut,Object.assign(et,{previousSnapIndex:lt,snapIndex:ct,previousRealIndex:at,realIndex:ht,previousIndex:ot,activeIndex:ut}),et.initialized&&preload(et),et.emit("activeIndexChange"),et.emit("snapIndexChange"),(et.initialized||et.params.runCallbacksOnInit)&&(at!==ht&&et.emit("realIndexChange"),et.emit("slideChange"))}function updateClickedSlide(tt,et){const rt=this,st=rt.params;let nt=tt.closest(`.${st.slideClass}, swiper-slide`);!nt&&rt.isElement&&et&&et.length>1&&et.includes(tt)&&[...et.slice(et.indexOf(tt)+1,et.length)].forEach(lt=>{!nt&<.matches&<.matches(`.${st.slideClass}, swiper-slide`)&&(nt=lt)});let ot=!1,at;if(nt){for(let lt=0;lt<rt.slides.length;lt+=1)if(rt.slides[lt]===nt){ot=!0,at=lt;break}}if(nt&&ot)rt.clickedSlide=nt,rt.virtual&&rt.params.virtual.enabled?rt.clickedIndex=parseInt(nt.getAttribute("data-swiper-slide-index"),10):rt.clickedIndex=at;else{rt.clickedSlide=void 0,rt.clickedIndex=void 0;return}st.slideToClickedSlide&&rt.clickedIndex!==void 0&&rt.clickedIndex!==rt.activeIndex&&rt.slideToClickedSlide()}var update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(tt){tt===void 0&&(tt=this.isHorizontal()?"x":"y");const et=this,{params:rt,rtlTranslate:st,translate:nt,wrapperEl:ot}=et;if(rt.virtualTranslate)return st?-nt:nt;if(rt.cssMode)return nt;let at=getTranslate(ot,tt);return at+=et.cssOverflowAdjustment(),st&&(at=-at),at||0}function setTranslate(tt,et){const rt=this,{rtlTranslate:st,params:nt,wrapperEl:ot,progress:at}=rt;let lt=0,ut=0;const ct=0;rt.isHorizontal()?lt=st?-tt:tt:ut=tt,nt.roundLengths&&(lt=Math.floor(lt),ut=Math.floor(ut)),rt.previousTranslate=rt.translate,rt.translate=rt.isHorizontal()?lt:ut,nt.cssMode?ot[rt.isHorizontal()?"scrollLeft":"scrollTop"]=rt.isHorizontal()?-lt:-ut:nt.virtualTranslate||(rt.isHorizontal()?lt-=rt.cssOverflowAdjustment():ut-=rt.cssOverflowAdjustment(),ot.style.transform=`translate3d(${lt}px, ${ut}px, ${ct}px)`);let dt;const ht=rt.maxTranslate()-rt.minTranslate();ht===0?dt=0:dt=(tt-rt.minTranslate())/ht,dt!==at&&rt.updateProgress(tt),rt.emit("setTranslate",rt.translate,et)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(tt,et,rt,st,nt){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),st===void 0&&(st=!0);const ot=this,{params:at,wrapperEl:lt}=ot;if(ot.animating&&at.preventInteractionOnTransition)return!1;const ut=ot.minTranslate(),ct=ot.maxTranslate();let dt;if(st&&tt>ut?dt=ut:st&&tt<ct?dt=ct:dt=tt,ot.updateProgress(dt),at.cssMode){const ht=ot.isHorizontal();if(et===0)lt[ht?"scrollLeft":"scrollTop"]=-dt;else{if(!ot.support.smoothScroll)return animateCSSModeScroll({swiper:ot,targetPosition:-dt,side:ht?"left":"top"}),!0;lt.scrollTo({[ht?"left":"top"]:-dt,behavior:"smooth"})}return!0}return et===0?(ot.setTransition(0),ot.setTranslate(dt),rt&&(ot.emit("beforeTransitionStart",et,nt),ot.emit("transitionEnd"))):(ot.setTransition(et),ot.setTranslate(dt),rt&&(ot.emit("beforeTransitionStart",et,nt),ot.emit("transitionStart")),ot.animating||(ot.animating=!0,ot.onTranslateToWrapperTransitionEnd||(ot.onTranslateToWrapperTransitionEnd=function(ft){!ot||ot.destroyed||ft.target===this&&(ot.wrapperEl.removeEventListener("transitionend",ot.onTranslateToWrapperTransitionEnd),ot.onTranslateToWrapperTransitionEnd=null,delete ot.onTranslateToWrapperTransitionEnd,rt&&ot.emit("transitionEnd"))}),ot.wrapperEl.addEventListener("transitionend",ot.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(tt,et){const rt=this;rt.params.cssMode||(rt.wrapperEl.style.transitionDuration=`${tt}ms`,rt.wrapperEl.style.transitionDelay=tt===0?"0ms":""),rt.emit("setTransition",tt,et)}function transitionEmit(tt){let{swiper:et,runCallbacks:rt,direction:st,step:nt}=tt;const{activeIndex:ot,previousIndex:at}=et;let lt=st;if(lt||(ot>at?lt="next":ot<at?lt="prev":lt="reset"),et.emit(`transition${nt}`),rt&&ot!==at){if(lt==="reset"){et.emit(`slideResetTransition${nt}`);return}et.emit(`slideChangeTransition${nt}`),lt==="next"?et.emit(`slideNextTransition${nt}`):et.emit(`slidePrevTransition${nt}`)}}function transitionStart(tt,et){tt===void 0&&(tt=!0);const rt=this,{params:st}=rt;st.cssMode||(st.autoHeight&&rt.updateAutoHeight(),transitionEmit({swiper:rt,runCallbacks:tt,direction:et,step:"Start"}))}function transitionEnd(tt,et){tt===void 0&&(tt=!0);const rt=this,{params:st}=rt;rt.animating=!1,!st.cssMode&&(rt.setTransition(0),transitionEmit({swiper:rt,runCallbacks:tt,direction:et,step:"End"}))}var transition={setTransition,transitionStart,transitionEnd};function slideTo(tt,et,rt,st,nt){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),typeof tt=="string"&&(tt=parseInt(tt,10));const ot=this;let at=tt;at<0&&(at=0);const{params:lt,snapGrid:ut,slidesGrid:ct,previousIndex:dt,activeIndex:ht,rtlTranslate:ft,wrapperEl:xt,enabled:yt}=ot;if(ot.animating&<.preventInteractionOnTransition||!yt&&!st&&!nt)return!1;const vt=Math.min(ot.params.slidesPerGroupSkip,at);let Et=vt+Math.floor((at-vt)/ot.params.slidesPerGroup);Et>=ut.length&&(Et=ut.length-1);const bt=-ut[Et];if(lt.normalizeSlideIndex)for(let St=0;St<ct.length;St+=1){const Rt=-Math.floor(bt*100),Ct=Math.floor(ct[St]*100),jt=Math.floor(ct[St+1]*100);typeof ct[St+1]<"u"?Rt>=Ct&&Rt<jt-(jt-Ct)/2?at=St:Rt>=Ct&&Rt<jt&&(at=St+1):Rt>=Ct&&(at=St)}if(ot.initialized&&at!==ht&&(!ot.allowSlideNext&&(ft?bt>ot.translate&&bt>ot.minTranslate():bt<ot.translate&&bt<ot.minTranslate())||!ot.allowSlidePrev&&bt>ot.translate&&bt>ot.maxTranslate()&&(ht||0)!==at))return!1;at!==(dt||0)&&rt&&ot.emit("beforeSlideChangeStart"),ot.updateProgress(bt);let wt;if(at>ht?wt="next":at<ht?wt="prev":wt="reset",ft&&-bt===ot.translate||!ft&&bt===ot.translate)return ot.updateActiveIndex(at),lt.autoHeight&&ot.updateAutoHeight(),ot.updateSlidesClasses(),lt.effect!=="slide"&&ot.setTranslate(bt),wt!=="reset"&&(ot.transitionStart(rt,wt),ot.transitionEnd(rt,wt)),!1;if(lt.cssMode){const St=ot.isHorizontal(),Rt=ft?bt:-bt;if(et===0){const Ct=ot.virtual&&ot.params.virtual.enabled;Ct&&(ot.wrapperEl.style.scrollSnapType="none",ot._immediateVirtual=!0),Ct&&!ot._cssModeVirtualInitialSet&&ot.params.initialSlide>0?(ot._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{xt[St?"scrollLeft":"scrollTop"]=Rt})):xt[St?"scrollLeft":"scrollTop"]=Rt,Ct&&requestAnimationFrame(()=>{ot.wrapperEl.style.scrollSnapType="",ot._immediateVirtual=!1})}else{if(!ot.support.smoothScroll)return animateCSSModeScroll({swiper:ot,targetPosition:Rt,side:St?"left":"top"}),!0;xt.scrollTo({[St?"left":"top"]:Rt,behavior:"smooth"})}return!0}return ot.setTransition(et),ot.setTranslate(bt),ot.updateActiveIndex(at),ot.updateSlidesClasses(),ot.emit("beforeTransitionStart",et,st),ot.transitionStart(rt,wt),et===0?ot.transitionEnd(rt,wt):ot.animating||(ot.animating=!0,ot.onSlideToWrapperTransitionEnd||(ot.onSlideToWrapperTransitionEnd=function(Rt){!ot||ot.destroyed||Rt.target===this&&(ot.wrapperEl.removeEventListener("transitionend",ot.onSlideToWrapperTransitionEnd),ot.onSlideToWrapperTransitionEnd=null,delete ot.onSlideToWrapperTransitionEnd,ot.transitionEnd(rt,wt))}),ot.wrapperEl.addEventListener("transitionend",ot.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(tt,et,rt,st){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),typeof tt=="string"&&(tt=parseInt(tt,10));const nt=this;let ot=tt;return nt.params.loop&&(nt.virtual&&nt.params.virtual.enabled?ot=ot+nt.virtual.slidesBefore:ot=nt.getSlideIndexByData(ot)),nt.slideTo(ot,et,rt,st)}function slideNext(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const st=this,{enabled:nt,params:ot,animating:at}=st;if(!nt)return st;let lt=ot.slidesPerGroup;ot.slidesPerView==="auto"&&ot.slidesPerGroup===1&&ot.slidesPerGroupAuto&&(lt=Math.max(st.slidesPerViewDynamic("current",!0),1));const ut=st.activeIndex<ot.slidesPerGroupSkip?1:lt,ct=st.virtual&&ot.virtual.enabled;if(ot.loop){if(at&&!ct&&ot.loopPreventsSliding)return!1;if(st.loopFix({direction:"next"}),st._clientLeft=st.wrapperEl.clientLeft,st.activeIndex===st.slides.length-1&&ot.cssMode)return requestAnimationFrame(()=>{st.slideTo(st.activeIndex+ut,tt,et,rt)}),!0}return ot.rewind&&st.isEnd?st.slideTo(0,tt,et,rt):st.slideTo(st.activeIndex+ut,tt,et,rt)}function slidePrev(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const st=this,{params:nt,snapGrid:ot,slidesGrid:at,rtlTranslate:lt,enabled:ut,animating:ct}=st;if(!ut)return st;const dt=st.virtual&&nt.virtual.enabled;if(nt.loop){if(ct&&!dt&&nt.loopPreventsSliding)return!1;st.loopFix({direction:"prev"}),st._clientLeft=st.wrapperEl.clientLeft}const ht=lt?st.translate:-st.translate;function ft(bt){return bt<0?-Math.floor(Math.abs(bt)):Math.floor(bt)}const xt=ft(ht),yt=ot.map(bt=>ft(bt));let vt=ot[yt.indexOf(xt)-1];if(typeof vt>"u"&&nt.cssMode){let bt;ot.forEach((wt,St)=>{xt>=wt&&(bt=St)}),typeof bt<"u"&&(vt=ot[bt>0?bt-1:bt])}let Et=0;if(typeof vt<"u"&&(Et=at.indexOf(vt),Et<0&&(Et=st.activeIndex-1),nt.slidesPerView==="auto"&&nt.slidesPerGroup===1&&nt.slidesPerGroupAuto&&(Et=Et-st.slidesPerViewDynamic("previous",!0)+1,Et=Math.max(Et,0))),nt.rewind&&st.isBeginning){const bt=st.params.virtual&&st.params.virtual.enabled&&st.virtual?st.virtual.slides.length-1:st.slides.length-1;return st.slideTo(bt,tt,et,rt)}else if(nt.loop&&st.activeIndex===0&&nt.cssMode)return requestAnimationFrame(()=>{st.slideTo(Et,tt,et,rt)}),!0;return st.slideTo(Et,tt,et,rt)}function slideReset(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const st=this;return st.slideTo(st.activeIndex,tt,et,rt)}function slideToClosest(tt,et,rt,st){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0),st===void 0&&(st=.5);const nt=this;let ot=nt.activeIndex;const at=Math.min(nt.params.slidesPerGroupSkip,ot),lt=at+Math.floor((ot-at)/nt.params.slidesPerGroup),ut=nt.rtlTranslate?nt.translate:-nt.translate;if(ut>=nt.snapGrid[lt]){const ct=nt.snapGrid[lt],dt=nt.snapGrid[lt+1];ut-ct>(dt-ct)*st&&(ot+=nt.params.slidesPerGroup)}else{const ct=nt.snapGrid[lt-1],dt=nt.snapGrid[lt];ut-ct<=(dt-ct)*st&&(ot-=nt.params.slidesPerGroup)}return ot=Math.max(ot,0),ot=Math.min(ot,nt.slidesGrid.length-1),nt.slideTo(ot,tt,et,rt)}function slideToClickedSlide(){const tt=this,{params:et,slidesEl:rt}=tt,st=et.slidesPerView==="auto"?tt.slidesPerViewDynamic():et.slidesPerView;let nt=tt.clickedIndex,ot;const at=tt.isElement?"swiper-slide":`.${et.slideClass}`;if(et.loop){if(tt.animating)return;ot=parseInt(tt.clickedSlide.getAttribute("data-swiper-slide-index"),10),et.centeredSlides?nt<tt.loopedSlides-st/2||nt>tt.slides.length-tt.loopedSlides+st/2?(tt.loopFix(),nt=tt.getSlideIndex(elementChildren(rt,`${at}[data-swiper-slide-index="${ot}"]`)[0]),nextTick(()=>{tt.slideTo(nt)})):tt.slideTo(nt):nt>tt.slides.length-st?(tt.loopFix(),nt=tt.getSlideIndex(elementChildren(rt,`${at}[data-swiper-slide-index="${ot}"]`)[0]),nextTick(()=>{tt.slideTo(nt)})):tt.slideTo(nt)}else tt.slideTo(nt)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(tt){const et=this,{params:rt,slidesEl:st}=et;if(!rt.loop||et.virtual&&et.params.virtual.enabled)return;elementChildren(st,`.${rt.slideClass}, swiper-slide`).forEach((ot,at)=>{ot.setAttribute("data-swiper-slide-index",at)}),et.loopFix({slideRealIndex:tt,direction:rt.centeredSlides?void 0:"next"})}function loopFix(tt){let{slideRealIndex:et,slideTo:rt=!0,direction:st,setTranslate:nt,activeSlideIndex:ot,byController:at,byMousewheel:lt}=tt===void 0?{}:tt;const ut=this;if(!ut.params.loop)return;ut.emit("beforeLoopFix");const{slides:ct,allowSlidePrev:dt,allowSlideNext:ht,slidesEl:ft,params:xt}=ut;if(ut.allowSlidePrev=!0,ut.allowSlideNext=!0,ut.virtual&&xt.virtual.enabled){rt&&(!xt.centeredSlides&&ut.snapIndex===0?ut.slideTo(ut.virtual.slides.length,0,!1,!0):xt.centeredSlides&&ut.snapIndex<xt.slidesPerView?ut.slideTo(ut.virtual.slides.length+ut.snapIndex,0,!1,!0):ut.snapIndex===ut.snapGrid.length-1&&ut.slideTo(ut.virtual.slidesBefore,0,!1,!0)),ut.allowSlidePrev=dt,ut.allowSlideNext=ht,ut.emit("loopFix");return}const yt=xt.slidesPerView==="auto"?ut.slidesPerViewDynamic():Math.ceil(parseFloat(xt.slidesPerView,10));let vt=xt.loopedSlides||yt;vt%xt.slidesPerGroup!==0&&(vt+=xt.slidesPerGroup-vt%xt.slidesPerGroup),ut.loopedSlides=vt;const Et=[],bt=[];let wt=ut.activeIndex;typeof ot>"u"?ot=ut.getSlideIndex(ut.slides.filter(It=>It.classList.contains(xt.slideActiveClass))[0]):wt=ot;const St=st==="next"||!st,Rt=st==="prev"||!st;let Ct=0,jt=0;if(ot<vt){Ct=Math.max(vt-ot,xt.slidesPerGroup);for(let It=0;It<vt-ot;It+=1){const Pt=It-Math.floor(It/ct.length)*ct.length;Et.push(ct.length-Pt-1)}}else if(ot>ut.slides.length-vt*2){jt=Math.max(ot-(ut.slides.length-vt*2),xt.slidesPerGroup);for(let It=0;It<jt;It+=1){const Pt=It-Math.floor(It/ct.length)*ct.length;bt.push(Pt)}}if(Rt&&Et.forEach(It=>{ut.slides[It].swiperLoopMoveDOM=!0,ft.prepend(ut.slides[It]),ut.slides[It].swiperLoopMoveDOM=!1}),St&&bt.forEach(It=>{ut.slides[It].swiperLoopMoveDOM=!0,ft.append(ut.slides[It]),ut.slides[It].swiperLoopMoveDOM=!1}),ut.recalcSlides(),xt.slidesPerView==="auto"&&ut.updateSlides(),xt.watchSlidesProgress&&ut.updateSlidesOffset(),rt){if(Et.length>0&&Rt)if(typeof et>"u"){const It=ut.slidesGrid[wt],Ot=ut.slidesGrid[wt+Ct]-It;lt?ut.setTranslate(ut.translate-Ot):(ut.slideTo(wt+Ct,0,!1,!0),nt&&(ut.touches[ut.isHorizontal()?"startX":"startY"]+=Ot,ut.touchEventsData.currentTranslate=ut.translate))}else nt&&(ut.slideToLoop(et,0,!1,!0),ut.touchEventsData.currentTranslate=ut.translate);else if(bt.length>0&&St)if(typeof et>"u"){const It=ut.slidesGrid[wt],Ot=ut.slidesGrid[wt-jt]-It;lt?ut.setTranslate(ut.translate-Ot):(ut.slideTo(wt-jt,0,!1,!0),nt&&(ut.touches[ut.isHorizontal()?"startX":"startY"]+=Ot,ut.touchEventsData.currentTranslate=ut.translate))}else ut.slideToLoop(et,0,!1,!0)}if(ut.allowSlidePrev=dt,ut.allowSlideNext=ht,ut.controller&&ut.controller.control&&!at){const It={slideRealIndex:et,direction:st,setTranslate:nt,activeSlideIndex:ot,byController:!0};Array.isArray(ut.controller.control)?ut.controller.control.forEach(Pt=>{!Pt.destroyed&&Pt.params.loop&&Pt.loopFix({...It,slideTo:Pt.params.slidesPerView===xt.slidesPerView?rt:!1})}):ut.controller.control instanceof ut.constructor&&ut.controller.control.params.loop&&ut.controller.control.loopFix({...It,slideTo:ut.controller.control.params.slidesPerView===xt.slidesPerView?rt:!1})}ut.emit("loopFix")}function loopDestroy(){const tt=this,{params:et,slidesEl:rt}=tt;if(!et.loop||tt.virtual&&tt.params.virtual.enabled)return;tt.recalcSlides();const st=[];tt.slides.forEach(nt=>{const ot=typeof nt.swiperSlideIndex>"u"?nt.getAttribute("data-swiper-slide-index")*1:nt.swiperSlideIndex;st[ot]=nt}),tt.slides.forEach(nt=>{nt.removeAttribute("data-swiper-slide-index")}),st.forEach(nt=>{rt.append(nt)}),tt.recalcSlides(),tt.slideTo(tt.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(tt){const et=this;if(!et.params.simulateTouch||et.params.watchOverflow&&et.isLocked||et.params.cssMode)return;const rt=et.params.touchEventsTarget==="container"?et.el:et.wrapperEl;et.isElement&&(et.__preventObserver__=!0),rt.style.cursor="move",rt.style.cursor=tt?"grabbing":"grab",et.isElement&&requestAnimationFrame(()=>{et.__preventObserver__=!1})}function unsetGrabCursor(){const tt=this;tt.params.watchOverflow&&tt.isLocked||tt.params.cssMode||(tt.isElement&&(tt.__preventObserver__=!0),tt[tt.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",tt.isElement&&requestAnimationFrame(()=>{tt.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(tt,et){et===void 0&&(et=this);function rt(st){if(!st||st===getDocument()||st===getWindow())return null;st.assignedSlot&&(st=st.assignedSlot);const nt=st.closest(tt);return!nt&&!st.getRootNode?null:nt||rt(st.getRootNode().host)}return rt(et)}function onTouchStart(tt){const et=this,rt=getDocument(),st=getWindow(),nt=et.touchEventsData;nt.evCache.push(tt);const{params:ot,touches:at,enabled:lt}=et;if(!lt||!ot.simulateTouch&&tt.pointerType==="mouse"||et.animating&&ot.preventInteractionOnTransition)return;!et.animating&&ot.cssMode&&ot.loop&&et.loopFix();let ut=tt;ut.originalEvent&&(ut=ut.originalEvent);let ct=ut.target;if(ot.touchEventsTarget==="wrapper"&&!et.wrapperEl.contains(ct)||"which"in ut&&ut.which===3||"button"in ut&&ut.button>0||nt.isTouched&&nt.isMoved)return;const dt=!!ot.noSwipingClass&&ot.noSwipingClass!=="",ht=tt.composedPath?tt.composedPath():tt.path;dt&&ut.target&&ut.target.shadowRoot&&ht&&(ct=ht[0]);const ft=ot.noSwipingSelector?ot.noSwipingSelector:`.${ot.noSwipingClass}`,xt=!!(ut.target&&ut.target.shadowRoot);if(ot.noSwiping&&(xt?closestElement(ft,ct):ct.closest(ft))){et.allowClick=!0;return}if(ot.swipeHandler&&!ct.closest(ot.swipeHandler))return;at.currentX=ut.pageX,at.currentY=ut.pageY;const yt=at.currentX,vt=at.currentY,Et=ot.edgeSwipeDetection||ot.iOSEdgeSwipeDetection,bt=ot.edgeSwipeThreshold||ot.iOSEdgeSwipeThreshold;if(Et&&(yt<=bt||yt>=st.innerWidth-bt))if(Et==="prevent")tt.preventDefault();else return;Object.assign(nt,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),at.startX=yt,at.startY=vt,nt.touchStartTime=now(),et.allowClick=!0,et.updateSize(),et.swipeDirection=void 0,ot.threshold>0&&(nt.allowThresholdMove=!1);let wt=!0;ct.matches(nt.focusableElements)&&(wt=!1,ct.nodeName==="SELECT"&&(nt.isTouched=!1)),rt.activeElement&&rt.activeElement.matches(nt.focusableElements)&&rt.activeElement!==ct&&rt.activeElement.blur();const St=wt&&et.allowTouchMove&&ot.touchStartPreventDefault;(ot.touchStartForcePreventDefault||St)&&!ct.isContentEditable&&ut.preventDefault(),ot.freeMode&&ot.freeMode.enabled&&et.freeMode&&et.animating&&!ot.cssMode&&et.freeMode.onTouchStart(),et.emit("touchStart",ut)}function onTouchMove(tt){const et=getDocument(),rt=this,st=rt.touchEventsData,{params:nt,touches:ot,rtlTranslate:at,enabled:lt}=rt;if(!lt||!nt.simulateTouch&&tt.pointerType==="mouse")return;let ut=tt;if(ut.originalEvent&&(ut=ut.originalEvent),!st.isTouched){st.startMoving&&st.isScrolling&&rt.emit("touchMoveOpposite",ut);return}const ct=st.evCache.findIndex(It=>It.pointerId===ut.pointerId);ct>=0&&(st.evCache[ct]=ut);const dt=st.evCache.length>1?st.evCache[0]:ut,ht=dt.pageX,ft=dt.pageY;if(ut.preventedByNestedSwiper){ot.startX=ht,ot.startY=ft;return}if(!rt.allowTouchMove){ut.target.matches(st.focusableElements)||(rt.allowClick=!1),st.isTouched&&(Object.assign(ot,{startX:ht,startY:ft,prevX:rt.touches.currentX,prevY:rt.touches.currentY,currentX:ht,currentY:ft}),st.touchStartTime=now());return}if(nt.touchReleaseOnEdges&&!nt.loop){if(rt.isVertical()){if(ft<ot.startY&&rt.translate<=rt.maxTranslate()||ft>ot.startY&&rt.translate>=rt.minTranslate()){st.isTouched=!1,st.isMoved=!1;return}}else if(ht<ot.startX&&rt.translate<=rt.maxTranslate()||ht>ot.startX&&rt.translate>=rt.minTranslate())return}if(et.activeElement&&ut.target===et.activeElement&&ut.target.matches(st.focusableElements)){st.isMoved=!0,rt.allowClick=!1;return}if(st.allowTouchCallbacks&&rt.emit("touchMove",ut),ut.targetTouches&&ut.targetTouches.length>1)return;ot.currentX=ht,ot.currentY=ft;const xt=ot.currentX-ot.startX,yt=ot.currentY-ot.startY;if(rt.params.threshold&&Math.sqrt(xt**2+yt**2)<rt.params.threshold)return;if(typeof st.isScrolling>"u"){let It;rt.isHorizontal()&&ot.currentY===ot.startY||rt.isVertical()&&ot.currentX===ot.startX?st.isScrolling=!1:xt*xt+yt*yt>=25&&(It=Math.atan2(Math.abs(yt),Math.abs(xt))*180/Math.PI,st.isScrolling=rt.isHorizontal()?It>nt.touchAngle:90-It>nt.touchAngle)}if(st.isScrolling&&rt.emit("touchMoveOpposite",ut),typeof st.startMoving>"u"&&(ot.currentX!==ot.startX||ot.currentY!==ot.startY)&&(st.startMoving=!0),st.isScrolling||rt.zoom&&rt.params.zoom&&rt.params.zoom.enabled&&st.evCache.length>1){st.isTouched=!1;return}if(!st.startMoving)return;rt.allowClick=!1,!nt.cssMode&&ut.cancelable&&ut.preventDefault(),nt.touchMoveStopPropagation&&!nt.nested&&ut.stopPropagation();let vt=rt.isHorizontal()?xt:yt,Et=rt.isHorizontal()?ot.currentX-ot.previousX:ot.currentY-ot.previousY;nt.oneWayMovement&&(vt=Math.abs(vt)*(at?1:-1),Et=Math.abs(Et)*(at?1:-1)),ot.diff=vt,vt*=nt.touchRatio,at&&(vt=-vt,Et=-Et);const bt=rt.touchesDirection;rt.swipeDirection=vt>0?"prev":"next",rt.touchesDirection=Et>0?"prev":"next";const wt=rt.params.loop&&!nt.cssMode,St=rt.swipeDirection==="next"&&rt.allowSlideNext||rt.swipeDirection==="prev"&&rt.allowSlidePrev;if(!st.isMoved){if(wt&&St&&rt.loopFix({direction:rt.swipeDirection}),st.startTranslate=rt.getTranslate(),rt.setTransition(0),rt.animating){const It=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});rt.wrapperEl.dispatchEvent(It)}st.allowMomentumBounce=!1,nt.grabCursor&&(rt.allowSlideNext===!0||rt.allowSlidePrev===!0)&&rt.setGrabCursor(!0),rt.emit("sliderFirstMove",ut)}let Rt;st.isMoved&&bt!==rt.touchesDirection&&wt&&St&&Math.abs(vt)>=1&&(rt.loopFix({direction:rt.swipeDirection,setTranslate:!0}),Rt=!0),rt.emit("sliderMove",ut),st.isMoved=!0,st.currentTranslate=vt+st.startTranslate;let Ct=!0,jt=nt.resistanceRatio;if(nt.touchReleaseOnEdges&&(jt=0),vt>0?(wt&&St&&!Rt&&st.currentTranslate>(nt.centeredSlides?rt.minTranslate()-rt.size/2:rt.minTranslate())&&rt.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),st.currentTranslate>rt.minTranslate()&&(Ct=!1,nt.resistance&&(st.currentTranslate=rt.minTranslate()-1+(-rt.minTranslate()+st.startTranslate+vt)**jt))):vt<0&&(wt&&St&&!Rt&&st.currentTranslate<(nt.centeredSlides?rt.maxTranslate()+rt.size/2:rt.maxTranslate())&&rt.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:rt.slides.length-(nt.slidesPerView==="auto"?rt.slidesPerViewDynamic():Math.ceil(parseFloat(nt.slidesPerView,10)))}),st.currentTranslate<rt.maxTranslate()&&(Ct=!1,nt.resistance&&(st.currentTranslate=rt.maxTranslate()+1-(rt.maxTranslate()-st.startTranslate-vt)**jt))),Ct&&(ut.preventedByNestedSwiper=!0),!rt.allowSlideNext&&rt.swipeDirection==="next"&&st.currentTranslate<st.startTranslate&&(st.currentTranslate=st.startTranslate),!rt.allowSlidePrev&&rt.swipeDirection==="prev"&&st.currentTranslate>st.startTranslate&&(st.currentTranslate=st.startTranslate),!rt.allowSlidePrev&&!rt.allowSlideNext&&(st.currentTranslate=st.startTranslate),nt.threshold>0)if(Math.abs(vt)>nt.threshold||st.allowThresholdMove){if(!st.allowThresholdMove){st.allowThresholdMove=!0,ot.startX=ot.currentX,ot.startY=ot.currentY,st.currentTranslate=st.startTranslate,ot.diff=rt.isHorizontal()?ot.currentX-ot.startX:ot.currentY-ot.startY;return}}else{st.currentTranslate=st.startTranslate;return}!nt.followFinger||nt.cssMode||((nt.freeMode&&nt.freeMode.enabled&&rt.freeMode||nt.watchSlidesProgress)&&(rt.updateActiveIndex(),rt.updateSlidesClasses()),nt.freeMode&&nt.freeMode.enabled&&rt.freeMode&&rt.freeMode.onTouchMove(),rt.updateProgress(st.currentTranslate),rt.setTranslate(st.currentTranslate))}function onTouchEnd(tt){const et=this,rt=et.touchEventsData,st=rt.evCache.findIndex(St=>St.pointerId===tt.pointerId);if(st>=0&&rt.evCache.splice(st,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(tt.type)&&!(["pointercancel","contextmenu"].includes(tt.type)&&(et.browser.isSafari||et.browser.isWebView)))return;const{params:nt,touches:ot,rtlTranslate:at,slidesGrid:lt,enabled:ut}=et;if(!ut||!nt.simulateTouch&&tt.pointerType==="mouse")return;let ct=tt;if(ct.originalEvent&&(ct=ct.originalEvent),rt.allowTouchCallbacks&&et.emit("touchEnd",ct),rt.allowTouchCallbacks=!1,!rt.isTouched){rt.isMoved&&nt.grabCursor&&et.setGrabCursor(!1),rt.isMoved=!1,rt.startMoving=!1;return}nt.grabCursor&&rt.isMoved&&rt.isTouched&&(et.allowSlideNext===!0||et.allowSlidePrev===!0)&&et.setGrabCursor(!1);const dt=now(),ht=dt-rt.touchStartTime;if(et.allowClick){const St=ct.path||ct.composedPath&&ct.composedPath();et.updateClickedSlide(St&&St[0]||ct.target,St),et.emit("tap click",ct),ht<300&&dt-rt.lastClickTime<300&&et.emit("doubleTap doubleClick",ct)}if(rt.lastClickTime=now(),nextTick(()=>{et.destroyed||(et.allowClick=!0)}),!rt.isTouched||!rt.isMoved||!et.swipeDirection||ot.diff===0||rt.currentTranslate===rt.startTranslate){rt.isTouched=!1,rt.isMoved=!1,rt.startMoving=!1;return}rt.isTouched=!1,rt.isMoved=!1,rt.startMoving=!1;let ft;if(nt.followFinger?ft=at?et.translate:-et.translate:ft=-rt.currentTranslate,nt.cssMode)return;if(nt.freeMode&&nt.freeMode.enabled){et.freeMode.onTouchEnd({currentPos:ft});return}let xt=0,yt=et.slidesSizesGrid[0];for(let St=0;St<lt.length;St+=St<nt.slidesPerGroupSkip?1:nt.slidesPerGroup){const Rt=St<nt.slidesPerGroupSkip-1?1:nt.slidesPerGroup;typeof lt[St+Rt]<"u"?ft>=lt[St]&&ft<lt[St+Rt]&&(xt=St,yt=lt[St+Rt]-lt[St]):ft>=lt[St]&&(xt=St,yt=lt[lt.length-1]-lt[lt.length-2])}let vt=null,Et=null;nt.rewind&&(et.isBeginning?Et=nt.virtual&&nt.virtual.enabled&&et.virtual?et.virtual.slides.length-1:et.slides.length-1:et.isEnd&&(vt=0));const bt=(ft-lt[xt])/yt,wt=xt<nt.slidesPerGroupSkip-1?1:nt.slidesPerGroup;if(ht>nt.longSwipesMs){if(!nt.longSwipes){et.slideTo(et.activeIndex);return}et.swipeDirection==="next"&&(bt>=nt.longSwipesRatio?et.slideTo(nt.rewind&&et.isEnd?vt:xt+wt):et.slideTo(xt)),et.swipeDirection==="prev"&&(bt>1-nt.longSwipesRatio?et.slideTo(xt+wt):Et!==null&&bt<0&&Math.abs(bt)>nt.longSwipesRatio?et.slideTo(Et):et.slideTo(xt))}else{if(!nt.shortSwipes){et.slideTo(et.activeIndex);return}et.navigation&&(ct.target===et.navigation.nextEl||ct.target===et.navigation.prevEl)?ct.target===et.navigation.nextEl?et.slideTo(xt+wt):et.slideTo(xt):(et.swipeDirection==="next"&&et.slideTo(vt!==null?vt:xt+wt),et.swipeDirection==="prev"&&et.slideTo(Et!==null?Et:xt))}}function onResize(){const tt=this,{params:et,el:rt}=tt;if(rt&&rt.offsetWidth===0)return;et.breakpoints&&tt.setBreakpoint();const{allowSlideNext:st,allowSlidePrev:nt,snapGrid:ot}=tt,at=tt.virtual&&tt.params.virtual.enabled;tt.allowSlideNext=!0,tt.allowSlidePrev=!0,tt.updateSize(),tt.updateSlides(),tt.updateSlidesClasses();const lt=at&&et.loop;(et.slidesPerView==="auto"||et.slidesPerView>1)&&tt.isEnd&&!tt.isBeginning&&!tt.params.centeredSlides&&!lt?tt.slideTo(tt.slides.length-1,0,!1,!0):tt.params.loop&&!at?tt.slideToLoop(tt.realIndex,0,!1,!0):tt.slideTo(tt.activeIndex,0,!1,!0),tt.autoplay&&tt.autoplay.running&&tt.autoplay.paused&&(clearTimeout(tt.autoplay.resizeTimeout),tt.autoplay.resizeTimeout=setTimeout(()=>{tt.autoplay&&tt.autoplay.running&&tt.autoplay.paused&&tt.autoplay.resume()},500)),tt.allowSlidePrev=nt,tt.allowSlideNext=st,tt.params.watchOverflow&&ot!==tt.snapGrid&&tt.checkOverflow()}function onClick(tt){const et=this;et.enabled&&(et.allowClick||(et.params.preventClicks&&tt.preventDefault(),et.params.preventClicksPropagation&&et.animating&&(tt.stopPropagation(),tt.stopImmediatePropagation())))}function onScroll(){const tt=this,{wrapperEl:et,rtlTranslate:rt,enabled:st}=tt;if(!st)return;tt.previousTranslate=tt.translate,tt.isHorizontal()?tt.translate=-et.scrollLeft:tt.translate=-et.scrollTop,tt.translate===0&&(tt.translate=0),tt.updateActiveIndex(),tt.updateSlidesClasses();let nt;const ot=tt.maxTranslate()-tt.minTranslate();ot===0?nt=0:nt=(tt.translate-tt.minTranslate())/ot,nt!==tt.progress&&tt.updateProgress(rt?-tt.translate:tt.translate),tt.emit("setTranslate",tt.translate,!1)}function onLoad(tt){const et=this;processLazyPreloader(et,tt.target),!(et.params.cssMode||et.params.slidesPerView!=="auto"&&!et.params.autoHeight)&&et.update()}let dummyEventAttached=!1;function dummyEventListener(){}const events=(tt,et)=>{const rt=getDocument(),{params:st,el:nt,wrapperEl:ot,device:at}=tt,lt=!!st.nested,ut=et==="on"?"addEventListener":"removeEventListener",ct=et;nt[ut]("pointerdown",tt.onTouchStart,{passive:!1}),rt[ut]("pointermove",tt.onTouchMove,{passive:!1,capture:lt}),rt[ut]("pointerup",tt.onTouchEnd,{passive:!0}),rt[ut]("pointercancel",tt.onTouchEnd,{passive:!0}),rt[ut]("pointerout",tt.onTouchEnd,{passive:!0}),rt[ut]("pointerleave",tt.onTouchEnd,{passive:!0}),rt[ut]("contextmenu",tt.onTouchEnd,{passive:!0}),(st.preventClicks||st.preventClicksPropagation)&&nt[ut]("click",tt.onClick,!0),st.cssMode&&ot[ut]("scroll",tt.onScroll),st.updateOnWindowResize?tt[ct](at.ios||at.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):tt[ct]("observerUpdate",onResize,!0),nt[ut]("load",tt.onLoad,{capture:!0})};function attachEvents(){const tt=this,et=getDocument(),{params:rt}=tt;tt.onTouchStart=onTouchStart.bind(tt),tt.onTouchMove=onTouchMove.bind(tt),tt.onTouchEnd=onTouchEnd.bind(tt),rt.cssMode&&(tt.onScroll=onScroll.bind(tt)),tt.onClick=onClick.bind(tt),tt.onLoad=onLoad.bind(tt),dummyEventAttached||(et.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(tt,"on")}function detachEvents(){events(this,"off")}var events$1={attachEvents,detachEvents};const isGridEnabled=(tt,et)=>tt.grid&&et.grid&&et.grid.rows>1;function setBreakpoint(){const tt=this,{realIndex:et,initialized:rt,params:st,el:nt}=tt,ot=st.breakpoints;if(!ot||ot&&Object.keys(ot).length===0)return;const at=tt.getBreakpoint(ot,tt.params.breakpointsBase,tt.el);if(!at||tt.currentBreakpoint===at)return;const ut=(at in ot?ot[at]:void 0)||tt.originalParams,ct=isGridEnabled(tt,st),dt=isGridEnabled(tt,ut),ht=st.enabled;ct&&!dt?(nt.classList.remove(`${st.containerModifierClass}grid`,`${st.containerModifierClass}grid-column`),tt.emitContainerClasses()):!ct&&dt&&(nt.classList.add(`${st.containerModifierClass}grid`),(ut.grid.fill&&ut.grid.fill==="column"||!ut.grid.fill&&st.grid.fill==="column")&&nt.classList.add(`${st.containerModifierClass}grid-column`),tt.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(bt=>{if(typeof ut[bt]>"u")return;const wt=st[bt]&&st[bt].enabled,St=ut[bt]&&ut[bt].enabled;wt&&!St&&tt[bt].disable(),!wt&&St&&tt[bt].enable()});const ft=ut.direction&&ut.direction!==st.direction,xt=st.loop&&(ut.slidesPerView!==st.slidesPerView||ft),yt=st.loop;ft&&rt&&tt.changeDirection(),extend$1(tt.params,ut);const vt=tt.params.enabled,Et=tt.params.loop;Object.assign(tt,{allowTouchMove:tt.params.allowTouchMove,allowSlideNext:tt.params.allowSlideNext,allowSlidePrev:tt.params.allowSlidePrev}),ht&&!vt?tt.disable():!ht&&vt&&tt.enable(),tt.currentBreakpoint=at,tt.emit("_beforeBreakpoint",ut),rt&&(xt?(tt.loopDestroy(),tt.loopCreate(et),tt.updateSlides()):!yt&&Et?(tt.loopCreate(et),tt.updateSlides()):yt&&!Et&&tt.loopDestroy()),tt.emit("breakpoint",ut)}function getBreakpoint(tt,et,rt){if(et===void 0&&(et="window"),!tt||et==="container"&&!rt)return;let st=!1;const nt=getWindow(),ot=et==="window"?nt.innerHeight:rt.clientHeight,at=Object.keys(tt).map(lt=>{if(typeof lt=="string"&<.indexOf("@")===0){const ut=parseFloat(lt.substr(1));return{value:ot*ut,point:lt}}return{value:lt,point:lt}});at.sort((lt,ut)=>parseInt(lt.value,10)-parseInt(ut.value,10));for(let lt=0;lt<at.length;lt+=1){const{point:ut,value:ct}=at[lt];et==="window"?nt.matchMedia(`(min-width: ${ct}px)`).matches&&(st=ut):ct<=rt.clientWidth&&(st=ut)}return st||"max"}var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(tt,et){const rt=[];return tt.forEach(st=>{typeof st=="object"?Object.keys(st).forEach(nt=>{st[nt]&&rt.push(et+nt)}):typeof st=="string"&&rt.push(et+st)}),rt}function addClasses(){const tt=this,{classNames:et,params:rt,rtl:st,el:nt,device:ot}=tt,at=prepareClasses(["initialized",rt.direction,{"free-mode":tt.params.freeMode&&rt.freeMode.enabled},{autoheight:rt.autoHeight},{rtl:st},{grid:rt.grid&&rt.grid.rows>1},{"grid-column":rt.grid&&rt.grid.rows>1&&rt.grid.fill==="column"},{android:ot.android},{ios:ot.ios},{"css-mode":rt.cssMode},{centered:rt.cssMode&&rt.centeredSlides},{"watch-progress":rt.watchSlidesProgress}],rt.containerModifierClass);et.push(...at),nt.classList.add(...et),tt.emitContainerClasses()}function removeClasses(){const tt=this,{el:et,classNames:rt}=tt;et.classList.remove(...rt),tt.emitContainerClasses()}var classes={addClasses,removeClasses};function checkOverflow(){const tt=this,{isLocked:et,params:rt}=tt,{slidesOffsetBefore:st}=rt;if(st){const nt=tt.slides.length-1,ot=tt.slidesGrid[nt]+tt.slidesSizesGrid[nt]+st*2;tt.isLocked=tt.size>ot}else tt.isLocked=tt.snapGrid.length===1;rt.allowSlideNext===!0&&(tt.allowSlideNext=!tt.isLocked),rt.allowSlidePrev===!0&&(tt.allowSlidePrev=!tt.isLocked),et&&et!==tt.isLocked&&(tt.isEnd=!1),et!==tt.isLocked&&tt.emit(tt.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults$3={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(tt,et){return function(st){st===void 0&&(st={});const nt=Object.keys(st)[0],ot=st[nt];if(typeof ot!="object"||ot===null){extend$1(et,st);return}if(tt[nt]===!0&&(tt[nt]={enabled:!0}),nt==="navigation"&&tt[nt]&&tt[nt].enabled&&!tt[nt].prevEl&&!tt[nt].nextEl&&(tt[nt].auto=!0),["pagination","scrollbar"].indexOf(nt)>=0&&tt[nt]&&tt[nt].enabled&&!tt[nt].el&&(tt[nt].auto=!0),!(nt in tt&&"enabled"in ot)){extend$1(et,st);return}typeof tt[nt]=="object"&&!("enabled"in tt[nt])&&(tt[nt].enabled=!0),tt[nt]||(tt[nt]={enabled:!1}),extend$1(et,st)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};let Swiper$1=class Ao{constructor(){let et,rt;for(var st=arguments.length,nt=new Array(st),ot=0;ot<st;ot++)nt[ot]=arguments[ot];nt.length===1&&nt[0].constructor&&Object.prototype.toString.call(nt[0]).slice(8,-1)==="Object"?rt=nt[0]:[et,rt]=nt,rt||(rt={}),rt=extend$1({},rt),et&&!rt.el&&(rt.el=et);const at=getDocument();if(rt.el&&typeof rt.el=="string"&&at.querySelectorAll(rt.el).length>1){const dt=[];return at.querySelectorAll(rt.el).forEach(ht=>{const ft=extend$1({},rt,{el:ht});dt.push(new Ao(ft))}),dt}const lt=this;lt.__swiper__=!0,lt.support=getSupport(),lt.device=getDevice({userAgent:rt.userAgent}),lt.browser=getBrowser(),lt.eventsListeners={},lt.eventsAnyListeners=[],lt.modules=[...lt.__modules__],rt.modules&&Array.isArray(rt.modules)&<.modules.push(...rt.modules);const ut={};lt.modules.forEach(dt=>{dt({params:rt,swiper:lt,extendParams:moduleExtendParams(rt,ut),on:lt.on.bind(lt),once:lt.once.bind(lt),off:lt.off.bind(lt),emit:lt.emit.bind(lt)})});const ct=extend$1({},defaults$3,ut);return lt.params=extend$1({},ct,extendedDefaults,rt),lt.originalParams=extend$1({},lt.params),lt.passedParams=extend$1({},rt),lt.params&<.params.on&&Object.keys(lt.params.on).forEach(dt=>{lt.on(dt,lt.params.on[dt])}),lt.params&<.params.onAny&<.onAny(lt.params.onAny),Object.assign(lt,{enabled:lt.params.enabled,el:et,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return lt.params.direction==="horizontal"},isVertical(){return lt.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:lt.params.allowSlideNext,allowSlidePrev:lt.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:lt.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:lt.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),lt.emit("_swiper"),lt.params.init&<.init(),lt}getSlideIndex(et){const{slidesEl:rt,params:st}=this,nt=elementChildren(rt,`.${st.slideClass}, swiper-slide`),ot=elementIndex(nt[0]);return elementIndex(et)-ot}getSlideIndexByData(et){return this.getSlideIndex(this.slides.filter(rt=>rt.getAttribute("data-swiper-slide-index")*1===et)[0])}recalcSlides(){const et=this,{slidesEl:rt,params:st}=et;et.slides=elementChildren(rt,`.${st.slideClass}, swiper-slide`)}enable(){const et=this;et.enabled||(et.enabled=!0,et.params.grabCursor&&et.setGrabCursor(),et.emit("enable"))}disable(){const et=this;et.enabled&&(et.enabled=!1,et.params.grabCursor&&et.unsetGrabCursor(),et.emit("disable"))}setProgress(et,rt){const st=this;et=Math.min(Math.max(et,0),1);const nt=st.minTranslate(),at=(st.maxTranslate()-nt)*et+nt;st.translateTo(at,typeof rt>"u"?0:rt),st.updateActiveIndex(),st.updateSlidesClasses()}emitContainerClasses(){const et=this;if(!et.params._emitClasses||!et.el)return;const rt=et.el.className.split(" ").filter(st=>st.indexOf("swiper")===0||st.indexOf(et.params.containerModifierClass)===0);et.emit("_containerClasses",rt.join(" "))}getSlideClasses(et){const rt=this;return rt.destroyed?"":et.className.split(" ").filter(st=>st.indexOf("swiper-slide")===0||st.indexOf(rt.params.slideClass)===0).join(" ")}emitSlidesClasses(){const et=this;if(!et.params._emitClasses||!et.el)return;const rt=[];et.slides.forEach(st=>{const nt=et.getSlideClasses(st);rt.push({slideEl:st,classNames:nt}),et.emit("_slideClass",st,nt)}),et.emit("_slideClasses",rt)}slidesPerViewDynamic(et,rt){et===void 0&&(et="current"),rt===void 0&&(rt=!1);const st=this,{params:nt,slides:ot,slidesGrid:at,slidesSizesGrid:lt,size:ut,activeIndex:ct}=st;let dt=1;if(typeof nt.slidesPerView=="number")return nt.slidesPerView;if(nt.centeredSlides){let ht=ot[ct]?ot[ct].swiperSlideSize:0,ft;for(let xt=ct+1;xt<ot.length;xt+=1)ot[xt]&&!ft&&(ht+=ot[xt].swiperSlideSize,dt+=1,ht>ut&&(ft=!0));for(let xt=ct-1;xt>=0;xt-=1)ot[xt]&&!ft&&(ht+=ot[xt].swiperSlideSize,dt+=1,ht>ut&&(ft=!0))}else if(et==="current")for(let ht=ct+1;ht<ot.length;ht+=1)(rt?at[ht]+lt[ht]-at[ct]<ut:at[ht]-at[ct]<ut)&&(dt+=1);else for(let ht=ct-1;ht>=0;ht-=1)at[ct]-at[ht]<ut&&(dt+=1);return dt}update(){const et=this;if(!et||et.destroyed)return;const{snapGrid:rt,params:st}=et;st.breakpoints&&et.setBreakpoint(),[...et.el.querySelectorAll('[loading="lazy"]')].forEach(at=>{at.complete&&processLazyPreloader(et,at)}),et.updateSize(),et.updateSlides(),et.updateProgress(),et.updateSlidesClasses();function nt(){const at=et.rtlTranslate?et.translate*-1:et.translate,lt=Math.min(Math.max(at,et.maxTranslate()),et.minTranslate());et.setTranslate(lt),et.updateActiveIndex(),et.updateSlidesClasses()}let ot;if(st.freeMode&&st.freeMode.enabled&&!st.cssMode)nt(),st.autoHeight&&et.updateAutoHeight();else{if((st.slidesPerView==="auto"||st.slidesPerView>1)&&et.isEnd&&!st.centeredSlides){const at=et.virtual&&st.virtual.enabled?et.virtual.slides:et.slides;ot=et.slideTo(at.length-1,0,!1,!0)}else ot=et.slideTo(et.activeIndex,0,!1,!0);ot||nt()}st.watchOverflow&&rt!==et.snapGrid&&et.checkOverflow(),et.emit("update")}changeDirection(et,rt){rt===void 0&&(rt=!0);const st=this,nt=st.params.direction;return et||(et=nt==="horizontal"?"vertical":"horizontal"),et===nt||et!=="horizontal"&&et!=="vertical"||(st.el.classList.remove(`${st.params.containerModifierClass}${nt}`),st.el.classList.add(`${st.params.containerModifierClass}${et}`),st.emitContainerClasses(),st.params.direction=et,st.slides.forEach(ot=>{et==="vertical"?ot.style.width="":ot.style.height=""}),st.emit("changeDirection"),rt&&st.update()),st}changeLanguageDirection(et){const rt=this;rt.rtl&&et==="rtl"||!rt.rtl&&et==="ltr"||(rt.rtl=et==="rtl",rt.rtlTranslate=rt.params.direction==="horizontal"&&rt.rtl,rt.rtl?(rt.el.classList.add(`${rt.params.containerModifierClass}rtl`),rt.el.dir="rtl"):(rt.el.classList.remove(`${rt.params.containerModifierClass}rtl`),rt.el.dir="ltr"),rt.update())}mount(et){const rt=this;if(rt.mounted)return!0;let st=et||rt.params.el;if(typeof st=="string"&&(st=document.querySelector(st)),!st)return!1;st.swiper=rt,st.parentNode&&st.parentNode.host&&st.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(rt.isElement=!0);const nt=()=>`.${(rt.params.wrapperClass||"").trim().split(" ").join(".")}`;let at=st&&st.shadowRoot&&st.shadowRoot.querySelector?st.shadowRoot.querySelector(nt()):elementChildren(st,nt())[0];return!at&&rt.params.createElements&&(at=createElement("div",rt.params.wrapperClass),st.append(at),elementChildren(st,`.${rt.params.slideClass}`).forEach(lt=>{at.append(lt)})),Object.assign(rt,{el:st,wrapperEl:at,slidesEl:rt.isElement&&!st.parentNode.host.slideSlots?st.parentNode.host:at,hostEl:rt.isElement?st.parentNode.host:st,mounted:!0,rtl:st.dir.toLowerCase()==="rtl"||elementStyle(st,"direction")==="rtl",rtlTranslate:rt.params.direction==="horizontal"&&(st.dir.toLowerCase()==="rtl"||elementStyle(st,"direction")==="rtl"),wrongRTL:elementStyle(at,"display")==="-webkit-box"}),!0}init(et){const rt=this;if(rt.initialized||rt.mount(et)===!1)return rt;rt.emit("beforeInit"),rt.params.breakpoints&&rt.setBreakpoint(),rt.addClasses(),rt.updateSize(),rt.updateSlides(),rt.params.watchOverflow&&rt.checkOverflow(),rt.params.grabCursor&&rt.enabled&&rt.setGrabCursor(),rt.params.loop&&rt.virtual&&rt.params.virtual.enabled?rt.slideTo(rt.params.initialSlide+rt.virtual.slidesBefore,0,rt.params.runCallbacksOnInit,!1,!0):rt.slideTo(rt.params.initialSlide,0,rt.params.runCallbacksOnInit,!1,!0),rt.params.loop&&rt.loopCreate(),rt.attachEvents();const nt=[...rt.el.querySelectorAll('[loading="lazy"]')];return rt.isElement&&nt.push(...rt.hostEl.querySelectorAll('[loading="lazy"]')),nt.forEach(ot=>{ot.complete?processLazyPreloader(rt,ot):ot.addEventListener("load",at=>{processLazyPreloader(rt,at.target)})}),preload(rt),rt.initialized=!0,preload(rt),rt.emit("init"),rt.emit("afterInit"),rt}destroy(et,rt){et===void 0&&(et=!0),rt===void 0&&(rt=!0);const st=this,{params:nt,el:ot,wrapperEl:at,slides:lt}=st;return typeof st.params>"u"||st.destroyed||(st.emit("beforeDestroy"),st.initialized=!1,st.detachEvents(),nt.loop&&st.loopDestroy(),rt&&(st.removeClasses(),ot.removeAttribute("style"),at.removeAttribute("style"),lt&<.length&<.forEach(ut=>{ut.classList.remove(nt.slideVisibleClass,nt.slideActiveClass,nt.slideNextClass,nt.slidePrevClass),ut.removeAttribute("style"),ut.removeAttribute("data-swiper-slide-index")})),st.emit("destroy"),Object.keys(st.eventsListeners).forEach(ut=>{st.off(ut)}),et!==!1&&(st.el.swiper=null,deleteProps(st)),st.destroyed=!0),null}static extendDefaults(et){extend$1(extendedDefaults,et)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults$3}static installModule(et){Ao.prototype.__modules__||(Ao.prototype.__modules__=[]);const rt=Ao.prototype.__modules__;typeof et=="function"&&rt.indexOf(et)<0&&rt.push(et)}static use(et){return Array.isArray(et)?(et.forEach(rt=>Ao.installModule(rt)),Ao):(Ao.installModule(et),Ao)}};Object.keys(prototypes).forEach(tt=>{Object.keys(prototypes[tt]).forEach(et=>{Swiper$1.prototype[et]=prototypes[tt][et]})});Swiper$1.use([Resize,Observer]);const paramsList=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function isObject$1(tt){return typeof tt=="object"&&tt!==null&&tt.constructor&&Object.prototype.toString.call(tt).slice(8,-1)==="Object"&&!tt.__swiper__}function extend(tt,et){const rt=["__proto__","constructor","prototype"];Object.keys(et).filter(st=>rt.indexOf(st)<0).forEach(st=>{typeof tt[st]>"u"?tt[st]=et[st]:isObject$1(et[st])&&isObject$1(tt[st])&&Object.keys(et[st]).length>0?et[st].__swiper__?tt[st]=et[st]:extend(tt[st],et[st]):tt[st]=et[st]})}function needsNavigation(tt){return tt===void 0&&(tt={}),tt.navigation&&typeof tt.navigation.nextEl>"u"&&typeof tt.navigation.prevEl>"u"}function needsPagination(tt){return tt===void 0&&(tt={}),tt.pagination&&typeof tt.pagination.el>"u"}function needsScrollbar(tt){return tt===void 0&&(tt={}),tt.scrollbar&&typeof tt.scrollbar.el>"u"}function uniqueClasses(tt){tt===void 0&&(tt="");const et=tt.split(" ").map(st=>st.trim()).filter(st=>!!st),rt=[];return et.forEach(st=>{rt.indexOf(st)<0&&rt.push(st)}),rt.join(" ")}function wrapperClass(tt){return tt===void 0&&(tt=""),tt?tt.includes("swiper-wrapper")?tt:`swiper-wrapper ${tt}`:"swiper-wrapper"}function updateSwiper(tt){let{swiper:et,slides:rt,passedParams:st,changedParams:nt,nextEl:ot,prevEl:at,scrollbarEl:lt,paginationEl:ut}=tt;const ct=nt.filter(Ot=>Ot!=="children"&&Ot!=="direction"&&Ot!=="wrapperClass"),{params:dt,pagination:ht,navigation:ft,scrollbar:xt,virtual:yt,thumbs:vt}=et;let Et,bt,wt,St,Rt,Ct,jt,It;nt.includes("thumbs")&&st.thumbs&&st.thumbs.swiper&&dt.thumbs&&!dt.thumbs.swiper&&(Et=!0),nt.includes("controller")&&st.controller&&st.controller.control&&dt.controller&&!dt.controller.control&&(bt=!0),nt.includes("pagination")&&st.pagination&&(st.pagination.el||ut)&&(dt.pagination||dt.pagination===!1)&&ht&&!ht.el&&(wt=!0),nt.includes("scrollbar")&&st.scrollbar&&(st.scrollbar.el||lt)&&(dt.scrollbar||dt.scrollbar===!1)&&xt&&!xt.el&&(St=!0),nt.includes("navigation")&&st.navigation&&(st.navigation.prevEl||at)&&(st.navigation.nextEl||ot)&&(dt.navigation||dt.navigation===!1)&&ft&&!ft.prevEl&&!ft.nextEl&&(Rt=!0);const Pt=Ot=>{et[Ot]&&(et[Ot].destroy(),Ot==="navigation"?(et.isElement&&(et[Ot].prevEl.remove(),et[Ot].nextEl.remove()),dt[Ot].prevEl=void 0,dt[Ot].nextEl=void 0,et[Ot].prevEl=void 0,et[Ot].nextEl=void 0):(et.isElement&&et[Ot].el.remove(),dt[Ot].el=void 0,et[Ot].el=void 0))};nt.includes("loop")&&et.isElement&&(dt.loop&&!st.loop?Ct=!0:!dt.loop&&st.loop?jt=!0:It=!0),ct.forEach(Ot=>{if(isObject$1(dt[Ot])&&isObject$1(st[Ot]))extend(dt[Ot],st[Ot]),(Ot==="navigation"||Ot==="pagination"||Ot==="scrollbar")&&"enabled"in st[Ot]&&!st[Ot].enabled&&Pt(Ot);else{const Ut=st[Ot];(Ut===!0||Ut===!1)&&(Ot==="navigation"||Ot==="pagination"||Ot==="scrollbar")?Ut===!1&&Pt(Ot):dt[Ot]=st[Ot]}}),ct.includes("controller")&&!bt&&et.controller&&et.controller.control&&dt.controller&&dt.controller.control&&(et.controller.control=dt.controller.control),nt.includes("children")&&rt&&yt&&dt.virtual.enabled&&(yt.slides=rt,yt.update(!0)),nt.includes("children")&&rt&&dt.loop&&(It=!0),Et&&vt.init()&&vt.update(!0),bt&&(et.controller.control=dt.controller.control),wt&&(et.isElement&&(!ut||typeof ut=="string")&&(ut=document.createElement("div"),ut.classList.add("swiper-pagination"),ut.part.add("pagination"),et.el.appendChild(ut)),ut&&(dt.pagination.el=ut),ht.init(),ht.render(),ht.update()),St&&(et.isElement&&(!lt||typeof lt=="string")&&(lt=document.createElement("div"),lt.classList.add("swiper-scrollbar"),lt.part.add("scrollbar"),et.el.appendChild(lt)),lt&&(dt.scrollbar.el=lt),xt.init(),xt.updateSize(),xt.setTranslate()),Rt&&(et.isElement&&((!ot||typeof ot=="string")&&(ot=document.createElement("div"),ot.classList.add("swiper-button-next"),ot.innerHTML=et.hostEl.constructor.nextButtonSvg,ot.part.add("button-next"),et.el.appendChild(ot)),(!at||typeof at=="string")&&(at=document.createElement("div"),at.classList.add("swiper-button-prev"),at.innerHTML=et.hostEl.constructor.prevButtonSvg,at.part.add("button-prev"),et.el.appendChild(at))),ot&&(dt.navigation.nextEl=ot),at&&(dt.navigation.prevEl=at),ft.init(),ft.update()),nt.includes("allowSlideNext")&&(et.allowSlideNext=st.allowSlideNext),nt.includes("allowSlidePrev")&&(et.allowSlidePrev=st.allowSlidePrev),nt.includes("direction")&&et.changeDirection(st.direction,!1),(Ct||It)&&et.loopDestroy(),(jt||It)&&et.loopCreate(),et.update()}function getParams(tt,et){tt===void 0&&(tt={}),et===void 0&&(et=!0);const rt={on:{}},st={},nt={};extend(rt,defaults$3),rt._emitClasses=!0,rt.init=!1;const ot={},at=paramsList.map(ut=>ut.replace(/_/,"")),lt=Object.assign({},tt);return Object.keys(lt).forEach(ut=>{typeof tt[ut]>"u"||(at.indexOf(ut)>=0?isObject$1(tt[ut])?(rt[ut]={},nt[ut]={},extend(rt[ut],tt[ut]),extend(nt[ut],tt[ut])):(rt[ut]=tt[ut],nt[ut]=tt[ut]):ut.search(/on[A-Z]/)===0&&typeof tt[ut]=="function"?et?st[`${ut[2].toLowerCase()}${ut.substr(3)}`]=tt[ut]:rt.on[`${ut[2].toLowerCase()}${ut.substr(3)}`]=tt[ut]:ot[ut]=tt[ut])}),["navigation","pagination","scrollbar"].forEach(ut=>{rt[ut]===!0&&(rt[ut]={}),rt[ut]===!1&&delete rt[ut]}),{params:rt,passedParams:nt,rest:ot,events:st}}function mountSwiper(tt,et){let{el:rt,nextEl:st,prevEl:nt,paginationEl:ot,scrollbarEl:at,swiper:lt}=tt;needsNavigation(et)&&st&&nt&&(lt.params.navigation.nextEl=st,lt.originalParams.navigation.nextEl=st,lt.params.navigation.prevEl=nt,lt.originalParams.navigation.prevEl=nt),needsPagination(et)&&ot&&(lt.params.pagination.el=ot,lt.originalParams.pagination.el=ot),needsScrollbar(et)&&at&&(lt.params.scrollbar.el=at,lt.originalParams.scrollbar.el=at),lt.init(rt)}function getChangedParams(tt,et,rt,st,nt){const ot=[];if(!et)return ot;const at=ut=>{ot.indexOf(ut)<0&&ot.push(ut)};if(rt&&st){const ut=st.map(nt),ct=rt.map(nt);ut.join("")!==ct.join("")&&at("children"),st.length!==rt.length&&at("children")}return paramsList.filter(ut=>ut[0]==="_").map(ut=>ut.replace(/_/,"")).forEach(ut=>{if(ut in tt&&ut in et)if(isObject$1(tt[ut])&&isObject$1(et[ut])){const ct=Object.keys(tt[ut]),dt=Object.keys(et[ut]);ct.length!==dt.length?at(ut):(ct.forEach(ht=>{tt[ut][ht]!==et[ut][ht]&&at(ut)}),dt.forEach(ht=>{tt[ut][ht]!==et[ut][ht]&&at(ut)}))}else tt[ut]!==et[ut]&&at(ut)}),ot}const updateOnVirtualData=tt=>{!tt||tt.destroyed||!tt.params.virtual||tt.params.virtual&&!tt.params.virtual.enabled||(tt.updateSlides(),tt.updateProgress(),tt.updateSlidesClasses(),tt.parallax&&tt.params.parallax&&tt.params.parallax.enabled&&tt.parallax.setTranslate())};function _extends(){return _extends=Object.assign?Object.assign.bind():function(tt){for(var et=1;et<arguments.length;et++){var rt=arguments[et];for(var st in rt)Object.prototype.hasOwnProperty.call(rt,st)&&(tt[st]=rt[st])}return tt},_extends.apply(this,arguments)}function isChildSwiperSlide(tt){return tt.type&&tt.type.displayName&&tt.type.displayName.includes("SwiperSlide")}function processChildren(tt){const et=[];return React$4.Children.toArray(tt).forEach(rt=>{isChildSwiperSlide(rt)?et.push(rt):rt.props&&rt.props.children&&processChildren(rt.props.children).forEach(st=>et.push(st))}),et}function getChildren(tt){const et=[],rt={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return React$4.Children.toArray(tt).forEach(st=>{if(isChildSwiperSlide(st))et.push(st);else if(st.props&&st.props.slot&&rt[st.props.slot])rt[st.props.slot].push(st);else if(st.props&&st.props.children){const nt=processChildren(st.props.children);nt.length>0?nt.forEach(ot=>et.push(ot)):rt["container-end"].push(st)}else rt["container-end"].push(st)}),{slides:et,slots:rt}}function renderVirtual(tt,et,rt){if(!rt)return null;const st=dt=>{let ht=dt;return dt<0?ht=et.length+dt:ht>=et.length&&(ht=ht-et.length),ht},nt=tt.isHorizontal()?{[tt.rtlTranslate?"right":"left"]:`${rt.offset}px`}:{top:`${rt.offset}px`},{from:ot,to:at}=rt,lt=tt.params.loop?-et.length:0,ut=tt.params.loop?et.length*2:et.length,ct=[];for(let dt=lt;dt<ut;dt+=1)dt>=ot&&dt<=at&&ct.push(et[st(dt)]);return ct.map((dt,ht)=>React$4.cloneElement(dt,{swiper:tt,style:nt,key:`slide-${ht}`}))}function useIsomorphicLayoutEffect$1(tt,et){return typeof window>"u"?reactExports.useEffect(tt,et):reactExports.useLayoutEffect(tt,et)}const SwiperSlideContext=reactExports.createContext(null),SwiperContext=reactExports.createContext(null),Swiper=reactExports.forwardRef(function(tt,et){let{className:rt,tag:st="div",wrapperTag:nt="div",children:ot,onSwiper:at,...lt}=tt===void 0?{}:tt,ut=!1;const[ct,dt]=reactExports.useState("swiper"),[ht,ft]=reactExports.useState(null),[xt,yt]=reactExports.useState(!1),vt=reactExports.useRef(!1),Et=reactExports.useRef(null),bt=reactExports.useRef(null),wt=reactExports.useRef(null),St=reactExports.useRef(null),Rt=reactExports.useRef(null),Ct=reactExports.useRef(null),jt=reactExports.useRef(null),It=reactExports.useRef(null),{params:Pt,passedParams:Ot,rest:Ut,events:Nt}=getParams(lt),{slides:Ht,slots:Lt}=getChildren(ot),kt=()=>{yt(!xt)};Object.assign(Pt.on,{_containerClasses(Vt,Bt){dt(Bt)}});const $t=()=>{Object.assign(Pt.on,Nt),ut=!0;const Vt={...Pt};if(delete Vt.wrapperClass,bt.current=new Swiper$1(Vt),bt.current.virtual&&bt.current.params.virtual.enabled){bt.current.virtual.slides=Ht;const Bt={cache:!1,slides:Ht,renderExternal:ft,renderExternalUpdate:!1};extend(bt.current.params.virtual,Bt),extend(bt.current.originalParams.virtual,Bt)}};Et.current||$t(),bt.current&&bt.current.on("_beforeBreakpoint",kt);const Ft=()=>{ut||!Nt||!bt.current||Object.keys(Nt).forEach(Vt=>{bt.current.on(Vt,Nt[Vt])})},Gt=()=>{!Nt||!bt.current||Object.keys(Nt).forEach(Vt=>{bt.current.off(Vt,Nt[Vt])})};reactExports.useEffect(()=>()=>{bt.current&&bt.current.off("_beforeBreakpoint",kt)}),reactExports.useEffect(()=>{!vt.current&&bt.current&&(bt.current.emitSlidesClasses(),vt.current=!0)}),useIsomorphicLayoutEffect$1(()=>{if(et&&(et.current=Et.current),!!Et.current)return bt.current.destroyed&&$t(),mountSwiper({el:Et.current,nextEl:Rt.current,prevEl:Ct.current,paginationEl:jt.current,scrollbarEl:It.current,swiper:bt.current},Pt),at&&at(bt.current),()=>{bt.current&&!bt.current.destroyed&&bt.current.destroy(!0,!1)}},[]),useIsomorphicLayoutEffect$1(()=>{Ft();const Vt=getChangedParams(Ot,wt.current,Ht,St.current,Bt=>Bt.key);return wt.current=Ot,St.current=Ht,Vt.length&&bt.current&&!bt.current.destroyed&&updateSwiper({swiper:bt.current,slides:Ht,passedParams:Ot,changedParams:Vt,nextEl:Rt.current,prevEl:Ct.current,scrollbarEl:It.current,paginationEl:jt.current}),()=>{Gt()}}),useIsomorphicLayoutEffect$1(()=>{updateOnVirtualData(bt.current)},[ht]);function Mt(){return Pt.virtual?renderVirtual(bt.current,Ht,ht):Ht.map((Vt,Bt)=>React$4.cloneElement(Vt,{swiper:bt.current,swiperSlideIndex:Bt}))}return React$4.createElement(st,_extends({ref:Et,className:uniqueClasses(`${ct}${rt?` ${rt}`:""}`)},Ut),React$4.createElement(SwiperContext.Provider,{value:bt.current},Lt["container-start"],React$4.createElement(nt,{className:wrapperClass(Pt.wrapperClass)},Lt["wrapper-start"],Mt(),Lt["wrapper-end"]),needsNavigation(Pt)&&React$4.createElement(React$4.Fragment,null,React$4.createElement("div",{ref:Ct,className:"swiper-button-prev"}),React$4.createElement("div",{ref:Rt,className:"swiper-button-next"})),needsScrollbar(Pt)&&React$4.createElement("div",{ref:It,className:"swiper-scrollbar"}),needsPagination(Pt)&&React$4.createElement("div",{ref:jt,className:"swiper-pagination"}),Lt["container-end"]))});Swiper.displayName="Swiper";const SwiperSlide=reactExports.forwardRef(function(tt,et){let{tag:rt="div",children:st,className:nt="",swiper:ot,zoom:at,lazy:lt,virtualIndex:ut,swiperSlideIndex:ct,...dt}=tt===void 0?{}:tt;const ht=reactExports.useRef(null),[ft,xt]=reactExports.useState("swiper-slide"),[yt,vt]=reactExports.useState(!1);function Et(Rt,Ct,jt){Ct===ht.current&&xt(jt)}useIsomorphicLayoutEffect$1(()=>{if(typeof ct<"u"&&(ht.current.swiperSlideIndex=ct),et&&(et.current=ht.current),!(!ht.current||!ot)){if(ot.destroyed){ft!=="swiper-slide"&&xt("swiper-slide");return}return ot.on("_slideClass",Et),()=>{ot&&ot.off("_slideClass",Et)}}}),useIsomorphicLayoutEffect$1(()=>{ot&&ht.current&&!ot.destroyed&&xt(ot.getSlideClasses(ht.current))},[ot]);const bt={isActive:ft.indexOf("swiper-slide-active")>=0,isVisible:ft.indexOf("swiper-slide-visible")>=0,isPrev:ft.indexOf("swiper-slide-prev")>=0,isNext:ft.indexOf("swiper-slide-next")>=0},wt=()=>typeof st=="function"?st(bt):st,St=()=>{vt(!0)};return React$4.createElement(rt,_extends({ref:ht,className:uniqueClasses(`${ft}${nt?` ${nt}`:""}`),"data-swiper-slide-index":ut,onLoad:St},dt),at&&React$4.createElement(SwiperSlideContext.Provider,{value:bt},React$4.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof at=="number"?at:void 0},wt(),lt&&!yt&&React$4.createElement("div",{className:"swiper-lazy-preloader"}))),!at&&React$4.createElement(SwiperSlideContext.Provider,{value:bt},wt(),lt&&!yt&&React$4.createElement("div",{className:"swiper-lazy-preloader"})))});SwiperSlide.displayName="SwiperSlide";const getOnboardingTrash=async tt=>await odeServices.conf().getPreference(tt),saveOnboardingTrash=async tt=>await odeServices.conf().savePreference(tt,JSON.stringify({key:!1})),useOnboardingModal=tt=>{const[et,rt]=reactExports.useState(!1),[st,nt]=reactExports.useState(!1);return reactExports.useEffect(()=>{(async()=>{const ot=await getOnboardingTrash(tt);if(ot){const{key:at}=ot;at===!0&&rt(!0),nt(at);return}nt(!0),rt(!0)})()},[tt]),{isOpen:et,setIsOpen:rt,isOnboarding:st,handleSavePreference:async()=>{await saveOnboardingTrash(tt),rt(!1),nt(!1)}}},OnboardingModal$2=reactExports.forwardRef(({id:tt,items:et,modalOptions:rt={},isOnboardingChange:st},nt)=>{var ot;const[at,lt]=reactExports.useState(),[ut,ct]=reactExports.useState(0),{isOpen:dt,isOnboarding:ht,setIsOpen:ft,handleSavePreference:xt}=useOnboardingModal(tt);reactExports.useImperativeHandle(nt,()=>({setIsOpen:ft,handleSavePreference:xt})),reactExports.useEffect(()=>{st&&st(ht)},[ht,st]),reactExports.useEffect(()=>{const jt=document.createElement("link");return jt.href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css",jt.rel="stylesheet",jt.type="text/css",document.head.appendChild(jt),()=>{document.head.removeChild(jt)}},[]);const{t:yt}=useTranslation(),{title:vt,prevText:Et,closeText:bt,nextText:wt}=rt,St=(at==null?void 0:at.activeIndex)!=null&&(ot=et[at==null?void 0:at.activeIndex])!=null&&ot.title?et[at.activeIndex].title:vt,Rt=()=>{xt(),ct(0)},Ct=()=>{ft(!1),ct(0)};return reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal,{id:"onboarding-modal",size:"md",isOpen:dt,focusId:"nextButtonId",onModalClose:Ct,children:[jsxRuntimeExports.jsx(Modal.Header,{onModalClose:Ct,centered:!0,children:yt(St||"explorer.modal.onboarding.trash.title")}),jsxRuntimeExports.jsx(Modal.Body,{children:jsxRuntimeExports.jsx(Swiper,{modules:[Pagination],onSwiper:jt=>{lt(jt)},onSlideChange:jt=>{ct(jt.progress)},pagination:{clickable:!0},children:et.map((jt,It)=>jsxRuntimeExports.jsxs(SwiperSlide,{children:[jsxRuntimeExports.jsx(Image$1,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:jt.src,alt:yt(jt.alt)}),jsxRuntimeExports.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:yt(jt.text)}})]},It))})}),jsxRuntimeExports.jsxs(Modal.Footer,{children:[jsxRuntimeExports.jsx(Button,{type:"button",color:"tertiary",variant:"ghost",onClick:Ct,children:yt("explorer.modal.onboarding.trash.later")}),ut>0&&jsxRuntimeExports.jsx(Button,{type:"button",color:"primary",variant:"outline",onClick:()=>at.slidePrev(),children:yt(Et||"explorer.modal.onboarding.trash.prev")}),ut<1&&jsxRuntimeExports.jsx(Button,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>at.slideNext(),children:yt(wt||"explorer.modal.onboarding.trash.next")}),ut===1&&jsxRuntimeExports.jsx(Button,{type:"button",color:"primary",variant:"filled",onClick:()=>{ht?Rt():Ct()},children:yt(bt||"explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")||document.body)});var isCheckBoxInput=tt=>tt.type==="checkbox",isDateObject=tt=>tt instanceof Date,isNullOrUndefined=tt=>tt==null;const isObjectType=tt=>typeof tt=="object";var isObject=tt=>!isNullOrUndefined(tt)&&!Array.isArray(tt)&&isObjectType(tt)&&!isDateObject(tt),getEventValue=tt=>isObject(tt)&&tt.target?isCheckBoxInput(tt.target)?tt.target.checked:tt.target.value:tt,getNodeParentName=tt=>tt.substring(0,tt.search(/\.\d+(\.|$)/))||tt,isNameInFieldArray=(tt,et)=>tt.has(getNodeParentName(et)),isPlainObject=tt=>{const et=tt.constructor&&tt.constructor.prototype;return isObject(et)&&et.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(tt){let et;const rt=Array.isArray(tt),st=typeof FileList<"u"?tt instanceof FileList:!1;if(tt instanceof Date)et=new Date(tt);else if(!(isWeb&&(tt instanceof Blob||st))&&(rt||isObject(tt)))if(et=rt?[]:Object.create(Object.getPrototypeOf(tt)),!rt&&!isPlainObject(tt))et=tt;else for(const nt in tt)tt.hasOwnProperty(nt)&&(et[nt]=cloneObject(tt[nt]));else return tt;return et}var isKey=tt=>/^\w*$/.test(tt),isUndefined=tt=>tt===void 0,compact$1=tt=>Array.isArray(tt)?tt.filter(Boolean):[],stringToPath$1=tt=>compact$1(tt.replace(/["|']|\]/g,"").split(/\.|\[/)),get$1=(tt,et,rt)=>{if(!et||!isObject(tt))return rt;const st=(isKey(et)?[et]:stringToPath$1(et)).reduce((nt,ot)=>isNullOrUndefined(nt)?nt:nt[ot],tt);return isUndefined(st)||st===tt?isUndefined(tt[et])?rt:tt[et]:st},isBoolean$1=tt=>typeof tt=="boolean",set=(tt,et,rt)=>{let st=-1;const nt=isKey(et)?[et]:stringToPath$1(et),ot=nt.length,at=ot-1;for(;++st<ot;){const lt=nt[st];let ut=rt;if(st!==at){const ct=tt[lt];ut=isObject(ct)||Array.isArray(ct)?ct:isNaN(+nt[st+1])?{}:[]}if(lt==="__proto__"||lt==="constructor"||lt==="prototype")return;tt[lt]=ut,tt=tt[lt]}};const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React$4.createContext(null);HookFormContext.displayName="HookFormContext";const useFormContext=()=>React$4.useContext(HookFormContext);var getProxyFormState=(tt,et,rt,st=!0)=>{const nt={defaultValues:et._defaultValues};for(const ot in tt)Object.defineProperty(nt,ot,{get:()=>{const at=ot;return et._proxyFormState[at]!==VALIDATION_MODE.all&&(et._proxyFormState[at]=!st||VALIDATION_MODE.all),rt&&(rt[at]=!0),tt[at]}});return nt};const useIsomorphicLayoutEffect=typeof window<"u"?React$4.useLayoutEffect:React$4.useEffect;function useFormState(tt){const et=useFormContext(),{control:rt=et.control,disabled:st,name:nt,exact:ot}=tt||{},[at,lt]=React$4.useState(rt._formState),ut=React$4.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return useIsomorphicLayoutEffect(()=>rt._subscribe({name:nt,formState:ut.current,exact:ot,callback:ct=>{!st&<({...rt._formState,...ct})}}),[nt,st,ot]),React$4.useEffect(()=>{ut.current.isValid&&rt._setValid(!0)},[rt]),React$4.useMemo(()=>getProxyFormState(at,rt,ut.current,!1),[at,rt])}var isString$1=tt=>typeof tt=="string",generateWatchOutput=(tt,et,rt,st,nt)=>isString$1(tt)?(st&&et.watch.add(tt),get$1(rt,tt,nt)):Array.isArray(tt)?tt.map(ot=>(st&&et.watch.add(ot),get$1(rt,ot))):(st&&(et.watchAll=!0),rt),isPrimitive=tt=>isNullOrUndefined(tt)||!isObjectType(tt);function deepEqual(tt,et,rt=new WeakSet){if(isPrimitive(tt)||isPrimitive(et))return tt===et;if(isDateObject(tt)&&isDateObject(et))return tt.getTime()===et.getTime();const st=Object.keys(tt),nt=Object.keys(et);if(st.length!==nt.length)return!1;if(rt.has(tt)||rt.has(et))return!0;rt.add(tt),rt.add(et);for(const ot of st){const at=tt[ot];if(!nt.includes(ot))return!1;if(ot!=="ref"){const lt=et[ot];if(isDateObject(at)&&isDateObject(lt)||isObject(at)&&isObject(lt)||Array.isArray(at)&&Array.isArray(lt)?!deepEqual(at,lt,rt):at!==lt)return!1}}return!0}function useWatch(tt){const et=useFormContext(),{control:rt=et.control,name:st,defaultValue:nt,disabled:ot,exact:at,compute:lt}=tt||{},ut=React$4.useRef(nt),ct=React$4.useRef(lt),dt=React$4.useRef(void 0),ht=React$4.useRef(rt),ft=React$4.useRef(st);ct.current=lt;const[xt,yt]=React$4.useState(()=>{const Rt=rt._getWatch(st,ut.current);return ct.current?ct.current(Rt):Rt}),vt=React$4.useCallback(Rt=>{const Ct=generateWatchOutput(st,rt._names,Rt||rt._formValues,!1,ut.current);return ct.current?ct.current(Ct):Ct},[rt._formValues,rt._names,st]),Et=React$4.useCallback(Rt=>{if(!ot){const Ct=generateWatchOutput(st,rt._names,Rt||rt._formValues,!1,ut.current);if(ct.current){const jt=ct.current(Ct);deepEqual(jt,dt.current)||(yt(jt),dt.current=jt)}else yt(Ct)}},[rt._formValues,rt._names,ot,st]);useIsomorphicLayoutEffect(()=>((ht.current!==rt||!deepEqual(ft.current,st))&&(ht.current=rt,ft.current=st,Et()),rt._subscribe({name:st,formState:{values:!0},exact:at,callback:Rt=>{Et(Rt.values)}})),[rt,at,st,Et]),React$4.useEffect(()=>rt._removeUnmounted());const bt=ht.current!==rt,wt=ft.current,St=React$4.useMemo(()=>{if(ot)return null;const Rt=!bt&&!deepEqual(wt,st);return bt||Rt?vt():null},[ot,bt,st,wt,vt]);return St!==null?St:xt}function useController(tt){const et=useFormContext(),{name:rt,disabled:st,control:nt=et.control,shouldUnregister:ot,defaultValue:at}=tt,lt=isNameInFieldArray(nt._names.array,rt),ut=React$4.useMemo(()=>get$1(nt._formValues,rt,get$1(nt._defaultValues,rt,at)),[nt,rt,at]),ct=useWatch({control:nt,name:rt,defaultValue:ut,exact:!0}),dt=useFormState({control:nt,name:rt,exact:!0}),ht=React$4.useRef(tt),ft=React$4.useRef(void 0),xt=React$4.useRef(nt.register(rt,{...tt.rules,value:ct,...isBoolean$1(tt.disabled)?{disabled:tt.disabled}:{}}));ht.current=tt;const yt=React$4.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get$1(dt.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get$1(dt.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get$1(dt.touchedFields,rt)},isValidating:{enumerable:!0,get:()=>!!get$1(dt.validatingFields,rt)},error:{enumerable:!0,get:()=>get$1(dt.errors,rt)}}),[dt,rt]),vt=React$4.useCallback(St=>xt.current.onChange({target:{value:getEventValue(St),name:rt},type:EVENTS.CHANGE}),[rt]),Et=React$4.useCallback(()=>xt.current.onBlur({target:{value:get$1(nt._formValues,rt),name:rt},type:EVENTS.BLUR}),[rt,nt._formValues]),bt=React$4.useCallback(St=>{const Rt=get$1(nt._fields,rt);Rt&&St&&(Rt._f.ref={focus:()=>St.focus&&St.focus(),select:()=>St.select&&St.select(),setCustomValidity:Ct=>St.setCustomValidity(Ct),reportValidity:()=>St.reportValidity()})},[nt._fields,rt]),wt=React$4.useMemo(()=>({name:rt,value:ct,...isBoolean$1(st)||dt.disabled?{disabled:dt.disabled||st}:{},onChange:vt,onBlur:Et,ref:bt}),[rt,st,dt.disabled,vt,Et,bt,ct]);return React$4.useEffect(()=>{const St=nt._options.shouldUnregister||ot,Rt=ft.current;Rt&&Rt!==rt&&!lt&&nt.unregister(Rt),nt.register(rt,{...ht.current.rules,...isBoolean$1(ht.current.disabled)?{disabled:ht.current.disabled}:{}});const Ct=(jt,It)=>{const Pt=get$1(nt._fields,jt);Pt&&Pt._f&&(Pt._f.mount=It)};if(Ct(rt,!0),St){const jt=cloneObject(get$1(nt._options.defaultValues,rt,ht.current.defaultValue));set(nt._defaultValues,rt,jt),isUndefined(get$1(nt._formValues,rt))&&set(nt._formValues,rt,jt)}return!lt&&nt.register(rt),ft.current=rt,()=>{(lt?St&&!nt._state.action:St)?nt.unregister(rt):Ct(rt,!1)}},[rt,nt,lt,ot]),React$4.useEffect(()=>{nt._setDisabledField({disabled:st,name:rt})},[st,rt,nt]),React$4.useMemo(()=>({field:wt,formState:dt,fieldState:yt}),[wt,dt,yt])}const Controller=tt=>tt.render(useController(tt));var appendErrors=(tt,et,rt,st,nt)=>et?{...rt[tt],types:{...rt[tt]&&rt[tt].types?rt[tt].types:{},[st]:nt||!0}}:{},convertToArrayPayload=tt=>Array.isArray(tt)?tt:[tt],createSubject=()=>{let tt=[];return{get observers(){return tt},next:nt=>{for(const ot of tt)ot.next&&ot.next(nt)},subscribe:nt=>(tt.push(nt),{unsubscribe:()=>{tt=tt.filter(ot=>ot!==nt)}}),unsubscribe:()=>{tt=[]}}};function extractFormValues(tt,et){const rt={};for(const st in tt)if(tt.hasOwnProperty(st)){const nt=tt[st],ot=et[st];if(nt&&isObject(nt)&&ot){const at=extractFormValues(nt,ot);isObject(at)&&(rt[st]=at)}else tt[st]&&(rt[st]=ot)}return rt}var isEmptyObject=tt=>isObject(tt)&&!Object.keys(tt).length,isFileInput=tt=>tt.type==="file",isFunction=tt=>typeof tt=="function",isHTMLElement=tt=>{if(!isWeb)return!1;const et=tt?tt.ownerDocument:0;return tt instanceof(et&&et.defaultView?et.defaultView.HTMLElement:HTMLElement)},isMultipleSelect=tt=>tt.type==="select-multiple",isRadioInput=tt=>tt.type==="radio",isRadioOrCheckbox=tt=>isRadioInput(tt)||isCheckBoxInput(tt),live=tt=>isHTMLElement(tt)&&tt.isConnected;function baseGet(tt,et){const rt=et.slice(0,-1).length;let st=0;for(;st<rt;)tt=isUndefined(tt)?st++:tt[et[st++]];return tt}function isEmptyArray(tt){for(const et in tt)if(tt.hasOwnProperty(et)&&!isUndefined(tt[et]))return!1;return!0}function unset(tt,et){const rt=Array.isArray(et)?et:isKey(et)?[et]:stringToPath$1(et),st=rt.length===1?tt:baseGet(tt,rt),nt=rt.length-1,ot=rt[nt];return st&&delete st[ot],nt!==0&&(isObject(st)&&isEmptyObject(st)||Array.isArray(st)&&isEmptyArray(st))&&unset(tt,rt.slice(0,-1)),tt}var objectHasFunction=tt=>{for(const et in tt)if(isFunction(tt[et]))return!0;return!1};function isTraversable(tt){return Array.isArray(tt)||isObject(tt)&&!objectHasFunction(tt)}function markFieldsDirty(tt,et={}){for(const rt in tt)isTraversable(tt[rt])?(et[rt]=Array.isArray(tt[rt])?[]:{},markFieldsDirty(tt[rt],et[rt])):isUndefined(tt[rt])||(et[rt]=!0);return et}function getDirtyFields(tt,et,rt){rt||(rt=markFieldsDirty(et));for(const st in tt)isTraversable(tt[st])?isUndefined(et)||isPrimitive(rt[st])?rt[st]=markFieldsDirty(tt[st],Array.isArray(tt[st])?[]:{}):getDirtyFields(tt[st],isNullOrUndefined(et)?{}:et[st],rt[st]):rt[st]=!deepEqual(tt[st],et[st]);return rt}const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=tt=>{if(Array.isArray(tt)){if(tt.length>1){const et=tt.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:et,isValid:!!et.length}}return tt[0].checked&&!tt[0].disabled?tt[0].attributes&&!isUndefined(tt[0].attributes.value)?isUndefined(tt[0].value)||tt[0].value===""?validResult:{value:tt[0].value,isValid:!0}:validResult:defaultResult}return defaultResult},getFieldValueAs=(tt,{valueAsNumber:et,valueAsDate:rt,setValueAs:st})=>isUndefined(tt)?tt:et?tt===""?NaN:tt&&+tt:rt&&isString$1(tt)?new Date(tt):st?st(tt):tt;const defaultReturn={isValid:!1,value:null};var getRadioValue=tt=>Array.isArray(tt)?tt.reduce((et,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:et,defaultReturn):defaultReturn;function getFieldValue(tt){const et=tt.ref;return isFileInput(et)?et.files:isRadioInput(et)?getRadioValue(tt.refs).value:isMultipleSelect(et)?[...et.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(et)?getCheckboxValue(tt.refs).value:getFieldValueAs(isUndefined(et.value)?tt.ref.value:et.value,tt)}var getResolverOptions=(tt,et,rt,st)=>{const nt={};for(const ot of tt){const at=get$1(et,ot);at&&set(nt,ot,at._f)}return{criteriaMode:rt,names:[...tt],fields:nt,shouldUseNativeValidation:st}},isRegex=tt=>tt instanceof RegExp,getRuleValue=tt=>isUndefined(tt)?tt:isRegex(tt)?tt.source:isObject(tt)?isRegex(tt.value)?tt.value.source:tt.value:tt,getValidationModes=tt=>({isOnSubmit:!tt||tt===VALIDATION_MODE.onSubmit,isOnBlur:tt===VALIDATION_MODE.onBlur,isOnChange:tt===VALIDATION_MODE.onChange,isOnAll:tt===VALIDATION_MODE.all,isOnTouch:tt===VALIDATION_MODE.onTouched});const ASYNC_FUNCTION="AsyncFunction";var hasPromiseValidation=tt=>!!tt&&!!tt.validate&&!!(isFunction(tt.validate)&&tt.validate.constructor.name===ASYNC_FUNCTION||isObject(tt.validate)&&Object.values(tt.validate).find(et=>et.constructor.name===ASYNC_FUNCTION)),hasValidation=tt=>tt.mount&&(tt.required||tt.min||tt.max||tt.maxLength||tt.minLength||tt.pattern||tt.validate),isWatched=(tt,et,rt)=>!rt&&(et.watchAll||et.watch.has(tt)||[...et.watch].some(st=>tt.startsWith(st)&&/^\.\w+/.test(tt.slice(st.length))));const iterateFieldsByAction=(tt,et,rt,st)=>{for(const nt of rt||Object.keys(tt)){const ot=get$1(tt,nt);if(ot){const{_f:at,...lt}=ot;if(at){if(at.refs&&at.refs[0]&&et(at.refs[0],nt)&&!st)return!0;if(at.ref&&et(at.ref,at.name)&&!st)return!0;if(iterateFieldsByAction(lt,et))break}else if(isObject(lt)&&iterateFieldsByAction(lt,et))break}}};function schemaErrorLookup(tt,et,rt){const st=get$1(tt,rt);if(st||isKey(rt))return{error:st,name:rt};const nt=rt.split(".");for(;nt.length;){const ot=nt.join("."),at=get$1(et,ot),lt=get$1(tt,ot);if(at&&!Array.isArray(at)&&rt!==ot)return{name:rt};if(lt&<.type)return{name:ot,error:lt};if(lt&<.root&<.root.type)return{name:`${ot}.root`,error:lt.root};nt.pop()}return{name:rt}}var shouldRenderFormState=(tt,et,rt,st)=>{rt(tt);const{name:nt,...ot}=tt;return isEmptyObject(ot)||Object.keys(ot).length>=Object.keys(et).length||Object.keys(ot).find(at=>et[at]===(!st||VALIDATION_MODE.all))},shouldSubscribeByName=(tt,et,rt)=>!tt||!et||tt===et||convertToArrayPayload(tt).some(st=>st&&(rt?st===et:st.startsWith(et)||et.startsWith(st))),skipValidation=(tt,et,rt,st,nt)=>nt.isOnAll?!1:!rt&&nt.isOnTouch?!(et||tt):(rt?st.isOnBlur:nt.isOnBlur)?!tt:(rt?st.isOnChange:nt.isOnChange)?tt:!0,unsetEmptyArray=(tt,et)=>!compact$1(get$1(tt,et)).length&&unset(tt,et),updateFieldArrayRootError=(tt,et,rt)=>{const st=convertToArrayPayload(get$1(tt,rt));return set(st,"root",et[rt]),set(tt,rt,st),tt};function getValidateError(tt,et,rt="validate"){if(isString$1(tt)||Array.isArray(tt)&&tt.every(isString$1)||isBoolean$1(tt)&&!tt)return{type:rt,message:isString$1(tt)?tt:"",ref:et}}var getValueAndMessage=tt=>isObject(tt)&&!isRegex(tt)?tt:{value:tt,message:""},validateField=async(tt,et,rt,st,nt,ot)=>{const{ref:at,refs:lt,required:ut,maxLength:ct,minLength:dt,min:ht,max:ft,pattern:xt,validate:yt,name:vt,valueAsNumber:Et,mount:bt}=tt._f,wt=get$1(rt,vt);if(!bt||et.has(vt))return{};const St=lt?lt[0]:at,Rt=Ht=>{nt&&St.reportValidity&&(St.setCustomValidity(isBoolean$1(Ht)?"":Ht||""),St.reportValidity())},Ct={},jt=isRadioInput(at),It=isCheckBoxInput(at),Pt=jt||It,Ot=(Et||isFileInput(at))&&isUndefined(at.value)&&isUndefined(wt)||isHTMLElement(at)&&at.value===""||wt===""||Array.isArray(wt)&&!wt.length,Ut=appendErrors.bind(null,vt,st,Ct),Nt=(Ht,Lt,kt,$t=INPUT_VALIDATION_RULES.maxLength,Ft=INPUT_VALIDATION_RULES.minLength)=>{const Gt=Ht?Lt:kt;Ct[vt]={type:Ht?$t:Ft,message:Gt,ref:at,...Ut(Ht?$t:Ft,Gt)}};if(ot?!Array.isArray(wt)||!wt.length:ut&&(!Pt&&(Ot||isNullOrUndefined(wt))||isBoolean$1(wt)&&!wt||It&&!getCheckboxValue(lt).isValid||jt&&!getRadioValue(lt).isValid)){const{value:Ht,message:Lt}=isString$1(ut)?{value:!!ut,message:ut}:getValueAndMessage(ut);if(Ht&&(Ct[vt]={type:INPUT_VALIDATION_RULES.required,message:Lt,ref:St,...Ut(INPUT_VALIDATION_RULES.required,Lt)},!st))return Rt(Lt),Ct}if(!Ot&&(!isNullOrUndefined(ht)||!isNullOrUndefined(ft))){let Ht,Lt;const kt=getValueAndMessage(ft),$t=getValueAndMessage(ht);if(!isNullOrUndefined(wt)&&!isNaN(wt)){const Ft=at.valueAsNumber||wt&&+wt;isNullOrUndefined(kt.value)||(Ht=Ft>kt.value),isNullOrUndefined($t.value)||(Lt=Ft<$t.value)}else{const Ft=at.valueAsDate||new Date(wt),Gt=Bt=>new Date(new Date().toDateString()+" "+Bt),Mt=at.type=="time",Vt=at.type=="week";isString$1(kt.value)&&wt&&(Ht=Mt?Gt(wt)>Gt(kt.value):Vt?wt>kt.value:Ft>new Date(kt.value)),isString$1($t.value)&&wt&&(Lt=Mt?Gt(wt)<Gt($t.value):Vt?wt<$t.value:Ft<new Date($t.value))}if((Ht||Lt)&&(Nt(!!Ht,kt.message,$t.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!st))return Rt(Ct[vt].message),Ct}if((ct||dt)&&!Ot&&(isString$1(wt)||ot&&Array.isArray(wt))){const Ht=getValueAndMessage(ct),Lt=getValueAndMessage(dt),kt=!isNullOrUndefined(Ht.value)&&wt.length>+Ht.value,$t=!isNullOrUndefined(Lt.value)&&wt.length<+Lt.value;if((kt||$t)&&(Nt(kt,Ht.message,Lt.message),!st))return Rt(Ct[vt].message),Ct}if(xt&&!Ot&&isString$1(wt)){const{value:Ht,message:Lt}=getValueAndMessage(xt);if(isRegex(Ht)&&!wt.match(Ht)&&(Ct[vt]={type:INPUT_VALIDATION_RULES.pattern,message:Lt,ref:at,...Ut(INPUT_VALIDATION_RULES.pattern,Lt)},!st))return Rt(Lt),Ct}if(yt){if(isFunction(yt)){const Ht=await yt(wt,rt),Lt=getValidateError(Ht,St);if(Lt&&(Ct[vt]={...Lt,...Ut(INPUT_VALIDATION_RULES.validate,Lt.message)},!st))return Rt(Lt.message),Ct}else if(isObject(yt)){let Ht={};for(const Lt in yt){if(!isEmptyObject(Ht)&&!st)break;const kt=getValidateError(await yt[Lt](wt,rt),St,Lt);kt&&(Ht={...kt,...Ut(Lt,kt.message)},Rt(kt.message),st&&(Ct[vt]=Ht))}if(!isEmptyObject(Ht)&&(Ct[vt]={ref:St,...Ht},!st))return Ct}}return Rt(!0),Ct};const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(tt={}){let et={...defaultOptions,...tt},rt={submitCount:0,isDirty:!1,isReady:!1,isLoading:isFunction(et.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:et.errors||{},disabled:et.disabled||!1},st={},nt=isObject(et.defaultValues)||isObject(et.values)?cloneObject(et.defaultValues||et.values)||{}:{},ot=et.shouldUnregister?{}:cloneObject(nt),at={action:!1,mount:!1,watch:!1},lt={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},ut,ct=0;const dt={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let ht={...dt};const ft={array:createSubject(),state:createSubject()},xt=et.criteriaMode===VALIDATION_MODE.all,yt=Xt=>er=>{clearTimeout(ct),ct=setTimeout(Xt,er)},vt=async Xt=>{if(!et.disabled&&(dt.isValid||ht.isValid||Xt)){const er=et.resolver?isEmptyObject((await It()).errors):await Ot(st,!0);er!==rt.isValid&&ft.state.next({isValid:er})}},Et=(Xt,er)=>{!et.disabled&&(dt.isValidating||dt.validatingFields||ht.isValidating||ht.validatingFields)&&((Xt||Array.from(lt.mount)).forEach(sr=>{sr&&(er?set(rt.validatingFields,sr,er):unset(rt.validatingFields,sr))}),ft.state.next({validatingFields:rt.validatingFields,isValidating:!isEmptyObject(rt.validatingFields)}))},bt=(Xt,er=[],sr,br,gr=!0,vr=!0)=>{if(br&&sr&&!et.disabled){if(at.action=!0,vr&&Array.isArray(get$1(st,Xt))){const Tr=sr(get$1(st,Xt),br.argA,br.argB);gr&&set(st,Xt,Tr)}if(vr&&Array.isArray(get$1(rt.errors,Xt))){const Tr=sr(get$1(rt.errors,Xt),br.argA,br.argB);gr&&set(rt.errors,Xt,Tr),unsetEmptyArray(rt.errors,Xt)}if((dt.touchedFields||ht.touchedFields)&&vr&&Array.isArray(get$1(rt.touchedFields,Xt))){const Tr=sr(get$1(rt.touchedFields,Xt),br.argA,br.argB);gr&&set(rt.touchedFields,Xt,Tr)}(dt.dirtyFields||ht.dirtyFields)&&(rt.dirtyFields=getDirtyFields(nt,ot)),ft.state.next({name:Xt,isDirty:Nt(Xt,er),dirtyFields:rt.dirtyFields,errors:rt.errors,isValid:rt.isValid})}else set(ot,Xt,er)},wt=(Xt,er)=>{set(rt.errors,Xt,er),ft.state.next({errors:rt.errors})},St=Xt=>{rt.errors=Xt,ft.state.next({errors:rt.errors,isValid:!1})},Rt=(Xt,er,sr,br)=>{const gr=get$1(st,Xt);if(gr){const vr=get$1(ot,Xt,isUndefined(sr)?get$1(nt,Xt):sr);isUndefined(vr)||br&&br.defaultChecked||er?set(ot,Xt,er?vr:getFieldValue(gr._f)):kt(Xt,vr),at.mount&&vt()}},Ct=(Xt,er,sr,br,gr)=>{let vr=!1,Tr=!1;const Lr={name:Xt};if(!et.disabled){if(!sr||br){(dt.isDirty||ht.isDirty)&&(Tr=rt.isDirty,rt.isDirty=Lr.isDirty=Nt(),vr=Tr!==Lr.isDirty);const Dr=deepEqual(get$1(nt,Xt),er);Tr=!!get$1(rt.dirtyFields,Xt),Dr?unset(rt.dirtyFields,Xt):set(rt.dirtyFields,Xt,!0),Lr.dirtyFields=rt.dirtyFields,vr=vr||(dt.dirtyFields||ht.dirtyFields)&&Tr!==!Dr}if(sr){const Dr=get$1(rt.touchedFields,Xt);Dr||(set(rt.touchedFields,Xt,sr),Lr.touchedFields=rt.touchedFields,vr=vr||(dt.touchedFields||ht.touchedFields)&&Dr!==sr)}vr&&gr&&ft.state.next(Lr)}return vr?Lr:{}},jt=(Xt,er,sr,br)=>{const gr=get$1(rt.errors,Xt),vr=(dt.isValid||ht.isValid)&&isBoolean$1(er)&&rt.isValid!==er;if(et.delayError&&sr?(ut=yt(()=>wt(Xt,sr)),ut(et.delayError)):(clearTimeout(ct),ut=null,sr?set(rt.errors,Xt,sr):unset(rt.errors,Xt)),(sr?!deepEqual(gr,sr):gr)||!isEmptyObject(br)||vr){const Tr={...br,...vr&&isBoolean$1(er)?{isValid:er}:{},errors:rt.errors,name:Xt};rt={...rt,...Tr},ft.state.next(Tr)}},It=async Xt=>{Et(Xt,!0);const er=await et.resolver(ot,et.context,getResolverOptions(Xt||lt.mount,st,et.criteriaMode,et.shouldUseNativeValidation));return Et(Xt),er},Pt=async Xt=>{const{errors:er}=await It(Xt);if(Xt)for(const sr of Xt){const br=get$1(er,sr);br?set(rt.errors,sr,br):unset(rt.errors,sr)}else rt.errors=er;return er},Ot=async(Xt,er,sr={valid:!0})=>{for(const br in Xt){const gr=Xt[br];if(gr){const{_f:vr,...Tr}=gr;if(vr){const Lr=lt.array.has(vr.name),Dr=gr._f&&hasPromiseValidation(gr._f);Dr&&dt.validatingFields&&Et([vr.name],!0);const Zr=await validateField(gr,lt.disabled,ot,xt,et.shouldUseNativeValidation&&!er,Lr);if(Dr&&dt.validatingFields&&Et([vr.name]),Zr[vr.name]&&(sr.valid=!1,er))break;!er&&(get$1(Zr,vr.name)?Lr?updateFieldArrayRootError(rt.errors,Zr,vr.name):set(rt.errors,vr.name,Zr[vr.name]):unset(rt.errors,vr.name))}!isEmptyObject(Tr)&&await Ot(Tr,er,sr)}}return sr.valid},Ut=()=>{for(const Xt of lt.unMount){const er=get$1(st,Xt);er&&(er._f.refs?er._f.refs.every(sr=>!live(sr)):!live(er._f.ref))&&mr(Xt)}lt.unMount=new Set},Nt=(Xt,er)=>!et.disabled&&(Xt&&er&&set(ot,Xt,er),!deepEqual(Bt(),nt)),Ht=(Xt,er,sr)=>generateWatchOutput(Xt,lt,{...at.mount?ot:isUndefined(er)?nt:isString$1(Xt)?{[Xt]:er}:er},sr,er),Lt=Xt=>compact$1(get$1(at.mount?ot:nt,Xt,et.shouldUnregister?get$1(nt,Xt,[]):[])),kt=(Xt,er,sr={})=>{const br=get$1(st,Xt);let gr=er;if(br){const vr=br._f;vr&&(!vr.disabled&&set(ot,Xt,getFieldValueAs(er,vr)),gr=isHTMLElement(vr.ref)&&isNullOrUndefined(er)?"":er,isMultipleSelect(vr.ref)?[...vr.ref.options].forEach(Tr=>Tr.selected=gr.includes(Tr.value)):vr.refs?isCheckBoxInput(vr.ref)?vr.refs.forEach(Tr=>{(!Tr.defaultChecked||!Tr.disabled)&&(Array.isArray(gr)?Tr.checked=!!gr.find(Lr=>Lr===Tr.value):Tr.checked=gr===Tr.value||!!gr)}):vr.refs.forEach(Tr=>Tr.checked=Tr.value===gr):isFileInput(vr.ref)?vr.ref.value="":(vr.ref.value=gr,vr.ref.type||ft.state.next({name:Xt,values:cloneObject(ot)})))}(sr.shouldDirty||sr.shouldTouch)&&Ct(Xt,gr,sr.shouldTouch,sr.shouldDirty,!0),sr.shouldValidate&&Vt(Xt)},$t=(Xt,er,sr)=>{for(const br in er){if(!er.hasOwnProperty(br))return;const gr=er[br],vr=Xt+"."+br,Tr=get$1(st,vr);(lt.array.has(Xt)||isObject(gr)||Tr&&!Tr._f)&&!isDateObject(gr)?$t(vr,gr,sr):kt(vr,gr,sr)}},Ft=(Xt,er,sr={})=>{const br=get$1(st,Xt),gr=lt.array.has(Xt),vr=cloneObject(er);set(ot,Xt,vr),gr?(ft.array.next({name:Xt,values:cloneObject(ot)}),(dt.isDirty||dt.dirtyFields||ht.isDirty||ht.dirtyFields)&&sr.shouldDirty&&ft.state.next({name:Xt,dirtyFields:getDirtyFields(nt,ot),isDirty:Nt(Xt,vr)})):br&&!br._f&&!isNullOrUndefined(vr)?$t(Xt,vr,sr):kt(Xt,vr,sr),isWatched(Xt,lt)&&ft.state.next({...rt,name:Xt}),ft.state.next({name:at.mount?Xt:void 0,values:cloneObject(ot)})},Gt=async Xt=>{at.mount=!0;const er=Xt.target;let sr=er.name,br=!0;const gr=get$1(st,sr),vr=Dr=>{br=Number.isNaN(Dr)||isDateObject(Dr)&&isNaN(Dr.getTime())||deepEqual(Dr,get$1(ot,sr,Dr))},Tr=getValidationModes(et.mode),Lr=getValidationModes(et.reValidateMode);if(gr){let Dr,Zr;const ks=er.type?getFieldValue(gr._f):getEventValue(Xt),Ir=Xt.type===EVENTS.BLUR||Xt.type===EVENTS.FOCUS_OUT,Br=!hasValidation(gr._f)&&!et.resolver&&!get$1(rt.errors,sr)&&!gr._f.deps||skipValidation(Ir,get$1(rt.touchedFields,sr),rt.isSubmitted,Lr,Tr),kr=isWatched(sr,lt,Ir);set(ot,sr,ks),Ir?(!er||!er.readOnly)&&(gr._f.onBlur&&gr._f.onBlur(Xt),ut&&ut(0)):gr._f.onChange&&gr._f.onChange(Xt);const Wr=Ct(sr,ks,Ir),bs=!isEmptyObject(Wr)||kr;if(!Ir&&ft.state.next({name:sr,type:Xt.type,values:cloneObject(ot)}),Br)return(dt.isValid||ht.isValid)&&(et.mode==="onBlur"?Ir&&vt():Ir||vt()),bs&&ft.state.next({name:sr,...kr?{}:Wr});if(!Ir&&kr&&ft.state.next({...rt}),et.resolver){const{errors:ps}=await It([sr]);if(vr(ks),br){const zr=schemaErrorLookup(rt.errors,st,sr),$r=schemaErrorLookup(ps,st,zr.name||sr);Dr=$r.error,sr=$r.name,Zr=isEmptyObject(ps)}}else Et([sr],!0),Dr=(await validateField(gr,lt.disabled,ot,xt,et.shouldUseNativeValidation))[sr],Et([sr]),vr(ks),br&&(Dr?Zr=!1:(dt.isValid||ht.isValid)&&(Zr=await Ot(st,!0)));br&&(gr._f.deps&&(!Array.isArray(gr._f.deps)||gr._f.deps.length>0)&&Vt(gr._f.deps),jt(sr,Zr,Dr,Wr))}},Mt=(Xt,er)=>{if(get$1(rt.errors,er)&&Xt.focus)return Xt.focus(),1},Vt=async(Xt,er={})=>{let sr,br;const gr=convertToArrayPayload(Xt);if(et.resolver){const vr=await Pt(isUndefined(Xt)?Xt:gr);sr=isEmptyObject(vr),br=Xt?!gr.some(Tr=>get$1(vr,Tr)):sr}else Xt?(br=(await Promise.all(gr.map(async vr=>{const Tr=get$1(st,vr);return await Ot(Tr&&Tr._f?{[vr]:Tr}:Tr)}))).every(Boolean),!(!br&&!rt.isValid)&&vt()):br=sr=await Ot(st);return ft.state.next({...!isString$1(Xt)||(dt.isValid||ht.isValid)&&sr!==rt.isValid?{}:{name:Xt},...et.resolver||!Xt?{isValid:sr}:{},errors:rt.errors}),er.shouldFocus&&!br&&iterateFieldsByAction(st,Mt,Xt?gr:lt.mount),br},Bt=(Xt,er)=>{let sr={...at.mount?ot:nt};return er&&(sr=extractFormValues(er.dirtyFields?rt.dirtyFields:rt.touchedFields,sr)),isUndefined(Xt)?sr:isString$1(Xt)?get$1(sr,Xt):Xt.map(br=>get$1(sr,br))},qt=(Xt,er)=>({invalid:!!get$1((er||rt).errors,Xt),isDirty:!!get$1((er||rt).dirtyFields,Xt),error:get$1((er||rt).errors,Xt),isValidating:!!get$1(rt.validatingFields,Xt),isTouched:!!get$1((er||rt).touchedFields,Xt)}),Yt=Xt=>{Xt&&convertToArrayPayload(Xt).forEach(er=>unset(rt.errors,er)),ft.state.next({errors:Xt?rt.errors:{}})},Kt=(Xt,er,sr)=>{const br=(get$1(st,Xt,{_f:{}})._f||{}).ref,gr=get$1(rt.errors,Xt)||{},{ref:vr,message:Tr,type:Lr,...Dr}=gr;set(rt.errors,Xt,{...Dr,...er,ref:br}),ft.state.next({name:Xt,errors:rt.errors,isValid:!1}),sr&&sr.shouldFocus&&br&&br.focus&&br.focus()},tr=(Xt,er)=>isFunction(Xt)?ft.state.subscribe({next:sr=>"values"in sr&&Xt(Ht(void 0,er),sr)}):Ht(Xt,er,!0),or=Xt=>ft.state.subscribe({next:er=>{shouldSubscribeByName(Xt.name,er.name,Xt.exact)&&shouldRenderFormState(er,Xt.formState||dt,Gs,Xt.reRenderRoot)&&Xt.callback({values:{...ot},...rt,...er,defaultValues:nt})}}).unsubscribe,lr=Xt=>(at.mount=!0,ht={...ht,...Xt.formState},or({...Xt,formState:ht})),mr=(Xt,er={})=>{for(const sr of Xt?convertToArrayPayload(Xt):lt.mount)lt.mount.delete(sr),lt.array.delete(sr),er.keepValue||(unset(st,sr),unset(ot,sr)),!er.keepError&&unset(rt.errors,sr),!er.keepDirty&&unset(rt.dirtyFields,sr),!er.keepTouched&&unset(rt.touchedFields,sr),!er.keepIsValidating&&unset(rt.validatingFields,sr),!et.shouldUnregister&&!er.keepDefaultValue&&unset(nt,sr);ft.state.next({values:cloneObject(ot)}),ft.state.next({...rt,...er.keepDirty?{isDirty:Nt()}:{}}),!er.keepIsValid&&vt()},yr=({disabled:Xt,name:er})=>{(isBoolean$1(Xt)&&at.mount||Xt||lt.disabled.has(er))&&(Xt?lt.disabled.add(er):lt.disabled.delete(er))},dr=(Xt,er={})=>{let sr=get$1(st,Xt);const br=isBoolean$1(er.disabled)||isBoolean$1(et.disabled);return set(st,Xt,{...sr||{},_f:{...sr&&sr._f?sr._f:{ref:{name:Xt}},name:Xt,mount:!0,...er}}),lt.mount.add(Xt),sr?yr({disabled:isBoolean$1(er.disabled)?er.disabled:et.disabled,name:Xt}):Rt(Xt,!0,er.value),{...br?{disabled:er.disabled||et.disabled}:{},...et.progressive?{required:!!er.required,min:getRuleValue(er.min),max:getRuleValue(er.max),minLength:getRuleValue(er.minLength),maxLength:getRuleValue(er.maxLength),pattern:getRuleValue(er.pattern)}:{},name:Xt,onChange:Gt,onBlur:Gt,ref:gr=>{if(gr){dr(Xt,er),sr=get$1(st,Xt);const vr=isUndefined(gr.value)&&gr.querySelectorAll&&gr.querySelectorAll("input,select,textarea")[0]||gr,Tr=isRadioOrCheckbox(vr),Lr=sr._f.refs||[];if(Tr?Lr.find(Dr=>Dr===vr):vr===sr._f.ref)return;set(st,Xt,{_f:{...sr._f,...Tr?{refs:[...Lr.filter(live),vr,...Array.isArray(get$1(nt,Xt))?[{}]:[]],ref:{type:vr.type,name:Xt}}:{ref:vr}}}),Rt(Xt,!1,void 0,vr)}else sr=get$1(st,Xt,{}),sr._f&&(sr._f.mount=!1),(et.shouldUnregister||er.shouldUnregister)&&!(isNameInFieldArray(lt.array,Xt)&&at.action)&<.unMount.add(Xt)}}},hr=()=>et.shouldFocusError&&iterateFieldsByAction(st,Mt,lt.mount),pr=Xt=>{isBoolean$1(Xt)&&(ft.state.next({disabled:Xt}),iterateFieldsByAction(st,(er,sr)=>{const br=get$1(st,sr);br&&(er.disabled=br._f.disabled||Xt,Array.isArray(br._f.refs)&&br._f.refs.forEach(gr=>{gr.disabled=br._f.disabled||Xt}))},0,!1))},_r=(Xt,er)=>async sr=>{let br;sr&&(sr.preventDefault&&sr.preventDefault(),sr.persist&&sr.persist());let gr=cloneObject(ot);if(ft.state.next({isSubmitting:!0}),et.resolver){const{errors:vr,values:Tr}=await It();rt.errors=vr,gr=cloneObject(Tr)}else await Ot(st);if(lt.disabled.size)for(const vr of lt.disabled)unset(gr,vr);if(unset(rt.errors,"root"),isEmptyObject(rt.errors)){ft.state.next({errors:{}});try{await Xt(gr,sr)}catch(vr){br=vr}}else er&&await er({...rt.errors},sr),hr(),setTimeout(hr);if(ft.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(rt.errors)&&!br,submitCount:rt.submitCount+1,errors:rt.errors}),br)throw br},Ar=(Xt,er={})=>{get$1(st,Xt)&&(isUndefined(er.defaultValue)?Ft(Xt,cloneObject(get$1(nt,Xt))):(Ft(Xt,er.defaultValue),set(nt,Xt,cloneObject(er.defaultValue))),er.keepTouched||unset(rt.touchedFields,Xt),er.keepDirty||(unset(rt.dirtyFields,Xt),rt.isDirty=er.defaultValue?Nt(Xt,cloneObject(get$1(nt,Xt))):Nt()),er.keepError||(unset(rt.errors,Xt),dt.isValid&&vt()),ft.state.next({...rt}))},Hr=(Xt,er={})=>{const sr=Xt?cloneObject(Xt):nt,br=cloneObject(sr),gr=isEmptyObject(Xt),vr=gr?nt:br;if(er.keepDefaultValues||(nt=sr),!er.keepValues){if(er.keepDirtyValues){const Tr=new Set([...lt.mount,...Object.keys(getDirtyFields(nt,ot))]);for(const Lr of Array.from(Tr))get$1(rt.dirtyFields,Lr)?set(vr,Lr,get$1(ot,Lr)):Ft(Lr,get$1(vr,Lr))}else{if(isWeb&&isUndefined(Xt))for(const Tr of lt.mount){const Lr=get$1(st,Tr);if(Lr&&Lr._f){const Dr=Array.isArray(Lr._f.refs)?Lr._f.refs[0]:Lr._f.ref;if(isHTMLElement(Dr)){const Zr=Dr.closest("form");if(Zr){Zr.reset();break}}}}if(er.keepFieldsRef)for(const Tr of lt.mount)Ft(Tr,get$1(vr,Tr));else st={}}ot=et.shouldUnregister?er.keepDefaultValues?cloneObject(nt):{}:cloneObject(vr),ft.array.next({values:{...vr}}),ft.state.next({values:{...vr}})}lt={mount:er.keepDirtyValues?lt.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},at.mount=!dt.isValid||!!er.keepIsValid||!!er.keepDirtyValues||!et.shouldUnregister&&!isEmptyObject(vr),at.watch=!!et.shouldUnregister,ft.state.next({submitCount:er.keepSubmitCount?rt.submitCount:0,isDirty:gr?!1:er.keepDirty?rt.isDirty:!!(er.keepDefaultValues&&!deepEqual(Xt,nt)),isSubmitted:er.keepIsSubmitted?rt.isSubmitted:!1,dirtyFields:gr?{}:er.keepDirtyValues?er.keepDefaultValues&&ot?getDirtyFields(nt,ot):rt.dirtyFields:er.keepDefaultValues&&Xt?getDirtyFields(nt,Xt):er.keepDirty?rt.dirtyFields:{},touchedFields:er.keepTouched?rt.touchedFields:{},errors:er.keepErrors?rt.errors:{},isSubmitSuccessful:er.keepIsSubmitSuccessful?rt.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:nt})},Ur=(Xt,er)=>Hr(isFunction(Xt)?Xt(ot):Xt,er),os=(Xt,er={})=>{const sr=get$1(st,Xt),br=sr&&sr._f;if(br){const gr=br.refs?br.refs[0]:br.ref;gr.focus&&(gr.focus(),er.shouldSelect&&isFunction(gr.select)&&gr.select())}},Gs=Xt=>{rt={...rt,...Xt}},Ws={control:{register:dr,unregister:mr,getFieldState:qt,handleSubmit:_r,setError:Kt,_subscribe:or,_runSchema:It,_focusError:hr,_getWatch:Ht,_getDirty:Nt,_setValid:vt,_setFieldArray:bt,_setDisabledField:yr,_setErrors:St,_getFieldArray:Lt,_reset:Hr,_resetDefaultValues:()=>isFunction(et.defaultValues)&&et.defaultValues().then(Xt=>{Ur(Xt,et.resetOptions),ft.state.next({isLoading:!1})}),_removeUnmounted:Ut,_disableForm:pr,_subjects:ft,_proxyFormState:dt,get _fields(){return st},get _formValues(){return ot},get _state(){return at},set _state(Xt){at=Xt},get _defaultValues(){return nt},get _names(){return lt},set _names(Xt){lt=Xt},get _formState(){return rt},get _options(){return et},set _options(Xt){et={...et,...Xt}}},subscribe:lr,trigger:Vt,register:dr,handleSubmit:_r,watch:tr,setValue:Ft,getValues:Bt,reset:Ur,resetField:Ar,clearErrors:Yt,unregister:mr,setError:Kt,setFocus:os,getFieldState:qt};return{...Ws,formControl:Ws}}function useForm(tt={}){const et=React$4.useRef(void 0),rt=React$4.useRef(void 0),[st,nt]=React$4.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(tt.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:tt.errors||{},disabled:tt.disabled||!1,isReady:!1,defaultValues:isFunction(tt.defaultValues)?void 0:tt.defaultValues});if(!et.current)if(tt.formControl)et.current={...tt.formControl,formState:st},tt.defaultValues&&!isFunction(tt.defaultValues)&&tt.formControl.reset(tt.defaultValues,tt.resetOptions);else{const{formControl:at,...lt}=createFormControl(tt);et.current={...lt,formState:st}}const ot=et.current.control;return ot._options=tt,useIsomorphicLayoutEffect(()=>{const at=ot._subscribe({formState:ot._proxyFormState,callback:()=>nt({...ot._formState}),reRenderRoot:!0});return nt(lt=>({...lt,isReady:!0})),ot._formState.isReady=!0,at},[ot]),React$4.useEffect(()=>ot._disableForm(tt.disabled),[ot,tt.disabled]),React$4.useEffect(()=>{tt.mode&&(ot._options.mode=tt.mode),tt.reValidateMode&&(ot._options.reValidateMode=tt.reValidateMode)},[ot,tt.mode,tt.reValidateMode]),React$4.useEffect(()=>{tt.errors&&(ot._setErrors(tt.errors),ot._focusError())},[ot,tt.errors]),React$4.useEffect(()=>{tt.shouldUnregister&&ot._subjects.state.next({values:ot._getWatch()})},[ot,tt.shouldUnregister]),React$4.useEffect(()=>{if(ot._proxyFormState.isDirty){const at=ot._getDirty();at!==st.isDirty&&ot._subjects.state.next({isDirty:at})}},[ot,st.isDirty]),React$4.useEffect(()=>{tt.values&&!deepEqual(tt.values,rt.current)?(ot._reset(tt.values,{keepFieldsRef:!0,...ot._options.resetOptions}),rt.current=tt.values,nt(at=>({...at}))):ot._resetDefaultValues()},[ot,tt.values]),React$4.useEffect(()=>{ot._state.mount||(ot._setValid(),ot._state.mount=!0),ot._state.watch&&(ot._state.watch=!1,ot._subjects.state.next({...ot._formState})),ot._removeUnmounted()}),et.current.formState=getProxyFormState(st,ot),et.current}const useActivitiesOptions=()=>{const{t:tt}=useTranslation();return[{value:"bpr.activityType.classroomActivity",label:tt("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:tt("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:tt("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:tt("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:tt("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:tt("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:tt("bpr.activityType.courseElement")},{value:"bpr.other",label:tt("bpr.other")}]},ActivitiesDropdown=({control:tt,selectedActivities:et,selectActivities:rt})=>{const st=useActivitiesOptions(),{t:nt}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"col d-flex",children:jsxRuntimeExports.jsx(Controller,{name:"activityType",control:tt,rules:{required:!0},render:({field:{onChange:ot}})=>jsxRuntimeExports.jsxs(Dropdown,{block:!0,overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{size:"md",label:nt("bpr.form.publication.type"),badgeContent:et==null?void 0:et.length}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:st.map((at,lt)=>jsxRuntimeExports.jsx(Dropdown.CheckboxItem,{value:at.value,model:et,onChange:()=>{rt(at.value),ot(at.value)},children:at.label},lt))})]})})})},ageOptions=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],AgeSelect=({name:tt,control:et,placeholderOption:rt,validate:st})=>jsxRuntimeExports.jsx(Controller,{name:tt,control:et,rules:{required:!0,validate:st},render:({field:{onChange:nt}})=>jsxRuntimeExports.jsx(Select,{block:!0,size:"md",onValueChange:nt,options:ageOptions,"aria-required":!0,placeholderOption:rt})}),useLanguageOptions=()=>{const{t:tt}=useTranslation();return[{value:"de_DE",label:tt("de_DE")},{value:"en_EN",label:tt("en_EN")},{value:"ar_DZ",label:tt("ar_DZ")},{value:"es_ES",label:tt("es_ES")},{value:"fr_FR",label:tt("fr_FR")},{value:"it_IT",label:tt("it_IT")},{value:"ja_JP",label:tt("ja_JP")},{value:"zh_CN",label:tt("zh_CN")},{value:"pt_PT",label:tt("pt_PT")},{value:"ru_RU",label:tt("ru_RU")},{value:"bpr.other",label:tt("bpr.other")}]},defaultSelectLanguageOption="bpr.form.publication.language",LangSelect=({control:tt})=>{const et=useLanguageOptions();return jsxRuntimeExports.jsx("div",{className:"col",children:jsxRuntimeExports.jsx(Controller,{name:"language",control:tt,rules:{required:!0},render:({field:{onChange:rt}})=>jsxRuntimeExports.jsx(Select,{block:!0,size:"md",onValueChange:rt,options:et,"aria-required":!0,placeholderOption:defaultSelectLanguageOption})})})},creativeCommons="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAYCAYAAACsnTAAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAubSURBVHgB7Vh3UNVnFj2P/kAQURGNsa2GKKIOCjGzIEUhqElsY40m9lgiGksmWUfjTNZel8ggblSIxjUxujbEiiiwoiiixoqVJtKkCQg82O9c9r0AeaiTP3ZmZ3NnmAHed9/v+84999zz/TRvvvnmlo6dO04xMTExw/95VLyoyEm6lDRW4+XjpZszP8gE/4XQ6XQoeFYAXbVO/m7atCksLS1fK7eqqgqFhYXyHaYmprCzs4O5hflr5VZUVKCosAjVNdUw0ZjArqkdLCwsjO7voxHjtpsphpigpgbQaIwuys3JxS/J13H9+i/qQM/k/81bNEdXl27o5dZLftcYya0bZWVluJ58DSeOnUBxYTHMzMxlg9bWWri/4wHfAb6wtLJsNPda8lVEHY5C6fMymJubyyFtmlgjcHAg3Pr0hoWlhdHc8vJynI8/j7iYWJSXlssZK6sqpBg+/X3k2XVzeY7q6moTMw00RgEpLi7GrohduBCfoDZTClNTU3To0EEqdvvmbcSqB9k3s4enjxfGfDTGKPKyMXWoiL+Hq4Ndw7Rp0zBgwAA0a9YMz58/R0JCAtavX4/LiZcQtGAubO1s6+WWqD2EBociMz0T8+bNg4eHhzCkqKgIZ8+exYYNGxB7NhYzg2ahSZMm9XLJqg2r1uNZ3jMsWrQI7u7usLW1RUFBAY4fP46wsDBcTbqK6Z99qopkZgCFYVJj5CCpjx5j9TerEBt9Dp5/9sShQ4cEpHv37uHRo0dyoH379sG1uyuO/PMwVny9XOhpLMK/i0Budi4OHjyIFStWoHPnzti6dStatmyJhQsXIjExEVYWVli/cp0CsNyQR4YQEF2lDjExMbK2X79+yMrKgpubG5YsWSK5leWVCAvZgsrKSkMuW/Tb9cFwsHfAjRs3MH/+fHh6eqJHjx7w8fHBypUrER0djccPH2NrSJgwr26YoAFJnpeUIGRTCDLSMrBlyxYcOHAAH3zwAbRarWGNlZUVhg8fjmPHjmHVqlXIzMjExjUbUKiqUDcSExJx6UIiQkJC8O6778r/0tPTcebMGQGY0bZtW+zatQu6Kp2wTx8xp84oBl3G4sWL0aZNG2nlU6dOYe7cuYiKikJOTo4AvGPHDuRk5SL+XLwhN/5cHFAN7N69W1jJ9X379kWnTp0EWD7f1dUVP/74I5IvJyPlTkoDUOpQpUZpS/h34cjLzcOaNWswefLkemA0DGtra3z++eey8ZS7KTh+9IThM7bZ8aPHMHToUKkSqUnqEgACQebcvn1b1vJwZALXcw9lpWWiBS1atMCcOXMwduxYqfaHH34oB1u+fDlu3rwpub169cJH48bhRNQJ6oGwLfpktKxv166dMGXKlCmyV7bvixcvMGbMGFy+fFlaaurUqTgeeaw+KHWJ8uDefanW4MGDBZBXCSiDWsKNe/fzxsF9B5CV+UT+Tx3KSM/AyJEjDWtJ/dDQUJw+fRo7d+6UVtQHaZ39NBs52Tl4pgSdwOzdu1d6v0Sxd/PmzTKpRo8eLXri5eVlyCVYZHhxUTGys7NhrbWWAzOCg4ORl5cne2Txtm3bJsCQYQxvb29kPckSDTKAoicKUT594rSIDpPZIlTvPXv2yN/ff/+9bI4MOHr0KJYuXSobZTtws+xxUjzubJzh+9gSZMHrBIXS3t5etKFCbZoMZtu8//77AiL1IzAwUJhJdvCwmZmZkss9c0xT96h3LCaZwfj4448xadIkAZ1B9pH9+oI4OjrKEFEe5VdQZByrHwLwWAkse00/ZUi76dOnq3F83QDCunXrMGHCBCQnJ4vmfPXVVyKKzs7OUEYQ9xXbKitqRc/UzBSpqamGh3EU8mCMrl27omPHjobPSktLZaqQeZaqIHQKBXU0qmfPnti4caOA4+DgIBOFgsu2416ojQRWq7WSFtQLL5/JXD3rWVjut1WrVvJ3fn6+nJXAMk9A1j9Ub6ycuzgLchQyiiwrRUF68OCBbMbFxUUqRWqnpaX9ZyNaUXAnJycUFBUoL1Ap8/+Ntm+IdgQEBMgzWrduLfSnQJO2BFIfnAZkJ30P6W1hZSEA9OnTR1jH0c2Jx5wnT57gk08+EfHmWOY0c3RyrDVl6rlFJUUy7rt06SJF+eKLL3D37l0MGzYMmzZtkvONUzrEOHfuHJo5NENT+6a/MkUQpGlRoFTrqgUx/vCQ/CGFGRQ40pvVJAXZMmwNAsGgqeKhXpTXUp/09fb1xk8//YRbt27hZZGRkSHa4R/oLwwhyN5+PiL2rCT/R7FlG3A8L1u2TD4jkwk6/Yd/YICs43M9+npg7dq1yM3Nhb+/P4KCgoTVLAQnD/PZTpyA1Dg/fz/J/Y1PMVOHamLXRASHleIoI8VPnjwpFZoxY4agTLQpdJwirMDMmTOFjmw/boKGjgAxvHz7oVOXP8nmySoGgSXT9GDy0F9++SUKiwoRMOg9A1Ce/TyhtdFiyJAhAhpbk3uYNWuWVJmspZ4RKIcWDnBzdzPkDhk+FCXPSzB79mwpIqcV2cXicB8U3ZSUFAGa+3Nz712vSKYdOrRf5tHXXZC6oaw8NYGL2XO9e/fG+fPnBRj9SKMjvXPnjrTW06dPpQqk6cOHD7F69Wq49OiOPu/0MTzgbZe3kaTGX/DfggUssovA8pAUUOpTxpMMzJgzE46tHA15ZuZm6K02Gxsbh3/8sBu1t5EamSo8IKcXXW6VrgrTZk8XM6gPtpBzN2ccPRKFiPAIKQTZb2NjI0By8rCgNrY2mDl3lkGU+f0/7/k5WaMoXjN73mxpIRqm0G9D5XAUMgYZwBHZvHlzg5WnMLHC+gsdRY3rORG+/uvX6ObqUg95jueLCRcReShSOdQqsfNyQVNa4ePvi/4B/cW+GwtWOl5NtDNqb3yOnW2tzTc1N4Vvfz+hvtbauJfKz8tHgvI79DCcTgSF4k0GvjcoEJ7envWuJ9zPmKGjwzU+fj41swgKasV28aK/ID83H3FxcSKqrxN0mqx4y1YtseSbpY2u4/dnqSpXVlDtTeHUprXh3vGqoL7Rx1QpUCmUTm2cDG36ylw1bulfmMubtVNrJ/mOhkGmjB4yKtyMc/3h/YcyPrl44tRJWLtyjThRili3bt1e+sCkpCQxejzw+InjhVlPs54K6i+LSsW2tNQ0/J5gy6SnpeP3BMFNfZxq9DP9SNYotGuInij8+LEYoCbA2egY7I7YLa1BpR40aJBYc65hEAAKFo0dL1ca5Ys//WyGaECEuibEqPz/1VCtHs4ZZLj90HMELZyLHr16qNcDt7AtbBuys7JlHFNM9eOZs//atWti29u1b4dJn07GW85vCRhbN4cJaHWDk4KiTcrSL1A/KMwcge3btxdz2BizWAyOeq7nd9CocXoxj1OQbdFYMM/X11d+56WQRfXz8xNv0vBmXCfC2VjL9H9xYXJSsjhN156uIkQEghtKOJ+Aixcv4tKlS8IS567OGDZyGMZPmiDKH6WUfteOnfWu8Pqg4aKv4NQis2gM2XLcICl75cqVxjYot3Hesukv6GiZS/2ipeeo379/f6O5vOzxMspJR0Dorw4fPixg1nXaDSL5NyrHS9W6lWsxcuwoBAwMEK/BHwZf+vCtmZWy0vooLChE5MEjOKJ+OJUaC7Zi9+7dBVD6HmoW/dD27dvxquA9hXceBl0sc+Lj42Usvyyod3ztwQshR/GCBQvEAY8aNUry9RrSMIxKPzf7g3rrFn3ytALEC93VfYg2mKNPpz7ja8kc9ZoyUY3ZhH9dMLymfFmw1SIjI2s1SLUNPcqz18hjcLrxBRFtAa8brD4vcjzwxIkTG83j3YgFYAuSNWw7ehbm8sqhv1A2jHqa0liwyvQWWnUl11VXoUy9K6VXaKgdjQU1ZeDAgQZ/QzPIDdIz1H19YCzILgafxxdFvKGPGDFCWoKu+mX5fJ/C1wrUFl4POP55J2Lb0t3SBBoJJbQaTanikRZ/hITSntB/Awop/YGn+Be4AAAAAElFTkSuQmCC",PublishModalFooter=()=>{const{t:tt}=useTranslation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("ul",{className:"mb-12",children:[jsxRuntimeExports.jsxs("li",{children:[tt("bpr.form.publication.licence.text.1"),jsxRuntimeExports.jsx("img",{className:"ms-8 d-inline-block",src:creativeCommons,alt:"licence creative commons"})]}),jsxRuntimeExports.jsx("li",{children:tt("bpr.form.publication.licence.text.2")})]}),jsxRuntimeExports.jsx(Alert,{type:"info",className:"mb-12",children:tt("bpr.form.publication.licence.text.3")}),jsxRuntimeExports.jsx(Alert,{type:"warning",children:tt("bpr.form.publication.licence.text.4")})]})},useSubjectsOptions=()=>{const{t:tt}=useTranslation();return[{value:"bpr.subjectArea.artActivity",label:tt("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:tt("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:tt("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:tt("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:tt("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:tt("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:tt("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:tt("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:tt("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:tt("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:tt("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:tt("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:tt("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:tt("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:tt("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:tt("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:tt("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:tt("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:tt("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:tt("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:tt("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:tt("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:tt("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:tt("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:tt("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:tt("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:tt("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:tt("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:tt("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:tt("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:tt("bpr.subjectArea.technology")},{value:"bpr.subjectArea.Arabic",label:tt("bpr.subjectArea.Arabic")},{value:"bpr.subjectArea.Chinese",label:tt("bpr.subjectArea.Chinese")},{value:"bpr.subjectArea.NaturalSciences",label:tt("bpr.subjectArea.NaturalSciences")},{value:"bpr.subjectArea.SocioEmotionalEducation",label:tt("bpr.subjectArea.SocioEmotionalEducation")},{value:"bpr.other",label:tt("bpr.other")}]},SubjectsDropdown=({control:tt,selectedSubjectAreas:et,selectSubjects:rt})=>{const st=useSubjectsOptions(),{t:nt}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"col d-flex",children:jsxRuntimeExports.jsx(Controller,{name:"subjectArea",control:tt,rules:{required:!0},render:({field:{onChange:ot}})=>jsxRuntimeExports.jsxs(Dropdown,{block:!0,overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{size:"md",label:nt("bpr.form.publication.discipline"),badgeContent:et==null?void 0:et.length}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:st.map((at,lt)=>jsxRuntimeExports.jsx(Dropdown.CheckboxItem,{value:at.value,model:et,onChange:()=>{rt(at.value),ot(at.value)},children:at.label},lt))})]})})})};function ToastError({formData:tt,errorMessage:et}){const{t:rt}=useTranslation(),st=nt=>nt==null?void 0:nt.match(/^\s/);return et==="CONTENT_TOO_LARGE"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:rt("bpr.form.publication.response.error.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.error.content_too_large")})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:rt("bpr.form.publication.response.error.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.error.content")})}),jsxRuntimeExports.jsxs("ul",{children:[st(tt==null?void 0:tt.title)&&jsxRuntimeExports.jsx("li",{className:"pt-2 pb-2",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.empty.title")})}),st(tt==null?void 0:tt.description)&&jsxRuntimeExports.jsx("li",{className:"pt-2 pb-2",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.empty.description")})})]})]})}function ToastSuccess({result:tt}){const{t:et}=useTranslation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:et("bpr.form.publication.response.success.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24",children:et("bpr.form.publication.response.success.content.1")}),jsxRuntimeExports.jsx("p",{className:"pt-24",children:et("bpr.form.publication.response.success.content.2")}),tt.details.front_url&&jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("a",{className:"button right-magnet",href:tt.details.front_url,target:"_blank",rel:"noreferrer",children:et("bpr.form.publication.response.success.button")})})]})}function usePublishModal({onSuccess:tt,resource:et}){const{user:rt,appCode:st}=useEdificeClient(),nt=useToast(),[ot,at]=reactExports.useState((et==null?void 0:et.thumbnail)||"");reactExports.useEffect(()=>{at(et==null?void 0:et.thumbnail)},[et]);const{control:lt,register:ut,watch:ct,setValue:dt,handleSubmit:ht,formState:{errors:ft,isSubmitting:xt,isDirty:yt,isValid:vt}}=useForm({mode:"onChange"}),[Et,bt]=reactExports.useState([]),[wt,St]=reactExports.useState([]),Rt=(Ct,jt,It)=>{let Pt=[...jt];const Ot=Pt.findIndex(Ut=>Ut===Ct);jt.includes(Ct)?Pt=jt.filter((Ut,Nt)=>Nt!==Ot):Pt=[...jt,Ct],It(Pt)};return{control:lt,cover:ot,formState:{errors:ft,isSubmitting:xt,isDirty:yt,isValid:vt},handleDeleteImage:()=>at(""),handlePublish:async Ct=>{const jt=rt?rt==null?void 0:rt.userId:"";try{let It=new Blob;typeof ot=="string"?It=await odeServices.http().get(ot,{responseType:"blob"}):ot?It=await odeServices.http().get(URL.createObjectURL(ot),{responseType:"blob"}):et!=null&&et.thumbnail&&(It=await odeServices.http().get(et==null?void 0:et.thumbnail,{responseType:"blob"}));const Pt=await odeServices.http().get(`/userbook/avatar/${jt}?thumbnail=48x48`,{responseType:"blob"}),Ot=await odeServices.http().get(`/directory/user/${jt}/attachment-school`,{responseType:"json"}),Ut=e$3[st],Nt={activityType:Et,age:[Ct.ageMin,Ct.ageMax],application:Ut,cover:It,description:Ct.description,keyWords:Ct.keyWords,language:Ct.language,licence:"CC-BY",resourceId:et==null?void 0:et.assetId,resourceEntId:et==null?void 0:et.assetId,subjectArea:wt,teacherAvatar:Pt,title:Ct.title,userId:jt,userStructureName:Ot.name||(rt==null?void 0:rt.structureNames[0])},Ht=await odeServices.resource(st).publish(Nt);Ht.success?nt.success(jsxRuntimeExports.jsx(ToastSuccess,{result:Ht}),{duration:1e4}):Ht.message==="CONTENT_TOO_LARGE"?nt.error(jsxRuntimeExports.jsx(ToastError,{errorMessage:Ht.message})):nt.error(jsxRuntimeExports.jsx(ToastError,{formData:Ct})),tt==null||tt()}catch(It){console.error(It),nt.error(jsxRuntimeExports.jsx(ToastError,{formData:Ct}))}},handleSubmit:ht,handleUploadImage:Ct=>at(Ct),register:ut,selectActivities:Ct=>{Rt(Ct,Et,bt)},selectedActivities:Et,selectedSubjectAreas:wt,selectSubjects:Ct=>{Rt(Ct,wt,St)},setValue:dt,watch:ct}}const SvgIconDelete=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.96.96 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954h3.818a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909h3.818v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),SvgIconEdit=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879m-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465z",clipRule:"evenodd"})]}),ImagePicker=({addButtonLabel:tt="Add image",deleteButtonLabel:et="Delete image",src:rt,className:st,mediaLibraryRef:nt,libraryMedia:ot,app:at,onUploadImage:lt,onDeleteImage:ut})=>{const[ct,dt]=reactExports.useState(rt||"");reactExports.useEffect(()=>{ot&&(dt(ot),lt(ot))},[ot]);const ht=()=>{var yt;(yt=nt.current)==null||yt.show("image")},ft=()=>{dt(""),ut()},xt=clsx("image-input",st);return jsxRuntimeExports.jsxs("div",{id:"image-input",className:xt,children:[jsxRuntimeExports.jsxs("div",{className:"image-input-actions gap-8",children:[jsxRuntimeExports.jsx(IconButton,{"aria-label":tt,color:"tertiary",icon:jsxRuntimeExports.jsx(SvgIconEdit,{}),onClick:ht,type:"button",variant:"ghost"}),jsxRuntimeExports.jsx(IconButton,{"aria-label":et,color:"danger",disabled:!ct,icon:jsxRuntimeExports.jsx(SvgIconDelete,{}),onClick:ft,type:"button",variant:"ghost"})]}),ct?jsxRuntimeExports.jsx(Avatar,{alt:"",src:ct,size:"xl"}):jsxRuntimeExports.jsx(AppIcon,{app:at,iconFit:"ratio",size:"160",variant:"rounded"})]})},useResource=(tt,et)=>{const[rt,st]=reactExports.useState(null);return reactExports.useEffect(()=>{if(et===""){console.warn("resourceId must be an assetId and not an empty string");return}(async()=>{try{const nt=await odeServices.resource(tt).searchResource({application:tt,id:et});st(nt)}catch(nt){console.error(nt)}})()},[]),rt},SvgIconApplications=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 3c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8 0H3v6h6zm4 0c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2zm8 0h-6v6h6zm-8 12c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2zm8 0h-6v6h6zM1 15c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8 0H3v6h6z",clipRule:"evenodd"})]}),SvgIconCode=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.327 5.76a1 1 0 0 1 1.413.067l5 5.5a1 1 0 0 1 0 1.346l-5 5.5a1 1 0 1 1-1.48-1.346L21.648 12 17.26 7.173a1 1 0 0 1 .067-1.413M6.673 5.76a1 1 0 0 1 .067 1.413L2.35 12l4.389 4.827a1 1 0 0 1-1.48 1.346l-5-5.5a1 1 0 0 1 0-1.346l5-5.5a1 1 0 0 1 1.413-.067M8.979 21.609a1 1 0 0 1-.658-1.252l5.375-17.29a1 1 0 1 1 1.91.594L10.23 20.95a1 1 0 0 1-1.251.658",clipRule:"evenodd"})]}),SvgIconGlobe=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.01 9.01 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.01 9.01 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.01 9.01 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.01 9.01 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),SvgIconMic=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 .5a4.07 4.07 0 0 0-2.812 1.115A3.8 3.8 0 0 0 8 4.364V12a3.8 3.8 0 0 0 1.188 2.748A4.07 4.07 0 0 0 12 15.864a4.07 4.07 0 0 0 2.812-1.116A3.8 3.8 0 0 0 16 12V4.364a3.8 3.8 0 0 0-1.188-2.749A4.07 4.07 0 0 0 12 .5m-1.43 2.562A2.07 2.07 0 0 1 12 2.5c.545 0 1.059.207 1.43.562.371.354.57.823.57 1.302V12a1.8 1.8 0 0 1-.57 1.302 2.07 2.07 0 0 1-1.43.562 2.07 2.07 0 0 1-1.43-.562A1.8 1.8 0 0 1 10 12V4.364a1.8 1.8 0 0 1 .57-1.302M6 10.091a1 1 0 0 0-2 0V12c0 2.053.855 4.011 2.36 5.448A8.13 8.13 0 0 0 11 19.622V21.5H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-3v-1.878a8.13 8.13 0 0 0 4.64-2.174C19.145 16.011 20 14.053 20 12v-1.91a1 1 0 0 0-2 0V12c0 1.491-.62 2.932-1.74 4.001s-2.646 1.678-4.248 1.68h-.024c-1.602-.002-3.128-.611-4.247-1.68C6.62 14.931 6 13.491 6 12z",clipRule:"evenodd"})]}),SvgIconRecordVideo=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-1.936l4.409 1.365A2 2 0 0 0 24 15.519V8.48a2 2 0 0 0-2.591-1.91l-4.41 1.364V6a2 2 0 0 0-2-2zm0 2h13v12H2zm15 7.97V10.03l5-1.548v7.037z",clipRule:"evenodd"})]}),SvgIconSmartphone=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM4 4a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 18a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),MediaLibraryContext=reactExports.createContext(null);function useMediaLibraryContext(){const tt=reactExports.useContext(MediaLibraryContext);if(!tt)throw new Error("Innertabs compound components cannot be rendered outside the MediaLibrary component");return tt}const SvgIconPause=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.5 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 2h3v16h-3zm10-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 2h3v16h-3z",clipRule:"evenodd"})]}),SvgIconRecord=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("circle",{cx:12,cy:12,r:11,fill:"currentColor"})]}),AudioRecorderTimer=({recordState:tt,playState:et,recordTime:rt,audioTime:st,maxDuration:nt})=>jsxRuntimeExports.jsxs("div",{className:"audio-recorder-time my-16 mx-auto",children:[et==="IDLE"&&jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[tt==="PAUSED"?jsxRuntimeExports.jsx(SvgIconPause,{width:12,height:12,className:"me-8 text-danger"}):jsxRuntimeExports.jsx(SvgIconRecord,{width:12,height:12,className:"me-8 text-danger"}),n$4(tt!=="IDLE"?rt:0)+" / "+n$4(nt)]}),et!=="IDLE"&&jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mx-auto",children:[jsxRuntimeExports.jsx(SvgIconMic,{width:12,height:12,className:"me-8"}),n$4(st*1e3)," /",n$4(rt)]})]}),SvgIconPlayFilled=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M5 3.804c0-1.57 1.728-2.528 3.06-1.696l13.113 8.196a2 2 0 0 1 0 3.392L8.06 21.892C6.728 22.724 5 21.767 5 20.196z"})]}),SvgIconRecordPause=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11M10 6H8a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m4 0h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1",clipRule:"evenodd"})]}),SvgIconRefresh=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("g",{clipPath:"url(#icon-refresh_svg__a)",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.304 21c3.015 0 5.65-1.924 6.838-4.752a.986.986 0 0 1 1.297-.53c.503.216.738.803.524 1.311C19.498 20.522 16.19 23 12.304 23c-4.644 0-8.444-3.522-9.299-8.113L1.86 17.142a.99.99 0 0 1-1.33.449 1 1 0 0 1-.417-1.348L2.51 11.52c.135-.265.376-.457.66-.527a.96.96 0 0 1 .812.169L8.1 14.297c.433.33.515.958.185 1.404a.98.98 0 0 1-1.382.212L4.93 14.41c.65 3.785 3.744 6.59 7.374 6.59m4.794-12.913a.98.98 0 0 0-1.381.211 1.01 1.01 0 0 0 .184 1.405l4.117 3.135a.96.96 0 0 0 .812.169c.284-.07.525-.262.66-.527l2.398-4.723c.252-.496.065-1.1-.418-1.348a.99.99 0 0 0-1.329.449l-1.145 2.255C20.14 4.522 16.34 1 11.696 1 7.81 1 4.505 3.478 3.037 6.97a1.004 1.004 0 0 0 .525 1.312.986.986 0 0 0 1.297-.53C6.046 4.924 8.681 3 11.697 3c3.63 0 6.724 2.805 7.374 6.59z",clipRule:"evenodd"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"icon-refresh_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgIconRestart=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M17.919 3.15c1.33-.856 3.081.1 3.081 1.682v14.336c0 1.583-1.75 2.538-3.081 1.683L7 13.83V19a2 2 0 1 1-4 0V5a2 2 0 1 1 4 0v5.168z"})]}),SvgIconSave=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2zm1 12v6h8v-6z",clipRule:"evenodd"})]});function useAudioRecorder(tt,et,rt=!1,st="protected",nt="media-library"){var ot;function at(Kt,tr){return{...Kt,...tr.updatedState}}const[{recordState:lt,playState:ut,micStream:ct,micStreamAudioSourceNode:dt,audioWorkletNode:ht,audioContext:ft,encoderWorker:xt,maxDuration:yt,recordTime:vt,isEncoding:Et},bt]=reactExports.useReducer(at,{recordState:"IDLE",isEncoding:!1,playState:"IDLE",recordTime:0,maxDuration:180}),wt=reactExports.useRef(null),St=reactExports.useRef(null),Rt=reactExports.useRef(),Ct=reactExports.useRef(),{t:jt}=useTranslation(),{create:It}=useWorkspaceFile(),Pt=128,Ot=48e3;reactExports.useEffect(()=>{const Kt=new Worker("/infra/public/js/audioEncoder.js");return bt({type:"update",updatedState:{encoderWorker:Kt}}),Kt.postMessage(["init",(ft==null?void 0:ft.sampleRate)||Ot]),()=>{Nt(),Kt.terminate()}},[]);const Ut=Kt=>{var tr,or;const lr=Kt.data.inputs[0][0];let mr=Kt.data.inputs[0][1];(!mr||mr.filter(yr=>yr!==void 0).length===0)&&(mr=lr),(tr=Rt.current)==null||tr.push(lr),(or=Ct.current)==null||or.push(mr)},Nt=reactExports.useCallback(()=>{ct==null||ct.getTracks().forEach(Kt=>Kt.stop()),dt==null||dt.disconnect(),ht==null||ht.port.removeEventListener("message",Ut),ht==null||ht.port.close(),ht==null||ht.disconnect(),ft==null||ft.close()},[ft,ht,ct,dt]),Ht=async()=>{const Kt=await navigator.mediaDevices.getUserMedia({audio:!0}),tr=new AudioContext({sampleRate:Ot}),or=tr.createMediaStreamSource(Kt);try{await tr.audioWorklet.addModule("/infra/public/js/audio-recorder-processor.js")}catch(mr){console.error(mr)}const lr=new AudioWorkletNode(tr,"audio-recorder-processor");lr.port.addEventListener("message",Ut),bt({type:"update",updatedState:{micStream:Kt,micStreamAudioSourceNode:or,audioContext:tr,recordTime:0,audioWorkletNode:lr,recordState:"RECORDING",playState:"IDLE"}}),Ct.current=[],Rt.current=[],lr.port.start(),or.connect(lr),lr.connect(tr.destination)},Lt=reactExports.useCallback(async()=>{St.current&&(St.current.currentTime=0,St.current.pause()),lt==="PAUSED"?(bt({type:"update",updatedState:{recordState:"RECORDING",playState:"IDLE"}}),ft==null||ft.resume(),et==null||et(void 0)):Ht()},[lt,ft,St]),kt=reactExports.useCallback(()=>{bt({type:"update",updatedState:{recordState:"PAUSED",playState:"IDLE",isEncoding:!0}}),ft==null||ft.suspend(),xt&&Rt.current&&Ct.current&&(xt.postMessage(["wav",Ct.current,Rt.current,Ct.current.length*Pt]),xt.onmessage=Kt=>{const tr=window.URL.createObjectURL(Kt.data);bt({type:"update",updatedState:{isEncoding:!1}}),St.current&&(St.current.src=tr),et&&et(tr)})},[ft,xt,et]),$t=reactExports.useCallback(()=>{var Kt;bt({type:"update",updatedState:{playState:"PLAYING"}}),((Kt=St==null?void 0:St.current)!=null&&Kt.currentTime||St.current)&&St.current.play()},[St]),Ft=reactExports.useCallback(()=>{var Kt;(Kt=St==null?void 0:St.current)==null||Kt.pause(),bt({type:"update",updatedState:{playState:"PAUSED"}})},[St]),Gt=reactExports.useCallback(()=>{Nt(),bt({type:"update",updatedState:{playState:"IDLE",recordState:"IDLE"}}),Ct.current=[],Rt.current=[],et&&et(void 0)},[Nt,et]),Mt=reactExports.useCallback(async()=>{var Kt;const tr=(Kt=wt.current)==null?void 0:Kt.value;if(!tr){console.error("Audio name is required");return}return St.current&&(St.current.pause(),St.current.currentTime=0),bt({type:"update",updatedState:{recordState:"SAVING",playState:"IDLE"}}),new Promise((or,lr)=>{try{xt&&Rt.current&&Ct.current&&(xt.postMessage(["mp3",Ct.current,Rt.current,Ct.current.length*Pt]),xt.onmessage=async mr=>{if(mr.data instanceof Blob){const yr=new File([mr.data],tr,{type:"audio/mp3"}),dr=await It(yr,{application:nt,visibility:st});dr&&tt&&tt(dr),bt({type:"update",updatedState:{recordState:"SAVED"}}),or(dr)}})}catch(mr){bt({type:"update",updatedState:{playState:"IDLE",recordState:"IDLE"}}),console.error("Error while saving",mr),lr()}})},[lt,tt,Nt]),Vt=reactExports.useCallback(()=>{St!=null&&St.current&&(St.current.pause(),St.current.currentTime=0),bt({type:"update",updatedState:{playState:"IDLE"}})},[St]),Bt=reactExports.useCallback(()=>{bt({type:"update",updatedState:{playState:"PAUSED"}}),St.current&&(St.current.currentTime=0)},[St]);reactExports.useEffect(()=>{if(lt==="RECORDING"&&ft){const Kt=window.setInterval(()=>{bt({type:"update",updatedState:{recordTime:ft.currentTime}}),ft.currentTime>=yt&&(kt(),window.clearInterval(Kt))},100);return()=>window.clearInterval(Kt)}},[ft,kt,yt,lt]);const qt=jt(lt==="IDLE"?"bbm.audio.record.start":"bbm.audio.record.resume"),Yt=[{type:"icon",name:"record",visibility:lt==="RECORDING"?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconRecord,{}),color:"danger",disabled:lt!=="IDLE"&<!=="PAUSED"||vt>=yt,onClick:Lt,"aria-label":qt},tooltip:qt},{type:"icon",name:"recordPause",visibility:lt==="RECORDING"?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconRecordPause,{}),color:"danger",disabled:lt!=="RECORDING",onClick:kt,"aria-label":jt("bbm.audio.record.pause")},tooltip:jt("bbm.audio.record.pause")},{type:"divider"},{type:"icon",name:"encoding",visibility:Et?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconLoader,{style:{animation:"loading 1s infinite"}}),disabled:!0}},{type:"icon",name:"play",visibility:Et||ut==="PLAYING"?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconPlayFilled,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&<!=="SAVED",onClick:$t,"aria-label":jt("bbm.audio.play.start")},tooltip:jt("bbm.audio.play.start")},{type:"icon",name:"playPause",visibility:!Et&&ut==="PLAYING"?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconPause,{}),onClick:Ft,"aria-label":jt("bbm.audio.play.pause")},tooltip:jt("bbm.audio.play.pause")},{type:"icon",name:"stop",props:{icon:jsxRuntimeExports.jsx(SvgIconRestart,{}),disabled:ut!=="PLAYING"&&ut!=="PAUSED",onClick:Vt,"aria-label":jt("bbm.audio.play.stop")},tooltip:jt("bbm.audio.play.stop")},{type:"divider"},{type:"icon",name:"reset",props:{icon:jsxRuntimeExports.jsx(SvgIconRefresh,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&&ut!=="PLAYING"&&ut!=="PAUSED",onClick:Gt,"aria-label":jt("bbm.audio.record.reset")},tooltip:jt("bbm.audio.record.reset")},{type:"icon",name:"save",visibility:rt?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconSave,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&&ut!=="PLAYING"&&ut!=="PAUSED"||lt==="SAVED"||!((ot=wt.current)!=null&&ot.value),onClick:Mt,"aria-label":jt("bbm.audio.record.save")},tooltip:jt("bbm.audio.record.save")}];return{recordState:lt,playState:ut,audioContext:ft,recordTime:vt*1e3,maxDuration:yt*1e3,audioRef:St,audioNameRef:wt,toolbarItems:Yt,handlePlayEnded:Bt,handleSave:Mt}}const Toolbar=reactExports.forwardRef(({items:tt,variant:et="default",align:rt="space",isBlock:st=!1,ariaControls:nt,className:ot,shouldHideLabelsOnMobile:at=!1},lt)=>{const[ut,ct]=reactExports.useState(0),[dt,ht]=reactExports.useState([]),[ft,xt]=reactExports.useState(),[yt,vt]=reactExports.useState(),Et=reactExports.useRef(),{lg:bt}=useBreakpoint(),wt=clsx("toolbar z-1000 bg-white",ot,{default:et==="default","no-shadow":et==="no-shadow","d-flex":st,"d-inline-flex":!st,"overflow-x-auto":st,"justify-content-start":rt==="left","justify-content-between":rt==="space","justify-content-center":rt==="center","justify-content-end":rt==="right"});reactExports.useEffect(()=>{var Pt;const Ot=(Pt=Et.current)==null?void 0:Pt.querySelectorAll("button"),Ut=[];let Nt=!1;Ot==null||Ot.forEach(Ht=>{Ht.disabled||(Nt||(xt(Ht),Nt=!0),vt(Ht),Ut.push(Ht))}),ht(Ut),ct(tt.findIndex(Ht=>(Ht.type==="button"||Ht.type==="icon")&&!Ht.props.disabled))},[tt]);const St=Pt=>{Pt.target.classList.add("focus")},Rt=Pt=>{Pt.target.classList.remove("focus")},Ct=Pt=>{var Ot,Ut;const Nt=dt.indexOf(Pt.currentTarget);switch(Pt.code){case"ArrowLeft":Pt.currentTarget===ft?yt==null||yt.focus():(Ot=dt[Nt-1])==null||Ot.focus();break;case"ArrowRight":Pt.currentTarget===yt?ft==null||ft.focus():(Ut=dt[Nt+1])==null||Ut.focus();break}},jt=Pt=>{var Ot;return typeof Pt.tooltip=="string"?Pt.tooltip:(Ot=Pt.tooltip)==null?void 0:Ot.message},It=Pt=>{var Ot;return typeof Pt.tooltip!="string"?(Ot=Pt.tooltip)==null?void 0:Ot.position:"top"};return jsxRuntimeExports.jsx("div",{ref:mergeRefs(lt,Et),className:wt,role:"toolbar","aria-label":"Text Formatting","aria-controls":nt,onFocus:St,onBlur:Rt,children:tt.map((Pt,Ot)=>{if(Pt.visibility==="hide")return null;const Ut=at&&!bt;switch(Pt.type){case"divider":return jsxRuntimeExports.jsx("div",{className:"toolbar-divider"},Pt.name??Ot);case"button":return jsxRuntimeExports.jsx(Tooltip,{message:Ut?jt(Pt):void 0,placement:It(Pt),children:reactExports.createElement(Button,{...Pt.props,children:!Ut&&Pt.props.children,"aria-label":Pt.name,key:Pt.name??Ot,color:Pt.props.color||"tertiary",variant:"ghost",size:Pt.props.size||Ut?"sm":"md",tabIndex:Ot===ut?0:-1,onKeyDown:Ct})},Pt.name??Ot);case"icon":return jsxRuntimeExports.jsx(Tooltip,{message:jt(Pt),placement:It(Pt),children:reactExports.createElement(IconButton,{...Pt.props,key:Pt.name??Ot,color:Pt.props.color?Pt.props.color:"tertiary",variant:Pt.props.variant?Pt.props.variant:"ghost",tabIndex:Ot===ut?0:-1,onKeyDown:Ct})},Pt.name??Ot);case"dropdown":return reactExports.createElement(Dropdown,{...Pt.props,key:Pt.name??Ot,extraTriggerKeyDownHandler:Ct,overflow:Pt.overflow});case"primary":return jsxRuntimeExports.jsx(Tooltip,{message:jt(Pt),placement:It(Pt),children:jsxRuntimeExports.jsx(Button,{...Pt.props,variant:"filled",color:"primary",tabIndex:Ot===ut?0:-1,onKeyDown:Ct})},Pt.name??Ot)}return null})})}),AudioRecorder=reactExports.forwardRef(({onSaveSuccess:tt,onRecordUpdated:et,hideSaveAction:rt=!1,visibility:st="protected"},nt)=>{const{recordState:ot,playState:at,recordTime:lt,audioRef:ut,audioNameRef:ct,toolbarItems:dt,maxDuration:ht,handlePlayEnded:ft,handleSave:xt}=useAudioRecorder(tt,et,rt,st,"media-library"),{t:yt}=useTranslation();function vt(){const Rt=new Date;return`${Rt.getFullYear()}-${String(Rt.getMonth()+1).padStart(2,"0")}-${String(Rt.getDate()).padStart(2,"0")} ${String(Rt.getHours()).padStart(2,"0")}h${String(Rt.getMinutes()).padStart(2,"0")} `+yt("bbm.audio.recorder.defaultName")}reactExports.useImperativeHandle(nt,()=>({save:xt}));const[Et,bt]=reactExports.useState(0),wt=clsx({"text-danger":ot==="RECORDING","text-success":at==="PLAYING"}),St=Rt=>{bt(Rt.target.currentTime)};return jsxRuntimeExports.jsxs("div",{className:"audio-recorder m-auto d-flex flex-column",children:[jsxRuntimeExports.jsx(FormControl,{id:"recordName",className:"mb-32",isRequired:!0,isReadOnly:ot==="SAVED"||ot==="SAVING",children:jsxRuntimeExports.jsx(Input,{type:"text",size:"sm",placeholder:yt("bbm.audio.recorder.name"),ref:ct,defaultValue:vt()})}),jsxRuntimeExports.jsx("div",{className:"audio-recorder-icon mx-auto",children:jsxRuntimeExports.jsx(SvgIconMic,{width:64,height:64,className:wt})}),jsxRuntimeExports.jsx(AudioRecorderTimer,{recordState:ot,playState:at,recordTime:lt,audioTime:Et,maxDuration:ht}),jsxRuntimeExports.jsx("audio",{ref:ut,onEnded:ft,onTimeUpdate:St,children:jsxRuntimeExports.jsx("track",{default:!0,kind:"captions",srcLang:"fr",src:""})}),jsxRuntimeExports.jsx(Toolbar,{items:dt})]})}),Audio=()=>{const{setResult:tt,setPreSuccess:et,visibility:rt}=useMediaLibraryContext(),st=reactExports.useRef(null);return jsxRuntimeExports.jsx(AudioRecorder,{ref:st,onRecordUpdated:nt=>{nt?(tt(nt),et(()=>st.current.save)):tt()},onSaveSuccess:nt=>{nt&&tt(nt)},hideSaveAction:!0,visibility:rt})},ExternalLinker=({link:tt,onChange:et,multiNodeSelected:rt=!1})=>{const{t:st}=useTranslation(),[nt,ot]=reactExports.useState((tt==null?void 0:tt.text)||""),[at,lt]=reactExports.useState((tt==null?void 0:tt.url)||""),[ut,ct]=useToggle(tt?tt.target==="_blank":!0);return reactExports.useEffect(()=>{rt&&tt!=null&&tt.text&&ot(tt.text.slice(0,20)+"...")},[rt,tt]),reactExports.useEffect(()=>{if(!at.length){et==null||et();return}const dt={url:at,text:rt?tt==null?void 0:tt.text:nt||at,target:ut?"_blank":void 0};!s$3.isLocalURL(at)&&!s$3.startWithHttp(at)&&(dt.url="http://"+at),et==null||et(dt)},[nt,at,ut]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill gap-24",children:[jsxRuntimeExports.jsxs(FormControl,{id:"linkText",isOptional:!0,children:[jsxRuntimeExports.jsx(Label,{children:st("bbm.linker.ext.text")}),jsxRuntimeExports.jsx(Input,{type:"text",placeholder:st("bbm.linker.ext.text.placeholder"),size:"md",disabled:rt,value:nt,onChange:dt=>ot(dt.target.value)})]}),jsxRuntimeExports.jsxs(FormControl,{id:"linkUrl",isRequired:!0,children:[jsxRuntimeExports.jsx(Label,{children:st("bbm.linker.ext.url")}),jsxRuntimeExports.jsx(Input,{type:"text",placeholder:st("bbm.linker.ext.url.placeholder"),size:"md",value:at,onChange:dt=>lt(dt.target.value)})]}),jsxRuntimeExports.jsx(Checkbox,{label:st("bbm.linker.open.tab"),onChange:()=>ct(),checked:ut})]})})},ExternalLink=({link:tt,multiNodeSelected:et=!1})=>{const{setResult:rt}=useMediaLibraryContext();return jsxRuntimeExports.jsx(ExternalLinker,{link:tt,onChange:st=>{rt(st)},multiNodeSelected:et})},Embed=({onSuccess:tt})=>{const{t:et}=useTranslation(),[rt,st]=reactExports.useState();function nt(ot){const at=ot.target.value;st(at),at!=null&&at.length?tt(at):tt()}return jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill",children:[jsxRuntimeExports.jsx("div",{className:"mb-32",children:et("bbm.embed.description")}),jsxRuntimeExports.jsxs("div",{className:"mb-8 d-flex",children:[jsxRuntimeExports.jsx(SvgIconCode,{className:"me-8"}),et("bbm.embed.title")]}),jsxRuntimeExports.jsx(FormControl,{id:"iframeContent",children:jsxRuntimeExports.jsx(TextArea,{size:"md",height:"sm",placeholder:et("bbm.embed.placeholder"),onChange:nt})}),!!(rt!=null&&rt.length)&&jsxRuntimeExports.jsx("div",{className:"embed-preview mt-12",dangerouslySetInnerHTML:{__html:rt}}),!(rt!=null&&rt.length)&&jsxRuntimeExports.jsx("div",{className:"embed-preview mt-12 d-flex align-items-center justify-content-center bg-gray-300 text-black-50 rounded-3",children:jsxRuntimeExports.jsx("strong",{children:et("bbm.embed.preview")})})]})},Iframe=()=>{const{setResult:tt}=useMediaLibraryContext();return jsxRuntimeExports.jsx(Embed,{onSuccess:et=>{et=et==null?void 0:et.replace(/<p /g,"<div ").replace(/\/p>/g,"/div>"),tt(et)}})},SvgIconUsers=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#icon-users_svg__a)",clipRule:"evenodd",children:jsxRuntimeExports.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272M15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036M1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"icon-users_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),LinkerCard=({doc:tt,isClickable:et=!0,isSelectable:rt=!1,isSelected:st=!1,onClick:nt,className:ot})=>{const{fromNow:at}=useDate(),{fromDate:lt}=reactExports.useMemo(()=>({fromDate:at(tt.modifiedAt)}),[at,tt]);return jsxRuntimeExports.jsx(Card,{className:clsx("card-linker shadow-none",ot),isClickable:et,isSelectable:rt,isSelected:st,onClick:nt,children:jsxRuntimeExports.jsxs(Card.Body,{space:"8",children:[jsxRuntimeExports.jsx("div",{className:"card-image ps-8 pe-4",children:tt.thumbnail&&tt.thumbnail.length>0?jsxRuntimeExports.jsx(Image$1,{alt:"",height:48,width:48,src:tt.thumbnail,objectFit:"cover",className:"rounded h-full",style:{aspectRatio:1/1}}):jsxRuntimeExports.jsx(AppIcon,{app:tt.application,iconFit:"ratio",size:"48",variant:"rounded"})}),jsxRuntimeExports.jsxs("div",{className:"w-75",children:[jsxRuntimeExports.jsx(Card.Text,{children:tt.name}),jsxRuntimeExports.jsx(Card.Text,{className:"text-black-50",children:tt==null?void 0:tt.creatorName})]}),jsxRuntimeExports.jsx("div",{className:"d-none d-md-block text-black-50 ps-4 pe-8",children:jsxRuntimeExports.jsx(Card.Text,{children:lt})}),tt.shared&&jsxRuntimeExports.jsx("div",{className:"ps-4 pe-8",children:jsxRuntimeExports.jsx(SvgIconUsers,{width:"20",height:"20"})})]})})},useResourceSearch=tt=>{const[et,rt]=reactExports.useState([]);reactExports.useEffect(()=>{(async()=>(await SnipletsService.initialize(odeServices,tt),await SnipletsService.registerBehaviours(tt),rt(SnipletsService.resourceProducingApps)))()},[]);const st=reactExports.useCallback(async nt=>{const[ot]=nt.types;return await odeServices.behaviour(tt,ot).loadResources(nt)},[tt]);return{resourceApplications:et,loadResources:st}},illuOneBlog="/assets/js/ode-explorer/illu-empty-search-blog.svg",illuOneCollaborativeWall="/assets/js/ode-explorer/illu-empty-search-collaborativewall.svg",illuOneCommunity="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_149764)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M167.746%20130.552C172.704%20130.552%20176.962%20132.327%20180.519%20135.877C184.076%20139.427%20185.855%20143.677%20185.854%20148.625C185.854%20153.574%20184.076%20157.823%20180.519%20161.373C176.962%20164.923%20172.758%20166.698%20167.908%20166.698C163.057%20166.698%20158.799%20164.923%20155.135%20161.373C151.47%20157.823%20149.692%20153.52%20149.799%20148.464C149.799%20146.528%20150.23%20144.43%20151.093%20142.171L123.768%20122.484C118.487%20127.863%20112.127%20130.552%20104.69%20130.552C97.2522%20130.552%2090.8927%20127.917%2085.6111%20122.646C80.3295%20117.374%2077.6348%20110.974%2077.5271%20103.443C77.5271%20102.475%2077.6887%20101.077%2078.012%2099.2476L56.3468%2092.1477C54.6221%2093.6538%2052.6819%2094.4069%2050.5261%2094.4069C47.9391%2094.4069%2045.7833%2093.5463%2044.0587%2091.825C42.334%2090.1037%2041.4717%2087.9522%2041.4717%2085.3703C41.4717%2082.7884%2042.334%2080.6906%2044.0587%2079.0771C45.7833%2077.4635%2047.9391%2076.6028%2050.5261%2076.4952C52.6819%2076.4952%2054.5143%2077.1944%2056.0234%2078.5928C57.5325%2079.9912%2058.5564%2081.6586%2059.0953%2083.595L80.9224%2090.8565C83.1858%2086.4458%2086.4734%2082.9496%2090.785%2080.3677C95.0966%2077.7858%2099.7315%2076.4948%20104.69%2076.4948C110.295%2076.4948%20115.468%2078.1623%20120.211%2081.4971L152.386%2049.3856C150.661%2046.1582%20149.799%2043.1998%20149.799%2040.5105C149.799%2035.562%20151.577%2031.3127%20155.134%2027.7625C158.691%2024.2123%20162.949%2022.4373%20167.907%2022.4375C172.866%2022.4377%20177.069%2024.2127%20180.518%2027.7625C183.968%2031.3123%20185.746%2035.5616%20185.854%2040.5105C185.962%2045.4593%20184.183%2049.6548%20180.518%2053.0969C176.854%2056.539%20172.596%2058.314%20167.745%2058.4219C164.943%2058.4219%20161.979%2057.5075%20158.853%2055.6788L126.678%2087.9518C130.02%2092.6851%20131.69%2097.8488%20131.69%20103.443C131.69%20107.423%20130.774%20111.35%20128.942%20115.223L156.266%20134.748C159.823%20131.951%20163.65%20130.552%20167.746%20130.552V130.552Z'%20fill='%23A348C0'/%3e%3cg%20filter='url(%23filter0_d_3597_149764)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_149764'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_149764'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_149764'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_149764'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneExercizer="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_148725)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M83.4104%20149.864L112.194%20135.472V111.738L83.4104%20124.138V149.864ZM78.5673%20115.516L108.965%20102.602L78.5673%2089.5493L48.3412%20102.773L78.5673%20115.516ZM160.349%20149.864L189.167%20135.472V111.738L160.384%20124.138L160.349%20149.864ZM155.506%20115.516L185.732%20102.773L155.472%2089.7211L125.074%20102.773L155.506%20115.516ZM121.88%2093.568L150.663%2081.2028V61.3498L121.88%2073.715V93.568ZM117.037%2065.2311L150.114%2051.1141L117.037%2036.8598L83.9256%2051.1141L117.037%2065.2311ZM198.682%20104.113V135.472C198.694%20137.212%20198.231%20138.923%20197.342%20140.418C196.429%20141.946%20195.059%20143.147%20193.426%20143.853L159.8%20160.684C158.476%20161.382%20157.003%20161.746%20155.506%20161.746C154.01%20161.746%20152.536%20161.382%20151.213%20160.684L117.586%20143.853C117.379%20143.822%20117.187%20143.726%20117.037%20143.578C116.881%20143.717%20116.692%20143.812%20116.487%20143.853L82.8608%20160.684C81.5508%20161.417%2080.068%20161.784%2078.5673%20161.748C77.0983%20161.794%2075.6461%20161.425%2074.3769%20160.684L40.7504%20143.853C39.1325%20143.137%2037.7764%20141.937%2036.8691%20140.418C35.9651%20138.922%2035.4568%20137.22%2035.3921%20135.472V104.113C35.3757%20102.237%2035.9395%20100.401%2037.0064%2098.8576C38.051%2097.299%2039.55%2096.0997%2041.2999%2095.4228L73.8617%2081.4433V51.3889C73.8545%2049.5056%2074.3966%2047.6611%2075.4214%2046.0811C76.4463%2044.5011%2077.9095%2043.2541%2079.6321%2042.4928L113.259%2028.1011C114.45%2027.581%20115.737%2027.3125%20117.037%2027.3125C118.337%2027.3125%20119.623%2027.581%20120.815%2028.1011L154.442%2042.4928C156.151%2043.2379%20157.633%2044.4231%20158.735%2045.9276C159.819%2047.5145%20160.383%2049.3988%20160.349%2051.3202V81.3059L192.911%2095.2854C194.661%2095.9623%20196.16%2097.1616%20197.205%2098.7202C198.26%20100.263%20198.779%20102.109%20198.682%20103.975V104.113Z'%20fill='%23A348C0'/%3e%3cg%20filter='url(%23filter0_d_3597_148725)'%3e%3cellipse%20cx='169.707'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.011%20150.405C214.308%20149.703%20213.482%20149.21%20212.605%20148.92C220.41%20139.391%20225.098%20127.21%20225.098%20113.934C225.098%2095.9054%20216.453%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.866%2058.6953C165.678%2058.6953%20161.598%2059.1808%20157.678%2060.0649C152.634%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.366%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.634%20106.855%20114.634%20113.934C114.634%20144.442%20139.359%20169.166%20169.866%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.337%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.714%20185.775C244.113%20183.376%20244.113%20179.492%20241.714%20177.094L241.707%20177.101ZM169.859%20156.891C146.134%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.895%2090.4489C136.482%2086.4924%20139.707%2082.9924%20143.424%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.627%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_148725'%20x='108.634'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_148725'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_148725'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_148725'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneFormulaire="/assets/js/ode-explorer/illu-empty-search-formulaire.svg",illuOneForum="/assets/js/ode-explorer/illu-empty-search-forum.svg",illuOneHomeworks="/assets/js/ode-explorer/illu-empty-search-homeworks.svg",illuOneMagneto="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_149757)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M127.341%20120.329V89.4164C127.341%2077.1185%20122.455%2065.3242%20113.759%2056.6282C105.063%2047.9322%2093.2691%2043.0469%2080.9711%2043.0469C68.6731%2043.0469%2056.8789%2047.9322%2048.1829%2056.6282C39.4869%2065.3242%2034.6016%2077.1185%2034.6016%2089.4164L34.6016%20120.329H55.2103V89.4164C55.2103%2082.5842%2057.9243%2076.0319%2062.7554%2071.2008C67.5865%2066.3696%2074.1389%2063.6556%2080.9711%2063.6556C84.3541%2063.6556%2087.7039%2064.3219%2090.8294%2065.6165C93.9548%2066.9111%2096.7947%2068.8086%2099.1868%2071.2007C101.579%2073.5929%20103.476%2076.4327%20104.771%2079.5582C106.066%2082.6836%20106.732%2086.0335%20106.732%2089.4164V120.329M55.2103%20130.634H34.6016V146.09H55.2103M127.341%20130.634H106.732V146.09H127.341'%20fill='%23F1CA00'/%3e%3cpath%20d='M199.472%20120.329V89.4164C199.472%2083.3271%20198.272%2077.2974%20195.942%2071.6716C193.612%2066.0457%20190.196%2060.934%20185.89%2056.6282C181.584%2052.3224%20176.473%2048.9068%20170.847%2046.5765C165.221%2044.2463%20159.191%2043.0469%20153.102%2043.0469C140.804%2043.0469%20129.01%2047.9322%20120.314%2056.6282C111.618%2065.3242%20106.732%2077.1185%20106.732%2089.4164V120.329H127.341V89.4164C127.341%2082.5842%20130.055%2076.0319%20134.886%2071.2008C139.717%2066.3696%20146.27%2063.6556%20153.102%2063.6556C156.485%2063.6556%20159.835%2064.3219%20162.96%2065.6165C166.086%2066.9111%20168.926%2068.8086%20171.318%2071.2007C173.71%2073.5929%20175.607%2076.4327%20176.902%2079.5582C178.197%2082.6836%20178.863%2086.0335%20178.863%2089.4164V120.329M127.341%20130.634H106.732V146.09H127.341M199.472%20130.634H178.863V146.09H199.472'%20fill='%23F1CA00'/%3e%3cg%20filter='url(%23filter0_d_3597_149757)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_149757'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_149757'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_149757'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_149757'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneWiki="/assets/js/ode-explorer/illu-empty-search-wiki.svg",illuOneEmpty="/assets/js/ode-explorer/illu-empty-search.svg",illuNeoBlog="/assets/js/ode-explorer/illu-empty-search-blog2.svg",illuNeoCollaborativeWall="/assets/js/ode-explorer/illu-empty-search-collaborativewall2.svg",illuNeoCommunity="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_141038)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M167.746%20130.552C172.704%20130.552%20176.962%20132.327%20180.519%20135.877C184.076%20139.427%20185.855%20143.677%20185.854%20148.625C185.854%20153.574%20184.076%20157.823%20180.519%20161.373C176.962%20164.923%20172.758%20166.698%20167.908%20166.698C163.057%20166.698%20158.799%20164.923%20155.135%20161.373C151.47%20157.823%20149.692%20153.52%20149.799%20148.464C149.799%20146.528%20150.23%20144.43%20151.093%20142.171L123.768%20122.484C118.487%20127.863%20112.127%20130.552%20104.69%20130.552C97.2522%20130.552%2090.8927%20127.917%2085.6111%20122.646C80.3295%20117.374%2077.6348%20110.974%2077.5271%20103.443C77.5271%20102.475%2077.6887%20101.077%2078.012%2099.2476L56.3468%2092.1477C54.6221%2093.6538%2052.6819%2094.4069%2050.5261%2094.4069C47.9391%2094.4069%2045.7833%2093.5463%2044.0587%2091.825C42.334%2090.1037%2041.4717%2087.9522%2041.4717%2085.3703C41.4717%2082.7884%2042.334%2080.6906%2044.0587%2079.0771C45.7833%2077.4635%2047.9391%2076.6028%2050.5261%2076.4952C52.6819%2076.4952%2054.5143%2077.1944%2056.0234%2078.5928C57.5325%2079.9912%2058.5564%2081.6586%2059.0953%2083.595L80.9224%2090.8565C83.1858%2086.4458%2086.4734%2082.9496%2090.785%2080.3677C95.0966%2077.7858%2099.7315%2076.4948%20104.69%2076.4948C110.295%2076.4948%20115.468%2078.1623%20120.211%2081.4971L152.386%2049.3856C150.661%2046.1582%20149.799%2043.1998%20149.799%2040.5105C149.799%2035.562%20151.577%2031.3127%20155.134%2027.7625C158.691%2024.2123%20162.949%2022.4373%20167.907%2022.4375C172.866%2022.4377%20177.069%2024.2127%20180.518%2027.7625C183.968%2031.3123%20185.746%2035.5616%20185.854%2040.5105C185.962%2045.4593%20184.183%2049.6548%20180.518%2053.0969C176.854%2056.539%20172.596%2058.314%20167.745%2058.4219C164.943%2058.4219%20161.979%2057.5075%20158.853%2055.6788L126.678%2087.9518C130.02%2092.6851%20131.69%2097.8488%20131.69%20103.443C131.69%20107.423%20130.774%20111.35%20128.942%20115.223L156.266%20134.748C159.823%20131.951%20163.65%20130.552%20167.746%20130.552V130.552Z'%20fill='%23823AA1'/%3e%3cg%20filter='url(%23filter0_d_3597_141038)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_141038'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_141038'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_141038'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_141038'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoExercizer="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_148718)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M83.4104%20149.864L112.194%20135.472V111.738L83.4104%20124.138V149.864ZM78.5673%20115.516L108.965%20102.602L78.5673%2089.5493L48.3412%20102.773L78.5673%20115.516ZM160.349%20149.864L189.167%20135.472V111.738L160.384%20124.138L160.349%20149.864ZM155.506%20115.516L185.732%20102.773L155.472%2089.7211L125.074%20102.773L155.506%20115.516ZM121.88%2093.568L150.663%2081.2028V61.3498L121.88%2073.715V93.568ZM117.037%2065.2311L150.114%2051.1141L117.037%2036.8598L83.9256%2051.1141L117.037%2065.2311ZM198.682%20104.113V135.472C198.694%20137.212%20198.231%20138.923%20197.342%20140.418C196.429%20141.946%20195.059%20143.147%20193.426%20143.853L159.8%20160.684C158.476%20161.382%20157.003%20161.746%20155.506%20161.746C154.01%20161.746%20152.536%20161.382%20151.213%20160.684L117.586%20143.853C117.379%20143.822%20117.187%20143.726%20117.037%20143.578C116.881%20143.717%20116.692%20143.812%20116.487%20143.853L82.8608%20160.684C81.5508%20161.417%2080.068%20161.784%2078.5673%20161.748C77.0983%20161.794%2075.6461%20161.425%2074.3769%20160.684L40.7504%20143.853C39.1325%20143.137%2037.7764%20141.937%2036.8691%20140.418C35.9651%20138.922%2035.4568%20137.22%2035.3921%20135.472V104.113C35.3757%20102.237%2035.9395%20100.401%2037.0064%2098.8576C38.051%2097.299%2039.55%2096.0997%2041.2999%2095.4228L73.8617%2081.4433V51.3889C73.8545%2049.5056%2074.3966%2047.6611%2075.4214%2046.0811C76.4463%2044.5011%2077.9095%2043.2541%2079.6321%2042.4928L113.259%2028.1011C114.45%2027.581%20115.737%2027.3125%20117.037%2027.3125C118.337%2027.3125%20119.623%2027.581%20120.815%2028.1011L154.442%2042.4928C156.151%2043.2379%20157.633%2044.4231%20158.735%2045.9276C159.819%2047.5145%20160.383%2049.3988%20160.349%2051.3202V81.3059L192.911%2095.2854C194.661%2095.9623%20196.16%2097.1616%20197.205%2098.7202C198.26%20100.263%20198.779%20102.109%20198.682%20103.975V104.113Z'%20fill='%23823AA1'/%3e%3cg%20filter='url(%23filter0_d_3597_148718)'%3e%3cellipse%20cx='169.707'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.011%20150.405C214.308%20149.703%20213.482%20149.21%20212.605%20148.92C220.41%20139.391%20225.098%20127.21%20225.098%20113.934C225.098%2095.9054%20216.453%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.866%2058.6953C165.678%2058.6953%20161.598%2059.1808%20157.678%2060.0649C152.634%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.366%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.634%20106.855%20114.634%20113.934C114.634%20144.442%20139.359%20169.166%20169.866%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.337%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.714%20185.775C244.113%20183.376%20244.113%20179.492%20241.714%20177.094L241.707%20177.101ZM169.859%20156.891C146.134%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.895%2090.4489C136.482%2086.4924%20139.707%2082.9924%20143.424%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.627%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_148718'%20x='108.634'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_148718'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_148718'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_148718'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoFormulaire="/assets/js/ode-explorer/illu-empty-search-formulaire2.svg",illuNeoForum="/assets/js/ode-explorer/illu-empty-search-forum2.svg",illuNeoHomeworks="/assets/js/ode-explorer/illu-empty-search-homeworks2.svg",illuNeoMagneto="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_141030)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M127.341%20120.329V89.4164C127.341%2077.1185%20122.455%2065.3242%20113.759%2056.6282C105.063%2047.9322%2093.2691%2043.0469%2080.9711%2043.0469C68.6731%2043.0469%2056.8789%2047.9322%2048.1829%2056.6282C39.4869%2065.3242%2034.6016%2077.1185%2034.6016%2089.4164L34.6016%20120.329H55.2103V89.4164C55.2103%2082.5842%2057.9243%2076.0319%2062.7554%2071.2008C67.5865%2066.3696%2074.1389%2063.6556%2080.9711%2063.6556C84.3541%2063.6556%2087.7039%2064.3219%2090.8294%2065.6165C93.9548%2066.9111%2096.7947%2068.8086%2099.1868%2071.2007C101.579%2073.5929%20103.476%2076.4327%20104.771%2079.5582C106.066%2082.6836%20106.732%2086.0335%20106.732%2089.4164V120.329M55.2103%20130.634H34.6016V146.09H55.2103M127.341%20130.634H106.732V146.09H127.341'%20fill='%23ECBE30'/%3e%3cpath%20d='M199.472%20120.329V89.4164C199.472%2083.3271%20198.272%2077.2974%20195.942%2071.6716C193.612%2066.0457%20190.196%2060.934%20185.89%2056.6282C181.584%2052.3224%20176.473%2048.9068%20170.847%2046.5765C165.221%2044.2463%20159.191%2043.0469%20153.102%2043.0469C140.804%2043.0469%20129.01%2047.9322%20120.314%2056.6282C111.618%2065.3242%20106.732%2077.1185%20106.732%2089.4164V120.329H127.341V89.4164C127.341%2082.5842%20130.055%2076.0319%20134.886%2071.2008C139.717%2066.3696%20146.27%2063.6556%20153.102%2063.6556C156.485%2063.6556%20159.835%2064.3219%20162.96%2065.6165C166.086%2066.9111%20168.926%2068.8086%20171.318%2071.2007C173.71%2073.5929%20175.607%2076.4327%20176.902%2079.5582C178.197%2082.6836%20178.863%2086.0335%20178.863%2089.4164V120.329M127.341%20130.634H106.732V146.09H127.341M199.472%20130.634H178.863V146.09H199.472'%20fill='%23ECBE30'/%3e%3cg%20filter='url(%23filter0_d_3597_141030)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_141030'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_141030'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_141030'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_141030'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoWiki="/assets/js/ode-explorer/illu-empty-search-wiki2.svg",illuNeoEmpty="/assets/js/ode-explorer/illu-empty-search2.svg",emptyScreenMapping={one:{blog:illuOneBlog,wiki:illuOneWiki,empty:illuOneEmpty,"collaborative-wall":illuOneCollaborativeWall,community:illuOneCommunity,exercizer:illuOneExercizer,formulaire:illuOneFormulaire,forum:illuOneForum,homeworks:illuOneHomeworks,magneto:illuOneMagneto},neo:{blog:illuNeoBlog,wiki:illuNeoWiki,empty:illuNeoEmpty,"collaborative-wall":illuNeoCollaborativeWall,community:illuNeoCommunity,exercizer:illuNeoExercizer,formulaire:illuNeoFormulaire,forum:illuNeoForum,homeworks:illuNeoHomeworks,magneto:illuNeoMagneto}},InternalLinker=({appCode:tt,defaultAppCode:et,defaultResourceId:rt,onChange:st,onSelect:nt,multiple:ot=!0,resourceList:at,applicationList:lt,showApplicationSelector:ut=!0,resourceFilter:ct})=>{const{t:dt}=useTranslation(),{theme:ht}=useEdificeTheme(),{resourceApplications:ft,loadResources:xt}=useResourceSearch(tt),[yt,vt]=reactExports.useState(),[Et,bt]=reactExports.useState(),[wt,St]=reactExports.useState(),Rt=useDebounce(wt||"",500),[Ct,jt]=reactExports.useState([]),It=reactExports.useCallback((Mt,Vt)=>{var Bt,qt,Yt;if(!Vt)return!0;const Kt=(Vt==null?void 0:Vt.toLowerCase())||"";return((Bt=Mt.name)==null?void 0:Bt.toLowerCase().includes(Kt))||((qt=Mt.creatorName)==null?void 0:qt.toLowerCase().includes(Kt))||((Yt=Mt.description)==null?void 0:Yt.toLowerCase().includes(Kt))},[]),Pt=reactExports.useCallback(Mt=>Mt.sort((Vt,Bt)=>Vt.modifiedAt<Bt.modifiedAt?1:-1),[]),Ot=reactExports.useCallback(Mt=>{async function Vt(){if(at){let Bt=at.filter(qt=>It(qt,Mt));ct&&(Bt=Bt.filter(ct)),jt(Pt(Bt));return}else if(Et)try{let Bt=(await xt({application:Et.application,search:Mt,types:[Et.application],filters:{},pagination:{startIdx:0,pageSize:300}})).filter(qt=>It(qt,Mt));ct&&(Bt=Bt.filter(ct)),jt(Pt(Bt));return}catch{}jt([])}Vt()},[xt,Et,It,Pt,at,ct]),[Ut,Nt]=reactExports.useState([]),Ht=Mt=>{st==null||st(Mt),bt(Mt)},Lt=Mt=>{const Vt=Mt.target.value;St(Vt.toString())},kt=reactExports.useCallback(Mt=>{Ot(wt),Mt.stopPropagation(),Mt.preventDefault()},[Ot,wt]),$t=reactExports.useCallback(Mt=>Ut.findIndex(Vt=>Vt.assetId===Mt),[Ut]),Ft=reactExports.useCallback(Mt=>{Nt(ot?Vt=>[...Vt,Mt]:[Mt])},[Nt,ot]),Gt=reactExports.useCallback(Mt=>{const Vt=$t(Mt.assetId);Vt<0?Ft(Mt):Nt(Ut.filter((Bt,qt)=>qt!==Vt))},[$t,Ft,Ut]);return reactExports.useEffect(()=>{(async()=>{if(lt){vt(lt.sort((qt,Yt)=>qt.displayName.localeCompare(Yt.displayName)));return}const Mt=ft.map(qt=>odeServices.session().getWebApp(qt)),Vt=await Promise.all(Mt),Bt=ft.map((qt,Yt)=>{var Kt;let tr=((Kt=Vt[Yt])==null?void 0:Kt.displayName)??qt;return qt==="exercizer"?tr="bbm.linker.int.app.exercizer":qt==="formulaire"&&(tr="bbm.linker.int.app.forms"),{application:qt,displayName:dt(tr??qt),icon:jsxRuntimeExports.jsx(AppIcon,{app:Vt[Yt],size:"24"})}}).sort((qt,Yt)=>qt.displayName.localeCompare(Yt.displayName));vt(Bt)})()},[ft,dt,lt]),reactExports.useEffect(()=>{Ot(Rt)},[Ot,Rt]),reactExports.useEffect(()=>{nt==null||nt(Ut)},[Ut]),reactExports.useEffect(()=>{var Mt;const Vt=et??((lt==null?void 0:lt.length)===1&&((Mt=lt==null?void 0:lt[0])==null?void 0:Mt.application));if(Vt){const Bt=yt==null?void 0:yt.find(qt=>Vt===qt.application);bt(Bt),Ot("")}},[yt,et]),reactExports.useEffect(()=>{if(rt&&$t(rt)<0){const Mt=Ct==null?void 0:Ct.find(Vt=>rt===Vt.assetId);Mt&&Ft(Mt)}},[Ct]),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill overflow-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"search d-flex bg-light rounded-top border border-bottom-0",children:[ut&&jsxRuntimeExports.jsx("div",{className:"flex-shrink-1 px-8 py-12 border-end",children:jsxRuntimeExports.jsxs(Dropdown,{overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{icon:jsxRuntimeExports.jsx("div",{className:"pe-8",children:(Et==null?void 0:Et.icon)||jsxRuntimeExports.jsx(SvgIconApplications,{})}),label:dt((Et==null?void 0:Et.displayName)||"bbm.linker.int.choose"),variant:"ghost",size:"md"}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:yt==null?void 0:yt.map(Mt=>jsxRuntimeExports.jsx(Dropdown.Item,{icon:Mt.icon,onClick:()=>Ht(Mt),children:Mt.displayName},Mt.application))})]})}),jsxRuntimeExports.jsx("div",{className:"flex-grow-1 align-self-center",children:jsxRuntimeExports.jsx("form",{className:"gap-16 d-flex w-100 align-items-center px-16 py-8",onSubmit:kt,children:jsxRuntimeExports.jsx(SearchBar,{isVariant:!0,placeholder:dt("search"),size:"lg",className:"w-100",disabled:!Et,onChange:Lt})})})]}),jsxRuntimeExports.jsxs("div",{className:"internal-linker flex-grow-1 w-100 rounded-bottom border gap-0 overflow-auto",children:[Et&&Ct&&Ct.length>0&&jsxRuntimeExports.jsx("div",{children:Ct.map(Mt=>{const Vt=Ut.findIndex(Bt=>Bt.assetId===Mt.assetId)>=0;return jsxRuntimeExports.jsx(LinkerCard,{doc:Mt,isSelected:Vt,onClick:()=>Gt(Mt)},Mt.path)})}),Et&&Ct&&Ct.length<=0&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-16",children:jsxRuntimeExports.jsx(EmptyScreen,{imageSrc:emptyScreenMapping[(ht==null?void 0:ht.bootstrapVersion)??"one"][Et==null?void 0:Et.application],text:dt("bbm.linker.int.notfound"),className:"mt-16"})}),!Et&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-32",children:jsxRuntimeExports.jsx(EmptyScreen,{imageSrc:emptyScreenMapping[(ht==null?void 0:ht.bootstrapVersion)??"one"].empty,text:dt("bbm.linker.int.empty"),className:"mt-32"})})]})]})},InternalLink=({target:tt,resourceId:et,appPrefix:rt})=>{const{t:st}=useTranslation(),{setResult:nt,setResultCounter:ot,appCode:at,multiple:lt}=useMediaLibraryContext(),[ut,ct]=useToggle(tt==="_blank"),[dt,ht]=reactExports.useState([]),ft=xt=>{ht(xt)};return reactExports.useEffect(()=>{nt({target:ut?"_blank":void 0,resources:dt}),dt&&dt.length?ot(dt.length):ot(void 0)},[ut,dt]),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill gap-16 overflow-hidden",children:[jsxRuntimeExports.jsx(InternalLinker,{appCode:at,defaultAppCode:rt,defaultResourceId:et,onSelect:ft,multiple:lt}),jsxRuntimeExports.jsx(Checkbox,{className:"align-items-center",checked:ut,label:st("bbm.linker.open.tab"),onChange:ct})]})},SvgIconReset=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.583 7.313 3.976 3.87a.996.996 0 1 0-1.96.346l1.012 5.747a.996.996 0 0 0 1.153.809l5.743-1.014a.997.997 0 0 0-.346-1.962l-3.3.582a7.754 7.754 0 0 1 8.399-4.254 7.76 7.76 0 0 1 .78 15.064 7.745 7.745 0 0 1-8.912-3.56.995.995 0 1 0-1.724.997 9.744 9.744 0 0 0 11.201 4.474 9.74 9.74 0 0 0 5.19-3.718 9.756 9.756 0 0 0-.625-12.055A9.74 9.74 0 0 0 8.73 3.117a9.75 9.75 0 0 0-4.147 4.196",clipRule:"evenodd"})]}),SvgIconWand=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 0a1 1 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 0 2 1 1 0 0 0-1 1 1 1 0 1 1-2 0 1 1 0 0 0-1-1 1 1 0 0 1 0-2 1 1 0 0 0 1-1 1 1 0 0 1 1-1m9.914 2a2 2 0 0 0-2.828 0L1 18.086a2 2 0 0 0 0 2.828L3.086 23a2 2 0 0 0 2.828 0L22 6.914a2 2 0 0 0 0-2.828zm-3.75 3.75L18.5 3.414 20.586 5.5 18.25 7.836zM14.75 7.164 2.414 19.5 4.5 21.586 16.836 9.25zM21 13a1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 1 1 0 0 1 1-1 1 1 0 1 0 0-2 1 1 0 0 1-1-1",clipRule:"evenodd"})]}),UploadCard=({item:tt,status:et="idle",isClickable:rt=!1,isSelectable:st=!1,onDelete:nt,onEdit:ot,onRetry:at})=>{const{t:lt}=useTranslation(),{src:ut,name:ct,info:dt}=tt,ht=et==="idle",ft=et==="loading",xt=et==="success",yt=dt==null?void 0:dt.type.startsWith("image"),vt={text:"",context:null,image:jsxRuntimeExports.jsx("img",{src:commonPlaceholder,alt:"",width:"48",height:"48"})},Et={error:{text:jsxRuntimeExports.jsx("strong",{children:jsxRuntimeExports.jsx("small",{className:"text-danger caption",children:lt("tiptap.upload.error")})}),context:jsxRuntimeExports.jsx(Button,{leftIcon:jsxRuntimeExports.jsx(SvgIconReset,{}),variant:"ghost",color:"tertiary",onClick:at,children:lt("tiptap.upload.retry")}),image:jsxRuntimeExports.jsx(Image$1,{alt:"",src:`${commonPlaceholder}/common/image-status-error.svg`,objectFit:"cover"})},idle:vt,loading:{text:"",context:jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.loading"),placement:"top",children:jsxRuntimeExports.jsx(Loading,{isLoading:!0,loadingPosition:"left",className:"text-secondary"})}),image:vt.image},warning:vt,success:{text:jsxRuntimeExports.jsxs("em",{children:[dt==null?void 0:dt.type," ",(dt==null?void 0:dt.weight)&&`- ${dt.weight}`]}),context:jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.loaded"),placement:"top",children:jsxRuntimeExports.jsx(SvgIconSuccessOutline,{className:"text-success"})}),image:jsxRuntimeExports.jsx(Image$1,{alt:"",src:ut??"",width:"48",objectFit:"cover",className:"rounded",style:{aspectRatio:1/1}})},unknown:vt},bt=()=>yt&&jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.edit"),placement:"top",children:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgIconWand,{}),variant:"ghost","aria-label":lt("tiptap.tooltip.upload.loading"),disabled:ft||!xt,onClick:ot,color:"secondary"})});return jsxRuntimeExports.jsx(Card,{isClickable:rt,isSelectable:st,className:"card-upload",children:jsxRuntimeExports.jsxs(Card.Body,{children:[jsxRuntimeExports.jsx("div",{className:"card-image",children:Et[et].image}),jsxRuntimeExports.jsxs("div",{className:"text-truncate",children:[jsxRuntimeExports.jsx(Card.Text,{children:ct}),jsxRuntimeExports.jsx(Card.Text,{className:"caption",children:Et[et].text})]}),!ht&&jsxRuntimeExports.jsx("div",{className:"ms-auto",children:jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center gap-12",children:[Et[et].context,!ht&&jsxRuntimeExports.jsx("div",{className:"vr"}),bt(),jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.delete"),placement:"top",children:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgIconClose,{}),variant:"ghost","aria-label":lt("tiptap.tooltip.upload.delete"),color:"tertiary",onClick:nt})})]})})]})})};var module$1={exports:{}},ENV=(tt=>(tt[tt.WEBGL_LEGACY=0]="WEBGL_LEGACY",tt[tt.WEBGL=1]="WEBGL",tt[tt.WEBGL2=2]="WEBGL2",tt))(ENV||{}),RENDERER_TYPE=(tt=>(tt[tt.UNKNOWN=0]="UNKNOWN",tt[tt.WEBGL=1]="WEBGL",tt[tt.CANVAS=2]="CANVAS",tt))(RENDERER_TYPE||{}),BUFFER_BITS=(tt=>(tt[tt.COLOR=16384]="COLOR",tt[tt.DEPTH=256]="DEPTH",tt[tt.STENCIL=1024]="STENCIL",tt))(BUFFER_BITS||{}),BLEND_MODES=(tt=>(tt[tt.NORMAL=0]="NORMAL",tt[tt.ADD=1]="ADD",tt[tt.MULTIPLY=2]="MULTIPLY",tt[tt.SCREEN=3]="SCREEN",tt[tt.OVERLAY=4]="OVERLAY",tt[tt.DARKEN=5]="DARKEN",tt[tt.LIGHTEN=6]="LIGHTEN",tt[tt.COLOR_DODGE=7]="COLOR_DODGE",tt[tt.COLOR_BURN=8]="COLOR_BURN",tt[tt.HARD_LIGHT=9]="HARD_LIGHT",tt[tt.SOFT_LIGHT=10]="SOFT_LIGHT",tt[tt.DIFFERENCE=11]="DIFFERENCE",tt[tt.EXCLUSION=12]="EXCLUSION",tt[tt.HUE=13]="HUE",tt[tt.SATURATION=14]="SATURATION",tt[tt.COLOR=15]="COLOR",tt[tt.LUMINOSITY=16]="LUMINOSITY",tt[tt.NORMAL_NPM=17]="NORMAL_NPM",tt[tt.ADD_NPM=18]="ADD_NPM",tt[tt.SCREEN_NPM=19]="SCREEN_NPM",tt[tt.NONE=20]="NONE",tt[tt.SRC_OVER=0]="SRC_OVER",tt[tt.SRC_IN=21]="SRC_IN",tt[tt.SRC_OUT=22]="SRC_OUT",tt[tt.SRC_ATOP=23]="SRC_ATOP",tt[tt.DST_OVER=24]="DST_OVER",tt[tt.DST_IN=25]="DST_IN",tt[tt.DST_OUT=26]="DST_OUT",tt[tt.DST_ATOP=27]="DST_ATOP",tt[tt.ERASE=26]="ERASE",tt[tt.SUBTRACT=28]="SUBTRACT",tt[tt.XOR=29]="XOR",tt))(BLEND_MODES||{}),DRAW_MODES=(tt=>(tt[tt.POINTS=0]="POINTS",tt[tt.LINES=1]="LINES",tt[tt.LINE_LOOP=2]="LINE_LOOP",tt[tt.LINE_STRIP=3]="LINE_STRIP",tt[tt.TRIANGLES=4]="TRIANGLES",tt[tt.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",tt[tt.TRIANGLE_FAN=6]="TRIANGLE_FAN",tt))(DRAW_MODES||{}),FORMATS=(tt=>(tt[tt.RGBA=6408]="RGBA",tt[tt.RGB=6407]="RGB",tt[tt.RG=33319]="RG",tt[tt.RED=6403]="RED",tt[tt.RGBA_INTEGER=36249]="RGBA_INTEGER",tt[tt.RGB_INTEGER=36248]="RGB_INTEGER",tt[tt.RG_INTEGER=33320]="RG_INTEGER",tt[tt.RED_INTEGER=36244]="RED_INTEGER",tt[tt.ALPHA=6406]="ALPHA",tt[tt.LUMINANCE=6409]="LUMINANCE",tt[tt.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",tt[tt.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",tt[tt.DEPTH_STENCIL=34041]="DEPTH_STENCIL",tt))(FORMATS||{}),TARGETS=(tt=>(tt[tt.TEXTURE_2D=3553]="TEXTURE_2D",tt[tt.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",tt[tt.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",tt))(TARGETS||{}),TYPES=(tt=>(tt[tt.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",tt[tt.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",tt[tt.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",tt[tt.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",tt[tt.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",tt[tt.UNSIGNED_INT=5125]="UNSIGNED_INT",tt[tt.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",tt[tt.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",tt[tt.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",tt[tt.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",tt[tt.BYTE=5120]="BYTE",tt[tt.SHORT=5122]="SHORT",tt[tt.INT=5124]="INT",tt[tt.FLOAT=5126]="FLOAT",tt[tt.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",tt[tt.HALF_FLOAT=36193]="HALF_FLOAT",tt))(TYPES||{}),SAMPLER_TYPES=(tt=>(tt[tt.FLOAT=0]="FLOAT",tt[tt.INT=1]="INT",tt[tt.UINT=2]="UINT",tt))(SAMPLER_TYPES||{}),SCALE_MODES=(tt=>(tt[tt.NEAREST=0]="NEAREST",tt[tt.LINEAR=1]="LINEAR",tt))(SCALE_MODES||{}),WRAP_MODES=(tt=>(tt[tt.CLAMP=33071]="CLAMP",tt[tt.REPEAT=10497]="REPEAT",tt[tt.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",tt))(WRAP_MODES||{}),MIPMAP_MODES=(tt=>(tt[tt.OFF=0]="OFF",tt[tt.POW2=1]="POW2",tt[tt.ON=2]="ON",tt[tt.ON_MANUAL=3]="ON_MANUAL",tt))(MIPMAP_MODES||{}),ALPHA_MODES=(tt=>(tt[tt.NPM=0]="NPM",tt[tt.UNPACK=1]="UNPACK",tt[tt.PMA=2]="PMA",tt[tt.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",tt[tt.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",tt[tt.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",tt))(ALPHA_MODES||{}),CLEAR_MODES=(tt=>(tt[tt.NO=0]="NO",tt[tt.YES=1]="YES",tt[tt.AUTO=2]="AUTO",tt[tt.BLEND=0]="BLEND",tt[tt.CLEAR=1]="CLEAR",tt[tt.BLIT=2]="BLIT",tt))(CLEAR_MODES||{}),GC_MODES=(tt=>(tt[tt.AUTO=0]="AUTO",tt[tt.MANUAL=1]="MANUAL",tt))(GC_MODES||{}),PRECISION=(tt=>(tt.LOW="lowp",tt.MEDIUM="mediump",tt.HIGH="highp",tt))(PRECISION||{}),MASK_TYPES=(tt=>(tt[tt.NONE=0]="NONE",tt[tt.SCISSOR=1]="SCISSOR",tt[tt.STENCIL=2]="STENCIL",tt[tt.SPRITE=3]="SPRITE",tt[tt.COLOR=4]="COLOR",tt))(MASK_TYPES||{}),MSAA_QUALITY=(tt=>(tt[tt.NONE=0]="NONE",tt[tt.LOW=2]="LOW",tt[tt.MEDIUM=4]="MEDIUM",tt[tt.HIGH=8]="HIGH",tt))(MSAA_QUALITY||{}),BUFFER_TYPE=(tt=>(tt[tt.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",tt[tt.ARRAY_BUFFER=34962]="ARRAY_BUFFER",tt[tt.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",tt))(BUFFER_TYPE||{});const BrowserAdapter={createCanvas:(tt,et)=>{const rt=document.createElement("canvas");return rt.width=tt,rt.height=et,rt},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(tt,et)=>fetch(tt,et),parseXML:tt=>new DOMParser().parseFromString(tt,"text/xml")},settings={ADAPTER:BrowserAdapter,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(tt){return typeof tt<"u"&&tt.platform==="MacIntel"&&typeof tt.maxTouchPoints=="number"&&tt.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(tt){return function(et){return et.test(tt)}}function isMobile$1(tt){var et={userAgent:"",platform:"",maxTouchPoints:0};!tt&&typeof navigator<"u"?et={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof tt=="string"?et.userAgent=tt:tt&&tt.userAgent&&(et={userAgent:tt.userAgent,platform:tt.platform,maxTouchPoints:tt.maxTouchPoints||0});var rt=et.userAgent,st=rt.split("[FBAN");typeof st[1]<"u"&&(rt=st[0]),st=rt.split("Twitter"),typeof st[1]<"u"&&(rt=st[0]);var nt=createMatch(rt),ot={apple:{phone:nt(appleIphone)&&!nt(windowsPhone),ipod:nt(appleIpod),tablet:!nt(appleIphone)&&(nt(appleTablet)||isAppleTabletOnIos13(et))&&!nt(windowsPhone),universal:nt(appleUniversal),device:(nt(appleIphone)||nt(appleIpod)||nt(appleTablet)||nt(appleUniversal)||isAppleTabletOnIos13(et))&&!nt(windowsPhone)},amazon:{phone:nt(amazonPhone),tablet:!nt(amazonPhone)&&nt(amazonTablet),device:nt(amazonPhone)||nt(amazonTablet)},android:{phone:!nt(windowsPhone)&&nt(amazonPhone)||!nt(windowsPhone)&&nt(androidPhone),tablet:!nt(windowsPhone)&&!nt(amazonPhone)&&!nt(androidPhone)&&(nt(amazonTablet)||nt(androidTablet)),device:!nt(windowsPhone)&&(nt(amazonPhone)||nt(amazonTablet)||nt(androidPhone)||nt(androidTablet))||nt(/\bokhttp\b/i)},windows:{phone:nt(windowsPhone),tablet:nt(windowsTablet),device:nt(windowsPhone)||nt(windowsTablet)},other:{blackberry:nt(otherBlackBerry),blackberry10:nt(otherBlackBerry10),opera:nt(otherOpera),firefox:nt(otherFirefox),chrome:nt(otherChrome),device:nt(otherBlackBerry)||nt(otherBlackBerry10)||nt(otherOpera)||nt(otherFirefox)||nt(otherChrome)},any:!1,phone:!1,tablet:!1};return ot.any=ot.apple.device||ot.android.device||ot.windows.device||ot.other.device,ot.phone=ot.apple.phone||ot.android.phone||ot.windows.phone,ot.tablet=ot.apple.tablet||ot.android.tablet||ot.windows.tablet,ot}const isMobileCall=isMobile$1.default??isMobile$1,isMobile=isMobileCall(globalThis.navigator);settings.RETINA_PREFIX=/@([0-9\.]+)x/;settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var eventemitter3={exports:{}};(function(tt){var et=Object.prototype.hasOwnProperty,rt="~";function st(){}Object.create&&(st.prototype=Object.create(null),new st().__proto__||(rt=!1));function nt(ut,ct,dt){this.fn=ut,this.context=ct,this.once=dt||!1}function ot(ut,ct,dt,ht,ft){if(typeof dt!="function")throw new TypeError("The listener must be a function");var xt=new nt(dt,ht||ut,ft),yt=rt?rt+ct:ct;return ut._events[yt]?ut._events[yt].fn?ut._events[yt]=[ut._events[yt],xt]:ut._events[yt].push(xt):(ut._events[yt]=xt,ut._eventsCount++),ut}function at(ut,ct){--ut._eventsCount===0?ut._events=new st:delete ut._events[ct]}function lt(){this._events=new st,this._eventsCount=0}lt.prototype.eventNames=function(){var ct=[],dt,ht;if(this._eventsCount===0)return ct;for(ht in dt=this._events)et.call(dt,ht)&&ct.push(rt?ht.slice(1):ht);return Object.getOwnPropertySymbols?ct.concat(Object.getOwnPropertySymbols(dt)):ct},lt.prototype.listeners=function(ct){var dt=rt?rt+ct:ct,ht=this._events[dt];if(!ht)return[];if(ht.fn)return[ht.fn];for(var ft=0,xt=ht.length,yt=new Array(xt);ft<xt;ft++)yt[ft]=ht[ft].fn;return yt},lt.prototype.listenerCount=function(ct){var dt=rt?rt+ct:ct,ht=this._events[dt];return ht?ht.fn?1:ht.length:0},lt.prototype.emit=function(ct,dt,ht,ft,xt,yt){var vt=rt?rt+ct:ct;if(!this._events[vt])return!1;var Et=this._events[vt],bt=arguments.length,wt,St;if(Et.fn){switch(Et.once&&this.removeListener(ct,Et.fn,void 0,!0),bt){case 1:return Et.fn.call(Et.context),!0;case 2:return Et.fn.call(Et.context,dt),!0;case 3:return Et.fn.call(Et.context,dt,ht),!0;case 4:return Et.fn.call(Et.context,dt,ht,ft),!0;case 5:return Et.fn.call(Et.context,dt,ht,ft,xt),!0;case 6:return Et.fn.call(Et.context,dt,ht,ft,xt,yt),!0}for(St=1,wt=new Array(bt-1);St<bt;St++)wt[St-1]=arguments[St];Et.fn.apply(Et.context,wt)}else{var Rt=Et.length,Ct;for(St=0;St<Rt;St++)switch(Et[St].once&&this.removeListener(ct,Et[St].fn,void 0,!0),bt){case 1:Et[St].fn.call(Et[St].context);break;case 2:Et[St].fn.call(Et[St].context,dt);break;case 3:Et[St].fn.call(Et[St].context,dt,ht);break;case 4:Et[St].fn.call(Et[St].context,dt,ht,ft);break;default:if(!wt)for(Ct=1,wt=new Array(bt-1);Ct<bt;Ct++)wt[Ct-1]=arguments[Ct];Et[St].fn.apply(Et[St].context,wt)}}return!0},lt.prototype.on=function(ct,dt,ht){return ot(this,ct,dt,ht,!1)},lt.prototype.once=function(ct,dt,ht){return ot(this,ct,dt,ht,!0)},lt.prototype.removeListener=function(ct,dt,ht,ft){var xt=rt?rt+ct:ct;if(!this._events[xt])return this;if(!dt)return at(this,xt),this;var yt=this._events[xt];if(yt.fn)yt.fn===dt&&(!ft||yt.once)&&(!ht||yt.context===ht)&&at(this,xt);else{for(var vt=0,Et=[],bt=yt.length;vt<bt;vt++)(yt[vt].fn!==dt||ft&&!yt[vt].once||ht&&yt[vt].context!==ht)&&Et.push(yt[vt]);Et.length?this._events[xt]=Et.length===1?Et[0]:Et:at(this,xt)}return this},lt.prototype.removeAllListeners=function(ct){var dt;return ct?(dt=rt?rt+ct:ct,this._events[dt]&&at(this,dt)):(this._events=new st,this._eventsCount=0),this},lt.prototype.off=lt.prototype.removeListener,lt.prototype.addListener=lt.prototype.on,lt.prefixed=rt,lt.EventEmitter=lt,tt.exports=lt})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var earcut$1={exports:{}};earcut$1.exports=earcut;earcut$1.exports.default=earcut;function earcut(tt,et,rt){rt=rt||2;var st=et&&et.length,nt=st?et[0]*rt:tt.length,ot=linkedList(tt,0,nt,rt,!0),at=[];if(!ot||ot.next===ot.prev)return at;var lt,ut,ct,dt,ht,ft,xt;if(st&&(ot=eliminateHoles(tt,et,ot,rt)),tt.length>80*rt){lt=ct=tt[0],ut=dt=tt[1];for(var yt=rt;yt<nt;yt+=rt)ht=tt[yt],ft=tt[yt+1],ht<lt&&(lt=ht),ft<ut&&(ut=ft),ht>ct&&(ct=ht),ft>dt&&(dt=ft);xt=Math.max(ct-lt,dt-ut),xt=xt!==0?32767/xt:0}return earcutLinked(ot,at,rt,lt,ut,xt,0),at}function linkedList(tt,et,rt,st,nt){var ot,at;if(nt===signedArea(tt,et,rt,st)>0)for(ot=et;ot<rt;ot+=st)at=insertNode(ot,tt[ot],tt[ot+1],at);else for(ot=rt-st;ot>=et;ot-=st)at=insertNode(ot,tt[ot],tt[ot+1],at);return at&&equals(at,at.next)&&(removeNode(at),at=at.next),at}function filterPoints(tt,et){if(!tt)return tt;et||(et=tt);var rt=tt,st;do if(st=!1,!rt.steiner&&(equals(rt,rt.next)||area(rt.prev,rt,rt.next)===0)){if(removeNode(rt),rt=et=rt.prev,rt===rt.next)break;st=!0}else rt=rt.next;while(st||rt!==et);return et}function earcutLinked(tt,et,rt,st,nt,ot,at){if(tt){!at&&ot&&indexCurve(tt,st,nt,ot);for(var lt=tt,ut,ct;tt.prev!==tt.next;){if(ut=tt.prev,ct=tt.next,ot?isEarHashed(tt,st,nt,ot):isEar(tt)){et.push(ut.i/rt|0),et.push(tt.i/rt|0),et.push(ct.i/rt|0),removeNode(tt),tt=ct.next,lt=ct.next;continue}if(tt=ct,tt===lt){at?at===1?(tt=cureLocalIntersections(filterPoints(tt),et,rt),earcutLinked(tt,et,rt,st,nt,ot,2)):at===2&&splitEarcut(tt,et,rt,st,nt,ot):earcutLinked(filterPoints(tt),et,rt,st,nt,ot,1);break}}}}function isEar(tt){var et=tt.prev,rt=tt,st=tt.next;if(area(et,rt,st)>=0)return!1;for(var nt=et.x,ot=rt.x,at=st.x,lt=et.y,ut=rt.y,ct=st.y,dt=nt<ot?nt<at?nt:at:ot<at?ot:at,ht=lt<ut?lt<ct?lt:ct:ut<ct?ut:ct,ft=nt>ot?nt>at?nt:at:ot>at?ot:at,xt=lt>ut?lt>ct?lt:ct:ut>ct?ut:ct,yt=st.next;yt!==et;){if(yt.x>=dt&&yt.x<=ft&&yt.y>=ht&&yt.y<=xt&&pointInTriangle(nt,lt,ot,ut,at,ct,yt.x,yt.y)&&area(yt.prev,yt,yt.next)>=0)return!1;yt=yt.next}return!0}function isEarHashed(tt,et,rt,st){var nt=tt.prev,ot=tt,at=tt.next;if(area(nt,ot,at)>=0)return!1;for(var lt=nt.x,ut=ot.x,ct=at.x,dt=nt.y,ht=ot.y,ft=at.y,xt=lt<ut?lt<ct?lt:ct:ut<ct?ut:ct,yt=dt<ht?dt<ft?dt:ft:ht<ft?ht:ft,vt=lt>ut?lt>ct?lt:ct:ut>ct?ut:ct,Et=dt>ht?dt>ft?dt:ft:ht>ft?ht:ft,bt=zOrder(xt,yt,et,rt,st),wt=zOrder(vt,Et,et,rt,st),St=tt.prevZ,Rt=tt.nextZ;St&&St.z>=bt&&Rt&&Rt.z<=wt;){if(St.x>=xt&&St.x<=vt&&St.y>=yt&&St.y<=Et&&St!==nt&&St!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,St.x,St.y)&&area(St.prev,St,St.next)>=0||(St=St.prevZ,Rt.x>=xt&&Rt.x<=vt&&Rt.y>=yt&&Rt.y<=Et&&Rt!==nt&&Rt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,Rt.x,Rt.y)&&area(Rt.prev,Rt,Rt.next)>=0))return!1;Rt=Rt.nextZ}for(;St&&St.z>=bt;){if(St.x>=xt&&St.x<=vt&&St.y>=yt&&St.y<=Et&&St!==nt&&St!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,St.x,St.y)&&area(St.prev,St,St.next)>=0)return!1;St=St.prevZ}for(;Rt&&Rt.z<=wt;){if(Rt.x>=xt&&Rt.x<=vt&&Rt.y>=yt&&Rt.y<=Et&&Rt!==nt&&Rt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,Rt.x,Rt.y)&&area(Rt.prev,Rt,Rt.next)>=0)return!1;Rt=Rt.nextZ}return!0}function cureLocalIntersections(tt,et,rt){var st=tt;do{var nt=st.prev,ot=st.next.next;!equals(nt,ot)&&intersects(nt,st,st.next,ot)&&locallyInside(nt,ot)&&locallyInside(ot,nt)&&(et.push(nt.i/rt|0),et.push(st.i/rt|0),et.push(ot.i/rt|0),removeNode(st),removeNode(st.next),st=tt=ot),st=st.next}while(st!==tt);return filterPoints(st)}function splitEarcut(tt,et,rt,st,nt,ot){var at=tt;do{for(var lt=at.next.next;lt!==at.prev;){if(at.i!==lt.i&&isValidDiagonal(at,lt)){var ut=splitPolygon(at,lt);at=filterPoints(at,at.next),ut=filterPoints(ut,ut.next),earcutLinked(at,et,rt,st,nt,ot,0),earcutLinked(ut,et,rt,st,nt,ot,0);return}lt=lt.next}at=at.next}while(at!==tt)}function eliminateHoles(tt,et,rt,st){var nt=[],ot,at,lt,ut,ct;for(ot=0,at=et.length;ot<at;ot++)lt=et[ot]*st,ut=ot<at-1?et[ot+1]*st:tt.length,ct=linkedList(tt,lt,ut,st,!1),ct===ct.next&&(ct.steiner=!0),nt.push(getLeftmost(ct));for(nt.sort(compareX),ot=0;ot<nt.length;ot++)rt=eliminateHole(nt[ot],rt);return rt}function compareX(tt,et){return tt.x-et.x}function eliminateHole(tt,et){var rt=findHoleBridge(tt,et);if(!rt)return et;var st=splitPolygon(rt,tt);return filterPoints(st,st.next),filterPoints(rt,rt.next)}function findHoleBridge(tt,et){var rt=et,st=tt.x,nt=tt.y,ot=-1/0,at;do{if(nt<=rt.y&&nt>=rt.next.y&&rt.next.y!==rt.y){var lt=rt.x+(nt-rt.y)*(rt.next.x-rt.x)/(rt.next.y-rt.y);if(lt<=st&<>ot&&(ot=lt,at=rt.x<rt.next.x?rt:rt.next,lt===st))return at}rt=rt.next}while(rt!==et);if(!at)return null;var ut=at,ct=at.x,dt=at.y,ht=1/0,ft;rt=at;do st>=rt.x&&rt.x>=ct&&st!==rt.x&&pointInTriangle(nt<dt?st:ot,nt,ct,dt,nt<dt?ot:st,nt,rt.x,rt.y)&&(ft=Math.abs(nt-rt.y)/(st-rt.x),locallyInside(rt,tt)&&(ft<ht||ft===ht&&(rt.x>at.x||rt.x===at.x&§orContainsSector(at,rt)))&&(at=rt,ht=ft)),rt=rt.next;while(rt!==ut);return at}function sectorContainsSector(tt,et){return area(tt.prev,tt,et.prev)<0&&area(et.next,tt,tt.next)<0}function indexCurve(tt,et,rt,st){var nt=tt;do nt.z===0&&(nt.z=zOrder(nt.x,nt.y,et,rt,st)),nt.prevZ=nt.prev,nt.nextZ=nt.next,nt=nt.next;while(nt!==tt);nt.prevZ.nextZ=null,nt.prevZ=null,sortLinked(nt)}function sortLinked(tt){var et,rt,st,nt,ot,at,lt,ut,ct=1;do{for(rt=tt,tt=null,ot=null,at=0;rt;){for(at++,st=rt,lt=0,et=0;et<ct&&(lt++,st=st.nextZ,!!st);et++);for(ut=ct;lt>0||ut>0&&st;)lt!==0&&(ut===0||!st||rt.z<=st.z)?(nt=rt,rt=rt.nextZ,lt--):(nt=st,st=st.nextZ,ut--),ot?ot.nextZ=nt:tt=nt,nt.prevZ=ot,ot=nt;rt=st}ot.nextZ=null,ct*=2}while(at>1);return tt}function zOrder(tt,et,rt,st,nt){return tt=(tt-rt)*nt|0,et=(et-st)*nt|0,tt=(tt|tt<<8)&16711935,tt=(tt|tt<<4)&252645135,tt=(tt|tt<<2)&858993459,tt=(tt|tt<<1)&1431655765,et=(et|et<<8)&16711935,et=(et|et<<4)&252645135,et=(et|et<<2)&858993459,et=(et|et<<1)&1431655765,tt|et<<1}function getLeftmost(tt){var et=tt,rt=tt;do(et.x<rt.x||et.x===rt.x&&et.y<rt.y)&&(rt=et),et=et.next;while(et!==tt);return rt}function pointInTriangle(tt,et,rt,st,nt,ot,at,lt){return(nt-at)*(et-lt)>=(tt-at)*(ot-lt)&&(tt-at)*(st-lt)>=(rt-at)*(et-lt)&&(rt-at)*(ot-lt)>=(nt-at)*(st-lt)}function isValidDiagonal(tt,et){return tt.next.i!==et.i&&tt.prev.i!==et.i&&!intersectsPolygon(tt,et)&&(locallyInside(tt,et)&&locallyInside(et,tt)&&middleInside(tt,et)&&(area(tt.prev,tt,et.prev)||area(tt,et.prev,et))||equals(tt,et)&&area(tt.prev,tt,tt.next)>0&&area(et.prev,et,et.next)>0)}function area(tt,et,rt){return(et.y-tt.y)*(rt.x-et.x)-(et.x-tt.x)*(rt.y-et.y)}function equals(tt,et){return tt.x===et.x&&tt.y===et.y}function intersects(tt,et,rt,st){var nt=sign$3(area(tt,et,rt)),ot=sign$3(area(tt,et,st)),at=sign$3(area(rt,st,tt)),lt=sign$3(area(rt,st,et));return!!(nt!==ot&&at!==lt||nt===0&&onSegment(tt,rt,et)||ot===0&&onSegment(tt,st,et)||at===0&&onSegment(rt,tt,st)||lt===0&&onSegment(rt,et,st))}function onSegment(tt,et,rt){return et.x<=Math.max(tt.x,rt.x)&&et.x>=Math.min(tt.x,rt.x)&&et.y<=Math.max(tt.y,rt.y)&&et.y>=Math.min(tt.y,rt.y)}function sign$3(tt){return tt>0?1:tt<0?-1:0}function intersectsPolygon(tt,et){var rt=tt;do{if(rt.i!==tt.i&&rt.next.i!==tt.i&&rt.i!==et.i&&rt.next.i!==et.i&&intersects(rt,rt.next,tt,et))return!0;rt=rt.next}while(rt!==tt);return!1}function locallyInside(tt,et){return area(tt.prev,tt,tt.next)<0?area(tt,et,tt.next)>=0&&area(tt,tt.prev,et)>=0:area(tt,et,tt.prev)<0||area(tt,tt.next,et)<0}function middleInside(tt,et){var rt=tt,st=!1,nt=(tt.x+et.x)/2,ot=(tt.y+et.y)/2;do rt.y>ot!=rt.next.y>ot&&rt.next.y!==rt.y&&nt<(rt.next.x-rt.x)*(ot-rt.y)/(rt.next.y-rt.y)+rt.x&&(st=!st),rt=rt.next;while(rt!==tt);return st}function splitPolygon(tt,et){var rt=new Node$2(tt.i,tt.x,tt.y),st=new Node$2(et.i,et.x,et.y),nt=tt.next,ot=et.prev;return tt.next=et,et.prev=tt,rt.next=nt,nt.prev=rt,st.next=rt,rt.prev=st,ot.next=st,st.prev=ot,st}function insertNode(tt,et,rt,st){var nt=new Node$2(tt,et,rt);return st?(nt.next=st.next,nt.prev=st,st.next.prev=nt,st.next=nt):(nt.prev=nt,nt.next=nt),nt}function removeNode(tt){tt.next.prev=tt.prev,tt.prev.next=tt.next,tt.prevZ&&(tt.prevZ.nextZ=tt.nextZ),tt.nextZ&&(tt.nextZ.prevZ=tt.prevZ)}function Node$2(tt,et,rt){this.i=tt,this.x=et,this.y=rt,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}earcut.deviation=function(tt,et,rt,st){var nt=et&&et.length,ot=nt?et[0]*rt:tt.length,at=Math.abs(signedArea(tt,0,ot,rt));if(nt)for(var lt=0,ut=et.length;lt<ut;lt++){var ct=et[lt]*rt,dt=lt<ut-1?et[lt+1]*rt:tt.length;at-=Math.abs(signedArea(tt,ct,dt,rt))}var ht=0;for(lt=0;lt<st.length;lt+=3){var ft=st[lt]*rt,xt=st[lt+1]*rt,yt=st[lt+2]*rt;ht+=Math.abs((tt[ft]-tt[yt])*(tt[xt+1]-tt[ft+1])-(tt[ft]-tt[xt])*(tt[yt+1]-tt[ft+1]))}return at===0&&ht===0?0:Math.abs((ht-at)/at)};function signedArea(tt,et,rt,st){for(var nt=0,ot=et,at=rt-st;ot<rt;ot+=st)nt+=(tt[at]-tt[ot])*(tt[ot+1]+tt[at+1]),at=ot;return nt}earcut.flatten=function(tt){for(var et=tt[0][0].length,rt={vertices:[],holes:[],dimensions:et},st=0,nt=0;nt<tt.length;nt++){for(var ot=0;ot<tt[nt].length;ot++)for(var at=0;at<et;at++)rt.vertices.push(tt[nt][ot][at]);nt>0&&(st+=tt[nt-1].length,rt.holes.push(st))}return rt};var earcutExports=earcut$1.exports;const earcut_default=getDefaultExportFromCjs(earcutExports);var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;(function(tt,et){(function(rt){var st=et&&!et.nodeType&&et,nt=tt&&!tt.nodeType&&tt,ot=typeof commonjsGlobal=="object"&&commonjsGlobal;(ot.global===ot||ot.window===ot||ot.self===ot)&&(rt=ot);var at,lt=2147483647,ut=36,ct=1,dt=26,ht=38,ft=700,xt=72,yt=128,vt="-",Et=/^xn--/,bt=/[^\x20-\x7E]/,wt=/[\x2E\u3002\uFF0E\uFF61]/g,St={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Rt=ut-ct,Ct=Math.floor,jt=String.fromCharCode,It;function Pt(Bt){throw new RangeError(St[Bt])}function Ot(Bt,qt){for(var Yt=Bt.length,Kt=[];Yt--;)Kt[Yt]=qt(Bt[Yt]);return Kt}function Ut(Bt,qt){var Yt=Bt.split("@"),Kt="";Yt.length>1&&(Kt=Yt[0]+"@",Bt=Yt[1]),Bt=Bt.replace(wt,".");var tr=Bt.split("."),or=Ot(tr,qt).join(".");return Kt+or}function Nt(Bt){for(var qt=[],Yt=0,Kt=Bt.length,tr,or;Yt<Kt;)tr=Bt.charCodeAt(Yt++),tr>=55296&&tr<=56319&&Yt<Kt?(or=Bt.charCodeAt(Yt++),(or&64512)==56320?qt.push(((tr&1023)<<10)+(or&1023)+65536):(qt.push(tr),Yt--)):qt.push(tr);return qt}function Ht(Bt){return Ot(Bt,function(qt){var Yt="";return qt>65535&&(qt-=65536,Yt+=jt(qt>>>10&1023|55296),qt=56320|qt&1023),Yt+=jt(qt),Yt}).join("")}function Lt(Bt){return Bt-48<10?Bt-22:Bt-65<26?Bt-65:Bt-97<26?Bt-97:ut}function kt(Bt,qt){return Bt+22+75*(Bt<26)-((qt!=0)<<5)}function $t(Bt,qt,Yt){var Kt=0;for(Bt=Yt?Ct(Bt/ft):Bt>>1,Bt+=Ct(Bt/qt);Bt>Rt*dt>>1;Kt+=ut)Bt=Ct(Bt/Rt);return Ct(Kt+(Rt+1)*Bt/(Bt+ht))}function Ft(Bt){var qt=[],Yt=Bt.length,Kt,tr=0,or=yt,lr=xt,mr,yr,dr,hr,pr,_r,Ar,Hr,Ur;for(mr=Bt.lastIndexOf(vt),mr<0&&(mr=0),yr=0;yr<mr;++yr)Bt.charCodeAt(yr)>=128&&Pt("not-basic"),qt.push(Bt.charCodeAt(yr));for(dr=mr>0?mr+1:0;dr<Yt;){for(hr=tr,pr=1,_r=ut;dr>=Yt&&Pt("invalid-input"),Ar=Lt(Bt.charCodeAt(dr++)),(Ar>=ut||Ar>Ct((lt-tr)/pr))&&Pt("overflow"),tr+=Ar*pr,Hr=_r<=lr?ct:_r>=lr+dt?dt:_r-lr,!(Ar<Hr);_r+=ut)Ur=ut-Hr,pr>Ct(lt/Ur)&&Pt("overflow"),pr*=Ur;Kt=qt.length+1,lr=$t(tr-hr,Kt,hr==0),Ct(tr/Kt)>lt-or&&Pt("overflow"),or+=Ct(tr/Kt),tr%=Kt,qt.splice(tr++,0,or)}return Ht(qt)}function Gt(Bt){var qt,Yt,Kt,tr,or,lr,mr,yr,dr,hr,pr,_r=[],Ar,Hr,Ur,os;for(Bt=Nt(Bt),Ar=Bt.length,qt=yt,Yt=0,or=xt,lr=0;lr<Ar;++lr)pr=Bt[lr],pr<128&&_r.push(jt(pr));for(Kt=tr=_r.length,tr&&_r.push(vt);Kt<Ar;){for(mr=lt,lr=0;lr<Ar;++lr)pr=Bt[lr],pr>=qt&&pr<mr&&(mr=pr);for(Hr=Kt+1,mr-qt>Ct((lt-Yt)/Hr)&&Pt("overflow"),Yt+=(mr-qt)*Hr,qt=mr,lr=0;lr<Ar;++lr)if(pr=Bt[lr],pr<qt&&++Yt>lt&&Pt("overflow"),pr==qt){for(yr=Yt,dr=ut;hr=dr<=or?ct:dr>=or+dt?dt:dr-or,!(yr<hr);dr+=ut)os=yr-hr,Ur=ut-hr,_r.push(jt(kt(hr+os%Ur,0))),yr=Ct(os/Ur);_r.push(jt(kt(yr,0))),or=$t(Yt,Hr,Kt==tr),Yt=0,++Kt}++Yt,++qt}return _r.join("")}function Mt(Bt){return Ut(Bt,function(qt){return Et.test(qt)?Ft(qt.slice(4).toLowerCase()):qt})}function Vt(Bt){return Ut(Bt,function(qt){return bt.test(qt)?"xn--"+Gt(qt):qt})}if(at={version:"1.4.1",ucs2:{decode:Nt,encode:Ht},decode:Ft,encode:Gt,toASCII:Vt,toUnicode:Mt},st&&nt)if(tt.exports==st)nt.exports=at;else for(It in at)at.hasOwnProperty(It)&&(st[It]=at[It]);else rt.punycode=at})(commonjsGlobal)})(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports,type=TypeError;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize$1=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace$1=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat$1=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||!0)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(tt){return tt.__proto__}:null);function addNumericSeparator(tt,et){if(tt===1/0||tt===-1/0||tt!==tt||tt&&tt>-1e3&&tt<1e3||$test.call(/e/,et))return et;var rt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof tt=="number"){var st=tt<0?-$floor(-tt):$floor(tt);if(st!==tt){var nt=String(st),ot=$slice.call(et,nt.length+1);return $replace$1.call(nt,rt,"$&_")+"."+$replace$1.call($replace$1.call(ot,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace$1.call(et,rt,"$&_")}var utilInspect=require$$0$1,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function tt(et,rt,st,nt){var ot=rt||{};if(has$3(ot,"quoteStyle")&&!has$3(quotes,ot.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(ot,"maxStringLength")&&(typeof ot.maxStringLength=="number"?ot.maxStringLength<0&&ot.maxStringLength!==1/0:ot.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var at=has$3(ot,"customInspect")?ot.customInspect:!0;if(typeof at!="boolean"&&at!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(ot,"indent")&&ot.indent!==null&&ot.indent!==" "&&!(parseInt(ot.indent,10)===ot.indent&&ot.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(ot,"numericSeparator")&&typeof ot.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var lt=ot.numericSeparator;if(typeof et>"u")return"undefined";if(et===null)return"null";if(typeof et=="boolean")return et?"true":"false";if(typeof et=="string")return inspectString(et,ot);if(typeof et=="number"){if(et===0)return 1/0/et>0?"0":"-0";var ut=String(et);return lt?addNumericSeparator(et,ut):ut}if(typeof et=="bigint"){var ct=String(et)+"n";return lt?addNumericSeparator(et,ct):ct}var dt=typeof ot.depth>"u"?5:ot.depth;if(typeof st>"u"&&(st=0),st>=dt&&dt>0&&typeof et=="object")return isArray$3(et)?"[Array]":"[Object]";var ht=getIndent(ot,st);if(typeof nt>"u")nt=[];else if(indexOf(nt,et)>=0)return"[Circular]";function ft(Lt,kt,$t){if(kt&&(nt=$arrSlice.call(nt),nt.push(kt)),$t){var Ft={depth:ot.depth};return has$3(ot,"quoteStyle")&&(Ft.quoteStyle=ot.quoteStyle),tt(Lt,Ft,st+1,nt)}return tt(Lt,ot,st+1,nt)}if(typeof et=="function"&&!isRegExp$1(et)){var xt=nameOf(et),yt=arrObjKeys(et,ft);return"[Function"+(xt?": "+xt:" (anonymous)")+"]"+(yt.length>0?" { "+$join.call(yt,", ")+" }":"")}if(isSymbol(et)){var vt=hasShammedSymbols?$replace$1.call(String(et),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(et);return typeof et=="object"&&!hasShammedSymbols?markBoxed(vt):vt}if(isElement(et)){for(var Et="<"+$toLowerCase.call(String(et.nodeName)),bt=et.attributes||[],wt=0;wt<bt.length;wt++)Et+=" "+bt[wt].name+"="+wrapQuotes(quote(bt[wt].value),"double",ot);return Et+=">",et.childNodes&&et.childNodes.length&&(Et+="..."),Et+="</"+$toLowerCase.call(String(et.nodeName))+">",Et}if(isArray$3(et)){if(et.length===0)return"[]";var St=arrObjKeys(et,ft);return ht&&!singleLineValues(St)?"["+indentedJoin(St,ht)+"]":"[ "+$join.call(St,", ")+" ]"}if(isError(et)){var Rt=arrObjKeys(et,ft);return!("cause"in Error.prototype)&&"cause"in et&&!isEnumerable.call(et,"cause")?"{ ["+String(et)+"] "+$join.call($concat$1.call("[cause]: "+ft(et.cause),Rt),", ")+" }":Rt.length===0?"["+String(et)+"]":"{ ["+String(et)+"] "+$join.call(Rt,", ")+" }"}if(typeof et=="object"&&at){if(inspectSymbol&&typeof et[inspectSymbol]=="function"&&utilInspect)return utilInspect(et,{depth:dt-st});if(at!=="symbol"&&typeof et.inspect=="function")return et.inspect()}if(isMap(et)){var Ct=[];return mapForEach&&mapForEach.call(et,function(Lt,kt){Ct.push(ft(kt,et,!0)+" => "+ft(Lt,et))}),collectionOf("Map",mapSize$1.call(et),Ct,ht)}if(isSet(et)){var jt=[];return setForEach&&setForEach.call(et,function(Lt){jt.push(ft(Lt,et))}),collectionOf("Set",setSize.call(et),jt,ht)}if(isWeakMap(et))return weakCollectionOf("WeakMap");if(isWeakSet(et))return weakCollectionOf("WeakSet");if(isWeakRef(et))return weakCollectionOf("WeakRef");if(isNumber(et))return markBoxed(ft(Number(et)));if(isBigInt(et))return markBoxed(ft(bigIntValueOf.call(et)));if(isBoolean(et))return markBoxed(booleanValueOf.call(et));if(isString(et))return markBoxed(ft(String(et)));if(typeof window<"u"&&et===window)return"{ [object Window] }";if(typeof globalThis<"u"&&et===globalThis||typeof commonjsGlobal<"u"&&et===commonjsGlobal)return"{ [object globalThis] }";if(!isDate(et)&&!isRegExp$1(et)){var It=arrObjKeys(et,ft),Pt=gPO?gPO(et)===Object.prototype:et instanceof Object||et.constructor===Object,Ot=et instanceof Object?"":"null prototype",Ut=!Pt&&toStringTag&&Object(et)===et&&toStringTag in et?$slice.call(toStr(et),8,-1):Ot?"Object":"",Nt=Pt||typeof et.constructor!="function"?"":et.constructor.name?et.constructor.name+" ":"",Ht=Nt+(Ut||Ot?"["+$join.call($concat$1.call([],Ut||[],Ot||[]),": ")+"] ":"");return It.length===0?Ht+"{}":ht?Ht+"{"+indentedJoin(It,ht)+"}":Ht+"{ "+$join.call(It,", ")+" }"}return String(et)};function wrapQuotes(tt,et,rt){var st=rt.quoteStyle||et,nt=quotes[st];return nt+tt+nt}function quote(tt){return $replace$1.call(String(tt),/"/g,""")}function canTrustToString(tt){return!toStringTag||!(typeof tt=="object"&&(toStringTag in tt||typeof tt[toStringTag]<"u"))}function isArray$3(tt){return toStr(tt)==="[object Array]"&&canTrustToString(tt)}function isDate(tt){return toStr(tt)==="[object Date]"&&canTrustToString(tt)}function isRegExp$1(tt){return toStr(tt)==="[object RegExp]"&&canTrustToString(tt)}function isError(tt){return toStr(tt)==="[object Error]"&&canTrustToString(tt)}function isString(tt){return toStr(tt)==="[object String]"&&canTrustToString(tt)}function isNumber(tt){return toStr(tt)==="[object Number]"&&canTrustToString(tt)}function isBoolean(tt){return toStr(tt)==="[object Boolean]"&&canTrustToString(tt)}function isSymbol(tt){if(hasShammedSymbols)return tt&&typeof tt=="object"&&tt instanceof Symbol;if(typeof tt=="symbol")return!0;if(!tt||typeof tt!="object"||!symToString)return!1;try{return symToString.call(tt),!0}catch{}return!1}function isBigInt(tt){if(!tt||typeof tt!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(tt),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(tt){return tt in this};function has$3(tt,et){return hasOwn$1.call(tt,et)}function toStr(tt){return objectToString.call(tt)}function nameOf(tt){if(tt.name)return tt.name;var et=$match.call(functionToString.call(tt),/^function\s*([\w$]+)/);return et?et[1]:null}function indexOf(tt,et){if(tt.indexOf)return tt.indexOf(et);for(var rt=0,st=tt.length;rt<st;rt++)if(tt[rt]===et)return rt;return-1}function isMap(tt){if(!mapSize$1||!tt||typeof tt!="object")return!1;try{mapSize$1.call(tt);try{setSize.call(tt)}catch{return!0}return tt instanceof Map}catch{}return!1}function isWeakMap(tt){if(!weakMapHas||!tt||typeof tt!="object")return!1;try{weakMapHas.call(tt,weakMapHas);try{weakSetHas.call(tt,weakSetHas)}catch{return!0}return tt instanceof WeakMap}catch{}return!1}function isWeakRef(tt){if(!weakRefDeref||!tt||typeof tt!="object")return!1;try{return weakRefDeref.call(tt),!0}catch{}return!1}function isSet(tt){if(!setSize||!tt||typeof tt!="object")return!1;try{setSize.call(tt);try{mapSize$1.call(tt)}catch{return!0}return tt instanceof Set}catch{}return!1}function isWeakSet(tt){if(!weakSetHas||!tt||typeof tt!="object")return!1;try{weakSetHas.call(tt,weakSetHas);try{weakMapHas.call(tt,weakMapHas)}catch{return!0}return tt instanceof WeakSet}catch{}return!1}function isElement(tt){return!tt||typeof tt!="object"?!1:typeof HTMLElement<"u"&&tt instanceof HTMLElement?!0:typeof tt.nodeName=="string"&&typeof tt.getAttribute=="function"}function inspectString(tt,et){if(tt.length>et.maxStringLength){var rt=tt.length-et.maxStringLength,st="... "+rt+" more character"+(rt>1?"s":"");return inspectString($slice.call(tt,0,et.maxStringLength),et)+st}var nt=quoteREs[et.quoteStyle||"single"];nt.lastIndex=0;var ot=$replace$1.call($replace$1.call(tt,nt,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(ot,"single",et)}function lowbyte(tt){var et=tt.charCodeAt(0),rt={8:"b",9:"t",10:"n",12:"f",13:"r"}[et];return rt?"\\"+rt:"\\x"+(et<16?"0":"")+$toUpperCase.call(et.toString(16))}function markBoxed(tt){return"Object("+tt+")"}function weakCollectionOf(tt){return tt+" { ? }"}function collectionOf(tt,et,rt,st){var nt=st?indentedJoin(rt,st):$join.call(rt,", ");return tt+" ("+et+") {"+nt+"}"}function singleLineValues(tt){for(var et=0;et<tt.length;et++)if(indexOf(tt[et],`
|
|
226
|
+
`,D$1=16,Fe$1=({reverseOrder:tt,position:et="top-center",toastOptions:rt,gutter:st,children:nt,toasterId:ot,containerStyle:at,containerClassName:lt})=>{let{toasts:ut,handlers:ct}=w$1(rt,ot);return reactExports.createElement("div",{"data-rht-toaster":ot||"",style:{position:"fixed",zIndex:9999,top:D$1,left:D$1,right:D$1,bottom:D$1,pointerEvents:"none",...at},className:lt,onMouseEnter:ct.startPause,onMouseLeave:ct.endPause},ut.map(dt=>{let ht=dt.position||et,ft=ct.calculateOffset(dt,{reverseOrder:tt,gutter:st,defaultPosition:et}),xt=Me$1(ht,ft);return reactExports.createElement(we$1,{id:dt.id,key:dt.id,onHeightUpdate:ct.updateHeight,className:dt.visible?Ce$1:"",style:xt},dt.type==="custom"?h$1(dt.message,dt):nt?nt(dt):reactExports.createElement(N$2,{toast:dt,position:ht}))}))},zt=n$1;const DEFAULT_POSITION="top-right";function useToast(){return{success:(tt,et)=>zt.custom(jsxRuntimeExports.jsx(Alert,{type:"success",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),error:(tt,et)=>zt.custom(jsxRuntimeExports.jsx(Alert,{type:"danger",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),info:(tt,et)=>zt.custom(jsxRuntimeExports.jsx(Alert,{type:"info",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),warning:(tt,et)=>zt.custom(jsxRuntimeExports.jsx(Alert,{type:"warning",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),loading:zt.loading,dismiss:tt=>zt.dismiss(tt),remove:tt=>zt.remove(tt)}}const useHttpErrorToast=({active:tt=!0,...et})=>{const rt=reactExports.useRef(),st=useToast(),{t:nt}=useTranslation();return reactExports.useEffect(()=>{if(tt){const ot=odeServices.notify().events().subscribe(LAYER_NAME.TRANSPORT,at=>{var lt;if(!(at!=null&&at.data))return;const{response:ut}=at.data,ct=((lt=at.data.payload)==null?void 0:lt.error)||([400,401,403,404,408,413,500,504].includes(ut==null?void 0:ut.status)?`e${at.data.response.status}`:void 0)||(ut==null?void 0:ut.statusText);typeof ct=="string"&&(rt.current=nt(ct),st.error(React$4.createElement("div",{children:[rt.current]}),et))});return()=>ot.revoke()}},[nt,st,tt]),rt.current};function useIsAdml(){const[tt,et]=reactExports.useState(!1);reactExports.useEffect(()=>{rt()},[]);const rt=reactExports.useCallback(async()=>{const st=await odeServices.session().isAdml();et(st)},[]);return{isAdml:tt}}const useLibraryUrl=tt=>{var et;const{user:rt,appCode:st}=useEdificeClient(),nt=e$3[st],ot=rt==null?void 0:rt.apps.find(dt=>dt.isExternal&&dt.address.includes("library"));if(!ot)return null;const at=(et=ot.address)==null?void 0:et.split("?");if(!at||at.length<2)return null;let lt=at[0];lt.endsWith("/")||(lt=`${lt}/`);const ut=at==null?void 0:at[1],ct=`application%5B0%5D=${nt}&page=1&sort_field=views&sort_order=desc`;return`${lt}search/?${ut}&${ct}`},useWorkspaceFile=()=>({createOrUpdate:async({alt:tt,uri:et,blob:rt,legend:st,parentId:nt,application:ot,visibility:at})=>{const lt=/\/workspace\/document\/([0-9a-fA-F-]+)/,ut=(et??"").match(lt);if(ut&&ut.length===2){const ct=ut[1],dt=await odeServices.workspace().searchDocuments({filter:"all",id:ct,limit:1}),ht=dt.length?dt[0].name:void 0;await odeServices.workspace().updateFile(ct,rt,{alt:tt,legend:st,name:ht});const ft=(await odeServices.workspace().searchDocuments({filter:"all",id:ct,limit:1}))[0];return{file:ft,src:`/workspace/${ft.public?"pub/":""}document/${ct}`}}else{const ct=await odeServices.workspace().saveFile(rt,{application:ot,parentId:nt,visibility:at});return`/workspace/${ct.public?"pub/":""}document/${ct._id}`}},create:async(tt,et)=>await odeServices.workspace().saveFile(tt,et),remove:async tt=>!tt||Array.isArray(tt)&&tt.length===0?Promise.resolve():await odeServices.workspace().deleteFile(Array.isArray(tt)?tt:[tt])}),useMediaLibrary=()=>{const tt=reactExports.useRef(null),[et,rt]=reactExports.useState(),{remove:st}=useWorkspaceFile();return{ref:tt,libraryMedia:et,setLibraryMedia:rt,onCancel:async nt=>{var ot,at;(ot=tt.current)!=null&&ot.type&&nt&&nt.length>0&&await st(nt),(at=tt.current)==null||at.hide()},onSuccess:nt=>{var ot,at,lt,ut;let ct;switch((ot=tt.current)==null?void 0:ot.type){case"video":{if(typeof nt=="object")ct=nt[0];else{const dt=new DOMParser().parseFromString(nt,"text/html").body.firstChild,ht=dt==null?void 0:dt.getAttribute("src");(at=tt.current)==null||at.hide(),ct=ht}break}case"embedder":{const dt=new DOMParser().parseFromString(nt,"text/html").body.firstChild,ht=dt==null?void 0:dt.getAttribute("src");(lt=tt.current)==null||lt.hide(),ct=ht;break}case"audio":{nt.length===void 0?ct=nt:ct=nt[0];break}case"hyperlink":{ct=nt;break}case"image":{ct=`/workspace/document/${nt[0]._id}`;break}default:ct=nt[0]}(ut=tt.current)==null||ut.hide(),rt(ct)},onTabChange:async(nt,ot)=>{var at;(at=tt.current)!=null&&at.type&&ot&&ot.length>0&&await st(ot)}}};function useScrollToTop(){const tt=document.querySelector("html");return()=>{tt&&tt.scrollIntoView()}}function useToggle(tt=!1){const[et,rt]=reactExports.useState(tt),st=reactExports.useCallback(()=>{rt(nt=>!nt)},[]);return[et,st]}const EdificeThemeContext=reactExports.createContext(null);function useEdificeTheme(){const tt=reactExports.useContext(EdificeThemeContext);if(!tt)throw new Error("Cannot be used outside of EdificeThemeProvider");return tt}function useUser(){const{user:tt,userDescription:et}=useEdificeClient(),{theme:rt}=useEdificeTheme();function st(){let nt=et==null?void 0:et.picture;return(!nt||nt==="no-avatar.jpg"||nt==="no-avatar.svg")&&(nt=`${rt==null?void 0:rt.basePath}/img/illustrations/no-avatar.svg`),nt}return{user:tt,avatar:st(),userDescription:et}}const useUpload=(tt,et="media-library")=>{const[rt,st]=reactExports.useState({}),{browser:nt,device:ot}=useBrowserInfo(navigator.userAgent),{create:at}=useWorkspaceFile(),{t:lt}=useTranslation(),ut=reactExports.useCallback(Et=>rt[s$2(Et)],[rt]),ct=(Et,bt)=>{st(wt=>{const St=s$2(Et);return{...wt,[St]:bt}})},dt=Et=>{st(bt=>{const wt=s$2(Et),{[wt]:St,...Rt}=bt;return Rt})},ht=()=>{const Et=new Date;return`${Et.getFullYear()}-${String(Et.getMonth()+1).padStart(2,"0")}-${String(Et.getDate()).padStart(2,"0")} ${String(Et.getHours()).padStart(2,"0")}h${String(Et.getMinutes()).padStart(2,"0")} `+lt("bbm.video.recorder.defaultName")};async function ft(Et,bt){ct(Et,"loading");try{let wt;return et==="media-library"&&Et.type.includes("video")?wt=await yt(Et,{filename:Et.name,...bt}):wt=await at(Et,{application:et,visibility:tt}),ct(Et,"success"),wt}catch(wt){return console.error(wt),ct(Et,"error"),null}}async function xt(Et,bt){ct(Et,"loading");try{let wt;if(Et.type.includes("video"))wt=await yt(Et,bt);else throw new Error(ERROR_CODE.NOT_SUPPORTED);return ct(Et,"success"),wt}catch(wt){return console.error(wt),ct(Et,"error"),null}}const yt=async(Et,bt)=>{const wt={data:{device:ot.type,browser:{name:nt.name,version:nt.version},url:window.location.hostname,file:Et,filename:ht()??"filename",weight:Et.size},appCode:et,captation:!(Et instanceof File),duration:(bt==null?void 0:bt.duration)??0},St=await odeServices.video().upload(wt);if(St.state==="succeed")return{_id:St.videoworkspaceid,file:St.videoid,name:wt.data.filename,eType:"file",eParent:"",children:[],created:new Date,_shared:[],_isShared:!1,owner:{userId:"",displayName:""}};throw St.state==="error"?new Error(St.code||"Error while uploading video"):new Error("Video encoding is still running")};function vt(Et,bt,wt){return s$2(bt,s$2(Et)),ft(bt,wt)}return{getUploadStatus:ut,setUploadStatus:ct,clearUploadStatus:dt,uploadFile:ft,uploadAlternateFile:vt,uploadBlob:xt}},useUploadFiles=({handleOnChange:tt,visibility:et,application:rt})=>{const[st,nt]=reactExports.useState([]),[ot,at]=reactExports.useState(void 0),{files:lt,deleteFile:ut,replaceFileAt:ct,inputRef:dt}=useDropzoneContext(),{remove:ht,createOrUpdate:ft}=useWorkspaceFile(),{getUploadStatus:xt,setUploadStatus:yt,clearUploadStatus:vt,uploadFile:Et,uploadAlternateFile:bt}=useUpload(et,rt),wt=reactExports.useCallback(()=>{dt.current&&(dt.current.value="")},[dt]),St=reactExports.useCallback(Pt=>{Pt.forEach(async(Ot,Ut)=>{if(Ot==null)return;let Nt,Ht;if(Ot.type.startsWith("image"))try{Ht=await p$3.resizeImageFile(Ot),Nt=await bt(Ot,Ht),ct(Ut,Ht)}catch(Lt){console.error(Lt)}!Nt&&!Ht&&(Nt=await Et(Ot)),Nt?nt(Lt=>[...Lt,Nt]):wt()})},[bt,Et,ct]);reactExports.useEffect(()=>{let Pt=0;const Ot=lt.map(Ut=>{if(Pt>=5)return null;const Nt=xt(Ut);return Nt==="loading"&&Pt++,Nt?null:Ut});Ot.forEach(Ut=>Ut&&yt(Ut,"idle")),St(Ot)},[lt,st,xt,yt,St]),reactExports.useEffect(()=>{const Pt=Rt(lt,st);tt(Pt)},[st]);const Rt=(Pt,Ot)=>{const Ut=Pt.reduce((Nt,Ht,Lt)=>(Nt[Ht.name]=Lt,Nt),{});return Ot.sort((Nt,Ht)=>Ut[Nt.name]-Ut[Ht.name])};async function Ct(Pt){const Ot=st.find(Ut=>Ut.name===Pt.name);Ot&&(await ht(Ot),vt(Pt),nt(Ut=>Ut.filter(Nt=>Nt.name!==(Ot==null?void 0:Ot.name)))),ut(Pt),wt()}async function jt({blob:Pt,legend:Ot,altText:Ut}){if(ot)try{const Nt=await ft({blob:Pt,legend:Ot,alt:Ut,uri:It(ot)});Nt&&typeof Nt=="object"&&nt(Ht=>Ht.map(Lt=>Lt._id===Nt.file._id?{...Nt.file,title:Ot,alt:Ut}:Lt))}finally{at(void 0)}}const It=(Pt,Ot)=>{const Ut=`/workspace/${Pt!=null&&Pt.public?"pub/":""}document/${Pt==null?void 0:Pt._id}`;return Pt?Ot?m$3(Ut):Ut:""};return{files:lt,getUploadStatus:xt,clearUploadStatus:vt,uploadedFiles:st,editingImage:ot,setEditingImage:at,getUrl:It,updateImage:jt,uploadFile:Et,removeFile:Ct}};function useWorkspaceSearch(tt,et,rt,st){const nt=useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|listDocuments"),ot=useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|listFolders");function at(dt,ht){switch(ht.type){case"update":{const ft=findNodeById(dt,ht.folderId);return ft&&(ft.children=ht.subfolders.map(xt=>({id:xt._id||"",name:xt.name})),ft.files=ht.files),{...dt}}default:throw Error("[useWorkspaceSearch] Unknown action type: "+ht.type)}}const[lt,ut]=reactExports.useReducer(at,{id:tt,name:et,section:!0}),ct=reactExports.useCallback(async dt=>{if(nt&&ot){const ht=dt===tt?"":dt,ft=await odeServices.workspace().listDocuments(rt,ht),xt=[],yt=[];ft.filter(vt=>{if(!st||vt.eType==="folder")return!0;const Et=DocumentHelper.getRole(vt);return typeof st=="string"?st===Et:Array.isArray(st)?st.findIndex(bt=>bt===Et)>=0:!1}).forEach(vt=>{vt.eType==="folder"?xt.push(vt):yt.push(vt)}),ut({folderId:dt,subfolders:xt,files:yt,type:"update"})}},[nt,ot,tt,rt,st]);return{root:lt,loadContent:ct}}function useXitiTrackPageLoad(){const[tt,et]=reactExports.useState("pending"),{currentApp:rt}=useEdificeClient();reactExports.useEffect(()=>{st()},[]);const st=async()=>{if(!rt){et("[Xiti] Error, currentApp is not defined.");return}try{await odeServices.analytics().trackPageLoad(window.location.pathname,rt),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),et(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(nt){console.error("[Xiti] Error Tracking Page Load",nt),et(`[Xiti] Error Tracking Page Load: ${nt}`)}};return{xitiStatus:tt}}function useZendeskGuide(){const{currentLanguage:tt}=useEdificeClient(),{userDescription:et}=useUser(),{isAdml:rt}=useIsAdml(),{theme:st}=useEdificeTheme(),nt=window.innerWidth<=768,ot=useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"),[at,lt]=reactExports.useState(""),[ut,ct]=reactExports.useState(void 0),dt=()=>{const ht=at.split("/");let ft="",xt="";if(ut!=null&&ut.labels&&Object.keys(ut==null?void 0:ut.labels).length>0&&ht.length>1){for(let yt=1;yt<ht.length;yt++)ht[yt].length>0&&ht[yt].match(/\d/)==null&&(ft.length===0?ft=ht[yt]:ft=ft+"/"+ht[yt]);ut!=null&&ut.labels&&Object.prototype.hasOwnProperty.call(ut==null?void 0:ut.labels,ft)?xt=ut==null?void 0:ut.labels[ft]:ut!=null&&ut.default&&String(ut.default).length>0&&(xt=ut==null?void 0:ut.default)}else ut!=null&&ut.default&&String(ut==null?void 0:ut.default).length>0&&(xt=ut==null?void 0:ut.default);if(ht.includes("collaborativewall")&&ht.includes("id")&&nt&&window.zE("webWidget","hide"),xt.includes("${adml}")&&(rt?xt=xt.replace("${adml}","adml"):xt=xt.replace("/${adml}","")),xt.includes("${profile}")){const yt=et==null?void 0:et.profiles;xt=xt.replace("${profile}",yt[0].toLowerCase())}xt.includes("${theme")&&(st!=null&&st.is1d?xt=xt.replace("${theme}","1D"):xt=xt.replace("${theme}","2D")),window.zE("webWidget","helpCenter:setSuggestions",{labels:[xt]})};return reactExports.useEffect(()=>{window.location.pathname!==at&<(window.location.pathname),!(ut===void 0||Object.keys(ut).length===0)&&dt()},[window.location.pathname,ut]),reactExports.useEffect(()=>{document.getElementById("ze-snippet")||ot===void 0||(async()=>{const ht=await odeServices.http().get("/zendeskGuide/config");if(ht&&ht.key&&ht.key!==""){const ft=document.createElement("script");ft.id="ze-snippet",ft.src=`https://static.zdassets.com/ekr/snippet.js?key=${ht.key}`,document.body.appendChild(ft).onload=()=>{tt==="es"?window.zE(function(){window.zE.setLocale("es-419")}):window.zE(function(){window.zE.setLocale("fr")}),Object.keys(ht.module).length>0&&ct(ht.module),window.zE("webWidget","show"),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:ht.color||"#ffc400"},zIndex:3,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!ot},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"},originalArticleButton:ht.articleRedirectButton??!0}}}),window.addEventListener("scroll",()=>{window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})}),window.zE("webWidget:on","open",function(){ot&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})}),window.zE("webWidget:on","userEvent",function(xt){const yt=xt.category,vt=xt.action,Et=xt.properties;vt==="Contact Form Shown"&&yt==="Zendesk Web Widget"&&Et&&Et.name==="contact-form"&&ot&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))})}}})()},[ot]),null}function isObject$3(tt){return tt!==null&&typeof tt=="object"&&"constructor"in tt&&tt.constructor===Object}function extend$2(tt,et){tt===void 0&&(tt={}),et===void 0&&(et={}),Object.keys(et).forEach(rt=>{typeof tt[rt]>"u"?tt[rt]=et[rt]:isObject$3(et[rt])&&isObject$3(tt[rt])&&Object.keys(et[rt]).length>0&&extend$2(tt[rt],et[rt])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const tt=typeof document<"u"?document:{};return extend$2(tt,ssrDocument),tt}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function tt(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(tt){return typeof setTimeout>"u"?(tt(),null):setTimeout(tt,0)},cancelAnimationFrame(tt){typeof setTimeout>"u"||clearTimeout(tt)}};function getWindow(){const tt=typeof window<"u"?window:{};return extend$2(tt,ssrWindow),tt}function deleteProps(tt){const et=tt;Object.keys(et).forEach(rt=>{try{et[rt]=null}catch{}try{delete et[rt]}catch{}})}function nextTick(tt,et){return et===void 0&&(et=0),setTimeout(tt,et)}function now(){return Date.now()}function getComputedStyle$1(tt){const et=getWindow();let rt;return et.getComputedStyle&&(rt=et.getComputedStyle(tt,null)),!rt&&tt.currentStyle&&(rt=tt.currentStyle),rt||(rt=tt.style),rt}function getTranslate(tt,et){et===void 0&&(et="x");const rt=getWindow();let st,nt,ot;const at=getComputedStyle$1(tt);return rt.WebKitCSSMatrix?(nt=at.transform||at.webkitTransform,nt.split(",").length>6&&(nt=nt.split(", ").map(lt=>lt.replace(",",".")).join(", ")),ot=new rt.WebKitCSSMatrix(nt==="none"?"":nt)):(ot=at.MozTransform||at.OTransform||at.MsTransform||at.msTransform||at.transform||at.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),st=ot.toString().split(",")),et==="x"&&(rt.WebKitCSSMatrix?nt=ot.m41:st.length===16?nt=parseFloat(st[12]):nt=parseFloat(st[4])),et==="y"&&(rt.WebKitCSSMatrix?nt=ot.m42:st.length===16?nt=parseFloat(st[13]):nt=parseFloat(st[5])),nt||0}function isObject$2(tt){return typeof tt=="object"&&tt!==null&&tt.constructor&&Object.prototype.toString.call(tt).slice(8,-1)==="Object"}function isNode(tt){return typeof window<"u"&&typeof window.HTMLElement<"u"?tt instanceof HTMLElement:tt&&(tt.nodeType===1||tt.nodeType===11)}function extend$1(){const tt=Object(arguments.length<=0?void 0:arguments[0]),et=["__proto__","constructor","prototype"];for(let rt=1;rt<arguments.length;rt+=1){const st=rt<0||arguments.length<=rt?void 0:arguments[rt];if(st!=null&&!isNode(st)){const nt=Object.keys(Object(st)).filter(ot=>et.indexOf(ot)<0);for(let ot=0,at=nt.length;ot<at;ot+=1){const lt=nt[ot],ut=Object.getOwnPropertyDescriptor(st,lt);ut!==void 0&&ut.enumerable&&(isObject$2(tt[lt])&&isObject$2(st[lt])?st[lt].__swiper__?tt[lt]=st[lt]:extend$1(tt[lt],st[lt]):!isObject$2(tt[lt])&&isObject$2(st[lt])?(tt[lt]={},st[lt].__swiper__?tt[lt]=st[lt]:extend$1(tt[lt],st[lt])):tt[lt]=st[lt])}}}return tt}function setCSSProperty(tt,et,rt){tt.style.setProperty(et,rt)}function animateCSSModeScroll(tt){let{swiper:et,targetPosition:rt,side:st}=tt;const nt=getWindow(),ot=-et.translate;let at=null,lt;const ut=et.params.speed;et.wrapperEl.style.scrollSnapType="none",nt.cancelAnimationFrame(et.cssModeFrameID);const ct=rt>ot?"next":"prev",dt=(ft,xt)=>ct==="next"&&ft>=xt||ct==="prev"&&ft<=xt,ht=()=>{lt=new Date().getTime(),at===null&&(at=lt);const ft=Math.max(Math.min((lt-at)/ut,1),0),xt=.5-Math.cos(ft*Math.PI)/2;let yt=ot+xt*(rt-ot);if(dt(yt,rt)&&(yt=rt),et.wrapperEl.scrollTo({[st]:yt}),dt(yt,rt)){et.wrapperEl.style.overflow="hidden",et.wrapperEl.style.scrollSnapType="",setTimeout(()=>{et.wrapperEl.style.overflow="",et.wrapperEl.scrollTo({[st]:yt})}),nt.cancelAnimationFrame(et.cssModeFrameID);return}et.cssModeFrameID=nt.requestAnimationFrame(ht)};ht()}function elementChildren(tt,et){return et===void 0&&(et=""),[...tt.children].filter(rt=>rt.matches(et))}function createElement(tt,et){et===void 0&&(et=[]);const rt=document.createElement(tt);return rt.classList.add(...Array.isArray(et)?et:[et]),rt}function elementPrevAll(tt,et){const rt=[];for(;tt.previousElementSibling;){const st=tt.previousElementSibling;et?st.matches(et)&&rt.push(st):rt.push(st),tt=st}return rt}function elementNextAll(tt,et){const rt=[];for(;tt.nextElementSibling;){const st=tt.nextElementSibling;et?st.matches(et)&&rt.push(st):rt.push(st),tt=st}return rt}function elementStyle(tt,et){return getWindow().getComputedStyle(tt,null).getPropertyValue(et)}function elementIndex(tt){let et=tt,rt;if(et){for(rt=0;(et=et.previousSibling)!==null;)et.nodeType===1&&(rt+=1);return rt}}function elementParents(tt,et){const rt=[];let st=tt.parentElement;for(;st;)et?st.matches(et)&&rt.push(st):rt.push(st),st=st.parentElement;return rt}function elementOuterSize(tt,et,rt){const st=getWindow();return tt[et==="width"?"offsetWidth":"offsetHeight"]+parseFloat(st.getComputedStyle(tt,null).getPropertyValue(et==="width"?"margin-right":"margin-top"))+parseFloat(st.getComputedStyle(tt,null).getPropertyValue(et==="width"?"margin-left":"margin-bottom"))}function createElementIfNotDefined(tt,et,rt,st){return tt.params.createElements&&Object.keys(st).forEach(nt=>{if(!rt[nt]&&rt.auto===!0){let ot=elementChildren(tt.el,`.${st[nt]}`)[0];ot||(ot=createElement("div",st[nt]),ot.className=st[nt],tt.el.append(ot)),rt[nt]=ot,et[nt]=ot}}),rt}function classesToSelector(tt){return tt===void 0&&(tt=""),`.${tt.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(tt){let{swiper:et,extendParams:rt,on:st,emit:nt}=tt;const ot="swiper-pagination";rt({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:wt=>wt,formatFractionTotal:wt=>wt,bulletClass:`${ot}-bullet`,bulletActiveClass:`${ot}-bullet-active`,modifierClass:`${ot}-`,currentClass:`${ot}-current`,totalClass:`${ot}-total`,hiddenClass:`${ot}-hidden`,progressbarFillClass:`${ot}-progressbar-fill`,progressbarOppositeClass:`${ot}-progressbar-opposite`,clickableClass:`${ot}-clickable`,lockClass:`${ot}-lock`,horizontalClass:`${ot}-horizontal`,verticalClass:`${ot}-vertical`,paginationDisabledClass:`${ot}-disabled`}}),et.pagination={el:null,bullets:[]};let at,lt=0;const ut=wt=>(Array.isArray(wt)?wt:[wt]).filter(St=>!!St);function ct(){return!et.params.pagination.el||!et.pagination.el||Array.isArray(et.pagination.el)&&et.pagination.el.length===0}function dt(wt,St){const{bulletActiveClass:Rt}=et.params.pagination;wt&&(wt=wt[`${St==="prev"?"previous":"next"}ElementSibling`],wt&&(wt.classList.add(`${Rt}-${St}`),wt=wt[`${St==="prev"?"previous":"next"}ElementSibling`],wt&&wt.classList.add(`${Rt}-${St}-${St}`)))}function ht(wt){const St=wt.target.closest(classesToSelector(et.params.pagination.bulletClass));if(!St)return;wt.preventDefault();const Rt=elementIndex(St)*et.params.slidesPerGroup;if(et.params.loop){if(et.realIndex===Rt)return;const Ct=et.realIndex,jt=et.getSlideIndexByData(Rt),It=et.getSlideIndexByData(et.realIndex),Pt=Ot=>{const Ut=et.activeIndex;et.loopFix({direction:Ot,activeSlideIndex:jt,slideTo:!1});const Nt=et.activeIndex;Ut===Nt&&et.slideToLoop(Ct,0,!1,!0)};if(jt>et.slides.length-et.loopedSlides)Pt(jt>It?"next":"prev");else if(et.params.centeredSlides){const Ot=et.params.slidesPerView==="auto"?et.slidesPerViewDynamic():Math.ceil(parseFloat(et.params.slidesPerView,10));jt<Math.floor(Ot/2)&&Pt("prev")}et.slideToLoop(Rt)}else et.slideTo(Rt)}function ft(){const wt=et.rtl,St=et.params.pagination;if(ct())return;let Rt=et.pagination.el;Rt=ut(Rt);let Ct,jt;const It=et.virtual&&et.params.virtual.enabled?et.virtual.slides.length:et.slides.length,Pt=et.params.loop?Math.ceil(It/et.params.slidesPerGroup):et.snapGrid.length;if(et.params.loop?(jt=et.previousRealIndex||0,Ct=et.params.slidesPerGroup>1?Math.floor(et.realIndex/et.params.slidesPerGroup):et.realIndex):typeof et.snapIndex<"u"?(Ct=et.snapIndex,jt=et.previousSnapIndex):(jt=et.previousIndex||0,Ct=et.activeIndex||0),St.type==="bullets"&&et.pagination.bullets&&et.pagination.bullets.length>0){const Ot=et.pagination.bullets;let Ut,Nt,Ht;if(St.dynamicBullets&&(at=elementOuterSize(Ot[0],et.isHorizontal()?"width":"height"),Rt.forEach(Lt=>{Lt.style[et.isHorizontal()?"width":"height"]=`${at*(St.dynamicMainBullets+4)}px`}),St.dynamicMainBullets>1&&jt!==void 0&&(lt+=Ct-(jt||0),lt>St.dynamicMainBullets-1?lt=St.dynamicMainBullets-1:lt<0&&(lt=0)),Ut=Math.max(Ct-lt,0),Nt=Ut+(Math.min(Ot.length,St.dynamicMainBullets)-1),Ht=(Nt+Ut)/2),Ot.forEach(Lt=>{const kt=[...["","-next","-next-next","-prev","-prev-prev","-main"].map($t=>`${St.bulletActiveClass}${$t}`)].map($t=>typeof $t=="string"&&$t.includes(" ")?$t.split(" "):$t).flat();Lt.classList.remove(...kt)}),Rt.length>1)Ot.forEach(Lt=>{const kt=elementIndex(Lt);kt===Ct?Lt.classList.add(...St.bulletActiveClass.split(" ")):et.isElement&&Lt.setAttribute("part","bullet"),St.dynamicBullets&&(kt>=Ut&&kt<=Nt&&Lt.classList.add(...`${St.bulletActiveClass}-main`.split(" ")),kt===Ut&&dt(Lt,"prev"),kt===Nt&&dt(Lt,"next"))});else{const Lt=Ot[Ct];if(Lt&&Lt.classList.add(...St.bulletActiveClass.split(" ")),et.isElement&&Ot.forEach((kt,$t)=>{kt.setAttribute("part",$t===Ct?"bullet-active":"bullet")}),St.dynamicBullets){const kt=Ot[Ut],$t=Ot[Nt];for(let Ft=Ut;Ft<=Nt;Ft+=1)Ot[Ft]&&Ot[Ft].classList.add(...`${St.bulletActiveClass}-main`.split(" "));dt(kt,"prev"),dt($t,"next")}}if(St.dynamicBullets){const Lt=Math.min(Ot.length,St.dynamicMainBullets+4),kt=(at*Lt-at)/2-Ht*at,$t=wt?"right":"left";Ot.forEach(Ft=>{Ft.style[et.isHorizontal()?$t:"top"]=`${kt}px`})}}Rt.forEach((Ot,Ut)=>{if(St.type==="fraction"&&(Ot.querySelectorAll(classesToSelector(St.currentClass)).forEach(Nt=>{Nt.textContent=St.formatFractionCurrent(Ct+1)}),Ot.querySelectorAll(classesToSelector(St.totalClass)).forEach(Nt=>{Nt.textContent=St.formatFractionTotal(Pt)})),St.type==="progressbar"){let Nt;St.progressbarOpposite?Nt=et.isHorizontal()?"vertical":"horizontal":Nt=et.isHorizontal()?"horizontal":"vertical";const Ht=(Ct+1)/Pt;let Lt=1,kt=1;Nt==="horizontal"?Lt=Ht:kt=Ht,Ot.querySelectorAll(classesToSelector(St.progressbarFillClass)).forEach($t=>{$t.style.transform=`translate3d(0,0,0) scaleX(${Lt}) scaleY(${kt})`,$t.style.transitionDuration=`${et.params.speed}ms`})}St.type==="custom"&&St.renderCustom?(Ot.innerHTML=St.renderCustom(et,Ct+1,Pt),Ut===0&&nt("paginationRender",Ot)):(Ut===0&&nt("paginationRender",Ot),nt("paginationUpdate",Ot)),et.params.watchOverflow&&et.enabled&&Ot.classList[et.isLocked?"add":"remove"](St.lockClass)})}function xt(){const wt=et.params.pagination;if(ct())return;const St=et.virtual&&et.params.virtual.enabled?et.virtual.slides.length:et.slides.length;let Rt=et.pagination.el;Rt=ut(Rt);let Ct="";if(wt.type==="bullets"){let jt=et.params.loop?Math.ceil(St/et.params.slidesPerGroup):et.snapGrid.length;et.params.freeMode&&et.params.freeMode.enabled&&jt>St&&(jt=St);for(let It=0;It<jt;It+=1)wt.renderBullet?Ct+=wt.renderBullet.call(et,It,wt.bulletClass):Ct+=`<${wt.bulletElement} ${et.isElement?'part="bullet"':""} class="${wt.bulletClass}"></${wt.bulletElement}>`}wt.type==="fraction"&&(wt.renderFraction?Ct=wt.renderFraction.call(et,wt.currentClass,wt.totalClass):Ct=`<span class="${wt.currentClass}"></span> / <span class="${wt.totalClass}"></span>`),wt.type==="progressbar"&&(wt.renderProgressbar?Ct=wt.renderProgressbar.call(et,wt.progressbarFillClass):Ct=`<span class="${wt.progressbarFillClass}"></span>`),et.pagination.bullets=[],Rt.forEach(jt=>{wt.type!=="custom"&&(jt.innerHTML=Ct||""),wt.type==="bullets"&&et.pagination.bullets.push(...jt.querySelectorAll(classesToSelector(wt.bulletClass)))}),wt.type!=="custom"&&nt("paginationRender",Rt[0])}function yt(){et.params.pagination=createElementIfNotDefined(et,et.originalParams.pagination,et.params.pagination,{el:"swiper-pagination"});const wt=et.params.pagination;if(!wt.el)return;let St;typeof wt.el=="string"&&et.isElement&&(St=et.el.querySelector(wt.el)),!St&&typeof wt.el=="string"&&(St=[...document.querySelectorAll(wt.el)]),St||(St=wt.el),!(!St||St.length===0)&&(et.params.uniqueNavElements&&typeof wt.el=="string"&&Array.isArray(St)&&St.length>1&&(St=[...et.el.querySelectorAll(wt.el)],St.length>1&&(St=St.filter(Rt=>elementParents(Rt,".swiper")[0]===et.el)[0])),Array.isArray(St)&&St.length===1&&(St=St[0]),Object.assign(et.pagination,{el:St}),St=ut(St),St.forEach(Rt=>{wt.type==="bullets"&&wt.clickable&&Rt.classList.add(...(wt.clickableClass||"").split(" ")),Rt.classList.add(wt.modifierClass+wt.type),Rt.classList.add(et.isHorizontal()?wt.horizontalClass:wt.verticalClass),wt.type==="bullets"&&wt.dynamicBullets&&(Rt.classList.add(`${wt.modifierClass}${wt.type}-dynamic`),lt=0,wt.dynamicMainBullets<1&&(wt.dynamicMainBullets=1)),wt.type==="progressbar"&&wt.progressbarOpposite&&Rt.classList.add(wt.progressbarOppositeClass),wt.clickable&&Rt.addEventListener("click",ht),et.enabled||Rt.classList.add(wt.lockClass)}))}function vt(){const wt=et.params.pagination;if(ct())return;let St=et.pagination.el;St&&(St=ut(St),St.forEach(Rt=>{Rt.classList.remove(wt.hiddenClass),Rt.classList.remove(wt.modifierClass+wt.type),Rt.classList.remove(et.isHorizontal()?wt.horizontalClass:wt.verticalClass),wt.clickable&&(Rt.classList.remove(...(wt.clickableClass||"").split(" ")),Rt.removeEventListener("click",ht))})),et.pagination.bullets&&et.pagination.bullets.forEach(Rt=>Rt.classList.remove(...wt.bulletActiveClass.split(" ")))}st("changeDirection",()=>{if(!et.pagination||!et.pagination.el)return;const wt=et.params.pagination;let{el:St}=et.pagination;St=ut(St),St.forEach(Rt=>{Rt.classList.remove(wt.horizontalClass,wt.verticalClass),Rt.classList.add(et.isHorizontal()?wt.horizontalClass:wt.verticalClass)})}),st("init",()=>{et.params.pagination.enabled===!1?bt():(yt(),xt(),ft())}),st("activeIndexChange",()=>{typeof et.snapIndex>"u"&&ft()}),st("snapIndexChange",()=>{ft()}),st("snapGridLengthChange",()=>{xt(),ft()}),st("destroy",()=>{vt()}),st("enable disable",()=>{let{el:wt}=et.pagination;wt&&(wt=ut(wt),wt.forEach(St=>St.classList[et.enabled?"remove":"add"](et.params.pagination.lockClass)))}),st("lock unlock",()=>{ft()}),st("click",(wt,St)=>{const Rt=St.target,Ct=ut(et.pagination.el);if(et.params.pagination.el&&et.params.pagination.hideOnClick&&Ct&&Ct.length>0&&!Rt.classList.contains(et.params.pagination.bulletClass)){if(et.navigation&&(et.navigation.nextEl&&Rt===et.navigation.nextEl||et.navigation.prevEl&&Rt===et.navigation.prevEl))return;const jt=Ct[0].classList.contains(et.params.pagination.hiddenClass);nt(jt===!0?"paginationShow":"paginationHide"),Ct.forEach(It=>It.classList.toggle(et.params.pagination.hiddenClass))}});const Et=()=>{et.el.classList.remove(et.params.pagination.paginationDisabledClass);let{el:wt}=et.pagination;wt&&(wt=ut(wt),wt.forEach(St=>St.classList.remove(et.params.pagination.paginationDisabledClass))),yt(),xt(),ft()},bt=()=>{et.el.classList.add(et.params.pagination.paginationDisabledClass);let{el:wt}=et.pagination;wt&&(wt=ut(wt),wt.forEach(St=>St.classList.add(et.params.pagination.paginationDisabledClass))),vt()};Object.assign(et.pagination,{enable:Et,disable:bt,render:xt,update:ft,init:yt,destroy:vt})}let support;function calcSupport(){const tt=getWindow(),et=getDocument();return{smoothScroll:et.documentElement&&et.documentElement.style&&"scrollBehavior"in et.documentElement.style,touch:!!("ontouchstart"in tt||tt.DocumentTouch&&et instanceof tt.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice(tt){let{userAgent:et}=tt===void 0?{}:tt;const rt=getSupport(),st=getWindow(),nt=st.navigator.platform,ot=et||st.navigator.userAgent,at={ios:!1,android:!1},lt=st.screen.width,ut=st.screen.height,ct=ot.match(/(Android);?[\s\/]+([\d.]+)?/);let dt=ot.match(/(iPad).*OS\s([\d_]+)/);const ht=ot.match(/(iPod)(.*OS\s([\d_]+))?/),ft=!dt&&ot.match(/(iPhone\sOS|iOS)\s([\d_]+)/),xt=nt==="Win32";let yt=nt==="MacIntel";const vt=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!dt&&yt&&rt.touch&&vt.indexOf(`${lt}x${ut}`)>=0&&(dt=ot.match(/(Version)\/([\d.]+)/),dt||(dt=[0,1,"13_0_0"]),yt=!1),ct&&!xt&&(at.os="android",at.android=!0),(dt||ft||ht)&&(at.os="ios",at.ios=!0),at}function getDevice(tt){return tt===void 0&&(tt={}),deviceCached||(deviceCached=calcDevice(tt)),deviceCached}let browser;function calcBrowser(){const tt=getWindow();let et=!1;function rt(){const st=tt.navigator.userAgent.toLowerCase();return st.indexOf("safari")>=0&&st.indexOf("chrome")<0&&st.indexOf("android")<0}if(rt()){const st=String(tt.navigator.userAgent);if(st.includes("Version/")){const[nt,ot]=st.split("Version/")[1].split(" ")[0].split(".").map(at=>Number(at));et=nt<16||nt===16&&ot<2}}return{isSafari:et||rt(),needPerspectiveFix:et,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(tt.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(tt){let{swiper:et,on:rt,emit:st}=tt;const nt=getWindow();let ot=null,at=null;const lt=()=>{!et||et.destroyed||!et.initialized||(st("beforeResize"),st("resize"))},ut=()=>{!et||et.destroyed||!et.initialized||(ot=new ResizeObserver(ht=>{at=nt.requestAnimationFrame(()=>{const{width:ft,height:xt}=et;let yt=ft,vt=xt;ht.forEach(Et=>{let{contentBoxSize:bt,contentRect:wt,target:St}=Et;St&&St!==et.el||(yt=wt?wt.width:(bt[0]||bt).inlineSize,vt=wt?wt.height:(bt[0]||bt).blockSize)}),(yt!==ft||vt!==xt)&<()})}),ot.observe(et.el))},ct=()=>{at&&nt.cancelAnimationFrame(at),ot&&ot.unobserve&&et.el&&(ot.unobserve(et.el),ot=null)},dt=()=>{!et||et.destroyed||!et.initialized||st("orientationchange")};rt("init",()=>{if(et.params.resizeObserver&&typeof nt.ResizeObserver<"u"){ut();return}nt.addEventListener("resize",lt),nt.addEventListener("orientationchange",dt)}),rt("destroy",()=>{ct(),nt.removeEventListener("resize",lt),nt.removeEventListener("orientationchange",dt)})}function Observer(tt){let{swiper:et,extendParams:rt,on:st,emit:nt}=tt;const ot=[],at=getWindow(),lt=function(dt,ht){ht===void 0&&(ht={});const ft=at.MutationObserver||at.WebkitMutationObserver,xt=new ft(yt=>{if(et.__preventObserver__)return;if(yt.length===1){nt("observerUpdate",yt[0]);return}const vt=function(){nt("observerUpdate",yt[0])};at.requestAnimationFrame?at.requestAnimationFrame(vt):at.setTimeout(vt,0)});xt.observe(dt,{attributes:typeof ht.attributes>"u"?!0:ht.attributes,childList:typeof ht.childList>"u"?!0:ht.childList,characterData:typeof ht.characterData>"u"?!0:ht.characterData}),ot.push(xt)},ut=()=>{if(et.params.observer){if(et.params.observeParents){const dt=elementParents(et.hostEl);for(let ht=0;ht<dt.length;ht+=1)lt(dt[ht])}lt(et.hostEl,{childList:et.params.observeSlideChildren}),lt(et.wrapperEl,{attributes:!1})}},ct=()=>{ot.forEach(dt=>{dt.disconnect()}),ot.splice(0,ot.length)};rt({observer:!1,observeParents:!1,observeSlideChildren:!1}),st("init",ut),st("destroy",ct)}var eventsEmitter={on(tt,et,rt){const st=this;if(!st.eventsListeners||st.destroyed||typeof et!="function")return st;const nt=rt?"unshift":"push";return tt.split(" ").forEach(ot=>{st.eventsListeners[ot]||(st.eventsListeners[ot]=[]),st.eventsListeners[ot][nt](et)}),st},once(tt,et,rt){const st=this;if(!st.eventsListeners||st.destroyed||typeof et!="function")return st;function nt(){st.off(tt,nt),nt.__emitterProxy&&delete nt.__emitterProxy;for(var ot=arguments.length,at=new Array(ot),lt=0;lt<ot;lt++)at[lt]=arguments[lt];et.apply(st,at)}return nt.__emitterProxy=et,st.on(tt,nt,rt)},onAny(tt,et){const rt=this;if(!rt.eventsListeners||rt.destroyed||typeof tt!="function")return rt;const st=et?"unshift":"push";return rt.eventsAnyListeners.indexOf(tt)<0&&rt.eventsAnyListeners[st](tt),rt},offAny(tt){const et=this;if(!et.eventsListeners||et.destroyed||!et.eventsAnyListeners)return et;const rt=et.eventsAnyListeners.indexOf(tt);return rt>=0&&et.eventsAnyListeners.splice(rt,1),et},off(tt,et){const rt=this;return!rt.eventsListeners||rt.destroyed||!rt.eventsListeners||tt.split(" ").forEach(st=>{typeof et>"u"?rt.eventsListeners[st]=[]:rt.eventsListeners[st]&&rt.eventsListeners[st].forEach((nt,ot)=>{(nt===et||nt.__emitterProxy&&nt.__emitterProxy===et)&&rt.eventsListeners[st].splice(ot,1)})}),rt},emit(){const tt=this;if(!tt.eventsListeners||tt.destroyed||!tt.eventsListeners)return tt;let et,rt,st;for(var nt=arguments.length,ot=new Array(nt),at=0;at<nt;at++)ot[at]=arguments[at];return typeof ot[0]=="string"||Array.isArray(ot[0])?(et=ot[0],rt=ot.slice(1,ot.length),st=tt):(et=ot[0].events,rt=ot[0].data,st=ot[0].context||tt),rt.unshift(st),(Array.isArray(et)?et:et.split(" ")).forEach(ut=>{tt.eventsAnyListeners&&tt.eventsAnyListeners.length&&tt.eventsAnyListeners.forEach(ct=>{ct.apply(st,[ut,...rt])}),tt.eventsListeners&&tt.eventsListeners[ut]&&tt.eventsListeners[ut].forEach(ct=>{ct.apply(st,rt)})}),tt}};function updateSize(){const tt=this;let et,rt;const st=tt.el;typeof tt.params.width<"u"&&tt.params.width!==null?et=tt.params.width:et=st.clientWidth,typeof tt.params.height<"u"&&tt.params.height!==null?rt=tt.params.height:rt=st.clientHeight,!(et===0&&tt.isHorizontal()||rt===0&&tt.isVertical())&&(et=et-parseInt(elementStyle(st,"padding-left")||0,10)-parseInt(elementStyle(st,"padding-right")||0,10),rt=rt-parseInt(elementStyle(st,"padding-top")||0,10)-parseInt(elementStyle(st,"padding-bottom")||0,10),Number.isNaN(et)&&(et=0),Number.isNaN(rt)&&(rt=0),Object.assign(tt,{width:et,height:rt,size:tt.isHorizontal()?et:rt}))}function updateSlides(){const tt=this;function et(Nt){return tt.isHorizontal()?Nt:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[Nt]}function rt(Nt,Ht){return parseFloat(Nt.getPropertyValue(et(Ht))||0)}const st=tt.params,{wrapperEl:nt,slidesEl:ot,size:at,rtlTranslate:lt,wrongRTL:ut}=tt,ct=tt.virtual&&st.virtual.enabled,dt=ct?tt.virtual.slides.length:tt.slides.length,ht=elementChildren(ot,`.${tt.params.slideClass}, swiper-slide`),ft=ct?tt.virtual.slides.length:ht.length;let xt=[];const yt=[],vt=[];let Et=st.slidesOffsetBefore;typeof Et=="function"&&(Et=st.slidesOffsetBefore.call(tt));let bt=st.slidesOffsetAfter;typeof bt=="function"&&(bt=st.slidesOffsetAfter.call(tt));const wt=tt.snapGrid.length,St=tt.slidesGrid.length;let Rt=st.spaceBetween,Ct=-Et,jt=0,It=0;if(typeof at>"u")return;typeof Rt=="string"&&Rt.indexOf("%")>=0?Rt=parseFloat(Rt.replace("%",""))/100*at:typeof Rt=="string"&&(Rt=parseFloat(Rt)),tt.virtualSize=-Rt,ht.forEach(Nt=>{lt?Nt.style.marginLeft="":Nt.style.marginRight="",Nt.style.marginBottom="",Nt.style.marginTop=""}),st.centeredSlides&&st.cssMode&&(setCSSProperty(nt,"--swiper-centered-offset-before",""),setCSSProperty(nt,"--swiper-centered-offset-after",""));const Pt=st.grid&&st.grid.rows>1&&tt.grid;Pt&&tt.grid.initSlides(ft);let Ot;const Ut=st.slidesPerView==="auto"&&st.breakpoints&&Object.keys(st.breakpoints).filter(Nt=>typeof st.breakpoints[Nt].slidesPerView<"u").length>0;for(let Nt=0;Nt<ft;Nt+=1){Ot=0;let Ht;if(ht[Nt]&&(Ht=ht[Nt]),Pt&&tt.grid.updateSlide(Nt,Ht,ft,et),!(ht[Nt]&&elementStyle(Ht,"display")==="none")){if(st.slidesPerView==="auto"){Ut&&(ht[Nt].style[et("width")]="");const Lt=getComputedStyle(Ht),kt=Ht.style.transform,$t=Ht.style.webkitTransform;if(kt&&(Ht.style.transform="none"),$t&&(Ht.style.webkitTransform="none"),st.roundLengths)Ot=tt.isHorizontal()?elementOuterSize(Ht,"width"):elementOuterSize(Ht,"height");else{const Ft=rt(Lt,"width"),Gt=rt(Lt,"padding-left"),Mt=rt(Lt,"padding-right"),Vt=rt(Lt,"margin-left"),Bt=rt(Lt,"margin-right"),qt=Lt.getPropertyValue("box-sizing");if(qt&&qt==="border-box")Ot=Ft+Vt+Bt;else{const{clientWidth:Yt,offsetWidth:Kt}=Ht;Ot=Ft+Gt+Mt+Vt+Bt+(Kt-Yt)}}kt&&(Ht.style.transform=kt),$t&&(Ht.style.webkitTransform=$t),st.roundLengths&&(Ot=Math.floor(Ot))}else Ot=(at-(st.slidesPerView-1)*Rt)/st.slidesPerView,st.roundLengths&&(Ot=Math.floor(Ot)),ht[Nt]&&(ht[Nt].style[et("width")]=`${Ot}px`);ht[Nt]&&(ht[Nt].swiperSlideSize=Ot),vt.push(Ot),st.centeredSlides?(Ct=Ct+Ot/2+jt/2+Rt,jt===0&&Nt!==0&&(Ct=Ct-at/2-Rt),Nt===0&&(Ct=Ct-at/2-Rt),Math.abs(Ct)<1/1e3&&(Ct=0),st.roundLengths&&(Ct=Math.floor(Ct)),It%st.slidesPerGroup===0&&xt.push(Ct),yt.push(Ct)):(st.roundLengths&&(Ct=Math.floor(Ct)),(It-Math.min(tt.params.slidesPerGroupSkip,It))%tt.params.slidesPerGroup===0&&xt.push(Ct),yt.push(Ct),Ct=Ct+Ot+Rt),tt.virtualSize+=Ot+Rt,jt=Ot,It+=1}}if(tt.virtualSize=Math.max(tt.virtualSize,at)+bt,lt&&ut&&(st.effect==="slide"||st.effect==="coverflow")&&(nt.style.width=`${tt.virtualSize+Rt}px`),st.setWrapperSize&&(nt.style[et("width")]=`${tt.virtualSize+Rt}px`),Pt&&tt.grid.updateWrapperSize(Ot,xt,et),!st.centeredSlides){const Nt=[];for(let Ht=0;Ht<xt.length;Ht+=1){let Lt=xt[Ht];st.roundLengths&&(Lt=Math.floor(Lt)),xt[Ht]<=tt.virtualSize-at&&Nt.push(Lt)}xt=Nt,Math.floor(tt.virtualSize-at)-Math.floor(xt[xt.length-1])>1&&xt.push(tt.virtualSize-at)}if(ct&&st.loop){const Nt=vt[0]+Rt;if(st.slidesPerGroup>1){const Ht=Math.ceil((tt.virtual.slidesBefore+tt.virtual.slidesAfter)/st.slidesPerGroup),Lt=Nt*st.slidesPerGroup;for(let kt=0;kt<Ht;kt+=1)xt.push(xt[xt.length-1]+Lt)}for(let Ht=0;Ht<tt.virtual.slidesBefore+tt.virtual.slidesAfter;Ht+=1)st.slidesPerGroup===1&&xt.push(xt[xt.length-1]+Nt),yt.push(yt[yt.length-1]+Nt),tt.virtualSize+=Nt}if(xt.length===0&&(xt=[0]),Rt!==0){const Nt=tt.isHorizontal()&<?"marginLeft":et("marginRight");ht.filter((Ht,Lt)=>!st.cssMode||st.loop?!0:Lt!==ht.length-1).forEach(Ht=>{Ht.style[Nt]=`${Rt}px`})}if(st.centeredSlides&&st.centeredSlidesBounds){let Nt=0;vt.forEach(Lt=>{Nt+=Lt+(Rt||0)}),Nt-=Rt;const Ht=Nt-at;xt=xt.map(Lt=>Lt<=0?-Et:Lt>Ht?Ht+bt:Lt)}if(st.centerInsufficientSlides){let Nt=0;if(vt.forEach(Ht=>{Nt+=Ht+(Rt||0)}),Nt-=Rt,Nt<at){const Ht=(at-Nt)/2;xt.forEach((Lt,kt)=>{xt[kt]=Lt-Ht}),yt.forEach((Lt,kt)=>{yt[kt]=Lt+Ht})}}if(Object.assign(tt,{slides:ht,snapGrid:xt,slidesGrid:yt,slidesSizesGrid:vt}),st.centeredSlides&&st.cssMode&&!st.centeredSlidesBounds){setCSSProperty(nt,"--swiper-centered-offset-before",`${-xt[0]}px`),setCSSProperty(nt,"--swiper-centered-offset-after",`${tt.size/2-vt[vt.length-1]/2}px`);const Nt=-tt.snapGrid[0],Ht=-tt.slidesGrid[0];tt.snapGrid=tt.snapGrid.map(Lt=>Lt+Nt),tt.slidesGrid=tt.slidesGrid.map(Lt=>Lt+Ht)}if(ft!==dt&&tt.emit("slidesLengthChange"),xt.length!==wt&&(tt.params.watchOverflow&&tt.checkOverflow(),tt.emit("snapGridLengthChange")),yt.length!==St&&tt.emit("slidesGridLengthChange"),st.watchSlidesProgress&&tt.updateSlidesOffset(),!ct&&!st.cssMode&&(st.effect==="slide"||st.effect==="fade")){const Nt=`${st.containerModifierClass}backface-hidden`,Ht=tt.el.classList.contains(Nt);ft<=st.maxBackfaceHiddenSlides?Ht||tt.el.classList.add(Nt):Ht&&tt.el.classList.remove(Nt)}}function updateAutoHeight(tt){const et=this,rt=[],st=et.virtual&&et.params.virtual.enabled;let nt=0,ot;typeof tt=="number"?et.setTransition(tt):tt===!0&&et.setTransition(et.params.speed);const at=lt=>st?et.slides[et.getSlideIndexByData(lt)]:et.slides[lt];if(et.params.slidesPerView!=="auto"&&et.params.slidesPerView>1)if(et.params.centeredSlides)(et.visibleSlides||[]).forEach(lt=>{rt.push(lt)});else for(ot=0;ot<Math.ceil(et.params.slidesPerView);ot+=1){const lt=et.activeIndex+ot;if(lt>et.slides.length&&!st)break;rt.push(at(lt))}else rt.push(at(et.activeIndex));for(ot=0;ot<rt.length;ot+=1)if(typeof rt[ot]<"u"){const lt=rt[ot].offsetHeight;nt=lt>nt?lt:nt}(nt||nt===0)&&(et.wrapperEl.style.height=`${nt}px`)}function updateSlidesOffset(){const tt=this,et=tt.slides,rt=tt.isElement?tt.isHorizontal()?tt.wrapperEl.offsetLeft:tt.wrapperEl.offsetTop:0;for(let st=0;st<et.length;st+=1)et[st].swiperSlideOffset=(tt.isHorizontal()?et[st].offsetLeft:et[st].offsetTop)-rt-tt.cssOverflowAdjustment()}function updateSlidesProgress(tt){tt===void 0&&(tt=this&&this.translate||0);const et=this,rt=et.params,{slides:st,rtlTranslate:nt,snapGrid:ot}=et;if(st.length===0)return;typeof st[0].swiperSlideOffset>"u"&&et.updateSlidesOffset();let at=-tt;nt&&(at=tt),st.forEach(ut=>{ut.classList.remove(rt.slideVisibleClass)}),et.visibleSlidesIndexes=[],et.visibleSlides=[];let lt=rt.spaceBetween;typeof lt=="string"&<.indexOf("%")>=0?lt=parseFloat(lt.replace("%",""))/100*et.size:typeof lt=="string"&&(lt=parseFloat(lt));for(let ut=0;ut<st.length;ut+=1){const ct=st[ut];let dt=ct.swiperSlideOffset;rt.cssMode&&rt.centeredSlides&&(dt-=st[0].swiperSlideOffset);const ht=(at+(rt.centeredSlides?et.minTranslate():0)-dt)/(ct.swiperSlideSize+lt),ft=(at-ot[0]+(rt.centeredSlides?et.minTranslate():0)-dt)/(ct.swiperSlideSize+lt),xt=-(at-dt),yt=xt+et.slidesSizesGrid[ut];(xt>=0&&xt<et.size-1||yt>1&&yt<=et.size||xt<=0&&yt>=et.size)&&(et.visibleSlides.push(ct),et.visibleSlidesIndexes.push(ut),st[ut].classList.add(rt.slideVisibleClass)),ct.progress=nt?-ht:ht,ct.originalProgress=nt?-ft:ft}}function updateProgress(tt){const et=this;if(typeof tt>"u"){const dt=et.rtlTranslate?-1:1;tt=et&&et.translate&&et.translate*dt||0}const rt=et.params,st=et.maxTranslate()-et.minTranslate();let{progress:nt,isBeginning:ot,isEnd:at,progressLoop:lt}=et;const ut=ot,ct=at;if(st===0)nt=0,ot=!0,at=!0;else{nt=(tt-et.minTranslate())/st;const dt=Math.abs(tt-et.minTranslate())<1,ht=Math.abs(tt-et.maxTranslate())<1;ot=dt||nt<=0,at=ht||nt>=1,dt&&(nt=0),ht&&(nt=1)}if(rt.loop){const dt=et.getSlideIndexByData(0),ht=et.getSlideIndexByData(et.slides.length-1),ft=et.slidesGrid[dt],xt=et.slidesGrid[ht],yt=et.slidesGrid[et.slidesGrid.length-1],vt=Math.abs(tt);vt>=ft?lt=(vt-ft)/yt:lt=(vt+yt-xt)/yt,lt>1&&(lt-=1)}Object.assign(et,{progress:nt,progressLoop:lt,isBeginning:ot,isEnd:at}),(rt.watchSlidesProgress||rt.centeredSlides&&rt.autoHeight)&&et.updateSlidesProgress(tt),ot&&!ut&&et.emit("reachBeginning toEdge"),at&&!ct&&et.emit("reachEnd toEdge"),(ut&&!ot||ct&&!at)&&et.emit("fromEdge"),et.emit("progress",nt)}function updateSlidesClasses(){const tt=this,{slides:et,params:rt,slidesEl:st,activeIndex:nt}=tt,ot=tt.virtual&&rt.virtual.enabled,at=ut=>elementChildren(st,`.${rt.slideClass}${ut}, swiper-slide${ut}`)[0];et.forEach(ut=>{ut.classList.remove(rt.slideActiveClass,rt.slideNextClass,rt.slidePrevClass)});let lt;if(ot)if(rt.loop){let ut=nt-tt.virtual.slidesBefore;ut<0&&(ut=tt.virtual.slides.length+ut),ut>=tt.virtual.slides.length&&(ut-=tt.virtual.slides.length),lt=at(`[data-swiper-slide-index="${ut}"]`)}else lt=at(`[data-swiper-slide-index="${nt}"]`);else lt=et[nt];if(lt){lt.classList.add(rt.slideActiveClass);let ut=elementNextAll(lt,`.${rt.slideClass}, swiper-slide`)[0];rt.loop&&!ut&&(ut=et[0]),ut&&ut.classList.add(rt.slideNextClass);let ct=elementPrevAll(lt,`.${rt.slideClass}, swiper-slide`)[0];rt.loop&&!ct===0&&(ct=et[et.length-1]),ct&&ct.classList.add(rt.slidePrevClass)}tt.emitSlidesClasses()}const processLazyPreloader=(tt,et)=>{if(!tt||tt.destroyed||!tt.params)return;const rt=()=>tt.isElement?"swiper-slide":`.${tt.params.slideClass}`,st=et.closest(rt());if(st){let nt=st.querySelector(`.${tt.params.lazyPreloaderClass}`);!nt&&tt.isElement&&(st.shadowRoot?nt=st.shadowRoot.querySelector(`.${tt.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{st.shadowRoot&&(nt=st.shadowRoot.querySelector(`.${tt.params.lazyPreloaderClass}`),nt&&nt.remove())})),nt&&nt.remove()}},unlazy=(tt,et)=>{if(!tt.slides[et])return;const rt=tt.slides[et].querySelector('[loading="lazy"]');rt&&rt.removeAttribute("loading")},preload=tt=>{if(!tt||tt.destroyed||!tt.params)return;let et=tt.params.lazyPreloadPrevNext;const rt=tt.slides.length;if(!rt||!et||et<0)return;et=Math.min(et,rt);const st=tt.params.slidesPerView==="auto"?tt.slidesPerViewDynamic():Math.ceil(tt.params.slidesPerView),nt=tt.activeIndex;if(tt.params.grid&&tt.params.grid.rows>1){const at=nt,lt=[at-et];lt.push(...Array.from({length:et}).map((ut,ct)=>at+st+ct)),tt.slides.forEach((ut,ct)=>{lt.includes(ut.column)&&unlazy(tt,ct)});return}const ot=nt+st-1;if(tt.params.rewind||tt.params.loop)for(let at=nt-et;at<=ot+et;at+=1){const lt=(at%rt+rt)%rt;(lt<nt||lt>ot)&&unlazy(tt,lt)}else for(let at=Math.max(nt-et,0);at<=Math.min(ot+et,rt-1);at+=1)at!==nt&&(at>ot||at<nt)&&unlazy(tt,at)};function getActiveIndexByTranslate(tt){const{slidesGrid:et,params:rt}=tt,st=tt.rtlTranslate?tt.translate:-tt.translate;let nt;for(let ot=0;ot<et.length;ot+=1)typeof et[ot+1]<"u"?st>=et[ot]&&st<et[ot+1]-(et[ot+1]-et[ot])/2?nt=ot:st>=et[ot]&&st<et[ot+1]&&(nt=ot+1):st>=et[ot]&&(nt=ot);return rt.normalizeSlideIndex&&(nt<0||typeof nt>"u")&&(nt=0),nt}function updateActiveIndex(tt){const et=this,rt=et.rtlTranslate?et.translate:-et.translate,{snapGrid:st,params:nt,activeIndex:ot,realIndex:at,snapIndex:lt}=et;let ut=tt,ct;const dt=ft=>{let xt=ft-et.virtual.slidesBefore;return xt<0&&(xt=et.virtual.slides.length+xt),xt>=et.virtual.slides.length&&(xt-=et.virtual.slides.length),xt};if(typeof ut>"u"&&(ut=getActiveIndexByTranslate(et)),st.indexOf(rt)>=0)ct=st.indexOf(rt);else{const ft=Math.min(nt.slidesPerGroupSkip,ut);ct=ft+Math.floor((ut-ft)/nt.slidesPerGroup)}if(ct>=st.length&&(ct=st.length-1),ut===ot){ct!==lt&&(et.snapIndex=ct,et.emit("snapIndexChange")),et.params.loop&&et.virtual&&et.params.virtual.enabled&&(et.realIndex=dt(ut));return}let ht;et.virtual&&nt.virtual.enabled&&nt.loop?ht=dt(ut):et.slides[ut]?ht=parseInt(et.slides[ut].getAttribute("data-swiper-slide-index")||ut,10):ht=ut,Object.assign(et,{previousSnapIndex:lt,snapIndex:ct,previousRealIndex:at,realIndex:ht,previousIndex:ot,activeIndex:ut}),et.initialized&&preload(et),et.emit("activeIndexChange"),et.emit("snapIndexChange"),(et.initialized||et.params.runCallbacksOnInit)&&(at!==ht&&et.emit("realIndexChange"),et.emit("slideChange"))}function updateClickedSlide(tt,et){const rt=this,st=rt.params;let nt=tt.closest(`.${st.slideClass}, swiper-slide`);!nt&&rt.isElement&&et&&et.length>1&&et.includes(tt)&&[...et.slice(et.indexOf(tt)+1,et.length)].forEach(lt=>{!nt&<.matches&<.matches(`.${st.slideClass}, swiper-slide`)&&(nt=lt)});let ot=!1,at;if(nt){for(let lt=0;lt<rt.slides.length;lt+=1)if(rt.slides[lt]===nt){ot=!0,at=lt;break}}if(nt&&ot)rt.clickedSlide=nt,rt.virtual&&rt.params.virtual.enabled?rt.clickedIndex=parseInt(nt.getAttribute("data-swiper-slide-index"),10):rt.clickedIndex=at;else{rt.clickedSlide=void 0,rt.clickedIndex=void 0;return}st.slideToClickedSlide&&rt.clickedIndex!==void 0&&rt.clickedIndex!==rt.activeIndex&&rt.slideToClickedSlide()}var update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(tt){tt===void 0&&(tt=this.isHorizontal()?"x":"y");const et=this,{params:rt,rtlTranslate:st,translate:nt,wrapperEl:ot}=et;if(rt.virtualTranslate)return st?-nt:nt;if(rt.cssMode)return nt;let at=getTranslate(ot,tt);return at+=et.cssOverflowAdjustment(),st&&(at=-at),at||0}function setTranslate(tt,et){const rt=this,{rtlTranslate:st,params:nt,wrapperEl:ot,progress:at}=rt;let lt=0,ut=0;const ct=0;rt.isHorizontal()?lt=st?-tt:tt:ut=tt,nt.roundLengths&&(lt=Math.floor(lt),ut=Math.floor(ut)),rt.previousTranslate=rt.translate,rt.translate=rt.isHorizontal()?lt:ut,nt.cssMode?ot[rt.isHorizontal()?"scrollLeft":"scrollTop"]=rt.isHorizontal()?-lt:-ut:nt.virtualTranslate||(rt.isHorizontal()?lt-=rt.cssOverflowAdjustment():ut-=rt.cssOverflowAdjustment(),ot.style.transform=`translate3d(${lt}px, ${ut}px, ${ct}px)`);let dt;const ht=rt.maxTranslate()-rt.minTranslate();ht===0?dt=0:dt=(tt-rt.minTranslate())/ht,dt!==at&&rt.updateProgress(tt),rt.emit("setTranslate",rt.translate,et)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(tt,et,rt,st,nt){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),st===void 0&&(st=!0);const ot=this,{params:at,wrapperEl:lt}=ot;if(ot.animating&&at.preventInteractionOnTransition)return!1;const ut=ot.minTranslate(),ct=ot.maxTranslate();let dt;if(st&&tt>ut?dt=ut:st&&tt<ct?dt=ct:dt=tt,ot.updateProgress(dt),at.cssMode){const ht=ot.isHorizontal();if(et===0)lt[ht?"scrollLeft":"scrollTop"]=-dt;else{if(!ot.support.smoothScroll)return animateCSSModeScroll({swiper:ot,targetPosition:-dt,side:ht?"left":"top"}),!0;lt.scrollTo({[ht?"left":"top"]:-dt,behavior:"smooth"})}return!0}return et===0?(ot.setTransition(0),ot.setTranslate(dt),rt&&(ot.emit("beforeTransitionStart",et,nt),ot.emit("transitionEnd"))):(ot.setTransition(et),ot.setTranslate(dt),rt&&(ot.emit("beforeTransitionStart",et,nt),ot.emit("transitionStart")),ot.animating||(ot.animating=!0,ot.onTranslateToWrapperTransitionEnd||(ot.onTranslateToWrapperTransitionEnd=function(ft){!ot||ot.destroyed||ft.target===this&&(ot.wrapperEl.removeEventListener("transitionend",ot.onTranslateToWrapperTransitionEnd),ot.onTranslateToWrapperTransitionEnd=null,delete ot.onTranslateToWrapperTransitionEnd,rt&&ot.emit("transitionEnd"))}),ot.wrapperEl.addEventListener("transitionend",ot.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(tt,et){const rt=this;rt.params.cssMode||(rt.wrapperEl.style.transitionDuration=`${tt}ms`,rt.wrapperEl.style.transitionDelay=tt===0?"0ms":""),rt.emit("setTransition",tt,et)}function transitionEmit(tt){let{swiper:et,runCallbacks:rt,direction:st,step:nt}=tt;const{activeIndex:ot,previousIndex:at}=et;let lt=st;if(lt||(ot>at?lt="next":ot<at?lt="prev":lt="reset"),et.emit(`transition${nt}`),rt&&ot!==at){if(lt==="reset"){et.emit(`slideResetTransition${nt}`);return}et.emit(`slideChangeTransition${nt}`),lt==="next"?et.emit(`slideNextTransition${nt}`):et.emit(`slidePrevTransition${nt}`)}}function transitionStart(tt,et){tt===void 0&&(tt=!0);const rt=this,{params:st}=rt;st.cssMode||(st.autoHeight&&rt.updateAutoHeight(),transitionEmit({swiper:rt,runCallbacks:tt,direction:et,step:"Start"}))}function transitionEnd(tt,et){tt===void 0&&(tt=!0);const rt=this,{params:st}=rt;rt.animating=!1,!st.cssMode&&(rt.setTransition(0),transitionEmit({swiper:rt,runCallbacks:tt,direction:et,step:"End"}))}var transition={setTransition,transitionStart,transitionEnd};function slideTo(tt,et,rt,st,nt){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),typeof tt=="string"&&(tt=parseInt(tt,10));const ot=this;let at=tt;at<0&&(at=0);const{params:lt,snapGrid:ut,slidesGrid:ct,previousIndex:dt,activeIndex:ht,rtlTranslate:ft,wrapperEl:xt,enabled:yt}=ot;if(ot.animating&<.preventInteractionOnTransition||!yt&&!st&&!nt)return!1;const vt=Math.min(ot.params.slidesPerGroupSkip,at);let Et=vt+Math.floor((at-vt)/ot.params.slidesPerGroup);Et>=ut.length&&(Et=ut.length-1);const bt=-ut[Et];if(lt.normalizeSlideIndex)for(let St=0;St<ct.length;St+=1){const Rt=-Math.floor(bt*100),Ct=Math.floor(ct[St]*100),jt=Math.floor(ct[St+1]*100);typeof ct[St+1]<"u"?Rt>=Ct&&Rt<jt-(jt-Ct)/2?at=St:Rt>=Ct&&Rt<jt&&(at=St+1):Rt>=Ct&&(at=St)}if(ot.initialized&&at!==ht&&(!ot.allowSlideNext&&(ft?bt>ot.translate&&bt>ot.minTranslate():bt<ot.translate&&bt<ot.minTranslate())||!ot.allowSlidePrev&&bt>ot.translate&&bt>ot.maxTranslate()&&(ht||0)!==at))return!1;at!==(dt||0)&&rt&&ot.emit("beforeSlideChangeStart"),ot.updateProgress(bt);let wt;if(at>ht?wt="next":at<ht?wt="prev":wt="reset",ft&&-bt===ot.translate||!ft&&bt===ot.translate)return ot.updateActiveIndex(at),lt.autoHeight&&ot.updateAutoHeight(),ot.updateSlidesClasses(),lt.effect!=="slide"&&ot.setTranslate(bt),wt!=="reset"&&(ot.transitionStart(rt,wt),ot.transitionEnd(rt,wt)),!1;if(lt.cssMode){const St=ot.isHorizontal(),Rt=ft?bt:-bt;if(et===0){const Ct=ot.virtual&&ot.params.virtual.enabled;Ct&&(ot.wrapperEl.style.scrollSnapType="none",ot._immediateVirtual=!0),Ct&&!ot._cssModeVirtualInitialSet&&ot.params.initialSlide>0?(ot._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{xt[St?"scrollLeft":"scrollTop"]=Rt})):xt[St?"scrollLeft":"scrollTop"]=Rt,Ct&&requestAnimationFrame(()=>{ot.wrapperEl.style.scrollSnapType="",ot._immediateVirtual=!1})}else{if(!ot.support.smoothScroll)return animateCSSModeScroll({swiper:ot,targetPosition:Rt,side:St?"left":"top"}),!0;xt.scrollTo({[St?"left":"top"]:Rt,behavior:"smooth"})}return!0}return ot.setTransition(et),ot.setTranslate(bt),ot.updateActiveIndex(at),ot.updateSlidesClasses(),ot.emit("beforeTransitionStart",et,st),ot.transitionStart(rt,wt),et===0?ot.transitionEnd(rt,wt):ot.animating||(ot.animating=!0,ot.onSlideToWrapperTransitionEnd||(ot.onSlideToWrapperTransitionEnd=function(Rt){!ot||ot.destroyed||Rt.target===this&&(ot.wrapperEl.removeEventListener("transitionend",ot.onSlideToWrapperTransitionEnd),ot.onSlideToWrapperTransitionEnd=null,delete ot.onSlideToWrapperTransitionEnd,ot.transitionEnd(rt,wt))}),ot.wrapperEl.addEventListener("transitionend",ot.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(tt,et,rt,st){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),typeof tt=="string"&&(tt=parseInt(tt,10));const nt=this;let ot=tt;return nt.params.loop&&(nt.virtual&&nt.params.virtual.enabled?ot=ot+nt.virtual.slidesBefore:ot=nt.getSlideIndexByData(ot)),nt.slideTo(ot,et,rt,st)}function slideNext(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const st=this,{enabled:nt,params:ot,animating:at}=st;if(!nt)return st;let lt=ot.slidesPerGroup;ot.slidesPerView==="auto"&&ot.slidesPerGroup===1&&ot.slidesPerGroupAuto&&(lt=Math.max(st.slidesPerViewDynamic("current",!0),1));const ut=st.activeIndex<ot.slidesPerGroupSkip?1:lt,ct=st.virtual&&ot.virtual.enabled;if(ot.loop){if(at&&!ct&&ot.loopPreventsSliding)return!1;if(st.loopFix({direction:"next"}),st._clientLeft=st.wrapperEl.clientLeft,st.activeIndex===st.slides.length-1&&ot.cssMode)return requestAnimationFrame(()=>{st.slideTo(st.activeIndex+ut,tt,et,rt)}),!0}return ot.rewind&&st.isEnd?st.slideTo(0,tt,et,rt):st.slideTo(st.activeIndex+ut,tt,et,rt)}function slidePrev(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const st=this,{params:nt,snapGrid:ot,slidesGrid:at,rtlTranslate:lt,enabled:ut,animating:ct}=st;if(!ut)return st;const dt=st.virtual&&nt.virtual.enabled;if(nt.loop){if(ct&&!dt&&nt.loopPreventsSliding)return!1;st.loopFix({direction:"prev"}),st._clientLeft=st.wrapperEl.clientLeft}const ht=lt?st.translate:-st.translate;function ft(bt){return bt<0?-Math.floor(Math.abs(bt)):Math.floor(bt)}const xt=ft(ht),yt=ot.map(bt=>ft(bt));let vt=ot[yt.indexOf(xt)-1];if(typeof vt>"u"&&nt.cssMode){let bt;ot.forEach((wt,St)=>{xt>=wt&&(bt=St)}),typeof bt<"u"&&(vt=ot[bt>0?bt-1:bt])}let Et=0;if(typeof vt<"u"&&(Et=at.indexOf(vt),Et<0&&(Et=st.activeIndex-1),nt.slidesPerView==="auto"&&nt.slidesPerGroup===1&&nt.slidesPerGroupAuto&&(Et=Et-st.slidesPerViewDynamic("previous",!0)+1,Et=Math.max(Et,0))),nt.rewind&&st.isBeginning){const bt=st.params.virtual&&st.params.virtual.enabled&&st.virtual?st.virtual.slides.length-1:st.slides.length-1;return st.slideTo(bt,tt,et,rt)}else if(nt.loop&&st.activeIndex===0&&nt.cssMode)return requestAnimationFrame(()=>{st.slideTo(Et,tt,et,rt)}),!0;return st.slideTo(Et,tt,et,rt)}function slideReset(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const st=this;return st.slideTo(st.activeIndex,tt,et,rt)}function slideToClosest(tt,et,rt,st){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0),st===void 0&&(st=.5);const nt=this;let ot=nt.activeIndex;const at=Math.min(nt.params.slidesPerGroupSkip,ot),lt=at+Math.floor((ot-at)/nt.params.slidesPerGroup),ut=nt.rtlTranslate?nt.translate:-nt.translate;if(ut>=nt.snapGrid[lt]){const ct=nt.snapGrid[lt],dt=nt.snapGrid[lt+1];ut-ct>(dt-ct)*st&&(ot+=nt.params.slidesPerGroup)}else{const ct=nt.snapGrid[lt-1],dt=nt.snapGrid[lt];ut-ct<=(dt-ct)*st&&(ot-=nt.params.slidesPerGroup)}return ot=Math.max(ot,0),ot=Math.min(ot,nt.slidesGrid.length-1),nt.slideTo(ot,tt,et,rt)}function slideToClickedSlide(){const tt=this,{params:et,slidesEl:rt}=tt,st=et.slidesPerView==="auto"?tt.slidesPerViewDynamic():et.slidesPerView;let nt=tt.clickedIndex,ot;const at=tt.isElement?"swiper-slide":`.${et.slideClass}`;if(et.loop){if(tt.animating)return;ot=parseInt(tt.clickedSlide.getAttribute("data-swiper-slide-index"),10),et.centeredSlides?nt<tt.loopedSlides-st/2||nt>tt.slides.length-tt.loopedSlides+st/2?(tt.loopFix(),nt=tt.getSlideIndex(elementChildren(rt,`${at}[data-swiper-slide-index="${ot}"]`)[0]),nextTick(()=>{tt.slideTo(nt)})):tt.slideTo(nt):nt>tt.slides.length-st?(tt.loopFix(),nt=tt.getSlideIndex(elementChildren(rt,`${at}[data-swiper-slide-index="${ot}"]`)[0]),nextTick(()=>{tt.slideTo(nt)})):tt.slideTo(nt)}else tt.slideTo(nt)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(tt){const et=this,{params:rt,slidesEl:st}=et;if(!rt.loop||et.virtual&&et.params.virtual.enabled)return;elementChildren(st,`.${rt.slideClass}, swiper-slide`).forEach((ot,at)=>{ot.setAttribute("data-swiper-slide-index",at)}),et.loopFix({slideRealIndex:tt,direction:rt.centeredSlides?void 0:"next"})}function loopFix(tt){let{slideRealIndex:et,slideTo:rt=!0,direction:st,setTranslate:nt,activeSlideIndex:ot,byController:at,byMousewheel:lt}=tt===void 0?{}:tt;const ut=this;if(!ut.params.loop)return;ut.emit("beforeLoopFix");const{slides:ct,allowSlidePrev:dt,allowSlideNext:ht,slidesEl:ft,params:xt}=ut;if(ut.allowSlidePrev=!0,ut.allowSlideNext=!0,ut.virtual&&xt.virtual.enabled){rt&&(!xt.centeredSlides&&ut.snapIndex===0?ut.slideTo(ut.virtual.slides.length,0,!1,!0):xt.centeredSlides&&ut.snapIndex<xt.slidesPerView?ut.slideTo(ut.virtual.slides.length+ut.snapIndex,0,!1,!0):ut.snapIndex===ut.snapGrid.length-1&&ut.slideTo(ut.virtual.slidesBefore,0,!1,!0)),ut.allowSlidePrev=dt,ut.allowSlideNext=ht,ut.emit("loopFix");return}const yt=xt.slidesPerView==="auto"?ut.slidesPerViewDynamic():Math.ceil(parseFloat(xt.slidesPerView,10));let vt=xt.loopedSlides||yt;vt%xt.slidesPerGroup!==0&&(vt+=xt.slidesPerGroup-vt%xt.slidesPerGroup),ut.loopedSlides=vt;const Et=[],bt=[];let wt=ut.activeIndex;typeof ot>"u"?ot=ut.getSlideIndex(ut.slides.filter(It=>It.classList.contains(xt.slideActiveClass))[0]):wt=ot;const St=st==="next"||!st,Rt=st==="prev"||!st;let Ct=0,jt=0;if(ot<vt){Ct=Math.max(vt-ot,xt.slidesPerGroup);for(let It=0;It<vt-ot;It+=1){const Pt=It-Math.floor(It/ct.length)*ct.length;Et.push(ct.length-Pt-1)}}else if(ot>ut.slides.length-vt*2){jt=Math.max(ot-(ut.slides.length-vt*2),xt.slidesPerGroup);for(let It=0;It<jt;It+=1){const Pt=It-Math.floor(It/ct.length)*ct.length;bt.push(Pt)}}if(Rt&&Et.forEach(It=>{ut.slides[It].swiperLoopMoveDOM=!0,ft.prepend(ut.slides[It]),ut.slides[It].swiperLoopMoveDOM=!1}),St&&bt.forEach(It=>{ut.slides[It].swiperLoopMoveDOM=!0,ft.append(ut.slides[It]),ut.slides[It].swiperLoopMoveDOM=!1}),ut.recalcSlides(),xt.slidesPerView==="auto"&&ut.updateSlides(),xt.watchSlidesProgress&&ut.updateSlidesOffset(),rt){if(Et.length>0&&Rt)if(typeof et>"u"){const It=ut.slidesGrid[wt],Ot=ut.slidesGrid[wt+Ct]-It;lt?ut.setTranslate(ut.translate-Ot):(ut.slideTo(wt+Ct,0,!1,!0),nt&&(ut.touches[ut.isHorizontal()?"startX":"startY"]+=Ot,ut.touchEventsData.currentTranslate=ut.translate))}else nt&&(ut.slideToLoop(et,0,!1,!0),ut.touchEventsData.currentTranslate=ut.translate);else if(bt.length>0&&St)if(typeof et>"u"){const It=ut.slidesGrid[wt],Ot=ut.slidesGrid[wt-jt]-It;lt?ut.setTranslate(ut.translate-Ot):(ut.slideTo(wt-jt,0,!1,!0),nt&&(ut.touches[ut.isHorizontal()?"startX":"startY"]+=Ot,ut.touchEventsData.currentTranslate=ut.translate))}else ut.slideToLoop(et,0,!1,!0)}if(ut.allowSlidePrev=dt,ut.allowSlideNext=ht,ut.controller&&ut.controller.control&&!at){const It={slideRealIndex:et,direction:st,setTranslate:nt,activeSlideIndex:ot,byController:!0};Array.isArray(ut.controller.control)?ut.controller.control.forEach(Pt=>{!Pt.destroyed&&Pt.params.loop&&Pt.loopFix({...It,slideTo:Pt.params.slidesPerView===xt.slidesPerView?rt:!1})}):ut.controller.control instanceof ut.constructor&&ut.controller.control.params.loop&&ut.controller.control.loopFix({...It,slideTo:ut.controller.control.params.slidesPerView===xt.slidesPerView?rt:!1})}ut.emit("loopFix")}function loopDestroy(){const tt=this,{params:et,slidesEl:rt}=tt;if(!et.loop||tt.virtual&&tt.params.virtual.enabled)return;tt.recalcSlides();const st=[];tt.slides.forEach(nt=>{const ot=typeof nt.swiperSlideIndex>"u"?nt.getAttribute("data-swiper-slide-index")*1:nt.swiperSlideIndex;st[ot]=nt}),tt.slides.forEach(nt=>{nt.removeAttribute("data-swiper-slide-index")}),st.forEach(nt=>{rt.append(nt)}),tt.recalcSlides(),tt.slideTo(tt.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(tt){const et=this;if(!et.params.simulateTouch||et.params.watchOverflow&&et.isLocked||et.params.cssMode)return;const rt=et.params.touchEventsTarget==="container"?et.el:et.wrapperEl;et.isElement&&(et.__preventObserver__=!0),rt.style.cursor="move",rt.style.cursor=tt?"grabbing":"grab",et.isElement&&requestAnimationFrame(()=>{et.__preventObserver__=!1})}function unsetGrabCursor(){const tt=this;tt.params.watchOverflow&&tt.isLocked||tt.params.cssMode||(tt.isElement&&(tt.__preventObserver__=!0),tt[tt.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",tt.isElement&&requestAnimationFrame(()=>{tt.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(tt,et){et===void 0&&(et=this);function rt(st){if(!st||st===getDocument()||st===getWindow())return null;st.assignedSlot&&(st=st.assignedSlot);const nt=st.closest(tt);return!nt&&!st.getRootNode?null:nt||rt(st.getRootNode().host)}return rt(et)}function onTouchStart(tt){const et=this,rt=getDocument(),st=getWindow(),nt=et.touchEventsData;nt.evCache.push(tt);const{params:ot,touches:at,enabled:lt}=et;if(!lt||!ot.simulateTouch&&tt.pointerType==="mouse"||et.animating&&ot.preventInteractionOnTransition)return;!et.animating&&ot.cssMode&&ot.loop&&et.loopFix();let ut=tt;ut.originalEvent&&(ut=ut.originalEvent);let ct=ut.target;if(ot.touchEventsTarget==="wrapper"&&!et.wrapperEl.contains(ct)||"which"in ut&&ut.which===3||"button"in ut&&ut.button>0||nt.isTouched&&nt.isMoved)return;const dt=!!ot.noSwipingClass&&ot.noSwipingClass!=="",ht=tt.composedPath?tt.composedPath():tt.path;dt&&ut.target&&ut.target.shadowRoot&&ht&&(ct=ht[0]);const ft=ot.noSwipingSelector?ot.noSwipingSelector:`.${ot.noSwipingClass}`,xt=!!(ut.target&&ut.target.shadowRoot);if(ot.noSwiping&&(xt?closestElement(ft,ct):ct.closest(ft))){et.allowClick=!0;return}if(ot.swipeHandler&&!ct.closest(ot.swipeHandler))return;at.currentX=ut.pageX,at.currentY=ut.pageY;const yt=at.currentX,vt=at.currentY,Et=ot.edgeSwipeDetection||ot.iOSEdgeSwipeDetection,bt=ot.edgeSwipeThreshold||ot.iOSEdgeSwipeThreshold;if(Et&&(yt<=bt||yt>=st.innerWidth-bt))if(Et==="prevent")tt.preventDefault();else return;Object.assign(nt,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),at.startX=yt,at.startY=vt,nt.touchStartTime=now(),et.allowClick=!0,et.updateSize(),et.swipeDirection=void 0,ot.threshold>0&&(nt.allowThresholdMove=!1);let wt=!0;ct.matches(nt.focusableElements)&&(wt=!1,ct.nodeName==="SELECT"&&(nt.isTouched=!1)),rt.activeElement&&rt.activeElement.matches(nt.focusableElements)&&rt.activeElement!==ct&&rt.activeElement.blur();const St=wt&&et.allowTouchMove&&ot.touchStartPreventDefault;(ot.touchStartForcePreventDefault||St)&&!ct.isContentEditable&&ut.preventDefault(),ot.freeMode&&ot.freeMode.enabled&&et.freeMode&&et.animating&&!ot.cssMode&&et.freeMode.onTouchStart(),et.emit("touchStart",ut)}function onTouchMove(tt){const et=getDocument(),rt=this,st=rt.touchEventsData,{params:nt,touches:ot,rtlTranslate:at,enabled:lt}=rt;if(!lt||!nt.simulateTouch&&tt.pointerType==="mouse")return;let ut=tt;if(ut.originalEvent&&(ut=ut.originalEvent),!st.isTouched){st.startMoving&&st.isScrolling&&rt.emit("touchMoveOpposite",ut);return}const ct=st.evCache.findIndex(It=>It.pointerId===ut.pointerId);ct>=0&&(st.evCache[ct]=ut);const dt=st.evCache.length>1?st.evCache[0]:ut,ht=dt.pageX,ft=dt.pageY;if(ut.preventedByNestedSwiper){ot.startX=ht,ot.startY=ft;return}if(!rt.allowTouchMove){ut.target.matches(st.focusableElements)||(rt.allowClick=!1),st.isTouched&&(Object.assign(ot,{startX:ht,startY:ft,prevX:rt.touches.currentX,prevY:rt.touches.currentY,currentX:ht,currentY:ft}),st.touchStartTime=now());return}if(nt.touchReleaseOnEdges&&!nt.loop){if(rt.isVertical()){if(ft<ot.startY&&rt.translate<=rt.maxTranslate()||ft>ot.startY&&rt.translate>=rt.minTranslate()){st.isTouched=!1,st.isMoved=!1;return}}else if(ht<ot.startX&&rt.translate<=rt.maxTranslate()||ht>ot.startX&&rt.translate>=rt.minTranslate())return}if(et.activeElement&&ut.target===et.activeElement&&ut.target.matches(st.focusableElements)){st.isMoved=!0,rt.allowClick=!1;return}if(st.allowTouchCallbacks&&rt.emit("touchMove",ut),ut.targetTouches&&ut.targetTouches.length>1)return;ot.currentX=ht,ot.currentY=ft;const xt=ot.currentX-ot.startX,yt=ot.currentY-ot.startY;if(rt.params.threshold&&Math.sqrt(xt**2+yt**2)<rt.params.threshold)return;if(typeof st.isScrolling>"u"){let It;rt.isHorizontal()&&ot.currentY===ot.startY||rt.isVertical()&&ot.currentX===ot.startX?st.isScrolling=!1:xt*xt+yt*yt>=25&&(It=Math.atan2(Math.abs(yt),Math.abs(xt))*180/Math.PI,st.isScrolling=rt.isHorizontal()?It>nt.touchAngle:90-It>nt.touchAngle)}if(st.isScrolling&&rt.emit("touchMoveOpposite",ut),typeof st.startMoving>"u"&&(ot.currentX!==ot.startX||ot.currentY!==ot.startY)&&(st.startMoving=!0),st.isScrolling||rt.zoom&&rt.params.zoom&&rt.params.zoom.enabled&&st.evCache.length>1){st.isTouched=!1;return}if(!st.startMoving)return;rt.allowClick=!1,!nt.cssMode&&ut.cancelable&&ut.preventDefault(),nt.touchMoveStopPropagation&&!nt.nested&&ut.stopPropagation();let vt=rt.isHorizontal()?xt:yt,Et=rt.isHorizontal()?ot.currentX-ot.previousX:ot.currentY-ot.previousY;nt.oneWayMovement&&(vt=Math.abs(vt)*(at?1:-1),Et=Math.abs(Et)*(at?1:-1)),ot.diff=vt,vt*=nt.touchRatio,at&&(vt=-vt,Et=-Et);const bt=rt.touchesDirection;rt.swipeDirection=vt>0?"prev":"next",rt.touchesDirection=Et>0?"prev":"next";const wt=rt.params.loop&&!nt.cssMode,St=rt.swipeDirection==="next"&&rt.allowSlideNext||rt.swipeDirection==="prev"&&rt.allowSlidePrev;if(!st.isMoved){if(wt&&St&&rt.loopFix({direction:rt.swipeDirection}),st.startTranslate=rt.getTranslate(),rt.setTransition(0),rt.animating){const It=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});rt.wrapperEl.dispatchEvent(It)}st.allowMomentumBounce=!1,nt.grabCursor&&(rt.allowSlideNext===!0||rt.allowSlidePrev===!0)&&rt.setGrabCursor(!0),rt.emit("sliderFirstMove",ut)}let Rt;st.isMoved&&bt!==rt.touchesDirection&&wt&&St&&Math.abs(vt)>=1&&(rt.loopFix({direction:rt.swipeDirection,setTranslate:!0}),Rt=!0),rt.emit("sliderMove",ut),st.isMoved=!0,st.currentTranslate=vt+st.startTranslate;let Ct=!0,jt=nt.resistanceRatio;if(nt.touchReleaseOnEdges&&(jt=0),vt>0?(wt&&St&&!Rt&&st.currentTranslate>(nt.centeredSlides?rt.minTranslate()-rt.size/2:rt.minTranslate())&&rt.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),st.currentTranslate>rt.minTranslate()&&(Ct=!1,nt.resistance&&(st.currentTranslate=rt.minTranslate()-1+(-rt.minTranslate()+st.startTranslate+vt)**jt))):vt<0&&(wt&&St&&!Rt&&st.currentTranslate<(nt.centeredSlides?rt.maxTranslate()+rt.size/2:rt.maxTranslate())&&rt.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:rt.slides.length-(nt.slidesPerView==="auto"?rt.slidesPerViewDynamic():Math.ceil(parseFloat(nt.slidesPerView,10)))}),st.currentTranslate<rt.maxTranslate()&&(Ct=!1,nt.resistance&&(st.currentTranslate=rt.maxTranslate()+1-(rt.maxTranslate()-st.startTranslate-vt)**jt))),Ct&&(ut.preventedByNestedSwiper=!0),!rt.allowSlideNext&&rt.swipeDirection==="next"&&st.currentTranslate<st.startTranslate&&(st.currentTranslate=st.startTranslate),!rt.allowSlidePrev&&rt.swipeDirection==="prev"&&st.currentTranslate>st.startTranslate&&(st.currentTranslate=st.startTranslate),!rt.allowSlidePrev&&!rt.allowSlideNext&&(st.currentTranslate=st.startTranslate),nt.threshold>0)if(Math.abs(vt)>nt.threshold||st.allowThresholdMove){if(!st.allowThresholdMove){st.allowThresholdMove=!0,ot.startX=ot.currentX,ot.startY=ot.currentY,st.currentTranslate=st.startTranslate,ot.diff=rt.isHorizontal()?ot.currentX-ot.startX:ot.currentY-ot.startY;return}}else{st.currentTranslate=st.startTranslate;return}!nt.followFinger||nt.cssMode||((nt.freeMode&&nt.freeMode.enabled&&rt.freeMode||nt.watchSlidesProgress)&&(rt.updateActiveIndex(),rt.updateSlidesClasses()),nt.freeMode&&nt.freeMode.enabled&&rt.freeMode&&rt.freeMode.onTouchMove(),rt.updateProgress(st.currentTranslate),rt.setTranslate(st.currentTranslate))}function onTouchEnd(tt){const et=this,rt=et.touchEventsData,st=rt.evCache.findIndex(St=>St.pointerId===tt.pointerId);if(st>=0&&rt.evCache.splice(st,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(tt.type)&&!(["pointercancel","contextmenu"].includes(tt.type)&&(et.browser.isSafari||et.browser.isWebView)))return;const{params:nt,touches:ot,rtlTranslate:at,slidesGrid:lt,enabled:ut}=et;if(!ut||!nt.simulateTouch&&tt.pointerType==="mouse")return;let ct=tt;if(ct.originalEvent&&(ct=ct.originalEvent),rt.allowTouchCallbacks&&et.emit("touchEnd",ct),rt.allowTouchCallbacks=!1,!rt.isTouched){rt.isMoved&&nt.grabCursor&&et.setGrabCursor(!1),rt.isMoved=!1,rt.startMoving=!1;return}nt.grabCursor&&rt.isMoved&&rt.isTouched&&(et.allowSlideNext===!0||et.allowSlidePrev===!0)&&et.setGrabCursor(!1);const dt=now(),ht=dt-rt.touchStartTime;if(et.allowClick){const St=ct.path||ct.composedPath&&ct.composedPath();et.updateClickedSlide(St&&St[0]||ct.target,St),et.emit("tap click",ct),ht<300&&dt-rt.lastClickTime<300&&et.emit("doubleTap doubleClick",ct)}if(rt.lastClickTime=now(),nextTick(()=>{et.destroyed||(et.allowClick=!0)}),!rt.isTouched||!rt.isMoved||!et.swipeDirection||ot.diff===0||rt.currentTranslate===rt.startTranslate){rt.isTouched=!1,rt.isMoved=!1,rt.startMoving=!1;return}rt.isTouched=!1,rt.isMoved=!1,rt.startMoving=!1;let ft;if(nt.followFinger?ft=at?et.translate:-et.translate:ft=-rt.currentTranslate,nt.cssMode)return;if(nt.freeMode&&nt.freeMode.enabled){et.freeMode.onTouchEnd({currentPos:ft});return}let xt=0,yt=et.slidesSizesGrid[0];for(let St=0;St<lt.length;St+=St<nt.slidesPerGroupSkip?1:nt.slidesPerGroup){const Rt=St<nt.slidesPerGroupSkip-1?1:nt.slidesPerGroup;typeof lt[St+Rt]<"u"?ft>=lt[St]&&ft<lt[St+Rt]&&(xt=St,yt=lt[St+Rt]-lt[St]):ft>=lt[St]&&(xt=St,yt=lt[lt.length-1]-lt[lt.length-2])}let vt=null,Et=null;nt.rewind&&(et.isBeginning?Et=nt.virtual&&nt.virtual.enabled&&et.virtual?et.virtual.slides.length-1:et.slides.length-1:et.isEnd&&(vt=0));const bt=(ft-lt[xt])/yt,wt=xt<nt.slidesPerGroupSkip-1?1:nt.slidesPerGroup;if(ht>nt.longSwipesMs){if(!nt.longSwipes){et.slideTo(et.activeIndex);return}et.swipeDirection==="next"&&(bt>=nt.longSwipesRatio?et.slideTo(nt.rewind&&et.isEnd?vt:xt+wt):et.slideTo(xt)),et.swipeDirection==="prev"&&(bt>1-nt.longSwipesRatio?et.slideTo(xt+wt):Et!==null&&bt<0&&Math.abs(bt)>nt.longSwipesRatio?et.slideTo(Et):et.slideTo(xt))}else{if(!nt.shortSwipes){et.slideTo(et.activeIndex);return}et.navigation&&(ct.target===et.navigation.nextEl||ct.target===et.navigation.prevEl)?ct.target===et.navigation.nextEl?et.slideTo(xt+wt):et.slideTo(xt):(et.swipeDirection==="next"&&et.slideTo(vt!==null?vt:xt+wt),et.swipeDirection==="prev"&&et.slideTo(Et!==null?Et:xt))}}function onResize(){const tt=this,{params:et,el:rt}=tt;if(rt&&rt.offsetWidth===0)return;et.breakpoints&&tt.setBreakpoint();const{allowSlideNext:st,allowSlidePrev:nt,snapGrid:ot}=tt,at=tt.virtual&&tt.params.virtual.enabled;tt.allowSlideNext=!0,tt.allowSlidePrev=!0,tt.updateSize(),tt.updateSlides(),tt.updateSlidesClasses();const lt=at&&et.loop;(et.slidesPerView==="auto"||et.slidesPerView>1)&&tt.isEnd&&!tt.isBeginning&&!tt.params.centeredSlides&&!lt?tt.slideTo(tt.slides.length-1,0,!1,!0):tt.params.loop&&!at?tt.slideToLoop(tt.realIndex,0,!1,!0):tt.slideTo(tt.activeIndex,0,!1,!0),tt.autoplay&&tt.autoplay.running&&tt.autoplay.paused&&(clearTimeout(tt.autoplay.resizeTimeout),tt.autoplay.resizeTimeout=setTimeout(()=>{tt.autoplay&&tt.autoplay.running&&tt.autoplay.paused&&tt.autoplay.resume()},500)),tt.allowSlidePrev=nt,tt.allowSlideNext=st,tt.params.watchOverflow&&ot!==tt.snapGrid&&tt.checkOverflow()}function onClick(tt){const et=this;et.enabled&&(et.allowClick||(et.params.preventClicks&&tt.preventDefault(),et.params.preventClicksPropagation&&et.animating&&(tt.stopPropagation(),tt.stopImmediatePropagation())))}function onScroll(){const tt=this,{wrapperEl:et,rtlTranslate:rt,enabled:st}=tt;if(!st)return;tt.previousTranslate=tt.translate,tt.isHorizontal()?tt.translate=-et.scrollLeft:tt.translate=-et.scrollTop,tt.translate===0&&(tt.translate=0),tt.updateActiveIndex(),tt.updateSlidesClasses();let nt;const ot=tt.maxTranslate()-tt.minTranslate();ot===0?nt=0:nt=(tt.translate-tt.minTranslate())/ot,nt!==tt.progress&&tt.updateProgress(rt?-tt.translate:tt.translate),tt.emit("setTranslate",tt.translate,!1)}function onLoad(tt){const et=this;processLazyPreloader(et,tt.target),!(et.params.cssMode||et.params.slidesPerView!=="auto"&&!et.params.autoHeight)&&et.update()}let dummyEventAttached=!1;function dummyEventListener(){}const events=(tt,et)=>{const rt=getDocument(),{params:st,el:nt,wrapperEl:ot,device:at}=tt,lt=!!st.nested,ut=et==="on"?"addEventListener":"removeEventListener",ct=et;nt[ut]("pointerdown",tt.onTouchStart,{passive:!1}),rt[ut]("pointermove",tt.onTouchMove,{passive:!1,capture:lt}),rt[ut]("pointerup",tt.onTouchEnd,{passive:!0}),rt[ut]("pointercancel",tt.onTouchEnd,{passive:!0}),rt[ut]("pointerout",tt.onTouchEnd,{passive:!0}),rt[ut]("pointerleave",tt.onTouchEnd,{passive:!0}),rt[ut]("contextmenu",tt.onTouchEnd,{passive:!0}),(st.preventClicks||st.preventClicksPropagation)&&nt[ut]("click",tt.onClick,!0),st.cssMode&&ot[ut]("scroll",tt.onScroll),st.updateOnWindowResize?tt[ct](at.ios||at.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):tt[ct]("observerUpdate",onResize,!0),nt[ut]("load",tt.onLoad,{capture:!0})};function attachEvents(){const tt=this,et=getDocument(),{params:rt}=tt;tt.onTouchStart=onTouchStart.bind(tt),tt.onTouchMove=onTouchMove.bind(tt),tt.onTouchEnd=onTouchEnd.bind(tt),rt.cssMode&&(tt.onScroll=onScroll.bind(tt)),tt.onClick=onClick.bind(tt),tt.onLoad=onLoad.bind(tt),dummyEventAttached||(et.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(tt,"on")}function detachEvents(){events(this,"off")}var events$1={attachEvents,detachEvents};const isGridEnabled=(tt,et)=>tt.grid&&et.grid&&et.grid.rows>1;function setBreakpoint(){const tt=this,{realIndex:et,initialized:rt,params:st,el:nt}=tt,ot=st.breakpoints;if(!ot||ot&&Object.keys(ot).length===0)return;const at=tt.getBreakpoint(ot,tt.params.breakpointsBase,tt.el);if(!at||tt.currentBreakpoint===at)return;const ut=(at in ot?ot[at]:void 0)||tt.originalParams,ct=isGridEnabled(tt,st),dt=isGridEnabled(tt,ut),ht=st.enabled;ct&&!dt?(nt.classList.remove(`${st.containerModifierClass}grid`,`${st.containerModifierClass}grid-column`),tt.emitContainerClasses()):!ct&&dt&&(nt.classList.add(`${st.containerModifierClass}grid`),(ut.grid.fill&&ut.grid.fill==="column"||!ut.grid.fill&&st.grid.fill==="column")&&nt.classList.add(`${st.containerModifierClass}grid-column`),tt.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(bt=>{if(typeof ut[bt]>"u")return;const wt=st[bt]&&st[bt].enabled,St=ut[bt]&&ut[bt].enabled;wt&&!St&&tt[bt].disable(),!wt&&St&&tt[bt].enable()});const ft=ut.direction&&ut.direction!==st.direction,xt=st.loop&&(ut.slidesPerView!==st.slidesPerView||ft),yt=st.loop;ft&&rt&&tt.changeDirection(),extend$1(tt.params,ut);const vt=tt.params.enabled,Et=tt.params.loop;Object.assign(tt,{allowTouchMove:tt.params.allowTouchMove,allowSlideNext:tt.params.allowSlideNext,allowSlidePrev:tt.params.allowSlidePrev}),ht&&!vt?tt.disable():!ht&&vt&&tt.enable(),tt.currentBreakpoint=at,tt.emit("_beforeBreakpoint",ut),rt&&(xt?(tt.loopDestroy(),tt.loopCreate(et),tt.updateSlides()):!yt&&Et?(tt.loopCreate(et),tt.updateSlides()):yt&&!Et&&tt.loopDestroy()),tt.emit("breakpoint",ut)}function getBreakpoint(tt,et,rt){if(et===void 0&&(et="window"),!tt||et==="container"&&!rt)return;let st=!1;const nt=getWindow(),ot=et==="window"?nt.innerHeight:rt.clientHeight,at=Object.keys(tt).map(lt=>{if(typeof lt=="string"&<.indexOf("@")===0){const ut=parseFloat(lt.substr(1));return{value:ot*ut,point:lt}}return{value:lt,point:lt}});at.sort((lt,ut)=>parseInt(lt.value,10)-parseInt(ut.value,10));for(let lt=0;lt<at.length;lt+=1){const{point:ut,value:ct}=at[lt];et==="window"?nt.matchMedia(`(min-width: ${ct}px)`).matches&&(st=ut):ct<=rt.clientWidth&&(st=ut)}return st||"max"}var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(tt,et){const rt=[];return tt.forEach(st=>{typeof st=="object"?Object.keys(st).forEach(nt=>{st[nt]&&rt.push(et+nt)}):typeof st=="string"&&rt.push(et+st)}),rt}function addClasses(){const tt=this,{classNames:et,params:rt,rtl:st,el:nt,device:ot}=tt,at=prepareClasses(["initialized",rt.direction,{"free-mode":tt.params.freeMode&&rt.freeMode.enabled},{autoheight:rt.autoHeight},{rtl:st},{grid:rt.grid&&rt.grid.rows>1},{"grid-column":rt.grid&&rt.grid.rows>1&&rt.grid.fill==="column"},{android:ot.android},{ios:ot.ios},{"css-mode":rt.cssMode},{centered:rt.cssMode&&rt.centeredSlides},{"watch-progress":rt.watchSlidesProgress}],rt.containerModifierClass);et.push(...at),nt.classList.add(...et),tt.emitContainerClasses()}function removeClasses(){const tt=this,{el:et,classNames:rt}=tt;et.classList.remove(...rt),tt.emitContainerClasses()}var classes={addClasses,removeClasses};function checkOverflow(){const tt=this,{isLocked:et,params:rt}=tt,{slidesOffsetBefore:st}=rt;if(st){const nt=tt.slides.length-1,ot=tt.slidesGrid[nt]+tt.slidesSizesGrid[nt]+st*2;tt.isLocked=tt.size>ot}else tt.isLocked=tt.snapGrid.length===1;rt.allowSlideNext===!0&&(tt.allowSlideNext=!tt.isLocked),rt.allowSlidePrev===!0&&(tt.allowSlidePrev=!tt.isLocked),et&&et!==tt.isLocked&&(tt.isEnd=!1),et!==tt.isLocked&&tt.emit(tt.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults$3={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(tt,et){return function(st){st===void 0&&(st={});const nt=Object.keys(st)[0],ot=st[nt];if(typeof ot!="object"||ot===null){extend$1(et,st);return}if(tt[nt]===!0&&(tt[nt]={enabled:!0}),nt==="navigation"&&tt[nt]&&tt[nt].enabled&&!tt[nt].prevEl&&!tt[nt].nextEl&&(tt[nt].auto=!0),["pagination","scrollbar"].indexOf(nt)>=0&&tt[nt]&&tt[nt].enabled&&!tt[nt].el&&(tt[nt].auto=!0),!(nt in tt&&"enabled"in ot)){extend$1(et,st);return}typeof tt[nt]=="object"&&!("enabled"in tt[nt])&&(tt[nt].enabled=!0),tt[nt]||(tt[nt]={enabled:!1}),extend$1(et,st)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};let Swiper$1=class Ao{constructor(){let et,rt;for(var st=arguments.length,nt=new Array(st),ot=0;ot<st;ot++)nt[ot]=arguments[ot];nt.length===1&&nt[0].constructor&&Object.prototype.toString.call(nt[0]).slice(8,-1)==="Object"?rt=nt[0]:[et,rt]=nt,rt||(rt={}),rt=extend$1({},rt),et&&!rt.el&&(rt.el=et);const at=getDocument();if(rt.el&&typeof rt.el=="string"&&at.querySelectorAll(rt.el).length>1){const dt=[];return at.querySelectorAll(rt.el).forEach(ht=>{const ft=extend$1({},rt,{el:ht});dt.push(new Ao(ft))}),dt}const lt=this;lt.__swiper__=!0,lt.support=getSupport(),lt.device=getDevice({userAgent:rt.userAgent}),lt.browser=getBrowser(),lt.eventsListeners={},lt.eventsAnyListeners=[],lt.modules=[...lt.__modules__],rt.modules&&Array.isArray(rt.modules)&<.modules.push(...rt.modules);const ut={};lt.modules.forEach(dt=>{dt({params:rt,swiper:lt,extendParams:moduleExtendParams(rt,ut),on:lt.on.bind(lt),once:lt.once.bind(lt),off:lt.off.bind(lt),emit:lt.emit.bind(lt)})});const ct=extend$1({},defaults$3,ut);return lt.params=extend$1({},ct,extendedDefaults,rt),lt.originalParams=extend$1({},lt.params),lt.passedParams=extend$1({},rt),lt.params&<.params.on&&Object.keys(lt.params.on).forEach(dt=>{lt.on(dt,lt.params.on[dt])}),lt.params&<.params.onAny&<.onAny(lt.params.onAny),Object.assign(lt,{enabled:lt.params.enabled,el:et,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return lt.params.direction==="horizontal"},isVertical(){return lt.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:lt.params.allowSlideNext,allowSlidePrev:lt.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:lt.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:lt.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),lt.emit("_swiper"),lt.params.init&<.init(),lt}getSlideIndex(et){const{slidesEl:rt,params:st}=this,nt=elementChildren(rt,`.${st.slideClass}, swiper-slide`),ot=elementIndex(nt[0]);return elementIndex(et)-ot}getSlideIndexByData(et){return this.getSlideIndex(this.slides.filter(rt=>rt.getAttribute("data-swiper-slide-index")*1===et)[0])}recalcSlides(){const et=this,{slidesEl:rt,params:st}=et;et.slides=elementChildren(rt,`.${st.slideClass}, swiper-slide`)}enable(){const et=this;et.enabled||(et.enabled=!0,et.params.grabCursor&&et.setGrabCursor(),et.emit("enable"))}disable(){const et=this;et.enabled&&(et.enabled=!1,et.params.grabCursor&&et.unsetGrabCursor(),et.emit("disable"))}setProgress(et,rt){const st=this;et=Math.min(Math.max(et,0),1);const nt=st.minTranslate(),at=(st.maxTranslate()-nt)*et+nt;st.translateTo(at,typeof rt>"u"?0:rt),st.updateActiveIndex(),st.updateSlidesClasses()}emitContainerClasses(){const et=this;if(!et.params._emitClasses||!et.el)return;const rt=et.el.className.split(" ").filter(st=>st.indexOf("swiper")===0||st.indexOf(et.params.containerModifierClass)===0);et.emit("_containerClasses",rt.join(" "))}getSlideClasses(et){const rt=this;return rt.destroyed?"":et.className.split(" ").filter(st=>st.indexOf("swiper-slide")===0||st.indexOf(rt.params.slideClass)===0).join(" ")}emitSlidesClasses(){const et=this;if(!et.params._emitClasses||!et.el)return;const rt=[];et.slides.forEach(st=>{const nt=et.getSlideClasses(st);rt.push({slideEl:st,classNames:nt}),et.emit("_slideClass",st,nt)}),et.emit("_slideClasses",rt)}slidesPerViewDynamic(et,rt){et===void 0&&(et="current"),rt===void 0&&(rt=!1);const st=this,{params:nt,slides:ot,slidesGrid:at,slidesSizesGrid:lt,size:ut,activeIndex:ct}=st;let dt=1;if(typeof nt.slidesPerView=="number")return nt.slidesPerView;if(nt.centeredSlides){let ht=ot[ct]?ot[ct].swiperSlideSize:0,ft;for(let xt=ct+1;xt<ot.length;xt+=1)ot[xt]&&!ft&&(ht+=ot[xt].swiperSlideSize,dt+=1,ht>ut&&(ft=!0));for(let xt=ct-1;xt>=0;xt-=1)ot[xt]&&!ft&&(ht+=ot[xt].swiperSlideSize,dt+=1,ht>ut&&(ft=!0))}else if(et==="current")for(let ht=ct+1;ht<ot.length;ht+=1)(rt?at[ht]+lt[ht]-at[ct]<ut:at[ht]-at[ct]<ut)&&(dt+=1);else for(let ht=ct-1;ht>=0;ht-=1)at[ct]-at[ht]<ut&&(dt+=1);return dt}update(){const et=this;if(!et||et.destroyed)return;const{snapGrid:rt,params:st}=et;st.breakpoints&&et.setBreakpoint(),[...et.el.querySelectorAll('[loading="lazy"]')].forEach(at=>{at.complete&&processLazyPreloader(et,at)}),et.updateSize(),et.updateSlides(),et.updateProgress(),et.updateSlidesClasses();function nt(){const at=et.rtlTranslate?et.translate*-1:et.translate,lt=Math.min(Math.max(at,et.maxTranslate()),et.minTranslate());et.setTranslate(lt),et.updateActiveIndex(),et.updateSlidesClasses()}let ot;if(st.freeMode&&st.freeMode.enabled&&!st.cssMode)nt(),st.autoHeight&&et.updateAutoHeight();else{if((st.slidesPerView==="auto"||st.slidesPerView>1)&&et.isEnd&&!st.centeredSlides){const at=et.virtual&&st.virtual.enabled?et.virtual.slides:et.slides;ot=et.slideTo(at.length-1,0,!1,!0)}else ot=et.slideTo(et.activeIndex,0,!1,!0);ot||nt()}st.watchOverflow&&rt!==et.snapGrid&&et.checkOverflow(),et.emit("update")}changeDirection(et,rt){rt===void 0&&(rt=!0);const st=this,nt=st.params.direction;return et||(et=nt==="horizontal"?"vertical":"horizontal"),et===nt||et!=="horizontal"&&et!=="vertical"||(st.el.classList.remove(`${st.params.containerModifierClass}${nt}`),st.el.classList.add(`${st.params.containerModifierClass}${et}`),st.emitContainerClasses(),st.params.direction=et,st.slides.forEach(ot=>{et==="vertical"?ot.style.width="":ot.style.height=""}),st.emit("changeDirection"),rt&&st.update()),st}changeLanguageDirection(et){const rt=this;rt.rtl&&et==="rtl"||!rt.rtl&&et==="ltr"||(rt.rtl=et==="rtl",rt.rtlTranslate=rt.params.direction==="horizontal"&&rt.rtl,rt.rtl?(rt.el.classList.add(`${rt.params.containerModifierClass}rtl`),rt.el.dir="rtl"):(rt.el.classList.remove(`${rt.params.containerModifierClass}rtl`),rt.el.dir="ltr"),rt.update())}mount(et){const rt=this;if(rt.mounted)return!0;let st=et||rt.params.el;if(typeof st=="string"&&(st=document.querySelector(st)),!st)return!1;st.swiper=rt,st.parentNode&&st.parentNode.host&&st.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(rt.isElement=!0);const nt=()=>`.${(rt.params.wrapperClass||"").trim().split(" ").join(".")}`;let at=st&&st.shadowRoot&&st.shadowRoot.querySelector?st.shadowRoot.querySelector(nt()):elementChildren(st,nt())[0];return!at&&rt.params.createElements&&(at=createElement("div",rt.params.wrapperClass),st.append(at),elementChildren(st,`.${rt.params.slideClass}`).forEach(lt=>{at.append(lt)})),Object.assign(rt,{el:st,wrapperEl:at,slidesEl:rt.isElement&&!st.parentNode.host.slideSlots?st.parentNode.host:at,hostEl:rt.isElement?st.parentNode.host:st,mounted:!0,rtl:st.dir.toLowerCase()==="rtl"||elementStyle(st,"direction")==="rtl",rtlTranslate:rt.params.direction==="horizontal"&&(st.dir.toLowerCase()==="rtl"||elementStyle(st,"direction")==="rtl"),wrongRTL:elementStyle(at,"display")==="-webkit-box"}),!0}init(et){const rt=this;if(rt.initialized||rt.mount(et)===!1)return rt;rt.emit("beforeInit"),rt.params.breakpoints&&rt.setBreakpoint(),rt.addClasses(),rt.updateSize(),rt.updateSlides(),rt.params.watchOverflow&&rt.checkOverflow(),rt.params.grabCursor&&rt.enabled&&rt.setGrabCursor(),rt.params.loop&&rt.virtual&&rt.params.virtual.enabled?rt.slideTo(rt.params.initialSlide+rt.virtual.slidesBefore,0,rt.params.runCallbacksOnInit,!1,!0):rt.slideTo(rt.params.initialSlide,0,rt.params.runCallbacksOnInit,!1,!0),rt.params.loop&&rt.loopCreate(),rt.attachEvents();const nt=[...rt.el.querySelectorAll('[loading="lazy"]')];return rt.isElement&&nt.push(...rt.hostEl.querySelectorAll('[loading="lazy"]')),nt.forEach(ot=>{ot.complete?processLazyPreloader(rt,ot):ot.addEventListener("load",at=>{processLazyPreloader(rt,at.target)})}),preload(rt),rt.initialized=!0,preload(rt),rt.emit("init"),rt.emit("afterInit"),rt}destroy(et,rt){et===void 0&&(et=!0),rt===void 0&&(rt=!0);const st=this,{params:nt,el:ot,wrapperEl:at,slides:lt}=st;return typeof st.params>"u"||st.destroyed||(st.emit("beforeDestroy"),st.initialized=!1,st.detachEvents(),nt.loop&&st.loopDestroy(),rt&&(st.removeClasses(),ot.removeAttribute("style"),at.removeAttribute("style"),lt&<.length&<.forEach(ut=>{ut.classList.remove(nt.slideVisibleClass,nt.slideActiveClass,nt.slideNextClass,nt.slidePrevClass),ut.removeAttribute("style"),ut.removeAttribute("data-swiper-slide-index")})),st.emit("destroy"),Object.keys(st.eventsListeners).forEach(ut=>{st.off(ut)}),et!==!1&&(st.el.swiper=null,deleteProps(st)),st.destroyed=!0),null}static extendDefaults(et){extend$1(extendedDefaults,et)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults$3}static installModule(et){Ao.prototype.__modules__||(Ao.prototype.__modules__=[]);const rt=Ao.prototype.__modules__;typeof et=="function"&&rt.indexOf(et)<0&&rt.push(et)}static use(et){return Array.isArray(et)?(et.forEach(rt=>Ao.installModule(rt)),Ao):(Ao.installModule(et),Ao)}};Object.keys(prototypes).forEach(tt=>{Object.keys(prototypes[tt]).forEach(et=>{Swiper$1.prototype[et]=prototypes[tt][et]})});Swiper$1.use([Resize,Observer]);const paramsList=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function isObject$1(tt){return typeof tt=="object"&&tt!==null&&tt.constructor&&Object.prototype.toString.call(tt).slice(8,-1)==="Object"&&!tt.__swiper__}function extend(tt,et){const rt=["__proto__","constructor","prototype"];Object.keys(et).filter(st=>rt.indexOf(st)<0).forEach(st=>{typeof tt[st]>"u"?tt[st]=et[st]:isObject$1(et[st])&&isObject$1(tt[st])&&Object.keys(et[st]).length>0?et[st].__swiper__?tt[st]=et[st]:extend(tt[st],et[st]):tt[st]=et[st]})}function needsNavigation(tt){return tt===void 0&&(tt={}),tt.navigation&&typeof tt.navigation.nextEl>"u"&&typeof tt.navigation.prevEl>"u"}function needsPagination(tt){return tt===void 0&&(tt={}),tt.pagination&&typeof tt.pagination.el>"u"}function needsScrollbar(tt){return tt===void 0&&(tt={}),tt.scrollbar&&typeof tt.scrollbar.el>"u"}function uniqueClasses(tt){tt===void 0&&(tt="");const et=tt.split(" ").map(st=>st.trim()).filter(st=>!!st),rt=[];return et.forEach(st=>{rt.indexOf(st)<0&&rt.push(st)}),rt.join(" ")}function wrapperClass(tt){return tt===void 0&&(tt=""),tt?tt.includes("swiper-wrapper")?tt:`swiper-wrapper ${tt}`:"swiper-wrapper"}function updateSwiper(tt){let{swiper:et,slides:rt,passedParams:st,changedParams:nt,nextEl:ot,prevEl:at,scrollbarEl:lt,paginationEl:ut}=tt;const ct=nt.filter(Ot=>Ot!=="children"&&Ot!=="direction"&&Ot!=="wrapperClass"),{params:dt,pagination:ht,navigation:ft,scrollbar:xt,virtual:yt,thumbs:vt}=et;let Et,bt,wt,St,Rt,Ct,jt,It;nt.includes("thumbs")&&st.thumbs&&st.thumbs.swiper&&dt.thumbs&&!dt.thumbs.swiper&&(Et=!0),nt.includes("controller")&&st.controller&&st.controller.control&&dt.controller&&!dt.controller.control&&(bt=!0),nt.includes("pagination")&&st.pagination&&(st.pagination.el||ut)&&(dt.pagination||dt.pagination===!1)&&ht&&!ht.el&&(wt=!0),nt.includes("scrollbar")&&st.scrollbar&&(st.scrollbar.el||lt)&&(dt.scrollbar||dt.scrollbar===!1)&&xt&&!xt.el&&(St=!0),nt.includes("navigation")&&st.navigation&&(st.navigation.prevEl||at)&&(st.navigation.nextEl||ot)&&(dt.navigation||dt.navigation===!1)&&ft&&!ft.prevEl&&!ft.nextEl&&(Rt=!0);const Pt=Ot=>{et[Ot]&&(et[Ot].destroy(),Ot==="navigation"?(et.isElement&&(et[Ot].prevEl.remove(),et[Ot].nextEl.remove()),dt[Ot].prevEl=void 0,dt[Ot].nextEl=void 0,et[Ot].prevEl=void 0,et[Ot].nextEl=void 0):(et.isElement&&et[Ot].el.remove(),dt[Ot].el=void 0,et[Ot].el=void 0))};nt.includes("loop")&&et.isElement&&(dt.loop&&!st.loop?Ct=!0:!dt.loop&&st.loop?jt=!0:It=!0),ct.forEach(Ot=>{if(isObject$1(dt[Ot])&&isObject$1(st[Ot]))extend(dt[Ot],st[Ot]),(Ot==="navigation"||Ot==="pagination"||Ot==="scrollbar")&&"enabled"in st[Ot]&&!st[Ot].enabled&&Pt(Ot);else{const Ut=st[Ot];(Ut===!0||Ut===!1)&&(Ot==="navigation"||Ot==="pagination"||Ot==="scrollbar")?Ut===!1&&Pt(Ot):dt[Ot]=st[Ot]}}),ct.includes("controller")&&!bt&&et.controller&&et.controller.control&&dt.controller&&dt.controller.control&&(et.controller.control=dt.controller.control),nt.includes("children")&&rt&&yt&&dt.virtual.enabled&&(yt.slides=rt,yt.update(!0)),nt.includes("children")&&rt&&dt.loop&&(It=!0),Et&&vt.init()&&vt.update(!0),bt&&(et.controller.control=dt.controller.control),wt&&(et.isElement&&(!ut||typeof ut=="string")&&(ut=document.createElement("div"),ut.classList.add("swiper-pagination"),ut.part.add("pagination"),et.el.appendChild(ut)),ut&&(dt.pagination.el=ut),ht.init(),ht.render(),ht.update()),St&&(et.isElement&&(!lt||typeof lt=="string")&&(lt=document.createElement("div"),lt.classList.add("swiper-scrollbar"),lt.part.add("scrollbar"),et.el.appendChild(lt)),lt&&(dt.scrollbar.el=lt),xt.init(),xt.updateSize(),xt.setTranslate()),Rt&&(et.isElement&&((!ot||typeof ot=="string")&&(ot=document.createElement("div"),ot.classList.add("swiper-button-next"),ot.innerHTML=et.hostEl.constructor.nextButtonSvg,ot.part.add("button-next"),et.el.appendChild(ot)),(!at||typeof at=="string")&&(at=document.createElement("div"),at.classList.add("swiper-button-prev"),at.innerHTML=et.hostEl.constructor.prevButtonSvg,at.part.add("button-prev"),et.el.appendChild(at))),ot&&(dt.navigation.nextEl=ot),at&&(dt.navigation.prevEl=at),ft.init(),ft.update()),nt.includes("allowSlideNext")&&(et.allowSlideNext=st.allowSlideNext),nt.includes("allowSlidePrev")&&(et.allowSlidePrev=st.allowSlidePrev),nt.includes("direction")&&et.changeDirection(st.direction,!1),(Ct||It)&&et.loopDestroy(),(jt||It)&&et.loopCreate(),et.update()}function getParams(tt,et){tt===void 0&&(tt={}),et===void 0&&(et=!0);const rt={on:{}},st={},nt={};extend(rt,defaults$3),rt._emitClasses=!0,rt.init=!1;const ot={},at=paramsList.map(ut=>ut.replace(/_/,"")),lt=Object.assign({},tt);return Object.keys(lt).forEach(ut=>{typeof tt[ut]>"u"||(at.indexOf(ut)>=0?isObject$1(tt[ut])?(rt[ut]={},nt[ut]={},extend(rt[ut],tt[ut]),extend(nt[ut],tt[ut])):(rt[ut]=tt[ut],nt[ut]=tt[ut]):ut.search(/on[A-Z]/)===0&&typeof tt[ut]=="function"?et?st[`${ut[2].toLowerCase()}${ut.substr(3)}`]=tt[ut]:rt.on[`${ut[2].toLowerCase()}${ut.substr(3)}`]=tt[ut]:ot[ut]=tt[ut])}),["navigation","pagination","scrollbar"].forEach(ut=>{rt[ut]===!0&&(rt[ut]={}),rt[ut]===!1&&delete rt[ut]}),{params:rt,passedParams:nt,rest:ot,events:st}}function mountSwiper(tt,et){let{el:rt,nextEl:st,prevEl:nt,paginationEl:ot,scrollbarEl:at,swiper:lt}=tt;needsNavigation(et)&&st&&nt&&(lt.params.navigation.nextEl=st,lt.originalParams.navigation.nextEl=st,lt.params.navigation.prevEl=nt,lt.originalParams.navigation.prevEl=nt),needsPagination(et)&&ot&&(lt.params.pagination.el=ot,lt.originalParams.pagination.el=ot),needsScrollbar(et)&&at&&(lt.params.scrollbar.el=at,lt.originalParams.scrollbar.el=at),lt.init(rt)}function getChangedParams(tt,et,rt,st,nt){const ot=[];if(!et)return ot;const at=ut=>{ot.indexOf(ut)<0&&ot.push(ut)};if(rt&&st){const ut=st.map(nt),ct=rt.map(nt);ut.join("")!==ct.join("")&&at("children"),st.length!==rt.length&&at("children")}return paramsList.filter(ut=>ut[0]==="_").map(ut=>ut.replace(/_/,"")).forEach(ut=>{if(ut in tt&&ut in et)if(isObject$1(tt[ut])&&isObject$1(et[ut])){const ct=Object.keys(tt[ut]),dt=Object.keys(et[ut]);ct.length!==dt.length?at(ut):(ct.forEach(ht=>{tt[ut][ht]!==et[ut][ht]&&at(ut)}),dt.forEach(ht=>{tt[ut][ht]!==et[ut][ht]&&at(ut)}))}else tt[ut]!==et[ut]&&at(ut)}),ot}const updateOnVirtualData=tt=>{!tt||tt.destroyed||!tt.params.virtual||tt.params.virtual&&!tt.params.virtual.enabled||(tt.updateSlides(),tt.updateProgress(),tt.updateSlidesClasses(),tt.parallax&&tt.params.parallax&&tt.params.parallax.enabled&&tt.parallax.setTranslate())};function _extends(){return _extends=Object.assign?Object.assign.bind():function(tt){for(var et=1;et<arguments.length;et++){var rt=arguments[et];for(var st in rt)Object.prototype.hasOwnProperty.call(rt,st)&&(tt[st]=rt[st])}return tt},_extends.apply(this,arguments)}function isChildSwiperSlide(tt){return tt.type&&tt.type.displayName&&tt.type.displayName.includes("SwiperSlide")}function processChildren(tt){const et=[];return React$4.Children.toArray(tt).forEach(rt=>{isChildSwiperSlide(rt)?et.push(rt):rt.props&&rt.props.children&&processChildren(rt.props.children).forEach(st=>et.push(st))}),et}function getChildren(tt){const et=[],rt={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return React$4.Children.toArray(tt).forEach(st=>{if(isChildSwiperSlide(st))et.push(st);else if(st.props&&st.props.slot&&rt[st.props.slot])rt[st.props.slot].push(st);else if(st.props&&st.props.children){const nt=processChildren(st.props.children);nt.length>0?nt.forEach(ot=>et.push(ot)):rt["container-end"].push(st)}else rt["container-end"].push(st)}),{slides:et,slots:rt}}function renderVirtual(tt,et,rt){if(!rt)return null;const st=dt=>{let ht=dt;return dt<0?ht=et.length+dt:ht>=et.length&&(ht=ht-et.length),ht},nt=tt.isHorizontal()?{[tt.rtlTranslate?"right":"left"]:`${rt.offset}px`}:{top:`${rt.offset}px`},{from:ot,to:at}=rt,lt=tt.params.loop?-et.length:0,ut=tt.params.loop?et.length*2:et.length,ct=[];for(let dt=lt;dt<ut;dt+=1)dt>=ot&&dt<=at&&ct.push(et[st(dt)]);return ct.map((dt,ht)=>React$4.cloneElement(dt,{swiper:tt,style:nt,key:`slide-${ht}`}))}function useIsomorphicLayoutEffect$1(tt,et){return typeof window>"u"?reactExports.useEffect(tt,et):reactExports.useLayoutEffect(tt,et)}const SwiperSlideContext=reactExports.createContext(null),SwiperContext=reactExports.createContext(null),Swiper=reactExports.forwardRef(function(tt,et){let{className:rt,tag:st="div",wrapperTag:nt="div",children:ot,onSwiper:at,...lt}=tt===void 0?{}:tt,ut=!1;const[ct,dt]=reactExports.useState("swiper"),[ht,ft]=reactExports.useState(null),[xt,yt]=reactExports.useState(!1),vt=reactExports.useRef(!1),Et=reactExports.useRef(null),bt=reactExports.useRef(null),wt=reactExports.useRef(null),St=reactExports.useRef(null),Rt=reactExports.useRef(null),Ct=reactExports.useRef(null),jt=reactExports.useRef(null),It=reactExports.useRef(null),{params:Pt,passedParams:Ot,rest:Ut,events:Nt}=getParams(lt),{slides:Ht,slots:Lt}=getChildren(ot),kt=()=>{yt(!xt)};Object.assign(Pt.on,{_containerClasses(Vt,Bt){dt(Bt)}});const $t=()=>{Object.assign(Pt.on,Nt),ut=!0;const Vt={...Pt};if(delete Vt.wrapperClass,bt.current=new Swiper$1(Vt),bt.current.virtual&&bt.current.params.virtual.enabled){bt.current.virtual.slides=Ht;const Bt={cache:!1,slides:Ht,renderExternal:ft,renderExternalUpdate:!1};extend(bt.current.params.virtual,Bt),extend(bt.current.originalParams.virtual,Bt)}};Et.current||$t(),bt.current&&bt.current.on("_beforeBreakpoint",kt);const Ft=()=>{ut||!Nt||!bt.current||Object.keys(Nt).forEach(Vt=>{bt.current.on(Vt,Nt[Vt])})},Gt=()=>{!Nt||!bt.current||Object.keys(Nt).forEach(Vt=>{bt.current.off(Vt,Nt[Vt])})};reactExports.useEffect(()=>()=>{bt.current&&bt.current.off("_beforeBreakpoint",kt)}),reactExports.useEffect(()=>{!vt.current&&bt.current&&(bt.current.emitSlidesClasses(),vt.current=!0)}),useIsomorphicLayoutEffect$1(()=>{if(et&&(et.current=Et.current),!!Et.current)return bt.current.destroyed&&$t(),mountSwiper({el:Et.current,nextEl:Rt.current,prevEl:Ct.current,paginationEl:jt.current,scrollbarEl:It.current,swiper:bt.current},Pt),at&&at(bt.current),()=>{bt.current&&!bt.current.destroyed&&bt.current.destroy(!0,!1)}},[]),useIsomorphicLayoutEffect$1(()=>{Ft();const Vt=getChangedParams(Ot,wt.current,Ht,St.current,Bt=>Bt.key);return wt.current=Ot,St.current=Ht,Vt.length&&bt.current&&!bt.current.destroyed&&updateSwiper({swiper:bt.current,slides:Ht,passedParams:Ot,changedParams:Vt,nextEl:Rt.current,prevEl:Ct.current,scrollbarEl:It.current,paginationEl:jt.current}),()=>{Gt()}}),useIsomorphicLayoutEffect$1(()=>{updateOnVirtualData(bt.current)},[ht]);function Mt(){return Pt.virtual?renderVirtual(bt.current,Ht,ht):Ht.map((Vt,Bt)=>React$4.cloneElement(Vt,{swiper:bt.current,swiperSlideIndex:Bt}))}return React$4.createElement(st,_extends({ref:Et,className:uniqueClasses(`${ct}${rt?` ${rt}`:""}`)},Ut),React$4.createElement(SwiperContext.Provider,{value:bt.current},Lt["container-start"],React$4.createElement(nt,{className:wrapperClass(Pt.wrapperClass)},Lt["wrapper-start"],Mt(),Lt["wrapper-end"]),needsNavigation(Pt)&&React$4.createElement(React$4.Fragment,null,React$4.createElement("div",{ref:Ct,className:"swiper-button-prev"}),React$4.createElement("div",{ref:Rt,className:"swiper-button-next"})),needsScrollbar(Pt)&&React$4.createElement("div",{ref:It,className:"swiper-scrollbar"}),needsPagination(Pt)&&React$4.createElement("div",{ref:jt,className:"swiper-pagination"}),Lt["container-end"]))});Swiper.displayName="Swiper";const SwiperSlide=reactExports.forwardRef(function(tt,et){let{tag:rt="div",children:st,className:nt="",swiper:ot,zoom:at,lazy:lt,virtualIndex:ut,swiperSlideIndex:ct,...dt}=tt===void 0?{}:tt;const ht=reactExports.useRef(null),[ft,xt]=reactExports.useState("swiper-slide"),[yt,vt]=reactExports.useState(!1);function Et(Rt,Ct,jt){Ct===ht.current&&xt(jt)}useIsomorphicLayoutEffect$1(()=>{if(typeof ct<"u"&&(ht.current.swiperSlideIndex=ct),et&&(et.current=ht.current),!(!ht.current||!ot)){if(ot.destroyed){ft!=="swiper-slide"&&xt("swiper-slide");return}return ot.on("_slideClass",Et),()=>{ot&&ot.off("_slideClass",Et)}}}),useIsomorphicLayoutEffect$1(()=>{ot&&ht.current&&!ot.destroyed&&xt(ot.getSlideClasses(ht.current))},[ot]);const bt={isActive:ft.indexOf("swiper-slide-active")>=0,isVisible:ft.indexOf("swiper-slide-visible")>=0,isPrev:ft.indexOf("swiper-slide-prev")>=0,isNext:ft.indexOf("swiper-slide-next")>=0},wt=()=>typeof st=="function"?st(bt):st,St=()=>{vt(!0)};return React$4.createElement(rt,_extends({ref:ht,className:uniqueClasses(`${ft}${nt?` ${nt}`:""}`),"data-swiper-slide-index":ut,onLoad:St},dt),at&&React$4.createElement(SwiperSlideContext.Provider,{value:bt},React$4.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof at=="number"?at:void 0},wt(),lt&&!yt&&React$4.createElement("div",{className:"swiper-lazy-preloader"}))),!at&&React$4.createElement(SwiperSlideContext.Provider,{value:bt},wt(),lt&&!yt&&React$4.createElement("div",{className:"swiper-lazy-preloader"})))});SwiperSlide.displayName="SwiperSlide";const getOnboardingTrash=async tt=>await odeServices.conf().getPreference(tt),saveOnboardingTrash=async tt=>await odeServices.conf().savePreference(tt,JSON.stringify({key:!1})),useOnboardingModal=tt=>{const[et,rt]=reactExports.useState(!1),[st,nt]=reactExports.useState(!1);return reactExports.useEffect(()=>{(async()=>{const ot=await getOnboardingTrash(tt);if(ot){const{key:at}=ot;at===!0&&rt(!0),nt(at);return}nt(!0),rt(!0)})()},[tt]),{isOpen:et,setIsOpen:rt,isOnboarding:st,handleSavePreference:async()=>{await saveOnboardingTrash(tt),rt(!1),nt(!1)}}},OnboardingModal$2=reactExports.forwardRef(({id:tt,items:et,modalOptions:rt={},isOnboardingChange:st},nt)=>{var ot;const[at,lt]=reactExports.useState(),[ut,ct]=reactExports.useState(0),{isOpen:dt,isOnboarding:ht,setIsOpen:ft,handleSavePreference:xt}=useOnboardingModal(tt);reactExports.useImperativeHandle(nt,()=>({setIsOpen:ft,handleSavePreference:xt})),reactExports.useEffect(()=>{st&&st(ht)},[ht,st]),reactExports.useEffect(()=>{const jt=document.createElement("link");return jt.href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css",jt.rel="stylesheet",jt.type="text/css",document.head.appendChild(jt),()=>{document.head.removeChild(jt)}},[]);const{t:yt}=useTranslation(),{title:vt,prevText:Et,closeText:bt,nextText:wt}=rt,St=(at==null?void 0:at.activeIndex)!=null&&(ot=et[at==null?void 0:at.activeIndex])!=null&&ot.title?et[at.activeIndex].title:vt,Rt=()=>{xt(),ct(0)},Ct=()=>{ft(!1),ct(0)};return reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal,{id:"onboarding-modal",size:"md",isOpen:dt,focusId:"nextButtonId",onModalClose:Ct,children:[jsxRuntimeExports.jsx(Modal.Header,{onModalClose:Ct,centered:!0,children:yt(St||"explorer.modal.onboarding.trash.title")}),jsxRuntimeExports.jsx(Modal.Body,{children:jsxRuntimeExports.jsx(Swiper,{modules:[Pagination],onSwiper:jt=>{lt(jt)},onSlideChange:jt=>{ct(jt.progress)},pagination:{clickable:!0},children:et.map((jt,It)=>jsxRuntimeExports.jsxs(SwiperSlide,{children:[jsxRuntimeExports.jsx(Image$1,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:jt.src,alt:yt(jt.alt)}),jsxRuntimeExports.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:yt(jt.text)}})]},It))})}),jsxRuntimeExports.jsxs(Modal.Footer,{children:[jsxRuntimeExports.jsx(Button,{type:"button",color:"tertiary",variant:"ghost",onClick:Ct,children:yt("explorer.modal.onboarding.trash.later")}),ut>0&&jsxRuntimeExports.jsx(Button,{type:"button",color:"primary",variant:"outline",onClick:()=>at.slidePrev(),children:yt(Et||"explorer.modal.onboarding.trash.prev")}),ut<1&&jsxRuntimeExports.jsx(Button,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>at.slideNext(),children:yt(wt||"explorer.modal.onboarding.trash.next")}),ut===1&&jsxRuntimeExports.jsx(Button,{type:"button",color:"primary",variant:"filled",onClick:()=>{ht?Rt():Ct()},children:yt(bt||"explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")||document.body)});var isCheckBoxInput=tt=>tt.type==="checkbox",isDateObject=tt=>tt instanceof Date,isNullOrUndefined=tt=>tt==null;const isObjectType=tt=>typeof tt=="object";var isObject=tt=>!isNullOrUndefined(tt)&&!Array.isArray(tt)&&isObjectType(tt)&&!isDateObject(tt),getEventValue=tt=>isObject(tt)&&tt.target?isCheckBoxInput(tt.target)?tt.target.checked:tt.target.value:tt,getNodeParentName=tt=>tt.substring(0,tt.search(/\.\d+(\.|$)/))||tt,isNameInFieldArray=(tt,et)=>tt.has(getNodeParentName(et)),isPlainObject=tt=>{const et=tt.constructor&&tt.constructor.prototype;return isObject(et)&&et.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(tt){let et;const rt=Array.isArray(tt),st=typeof FileList<"u"?tt instanceof FileList:!1;if(tt instanceof Date)et=new Date(tt);else if(!(isWeb&&(tt instanceof Blob||st))&&(rt||isObject(tt)))if(et=rt?[]:Object.create(Object.getPrototypeOf(tt)),!rt&&!isPlainObject(tt))et=tt;else for(const nt in tt)tt.hasOwnProperty(nt)&&(et[nt]=cloneObject(tt[nt]));else return tt;return et}var isKey=tt=>/^\w*$/.test(tt),isUndefined=tt=>tt===void 0,compact$1=tt=>Array.isArray(tt)?tt.filter(Boolean):[],stringToPath$1=tt=>compact$1(tt.replace(/["|']|\]/g,"").split(/\.|\[/)),get$1=(tt,et,rt)=>{if(!et||!isObject(tt))return rt;const st=(isKey(et)?[et]:stringToPath$1(et)).reduce((nt,ot)=>isNullOrUndefined(nt)?nt:nt[ot],tt);return isUndefined(st)||st===tt?isUndefined(tt[et])?rt:tt[et]:st},isBoolean$1=tt=>typeof tt=="boolean",set=(tt,et,rt)=>{let st=-1;const nt=isKey(et)?[et]:stringToPath$1(et),ot=nt.length,at=ot-1;for(;++st<ot;){const lt=nt[st];let ut=rt;if(st!==at){const ct=tt[lt];ut=isObject(ct)||Array.isArray(ct)?ct:isNaN(+nt[st+1])?{}:[]}if(lt==="__proto__"||lt==="constructor"||lt==="prototype")return;tt[lt]=ut,tt=tt[lt]}};const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React$4.createContext(null);HookFormContext.displayName="HookFormContext";const useFormContext=()=>React$4.useContext(HookFormContext);var getProxyFormState=(tt,et,rt,st=!0)=>{const nt={defaultValues:et._defaultValues};for(const ot in tt)Object.defineProperty(nt,ot,{get:()=>{const at=ot;return et._proxyFormState[at]!==VALIDATION_MODE.all&&(et._proxyFormState[at]=!st||VALIDATION_MODE.all),rt&&(rt[at]=!0),tt[at]}});return nt};const useIsomorphicLayoutEffect=typeof window<"u"?React$4.useLayoutEffect:React$4.useEffect;function useFormState(tt){const et=useFormContext(),{control:rt=et.control,disabled:st,name:nt,exact:ot}=tt||{},[at,lt]=React$4.useState(rt._formState),ut=React$4.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return useIsomorphicLayoutEffect(()=>rt._subscribe({name:nt,formState:ut.current,exact:ot,callback:ct=>{!st&<({...rt._formState,...ct})}}),[nt,st,ot]),React$4.useEffect(()=>{ut.current.isValid&&rt._setValid(!0)},[rt]),React$4.useMemo(()=>getProxyFormState(at,rt,ut.current,!1),[at,rt])}var isString$1=tt=>typeof tt=="string",generateWatchOutput=(tt,et,rt,st,nt)=>isString$1(tt)?(st&&et.watch.add(tt),get$1(rt,tt,nt)):Array.isArray(tt)?tt.map(ot=>(st&&et.watch.add(ot),get$1(rt,ot))):(st&&(et.watchAll=!0),rt),isPrimitive=tt=>isNullOrUndefined(tt)||!isObjectType(tt);function deepEqual(tt,et,rt=new WeakSet){if(isPrimitive(tt)||isPrimitive(et))return Object.is(tt,et);if(isDateObject(tt)&&isDateObject(et))return tt.getTime()===et.getTime();const st=Object.keys(tt),nt=Object.keys(et);if(st.length!==nt.length)return!1;if(rt.has(tt)||rt.has(et))return!0;rt.add(tt),rt.add(et);for(const ot of st){const at=tt[ot];if(!nt.includes(ot))return!1;if(ot!=="ref"){const lt=et[ot];if(isDateObject(at)&&isDateObject(lt)||isObject(at)&&isObject(lt)||Array.isArray(at)&&Array.isArray(lt)?!deepEqual(at,lt,rt):!Object.is(at,lt))return!1}}return!0}function useWatch(tt){const et=useFormContext(),{control:rt=et.control,name:st,defaultValue:nt,disabled:ot,exact:at,compute:lt}=tt||{},ut=React$4.useRef(nt),ct=React$4.useRef(lt),dt=React$4.useRef(void 0),ht=React$4.useRef(rt),ft=React$4.useRef(st);ct.current=lt;const[xt,yt]=React$4.useState(()=>{const Rt=rt._getWatch(st,ut.current);return ct.current?ct.current(Rt):Rt}),vt=React$4.useCallback(Rt=>{const Ct=generateWatchOutput(st,rt._names,Rt||rt._formValues,!1,ut.current);return ct.current?ct.current(Ct):Ct},[rt._formValues,rt._names,st]),Et=React$4.useCallback(Rt=>{if(!ot){const Ct=generateWatchOutput(st,rt._names,Rt||rt._formValues,!1,ut.current);if(ct.current){const jt=ct.current(Ct);deepEqual(jt,dt.current)||(yt(jt),dt.current=jt)}else yt(Ct)}},[rt._formValues,rt._names,ot,st]);useIsomorphicLayoutEffect(()=>((ht.current!==rt||!deepEqual(ft.current,st))&&(ht.current=rt,ft.current=st,Et()),rt._subscribe({name:st,formState:{values:!0},exact:at,callback:Rt=>{Et(Rt.values)}})),[rt,at,st,Et]),React$4.useEffect(()=>rt._removeUnmounted());const bt=ht.current!==rt,wt=ft.current,St=React$4.useMemo(()=>{if(ot)return null;const Rt=!bt&&!deepEqual(wt,st);return bt||Rt?vt():null},[ot,bt,st,wt,vt]);return St!==null?St:xt}function useController(tt){const et=useFormContext(),{name:rt,disabled:st,control:nt=et.control,shouldUnregister:ot,defaultValue:at}=tt,lt=isNameInFieldArray(nt._names.array,rt),ut=React$4.useMemo(()=>get$1(nt._formValues,rt,get$1(nt._defaultValues,rt,at)),[nt,rt,at]),ct=useWatch({control:nt,name:rt,defaultValue:ut,exact:!0}),dt=useFormState({control:nt,name:rt,exact:!0}),ht=React$4.useRef(tt),ft=React$4.useRef(void 0),xt=React$4.useRef(nt.register(rt,{...tt.rules,value:ct,...isBoolean$1(tt.disabled)?{disabled:tt.disabled}:{}}));ht.current=tt;const yt=React$4.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get$1(dt.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get$1(dt.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get$1(dt.touchedFields,rt)},isValidating:{enumerable:!0,get:()=>!!get$1(dt.validatingFields,rt)},error:{enumerable:!0,get:()=>get$1(dt.errors,rt)}}),[dt,rt]),vt=React$4.useCallback(St=>xt.current.onChange({target:{value:getEventValue(St),name:rt},type:EVENTS.CHANGE}),[rt]),Et=React$4.useCallback(()=>xt.current.onBlur({target:{value:get$1(nt._formValues,rt),name:rt},type:EVENTS.BLUR}),[rt,nt._formValues]),bt=React$4.useCallback(St=>{const Rt=get$1(nt._fields,rt);Rt&&St&&(Rt._f.ref={focus:()=>St.focus&&St.focus(),select:()=>St.select&&St.select(),setCustomValidity:Ct=>St.setCustomValidity(Ct),reportValidity:()=>St.reportValidity()})},[nt._fields,rt]),wt=React$4.useMemo(()=>({name:rt,value:ct,...isBoolean$1(st)||dt.disabled?{disabled:dt.disabled||st}:{},onChange:vt,onBlur:Et,ref:bt}),[rt,st,dt.disabled,vt,Et,bt,ct]);return React$4.useEffect(()=>{const St=nt._options.shouldUnregister||ot,Rt=ft.current;Rt&&Rt!==rt&&!lt&&nt.unregister(Rt),nt.register(rt,{...ht.current.rules,...isBoolean$1(ht.current.disabled)?{disabled:ht.current.disabled}:{}});const Ct=(jt,It)=>{const Pt=get$1(nt._fields,jt);Pt&&Pt._f&&(Pt._f.mount=It)};if(Ct(rt,!0),St){const jt=cloneObject(get$1(nt._options.defaultValues,rt,ht.current.defaultValue));set(nt._defaultValues,rt,jt),isUndefined(get$1(nt._formValues,rt))&&set(nt._formValues,rt,jt)}return!lt&&nt.register(rt),ft.current=rt,()=>{(lt?St&&!nt._state.action:St)?nt.unregister(rt):Ct(rt,!1)}},[rt,nt,lt,ot]),React$4.useEffect(()=>{nt._setDisabledField({disabled:st,name:rt})},[st,rt,nt]),React$4.useMemo(()=>({field:wt,formState:dt,fieldState:yt}),[wt,dt,yt])}const Controller=tt=>tt.render(useController(tt));var appendErrors=(tt,et,rt,st,nt)=>et?{...rt[tt],types:{...rt[tt]&&rt[tt].types?rt[tt].types:{},[st]:nt||!0}}:{},convertToArrayPayload=tt=>Array.isArray(tt)?tt:[tt],createSubject=()=>{let tt=[];return{get observers(){return tt},next:nt=>{for(const ot of tt)ot.next&&ot.next(nt)},subscribe:nt=>(tt.push(nt),{unsubscribe:()=>{tt=tt.filter(ot=>ot!==nt)}}),unsubscribe:()=>{tt=[]}}};function extractFormValues(tt,et){const rt={};for(const st in tt)if(tt.hasOwnProperty(st)){const nt=tt[st],ot=et[st];if(nt&&isObject(nt)&&ot){const at=extractFormValues(nt,ot);isObject(at)&&(rt[st]=at)}else tt[st]&&(rt[st]=ot)}return rt}var isEmptyObject=tt=>isObject(tt)&&!Object.keys(tt).length,isFileInput=tt=>tt.type==="file",isFunction=tt=>typeof tt=="function",isHTMLElement=tt=>{if(!isWeb)return!1;const et=tt?tt.ownerDocument:0;return tt instanceof(et&&et.defaultView?et.defaultView.HTMLElement:HTMLElement)},isMultipleSelect=tt=>tt.type==="select-multiple",isRadioInput=tt=>tt.type==="radio",isRadioOrCheckbox=tt=>isRadioInput(tt)||isCheckBoxInput(tt),live=tt=>isHTMLElement(tt)&&tt.isConnected;function baseGet(tt,et){const rt=et.slice(0,-1).length;let st=0;for(;st<rt;)tt=isUndefined(tt)?st++:tt[et[st++]];return tt}function isEmptyArray(tt){for(const et in tt)if(tt.hasOwnProperty(et)&&!isUndefined(tt[et]))return!1;return!0}function unset(tt,et){const rt=Array.isArray(et)?et:isKey(et)?[et]:stringToPath$1(et),st=rt.length===1?tt:baseGet(tt,rt),nt=rt.length-1,ot=rt[nt];return st&&delete st[ot],nt!==0&&(isObject(st)&&isEmptyObject(st)||Array.isArray(st)&&isEmptyArray(st))&&unset(tt,rt.slice(0,-1)),tt}var objectHasFunction=tt=>{for(const et in tt)if(isFunction(tt[et]))return!0;return!1};function isTraversable(tt){return Array.isArray(tt)||isObject(tt)&&!objectHasFunction(tt)}function markFieldsDirty(tt,et={}){for(const rt in tt){const st=tt[rt];isTraversable(st)?(et[rt]=Array.isArray(st)?[]:{},markFieldsDirty(st,et[rt])):isUndefined(st)||(et[rt]=!0)}return et}function getDirtyFields(tt,et,rt){rt||(rt=markFieldsDirty(et));for(const st in tt){const nt=tt[st];if(isTraversable(nt))isUndefined(et)||isPrimitive(rt[st])?rt[st]=markFieldsDirty(nt,Array.isArray(nt)?[]:{}):getDirtyFields(nt,isNullOrUndefined(et)?{}:et[st],rt[st]);else{const ot=et[st];rt[st]=!deepEqual(nt,ot)}}return rt}const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=tt=>{if(Array.isArray(tt)){if(tt.length>1){const et=tt.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:et,isValid:!!et.length}}return tt[0].checked&&!tt[0].disabled?tt[0].attributes&&!isUndefined(tt[0].attributes.value)?isUndefined(tt[0].value)||tt[0].value===""?validResult:{value:tt[0].value,isValid:!0}:validResult:defaultResult}return defaultResult},getFieldValueAs=(tt,{valueAsNumber:et,valueAsDate:rt,setValueAs:st})=>isUndefined(tt)?tt:et?tt===""?NaN:tt&&+tt:rt&&isString$1(tt)?new Date(tt):st?st(tt):tt;const defaultReturn={isValid:!1,value:null};var getRadioValue=tt=>Array.isArray(tt)?tt.reduce((et,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:et,defaultReturn):defaultReturn;function getFieldValue(tt){const et=tt.ref;return isFileInput(et)?et.files:isRadioInput(et)?getRadioValue(tt.refs).value:isMultipleSelect(et)?[...et.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(et)?getCheckboxValue(tt.refs).value:getFieldValueAs(isUndefined(et.value)?tt.ref.value:et.value,tt)}var getResolverOptions=(tt,et,rt,st)=>{const nt={};for(const ot of tt){const at=get$1(et,ot);at&&set(nt,ot,at._f)}return{criteriaMode:rt,names:[...tt],fields:nt,shouldUseNativeValidation:st}},isRegex=tt=>tt instanceof RegExp,getRuleValue=tt=>isUndefined(tt)?tt:isRegex(tt)?tt.source:isObject(tt)?isRegex(tt.value)?tt.value.source:tt.value:tt,getValidationModes=tt=>({isOnSubmit:!tt||tt===VALIDATION_MODE.onSubmit,isOnBlur:tt===VALIDATION_MODE.onBlur,isOnChange:tt===VALIDATION_MODE.onChange,isOnAll:tt===VALIDATION_MODE.all,isOnTouch:tt===VALIDATION_MODE.onTouched});const ASYNC_FUNCTION="AsyncFunction";var hasPromiseValidation=tt=>!!tt&&!!tt.validate&&!!(isFunction(tt.validate)&&tt.validate.constructor.name===ASYNC_FUNCTION||isObject(tt.validate)&&Object.values(tt.validate).find(et=>et.constructor.name===ASYNC_FUNCTION)),hasValidation=tt=>tt.mount&&(tt.required||tt.min||tt.max||tt.maxLength||tt.minLength||tt.pattern||tt.validate),isWatched=(tt,et,rt)=>!rt&&(et.watchAll||et.watch.has(tt)||[...et.watch].some(st=>tt.startsWith(st)&&/^\.\w+/.test(tt.slice(st.length))));const iterateFieldsByAction=(tt,et,rt,st)=>{for(const nt of rt||Object.keys(tt)){const ot=get$1(tt,nt);if(ot){const{_f:at,...lt}=ot;if(at){if(at.refs&&at.refs[0]&&et(at.refs[0],nt)&&!st)return!0;if(at.ref&&et(at.ref,at.name)&&!st)return!0;if(iterateFieldsByAction(lt,et))break}else if(isObject(lt)&&iterateFieldsByAction(lt,et))break}}};function schemaErrorLookup(tt,et,rt){const st=get$1(tt,rt);if(st||isKey(rt))return{error:st,name:rt};const nt=rt.split(".");for(;nt.length;){const ot=nt.join("."),at=get$1(et,ot),lt=get$1(tt,ot);if(at&&!Array.isArray(at)&&rt!==ot)return{name:rt};if(lt&<.type)return{name:ot,error:lt};if(lt&<.root&<.root.type)return{name:`${ot}.root`,error:lt.root};nt.pop()}return{name:rt}}var shouldRenderFormState=(tt,et,rt,st)=>{rt(tt);const{name:nt,...ot}=tt;return isEmptyObject(ot)||Object.keys(ot).length>=Object.keys(et).length||Object.keys(ot).find(at=>et[at]===(!st||VALIDATION_MODE.all))},shouldSubscribeByName=(tt,et,rt)=>!tt||!et||tt===et||convertToArrayPayload(tt).some(st=>st&&(rt?st===et:st.startsWith(et)||et.startsWith(st))),skipValidation=(tt,et,rt,st,nt)=>nt.isOnAll?!1:!rt&&nt.isOnTouch?!(et||tt):(rt?st.isOnBlur:nt.isOnBlur)?!tt:(rt?st.isOnChange:nt.isOnChange)?tt:!0,unsetEmptyArray=(tt,et)=>!compact$1(get$1(tt,et)).length&&unset(tt,et),updateFieldArrayRootError=(tt,et,rt)=>{const st=convertToArrayPayload(get$1(tt,rt));return set(st,"root",et[rt]),set(tt,rt,st),tt};function getValidateError(tt,et,rt="validate"){if(isString$1(tt)||Array.isArray(tt)&&tt.every(isString$1)||isBoolean$1(tt)&&!tt)return{type:rt,message:isString$1(tt)?tt:"",ref:et}}var getValueAndMessage=tt=>isObject(tt)&&!isRegex(tt)?tt:{value:tt,message:""},validateField=async(tt,et,rt,st,nt,ot)=>{const{ref:at,refs:lt,required:ut,maxLength:ct,minLength:dt,min:ht,max:ft,pattern:xt,validate:yt,name:vt,valueAsNumber:Et,mount:bt}=tt._f,wt=get$1(rt,vt);if(!bt||et.has(vt))return{};const St=lt?lt[0]:at,Rt=Ht=>{nt&&St.reportValidity&&(St.setCustomValidity(isBoolean$1(Ht)?"":Ht||""),St.reportValidity())},Ct={},jt=isRadioInput(at),It=isCheckBoxInput(at),Pt=jt||It,Ot=(Et||isFileInput(at))&&isUndefined(at.value)&&isUndefined(wt)||isHTMLElement(at)&&at.value===""||wt===""||Array.isArray(wt)&&!wt.length,Ut=appendErrors.bind(null,vt,st,Ct),Nt=(Ht,Lt,kt,$t=INPUT_VALIDATION_RULES.maxLength,Ft=INPUT_VALIDATION_RULES.minLength)=>{const Gt=Ht?Lt:kt;Ct[vt]={type:Ht?$t:Ft,message:Gt,ref:at,...Ut(Ht?$t:Ft,Gt)}};if(ot?!Array.isArray(wt)||!wt.length:ut&&(!Pt&&(Ot||isNullOrUndefined(wt))||isBoolean$1(wt)&&!wt||It&&!getCheckboxValue(lt).isValid||jt&&!getRadioValue(lt).isValid)){const{value:Ht,message:Lt}=isString$1(ut)?{value:!!ut,message:ut}:getValueAndMessage(ut);if(Ht&&(Ct[vt]={type:INPUT_VALIDATION_RULES.required,message:Lt,ref:St,...Ut(INPUT_VALIDATION_RULES.required,Lt)},!st))return Rt(Lt),Ct}if(!Ot&&(!isNullOrUndefined(ht)||!isNullOrUndefined(ft))){let Ht,Lt;const kt=getValueAndMessage(ft),$t=getValueAndMessage(ht);if(!isNullOrUndefined(wt)&&!isNaN(wt)){const Ft=at.valueAsNumber||wt&&+wt;isNullOrUndefined(kt.value)||(Ht=Ft>kt.value),isNullOrUndefined($t.value)||(Lt=Ft<$t.value)}else{const Ft=at.valueAsDate||new Date(wt),Gt=Bt=>new Date(new Date().toDateString()+" "+Bt),Mt=at.type=="time",Vt=at.type=="week";isString$1(kt.value)&&wt&&(Ht=Mt?Gt(wt)>Gt(kt.value):Vt?wt>kt.value:Ft>new Date(kt.value)),isString$1($t.value)&&wt&&(Lt=Mt?Gt(wt)<Gt($t.value):Vt?wt<$t.value:Ft<new Date($t.value))}if((Ht||Lt)&&(Nt(!!Ht,kt.message,$t.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!st))return Rt(Ct[vt].message),Ct}if((ct||dt)&&!Ot&&(isString$1(wt)||ot&&Array.isArray(wt))){const Ht=getValueAndMessage(ct),Lt=getValueAndMessage(dt),kt=!isNullOrUndefined(Ht.value)&&wt.length>+Ht.value,$t=!isNullOrUndefined(Lt.value)&&wt.length<+Lt.value;if((kt||$t)&&(Nt(kt,Ht.message,Lt.message),!st))return Rt(Ct[vt].message),Ct}if(xt&&!Ot&&isString$1(wt)){const{value:Ht,message:Lt}=getValueAndMessage(xt);if(isRegex(Ht)&&!wt.match(Ht)&&(Ct[vt]={type:INPUT_VALIDATION_RULES.pattern,message:Lt,ref:at,...Ut(INPUT_VALIDATION_RULES.pattern,Lt)},!st))return Rt(Lt),Ct}if(yt){if(isFunction(yt)){const Ht=await yt(wt,rt),Lt=getValidateError(Ht,St);if(Lt&&(Ct[vt]={...Lt,...Ut(INPUT_VALIDATION_RULES.validate,Lt.message)},!st))return Rt(Lt.message),Ct}else if(isObject(yt)){let Ht={};for(const Lt in yt){if(!isEmptyObject(Ht)&&!st)break;const kt=getValidateError(await yt[Lt](wt,rt),St,Lt);kt&&(Ht={...kt,...Ut(Lt,kt.message)},Rt(kt.message),st&&(Ct[vt]=Ht))}if(!isEmptyObject(Ht)&&(Ct[vt]={ref:St,...Ht},!st))return Ct}}return Rt(!0),Ct};const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(tt={}){let et={...defaultOptions,...tt},rt={submitCount:0,isDirty:!1,isReady:!1,isLoading:isFunction(et.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:et.errors||{},disabled:et.disabled||!1},st={},nt=isObject(et.defaultValues)||isObject(et.values)?cloneObject(et.defaultValues||et.values)||{}:{},ot=et.shouldUnregister?{}:cloneObject(nt),at={action:!1,mount:!1,watch:!1},lt={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},ut,ct=0;const dt={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let ht={...dt};const ft={array:createSubject(),state:createSubject()},xt=et.criteriaMode===VALIDATION_MODE.all,yt=Xt=>er=>{clearTimeout(ct),ct=setTimeout(Xt,er)},vt=async Xt=>{if(!et.disabled&&(dt.isValid||ht.isValid||Xt)){const er=et.resolver?isEmptyObject((await It()).errors):await Ot(st,!0);er!==rt.isValid&&ft.state.next({isValid:er})}},Et=(Xt,er)=>{!et.disabled&&(dt.isValidating||dt.validatingFields||ht.isValidating||ht.validatingFields)&&((Xt||Array.from(lt.mount)).forEach(sr=>{sr&&(er?set(rt.validatingFields,sr,er):unset(rt.validatingFields,sr))}),ft.state.next({validatingFields:rt.validatingFields,isValidating:!isEmptyObject(rt.validatingFields)}))},bt=(Xt,er=[],sr,br,gr=!0,vr=!0)=>{if(br&&sr&&!et.disabled){if(at.action=!0,vr&&Array.isArray(get$1(st,Xt))){const Tr=sr(get$1(st,Xt),br.argA,br.argB);gr&&set(st,Xt,Tr)}if(vr&&Array.isArray(get$1(rt.errors,Xt))){const Tr=sr(get$1(rt.errors,Xt),br.argA,br.argB);gr&&set(rt.errors,Xt,Tr),unsetEmptyArray(rt.errors,Xt)}if((dt.touchedFields||ht.touchedFields)&&vr&&Array.isArray(get$1(rt.touchedFields,Xt))){const Tr=sr(get$1(rt.touchedFields,Xt),br.argA,br.argB);gr&&set(rt.touchedFields,Xt,Tr)}(dt.dirtyFields||ht.dirtyFields)&&(rt.dirtyFields=getDirtyFields(nt,ot)),ft.state.next({name:Xt,isDirty:Nt(Xt,er),dirtyFields:rt.dirtyFields,errors:rt.errors,isValid:rt.isValid})}else set(ot,Xt,er)},wt=(Xt,er)=>{set(rt.errors,Xt,er),ft.state.next({errors:rt.errors})},St=Xt=>{rt.errors=Xt,ft.state.next({errors:rt.errors,isValid:!1})},Rt=(Xt,er,sr,br)=>{const gr=get$1(st,Xt);if(gr){const vr=get$1(ot,Xt,isUndefined(sr)?get$1(nt,Xt):sr);isUndefined(vr)||br&&br.defaultChecked||er?set(ot,Xt,er?vr:getFieldValue(gr._f)):kt(Xt,vr),at.mount&&!at.action&&vt()}},Ct=(Xt,er,sr,br,gr)=>{let vr=!1,Tr=!1;const Lr={name:Xt};if(!et.disabled){if(!sr||br){(dt.isDirty||ht.isDirty)&&(Tr=rt.isDirty,rt.isDirty=Lr.isDirty=Nt(),vr=Tr!==Lr.isDirty);const Dr=deepEqual(get$1(nt,Xt),er);Tr=!!get$1(rt.dirtyFields,Xt),Dr?unset(rt.dirtyFields,Xt):set(rt.dirtyFields,Xt,!0),Lr.dirtyFields=rt.dirtyFields,vr=vr||(dt.dirtyFields||ht.dirtyFields)&&Tr!==!Dr}if(sr){const Dr=get$1(rt.touchedFields,Xt);Dr||(set(rt.touchedFields,Xt,sr),Lr.touchedFields=rt.touchedFields,vr=vr||(dt.touchedFields||ht.touchedFields)&&Dr!==sr)}vr&&gr&&ft.state.next(Lr)}return vr?Lr:{}},jt=(Xt,er,sr,br)=>{const gr=get$1(rt.errors,Xt),vr=(dt.isValid||ht.isValid)&&isBoolean$1(er)&&rt.isValid!==er;if(et.delayError&&sr?(ut=yt(()=>wt(Xt,sr)),ut(et.delayError)):(clearTimeout(ct),ut=null,sr?set(rt.errors,Xt,sr):unset(rt.errors,Xt)),(sr?!deepEqual(gr,sr):gr)||!isEmptyObject(br)||vr){const Tr={...br,...vr&&isBoolean$1(er)?{isValid:er}:{},errors:rt.errors,name:Xt};rt={...rt,...Tr},ft.state.next(Tr)}},It=async Xt=>{Et(Xt,!0);const er=await et.resolver(ot,et.context,getResolverOptions(Xt||lt.mount,st,et.criteriaMode,et.shouldUseNativeValidation));return Et(Xt),er},Pt=async Xt=>{const{errors:er}=await It(Xt);if(Xt)for(const sr of Xt){const br=get$1(er,sr);br?set(rt.errors,sr,br):unset(rt.errors,sr)}else rt.errors=er;return er},Ot=async(Xt,er,sr={valid:!0})=>{for(const br in Xt){const gr=Xt[br];if(gr){const{_f:vr,...Tr}=gr;if(vr){const Lr=lt.array.has(vr.name),Dr=gr._f&&hasPromiseValidation(gr._f);Dr&&dt.validatingFields&&Et([vr.name],!0);const Zr=await validateField(gr,lt.disabled,ot,xt,et.shouldUseNativeValidation&&!er,Lr);if(Dr&&dt.validatingFields&&Et([vr.name]),Zr[vr.name]&&(sr.valid=!1,er))break;!er&&(get$1(Zr,vr.name)?Lr?updateFieldArrayRootError(rt.errors,Zr,vr.name):set(rt.errors,vr.name,Zr[vr.name]):unset(rt.errors,vr.name))}!isEmptyObject(Tr)&&await Ot(Tr,er,sr)}}return sr.valid},Ut=()=>{for(const Xt of lt.unMount){const er=get$1(st,Xt);er&&(er._f.refs?er._f.refs.every(sr=>!live(sr)):!live(er._f.ref))&&mr(Xt)}lt.unMount=new Set},Nt=(Xt,er)=>!et.disabled&&(Xt&&er&&set(ot,Xt,er),!deepEqual(Bt(),nt)),Ht=(Xt,er,sr)=>generateWatchOutput(Xt,lt,{...at.mount?ot:isUndefined(er)?nt:isString$1(Xt)?{[Xt]:er}:er},sr,er),Lt=Xt=>compact$1(get$1(at.mount?ot:nt,Xt,et.shouldUnregister?get$1(nt,Xt,[]):[])),kt=(Xt,er,sr={})=>{const br=get$1(st,Xt);let gr=er;if(br){const vr=br._f;vr&&(!vr.disabled&&set(ot,Xt,getFieldValueAs(er,vr)),gr=isHTMLElement(vr.ref)&&isNullOrUndefined(er)?"":er,isMultipleSelect(vr.ref)?[...vr.ref.options].forEach(Tr=>Tr.selected=gr.includes(Tr.value)):vr.refs?isCheckBoxInput(vr.ref)?vr.refs.forEach(Tr=>{(!Tr.defaultChecked||!Tr.disabled)&&(Array.isArray(gr)?Tr.checked=!!gr.find(Lr=>Lr===Tr.value):Tr.checked=gr===Tr.value||!!gr)}):vr.refs.forEach(Tr=>Tr.checked=Tr.value===gr):isFileInput(vr.ref)?vr.ref.value="":(vr.ref.value=gr,vr.ref.type||ft.state.next({name:Xt,values:cloneObject(ot)})))}(sr.shouldDirty||sr.shouldTouch)&&Ct(Xt,gr,sr.shouldTouch,sr.shouldDirty,!0),sr.shouldValidate&&Vt(Xt)},$t=(Xt,er,sr)=>{for(const br in er){if(!er.hasOwnProperty(br))return;const gr=er[br],vr=Xt+"."+br,Tr=get$1(st,vr);(lt.array.has(Xt)||isObject(gr)||Tr&&!Tr._f)&&!isDateObject(gr)?$t(vr,gr,sr):kt(vr,gr,sr)}},Ft=(Xt,er,sr={})=>{const br=get$1(st,Xt),gr=lt.array.has(Xt),vr=cloneObject(er);set(ot,Xt,vr),gr?(ft.array.next({name:Xt,values:cloneObject(ot)}),(dt.isDirty||dt.dirtyFields||ht.isDirty||ht.dirtyFields)&&sr.shouldDirty&&ft.state.next({name:Xt,dirtyFields:getDirtyFields(nt,ot),isDirty:Nt(Xt,vr)})):br&&!br._f&&!isNullOrUndefined(vr)?$t(Xt,vr,sr):kt(Xt,vr,sr),isWatched(Xt,lt)&&ft.state.next({...rt,name:Xt}),ft.state.next({name:at.mount?Xt:void 0,values:cloneObject(ot)})},Gt=async Xt=>{at.mount=!0;const er=Xt.target;let sr=er.name,br=!0;const gr=get$1(st,sr),vr=Dr=>{br=Number.isNaN(Dr)||isDateObject(Dr)&&isNaN(Dr.getTime())||deepEqual(Dr,get$1(ot,sr,Dr))},Tr=getValidationModes(et.mode),Lr=getValidationModes(et.reValidateMode);if(gr){let Dr,Zr;const ks=er.type?getFieldValue(gr._f):getEventValue(Xt),Ir=Xt.type===EVENTS.BLUR||Xt.type===EVENTS.FOCUS_OUT,Br=!hasValidation(gr._f)&&!et.resolver&&!get$1(rt.errors,sr)&&!gr._f.deps||skipValidation(Ir,get$1(rt.touchedFields,sr),rt.isSubmitted,Lr,Tr),kr=isWatched(sr,lt,Ir);set(ot,sr,ks),Ir?(!er||!er.readOnly)&&(gr._f.onBlur&&gr._f.onBlur(Xt),ut&&ut(0)):gr._f.onChange&&gr._f.onChange(Xt);const Wr=Ct(sr,ks,Ir),bs=!isEmptyObject(Wr)||kr;if(!Ir&&ft.state.next({name:sr,type:Xt.type,values:cloneObject(ot)}),Br)return(dt.isValid||ht.isValid)&&(et.mode==="onBlur"?Ir&&vt():Ir||vt()),bs&&ft.state.next({name:sr,...kr?{}:Wr});if(!Ir&&kr&&ft.state.next({...rt}),et.resolver){const{errors:ps}=await It([sr]);if(vr(ks),br){const zr=schemaErrorLookup(rt.errors,st,sr),$r=schemaErrorLookup(ps,st,zr.name||sr);Dr=$r.error,sr=$r.name,Zr=isEmptyObject(ps)}}else Et([sr],!0),Dr=(await validateField(gr,lt.disabled,ot,xt,et.shouldUseNativeValidation))[sr],Et([sr]),vr(ks),br&&(Dr?Zr=!1:(dt.isValid||ht.isValid)&&(Zr=await Ot(st,!0)));br&&(gr._f.deps&&(!Array.isArray(gr._f.deps)||gr._f.deps.length>0)&&Vt(gr._f.deps),jt(sr,Zr,Dr,Wr))}},Mt=(Xt,er)=>{if(get$1(rt.errors,er)&&Xt.focus)return Xt.focus(),1},Vt=async(Xt,er={})=>{let sr,br;const gr=convertToArrayPayload(Xt);if(et.resolver){const vr=await Pt(isUndefined(Xt)?Xt:gr);sr=isEmptyObject(vr),br=Xt?!gr.some(Tr=>get$1(vr,Tr)):sr}else Xt?(br=(await Promise.all(gr.map(async vr=>{const Tr=get$1(st,vr);return await Ot(Tr&&Tr._f?{[vr]:Tr}:Tr)}))).every(Boolean),!(!br&&!rt.isValid)&&vt()):br=sr=await Ot(st);return ft.state.next({...!isString$1(Xt)||(dt.isValid||ht.isValid)&&sr!==rt.isValid?{}:{name:Xt},...et.resolver||!Xt?{isValid:sr}:{},errors:rt.errors}),er.shouldFocus&&!br&&iterateFieldsByAction(st,Mt,Xt?gr:lt.mount),br},Bt=(Xt,er)=>{let sr={...at.mount?ot:nt};return er&&(sr=extractFormValues(er.dirtyFields?rt.dirtyFields:rt.touchedFields,sr)),isUndefined(Xt)?sr:isString$1(Xt)?get$1(sr,Xt):Xt.map(br=>get$1(sr,br))},qt=(Xt,er)=>({invalid:!!get$1((er||rt).errors,Xt),isDirty:!!get$1((er||rt).dirtyFields,Xt),error:get$1((er||rt).errors,Xt),isValidating:!!get$1(rt.validatingFields,Xt),isTouched:!!get$1((er||rt).touchedFields,Xt)}),Yt=Xt=>{Xt&&convertToArrayPayload(Xt).forEach(er=>unset(rt.errors,er)),ft.state.next({errors:Xt?rt.errors:{}})},Kt=(Xt,er,sr)=>{const br=(get$1(st,Xt,{_f:{}})._f||{}).ref,gr=get$1(rt.errors,Xt)||{},{ref:vr,message:Tr,type:Lr,...Dr}=gr;set(rt.errors,Xt,{...Dr,...er,ref:br}),ft.state.next({name:Xt,errors:rt.errors,isValid:!1}),sr&&sr.shouldFocus&&br&&br.focus&&br.focus()},tr=(Xt,er)=>isFunction(Xt)?ft.state.subscribe({next:sr=>"values"in sr&&Xt(Ht(void 0,er),sr)}):Ht(Xt,er,!0),or=Xt=>ft.state.subscribe({next:er=>{shouldSubscribeByName(Xt.name,er.name,Xt.exact)&&shouldRenderFormState(er,Xt.formState||dt,Gs,Xt.reRenderRoot)&&Xt.callback({values:{...ot},...rt,...er,defaultValues:nt})}}).unsubscribe,lr=Xt=>(at.mount=!0,ht={...ht,...Xt.formState},or({...Xt,formState:ht})),mr=(Xt,er={})=>{for(const sr of Xt?convertToArrayPayload(Xt):lt.mount)lt.mount.delete(sr),lt.array.delete(sr),er.keepValue||(unset(st,sr),unset(ot,sr)),!er.keepError&&unset(rt.errors,sr),!er.keepDirty&&unset(rt.dirtyFields,sr),!er.keepTouched&&unset(rt.touchedFields,sr),!er.keepIsValidating&&unset(rt.validatingFields,sr),!et.shouldUnregister&&!er.keepDefaultValue&&unset(nt,sr);ft.state.next({values:cloneObject(ot)}),ft.state.next({...rt,...er.keepDirty?{isDirty:Nt()}:{}}),!er.keepIsValid&&vt()},yr=({disabled:Xt,name:er})=>{(isBoolean$1(Xt)&&at.mount||Xt||lt.disabled.has(er))&&(Xt?lt.disabled.add(er):lt.disabled.delete(er))},dr=(Xt,er={})=>{let sr=get$1(st,Xt);const br=isBoolean$1(er.disabled)||isBoolean$1(et.disabled);return set(st,Xt,{...sr||{},_f:{...sr&&sr._f?sr._f:{ref:{name:Xt}},name:Xt,mount:!0,...er}}),lt.mount.add(Xt),sr?yr({disabled:isBoolean$1(er.disabled)?er.disabled:et.disabled,name:Xt}):Rt(Xt,!0,er.value),{...br?{disabled:er.disabled||et.disabled}:{},...et.progressive?{required:!!er.required,min:getRuleValue(er.min),max:getRuleValue(er.max),minLength:getRuleValue(er.minLength),maxLength:getRuleValue(er.maxLength),pattern:getRuleValue(er.pattern)}:{},name:Xt,onChange:Gt,onBlur:Gt,ref:gr=>{if(gr){dr(Xt,er),sr=get$1(st,Xt);const vr=isUndefined(gr.value)&&gr.querySelectorAll&&gr.querySelectorAll("input,select,textarea")[0]||gr,Tr=isRadioOrCheckbox(vr),Lr=sr._f.refs||[];if(Tr?Lr.find(Dr=>Dr===vr):vr===sr._f.ref)return;set(st,Xt,{_f:{...sr._f,...Tr?{refs:[...Lr.filter(live),vr,...Array.isArray(get$1(nt,Xt))?[{}]:[]],ref:{type:vr.type,name:Xt}}:{ref:vr}}}),Rt(Xt,!1,void 0,vr)}else sr=get$1(st,Xt,{}),sr._f&&(sr._f.mount=!1),(et.shouldUnregister||er.shouldUnregister)&&!(isNameInFieldArray(lt.array,Xt)&&at.action)&<.unMount.add(Xt)}}},hr=()=>et.shouldFocusError&&iterateFieldsByAction(st,Mt,lt.mount),pr=Xt=>{isBoolean$1(Xt)&&(ft.state.next({disabled:Xt}),iterateFieldsByAction(st,(er,sr)=>{const br=get$1(st,sr);br&&(er.disabled=br._f.disabled||Xt,Array.isArray(br._f.refs)&&br._f.refs.forEach(gr=>{gr.disabled=br._f.disabled||Xt}))},0,!1))},_r=(Xt,er)=>async sr=>{let br;sr&&(sr.preventDefault&&sr.preventDefault(),sr.persist&&sr.persist());let gr=cloneObject(ot);if(ft.state.next({isSubmitting:!0}),et.resolver){const{errors:vr,values:Tr}=await It();rt.errors=vr,gr=cloneObject(Tr)}else await Ot(st);if(lt.disabled.size)for(const vr of lt.disabled)unset(gr,vr);if(unset(rt.errors,"root"),isEmptyObject(rt.errors)){ft.state.next({errors:{}});try{await Xt(gr,sr)}catch(vr){br=vr}}else er&&await er({...rt.errors},sr),hr(),setTimeout(hr);if(ft.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(rt.errors)&&!br,submitCount:rt.submitCount+1,errors:rt.errors}),br)throw br},Ar=(Xt,er={})=>{get$1(st,Xt)&&(isUndefined(er.defaultValue)?Ft(Xt,cloneObject(get$1(nt,Xt))):(Ft(Xt,er.defaultValue),set(nt,Xt,cloneObject(er.defaultValue))),er.keepTouched||unset(rt.touchedFields,Xt),er.keepDirty||(unset(rt.dirtyFields,Xt),rt.isDirty=er.defaultValue?Nt(Xt,cloneObject(get$1(nt,Xt))):Nt()),er.keepError||(unset(rt.errors,Xt),dt.isValid&&vt()),ft.state.next({...rt}))},Hr=(Xt,er={})=>{const sr=Xt?cloneObject(Xt):nt,br=cloneObject(sr),gr=isEmptyObject(Xt),vr=gr?nt:br;if(er.keepDefaultValues||(nt=sr),!er.keepValues){if(er.keepDirtyValues){const Tr=new Set([...lt.mount,...Object.keys(getDirtyFields(nt,ot))]);for(const Lr of Array.from(Tr))get$1(rt.dirtyFields,Lr)?set(vr,Lr,get$1(ot,Lr)):Ft(Lr,get$1(vr,Lr))}else{if(isWeb&&isUndefined(Xt))for(const Tr of lt.mount){const Lr=get$1(st,Tr);if(Lr&&Lr._f){const Dr=Array.isArray(Lr._f.refs)?Lr._f.refs[0]:Lr._f.ref;if(isHTMLElement(Dr)){const Zr=Dr.closest("form");if(Zr){Zr.reset();break}}}}if(er.keepFieldsRef)for(const Tr of lt.mount)Ft(Tr,get$1(vr,Tr));else st={}}ot=et.shouldUnregister?er.keepDefaultValues?cloneObject(nt):{}:cloneObject(vr),ft.array.next({values:{...vr}}),ft.state.next({values:{...vr}})}lt={mount:er.keepDirtyValues?lt.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},at.mount=!dt.isValid||!!er.keepIsValid||!!er.keepDirtyValues||!et.shouldUnregister&&!isEmptyObject(vr),at.watch=!!et.shouldUnregister,ft.state.next({submitCount:er.keepSubmitCount?rt.submitCount:0,isDirty:gr?!1:er.keepDirty?rt.isDirty:!!(er.keepDefaultValues&&!deepEqual(Xt,nt)),isSubmitted:er.keepIsSubmitted?rt.isSubmitted:!1,dirtyFields:gr?{}:er.keepDirtyValues?er.keepDefaultValues&&ot?getDirtyFields(nt,ot):rt.dirtyFields:er.keepDefaultValues&&Xt?getDirtyFields(nt,Xt):er.keepDirty?rt.dirtyFields:{},touchedFields:er.keepTouched?rt.touchedFields:{},errors:er.keepErrors?rt.errors:{},isSubmitSuccessful:er.keepIsSubmitSuccessful?rt.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:nt})},Ur=(Xt,er)=>Hr(isFunction(Xt)?Xt(ot):Xt,er),os=(Xt,er={})=>{const sr=get$1(st,Xt),br=sr&&sr._f;if(br){const gr=br.refs?br.refs[0]:br.ref;gr.focus&&(gr.focus(),er.shouldSelect&&isFunction(gr.select)&&gr.select())}},Gs=Xt=>{rt={...rt,...Xt}},Ws={control:{register:dr,unregister:mr,getFieldState:qt,handleSubmit:_r,setError:Kt,_subscribe:or,_runSchema:It,_focusError:hr,_getWatch:Ht,_getDirty:Nt,_setValid:vt,_setFieldArray:bt,_setDisabledField:yr,_setErrors:St,_getFieldArray:Lt,_reset:Hr,_resetDefaultValues:()=>isFunction(et.defaultValues)&&et.defaultValues().then(Xt=>{Ur(Xt,et.resetOptions),ft.state.next({isLoading:!1})}),_removeUnmounted:Ut,_disableForm:pr,_subjects:ft,_proxyFormState:dt,get _fields(){return st},get _formValues(){return ot},get _state(){return at},set _state(Xt){at=Xt},get _defaultValues(){return nt},get _names(){return lt},set _names(Xt){lt=Xt},get _formState(){return rt},get _options(){return et},set _options(Xt){et={...et,...Xt}}},subscribe:lr,trigger:Vt,register:dr,handleSubmit:_r,watch:tr,setValue:Ft,getValues:Bt,reset:Ur,resetField:Ar,clearErrors:Yt,unregister:mr,setError:Kt,setFocus:os,getFieldState:qt};return{...Ws,formControl:Ws}}function useForm(tt={}){const et=React$4.useRef(void 0),rt=React$4.useRef(void 0),[st,nt]=React$4.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(tt.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:tt.errors||{},disabled:tt.disabled||!1,isReady:!1,defaultValues:isFunction(tt.defaultValues)?void 0:tt.defaultValues});if(!et.current)if(tt.formControl)et.current={...tt.formControl,formState:st},tt.defaultValues&&!isFunction(tt.defaultValues)&&tt.formControl.reset(tt.defaultValues,tt.resetOptions);else{const{formControl:at,...lt}=createFormControl(tt);et.current={...lt,formState:st}}const ot=et.current.control;return ot._options=tt,useIsomorphicLayoutEffect(()=>{const at=ot._subscribe({formState:ot._proxyFormState,callback:()=>nt({...ot._formState}),reRenderRoot:!0});return nt(lt=>({...lt,isReady:!0})),ot._formState.isReady=!0,at},[ot]),React$4.useEffect(()=>ot._disableForm(tt.disabled),[ot,tt.disabled]),React$4.useEffect(()=>{tt.mode&&(ot._options.mode=tt.mode),tt.reValidateMode&&(ot._options.reValidateMode=tt.reValidateMode)},[ot,tt.mode,tt.reValidateMode]),React$4.useEffect(()=>{tt.errors&&(ot._setErrors(tt.errors),ot._focusError())},[ot,tt.errors]),React$4.useEffect(()=>{tt.shouldUnregister&&ot._subjects.state.next({values:ot._getWatch()})},[ot,tt.shouldUnregister]),React$4.useEffect(()=>{if(ot._proxyFormState.isDirty){const at=ot._getDirty();at!==st.isDirty&&ot._subjects.state.next({isDirty:at})}},[ot,st.isDirty]),React$4.useEffect(()=>{var at;tt.values&&!deepEqual(tt.values,rt.current)?(ot._reset(tt.values,{keepFieldsRef:!0,...ot._options.resetOptions}),!((at=ot._options.resetOptions)===null||at===void 0)&&at.keepIsValid||ot._setValid(),rt.current=tt.values,nt(lt=>({...lt}))):ot._resetDefaultValues()},[ot,tt.values]),React$4.useEffect(()=>{ot._state.mount||(ot._setValid(),ot._state.mount=!0),ot._state.watch&&(ot._state.watch=!1,ot._subjects.state.next({...ot._formState})),ot._removeUnmounted()}),et.current.formState=getProxyFormState(st,ot),et.current}const useActivitiesOptions=()=>{const{t:tt}=useTranslation();return[{value:"bpr.activityType.classroomActivity",label:tt("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:tt("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:tt("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:tt("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:tt("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:tt("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:tt("bpr.activityType.courseElement")},{value:"bpr.other",label:tt("bpr.other")}]},ActivitiesDropdown=({control:tt,selectedActivities:et,selectActivities:rt})=>{const st=useActivitiesOptions(),{t:nt}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"col d-flex",children:jsxRuntimeExports.jsx(Controller,{name:"activityType",control:tt,rules:{required:!0},render:({field:{onChange:ot}})=>jsxRuntimeExports.jsxs(Dropdown,{block:!0,overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{size:"md",label:nt("bpr.form.publication.type"),badgeContent:et==null?void 0:et.length}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:st.map((at,lt)=>jsxRuntimeExports.jsx(Dropdown.CheckboxItem,{value:at.value,model:et,onChange:()=>{rt(at.value),ot(at.value)},children:at.label},lt))})]})})})},ageOptions=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],AgeSelect=({name:tt,control:et,placeholderOption:rt,validate:st})=>jsxRuntimeExports.jsx(Controller,{name:tt,control:et,rules:{required:!0,validate:st},render:({field:{onChange:nt}})=>jsxRuntimeExports.jsx(Select,{block:!0,size:"md",onValueChange:nt,options:ageOptions,"aria-required":!0,placeholderOption:rt})}),useLanguageOptions=()=>{const{t:tt}=useTranslation();return[{value:"de_DE",label:tt("de_DE")},{value:"en_EN",label:tt("en_EN")},{value:"ar_DZ",label:tt("ar_DZ")},{value:"es_ES",label:tt("es_ES")},{value:"fr_FR",label:tt("fr_FR")},{value:"it_IT",label:tt("it_IT")},{value:"ja_JP",label:tt("ja_JP")},{value:"zh_CN",label:tt("zh_CN")},{value:"pt_PT",label:tt("pt_PT")},{value:"ru_RU",label:tt("ru_RU")},{value:"bpr.other",label:tt("bpr.other")}]},defaultSelectLanguageOption="bpr.form.publication.language",LangSelect=({control:tt})=>{const et=useLanguageOptions();return jsxRuntimeExports.jsx("div",{className:"col",children:jsxRuntimeExports.jsx(Controller,{name:"language",control:tt,rules:{required:!0},render:({field:{onChange:rt}})=>jsxRuntimeExports.jsx(Select,{block:!0,size:"md",onValueChange:rt,options:et,"aria-required":!0,placeholderOption:defaultSelectLanguageOption})})})},creativeCommons="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAYCAYAAACsnTAAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAubSURBVHgB7Vh3UNVnFj2P/kAQURGNsa2GKKIOCjGzIEUhqElsY40m9lgiGksmWUfjTNZel8ggblSIxjUxujbEiiiwoiiixoqVJtKkCQg82O9c9r0AeaiTP3ZmZ3NnmAHed9/v+84999zz/TRvvvnmlo6dO04xMTExw/95VLyoyEm6lDRW4+XjpZszP8gE/4XQ6XQoeFYAXbVO/m7atCksLS1fK7eqqgqFhYXyHaYmprCzs4O5hflr5VZUVKCosAjVNdUw0ZjArqkdLCwsjO7voxHjtpsphpigpgbQaIwuys3JxS/J13H9+i/qQM/k/81bNEdXl27o5dZLftcYya0bZWVluJ58DSeOnUBxYTHMzMxlg9bWWri/4wHfAb6wtLJsNPda8lVEHY5C6fMymJubyyFtmlgjcHAg3Pr0hoWlhdHc8vJynI8/j7iYWJSXlssZK6sqpBg+/X3k2XVzeY7q6moTMw00RgEpLi7GrohduBCfoDZTClNTU3To0EEqdvvmbcSqB9k3s4enjxfGfDTGKPKyMXWoiL+Hq4Ndw7Rp0zBgwAA0a9YMz58/R0JCAtavX4/LiZcQtGAubO1s6+WWqD2EBociMz0T8+bNg4eHhzCkqKgIZ8+exYYNGxB7NhYzg2ahSZMm9XLJqg2r1uNZ3jMsWrQI7u7usLW1RUFBAY4fP46wsDBcTbqK6Z99qopkZgCFYVJj5CCpjx5j9TerEBt9Dp5/9sShQ4cEpHv37uHRo0dyoH379sG1uyuO/PMwVny9XOhpLMK/i0Budi4OHjyIFStWoHPnzti6dStatmyJhQsXIjExEVYWVli/cp0CsNyQR4YQEF2lDjExMbK2X79+yMrKgpubG5YsWSK5leWVCAvZgsrKSkMuW/Tb9cFwsHfAjRs3MH/+fHh6eqJHjx7w8fHBypUrER0djccPH2NrSJgwr26YoAFJnpeUIGRTCDLSMrBlyxYcOHAAH3zwAbRarWGNlZUVhg8fjmPHjmHVqlXIzMjExjUbUKiqUDcSExJx6UIiQkJC8O6778r/0tPTcebMGQGY0bZtW+zatQu6Kp2wTx8xp84oBl3G4sWL0aZNG2nlU6dOYe7cuYiKikJOTo4AvGPHDuRk5SL+XLwhN/5cHFAN7N69W1jJ9X379kWnTp0EWD7f1dUVP/74I5IvJyPlTkoDUOpQpUZpS/h34cjLzcOaNWswefLkemA0DGtra3z++eey8ZS7KTh+9IThM7bZ8aPHMHToUKkSqUnqEgACQebcvn1b1vJwZALXcw9lpWWiBS1atMCcOXMwduxYqfaHH34oB1u+fDlu3rwpub169cJH48bhRNQJ6oGwLfpktKxv166dMGXKlCmyV7bvixcvMGbMGFy+fFlaaurUqTgeeaw+KHWJ8uDefanW4MGDBZBXCSiDWsKNe/fzxsF9B5CV+UT+Tx3KSM/AyJEjDWtJ/dDQUJw+fRo7d+6UVtQHaZ39NBs52Tl4pgSdwOzdu1d6v0Sxd/PmzTKpRo8eLXri5eVlyCVYZHhxUTGys7NhrbWWAzOCg4ORl5cne2Txtm3bJsCQYQxvb29kPckSDTKAoicKUT594rSIDpPZIlTvPXv2yN/ff/+9bI4MOHr0KJYuXSobZTtws+xxUjzubJzh+9gSZMHrBIXS3t5etKFCbZoMZtu8//77AiL1IzAwUJhJdvCwmZmZkss9c0xT96h3LCaZwfj4448xadIkAZ1B9pH9+oI4OjrKEFEe5VdQZByrHwLwWAkse00/ZUi76dOnq3F83QDCunXrMGHCBCQnJ4vmfPXVVyKKzs7OUEYQ9xXbKitqRc/UzBSpqamGh3EU8mCMrl27omPHjobPSktLZaqQeZaqIHQKBXU0qmfPnti4caOA4+DgIBOFgsu2416ojQRWq7WSFtQLL5/JXD3rWVjut1WrVvJ3fn6+nJXAMk9A1j9Ub6ycuzgLchQyiiwrRUF68OCBbMbFxUUqRWqnpaX9ZyNaUXAnJycUFBUoL1Ap8/+Ntm+IdgQEBMgzWrduLfSnQJO2BFIfnAZkJ30P6W1hZSEA9OnTR1jH0c2Jx5wnT57gk08+EfHmWOY0c3RyrDVl6rlFJUUy7rt06SJF+eKLL3D37l0MGzYMmzZtkvONUzrEOHfuHJo5NENT+6a/MkUQpGlRoFTrqgUx/vCQ/CGFGRQ40pvVJAXZMmwNAsGgqeKhXpTXUp/09fb1xk8//YRbt27hZZGRkSHa4R/oLwwhyN5+PiL2rCT/R7FlG3A8L1u2TD4jkwk6/Yd/YICs43M9+npg7dq1yM3Nhb+/P4KCgoTVLAQnD/PZTpyA1Dg/fz/J/Y1PMVOHamLXRASHleIoI8VPnjwpFZoxY4agTLQpdJwirMDMmTOFjmw/boKGjgAxvHz7oVOXP8nmySoGgSXT9GDy0F9++SUKiwoRMOg9A1Ce/TyhtdFiyJAhAhpbk3uYNWuWVJmspZ4RKIcWDnBzdzPkDhk+FCXPSzB79mwpIqcV2cXicB8U3ZSUFAGa+3Nz712vSKYdOrRf5tHXXZC6oaw8NYGL2XO9e/fG+fPnBRj9SKMjvXPnjrTW06dPpQqk6cOHD7F69Wq49OiOPu/0MTzgbZe3kaTGX/DfggUssovA8pAUUOpTxpMMzJgzE46tHA15ZuZm6K02Gxsbh3/8sBu1t5EamSo8IKcXXW6VrgrTZk8XM6gPtpBzN2ccPRKFiPAIKQTZb2NjI0By8rCgNrY2mDl3lkGU+f0/7/k5WaMoXjN73mxpIRqm0G9D5XAUMgYZwBHZvHlzg5WnMLHC+gsdRY3rORG+/uvX6ObqUg95jueLCRcReShSOdQqsfNyQVNa4ePvi/4B/cW+GwtWOl5NtDNqb3yOnW2tzTc1N4Vvfz+hvtbauJfKz8tHgvI79DCcTgSF4k0GvjcoEJ7envWuJ9zPmKGjwzU+fj41swgKasV28aK/ID83H3FxcSKqrxN0mqx4y1YtseSbpY2u4/dnqSpXVlDtTeHUprXh3vGqoL7Rx1QpUCmUTm2cDG36ylw1bulfmMubtVNrJ/mOhkGmjB4yKtyMc/3h/YcyPrl44tRJWLtyjThRili3bt1e+sCkpCQxejzw+InjhVlPs54K6i+LSsW2tNQ0/J5gy6SnpeP3BMFNfZxq9DP9SNYotGuInij8+LEYoCbA2egY7I7YLa1BpR40aJBYc65hEAAKFo0dL1ca5Ys//WyGaECEuibEqPz/1VCtHs4ZZLj90HMELZyLHr16qNcDt7AtbBuys7JlHFNM9eOZs//atWti29u1b4dJn07GW85vCRhbN4cJaHWDk4KiTcrSL1A/KMwcge3btxdz2BizWAyOeq7nd9CocXoxj1OQbdFYMM/X11d+56WQRfXz8xNv0vBmXCfC2VjL9H9xYXJSsjhN156uIkQEghtKOJ+Aixcv4tKlS8IS567OGDZyGMZPmiDKH6WUfteOnfWu8Pqg4aKv4NQis2gM2XLcICl75cqVxjYot3Hesukv6GiZS/2ipeeo379/f6O5vOzxMspJR0Dorw4fPixg1nXaDSL5NyrHS9W6lWsxcuwoBAwMEK/BHwZf+vCtmZWy0vooLChE5MEjOKJ+OJUaC7Zi9+7dBVD6HmoW/dD27dvxquA9hXceBl0sc+Lj42Usvyyod3ztwQshR/GCBQvEAY8aNUry9RrSMIxKPzf7g3rrFn3ytALEC93VfYg2mKNPpz7ja8kc9ZoyUY3ZhH9dMLymfFmw1SIjI2s1SLUNPcqz18hjcLrxBRFtAa8brD4vcjzwxIkTG83j3YgFYAuSNWw7ehbm8sqhv1A2jHqa0liwyvQWWnUl11VXoUy9K6VXaKgdjQU1ZeDAgQZ/QzPIDdIz1H19YCzILgafxxdFvKGPGDFCWoKu+mX5fJ/C1wrUFl4POP55J2Lb0t3SBBoJJbQaTanikRZ/hITSntB/Awop/YGn+Be4AAAAAElFTkSuQmCC",PublishModalFooter=()=>{const{t:tt}=useTranslation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("ul",{className:"mb-12",children:[jsxRuntimeExports.jsxs("li",{children:[tt("bpr.form.publication.licence.text.1"),jsxRuntimeExports.jsx("img",{className:"ms-8 d-inline-block",src:creativeCommons,alt:"licence creative commons"})]}),jsxRuntimeExports.jsx("li",{children:tt("bpr.form.publication.licence.text.2")})]}),jsxRuntimeExports.jsx(Alert,{type:"info",className:"mb-12",children:tt("bpr.form.publication.licence.text.3")}),jsxRuntimeExports.jsx(Alert,{type:"warning",children:tt("bpr.form.publication.licence.text.4")})]})},useSubjectsOptions=()=>{const{t:tt}=useTranslation();return[{value:"bpr.subjectArea.artActivity",label:tt("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:tt("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:tt("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:tt("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:tt("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:tt("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:tt("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:tt("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:tt("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:tt("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:tt("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:tt("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:tt("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:tt("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:tt("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:tt("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:tt("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:tt("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:tt("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:tt("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:tt("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:tt("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:tt("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:tt("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:tt("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:tt("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:tt("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:tt("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:tt("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:tt("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:tt("bpr.subjectArea.technology")},{value:"bpr.subjectArea.Arabic",label:tt("bpr.subjectArea.Arabic")},{value:"bpr.subjectArea.Chinese",label:tt("bpr.subjectArea.Chinese")},{value:"bpr.subjectArea.NaturalSciences",label:tt("bpr.subjectArea.NaturalSciences")},{value:"bpr.subjectArea.SocioEmotionalEducation",label:tt("bpr.subjectArea.SocioEmotionalEducation")},{value:"bpr.other",label:tt("bpr.other")}]},SubjectsDropdown=({control:tt,selectedSubjectAreas:et,selectSubjects:rt})=>{const st=useSubjectsOptions(),{t:nt}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"col d-flex",children:jsxRuntimeExports.jsx(Controller,{name:"subjectArea",control:tt,rules:{required:!0},render:({field:{onChange:ot}})=>jsxRuntimeExports.jsxs(Dropdown,{block:!0,overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{size:"md",label:nt("bpr.form.publication.discipline"),badgeContent:et==null?void 0:et.length}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:st.map((at,lt)=>jsxRuntimeExports.jsx(Dropdown.CheckboxItem,{value:at.value,model:et,onChange:()=>{rt(at.value),ot(at.value)},children:at.label},lt))})]})})})};function ToastError({formData:tt,errorMessage:et}){const{t:rt}=useTranslation(),st=nt=>nt==null?void 0:nt.match(/^\s/);return et==="CONTENT_TOO_LARGE"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:rt("bpr.form.publication.response.error.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.error.content_too_large")})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:rt("bpr.form.publication.response.error.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.error.content")})}),jsxRuntimeExports.jsxs("ul",{children:[st(tt==null?void 0:tt.title)&&jsxRuntimeExports.jsx("li",{className:"pt-2 pb-2",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.empty.title")})}),st(tt==null?void 0:tt.description)&&jsxRuntimeExports.jsx("li",{className:"pt-2 pb-2",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.empty.description")})})]})]})}function ToastSuccess({result:tt}){const{t:et}=useTranslation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:et("bpr.form.publication.response.success.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24",children:et("bpr.form.publication.response.success.content.1")}),jsxRuntimeExports.jsx("p",{className:"pt-24",children:et("bpr.form.publication.response.success.content.2")}),tt.details.front_url&&jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("a",{className:"button right-magnet",href:tt.details.front_url,target:"_blank",rel:"noreferrer",children:et("bpr.form.publication.response.success.button")})})]})}function usePublishModal({onSuccess:tt,resource:et}){const{user:rt,appCode:st}=useEdificeClient(),nt=useToast(),[ot,at]=reactExports.useState((et==null?void 0:et.thumbnail)||"");reactExports.useEffect(()=>{at(et==null?void 0:et.thumbnail)},[et]);const{control:lt,register:ut,watch:ct,setValue:dt,handleSubmit:ht,formState:{errors:ft,isSubmitting:xt,isDirty:yt,isValid:vt}}=useForm({mode:"onChange"}),[Et,bt]=reactExports.useState([]),[wt,St]=reactExports.useState([]),Rt=(Ct,jt,It)=>{let Pt=[...jt];const Ot=Pt.findIndex(Ut=>Ut===Ct);jt.includes(Ct)?Pt=jt.filter((Ut,Nt)=>Nt!==Ot):Pt=[...jt,Ct],It(Pt)};return{control:lt,cover:ot,formState:{errors:ft,isSubmitting:xt,isDirty:yt,isValid:vt},handleDeleteImage:()=>at(""),handlePublish:async Ct=>{const jt=rt?rt==null?void 0:rt.userId:"";try{let It=new Blob;typeof ot=="string"?It=await odeServices.http().get(ot,{responseType:"blob"}):ot?It=await odeServices.http().get(URL.createObjectURL(ot),{responseType:"blob"}):et!=null&&et.thumbnail&&(It=await odeServices.http().get(et==null?void 0:et.thumbnail,{responseType:"blob"}));const Pt=await odeServices.http().get(`/userbook/avatar/${jt}?thumbnail=48x48`,{responseType:"blob"}),Ot=await odeServices.http().get(`/directory/user/${jt}/attachment-school`,{responseType:"json"}),Ut=e$3[st],Nt={activityType:Et,age:[Ct.ageMin,Ct.ageMax],application:Ut,cover:It,description:Ct.description,keyWords:Ct.keyWords,language:Ct.language,licence:"CC-BY",resourceId:et==null?void 0:et.assetId,resourceEntId:et==null?void 0:et.assetId,subjectArea:wt,teacherAvatar:Pt,title:Ct.title,userId:jt,userStructureName:Ot.name||(rt==null?void 0:rt.structureNames[0])},Ht=await odeServices.resource(st).publish(Nt);Ht.success?nt.success(jsxRuntimeExports.jsx(ToastSuccess,{result:Ht}),{duration:1e4}):Ht.message==="CONTENT_TOO_LARGE"?nt.error(jsxRuntimeExports.jsx(ToastError,{errorMessage:Ht.message})):nt.error(jsxRuntimeExports.jsx(ToastError,{formData:Ct})),tt==null||tt()}catch(It){console.error(It),nt.error(jsxRuntimeExports.jsx(ToastError,{formData:Ct}))}},handleSubmit:ht,handleUploadImage:Ct=>at(Ct),register:ut,selectActivities:Ct=>{Rt(Ct,Et,bt)},selectedActivities:Et,selectedSubjectAreas:wt,selectSubjects:Ct=>{Rt(Ct,wt,St)},setValue:dt,watch:ct}}const SvgIconDelete=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.96.96 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954h3.818a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909h3.818v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),SvgIconEdit=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879m-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465z",clipRule:"evenodd"})]}),ImagePicker=({addButtonLabel:tt="Add image",deleteButtonLabel:et="Delete image",src:rt,className:st,mediaLibraryRef:nt,libraryMedia:ot,app:at,onUploadImage:lt,onDeleteImage:ut})=>{const[ct,dt]=reactExports.useState(rt||"");reactExports.useEffect(()=>{ot&&(dt(ot),lt(ot))},[ot]);const ht=()=>{var yt;(yt=nt.current)==null||yt.show("image")},ft=()=>{dt(""),ut()},xt=clsx("image-input",st);return jsxRuntimeExports.jsxs("div",{id:"image-input",className:xt,children:[jsxRuntimeExports.jsxs("div",{className:"image-input-actions gap-8",children:[jsxRuntimeExports.jsx(IconButton,{"aria-label":tt,color:"tertiary",icon:jsxRuntimeExports.jsx(SvgIconEdit,{}),onClick:ht,type:"button",variant:"ghost"}),jsxRuntimeExports.jsx(IconButton,{"aria-label":et,color:"danger",disabled:!ct,icon:jsxRuntimeExports.jsx(SvgIconDelete,{}),onClick:ft,type:"button",variant:"ghost"})]}),ct?jsxRuntimeExports.jsx(Avatar,{alt:"",src:ct,size:"xl"}):jsxRuntimeExports.jsx(AppIcon,{app:at,iconFit:"ratio",size:"160",variant:"rounded"})]})},useResource=(tt,et)=>{const[rt,st]=reactExports.useState(null);return reactExports.useEffect(()=>{if(et===""){console.warn("resourceId must be an assetId and not an empty string");return}(async()=>{try{const nt=await odeServices.resource(tt).searchResource({application:tt,id:et});st(nt)}catch(nt){console.error(nt)}})()},[]),rt},SvgIconApplications=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 3c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8 0H3v6h6zm4 0c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2zm8 0h-6v6h6zm-8 12c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2zm8 0h-6v6h6zM1 15c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8 0H3v6h6z",clipRule:"evenodd"})]}),SvgIconCode=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.327 5.76a1 1 0 0 1 1.413.067l5 5.5a1 1 0 0 1 0 1.346l-5 5.5a1 1 0 1 1-1.48-1.346L21.648 12 17.26 7.173a1 1 0 0 1 .067-1.413M6.673 5.76a1 1 0 0 1 .067 1.413L2.35 12l4.389 4.827a1 1 0 0 1-1.48 1.346l-5-5.5a1 1 0 0 1 0-1.346l5-5.5a1 1 0 0 1 1.413-.067M8.979 21.609a1 1 0 0 1-.658-1.252l5.375-17.29a1 1 0 1 1 1.91.594L10.23 20.95a1 1 0 0 1-1.251.658",clipRule:"evenodd"})]}),SvgIconGlobe=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.01 9.01 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.01 9.01 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.01 9.01 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.01 9.01 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),SvgIconMic=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 .5a4.07 4.07 0 0 0-2.812 1.115A3.8 3.8 0 0 0 8 4.364V12a3.8 3.8 0 0 0 1.188 2.748A4.07 4.07 0 0 0 12 15.864a4.07 4.07 0 0 0 2.812-1.116A3.8 3.8 0 0 0 16 12V4.364a3.8 3.8 0 0 0-1.188-2.749A4.07 4.07 0 0 0 12 .5m-1.43 2.562A2.07 2.07 0 0 1 12 2.5c.545 0 1.059.207 1.43.562.371.354.57.823.57 1.302V12a1.8 1.8 0 0 1-.57 1.302 2.07 2.07 0 0 1-1.43.562 2.07 2.07 0 0 1-1.43-.562A1.8 1.8 0 0 1 10 12V4.364a1.8 1.8 0 0 1 .57-1.302M6 10.091a1 1 0 0 0-2 0V12c0 2.053.855 4.011 2.36 5.448A8.13 8.13 0 0 0 11 19.622V21.5H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-3v-1.878a8.13 8.13 0 0 0 4.64-2.174C19.145 16.011 20 14.053 20 12v-1.91a1 1 0 0 0-2 0V12c0 1.491-.62 2.932-1.74 4.001s-2.646 1.678-4.248 1.68h-.024c-1.602-.002-3.128-.611-4.247-1.68C6.62 14.931 6 13.491 6 12z",clipRule:"evenodd"})]}),SvgIconRecordVideo=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-1.936l4.409 1.365A2 2 0 0 0 24 15.519V8.48a2 2 0 0 0-2.591-1.91l-4.41 1.364V6a2 2 0 0 0-2-2zm0 2h13v12H2zm15 7.97V10.03l5-1.548v7.037z",clipRule:"evenodd"})]}),SvgIconSmartphone=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM4 4a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 18a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),MediaLibraryContext=reactExports.createContext(null);function useMediaLibraryContext(){const tt=reactExports.useContext(MediaLibraryContext);if(!tt)throw new Error("Innertabs compound components cannot be rendered outside the MediaLibrary component");return tt}const SvgIconPause=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.5 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 2h3v16h-3zm10-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 2h3v16h-3z",clipRule:"evenodd"})]}),SvgIconRecord=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("circle",{cx:12,cy:12,r:11,fill:"currentColor"})]}),AudioRecorderTimer=({recordState:tt,playState:et,recordTime:rt,audioTime:st,maxDuration:nt})=>jsxRuntimeExports.jsxs("div",{className:"audio-recorder-time my-16 mx-auto",children:[et==="IDLE"&&jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[tt==="PAUSED"?jsxRuntimeExports.jsx(SvgIconPause,{width:12,height:12,className:"me-8 text-danger"}):jsxRuntimeExports.jsx(SvgIconRecord,{width:12,height:12,className:"me-8 text-danger"}),n$4(tt!=="IDLE"?rt:0)+" / "+n$4(nt)]}),et!=="IDLE"&&jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mx-auto",children:[jsxRuntimeExports.jsx(SvgIconMic,{width:12,height:12,className:"me-8"}),n$4(st*1e3)," /",n$4(rt)]})]}),SvgIconPlayFilled=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M5 3.804c0-1.57 1.728-2.528 3.06-1.696l13.113 8.196a2 2 0 0 1 0 3.392L8.06 21.892C6.728 22.724 5 21.767 5 20.196z"})]}),SvgIconRecordPause=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11M10 6H8a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m4 0h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1",clipRule:"evenodd"})]}),SvgIconRefresh=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("g",{clipPath:"url(#icon-refresh_svg__a)",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.304 21c3.015 0 5.65-1.924 6.838-4.752a.986.986 0 0 1 1.297-.53c.503.216.738.803.524 1.311C19.498 20.522 16.19 23 12.304 23c-4.644 0-8.444-3.522-9.299-8.113L1.86 17.142a.99.99 0 0 1-1.33.449 1 1 0 0 1-.417-1.348L2.51 11.52c.135-.265.376-.457.66-.527a.96.96 0 0 1 .812.169L8.1 14.297c.433.33.515.958.185 1.404a.98.98 0 0 1-1.382.212L4.93 14.41c.65 3.785 3.744 6.59 7.374 6.59m4.794-12.913a.98.98 0 0 0-1.381.211 1.01 1.01 0 0 0 .184 1.405l4.117 3.135a.96.96 0 0 0 .812.169c.284-.07.525-.262.66-.527l2.398-4.723c.252-.496.065-1.1-.418-1.348a.99.99 0 0 0-1.329.449l-1.145 2.255C20.14 4.522 16.34 1 11.696 1 7.81 1 4.505 3.478 3.037 6.97a1.004 1.004 0 0 0 .525 1.312.986.986 0 0 0 1.297-.53C6.046 4.924 8.681 3 11.697 3c3.63 0 6.724 2.805 7.374 6.59z",clipRule:"evenodd"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"icon-refresh_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgIconRestart=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M17.919 3.15c1.33-.856 3.081.1 3.081 1.682v14.336c0 1.583-1.75 2.538-3.081 1.683L7 13.83V19a2 2 0 1 1-4 0V5a2 2 0 1 1 4 0v5.168z"})]}),SvgIconSave=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2zm1 12v6h8v-6z",clipRule:"evenodd"})]});function useAudioRecorder(tt,et,rt=!1,st="protected",nt="media-library"){var ot;function at(Kt,tr){return{...Kt,...tr.updatedState}}const[{recordState:lt,playState:ut,micStream:ct,micStreamAudioSourceNode:dt,audioWorkletNode:ht,audioContext:ft,encoderWorker:xt,maxDuration:yt,recordTime:vt,isEncoding:Et},bt]=reactExports.useReducer(at,{recordState:"IDLE",isEncoding:!1,playState:"IDLE",recordTime:0,maxDuration:180}),wt=reactExports.useRef(null),St=reactExports.useRef(null),Rt=reactExports.useRef(),Ct=reactExports.useRef(),{t:jt}=useTranslation(),{create:It}=useWorkspaceFile(),Pt=128,Ot=48e3;reactExports.useEffect(()=>{const Kt=new Worker("/infra/public/js/audioEncoder.js");return bt({type:"update",updatedState:{encoderWorker:Kt}}),Kt.postMessage(["init",(ft==null?void 0:ft.sampleRate)||Ot]),()=>{Nt(),Kt.terminate()}},[]);const Ut=Kt=>{var tr,or;const lr=Kt.data.inputs[0][0];let mr=Kt.data.inputs[0][1];(!mr||mr.filter(yr=>yr!==void 0).length===0)&&(mr=lr),(tr=Rt.current)==null||tr.push(lr),(or=Ct.current)==null||or.push(mr)},Nt=reactExports.useCallback(()=>{ct==null||ct.getTracks().forEach(Kt=>Kt.stop()),dt==null||dt.disconnect(),ht==null||ht.port.removeEventListener("message",Ut),ht==null||ht.port.close(),ht==null||ht.disconnect(),ft==null||ft.close()},[ft,ht,ct,dt]),Ht=async()=>{const Kt=await navigator.mediaDevices.getUserMedia({audio:!0}),tr=new AudioContext({sampleRate:Ot}),or=tr.createMediaStreamSource(Kt);try{await tr.audioWorklet.addModule("/infra/public/js/audio-recorder-processor.js")}catch(mr){console.error(mr)}const lr=new AudioWorkletNode(tr,"audio-recorder-processor");lr.port.addEventListener("message",Ut),bt({type:"update",updatedState:{micStream:Kt,micStreamAudioSourceNode:or,audioContext:tr,recordTime:0,audioWorkletNode:lr,recordState:"RECORDING",playState:"IDLE"}}),Ct.current=[],Rt.current=[],lr.port.start(),or.connect(lr),lr.connect(tr.destination)},Lt=reactExports.useCallback(async()=>{St.current&&(St.current.currentTime=0,St.current.pause()),lt==="PAUSED"?(bt({type:"update",updatedState:{recordState:"RECORDING",playState:"IDLE"}}),ft==null||ft.resume(),et==null||et(void 0)):Ht()},[lt,ft,St]),kt=reactExports.useCallback(()=>{bt({type:"update",updatedState:{recordState:"PAUSED",playState:"IDLE",isEncoding:!0}}),ft==null||ft.suspend(),xt&&Rt.current&&Ct.current&&(xt.postMessage(["wav",Ct.current,Rt.current,Ct.current.length*Pt]),xt.onmessage=Kt=>{const tr=window.URL.createObjectURL(Kt.data);bt({type:"update",updatedState:{isEncoding:!1}}),St.current&&(St.current.src=tr),et&&et(tr)})},[ft,xt,et]),$t=reactExports.useCallback(()=>{var Kt;bt({type:"update",updatedState:{playState:"PLAYING"}}),((Kt=St==null?void 0:St.current)!=null&&Kt.currentTime||St.current)&&St.current.play()},[St]),Ft=reactExports.useCallback(()=>{var Kt;(Kt=St==null?void 0:St.current)==null||Kt.pause(),bt({type:"update",updatedState:{playState:"PAUSED"}})},[St]),Gt=reactExports.useCallback(()=>{Nt(),bt({type:"update",updatedState:{playState:"IDLE",recordState:"IDLE"}}),Ct.current=[],Rt.current=[],et&&et(void 0)},[Nt,et]),Mt=reactExports.useCallback(async()=>{var Kt;const tr=(Kt=wt.current)==null?void 0:Kt.value;if(!tr){console.error("Audio name is required");return}return St.current&&(St.current.pause(),St.current.currentTime=0),bt({type:"update",updatedState:{recordState:"SAVING",playState:"IDLE"}}),new Promise((or,lr)=>{try{xt&&Rt.current&&Ct.current&&(xt.postMessage(["mp3",Ct.current,Rt.current,Ct.current.length*Pt]),xt.onmessage=async mr=>{if(mr.data instanceof Blob){const yr=new File([mr.data],tr,{type:"audio/mp3"}),dr=await It(yr,{application:nt,visibility:st});dr&&tt&&tt(dr),bt({type:"update",updatedState:{recordState:"SAVED"}}),or(dr)}})}catch(mr){bt({type:"update",updatedState:{playState:"IDLE",recordState:"IDLE"}}),console.error("Error while saving",mr),lr()}})},[lt,tt,Nt]),Vt=reactExports.useCallback(()=>{St!=null&&St.current&&(St.current.pause(),St.current.currentTime=0),bt({type:"update",updatedState:{playState:"IDLE"}})},[St]),Bt=reactExports.useCallback(()=>{bt({type:"update",updatedState:{playState:"PAUSED"}}),St.current&&(St.current.currentTime=0)},[St]);reactExports.useEffect(()=>{if(lt==="RECORDING"&&ft){const Kt=window.setInterval(()=>{bt({type:"update",updatedState:{recordTime:ft.currentTime}}),ft.currentTime>=yt&&(kt(),window.clearInterval(Kt))},100);return()=>window.clearInterval(Kt)}},[ft,kt,yt,lt]);const qt=jt(lt==="IDLE"?"bbm.audio.record.start":"bbm.audio.record.resume"),Yt=[{type:"icon",name:"record",visibility:lt==="RECORDING"?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconRecord,{}),color:"danger",disabled:lt!=="IDLE"&<!=="PAUSED"||vt>=yt,onClick:Lt,"aria-label":qt},tooltip:qt},{type:"icon",name:"recordPause",visibility:lt==="RECORDING"?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconRecordPause,{}),color:"danger",disabled:lt!=="RECORDING",onClick:kt,"aria-label":jt("bbm.audio.record.pause")},tooltip:jt("bbm.audio.record.pause")},{type:"divider"},{type:"icon",name:"encoding",visibility:Et?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconLoader,{style:{animation:"loading 1s infinite"}}),disabled:!0}},{type:"icon",name:"play",visibility:Et||ut==="PLAYING"?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconPlayFilled,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&<!=="SAVED",onClick:$t,"aria-label":jt("bbm.audio.play.start")},tooltip:jt("bbm.audio.play.start")},{type:"icon",name:"playPause",visibility:!Et&&ut==="PLAYING"?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconPause,{}),onClick:Ft,"aria-label":jt("bbm.audio.play.pause")},tooltip:jt("bbm.audio.play.pause")},{type:"icon",name:"stop",props:{icon:jsxRuntimeExports.jsx(SvgIconRestart,{}),disabled:ut!=="PLAYING"&&ut!=="PAUSED",onClick:Vt,"aria-label":jt("bbm.audio.play.stop")},tooltip:jt("bbm.audio.play.stop")},{type:"divider"},{type:"icon",name:"reset",props:{icon:jsxRuntimeExports.jsx(SvgIconRefresh,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&&ut!=="PLAYING"&&ut!=="PAUSED",onClick:Gt,"aria-label":jt("bbm.audio.record.reset")},tooltip:jt("bbm.audio.record.reset")},{type:"icon",name:"save",visibility:rt?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconSave,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&&ut!=="PLAYING"&&ut!=="PAUSED"||lt==="SAVED"||!((ot=wt.current)!=null&&ot.value),onClick:Mt,"aria-label":jt("bbm.audio.record.save")},tooltip:jt("bbm.audio.record.save")}];return{recordState:lt,playState:ut,audioContext:ft,recordTime:vt*1e3,maxDuration:yt*1e3,audioRef:St,audioNameRef:wt,toolbarItems:Yt,handlePlayEnded:Bt,handleSave:Mt}}const Toolbar=reactExports.forwardRef(({items:tt,variant:et="default",align:rt="space",isBlock:st=!1,ariaControls:nt,className:ot,shouldHideLabelsOnMobile:at=!1},lt)=>{const[ut,ct]=reactExports.useState(0),[dt,ht]=reactExports.useState([]),[ft,xt]=reactExports.useState(),[yt,vt]=reactExports.useState(),Et=reactExports.useRef(),{lg:bt}=useBreakpoint(),wt=clsx("toolbar z-1000 bg-white",ot,{default:et==="default","no-shadow":et==="no-shadow","d-flex":st,"d-inline-flex":!st,"overflow-x-auto":st,"justify-content-start":rt==="left","justify-content-between":rt==="space","justify-content-center":rt==="center","justify-content-end":rt==="right"});reactExports.useEffect(()=>{var Pt;const Ot=(Pt=Et.current)==null?void 0:Pt.querySelectorAll("button"),Ut=[];let Nt=!1;Ot==null||Ot.forEach(Ht=>{Ht.disabled||(Nt||(xt(Ht),Nt=!0),vt(Ht),Ut.push(Ht))}),ht(Ut),ct(tt.findIndex(Ht=>(Ht.type==="button"||Ht.type==="icon")&&!Ht.props.disabled))},[tt]);const St=Pt=>{Pt.target.classList.add("focus")},Rt=Pt=>{Pt.target.classList.remove("focus")},Ct=Pt=>{var Ot,Ut;const Nt=dt.indexOf(Pt.currentTarget);switch(Pt.code){case"ArrowLeft":Pt.currentTarget===ft?yt==null||yt.focus():(Ot=dt[Nt-1])==null||Ot.focus();break;case"ArrowRight":Pt.currentTarget===yt?ft==null||ft.focus():(Ut=dt[Nt+1])==null||Ut.focus();break}},jt=Pt=>{var Ot;return typeof Pt.tooltip=="string"?Pt.tooltip:(Ot=Pt.tooltip)==null?void 0:Ot.message},It=Pt=>{var Ot;return typeof Pt.tooltip!="string"?(Ot=Pt.tooltip)==null?void 0:Ot.position:"top"};return jsxRuntimeExports.jsx("div",{ref:mergeRefs(lt,Et),className:wt,role:"toolbar","aria-label":"Text Formatting","aria-controls":nt,onFocus:St,onBlur:Rt,children:tt.map((Pt,Ot)=>{if(Pt.visibility==="hide")return null;const Ut=at&&!bt;switch(Pt.type){case"divider":return jsxRuntimeExports.jsx("div",{className:"toolbar-divider"},Pt.name??Ot);case"button":return jsxRuntimeExports.jsx(Tooltip,{message:Ut?jt(Pt):void 0,placement:It(Pt),children:reactExports.createElement(Button,{...Pt.props,children:!Ut&&Pt.props.children,"aria-label":Pt.name,key:Pt.name??Ot,color:Pt.props.color||"tertiary",variant:"ghost",size:Pt.props.size||Ut?"sm":"md",tabIndex:Ot===ut?0:-1,onKeyDown:Ct})},Pt.name??Ot);case"icon":return jsxRuntimeExports.jsx(Tooltip,{message:jt(Pt),placement:It(Pt),children:reactExports.createElement(IconButton,{...Pt.props,key:Pt.name??Ot,color:Pt.props.color?Pt.props.color:"tertiary",variant:Pt.props.variant?Pt.props.variant:"ghost",tabIndex:Ot===ut?0:-1,onKeyDown:Ct})},Pt.name??Ot);case"dropdown":return reactExports.createElement(Dropdown,{...Pt.props,key:Pt.name??Ot,extraTriggerKeyDownHandler:Ct,overflow:Pt.overflow});case"primary":return jsxRuntimeExports.jsx(Tooltip,{message:jt(Pt),placement:It(Pt),children:jsxRuntimeExports.jsx(Button,{...Pt.props,variant:"filled",color:"primary",tabIndex:Ot===ut?0:-1,onKeyDown:Ct})},Pt.name??Ot)}return null})})}),AudioRecorder=reactExports.forwardRef(({onSaveSuccess:tt,onRecordUpdated:et,hideSaveAction:rt=!1,visibility:st="protected"},nt)=>{const{recordState:ot,playState:at,recordTime:lt,audioRef:ut,audioNameRef:ct,toolbarItems:dt,maxDuration:ht,handlePlayEnded:ft,handleSave:xt}=useAudioRecorder(tt,et,rt,st,"media-library"),{t:yt}=useTranslation();function vt(){const Rt=new Date;return`${Rt.getFullYear()}-${String(Rt.getMonth()+1).padStart(2,"0")}-${String(Rt.getDate()).padStart(2,"0")} ${String(Rt.getHours()).padStart(2,"0")}h${String(Rt.getMinutes()).padStart(2,"0")} `+yt("bbm.audio.recorder.defaultName")}reactExports.useImperativeHandle(nt,()=>({save:xt}));const[Et,bt]=reactExports.useState(0),wt=clsx({"text-danger":ot==="RECORDING","text-success":at==="PLAYING"}),St=Rt=>{bt(Rt.target.currentTime)};return jsxRuntimeExports.jsxs("div",{className:"audio-recorder m-auto d-flex flex-column",children:[jsxRuntimeExports.jsx(FormControl,{id:"recordName",className:"mb-32",isRequired:!0,isReadOnly:ot==="SAVED"||ot==="SAVING",children:jsxRuntimeExports.jsx(Input,{type:"text",size:"sm",placeholder:yt("bbm.audio.recorder.name"),ref:ct,defaultValue:vt()})}),jsxRuntimeExports.jsx("div",{className:"audio-recorder-icon mx-auto",children:jsxRuntimeExports.jsx(SvgIconMic,{width:64,height:64,className:wt})}),jsxRuntimeExports.jsx(AudioRecorderTimer,{recordState:ot,playState:at,recordTime:lt,audioTime:Et,maxDuration:ht}),jsxRuntimeExports.jsx("audio",{ref:ut,onEnded:ft,onTimeUpdate:St,children:jsxRuntimeExports.jsx("track",{default:!0,kind:"captions",srcLang:"fr",src:""})}),jsxRuntimeExports.jsx(Toolbar,{items:dt})]})}),Audio=()=>{const{setResult:tt,setPreSuccess:et,visibility:rt}=useMediaLibraryContext(),st=reactExports.useRef(null);return jsxRuntimeExports.jsx(AudioRecorder,{ref:st,onRecordUpdated:nt=>{nt?(tt(nt),et(()=>st.current.save)):tt()},onSaveSuccess:nt=>{nt&&tt(nt)},hideSaveAction:!0,visibility:rt})},ExternalLinker=({link:tt,onChange:et,multiNodeSelected:rt=!1})=>{const{t:st}=useTranslation(),[nt,ot]=reactExports.useState((tt==null?void 0:tt.text)||""),[at,lt]=reactExports.useState((tt==null?void 0:tt.url)||""),[ut,ct]=useToggle(tt?tt.target==="_blank":!0);return reactExports.useEffect(()=>{rt&&tt!=null&&tt.text&&ot(tt.text.slice(0,20)+"...")},[rt,tt]),reactExports.useEffect(()=>{if(!at.length){et==null||et();return}const dt={url:at,text:rt?tt==null?void 0:tt.text:nt||at,target:ut?"_blank":void 0};!s$3.isLocalURL(at)&&!s$3.startWithHttp(at)&&(dt.url="http://"+at),et==null||et(dt)},[nt,at,ut]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill gap-24",children:[jsxRuntimeExports.jsxs(FormControl,{id:"linkText",isOptional:!0,children:[jsxRuntimeExports.jsx(Label,{children:st("bbm.linker.ext.text")}),jsxRuntimeExports.jsx(Input,{type:"text",placeholder:st("bbm.linker.ext.text.placeholder"),size:"md",disabled:rt,value:nt,onChange:dt=>ot(dt.target.value)})]}),jsxRuntimeExports.jsxs(FormControl,{id:"linkUrl",isRequired:!0,children:[jsxRuntimeExports.jsx(Label,{children:st("bbm.linker.ext.url")}),jsxRuntimeExports.jsx(Input,{type:"text",placeholder:st("bbm.linker.ext.url.placeholder"),size:"md",value:at,onChange:dt=>lt(dt.target.value)})]}),jsxRuntimeExports.jsx(Checkbox,{label:st("bbm.linker.open.tab"),onChange:()=>ct(),checked:ut})]})})},ExternalLink=({link:tt,multiNodeSelected:et=!1})=>{const{setResult:rt}=useMediaLibraryContext();return jsxRuntimeExports.jsx(ExternalLinker,{link:tt,onChange:st=>{rt(st)},multiNodeSelected:et})},Embed=({onSuccess:tt})=>{const{t:et}=useTranslation(),[rt,st]=reactExports.useState();function nt(ot){const at=ot.target.value;st(at),at!=null&&at.length?tt(at):tt()}return jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill",children:[jsxRuntimeExports.jsx("div",{className:"mb-32",children:et("bbm.embed.description")}),jsxRuntimeExports.jsxs("div",{className:"mb-8 d-flex",children:[jsxRuntimeExports.jsx(SvgIconCode,{className:"me-8"}),et("bbm.embed.title")]}),jsxRuntimeExports.jsx(FormControl,{id:"iframeContent",children:jsxRuntimeExports.jsx(TextArea,{size:"md",height:"sm",placeholder:et("bbm.embed.placeholder"),onChange:nt})}),!!(rt!=null&&rt.length)&&jsxRuntimeExports.jsx("div",{className:"embed-preview mt-12",dangerouslySetInnerHTML:{__html:rt}}),!(rt!=null&&rt.length)&&jsxRuntimeExports.jsx("div",{className:"embed-preview mt-12 d-flex align-items-center justify-content-center bg-gray-300 text-black-50 rounded-3",children:jsxRuntimeExports.jsx("strong",{children:et("bbm.embed.preview")})})]})},Iframe=()=>{const{setResult:tt}=useMediaLibraryContext();return jsxRuntimeExports.jsx(Embed,{onSuccess:et=>{et=et==null?void 0:et.replace(/<p /g,"<div ").replace(/\/p>/g,"/div>"),tt(et)}})},SvgIconUsers=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#icon-users_svg__a)",clipRule:"evenodd",children:jsxRuntimeExports.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272M15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036M1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"icon-users_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),LinkerCard=({doc:tt,isClickable:et=!0,isSelectable:rt=!1,isSelected:st=!1,onClick:nt,className:ot})=>{const{fromNow:at}=useDate(),{fromDate:lt}=reactExports.useMemo(()=>({fromDate:at(tt.modifiedAt)}),[at,tt]);return jsxRuntimeExports.jsx(Card,{className:clsx("card-linker shadow-none",ot),isClickable:et,isSelectable:rt,isSelected:st,onClick:nt,children:jsxRuntimeExports.jsxs(Card.Body,{space:"8",children:[jsxRuntimeExports.jsx("div",{className:"card-image ps-8 pe-4",children:tt.thumbnail&&tt.thumbnail.length>0?jsxRuntimeExports.jsx(Image$1,{alt:"",height:48,width:48,src:tt.thumbnail,objectFit:"cover",className:"rounded h-full",style:{aspectRatio:1/1}}):jsxRuntimeExports.jsx(AppIcon,{app:tt.application,iconFit:"ratio",size:"48",variant:"rounded"})}),jsxRuntimeExports.jsxs("div",{className:"w-75",children:[jsxRuntimeExports.jsx(Card.Text,{children:tt.name}),jsxRuntimeExports.jsx(Card.Text,{className:"text-black-50",children:tt==null?void 0:tt.creatorName})]}),jsxRuntimeExports.jsx("div",{className:"d-none d-md-block text-black-50 ps-4 pe-8",children:jsxRuntimeExports.jsx(Card.Text,{children:lt})}),tt.shared&&jsxRuntimeExports.jsx("div",{className:"ps-4 pe-8",children:jsxRuntimeExports.jsx(SvgIconUsers,{width:"20",height:"20"})})]})})},useResourceSearch=tt=>{const[et,rt]=reactExports.useState([]);reactExports.useEffect(()=>{(async()=>(await SnipletsService.initialize(odeServices,tt),await SnipletsService.registerBehaviours(tt),rt(SnipletsService.resourceProducingApps)))()},[]);const st=reactExports.useCallback(async nt=>{const[ot]=nt.types;return await odeServices.behaviour(tt,ot).loadResources(nt)},[tt]);return{resourceApplications:et,loadResources:st}},illuOneBlog="/assets/js/ode-explorer/illu-empty-search-blog.svg",illuOneCollaborativeWall="/assets/js/ode-explorer/illu-empty-search-collaborativewall.svg",illuOneCommunity="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_149764)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M167.746%20130.552C172.704%20130.552%20176.962%20132.327%20180.519%20135.877C184.076%20139.427%20185.855%20143.677%20185.854%20148.625C185.854%20153.574%20184.076%20157.823%20180.519%20161.373C176.962%20164.923%20172.758%20166.698%20167.908%20166.698C163.057%20166.698%20158.799%20164.923%20155.135%20161.373C151.47%20157.823%20149.692%20153.52%20149.799%20148.464C149.799%20146.528%20150.23%20144.43%20151.093%20142.171L123.768%20122.484C118.487%20127.863%20112.127%20130.552%20104.69%20130.552C97.2522%20130.552%2090.8927%20127.917%2085.6111%20122.646C80.3295%20117.374%2077.6348%20110.974%2077.5271%20103.443C77.5271%20102.475%2077.6887%20101.077%2078.012%2099.2476L56.3468%2092.1477C54.6221%2093.6538%2052.6819%2094.4069%2050.5261%2094.4069C47.9391%2094.4069%2045.7833%2093.5463%2044.0587%2091.825C42.334%2090.1037%2041.4717%2087.9522%2041.4717%2085.3703C41.4717%2082.7884%2042.334%2080.6906%2044.0587%2079.0771C45.7833%2077.4635%2047.9391%2076.6028%2050.5261%2076.4952C52.6819%2076.4952%2054.5143%2077.1944%2056.0234%2078.5928C57.5325%2079.9912%2058.5564%2081.6586%2059.0953%2083.595L80.9224%2090.8565C83.1858%2086.4458%2086.4734%2082.9496%2090.785%2080.3677C95.0966%2077.7858%2099.7315%2076.4948%20104.69%2076.4948C110.295%2076.4948%20115.468%2078.1623%20120.211%2081.4971L152.386%2049.3856C150.661%2046.1582%20149.799%2043.1998%20149.799%2040.5105C149.799%2035.562%20151.577%2031.3127%20155.134%2027.7625C158.691%2024.2123%20162.949%2022.4373%20167.907%2022.4375C172.866%2022.4377%20177.069%2024.2127%20180.518%2027.7625C183.968%2031.3123%20185.746%2035.5616%20185.854%2040.5105C185.962%2045.4593%20184.183%2049.6548%20180.518%2053.0969C176.854%2056.539%20172.596%2058.314%20167.745%2058.4219C164.943%2058.4219%20161.979%2057.5075%20158.853%2055.6788L126.678%2087.9518C130.02%2092.6851%20131.69%2097.8488%20131.69%20103.443C131.69%20107.423%20130.774%20111.35%20128.942%20115.223L156.266%20134.748C159.823%20131.951%20163.65%20130.552%20167.746%20130.552V130.552Z'%20fill='%23A348C0'/%3e%3cg%20filter='url(%23filter0_d_3597_149764)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_149764'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_149764'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_149764'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_149764'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneExercizer="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_148725)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M83.4104%20149.864L112.194%20135.472V111.738L83.4104%20124.138V149.864ZM78.5673%20115.516L108.965%20102.602L78.5673%2089.5493L48.3412%20102.773L78.5673%20115.516ZM160.349%20149.864L189.167%20135.472V111.738L160.384%20124.138L160.349%20149.864ZM155.506%20115.516L185.732%20102.773L155.472%2089.7211L125.074%20102.773L155.506%20115.516ZM121.88%2093.568L150.663%2081.2028V61.3498L121.88%2073.715V93.568ZM117.037%2065.2311L150.114%2051.1141L117.037%2036.8598L83.9256%2051.1141L117.037%2065.2311ZM198.682%20104.113V135.472C198.694%20137.212%20198.231%20138.923%20197.342%20140.418C196.429%20141.946%20195.059%20143.147%20193.426%20143.853L159.8%20160.684C158.476%20161.382%20157.003%20161.746%20155.506%20161.746C154.01%20161.746%20152.536%20161.382%20151.213%20160.684L117.586%20143.853C117.379%20143.822%20117.187%20143.726%20117.037%20143.578C116.881%20143.717%20116.692%20143.812%20116.487%20143.853L82.8608%20160.684C81.5508%20161.417%2080.068%20161.784%2078.5673%20161.748C77.0983%20161.794%2075.6461%20161.425%2074.3769%20160.684L40.7504%20143.853C39.1325%20143.137%2037.7764%20141.937%2036.8691%20140.418C35.9651%20138.922%2035.4568%20137.22%2035.3921%20135.472V104.113C35.3757%20102.237%2035.9395%20100.401%2037.0064%2098.8576C38.051%2097.299%2039.55%2096.0997%2041.2999%2095.4228L73.8617%2081.4433V51.3889C73.8545%2049.5056%2074.3966%2047.6611%2075.4214%2046.0811C76.4463%2044.5011%2077.9095%2043.2541%2079.6321%2042.4928L113.259%2028.1011C114.45%2027.581%20115.737%2027.3125%20117.037%2027.3125C118.337%2027.3125%20119.623%2027.581%20120.815%2028.1011L154.442%2042.4928C156.151%2043.2379%20157.633%2044.4231%20158.735%2045.9276C159.819%2047.5145%20160.383%2049.3988%20160.349%2051.3202V81.3059L192.911%2095.2854C194.661%2095.9623%20196.16%2097.1616%20197.205%2098.7202C198.26%20100.263%20198.779%20102.109%20198.682%20103.975V104.113Z'%20fill='%23A348C0'/%3e%3cg%20filter='url(%23filter0_d_3597_148725)'%3e%3cellipse%20cx='169.707'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.011%20150.405C214.308%20149.703%20213.482%20149.21%20212.605%20148.92C220.41%20139.391%20225.098%20127.21%20225.098%20113.934C225.098%2095.9054%20216.453%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.866%2058.6953C165.678%2058.6953%20161.598%2059.1808%20157.678%2060.0649C152.634%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.366%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.634%20106.855%20114.634%20113.934C114.634%20144.442%20139.359%20169.166%20169.866%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.337%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.714%20185.775C244.113%20183.376%20244.113%20179.492%20241.714%20177.094L241.707%20177.101ZM169.859%20156.891C146.134%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.895%2090.4489C136.482%2086.4924%20139.707%2082.9924%20143.424%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.627%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_148725'%20x='108.634'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_148725'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_148725'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_148725'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneFormulaire="/assets/js/ode-explorer/illu-empty-search-formulaire.svg",illuOneForum="/assets/js/ode-explorer/illu-empty-search-forum.svg",illuOneHomeworks="/assets/js/ode-explorer/illu-empty-search-homeworks.svg",illuOneMagneto="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_149757)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M127.341%20120.329V89.4164C127.341%2077.1185%20122.455%2065.3242%20113.759%2056.6282C105.063%2047.9322%2093.2691%2043.0469%2080.9711%2043.0469C68.6731%2043.0469%2056.8789%2047.9322%2048.1829%2056.6282C39.4869%2065.3242%2034.6016%2077.1185%2034.6016%2089.4164L34.6016%20120.329H55.2103V89.4164C55.2103%2082.5842%2057.9243%2076.0319%2062.7554%2071.2008C67.5865%2066.3696%2074.1389%2063.6556%2080.9711%2063.6556C84.3541%2063.6556%2087.7039%2064.3219%2090.8294%2065.6165C93.9548%2066.9111%2096.7947%2068.8086%2099.1868%2071.2007C101.579%2073.5929%20103.476%2076.4327%20104.771%2079.5582C106.066%2082.6836%20106.732%2086.0335%20106.732%2089.4164V120.329M55.2103%20130.634H34.6016V146.09H55.2103M127.341%20130.634H106.732V146.09H127.341'%20fill='%23F1CA00'/%3e%3cpath%20d='M199.472%20120.329V89.4164C199.472%2083.3271%20198.272%2077.2974%20195.942%2071.6716C193.612%2066.0457%20190.196%2060.934%20185.89%2056.6282C181.584%2052.3224%20176.473%2048.9068%20170.847%2046.5765C165.221%2044.2463%20159.191%2043.0469%20153.102%2043.0469C140.804%2043.0469%20129.01%2047.9322%20120.314%2056.6282C111.618%2065.3242%20106.732%2077.1185%20106.732%2089.4164V120.329H127.341V89.4164C127.341%2082.5842%20130.055%2076.0319%20134.886%2071.2008C139.717%2066.3696%20146.27%2063.6556%20153.102%2063.6556C156.485%2063.6556%20159.835%2064.3219%20162.96%2065.6165C166.086%2066.9111%20168.926%2068.8086%20171.318%2071.2007C173.71%2073.5929%20175.607%2076.4327%20176.902%2079.5582C178.197%2082.6836%20178.863%2086.0335%20178.863%2089.4164V120.329M127.341%20130.634H106.732V146.09H127.341M199.472%20130.634H178.863V146.09H199.472'%20fill='%23F1CA00'/%3e%3cg%20filter='url(%23filter0_d_3597_149757)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_149757'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_149757'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_149757'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_149757'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneWiki="/assets/js/ode-explorer/illu-empty-search-wiki.svg",illuOneEmpty="/assets/js/ode-explorer/illu-empty-search.svg",illuNeoBlog="/assets/js/ode-explorer/illu-empty-search-blog2.svg",illuNeoCollaborativeWall="/assets/js/ode-explorer/illu-empty-search-collaborativewall2.svg",illuNeoCommunity="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_141038)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M167.746%20130.552C172.704%20130.552%20176.962%20132.327%20180.519%20135.877C184.076%20139.427%20185.855%20143.677%20185.854%20148.625C185.854%20153.574%20184.076%20157.823%20180.519%20161.373C176.962%20164.923%20172.758%20166.698%20167.908%20166.698C163.057%20166.698%20158.799%20164.923%20155.135%20161.373C151.47%20157.823%20149.692%20153.52%20149.799%20148.464C149.799%20146.528%20150.23%20144.43%20151.093%20142.171L123.768%20122.484C118.487%20127.863%20112.127%20130.552%20104.69%20130.552C97.2522%20130.552%2090.8927%20127.917%2085.6111%20122.646C80.3295%20117.374%2077.6348%20110.974%2077.5271%20103.443C77.5271%20102.475%2077.6887%20101.077%2078.012%2099.2476L56.3468%2092.1477C54.6221%2093.6538%2052.6819%2094.4069%2050.5261%2094.4069C47.9391%2094.4069%2045.7833%2093.5463%2044.0587%2091.825C42.334%2090.1037%2041.4717%2087.9522%2041.4717%2085.3703C41.4717%2082.7884%2042.334%2080.6906%2044.0587%2079.0771C45.7833%2077.4635%2047.9391%2076.6028%2050.5261%2076.4952C52.6819%2076.4952%2054.5143%2077.1944%2056.0234%2078.5928C57.5325%2079.9912%2058.5564%2081.6586%2059.0953%2083.595L80.9224%2090.8565C83.1858%2086.4458%2086.4734%2082.9496%2090.785%2080.3677C95.0966%2077.7858%2099.7315%2076.4948%20104.69%2076.4948C110.295%2076.4948%20115.468%2078.1623%20120.211%2081.4971L152.386%2049.3856C150.661%2046.1582%20149.799%2043.1998%20149.799%2040.5105C149.799%2035.562%20151.577%2031.3127%20155.134%2027.7625C158.691%2024.2123%20162.949%2022.4373%20167.907%2022.4375C172.866%2022.4377%20177.069%2024.2127%20180.518%2027.7625C183.968%2031.3123%20185.746%2035.5616%20185.854%2040.5105C185.962%2045.4593%20184.183%2049.6548%20180.518%2053.0969C176.854%2056.539%20172.596%2058.314%20167.745%2058.4219C164.943%2058.4219%20161.979%2057.5075%20158.853%2055.6788L126.678%2087.9518C130.02%2092.6851%20131.69%2097.8488%20131.69%20103.443C131.69%20107.423%20130.774%20111.35%20128.942%20115.223L156.266%20134.748C159.823%20131.951%20163.65%20130.552%20167.746%20130.552V130.552Z'%20fill='%23823AA1'/%3e%3cg%20filter='url(%23filter0_d_3597_141038)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_141038'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_141038'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_141038'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_141038'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoExercizer="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_148718)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M83.4104%20149.864L112.194%20135.472V111.738L83.4104%20124.138V149.864ZM78.5673%20115.516L108.965%20102.602L78.5673%2089.5493L48.3412%20102.773L78.5673%20115.516ZM160.349%20149.864L189.167%20135.472V111.738L160.384%20124.138L160.349%20149.864ZM155.506%20115.516L185.732%20102.773L155.472%2089.7211L125.074%20102.773L155.506%20115.516ZM121.88%2093.568L150.663%2081.2028V61.3498L121.88%2073.715V93.568ZM117.037%2065.2311L150.114%2051.1141L117.037%2036.8598L83.9256%2051.1141L117.037%2065.2311ZM198.682%20104.113V135.472C198.694%20137.212%20198.231%20138.923%20197.342%20140.418C196.429%20141.946%20195.059%20143.147%20193.426%20143.853L159.8%20160.684C158.476%20161.382%20157.003%20161.746%20155.506%20161.746C154.01%20161.746%20152.536%20161.382%20151.213%20160.684L117.586%20143.853C117.379%20143.822%20117.187%20143.726%20117.037%20143.578C116.881%20143.717%20116.692%20143.812%20116.487%20143.853L82.8608%20160.684C81.5508%20161.417%2080.068%20161.784%2078.5673%20161.748C77.0983%20161.794%2075.6461%20161.425%2074.3769%20160.684L40.7504%20143.853C39.1325%20143.137%2037.7764%20141.937%2036.8691%20140.418C35.9651%20138.922%2035.4568%20137.22%2035.3921%20135.472V104.113C35.3757%20102.237%2035.9395%20100.401%2037.0064%2098.8576C38.051%2097.299%2039.55%2096.0997%2041.2999%2095.4228L73.8617%2081.4433V51.3889C73.8545%2049.5056%2074.3966%2047.6611%2075.4214%2046.0811C76.4463%2044.5011%2077.9095%2043.2541%2079.6321%2042.4928L113.259%2028.1011C114.45%2027.581%20115.737%2027.3125%20117.037%2027.3125C118.337%2027.3125%20119.623%2027.581%20120.815%2028.1011L154.442%2042.4928C156.151%2043.2379%20157.633%2044.4231%20158.735%2045.9276C159.819%2047.5145%20160.383%2049.3988%20160.349%2051.3202V81.3059L192.911%2095.2854C194.661%2095.9623%20196.16%2097.1616%20197.205%2098.7202C198.26%20100.263%20198.779%20102.109%20198.682%20103.975V104.113Z'%20fill='%23823AA1'/%3e%3cg%20filter='url(%23filter0_d_3597_148718)'%3e%3cellipse%20cx='169.707'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.011%20150.405C214.308%20149.703%20213.482%20149.21%20212.605%20148.92C220.41%20139.391%20225.098%20127.21%20225.098%20113.934C225.098%2095.9054%20216.453%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.866%2058.6953C165.678%2058.6953%20161.598%2059.1808%20157.678%2060.0649C152.634%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.366%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.634%20106.855%20114.634%20113.934C114.634%20144.442%20139.359%20169.166%20169.866%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.337%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.714%20185.775C244.113%20183.376%20244.113%20179.492%20241.714%20177.094L241.707%20177.101ZM169.859%20156.891C146.134%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.895%2090.4489C136.482%2086.4924%20139.707%2082.9924%20143.424%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.627%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_148718'%20x='108.634'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_148718'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_148718'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_148718'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoFormulaire="/assets/js/ode-explorer/illu-empty-search-formulaire2.svg",illuNeoForum="/assets/js/ode-explorer/illu-empty-search-forum2.svg",illuNeoHomeworks="/assets/js/ode-explorer/illu-empty-search-homeworks2.svg",illuNeoMagneto="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_141030)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M127.341%20120.329V89.4164C127.341%2077.1185%20122.455%2065.3242%20113.759%2056.6282C105.063%2047.9322%2093.2691%2043.0469%2080.9711%2043.0469C68.6731%2043.0469%2056.8789%2047.9322%2048.1829%2056.6282C39.4869%2065.3242%2034.6016%2077.1185%2034.6016%2089.4164L34.6016%20120.329H55.2103V89.4164C55.2103%2082.5842%2057.9243%2076.0319%2062.7554%2071.2008C67.5865%2066.3696%2074.1389%2063.6556%2080.9711%2063.6556C84.3541%2063.6556%2087.7039%2064.3219%2090.8294%2065.6165C93.9548%2066.9111%2096.7947%2068.8086%2099.1868%2071.2007C101.579%2073.5929%20103.476%2076.4327%20104.771%2079.5582C106.066%2082.6836%20106.732%2086.0335%20106.732%2089.4164V120.329M55.2103%20130.634H34.6016V146.09H55.2103M127.341%20130.634H106.732V146.09H127.341'%20fill='%23ECBE30'/%3e%3cpath%20d='M199.472%20120.329V89.4164C199.472%2083.3271%20198.272%2077.2974%20195.942%2071.6716C193.612%2066.0457%20190.196%2060.934%20185.89%2056.6282C181.584%2052.3224%20176.473%2048.9068%20170.847%2046.5765C165.221%2044.2463%20159.191%2043.0469%20153.102%2043.0469C140.804%2043.0469%20129.01%2047.9322%20120.314%2056.6282C111.618%2065.3242%20106.732%2077.1185%20106.732%2089.4164V120.329H127.341V89.4164C127.341%2082.5842%20130.055%2076.0319%20134.886%2071.2008C139.717%2066.3696%20146.27%2063.6556%20153.102%2063.6556C156.485%2063.6556%20159.835%2064.3219%20162.96%2065.6165C166.086%2066.9111%20168.926%2068.8086%20171.318%2071.2007C173.71%2073.5929%20175.607%2076.4327%20176.902%2079.5582C178.197%2082.6836%20178.863%2086.0335%20178.863%2089.4164V120.329M127.341%20130.634H106.732V146.09H127.341M199.472%20130.634H178.863V146.09H199.472'%20fill='%23ECBE30'/%3e%3cg%20filter='url(%23filter0_d_3597_141030)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_141030'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_141030'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_141030'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_141030'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoWiki="/assets/js/ode-explorer/illu-empty-search-wiki2.svg",illuNeoEmpty="/assets/js/ode-explorer/illu-empty-search2.svg",emptyScreenMapping={one:{blog:illuOneBlog,wiki:illuOneWiki,empty:illuOneEmpty,"collaborative-wall":illuOneCollaborativeWall,community:illuOneCommunity,exercizer:illuOneExercizer,formulaire:illuOneFormulaire,forum:illuOneForum,homeworks:illuOneHomeworks,magneto:illuOneMagneto},neo:{blog:illuNeoBlog,wiki:illuNeoWiki,empty:illuNeoEmpty,"collaborative-wall":illuNeoCollaborativeWall,community:illuNeoCommunity,exercizer:illuNeoExercizer,formulaire:illuNeoFormulaire,forum:illuNeoForum,homeworks:illuNeoHomeworks,magneto:illuNeoMagneto}},InternalLinker=({appCode:tt,defaultAppCode:et,defaultResourceId:rt,onChange:st,onSelect:nt,multiple:ot=!0,resourceList:at,applicationList:lt,showApplicationSelector:ut=!0,resourceFilter:ct})=>{const{t:dt}=useTranslation(),{theme:ht}=useEdificeTheme(),{resourceApplications:ft,loadResources:xt}=useResourceSearch(tt),[yt,vt]=reactExports.useState(),[Et,bt]=reactExports.useState(),[wt,St]=reactExports.useState(),Rt=useDebounce(wt||"",500),[Ct,jt]=reactExports.useState([]),It=reactExports.useCallback((Mt,Vt)=>{var Bt,qt,Yt;if(!Vt)return!0;const Kt=(Vt==null?void 0:Vt.toLowerCase())||"";return((Bt=Mt.name)==null?void 0:Bt.toLowerCase().includes(Kt))||((qt=Mt.creatorName)==null?void 0:qt.toLowerCase().includes(Kt))||((Yt=Mt.description)==null?void 0:Yt.toLowerCase().includes(Kt))},[]),Pt=reactExports.useCallback(Mt=>Mt.sort((Vt,Bt)=>Vt.modifiedAt<Bt.modifiedAt?1:-1),[]),Ot=reactExports.useCallback(Mt=>{async function Vt(){if(at){let Bt=at.filter(qt=>It(qt,Mt));ct&&(Bt=Bt.filter(ct)),jt(Pt(Bt));return}else if(Et)try{let Bt=(await xt({application:Et.application,search:Mt,types:[Et.application],filters:{},pagination:{startIdx:0,pageSize:300}})).filter(qt=>It(qt,Mt));ct&&(Bt=Bt.filter(ct)),jt(Pt(Bt));return}catch{}jt([])}Vt()},[xt,Et,It,Pt,at,ct]),[Ut,Nt]=reactExports.useState([]),Ht=Mt=>{st==null||st(Mt),bt(Mt)},Lt=Mt=>{const Vt=Mt.target.value;St(Vt.toString())},kt=reactExports.useCallback(Mt=>{Ot(wt),Mt.stopPropagation(),Mt.preventDefault()},[Ot,wt]),$t=reactExports.useCallback(Mt=>Ut.findIndex(Vt=>Vt.assetId===Mt),[Ut]),Ft=reactExports.useCallback(Mt=>{Nt(ot?Vt=>[...Vt,Mt]:[Mt])},[Nt,ot]),Gt=reactExports.useCallback(Mt=>{const Vt=$t(Mt.assetId);Vt<0?Ft(Mt):Nt(Ut.filter((Bt,qt)=>qt!==Vt))},[$t,Ft,Ut]);return reactExports.useEffect(()=>{(async()=>{if(lt){vt(lt.sort((qt,Yt)=>qt.displayName.localeCompare(Yt.displayName)));return}const Mt=ft.map(qt=>odeServices.session().getWebApp(qt)),Vt=await Promise.all(Mt),Bt=ft.map((qt,Yt)=>{var Kt;let tr=((Kt=Vt[Yt])==null?void 0:Kt.displayName)??qt;return qt==="exercizer"?tr="bbm.linker.int.app.exercizer":qt==="formulaire"&&(tr="bbm.linker.int.app.forms"),{application:qt,displayName:dt(tr??qt),icon:jsxRuntimeExports.jsx(AppIcon,{app:Vt[Yt],size:"24"})}}).sort((qt,Yt)=>qt.displayName.localeCompare(Yt.displayName));vt(Bt)})()},[ft,dt,lt]),reactExports.useEffect(()=>{Ot(Rt)},[Ot,Rt]),reactExports.useEffect(()=>{nt==null||nt(Ut)},[Ut]),reactExports.useEffect(()=>{var Mt;const Vt=et??((lt==null?void 0:lt.length)===1&&((Mt=lt==null?void 0:lt[0])==null?void 0:Mt.application));if(Vt){const Bt=yt==null?void 0:yt.find(qt=>Vt===qt.application);bt(Bt),Ot("")}},[yt,et]),reactExports.useEffect(()=>{if(rt&&$t(rt)<0){const Mt=Ct==null?void 0:Ct.find(Vt=>rt===Vt.assetId);Mt&&Ft(Mt)}},[Ct]),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill overflow-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"search d-flex bg-light rounded-top border border-bottom-0",children:[ut&&jsxRuntimeExports.jsx("div",{className:"flex-shrink-1 px-8 py-12 border-end",children:jsxRuntimeExports.jsxs(Dropdown,{overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{icon:jsxRuntimeExports.jsx("div",{className:"pe-8",children:(Et==null?void 0:Et.icon)||jsxRuntimeExports.jsx(SvgIconApplications,{})}),label:dt((Et==null?void 0:Et.displayName)||"bbm.linker.int.choose"),variant:"ghost",size:"md"}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:yt==null?void 0:yt.map(Mt=>jsxRuntimeExports.jsx(Dropdown.Item,{icon:Mt.icon,onClick:()=>Ht(Mt),children:Mt.displayName},Mt.application))})]})}),jsxRuntimeExports.jsx("div",{className:"flex-grow-1 align-self-center",children:jsxRuntimeExports.jsx("form",{className:"gap-16 d-flex w-100 align-items-center px-16 py-8",onSubmit:kt,children:jsxRuntimeExports.jsx(SearchBar,{isVariant:!0,placeholder:dt("search"),size:"lg",className:"w-100",disabled:!Et,onChange:Lt})})})]}),jsxRuntimeExports.jsxs("div",{className:"internal-linker flex-grow-1 w-100 rounded-bottom border gap-0 overflow-auto",children:[Et&&Ct&&Ct.length>0&&jsxRuntimeExports.jsx("div",{children:Ct.map(Mt=>{const Vt=Ut.findIndex(Bt=>Bt.assetId===Mt.assetId)>=0;return jsxRuntimeExports.jsx(LinkerCard,{doc:Mt,isSelected:Vt,onClick:()=>Gt(Mt)},Mt.path)})}),Et&&Ct&&Ct.length<=0&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-16",children:jsxRuntimeExports.jsx(EmptyScreen,{imageSrc:emptyScreenMapping[(ht==null?void 0:ht.bootstrapVersion)??"one"][Et==null?void 0:Et.application],text:dt("bbm.linker.int.notfound"),className:"mt-16"})}),!Et&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-32",children:jsxRuntimeExports.jsx(EmptyScreen,{imageSrc:emptyScreenMapping[(ht==null?void 0:ht.bootstrapVersion)??"one"].empty,text:dt("bbm.linker.int.empty"),className:"mt-32"})})]})]})},InternalLink=({target:tt,resourceId:et,appPrefix:rt})=>{const{t:st}=useTranslation(),{setResult:nt,setResultCounter:ot,appCode:at,multiple:lt}=useMediaLibraryContext(),[ut,ct]=useToggle(tt==="_blank"),[dt,ht]=reactExports.useState([]),ft=xt=>{ht(xt)};return reactExports.useEffect(()=>{nt({target:ut?"_blank":void 0,resources:dt}),dt&&dt.length?ot(dt.length):ot(void 0)},[ut,dt]),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill gap-16 overflow-hidden",children:[jsxRuntimeExports.jsx(InternalLinker,{appCode:at,defaultAppCode:rt,defaultResourceId:et,onSelect:ft,multiple:lt}),jsxRuntimeExports.jsx(Checkbox,{className:"align-items-center",checked:ut,label:st("bbm.linker.open.tab"),onChange:ct})]})},SvgIconReset=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.583 7.313 3.976 3.87a.996.996 0 1 0-1.96.346l1.012 5.747a.996.996 0 0 0 1.153.809l5.743-1.014a.997.997 0 0 0-.346-1.962l-3.3.582a7.754 7.754 0 0 1 8.399-4.254 7.76 7.76 0 0 1 .78 15.064 7.745 7.745 0 0 1-8.912-3.56.995.995 0 1 0-1.724.997 9.744 9.744 0 0 0 11.201 4.474 9.74 9.74 0 0 0 5.19-3.718 9.756 9.756 0 0 0-.625-12.055A9.74 9.74 0 0 0 8.73 3.117a9.75 9.75 0 0 0-4.147 4.196",clipRule:"evenodd"})]}),SvgIconWand=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 0a1 1 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 0 2 1 1 0 0 0-1 1 1 1 0 1 1-2 0 1 1 0 0 0-1-1 1 1 0 0 1 0-2 1 1 0 0 0 1-1 1 1 0 0 1 1-1m9.914 2a2 2 0 0 0-2.828 0L1 18.086a2 2 0 0 0 0 2.828L3.086 23a2 2 0 0 0 2.828 0L22 6.914a2 2 0 0 0 0-2.828zm-3.75 3.75L18.5 3.414 20.586 5.5 18.25 7.836zM14.75 7.164 2.414 19.5 4.5 21.586 16.836 9.25zM21 13a1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 1 1 0 0 1 1-1 1 1 0 1 0 0-2 1 1 0 0 1-1-1",clipRule:"evenodd"})]}),UploadCard=({item:tt,status:et="idle",isClickable:rt=!1,isSelectable:st=!1,onDelete:nt,onEdit:ot,onRetry:at})=>{const{t:lt}=useTranslation(),{src:ut,name:ct,info:dt}=tt,ht=et==="idle",ft=et==="loading",xt=et==="success",yt=dt==null?void 0:dt.type.startsWith("image"),vt={text:"",context:null,image:jsxRuntimeExports.jsx("img",{src:commonPlaceholder,alt:"",width:"48",height:"48"})},Et={error:{text:jsxRuntimeExports.jsx("strong",{children:jsxRuntimeExports.jsx("small",{className:"text-danger caption",children:lt("tiptap.upload.error")})}),context:jsxRuntimeExports.jsx(Button,{leftIcon:jsxRuntimeExports.jsx(SvgIconReset,{}),variant:"ghost",color:"tertiary",onClick:at,children:lt("tiptap.upload.retry")}),image:jsxRuntimeExports.jsx(Image$1,{alt:"",src:`${commonPlaceholder}/common/image-status-error.svg`,objectFit:"cover"})},idle:vt,loading:{text:"",context:jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.loading"),placement:"top",children:jsxRuntimeExports.jsx(Loading,{isLoading:!0,loadingPosition:"left",className:"text-secondary"})}),image:vt.image},warning:vt,success:{text:jsxRuntimeExports.jsxs("em",{children:[dt==null?void 0:dt.type," ",(dt==null?void 0:dt.weight)&&`- ${dt.weight}`]}),context:jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.loaded"),placement:"top",children:jsxRuntimeExports.jsx(SvgIconSuccessOutline,{className:"text-success"})}),image:jsxRuntimeExports.jsx(Image$1,{alt:"",src:ut??"",width:"48",objectFit:"cover",className:"rounded",style:{aspectRatio:1/1}})},unknown:vt},bt=()=>yt&&jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.edit"),placement:"top",children:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgIconWand,{}),variant:"ghost","aria-label":lt("tiptap.tooltip.upload.loading"),disabled:ft||!xt,onClick:ot,color:"secondary"})});return jsxRuntimeExports.jsx(Card,{isClickable:rt,isSelectable:st,className:"card-upload",children:jsxRuntimeExports.jsxs(Card.Body,{children:[jsxRuntimeExports.jsx("div",{className:"card-image",children:Et[et].image}),jsxRuntimeExports.jsxs("div",{className:"text-truncate",children:[jsxRuntimeExports.jsx(Card.Text,{children:ct}),jsxRuntimeExports.jsx(Card.Text,{className:"caption",children:Et[et].text})]}),!ht&&jsxRuntimeExports.jsx("div",{className:"ms-auto",children:jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center gap-12",children:[Et[et].context,!ht&&jsxRuntimeExports.jsx("div",{className:"vr"}),bt(),jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.delete"),placement:"top",children:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgIconClose,{}),variant:"ghost","aria-label":lt("tiptap.tooltip.upload.delete"),color:"tertiary",onClick:nt})})]})})]})})};var module$1={exports:{}},ENV=(tt=>(tt[tt.WEBGL_LEGACY=0]="WEBGL_LEGACY",tt[tt.WEBGL=1]="WEBGL",tt[tt.WEBGL2=2]="WEBGL2",tt))(ENV||{}),RENDERER_TYPE=(tt=>(tt[tt.UNKNOWN=0]="UNKNOWN",tt[tt.WEBGL=1]="WEBGL",tt[tt.CANVAS=2]="CANVAS",tt))(RENDERER_TYPE||{}),BUFFER_BITS=(tt=>(tt[tt.COLOR=16384]="COLOR",tt[tt.DEPTH=256]="DEPTH",tt[tt.STENCIL=1024]="STENCIL",tt))(BUFFER_BITS||{}),BLEND_MODES=(tt=>(tt[tt.NORMAL=0]="NORMAL",tt[tt.ADD=1]="ADD",tt[tt.MULTIPLY=2]="MULTIPLY",tt[tt.SCREEN=3]="SCREEN",tt[tt.OVERLAY=4]="OVERLAY",tt[tt.DARKEN=5]="DARKEN",tt[tt.LIGHTEN=6]="LIGHTEN",tt[tt.COLOR_DODGE=7]="COLOR_DODGE",tt[tt.COLOR_BURN=8]="COLOR_BURN",tt[tt.HARD_LIGHT=9]="HARD_LIGHT",tt[tt.SOFT_LIGHT=10]="SOFT_LIGHT",tt[tt.DIFFERENCE=11]="DIFFERENCE",tt[tt.EXCLUSION=12]="EXCLUSION",tt[tt.HUE=13]="HUE",tt[tt.SATURATION=14]="SATURATION",tt[tt.COLOR=15]="COLOR",tt[tt.LUMINOSITY=16]="LUMINOSITY",tt[tt.NORMAL_NPM=17]="NORMAL_NPM",tt[tt.ADD_NPM=18]="ADD_NPM",tt[tt.SCREEN_NPM=19]="SCREEN_NPM",tt[tt.NONE=20]="NONE",tt[tt.SRC_OVER=0]="SRC_OVER",tt[tt.SRC_IN=21]="SRC_IN",tt[tt.SRC_OUT=22]="SRC_OUT",tt[tt.SRC_ATOP=23]="SRC_ATOP",tt[tt.DST_OVER=24]="DST_OVER",tt[tt.DST_IN=25]="DST_IN",tt[tt.DST_OUT=26]="DST_OUT",tt[tt.DST_ATOP=27]="DST_ATOP",tt[tt.ERASE=26]="ERASE",tt[tt.SUBTRACT=28]="SUBTRACT",tt[tt.XOR=29]="XOR",tt))(BLEND_MODES||{}),DRAW_MODES=(tt=>(tt[tt.POINTS=0]="POINTS",tt[tt.LINES=1]="LINES",tt[tt.LINE_LOOP=2]="LINE_LOOP",tt[tt.LINE_STRIP=3]="LINE_STRIP",tt[tt.TRIANGLES=4]="TRIANGLES",tt[tt.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",tt[tt.TRIANGLE_FAN=6]="TRIANGLE_FAN",tt))(DRAW_MODES||{}),FORMATS=(tt=>(tt[tt.RGBA=6408]="RGBA",tt[tt.RGB=6407]="RGB",tt[tt.RG=33319]="RG",tt[tt.RED=6403]="RED",tt[tt.RGBA_INTEGER=36249]="RGBA_INTEGER",tt[tt.RGB_INTEGER=36248]="RGB_INTEGER",tt[tt.RG_INTEGER=33320]="RG_INTEGER",tt[tt.RED_INTEGER=36244]="RED_INTEGER",tt[tt.ALPHA=6406]="ALPHA",tt[tt.LUMINANCE=6409]="LUMINANCE",tt[tt.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",tt[tt.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",tt[tt.DEPTH_STENCIL=34041]="DEPTH_STENCIL",tt))(FORMATS||{}),TARGETS=(tt=>(tt[tt.TEXTURE_2D=3553]="TEXTURE_2D",tt[tt.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",tt[tt.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",tt))(TARGETS||{}),TYPES=(tt=>(tt[tt.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",tt[tt.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",tt[tt.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",tt[tt.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",tt[tt.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",tt[tt.UNSIGNED_INT=5125]="UNSIGNED_INT",tt[tt.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",tt[tt.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",tt[tt.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",tt[tt.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",tt[tt.BYTE=5120]="BYTE",tt[tt.SHORT=5122]="SHORT",tt[tt.INT=5124]="INT",tt[tt.FLOAT=5126]="FLOAT",tt[tt.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",tt[tt.HALF_FLOAT=36193]="HALF_FLOAT",tt))(TYPES||{}),SAMPLER_TYPES=(tt=>(tt[tt.FLOAT=0]="FLOAT",tt[tt.INT=1]="INT",tt[tt.UINT=2]="UINT",tt))(SAMPLER_TYPES||{}),SCALE_MODES=(tt=>(tt[tt.NEAREST=0]="NEAREST",tt[tt.LINEAR=1]="LINEAR",tt))(SCALE_MODES||{}),WRAP_MODES=(tt=>(tt[tt.CLAMP=33071]="CLAMP",tt[tt.REPEAT=10497]="REPEAT",tt[tt.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",tt))(WRAP_MODES||{}),MIPMAP_MODES=(tt=>(tt[tt.OFF=0]="OFF",tt[tt.POW2=1]="POW2",tt[tt.ON=2]="ON",tt[tt.ON_MANUAL=3]="ON_MANUAL",tt))(MIPMAP_MODES||{}),ALPHA_MODES=(tt=>(tt[tt.NPM=0]="NPM",tt[tt.UNPACK=1]="UNPACK",tt[tt.PMA=2]="PMA",tt[tt.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",tt[tt.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",tt[tt.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",tt))(ALPHA_MODES||{}),CLEAR_MODES=(tt=>(tt[tt.NO=0]="NO",tt[tt.YES=1]="YES",tt[tt.AUTO=2]="AUTO",tt[tt.BLEND=0]="BLEND",tt[tt.CLEAR=1]="CLEAR",tt[tt.BLIT=2]="BLIT",tt))(CLEAR_MODES||{}),GC_MODES=(tt=>(tt[tt.AUTO=0]="AUTO",tt[tt.MANUAL=1]="MANUAL",tt))(GC_MODES||{}),PRECISION=(tt=>(tt.LOW="lowp",tt.MEDIUM="mediump",tt.HIGH="highp",tt))(PRECISION||{}),MASK_TYPES=(tt=>(tt[tt.NONE=0]="NONE",tt[tt.SCISSOR=1]="SCISSOR",tt[tt.STENCIL=2]="STENCIL",tt[tt.SPRITE=3]="SPRITE",tt[tt.COLOR=4]="COLOR",tt))(MASK_TYPES||{}),MSAA_QUALITY=(tt=>(tt[tt.NONE=0]="NONE",tt[tt.LOW=2]="LOW",tt[tt.MEDIUM=4]="MEDIUM",tt[tt.HIGH=8]="HIGH",tt))(MSAA_QUALITY||{}),BUFFER_TYPE=(tt=>(tt[tt.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",tt[tt.ARRAY_BUFFER=34962]="ARRAY_BUFFER",tt[tt.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",tt))(BUFFER_TYPE||{});const BrowserAdapter={createCanvas:(tt,et)=>{const rt=document.createElement("canvas");return rt.width=tt,rt.height=et,rt},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(tt,et)=>fetch(tt,et),parseXML:tt=>new DOMParser().parseFromString(tt,"text/xml")},settings={ADAPTER:BrowserAdapter,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(tt){return typeof tt<"u"&&tt.platform==="MacIntel"&&typeof tt.maxTouchPoints=="number"&&tt.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(tt){return function(et){return et.test(tt)}}function isMobile$1(tt){var et={userAgent:"",platform:"",maxTouchPoints:0};!tt&&typeof navigator<"u"?et={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof tt=="string"?et.userAgent=tt:tt&&tt.userAgent&&(et={userAgent:tt.userAgent,platform:tt.platform,maxTouchPoints:tt.maxTouchPoints||0});var rt=et.userAgent,st=rt.split("[FBAN");typeof st[1]<"u"&&(rt=st[0]),st=rt.split("Twitter"),typeof st[1]<"u"&&(rt=st[0]);var nt=createMatch(rt),ot={apple:{phone:nt(appleIphone)&&!nt(windowsPhone),ipod:nt(appleIpod),tablet:!nt(appleIphone)&&(nt(appleTablet)||isAppleTabletOnIos13(et))&&!nt(windowsPhone),universal:nt(appleUniversal),device:(nt(appleIphone)||nt(appleIpod)||nt(appleTablet)||nt(appleUniversal)||isAppleTabletOnIos13(et))&&!nt(windowsPhone)},amazon:{phone:nt(amazonPhone),tablet:!nt(amazonPhone)&&nt(amazonTablet),device:nt(amazonPhone)||nt(amazonTablet)},android:{phone:!nt(windowsPhone)&&nt(amazonPhone)||!nt(windowsPhone)&&nt(androidPhone),tablet:!nt(windowsPhone)&&!nt(amazonPhone)&&!nt(androidPhone)&&(nt(amazonTablet)||nt(androidTablet)),device:!nt(windowsPhone)&&(nt(amazonPhone)||nt(amazonTablet)||nt(androidPhone)||nt(androidTablet))||nt(/\bokhttp\b/i)},windows:{phone:nt(windowsPhone),tablet:nt(windowsTablet),device:nt(windowsPhone)||nt(windowsTablet)},other:{blackberry:nt(otherBlackBerry),blackberry10:nt(otherBlackBerry10),opera:nt(otherOpera),firefox:nt(otherFirefox),chrome:nt(otherChrome),device:nt(otherBlackBerry)||nt(otherBlackBerry10)||nt(otherOpera)||nt(otherFirefox)||nt(otherChrome)},any:!1,phone:!1,tablet:!1};return ot.any=ot.apple.device||ot.android.device||ot.windows.device||ot.other.device,ot.phone=ot.apple.phone||ot.android.phone||ot.windows.phone,ot.tablet=ot.apple.tablet||ot.android.tablet||ot.windows.tablet,ot}const isMobileCall=isMobile$1.default??isMobile$1,isMobile=isMobileCall(globalThis.navigator);settings.RETINA_PREFIX=/@([0-9\.]+)x/;settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var eventemitter3={exports:{}};(function(tt){var et=Object.prototype.hasOwnProperty,rt="~";function st(){}Object.create&&(st.prototype=Object.create(null),new st().__proto__||(rt=!1));function nt(ut,ct,dt){this.fn=ut,this.context=ct,this.once=dt||!1}function ot(ut,ct,dt,ht,ft){if(typeof dt!="function")throw new TypeError("The listener must be a function");var xt=new nt(dt,ht||ut,ft),yt=rt?rt+ct:ct;return ut._events[yt]?ut._events[yt].fn?ut._events[yt]=[ut._events[yt],xt]:ut._events[yt].push(xt):(ut._events[yt]=xt,ut._eventsCount++),ut}function at(ut,ct){--ut._eventsCount===0?ut._events=new st:delete ut._events[ct]}function lt(){this._events=new st,this._eventsCount=0}lt.prototype.eventNames=function(){var ct=[],dt,ht;if(this._eventsCount===0)return ct;for(ht in dt=this._events)et.call(dt,ht)&&ct.push(rt?ht.slice(1):ht);return Object.getOwnPropertySymbols?ct.concat(Object.getOwnPropertySymbols(dt)):ct},lt.prototype.listeners=function(ct){var dt=rt?rt+ct:ct,ht=this._events[dt];if(!ht)return[];if(ht.fn)return[ht.fn];for(var ft=0,xt=ht.length,yt=new Array(xt);ft<xt;ft++)yt[ft]=ht[ft].fn;return yt},lt.prototype.listenerCount=function(ct){var dt=rt?rt+ct:ct,ht=this._events[dt];return ht?ht.fn?1:ht.length:0},lt.prototype.emit=function(ct,dt,ht,ft,xt,yt){var vt=rt?rt+ct:ct;if(!this._events[vt])return!1;var Et=this._events[vt],bt=arguments.length,wt,St;if(Et.fn){switch(Et.once&&this.removeListener(ct,Et.fn,void 0,!0),bt){case 1:return Et.fn.call(Et.context),!0;case 2:return Et.fn.call(Et.context,dt),!0;case 3:return Et.fn.call(Et.context,dt,ht),!0;case 4:return Et.fn.call(Et.context,dt,ht,ft),!0;case 5:return Et.fn.call(Et.context,dt,ht,ft,xt),!0;case 6:return Et.fn.call(Et.context,dt,ht,ft,xt,yt),!0}for(St=1,wt=new Array(bt-1);St<bt;St++)wt[St-1]=arguments[St];Et.fn.apply(Et.context,wt)}else{var Rt=Et.length,Ct;for(St=0;St<Rt;St++)switch(Et[St].once&&this.removeListener(ct,Et[St].fn,void 0,!0),bt){case 1:Et[St].fn.call(Et[St].context);break;case 2:Et[St].fn.call(Et[St].context,dt);break;case 3:Et[St].fn.call(Et[St].context,dt,ht);break;case 4:Et[St].fn.call(Et[St].context,dt,ht,ft);break;default:if(!wt)for(Ct=1,wt=new Array(bt-1);Ct<bt;Ct++)wt[Ct-1]=arguments[Ct];Et[St].fn.apply(Et[St].context,wt)}}return!0},lt.prototype.on=function(ct,dt,ht){return ot(this,ct,dt,ht,!1)},lt.prototype.once=function(ct,dt,ht){return ot(this,ct,dt,ht,!0)},lt.prototype.removeListener=function(ct,dt,ht,ft){var xt=rt?rt+ct:ct;if(!this._events[xt])return this;if(!dt)return at(this,xt),this;var yt=this._events[xt];if(yt.fn)yt.fn===dt&&(!ft||yt.once)&&(!ht||yt.context===ht)&&at(this,xt);else{for(var vt=0,Et=[],bt=yt.length;vt<bt;vt++)(yt[vt].fn!==dt||ft&&!yt[vt].once||ht&&yt[vt].context!==ht)&&Et.push(yt[vt]);Et.length?this._events[xt]=Et.length===1?Et[0]:Et:at(this,xt)}return this},lt.prototype.removeAllListeners=function(ct){var dt;return ct?(dt=rt?rt+ct:ct,this._events[dt]&&at(this,dt)):(this._events=new st,this._eventsCount=0),this},lt.prototype.off=lt.prototype.removeListener,lt.prototype.addListener=lt.prototype.on,lt.prefixed=rt,lt.EventEmitter=lt,tt.exports=lt})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var earcut$1={exports:{}};earcut$1.exports=earcut;earcut$1.exports.default=earcut;function earcut(tt,et,rt){rt=rt||2;var st=et&&et.length,nt=st?et[0]*rt:tt.length,ot=linkedList(tt,0,nt,rt,!0),at=[];if(!ot||ot.next===ot.prev)return at;var lt,ut,ct,dt,ht,ft,xt;if(st&&(ot=eliminateHoles(tt,et,ot,rt)),tt.length>80*rt){lt=ct=tt[0],ut=dt=tt[1];for(var yt=rt;yt<nt;yt+=rt)ht=tt[yt],ft=tt[yt+1],ht<lt&&(lt=ht),ft<ut&&(ut=ft),ht>ct&&(ct=ht),ft>dt&&(dt=ft);xt=Math.max(ct-lt,dt-ut),xt=xt!==0?32767/xt:0}return earcutLinked(ot,at,rt,lt,ut,xt,0),at}function linkedList(tt,et,rt,st,nt){var ot,at;if(nt===signedArea(tt,et,rt,st)>0)for(ot=et;ot<rt;ot+=st)at=insertNode(ot,tt[ot],tt[ot+1],at);else for(ot=rt-st;ot>=et;ot-=st)at=insertNode(ot,tt[ot],tt[ot+1],at);return at&&equals(at,at.next)&&(removeNode(at),at=at.next),at}function filterPoints(tt,et){if(!tt)return tt;et||(et=tt);var rt=tt,st;do if(st=!1,!rt.steiner&&(equals(rt,rt.next)||area(rt.prev,rt,rt.next)===0)){if(removeNode(rt),rt=et=rt.prev,rt===rt.next)break;st=!0}else rt=rt.next;while(st||rt!==et);return et}function earcutLinked(tt,et,rt,st,nt,ot,at){if(tt){!at&&ot&&indexCurve(tt,st,nt,ot);for(var lt=tt,ut,ct;tt.prev!==tt.next;){if(ut=tt.prev,ct=tt.next,ot?isEarHashed(tt,st,nt,ot):isEar(tt)){et.push(ut.i/rt|0),et.push(tt.i/rt|0),et.push(ct.i/rt|0),removeNode(tt),tt=ct.next,lt=ct.next;continue}if(tt=ct,tt===lt){at?at===1?(tt=cureLocalIntersections(filterPoints(tt),et,rt),earcutLinked(tt,et,rt,st,nt,ot,2)):at===2&&splitEarcut(tt,et,rt,st,nt,ot):earcutLinked(filterPoints(tt),et,rt,st,nt,ot,1);break}}}}function isEar(tt){var et=tt.prev,rt=tt,st=tt.next;if(area(et,rt,st)>=0)return!1;for(var nt=et.x,ot=rt.x,at=st.x,lt=et.y,ut=rt.y,ct=st.y,dt=nt<ot?nt<at?nt:at:ot<at?ot:at,ht=lt<ut?lt<ct?lt:ct:ut<ct?ut:ct,ft=nt>ot?nt>at?nt:at:ot>at?ot:at,xt=lt>ut?lt>ct?lt:ct:ut>ct?ut:ct,yt=st.next;yt!==et;){if(yt.x>=dt&&yt.x<=ft&&yt.y>=ht&&yt.y<=xt&&pointInTriangle(nt,lt,ot,ut,at,ct,yt.x,yt.y)&&area(yt.prev,yt,yt.next)>=0)return!1;yt=yt.next}return!0}function isEarHashed(tt,et,rt,st){var nt=tt.prev,ot=tt,at=tt.next;if(area(nt,ot,at)>=0)return!1;for(var lt=nt.x,ut=ot.x,ct=at.x,dt=nt.y,ht=ot.y,ft=at.y,xt=lt<ut?lt<ct?lt:ct:ut<ct?ut:ct,yt=dt<ht?dt<ft?dt:ft:ht<ft?ht:ft,vt=lt>ut?lt>ct?lt:ct:ut>ct?ut:ct,Et=dt>ht?dt>ft?dt:ft:ht>ft?ht:ft,bt=zOrder(xt,yt,et,rt,st),wt=zOrder(vt,Et,et,rt,st),St=tt.prevZ,Rt=tt.nextZ;St&&St.z>=bt&&Rt&&Rt.z<=wt;){if(St.x>=xt&&St.x<=vt&&St.y>=yt&&St.y<=Et&&St!==nt&&St!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,St.x,St.y)&&area(St.prev,St,St.next)>=0||(St=St.prevZ,Rt.x>=xt&&Rt.x<=vt&&Rt.y>=yt&&Rt.y<=Et&&Rt!==nt&&Rt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,Rt.x,Rt.y)&&area(Rt.prev,Rt,Rt.next)>=0))return!1;Rt=Rt.nextZ}for(;St&&St.z>=bt;){if(St.x>=xt&&St.x<=vt&&St.y>=yt&&St.y<=Et&&St!==nt&&St!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,St.x,St.y)&&area(St.prev,St,St.next)>=0)return!1;St=St.prevZ}for(;Rt&&Rt.z<=wt;){if(Rt.x>=xt&&Rt.x<=vt&&Rt.y>=yt&&Rt.y<=Et&&Rt!==nt&&Rt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,Rt.x,Rt.y)&&area(Rt.prev,Rt,Rt.next)>=0)return!1;Rt=Rt.nextZ}return!0}function cureLocalIntersections(tt,et,rt){var st=tt;do{var nt=st.prev,ot=st.next.next;!equals(nt,ot)&&intersects(nt,st,st.next,ot)&&locallyInside(nt,ot)&&locallyInside(ot,nt)&&(et.push(nt.i/rt|0),et.push(st.i/rt|0),et.push(ot.i/rt|0),removeNode(st),removeNode(st.next),st=tt=ot),st=st.next}while(st!==tt);return filterPoints(st)}function splitEarcut(tt,et,rt,st,nt,ot){var at=tt;do{for(var lt=at.next.next;lt!==at.prev;){if(at.i!==lt.i&&isValidDiagonal(at,lt)){var ut=splitPolygon(at,lt);at=filterPoints(at,at.next),ut=filterPoints(ut,ut.next),earcutLinked(at,et,rt,st,nt,ot,0),earcutLinked(ut,et,rt,st,nt,ot,0);return}lt=lt.next}at=at.next}while(at!==tt)}function eliminateHoles(tt,et,rt,st){var nt=[],ot,at,lt,ut,ct;for(ot=0,at=et.length;ot<at;ot++)lt=et[ot]*st,ut=ot<at-1?et[ot+1]*st:tt.length,ct=linkedList(tt,lt,ut,st,!1),ct===ct.next&&(ct.steiner=!0),nt.push(getLeftmost(ct));for(nt.sort(compareX),ot=0;ot<nt.length;ot++)rt=eliminateHole(nt[ot],rt);return rt}function compareX(tt,et){return tt.x-et.x}function eliminateHole(tt,et){var rt=findHoleBridge(tt,et);if(!rt)return et;var st=splitPolygon(rt,tt);return filterPoints(st,st.next),filterPoints(rt,rt.next)}function findHoleBridge(tt,et){var rt=et,st=tt.x,nt=tt.y,ot=-1/0,at;do{if(nt<=rt.y&&nt>=rt.next.y&&rt.next.y!==rt.y){var lt=rt.x+(nt-rt.y)*(rt.next.x-rt.x)/(rt.next.y-rt.y);if(lt<=st&<>ot&&(ot=lt,at=rt.x<rt.next.x?rt:rt.next,lt===st))return at}rt=rt.next}while(rt!==et);if(!at)return null;var ut=at,ct=at.x,dt=at.y,ht=1/0,ft;rt=at;do st>=rt.x&&rt.x>=ct&&st!==rt.x&&pointInTriangle(nt<dt?st:ot,nt,ct,dt,nt<dt?ot:st,nt,rt.x,rt.y)&&(ft=Math.abs(nt-rt.y)/(st-rt.x),locallyInside(rt,tt)&&(ft<ht||ft===ht&&(rt.x>at.x||rt.x===at.x&§orContainsSector(at,rt)))&&(at=rt,ht=ft)),rt=rt.next;while(rt!==ut);return at}function sectorContainsSector(tt,et){return area(tt.prev,tt,et.prev)<0&&area(et.next,tt,tt.next)<0}function indexCurve(tt,et,rt,st){var nt=tt;do nt.z===0&&(nt.z=zOrder(nt.x,nt.y,et,rt,st)),nt.prevZ=nt.prev,nt.nextZ=nt.next,nt=nt.next;while(nt!==tt);nt.prevZ.nextZ=null,nt.prevZ=null,sortLinked(nt)}function sortLinked(tt){var et,rt,st,nt,ot,at,lt,ut,ct=1;do{for(rt=tt,tt=null,ot=null,at=0;rt;){for(at++,st=rt,lt=0,et=0;et<ct&&(lt++,st=st.nextZ,!!st);et++);for(ut=ct;lt>0||ut>0&&st;)lt!==0&&(ut===0||!st||rt.z<=st.z)?(nt=rt,rt=rt.nextZ,lt--):(nt=st,st=st.nextZ,ut--),ot?ot.nextZ=nt:tt=nt,nt.prevZ=ot,ot=nt;rt=st}ot.nextZ=null,ct*=2}while(at>1);return tt}function zOrder(tt,et,rt,st,nt){return tt=(tt-rt)*nt|0,et=(et-st)*nt|0,tt=(tt|tt<<8)&16711935,tt=(tt|tt<<4)&252645135,tt=(tt|tt<<2)&858993459,tt=(tt|tt<<1)&1431655765,et=(et|et<<8)&16711935,et=(et|et<<4)&252645135,et=(et|et<<2)&858993459,et=(et|et<<1)&1431655765,tt|et<<1}function getLeftmost(tt){var et=tt,rt=tt;do(et.x<rt.x||et.x===rt.x&&et.y<rt.y)&&(rt=et),et=et.next;while(et!==tt);return rt}function pointInTriangle(tt,et,rt,st,nt,ot,at,lt){return(nt-at)*(et-lt)>=(tt-at)*(ot-lt)&&(tt-at)*(st-lt)>=(rt-at)*(et-lt)&&(rt-at)*(ot-lt)>=(nt-at)*(st-lt)}function isValidDiagonal(tt,et){return tt.next.i!==et.i&&tt.prev.i!==et.i&&!intersectsPolygon(tt,et)&&(locallyInside(tt,et)&&locallyInside(et,tt)&&middleInside(tt,et)&&(area(tt.prev,tt,et.prev)||area(tt,et.prev,et))||equals(tt,et)&&area(tt.prev,tt,tt.next)>0&&area(et.prev,et,et.next)>0)}function area(tt,et,rt){return(et.y-tt.y)*(rt.x-et.x)-(et.x-tt.x)*(rt.y-et.y)}function equals(tt,et){return tt.x===et.x&&tt.y===et.y}function intersects(tt,et,rt,st){var nt=sign$3(area(tt,et,rt)),ot=sign$3(area(tt,et,st)),at=sign$3(area(rt,st,tt)),lt=sign$3(area(rt,st,et));return!!(nt!==ot&&at!==lt||nt===0&&onSegment(tt,rt,et)||ot===0&&onSegment(tt,st,et)||at===0&&onSegment(rt,tt,st)||lt===0&&onSegment(rt,et,st))}function onSegment(tt,et,rt){return et.x<=Math.max(tt.x,rt.x)&&et.x>=Math.min(tt.x,rt.x)&&et.y<=Math.max(tt.y,rt.y)&&et.y>=Math.min(tt.y,rt.y)}function sign$3(tt){return tt>0?1:tt<0?-1:0}function intersectsPolygon(tt,et){var rt=tt;do{if(rt.i!==tt.i&&rt.next.i!==tt.i&&rt.i!==et.i&&rt.next.i!==et.i&&intersects(rt,rt.next,tt,et))return!0;rt=rt.next}while(rt!==tt);return!1}function locallyInside(tt,et){return area(tt.prev,tt,tt.next)<0?area(tt,et,tt.next)>=0&&area(tt,tt.prev,et)>=0:area(tt,et,tt.prev)<0||area(tt,tt.next,et)<0}function middleInside(tt,et){var rt=tt,st=!1,nt=(tt.x+et.x)/2,ot=(tt.y+et.y)/2;do rt.y>ot!=rt.next.y>ot&&rt.next.y!==rt.y&&nt<(rt.next.x-rt.x)*(ot-rt.y)/(rt.next.y-rt.y)+rt.x&&(st=!st),rt=rt.next;while(rt!==tt);return st}function splitPolygon(tt,et){var rt=new Node$2(tt.i,tt.x,tt.y),st=new Node$2(et.i,et.x,et.y),nt=tt.next,ot=et.prev;return tt.next=et,et.prev=tt,rt.next=nt,nt.prev=rt,st.next=rt,rt.prev=st,ot.next=st,st.prev=ot,st}function insertNode(tt,et,rt,st){var nt=new Node$2(tt,et,rt);return st?(nt.next=st.next,nt.prev=st,st.next.prev=nt,st.next=nt):(nt.prev=nt,nt.next=nt),nt}function removeNode(tt){tt.next.prev=tt.prev,tt.prev.next=tt.next,tt.prevZ&&(tt.prevZ.nextZ=tt.nextZ),tt.nextZ&&(tt.nextZ.prevZ=tt.prevZ)}function Node$2(tt,et,rt){this.i=tt,this.x=et,this.y=rt,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}earcut.deviation=function(tt,et,rt,st){var nt=et&&et.length,ot=nt?et[0]*rt:tt.length,at=Math.abs(signedArea(tt,0,ot,rt));if(nt)for(var lt=0,ut=et.length;lt<ut;lt++){var ct=et[lt]*rt,dt=lt<ut-1?et[lt+1]*rt:tt.length;at-=Math.abs(signedArea(tt,ct,dt,rt))}var ht=0;for(lt=0;lt<st.length;lt+=3){var ft=st[lt]*rt,xt=st[lt+1]*rt,yt=st[lt+2]*rt;ht+=Math.abs((tt[ft]-tt[yt])*(tt[xt+1]-tt[ft+1])-(tt[ft]-tt[xt])*(tt[yt+1]-tt[ft+1]))}return at===0&&ht===0?0:Math.abs((ht-at)/at)};function signedArea(tt,et,rt,st){for(var nt=0,ot=et,at=rt-st;ot<rt;ot+=st)nt+=(tt[at]-tt[ot])*(tt[ot+1]+tt[at+1]),at=ot;return nt}earcut.flatten=function(tt){for(var et=tt[0][0].length,rt={vertices:[],holes:[],dimensions:et},st=0,nt=0;nt<tt.length;nt++){for(var ot=0;ot<tt[nt].length;ot++)for(var at=0;at<et;at++)rt.vertices.push(tt[nt][ot][at]);nt>0&&(st+=tt[nt-1].length,rt.holes.push(st))}return rt};var earcutExports=earcut$1.exports;const earcut_default=getDefaultExportFromCjs(earcutExports);var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;(function(tt,et){(function(rt){var st=et&&!et.nodeType&&et,nt=tt&&!tt.nodeType&&tt,ot=typeof commonjsGlobal=="object"&&commonjsGlobal;(ot.global===ot||ot.window===ot||ot.self===ot)&&(rt=ot);var at,lt=2147483647,ut=36,ct=1,dt=26,ht=38,ft=700,xt=72,yt=128,vt="-",Et=/^xn--/,bt=/[^\x20-\x7E]/,wt=/[\x2E\u3002\uFF0E\uFF61]/g,St={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Rt=ut-ct,Ct=Math.floor,jt=String.fromCharCode,It;function Pt(Bt){throw new RangeError(St[Bt])}function Ot(Bt,qt){for(var Yt=Bt.length,Kt=[];Yt--;)Kt[Yt]=qt(Bt[Yt]);return Kt}function Ut(Bt,qt){var Yt=Bt.split("@"),Kt="";Yt.length>1&&(Kt=Yt[0]+"@",Bt=Yt[1]),Bt=Bt.replace(wt,".");var tr=Bt.split("."),or=Ot(tr,qt).join(".");return Kt+or}function Nt(Bt){for(var qt=[],Yt=0,Kt=Bt.length,tr,or;Yt<Kt;)tr=Bt.charCodeAt(Yt++),tr>=55296&&tr<=56319&&Yt<Kt?(or=Bt.charCodeAt(Yt++),(or&64512)==56320?qt.push(((tr&1023)<<10)+(or&1023)+65536):(qt.push(tr),Yt--)):qt.push(tr);return qt}function Ht(Bt){return Ot(Bt,function(qt){var Yt="";return qt>65535&&(qt-=65536,Yt+=jt(qt>>>10&1023|55296),qt=56320|qt&1023),Yt+=jt(qt),Yt}).join("")}function Lt(Bt){return Bt-48<10?Bt-22:Bt-65<26?Bt-65:Bt-97<26?Bt-97:ut}function kt(Bt,qt){return Bt+22+75*(Bt<26)-((qt!=0)<<5)}function $t(Bt,qt,Yt){var Kt=0;for(Bt=Yt?Ct(Bt/ft):Bt>>1,Bt+=Ct(Bt/qt);Bt>Rt*dt>>1;Kt+=ut)Bt=Ct(Bt/Rt);return Ct(Kt+(Rt+1)*Bt/(Bt+ht))}function Ft(Bt){var qt=[],Yt=Bt.length,Kt,tr=0,or=yt,lr=xt,mr,yr,dr,hr,pr,_r,Ar,Hr,Ur;for(mr=Bt.lastIndexOf(vt),mr<0&&(mr=0),yr=0;yr<mr;++yr)Bt.charCodeAt(yr)>=128&&Pt("not-basic"),qt.push(Bt.charCodeAt(yr));for(dr=mr>0?mr+1:0;dr<Yt;){for(hr=tr,pr=1,_r=ut;dr>=Yt&&Pt("invalid-input"),Ar=Lt(Bt.charCodeAt(dr++)),(Ar>=ut||Ar>Ct((lt-tr)/pr))&&Pt("overflow"),tr+=Ar*pr,Hr=_r<=lr?ct:_r>=lr+dt?dt:_r-lr,!(Ar<Hr);_r+=ut)Ur=ut-Hr,pr>Ct(lt/Ur)&&Pt("overflow"),pr*=Ur;Kt=qt.length+1,lr=$t(tr-hr,Kt,hr==0),Ct(tr/Kt)>lt-or&&Pt("overflow"),or+=Ct(tr/Kt),tr%=Kt,qt.splice(tr++,0,or)}return Ht(qt)}function Gt(Bt){var qt,Yt,Kt,tr,or,lr,mr,yr,dr,hr,pr,_r=[],Ar,Hr,Ur,os;for(Bt=Nt(Bt),Ar=Bt.length,qt=yt,Yt=0,or=xt,lr=0;lr<Ar;++lr)pr=Bt[lr],pr<128&&_r.push(jt(pr));for(Kt=tr=_r.length,tr&&_r.push(vt);Kt<Ar;){for(mr=lt,lr=0;lr<Ar;++lr)pr=Bt[lr],pr>=qt&&pr<mr&&(mr=pr);for(Hr=Kt+1,mr-qt>Ct((lt-Yt)/Hr)&&Pt("overflow"),Yt+=(mr-qt)*Hr,qt=mr,lr=0;lr<Ar;++lr)if(pr=Bt[lr],pr<qt&&++Yt>lt&&Pt("overflow"),pr==qt){for(yr=Yt,dr=ut;hr=dr<=or?ct:dr>=or+dt?dt:dr-or,!(yr<hr);dr+=ut)os=yr-hr,Ur=ut-hr,_r.push(jt(kt(hr+os%Ur,0))),yr=Ct(os/Ur);_r.push(jt(kt(yr,0))),or=$t(Yt,Hr,Kt==tr),Yt=0,++Kt}++Yt,++qt}return _r.join("")}function Mt(Bt){return Ut(Bt,function(qt){return Et.test(qt)?Ft(qt.slice(4).toLowerCase()):qt})}function Vt(Bt){return Ut(Bt,function(qt){return bt.test(qt)?"xn--"+Gt(qt):qt})}if(at={version:"1.4.1",ucs2:{decode:Nt,encode:Ht},decode:Ft,encode:Gt,toASCII:Vt,toUnicode:Mt},st&&nt)if(tt.exports==st)nt.exports=at;else for(It in at)at.hasOwnProperty(It)&&(st[It]=at[It]);else rt.punycode=at})(commonjsGlobal)})(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports,type=TypeError;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize$1=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace$1=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat$1=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||!0)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(tt){return tt.__proto__}:null);function addNumericSeparator(tt,et){if(tt===1/0||tt===-1/0||tt!==tt||tt&&tt>-1e3&&tt<1e3||$test.call(/e/,et))return et;var rt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof tt=="number"){var st=tt<0?-$floor(-tt):$floor(tt);if(st!==tt){var nt=String(st),ot=$slice.call(et,nt.length+1);return $replace$1.call(nt,rt,"$&_")+"."+$replace$1.call($replace$1.call(ot,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace$1.call(et,rt,"$&_")}var utilInspect=require$$0$1,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function tt(et,rt,st,nt){var ot=rt||{};if(has$3(ot,"quoteStyle")&&!has$3(quotes,ot.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(ot,"maxStringLength")&&(typeof ot.maxStringLength=="number"?ot.maxStringLength<0&&ot.maxStringLength!==1/0:ot.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var at=has$3(ot,"customInspect")?ot.customInspect:!0;if(typeof at!="boolean"&&at!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(ot,"indent")&&ot.indent!==null&&ot.indent!==" "&&!(parseInt(ot.indent,10)===ot.indent&&ot.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(ot,"numericSeparator")&&typeof ot.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var lt=ot.numericSeparator;if(typeof et>"u")return"undefined";if(et===null)return"null";if(typeof et=="boolean")return et?"true":"false";if(typeof et=="string")return inspectString(et,ot);if(typeof et=="number"){if(et===0)return 1/0/et>0?"0":"-0";var ut=String(et);return lt?addNumericSeparator(et,ut):ut}if(typeof et=="bigint"){var ct=String(et)+"n";return lt?addNumericSeparator(et,ct):ct}var dt=typeof ot.depth>"u"?5:ot.depth;if(typeof st>"u"&&(st=0),st>=dt&&dt>0&&typeof et=="object")return isArray$3(et)?"[Array]":"[Object]";var ht=getIndent(ot,st);if(typeof nt>"u")nt=[];else if(indexOf(nt,et)>=0)return"[Circular]";function ft(Lt,kt,$t){if(kt&&(nt=$arrSlice.call(nt),nt.push(kt)),$t){var Ft={depth:ot.depth};return has$3(ot,"quoteStyle")&&(Ft.quoteStyle=ot.quoteStyle),tt(Lt,Ft,st+1,nt)}return tt(Lt,ot,st+1,nt)}if(typeof et=="function"&&!isRegExp$1(et)){var xt=nameOf(et),yt=arrObjKeys(et,ft);return"[Function"+(xt?": "+xt:" (anonymous)")+"]"+(yt.length>0?" { "+$join.call(yt,", ")+" }":"")}if(isSymbol(et)){var vt=hasShammedSymbols?$replace$1.call(String(et),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(et);return typeof et=="object"&&!hasShammedSymbols?markBoxed(vt):vt}if(isElement(et)){for(var Et="<"+$toLowerCase.call(String(et.nodeName)),bt=et.attributes||[],wt=0;wt<bt.length;wt++)Et+=" "+bt[wt].name+"="+wrapQuotes(quote(bt[wt].value),"double",ot);return Et+=">",et.childNodes&&et.childNodes.length&&(Et+="..."),Et+="</"+$toLowerCase.call(String(et.nodeName))+">",Et}if(isArray$3(et)){if(et.length===0)return"[]";var St=arrObjKeys(et,ft);return ht&&!singleLineValues(St)?"["+indentedJoin(St,ht)+"]":"[ "+$join.call(St,", ")+" ]"}if(isError(et)){var Rt=arrObjKeys(et,ft);return!("cause"in Error.prototype)&&"cause"in et&&!isEnumerable.call(et,"cause")?"{ ["+String(et)+"] "+$join.call($concat$1.call("[cause]: "+ft(et.cause),Rt),", ")+" }":Rt.length===0?"["+String(et)+"]":"{ ["+String(et)+"] "+$join.call(Rt,", ")+" }"}if(typeof et=="object"&&at){if(inspectSymbol&&typeof et[inspectSymbol]=="function"&&utilInspect)return utilInspect(et,{depth:dt-st});if(at!=="symbol"&&typeof et.inspect=="function")return et.inspect()}if(isMap(et)){var Ct=[];return mapForEach&&mapForEach.call(et,function(Lt,kt){Ct.push(ft(kt,et,!0)+" => "+ft(Lt,et))}),collectionOf("Map",mapSize$1.call(et),Ct,ht)}if(isSet(et)){var jt=[];return setForEach&&setForEach.call(et,function(Lt){jt.push(ft(Lt,et))}),collectionOf("Set",setSize.call(et),jt,ht)}if(isWeakMap(et))return weakCollectionOf("WeakMap");if(isWeakSet(et))return weakCollectionOf("WeakSet");if(isWeakRef(et))return weakCollectionOf("WeakRef");if(isNumber(et))return markBoxed(ft(Number(et)));if(isBigInt(et))return markBoxed(ft(bigIntValueOf.call(et)));if(isBoolean(et))return markBoxed(booleanValueOf.call(et));if(isString(et))return markBoxed(ft(String(et)));if(typeof window<"u"&&et===window)return"{ [object Window] }";if(typeof globalThis<"u"&&et===globalThis||typeof commonjsGlobal<"u"&&et===commonjsGlobal)return"{ [object globalThis] }";if(!isDate(et)&&!isRegExp$1(et)){var It=arrObjKeys(et,ft),Pt=gPO?gPO(et)===Object.prototype:et instanceof Object||et.constructor===Object,Ot=et instanceof Object?"":"null prototype",Ut=!Pt&&toStringTag&&Object(et)===et&&toStringTag in et?$slice.call(toStr(et),8,-1):Ot?"Object":"",Nt=Pt||typeof et.constructor!="function"?"":et.constructor.name?et.constructor.name+" ":"",Ht=Nt+(Ut||Ot?"["+$join.call($concat$1.call([],Ut||[],Ot||[]),": ")+"] ":"");return It.length===0?Ht+"{}":ht?Ht+"{"+indentedJoin(It,ht)+"}":Ht+"{ "+$join.call(It,", ")+" }"}return String(et)};function wrapQuotes(tt,et,rt){var st=rt.quoteStyle||et,nt=quotes[st];return nt+tt+nt}function quote(tt){return $replace$1.call(String(tt),/"/g,""")}function canTrustToString(tt){return!toStringTag||!(typeof tt=="object"&&(toStringTag in tt||typeof tt[toStringTag]<"u"))}function isArray$3(tt){return toStr(tt)==="[object Array]"&&canTrustToString(tt)}function isDate(tt){return toStr(tt)==="[object Date]"&&canTrustToString(tt)}function isRegExp$1(tt){return toStr(tt)==="[object RegExp]"&&canTrustToString(tt)}function isError(tt){return toStr(tt)==="[object Error]"&&canTrustToString(tt)}function isString(tt){return toStr(tt)==="[object String]"&&canTrustToString(tt)}function isNumber(tt){return toStr(tt)==="[object Number]"&&canTrustToString(tt)}function isBoolean(tt){return toStr(tt)==="[object Boolean]"&&canTrustToString(tt)}function isSymbol(tt){if(hasShammedSymbols)return tt&&typeof tt=="object"&&tt instanceof Symbol;if(typeof tt=="symbol")return!0;if(!tt||typeof tt!="object"||!symToString)return!1;try{return symToString.call(tt),!0}catch{}return!1}function isBigInt(tt){if(!tt||typeof tt!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(tt),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(tt){return tt in this};function has$3(tt,et){return hasOwn$1.call(tt,et)}function toStr(tt){return objectToString.call(tt)}function nameOf(tt){if(tt.name)return tt.name;var et=$match.call(functionToString.call(tt),/^function\s*([\w$]+)/);return et?et[1]:null}function indexOf(tt,et){if(tt.indexOf)return tt.indexOf(et);for(var rt=0,st=tt.length;rt<st;rt++)if(tt[rt]===et)return rt;return-1}function isMap(tt){if(!mapSize$1||!tt||typeof tt!="object")return!1;try{mapSize$1.call(tt);try{setSize.call(tt)}catch{return!0}return tt instanceof Map}catch{}return!1}function isWeakMap(tt){if(!weakMapHas||!tt||typeof tt!="object")return!1;try{weakMapHas.call(tt,weakMapHas);try{weakSetHas.call(tt,weakSetHas)}catch{return!0}return tt instanceof WeakMap}catch{}return!1}function isWeakRef(tt){if(!weakRefDeref||!tt||typeof tt!="object")return!1;try{return weakRefDeref.call(tt),!0}catch{}return!1}function isSet(tt){if(!setSize||!tt||typeof tt!="object")return!1;try{setSize.call(tt);try{mapSize$1.call(tt)}catch{return!0}return tt instanceof Set}catch{}return!1}function isWeakSet(tt){if(!weakSetHas||!tt||typeof tt!="object")return!1;try{weakSetHas.call(tt,weakSetHas);try{weakMapHas.call(tt,weakMapHas)}catch{return!0}return tt instanceof WeakSet}catch{}return!1}function isElement(tt){return!tt||typeof tt!="object"?!1:typeof HTMLElement<"u"&&tt instanceof HTMLElement?!0:typeof tt.nodeName=="string"&&typeof tt.getAttribute=="function"}function inspectString(tt,et){if(tt.length>et.maxStringLength){var rt=tt.length-et.maxStringLength,st="... "+rt+" more character"+(rt>1?"s":"");return inspectString($slice.call(tt,0,et.maxStringLength),et)+st}var nt=quoteREs[et.quoteStyle||"single"];nt.lastIndex=0;var ot=$replace$1.call($replace$1.call(tt,nt,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(ot,"single",et)}function lowbyte(tt){var et=tt.charCodeAt(0),rt={8:"b",9:"t",10:"n",12:"f",13:"r"}[et];return rt?"\\"+rt:"\\x"+(et<16?"0":"")+$toUpperCase.call(et.toString(16))}function markBoxed(tt){return"Object("+tt+")"}function weakCollectionOf(tt){return tt+" { ? }"}function collectionOf(tt,et,rt,st){var nt=st?indentedJoin(rt,st):$join.call(rt,", ");return tt+" ("+et+") {"+nt+"}"}function singleLineValues(tt){for(var et=0;et<tt.length;et++)if(indexOf(tt[et],`
|
|
227
227
|
`)>=0)return!1;return!0}function getIndent(tt,et){var rt;if(tt.indent===" ")rt=" ";else if(typeof tt.indent=="number"&&tt.indent>0)rt=$join.call(Array(tt.indent+1)," ");else return null;return{base:rt,prev:$join.call(Array(et+1),rt)}}function indentedJoin(tt,et){if(tt.length===0)return"";var rt=`
|
|
228
228
|
`+et.prev+et.base;return rt+$join.call(tt,","+rt)+`
|
|
229
229
|
`+et.prev}function arrObjKeys(tt,et){var rt=isArray$3(tt),st=[];if(rt){st.length=tt.length;for(var nt=0;nt<tt.length;nt++)st[nt]=has$3(tt,nt)?et(tt[nt],tt):""}var ot=typeof gOPS=="function"?gOPS(tt):[],at;if(hasShammedSymbols){at={};for(var lt=0;lt<ot.length;lt++)at["$"+ot[lt]]=ot[lt]}for(var ut in tt)has$3(tt,ut)&&(rt&&String(Number(ut))===ut&&ut<tt.length||hasShammedSymbols&&at["$"+ut]instanceof Symbol||($test.call(/[^\w$]/,ut)?st.push(et(ut,tt)+": "+et(tt[ut],tt)):st.push(ut+": "+et(tt[ut],tt))));if(typeof gOPS=="function")for(var ct=0;ct<ot.length;ct++)isEnumerable.call(tt,ot[ct])&&st.push("["+et(ot[ct])+"]: "+et(tt[ot[ct]],tt));return st}var inspect$3=objectInspect,$TypeError$5=type,listGetNode=function(tt,et,rt){for(var st=tt,nt;(nt=st.next)!=null;st=nt)if(nt.key===et)return st.next=nt.next,rt||(nt.next=tt.next,tt.next=nt),nt},listGet=function(tt,et){if(tt){var rt=listGetNode(tt,et);return rt&&rt.value}},listSet=function(tt,et,rt){var st=listGetNode(tt,et);st?st.value=rt:tt.next={key:et,next:tt.next,value:rt}},listHas=function(tt,et){return tt?!!listGetNode(tt,et):!1},listDelete=function(tt,et){if(tt)return listGetNode(tt,et,!0)},sideChannelList=function tt(){var et,rt={assert:function(st){if(!rt.has(st))throw new $TypeError$5("Side channel does not contain "+inspect$3(st))},delete:function(st){var nt=et&&et.next,ot=listDelete(et,st);return ot&&nt&&nt===ot&&(et=void 0),!!ot},get:function(st){return listGet(et,st)},has:function(st){return listHas(et,st)},set:function(st,nt){et||(et={next:void 0}),listSet(et,st,nt)}};return rt},esObjectAtoms=Object,esErrors=Error,_eval=EvalError,range=RangeError,ref=ReferenceError,syntax=SyntaxError,uri=URIError,abs$1=Math.abs,floor$1=Math.floor,max$1=Math.max,min$1=Math.min,pow$1=Math.pow,round$2=Math.round,_isNaN=Number.isNaN||function tt(et){return et!==et},$isNaN=_isNaN,sign$2=function tt(et){return $isNaN(et)||et===0?et:et<0?-1:1},gOPD=Object.getOwnPropertyDescriptor,$gOPD$1=gOPD;if($gOPD$1)try{$gOPD$1([],"length")}catch{$gOPD$1=null}var gopd=$gOPD$1,$defineProperty$1=Object.defineProperty||!1;if($defineProperty$1)try{$defineProperty$1({},"a",{value:1})}catch{$defineProperty$1=!1}var esDefineProperty=$defineProperty$1,shams,hasRequiredShams;function requireShams(){return hasRequiredShams||(hasRequiredShams=1,shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var et={},rt=Symbol("test"),st=Object(rt);if(typeof rt=="string"||Object.prototype.toString.call(rt)!=="[object Symbol]"||Object.prototype.toString.call(st)!=="[object Symbol]")return!1;var nt=42;et[rt]=nt;for(var ot in et)return!1;if(typeof Object.keys=="function"&&Object.keys(et).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(et).length!==0)return!1;var at=Object.getOwnPropertySymbols(et);if(at.length!==1||at[0]!==rt||!Object.prototype.propertyIsEnumerable.call(et,rt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var lt=Object.getOwnPropertyDescriptor(et,rt);if(lt.value!==nt||lt.enumerable!==!0)return!1}return!0}),shams}var hasSymbols$1,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var tt=typeof Symbol<"u"&&Symbol,et=requireShams();return hasSymbols$1=function(){return typeof tt!="function"||typeof Symbol!="function"||typeof tt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:et()},hasSymbols$1}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var tt=esObjectAtoms;return Object_getPrototypeOf=tt.getPrototypeOf||null,Object_getPrototypeOf}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var tt="Function.prototype.bind called on incompatible ",et=Object.prototype.toString,rt=Math.max,st="[object Function]",nt=function(ut,ct){for(var dt=[],ht=0;ht<ut.length;ht+=1)dt[ht]=ut[ht];for(var ft=0;ft<ct.length;ft+=1)dt[ft+ut.length]=ct[ft];return dt},ot=function(ut,ct){for(var dt=[],ht=ct,ft=0;ht<ut.length;ht+=1,ft+=1)dt[ft]=ut[ht];return dt},at=function(lt,ut){for(var ct="",dt=0;dt<lt.length;dt+=1)ct+=lt[dt],dt+1<lt.length&&(ct+=ut);return ct};return implementation=function(ut){var ct=this;if(typeof ct!="function"||et.apply(ct)!==st)throw new TypeError(tt+ct);for(var dt=ot(arguments,1),ht,ft=function(){if(this instanceof ht){var bt=ct.apply(this,nt(dt,arguments));return Object(bt)===bt?bt:this}return ct.apply(ut,nt(dt,arguments))},xt=rt(0,ct.length-dt.length),yt=[],vt=0;vt<xt;vt++)yt[vt]="$"+vt;if(ht=Function("binder","return function ("+at(yt,",")+"){ return binder.apply(this,arguments); }")(ft),ct.prototype){var Et=function(){};Et.prototype=ct.prototype,ht.prototype=new Et,Et.prototype=null}return ht},implementation}var functionBind,hasRequiredFunctionBind;function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var tt=requireImplementation();return functionBind=Function.prototype.bind||tt,functionBind}var functionCall,hasRequiredFunctionCall;function requireFunctionCall(){return hasRequiredFunctionCall||(hasRequiredFunctionCall=1,functionCall=Function.prototype.call),functionCall}var functionApply,hasRequiredFunctionApply;function requireFunctionApply(){return hasRequiredFunctionApply||(hasRequiredFunctionApply=1,functionApply=Function.prototype.apply),functionApply}var reflectApply=typeof Reflect<"u"&&Reflect&&Reflect.apply,bind$2=requireFunctionBind(),$apply$1=requireFunctionApply(),$call$2=requireFunctionCall(),$reflectApply=reflectApply,actualApply=$reflectApply||bind$2.call($call$2,$apply$1),bind$1=requireFunctionBind(),$TypeError$4=type,$call$1=requireFunctionCall(),$actualApply=actualApply,callBindApplyHelpers=function tt(et){if(et.length<1||typeof et[0]!="function")throw new $TypeError$4("a function is required");return $actualApply(bind$1,$call$1,et)},get,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get;hasRequiredGet=1;var tt=callBindApplyHelpers,et=gopd,rt;try{rt=[].__proto__===Array.prototype}catch(at){if(!at||typeof at!="object"||!("code"in at)||at.code!=="ERR_PROTO_ACCESS")throw at}var st=!!rt&&et&&et(Object.prototype,"__proto__"),nt=Object,ot=nt.getPrototypeOf;return get=st&&typeof st.get=="function"?tt([st.get]):typeof ot=="function"?function(lt){return ot(lt==null?lt:nt(lt))}:!1,get}var getProto$1,hasRequiredGetProto;function requireGetProto(){if(hasRequiredGetProto)return getProto$1;hasRequiredGetProto=1;var tt=requireReflect_getPrototypeOf(),et=requireObject_getPrototypeOf(),rt=requireGet();return getProto$1=tt?function(nt){return tt(nt)}:et?function(nt){if(!nt||typeof nt!="object"&&typeof nt!="function")throw new TypeError("getProto: not an object");return et(nt)}:rt?function(nt){return rt(nt)}:null,getProto$1}var hasown,hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var tt=Function.prototype.call,et=Object.prototype.hasOwnProperty,rt=requireFunctionBind();return hasown=rt.call(tt,et),hasown}var undefined$1,$Object=esObjectAtoms,$Error=esErrors,$EvalError=_eval,$RangeError=range,$ReferenceError=ref,$SyntaxError=syntax,$TypeError$3=type,$URIError=uri,abs=abs$1,floor=floor$1,max=max$1,min=min$1,pow=pow$1,round$1=round$2,sign$1=sign$2,$Function=Function,getEvalledConstructor=function(tt){try{return $Function('"use strict"; return ('+tt+").constructor;")()}catch{}},$gOPD=gopd,$defineProperty=esDefineProperty,throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=requireHasSymbols()(),getProto=requireGetProto(),$ObjectGPO=requireObject_getPrototypeOf(),$ReflectGPO=requireReflect_getPrototypeOf(),$apply=requireFunctionApply(),$call=requireFunctionCall(),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":typeof Float16Array>"u"?undefined$1:Float16Array,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round$1,"%Math.sign%":sign$1,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto)try{null.error}catch(tt){var errorProto=getProto(getProto(tt));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function tt(et){var rt;if(et==="%AsyncFunction%")rt=getEvalledConstructor("async function () {}");else if(et==="%GeneratorFunction%")rt=getEvalledConstructor("function* () {}");else if(et==="%AsyncGeneratorFunction%")rt=getEvalledConstructor("async function* () {}");else if(et==="%AsyncGenerator%"){var st=tt("%AsyncGeneratorFunction%");st&&(rt=st.prototype)}else if(et==="%AsyncIteratorPrototype%"){var nt=tt("%AsyncGenerator%");nt&&getProto&&(rt=getProto(nt.prototype))}return INTRINSICS[et]=rt,rt},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=requireFunctionBind(),hasOwn=requireHasown(),$concat=bind.call($call,Array.prototype.concat),$spliceApply=bind.call($apply,Array.prototype.splice),$replace=bind.call($call,String.prototype.replace),$strSlice=bind.call($call,String.prototype.slice),$exec=bind.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function tt(et){var rt=$strSlice(et,0,1),st=$strSlice(et,-1);if(rt==="%"&&st!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(st==="%"&&rt!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var nt=[];return $replace(et,rePropName,function(ot,at,lt,ut){nt[nt.length]=lt?$replace(ut,reEscapeChar,"$1"):at||ot}),nt},getBaseIntrinsic=function tt(et,rt){var st=et,nt;if(hasOwn(LEGACY_ALIASES,st)&&(nt=LEGACY_ALIASES[st],st="%"+nt[0]+"%"),hasOwn(INTRINSICS,st)){var ot=INTRINSICS[st];if(ot===needsEval&&(ot=doEval(st)),typeof ot>"u"&&!rt)throw new $TypeError$3("intrinsic "+et+" exists, but is not available. Please file an issue!");return{alias:nt,name:st,value:ot}}throw new $SyntaxError("intrinsic "+et+" does not exist!")},getIntrinsic=function tt(et,rt){if(typeof et!="string"||et.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rt!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,et)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var st=stringToPath(et),nt=st.length>0?st[0]:"",ot=getBaseIntrinsic("%"+nt+"%",rt),at=ot.name,lt=ot.value,ut=!1,ct=ot.alias;ct&&(nt=ct[0],$spliceApply(st,$concat([0,1],ct)));for(var dt=1,ht=!0;dt<st.length;dt+=1){var ft=st[dt],xt=$strSlice(ft,0,1),yt=$strSlice(ft,-1);if((xt==='"'||xt==="'"||xt==="`"||yt==='"'||yt==="'"||yt==="`")&&xt!==yt)throw new $SyntaxError("property names with quotes must have matching quotes");if((ft==="constructor"||!ht)&&(ut=!0),nt+="."+ft,at="%"+nt+"%",hasOwn(INTRINSICS,at))lt=INTRINSICS[at];else if(lt!=null){if(!(ft in lt)){if(!rt)throw new $TypeError$3("base intrinsic for "+et+" exists, but the property is not available.");return}if($gOPD&&dt+1>=st.length){var vt=$gOPD(lt,ft);ht=!!vt,ht&&"get"in vt&&!("originalValue"in vt.get)?lt=vt.get:lt=lt[ft]}else ht=hasOwn(lt,ft),lt=lt[ft];ht&&!ut&&(INTRINSICS[at]=lt)}}return lt},GetIntrinsic$2=getIntrinsic,callBindBasic=callBindApplyHelpers,$indexOf=callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]),callBound$2=function tt(et,rt){var st=GetIntrinsic$2(et,!!rt);return typeof st=="function"&&$indexOf(et,".prototype.")>-1?callBindBasic([st]):st},GetIntrinsic$1=getIntrinsic,callBound$1=callBound$2,inspect$2=objectInspect,$TypeError$2=type,$Map=GetIntrinsic$1("%Map%",!0),$mapGet=callBound$1("Map.prototype.get",!0),$mapSet=callBound$1("Map.prototype.set",!0),$mapHas=callBound$1("Map.prototype.has",!0),$mapDelete=callBound$1("Map.prototype.delete",!0),$mapSize=callBound$1("Map.prototype.size",!0),sideChannelMap=!!$Map&&function tt(){var et,rt={assert:function(st){if(!rt.has(st))throw new $TypeError$2("Side channel does not contain "+inspect$2(st))},delete:function(st){if(et){var nt=$mapDelete(et,st);return $mapSize(et)===0&&(et=void 0),nt}return!1},get:function(st){if(et)return $mapGet(et,st)},has:function(st){return et?$mapHas(et,st):!1},set:function(st,nt){et||(et=new $Map),$mapSet(et,st,nt)}};return rt},GetIntrinsic=getIntrinsic,callBound=callBound$2,inspect$1=objectInspect,getSideChannelMap$1=sideChannelMap,$TypeError$1=type,$WeakMap=GetIntrinsic("%WeakMap%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$weakMapDelete=callBound("WeakMap.prototype.delete",!0),sideChannelWeakmap=$WeakMap?function tt(){var et,rt,st={assert:function(nt){if(!st.has(nt))throw new $TypeError$1("Side channel does not contain "+inspect$1(nt))},delete:function(nt){if($WeakMap&&nt&&(typeof nt=="object"||typeof nt=="function")){if(et)return $weakMapDelete(et,nt)}else if(getSideChannelMap$1&&rt)return rt.delete(nt);return!1},get:function(nt){return $WeakMap&&nt&&(typeof nt=="object"||typeof nt=="function")&&et?$weakMapGet(et,nt):rt&&rt.get(nt)},has:function(nt){return $WeakMap&&nt&&(typeof nt=="object"||typeof nt=="function")&&et?$weakMapHas(et,nt):!!rt&&rt.has(nt)},set:function(nt,ot){$WeakMap&&nt&&(typeof nt=="object"||typeof nt=="function")?(et||(et=new $WeakMap),$weakMapSet(et,nt,ot)):getSideChannelMap$1&&(rt||(rt=getSideChannelMap$1()),rt.set(nt,ot))}};return st}:getSideChannelMap$1,$TypeError=type,inspect=objectInspect,getSideChannelList=sideChannelList,getSideChannelMap=sideChannelMap,getSideChannelWeakMap=sideChannelWeakmap,makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList,sideChannel=function tt(){var et,rt={assert:function(st){if(!rt.has(st))throw new $TypeError("Side channel does not contain "+inspect(st))},delete:function(st){return!!et&&et.delete(st)},get:function(st){return et&&et.get(st)},has:function(st){return!!et&&et.has(st)},set:function(st,nt){et||(et=makeChannel()),et.set(st,nt)}};return rt},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$4={default:Format.RFC3986,formatters:{RFC1738:function(tt){return replace.call(tt,percentTwenties,"+")},RFC3986:function(tt){return String(tt)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$3=formats$4,has$2=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,hexTable=function(){for(var tt=[],et=0;et<256;++et)tt.push("%"+((et<16?"0":"")+et.toString(16)).toUpperCase());return tt}(),compactQueue=function tt(et){for(;et.length>1;){var rt=et.pop(),st=rt.obj[rt.prop];if(isArray$2(st)){for(var nt=[],ot=0;ot<st.length;++ot)typeof st[ot]<"u"&&nt.push(st[ot]);rt.obj[rt.prop]=nt}}},arrayToObject=function tt(et,rt){for(var st=rt&&rt.plainObjects?{__proto__:null}:{},nt=0;nt<et.length;++nt)typeof et[nt]<"u"&&(st[nt]=et[nt]);return st},merge=function tt(et,rt,st){if(!rt)return et;if(typeof rt!="object"&&typeof rt!="function"){if(isArray$2(et))et.push(rt);else if(et&&typeof et=="object")(st&&(st.plainObjects||st.allowPrototypes)||!has$2.call(Object.prototype,rt))&&(et[rt]=!0);else return[et,rt];return et}if(!et||typeof et!="object")return[et].concat(rt);var nt=et;return isArray$2(et)&&!isArray$2(rt)&&(nt=arrayToObject(et,st)),isArray$2(et)&&isArray$2(rt)?(rt.forEach(function(ot,at){if(has$2.call(et,at)){var lt=et[at];lt&&typeof lt=="object"&&ot&&typeof ot=="object"?et[at]=tt(lt,ot,st):et.push(ot)}else et[at]=ot}),et):Object.keys(rt).reduce(function(ot,at){var lt=rt[at];return has$2.call(ot,at)?ot[at]=tt(ot[at],lt,st):ot[at]=lt,ot},nt)},assign=function tt(et,rt){return Object.keys(rt).reduce(function(st,nt){return st[nt]=rt[nt],st},et)},decode=function(tt,et,rt){var st=tt.replace(/\+/g," ");if(rt==="iso-8859-1")return st.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(st)}catch{return st}},limit=1024,encode=function tt(et,rt,st,nt,ot){if(et.length===0)return et;var at=et;if(typeof et=="symbol"?at=Symbol.prototype.toString.call(et):typeof et!="string"&&(at=String(et)),st==="iso-8859-1")return escape(at).replace(/%u[0-9a-f]{4}/gi,function(xt){return"%26%23"+parseInt(xt.slice(2),16)+"%3B"});for(var lt="",ut=0;ut<at.length;ut+=limit){for(var ct=at.length>=limit?at.slice(ut,ut+limit):at,dt=[],ht=0;ht<ct.length;++ht){var ft=ct.charCodeAt(ht);if(ft===45||ft===46||ft===95||ft===126||ft>=48&&ft<=57||ft>=65&&ft<=90||ft>=97&&ft<=122||ot===formats$3.RFC1738&&(ft===40||ft===41)){dt[dt.length]=ct.charAt(ht);continue}if(ft<128){dt[dt.length]=hexTable[ft];continue}if(ft<2048){dt[dt.length]=hexTable[192|ft>>6]+hexTable[128|ft&63];continue}if(ft<55296||ft>=57344){dt[dt.length]=hexTable[224|ft>>12]+hexTable[128|ft>>6&63]+hexTable[128|ft&63];continue}ht+=1,ft=65536+((ft&1023)<<10|ct.charCodeAt(ht)&1023),dt[dt.length]=hexTable[240|ft>>18]+hexTable[128|ft>>12&63]+hexTable[128|ft>>6&63]+hexTable[128|ft&63]}lt+=dt.join("")}return lt},compact=function tt(et){for(var rt=[{obj:{o:et},prop:"o"}],st=[],nt=0;nt<rt.length;++nt)for(var ot=rt[nt],at=ot.obj[ot.prop],lt=Object.keys(at),ut=0;ut<lt.length;++ut){var ct=lt[ut],dt=at[ct];typeof dt=="object"&&dt!==null&&st.indexOf(dt)===-1&&(rt.push({obj:at,prop:ct}),st.push(dt))}return compactQueue(rt),et},isRegExp=function tt(et){return Object.prototype.toString.call(et)==="[object RegExp]"},isBuffer=function tt(et){return!et||typeof et!="object"?!1:!!(et.constructor&&et.constructor.isBuffer&&et.constructor.isBuffer(et))},combine=function tt(et,rt){return[].concat(et,rt)},maybeMap=function tt(et,rt){if(isArray$2(et)){for(var st=[],nt=0;nt<et.length;nt+=1)st.push(rt(et[nt]));return st}return rt(et)},utils$2={arrayToObject,assign,combine,compact,decode,encode,isBuffer,isRegExp,maybeMap,merge},getSideChannel=sideChannel,utils$1=utils$2,formats$2=formats$4,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function tt(et){return et+"[]"},comma:"comma",indices:function tt(et,rt){return et+"["+rt+"]"},repeat:function tt(et){return et}},isArray$1=Array.isArray,push=Array.prototype.push,pushToArray=function(tt,et){push.apply(tt,isArray$1(et)?et:[et])},toISO=Date.prototype.toISOString,defaultFormat=formats$2.default,defaults$2={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils$1.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats$2.formatters[defaultFormat],indices:!1,serializeDate:function tt(et){return toISO.call(et)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function tt(et){return typeof et=="string"||typeof et=="number"||typeof et=="boolean"||typeof et=="symbol"||typeof et=="bigint"},sentinel={},stringify$1=function tt(et,rt,st,nt,ot,at,lt,ut,ct,dt,ht,ft,xt,yt,vt,Et,bt,wt){for(var St=et,Rt=wt,Ct=0,jt=!1;(Rt=Rt.get(sentinel))!==void 0&&!jt;){var It=Rt.get(et);if(Ct+=1,typeof It<"u"){if(It===Ct)throw new RangeError("Cyclic object value");jt=!0}typeof Rt.get(sentinel)>"u"&&(Ct=0)}if(typeof dt=="function"?St=dt(rt,St):St instanceof Date?St=xt(St):st==="comma"&&isArray$1(St)&&(St=utils$1.maybeMap(St,function(Bt){return Bt instanceof Date?xt(Bt):Bt})),St===null){if(at)return ct&&!Et?ct(rt,defaults$2.encoder,bt,"key",yt):rt;St=""}if(isNonNullishPrimitive(St)||utils$1.isBuffer(St)){if(ct){var Pt=Et?rt:ct(rt,defaults$2.encoder,bt,"key",yt);return[vt(Pt)+"="+vt(ct(St,defaults$2.encoder,bt,"value",yt))]}return[vt(rt)+"="+vt(String(St))]}var Ot=[];if(typeof St>"u")return Ot;var Ut;if(st==="comma"&&isArray$1(St))Et&&ct&&(St=utils$1.maybeMap(St,ct)),Ut=[{value:St.length>0?St.join(",")||null:void 0}];else if(isArray$1(dt))Ut=dt;else{var Nt=Object.keys(St);Ut=ht?Nt.sort(ht):Nt}var Ht=ut?String(rt).replace(/\./g,"%2E"):String(rt),Lt=nt&&isArray$1(St)&&St.length===1?Ht+"[]":Ht;if(ot&&isArray$1(St)&&St.length===0)return Lt+"[]";for(var kt=0;kt<Ut.length;++kt){var $t=Ut[kt],Ft=typeof $t=="object"&&$t&&typeof $t.value<"u"?$t.value:St[$t];if(!(lt&&Ft===null)){var Gt=ft&&ut?String($t).replace(/\./g,"%2E"):String($t),Mt=isArray$1(St)?typeof st=="function"?st(Lt,Gt):Lt:Lt+(ft?"."+Gt:"["+Gt+"]");wt.set(et,Ct);var Vt=getSideChannel();Vt.set(sentinel,wt),pushToArray(Ot,tt(Ft,Mt,st,nt,ot,at,lt,ut,st==="comma"&&Et&&isArray$1(St)?null:ct,dt,ht,ft,xt,yt,vt,Et,bt,Vt))}}return Ot},normalizeStringifyOptions=function tt(et){if(!et)return defaults$2;if(typeof et.allowEmptyArrays<"u"&&typeof et.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof et.encodeDotInKeys<"u"&&typeof et.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(et.encoder!==null&&typeof et.encoder<"u"&&typeof et.encoder!="function")throw new TypeError("Encoder has to be a function.");var rt=et.charset||defaults$2.charset;if(typeof et.charset<"u"&&et.charset!=="utf-8"&&et.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var st=formats$2.default;if(typeof et.format<"u"){if(!has$1.call(formats$2.formatters,et.format))throw new TypeError("Unknown format option provided.");st=et.format}var nt=formats$2.formatters[st],ot=defaults$2.filter;(typeof et.filter=="function"||isArray$1(et.filter))&&(ot=et.filter);var at;if(et.arrayFormat in arrayPrefixGenerators?at=et.arrayFormat:"indices"in et?at=et.indices?"indices":"repeat":at=defaults$2.arrayFormat,"commaRoundTrip"in et&&typeof et.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var lt=typeof et.allowDots>"u"?et.encodeDotInKeys===!0?!0:defaults$2.allowDots:!!et.allowDots;return{addQueryPrefix:typeof et.addQueryPrefix=="boolean"?et.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:lt,allowEmptyArrays:typeof et.allowEmptyArrays=="boolean"?!!et.allowEmptyArrays:defaults$2.allowEmptyArrays,arrayFormat:at,charset:rt,charsetSentinel:typeof et.charsetSentinel=="boolean"?et.charsetSentinel:defaults$2.charsetSentinel,commaRoundTrip:!!et.commaRoundTrip,delimiter:typeof et.delimiter>"u"?defaults$2.delimiter:et.delimiter,encode:typeof et.encode=="boolean"?et.encode:defaults$2.encode,encodeDotInKeys:typeof et.encodeDotInKeys=="boolean"?et.encodeDotInKeys:defaults$2.encodeDotInKeys,encoder:typeof et.encoder=="function"?et.encoder:defaults$2.encoder,encodeValuesOnly:typeof et.encodeValuesOnly=="boolean"?et.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:ot,format:st,formatter:nt,serializeDate:typeof et.serializeDate=="function"?et.serializeDate:defaults$2.serializeDate,skipNulls:typeof et.skipNulls=="boolean"?et.skipNulls:defaults$2.skipNulls,sort:typeof et.sort=="function"?et.sort:null,strictNullHandling:typeof et.strictNullHandling=="boolean"?et.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function(tt,et){var rt=tt,st=normalizeStringifyOptions(et),nt,ot;typeof st.filter=="function"?(ot=st.filter,rt=ot("",rt)):isArray$1(st.filter)&&(ot=st.filter,nt=ot);var at=[];if(typeof rt!="object"||rt===null)return"";var lt=arrayPrefixGenerators[st.arrayFormat],ut=lt==="comma"&&st.commaRoundTrip;nt||(nt=Object.keys(rt)),st.sort&&nt.sort(st.sort);for(var ct=getSideChannel(),dt=0;dt<nt.length;++dt){var ht=nt[dt],ft=rt[ht];st.skipNulls&&ft===null||pushToArray(at,stringify$1(ft,ht,lt,ut,st.allowEmptyArrays,st.strictNullHandling,st.skipNulls,st.encodeDotInKeys,st.encode?st.encoder:null,st.filter,st.sort,st.allowDots,st.serializeDate,st.format,st.formatter,st.encodeValuesOnly,st.charset,ct))}var xt=at.join(st.delimiter),yt=st.addQueryPrefix===!0?"?":"";return st.charsetSentinel&&(st.charset==="iso-8859-1"?yt+="utf8=%26%2310003%3B&":yt+="utf8=%E2%9C%93&"),xt.length>0?yt+xt:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults$1={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(tt){return tt.replace(/&#(\d+);/g,function(et,rt){return String.fromCharCode(parseInt(rt,10))})},parseArrayValue=function(tt,et,rt){if(tt&&typeof tt=="string"&&et.comma&&tt.indexOf(",")>-1)return tt.split(",");if(et.throwOnLimitExceeded&&rt>=et.arrayLimit)throw new RangeError("Array limit exceeded. Only "+et.arrayLimit+" element"+(et.arrayLimit===1?"":"s")+" allowed in an array.");return tt},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function tt(et,rt){var st={__proto__:null},nt=rt.ignoreQueryPrefix?et.replace(/^\?/,""):et;nt=nt.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var ot=rt.parameterLimit===1/0?void 0:rt.parameterLimit,at=nt.split(rt.delimiter,rt.throwOnLimitExceeded?ot+1:ot);if(rt.throwOnLimitExceeded&&at.length>ot)throw new RangeError("Parameter limit exceeded. Only "+ot+" parameter"+(ot===1?"":"s")+" allowed.");var lt=-1,ut,ct=rt.charset;if(rt.charsetSentinel)for(ut=0;ut<at.length;++ut)at[ut].indexOf("utf8=")===0&&(at[ut]===charsetSentinel?ct="utf-8":at[ut]===isoSentinel&&(ct="iso-8859-1"),lt=ut,ut=at.length);for(ut=0;ut<at.length;++ut)if(ut!==lt){var dt=at[ut],ht=dt.indexOf("]="),ft=ht===-1?dt.indexOf("="):ht+1,xt,yt;ft===-1?(xt=rt.decoder(dt,defaults$1.decoder,ct,"key"),yt=rt.strictNullHandling?null:""):(xt=rt.decoder(dt.slice(0,ft),defaults$1.decoder,ct,"key"),yt=utils.maybeMap(parseArrayValue(dt.slice(ft+1),rt,isArray(st[xt])?st[xt].length:0),function(Et){return rt.decoder(Et,defaults$1.decoder,ct,"value")})),yt&&rt.interpretNumericEntities&&ct==="iso-8859-1"&&(yt=interpretNumericEntities(String(yt))),dt.indexOf("[]=")>-1&&(yt=isArray(yt)?[yt]:yt);var vt=has.call(st,xt);vt&&rt.duplicates==="combine"?st[xt]=utils.combine(st[xt],yt):(!vt||rt.duplicates==="last")&&(st[xt]=yt)}return st},parseObject=function(tt,et,rt,st){var nt=0;if(tt.length>0&&tt[tt.length-1]==="[]"){var ot=tt.slice(0,-1).join("");nt=Array.isArray(et)&&et[ot]?et[ot].length:0}for(var at=st?et:parseArrayValue(et,rt,nt),lt=tt.length-1;lt>=0;--lt){var ut,ct=tt[lt];if(ct==="[]"&&rt.parseArrays)ut=rt.allowEmptyArrays&&(at===""||rt.strictNullHandling&&at===null)?[]:utils.combine([],at);else{ut=rt.plainObjects?{__proto__:null}:{};var dt=ct.charAt(0)==="["&&ct.charAt(ct.length-1)==="]"?ct.slice(1,-1):ct,ht=rt.decodeDotInKeys?dt.replace(/%2E/g,"."):dt,ft=parseInt(ht,10);!rt.parseArrays&&ht===""?ut={0:at}:!isNaN(ft)&&ct!==ht&&String(ft)===ht&&ft>=0&&rt.parseArrays&&ft<=rt.arrayLimit?(ut=[],ut[ft]=at):ht!=="__proto__"&&(ut[ht]=at)}at=ut}return at},parseKeys=function tt(et,rt,st,nt){if(et){var ot=st.allowDots?et.replace(/\.([^.[]+)/g,"[$1]"):et,at=/(\[[^[\]]*])/,lt=/(\[[^[\]]*])/g,ut=st.depth>0&&at.exec(ot),ct=ut?ot.slice(0,ut.index):ot,dt=[];if(ct){if(!st.plainObjects&&has.call(Object.prototype,ct)&&!st.allowPrototypes)return;dt.push(ct)}for(var ht=0;st.depth>0&&(ut=lt.exec(ot))!==null&&ht<st.depth;){if(ht+=1,!st.plainObjects&&has.call(Object.prototype,ut[1].slice(1,-1))&&!st.allowPrototypes)return;dt.push(ut[1])}if(ut){if(st.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+st.depth+" and strictDepth is true");dt.push("["+ot.slice(ut.index)+"]")}return parseObject(dt,rt,st,nt)}},normalizeParseOptions=function tt(et){if(!et)return defaults$1;if(typeof et.allowEmptyArrays<"u"&&typeof et.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof et.decodeDotInKeys<"u"&&typeof et.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(et.decoder!==null&&typeof et.decoder<"u"&&typeof et.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof et.charset<"u"&&et.charset!=="utf-8"&&et.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof et.throwOnLimitExceeded<"u"&&typeof et.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var rt=typeof et.charset>"u"?defaults$1.charset:et.charset,st=typeof et.duplicates>"u"?defaults$1.duplicates:et.duplicates;if(st!=="combine"&&st!=="first"&&st!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var nt=typeof et.allowDots>"u"?et.decodeDotInKeys===!0?!0:defaults$1.allowDots:!!et.allowDots;return{allowDots:nt,allowEmptyArrays:typeof et.allowEmptyArrays=="boolean"?!!et.allowEmptyArrays:defaults$1.allowEmptyArrays,allowPrototypes:typeof et.allowPrototypes=="boolean"?et.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof et.allowSparse=="boolean"?et.allowSparse:defaults$1.allowSparse,arrayLimit:typeof et.arrayLimit=="number"?et.arrayLimit:defaults$1.arrayLimit,charset:rt,charsetSentinel:typeof et.charsetSentinel=="boolean"?et.charsetSentinel:defaults$1.charsetSentinel,comma:typeof et.comma=="boolean"?et.comma:defaults$1.comma,decodeDotInKeys:typeof et.decodeDotInKeys=="boolean"?et.decodeDotInKeys:defaults$1.decodeDotInKeys,decoder:typeof et.decoder=="function"?et.decoder:defaults$1.decoder,delimiter:typeof et.delimiter=="string"||utils.isRegExp(et.delimiter)?et.delimiter:defaults$1.delimiter,depth:typeof et.depth=="number"||et.depth===!1?+et.depth:defaults$1.depth,duplicates:st,ignoreQueryPrefix:et.ignoreQueryPrefix===!0,interpretNumericEntities:typeof et.interpretNumericEntities=="boolean"?et.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof et.parameterLimit=="number"?et.parameterLimit:defaults$1.parameterLimit,parseArrays:et.parseArrays!==!1,plainObjects:typeof et.plainObjects=="boolean"?et.plainObjects:defaults$1.plainObjects,strictDepth:typeof et.strictDepth=="boolean"?!!et.strictDepth:defaults$1.strictDepth,strictNullHandling:typeof et.strictNullHandling=="boolean"?et.strictNullHandling:defaults$1.strictNullHandling,throwOnLimitExceeded:typeof et.throwOnLimitExceeded=="boolean"?et.throwOnLimitExceeded:!1}},parse$2=function(tt,et){var rt=normalizeParseOptions(et);if(tt===""||tt===null||typeof tt>"u")return rt.plainObjects?{__proto__:null}:{};for(var st=typeof tt=="string"?parseValues(tt,rt):tt,nt=rt.plainObjects?{__proto__:null}:{},ot=Object.keys(st),at=0;at<ot.length;++at){var lt=ot[at],ut=parseKeys(lt,st[lt],rt,typeof tt=="string");nt=utils.merge(nt,ut,rt)}return rt.allowSparse===!0?nt:utils.compact(nt)},stringify=stringify_1,parse$1=parse$2,formats$1=formats$4,lib$3={formats:formats$1,parse:parse$1,stringify},punycode=punycodeExports;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
|