const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('whiteboard', '', 'js/useJwtStore-B1DPLYgs.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/index-C0mkXnFg.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/vendor-BeFBwUwf.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/index-Bn0s6V7w.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/index-vg7q3Iku.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/index-Anv74-sp.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/whiteboard-main.mjs'),window.OC.filePath('whiteboard', '', 'css/main-_klv1ar-.chunk.css'),window.OC.filePath('whiteboard', '', 'js/percentages-BXMCSKIN-Cw9SI0WV.chunk.mjs'),window.OC.filePath('whiteboard', '', 'css/percentages-BXMCSKIN-ujA1cZqy.chunk.css'),window.OC.filePath('whiteboard', '', 'js/dagre-6UL2VRFP-C4yzEiV1.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/graph-DW1leGfv.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/isEmpty-nTVdZyYD.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/_baseUniq-CE6homwJ.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/union-S9f8F22c.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/layout-0JowWxPT.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/_basePickBy-0DU--7tw.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/has-DJswI7NS.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/zipObject-D21phg5E.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/clone-Dt8ItUbV.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/translation-DoG5ZELJ-DKBzIEvm.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/_plugin-vue2_normalizer-CBCAj2XU.chunk.mjs'),window.OC.filePath('whiteboard', '', 'css/_plugin-vue2_normalizer-DI730xtv.chunk.css'),window.OC.filePath('whiteboard', '', 'js/line-2ECJkxIB.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/array-Cg_lHFoG.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/path-i7Zvihw6.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/cose-bilkent-S5V4N54A-DrWbYtEv.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/cytoscape.esm-3961YR65.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/cytoscape-cose-bilkent-BWab1rkW.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/c4Diagram-YG6GDRKO-SZ1oK3UE.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-TZMSLE5B-B8tHkXJi.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/flowDiagram-NV44I4VS-BPUlxvl4.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-FMBD7UC4-D5bcQQw6.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-55IACEB6-DorbukSM.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-QN33PNHL-BuaC_Ajj.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/channel-D44fE3i4.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/erDiagram-Q2GNP2WA-qwMfhs6r.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/gitGraphDiagram-NY62KEGX-BXDkjyrV.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-4BX2VUAB-CRQkbnhe.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-QZHKN3VN-BMszg4_5.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/treemap-KMMF4GRG-BMzvQTWV.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/ganttDiagram-LVOFAZNH-D4MQZsBO.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/advancedFormat-DtRFGl4q.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/linear-CZ6-L-52.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/init-q33yAy1W.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/defaultLocale-slEEJlip.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/infoDiagram-ER5ION4S-BNfudNZ_.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/pieDiagram-ADFJNKIX-AcT9hkDi.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/arc-pRSyNWj2.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/ordinal-Bt1svyuw.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/pie-GG9zOSZD.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/quadrantDiagram-AYHSOK5B-wlu4VLMC.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/xychartDiagram-PRI3JC2R-Bmsn06HW.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/band-C8onkxB6.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/requirementDiagram-UZGBJVZJ-V1aoWatw.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/sequenceDiagram-WL72ISMW-DxQyJrnB.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/classDiagram-2ON5EDUG-CPOTvch7.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-B4BG7PRW-Br1YjaBD.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/classDiagram-v2-WZHVMYZB-CPOTvch7.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/stateDiagram-FKZM4ZOC-JowkH9ds.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-DI55MBZ5-BUmmvRzW.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/stateDiagram-v2-4FDKWEC3-C0F9BWVb.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/journeyDiagram-XKPGCS4Q-Bhi9VGC5.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/timeline-definition-IT6M3QCI-CuIbrCtc.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/mindmap-definition-VGOIOE7T-CuWXKj-W.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/kanban-definition-3W4ZIXB7-BG3s_IC5.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/sankeyDiagram-TZEHDZUN-DMCfKj-m.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/sankeyLinkHorizontal-CWiUWupv.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/Tableau10-C5lqCagu.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/diagram-S2PKOQOG-75BxjXvU.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/diagram-QEK2KX5R-D1-dEdP7.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/blockDiagram-VD42YOAC-BHSf_xza.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/architectureDiagram-VXUJARFQ-DiqBgp7x.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/diagram-PSM6KHXK-Dp3lq7K0.chunk.mjs')])))=>i.map(i=>d[i]); /*! third party licenses: js/vendor.LICENSE.txt */ var h7=Object.defineProperty;var q2=e=>{throw TypeError(e)};var g7=(e,t,o)=>t in e?h7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Te=(e,t,o)=>g7(e,typeof t!="symbol"?t+"":t,o),Tg=(e,t,o)=>t.has(e)||q2("Cannot "+o);var yt=(e,t,o)=>(Tg(e,t,"read from private field"),o?o.call(e):t.get(e)),Ho=(e,t,o)=>t.has(e)?q2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),To=(e,t,o,r)=>(Tg(e,t,"write to private field"),r?r.call(e,o):t.set(e,o),o),Fr=(e,t,o)=>(Tg(e,t,"access private method"),o);var cl=(e,t,o,r)=>({set _(n){To(e,t,n,o)},get _(){return yt(e,t,r)}});import{R as I,r as U,g as Y2,_ as to,l as Bt}from"./whiteboard-main.mjs";import{c as _n,g as Xn,u as ad,s as id,e as f7,a as P2}from"./index-C0mkXnFg.chunk.mjs";import{c as k1,t as he,g as Z2,p as d1,a as m7}from"./translation-DoG5ZELJ-DKBzIEvm.chunk.mjs";import{b as _7,M as Sd,s as mn,a as b7,c as y7,o as D7,e as E7,g as k7,l as x7,D as Zi,Y as c1,$ as w7,h as Yr,j as v7,x as T7,i as wi,t as C7,u as A7,k as B7,n as vi,I as S7}from"./percentages-BXMCSKIN-Cw9SI0WV.chunk.mjs";import{c as Gc,u as Pr,a as Wo,b as Yt,p as j7,d as O7}from"./useJwtStore-B1DPLYgs.chunk.mjs";import{V as an,t as R7,e as Fo,f as xF,g as $c,h as N7,r as nn,u as Py,i as en,G as Wi,l as M7,j as Zy,k as Pt,o as L7,m as x1,p as Hy,q as sn,v as Mf,w as I7,x as ri,y as q7,z as Y7,A as oF,B as H2,C as sd,D as fp,E as P7,F as Z7,H as zy,I as H7,J as Ue,K as z7,L as Nu,M as G7,O as $7,P as wF,Q as U7,R as Gy,b as Lf,c as Ji,S as W7,T as $y,U as V7,W as K7,X as Uy,Y as Wy,d as Uc,Z as Q7,_ as X7,$ as J7,a0 as eB,a1 as h1,a2 as tB,a3 as Vy,a4 as oB,a5 as Ky,a6 as rB,a7 as nB,a8 as aB,a9 as Qy,aa as iB,ab as z2,ac as Xy,ad as Cg,ae as sB,af as uB,ag as lB,ah as FB,ai as dB,aj as cB,ak as hB,al as Jy,ao as gB,ap as pB,aq as fB,ar as mB,as as _B,at as If,au as bB,av as yB,aw as DB,ax as EB,ay as kB,az as xB,aA as wB,aB as vB,aC as TB,aD as CB,aE as AB,aF as eD,aG as BB,aH as SB,aI as jB,aJ as OB,aK as RB,aL as NB,aM as MB,aN as LB,aO as IB,aP as S0,n as Wc,a as qB,s as _a,aQ as mp}from"./_plugin-vue2_normalizer-CBCAj2XU.chunk.mjs";import{c as ti,g as vF,a as YB,r as PB}from"./vendor-BeFBwUwf.chunk.mjs";import{b as G2,c as ZB,g as yn,l as tD,d as Vn,i as oD}from"./index-Anv74-sp.chunk.mjs";import{N as HB,d as zB,ac as De,ad as nt,r as ud,y as xt,x as ht,w as TF,s as ro,P as qf,Q as rD,R as nD,T as aD,V as iD,W as sD,X as uD,Y as GB,z as _p,Z as lD,_ as $B,$ as UB,a0 as FD,a1 as WB,a2 as VB,a3 as KB,a4 as dD,a5 as cD,a6 as QB,a7 as XB,l as ld,a8 as JB,O as hD,a9 as eS,ab as tS,q as $2,aa as oS}from"./isEmpty-nTVdZyYD.chunk.mjs";import{l as rS}from"./line-2ECJkxIB.chunk.mjs";const p7="whiteboard";function nS(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(k1()),t=e.getWeekInfo?.()??e.weekInfo;return t?t.firstDay%7:1}function aS(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=k1();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"long"})]}function iS(){if(typeof globalThis.dayNamesShort<"u")return globalThis.dayNamesShort;const e=k1();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"short"})]}function sS(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=k1();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"narrow"})]}function uS(){if(typeof globalThis.monthNames<"u")return globalThis.monthNames;const e=k1();return[new Date(1970,0).toLocaleDateString(e,{month:"long"}),new Date(1970,1).toLocaleDateString(e,{month:"long"}),new Date(1970,2).toLocaleDateString(e,{month:"long"}),new Date(1970,3).toLocaleDateString(e,{month:"long"}),new Date(1970,4).toLocaleDateString(e,{month:"long"}),new Date(1970,5).toLocaleDateString(e,{month:"long"}),new Date(1970,6).toLocaleDateString(e,{month:"long"}),new Date(1970,7).toLocaleDateString(e,{month:"long"}),new Date(1970,8).toLocaleDateString(e,{month:"long"}),new Date(1970,9).toLocaleDateString(e,{month:"long"}),new Date(1970,10).toLocaleDateString(e,{month:"long"}),new Date(1970,11).toLocaleDateString(e,{month:"long"})]}function lS(){if(typeof globalThis.monthNamesShort<"u")return globalThis.monthNamesShort;const e=k1();return[new Date(1970,0).toLocaleDateString(e,{month:"short"}),new Date(1970,1).toLocaleDateString(e,{month:"short"}),new Date(1970,2).toLocaleDateString(e,{month:"short"}),new Date(1970,3).toLocaleDateString(e,{month:"short"}),new Date(1970,4).toLocaleDateString(e,{month:"short"}),new Date(1970,5).toLocaleDateString(e,{month:"short"}),new Date(1970,6).toLocaleDateString(e,{month:"short"}),new Date(1970,7).toLocaleDateString(e,{month:"short"}),new Date(1970,8).toLocaleDateString(e,{month:"short"}),new Date(1970,9).toLocaleDateString(e,{month:"short"}),new Date(1970,10).toLocaleDateString(e,{month:"short"}),new Date(1970,11).toLocaleDateString(e,{month:"short"})]}var FS=Object.defineProperty,U2=Object.getOwnPropertySymbols,dS=Object.prototype.hasOwnProperty,cS=Object.prototype.propertyIsEnumerable,W2=(e,t,o)=>t in e?FS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,hS=(e,t)=>{for(var o in t||(t={}))dS.call(t,o)&&W2(e,o,t[o]);if(U2)for(var o of U2(t))cS.call(t,o)&&W2(e,o,t[o]);return e};function gS(e,t={},o={},r=()=>{}){typeof o=="function"&&(r=o,o={});let{container:n}=o;"container"in t&&typeof t.container=="string"&&(n??(n=t.container));const a=(typeof n=="string"&&document.querySelector(n)||document.body).appendChild(document.createElement("div")),s=new an({el:a,name:"VueDialogHelper",render:i=>i(e,{props:hS({container:null},t),on:{close:(...u)=>{r(...u.map(l=>R7(l))),s.$destroy(),a.remove()}}})});return s}const pS=xF({name:"NcDialog",components:{NcDialogButton:N7,NcModal:$c},props:{name:{type:String,required:!0},message:{type:String,default:""},additionalTrapElements:{type:Array,validator:e=>Array.isArray(e)&&e.every(t=>typeof t=="string"||t instanceof HTMLElement),default:()=>[]},container:{type:String,required:!1,default:"body"},open:{type:Boolean,default:!0},size:{type:String,required:!1,default:"small",validator:e=>typeof e=="string"&&["small","normal","large","full"].includes(e)},buttons:{type:Array,required:!1,default:()=>[],validator:e=>Array.isArray(e)&&e.every(t=>typeof t=="object")},noClose:{type:Boolean,default:!1},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!1},isForm:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},navigationClasses:{type:[String,Array,Object],required:!1,default:""},navigationAriaLabel:{type:String,required:!1,default:""},navigationAriaLabelledby:{type:String,required:!1,default:""},contentClasses:{type:[String,Array,Object],required:!1,default:""},dialogClasses:{type:[String,Array,Object],required:!1,default:""}},emits:["closing","update:open","submit"],setup(e,{emit:t,slots:o}){const r=nn(),{width:n}=Py(r,{width:900}),a=en(()=>n.value<876),s=en(()=>o?.navigation!==void 0),i=Wi(),u=en(()=>e.navigationAriaLabel||void 0),l=en(()=>{if(!e.navigationAriaLabel)return e.navigationAriaLabelledby||i}),d=nn(),c=en(()=>e.isForm&&!s.value?"form":"div"),g=en(()=>c.value==="form"?{submit(k){k.preventDefault(),t("submit",k)},reset(k){k.preventDefault(),t("reset",k)}}:{}),p=nn(!0);function m(k,A){(k.type==="submit"||k.nativeType==="submit")&&c.value==="form"&&!d.value.reportValidity()||(_(A),window.setTimeout(()=>D(),300))}function _(k){p.value=!1,t("closing",k)}function D(){p.value=!0,t("update:open",!1)}const E=en(()=>({noClose:e.noClose||!e.canClose,container:e.container===void 0?"body":e.container,labelId:i,size:e.size,show:e.open&&p.value,outTransition:e.outTransition,closeOnClickOutside:e.closeOnClickOutside,additionalTrapElements:e.additionalTrapElements}));return{dialogElement:d,dialogListeners:g,dialogTagName:c,handleButtonClose:m,handleClosing:_,handleClosed:D,hasNavigation:s,navigationId:i,navigationAriaLabelAttr:u,navigationAriaLabelledbyAttr:l,isNavigationCollapsed:a,modalProps:E,wrapper:r}}});var fS=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.open?t("NcModal",e._b({staticClass:"dialog__modal",attrs:{"enable-slideshow":!1,"enable-swipe":!1},on:{close:e.handleClosed,"update:show":function(o){return e.handleClosing()}}},"NcModal",e.modalProps,!1),[t("h2",{staticClass:"dialog__name",attrs:{id:e.navigationId},domProps:{textContent:e._s(e.name)}}),t(e.dialogTagName,e._g({ref:"dialogElement",tag:"component",staticClass:"dialog",class:e.dialogClasses},e.dialogListeners),[t("div",{ref:"wrapper",staticClass:"dialog__wrapper",class:{"dialog__wrapper--collapsed":e.isNavigationCollapsed}},[e.hasNavigation?t("nav",{staticClass:"dialog__navigation",class:e.navigationClasses,attrs:{"aria-label":e.navigationAriaLabelAttr,"aria-labelledby":e.navigationAriaLabelledbyAttr}},[e._t("navigation",null,{isCollapsed:e.isNavigationCollapsed})],2):e._e(),t("div",{staticClass:"dialog__content",class:e.contentClasses},[e._t("default",function(){return[t("p",{staticClass:"dialog__text"},[e._v(" "+e._s(e.message)+" ")])]})],2)]),t("div",{staticClass:"dialog__actions"},[e._t("actions",function(){return e._l(e.buttons,function(o,r){return t("NcDialogButton",e._b({key:r,on:{click:(n,a)=>e.handleButtonClose(o,a)}},"NcDialogButton",o,!1))})})],2)])],1):e._e()},mS=[],_S=Fo(pS,fS,mS,!1,null,"66c29e13");const bS=_S.exports,yS=gS,pr=Gc((e,t)=>({excalidrawAPI:null,setExcalidrawAPI:o=>e({excalidrawAPI:o}),resetExcalidrawAPI:()=>e({excalidrawAPI:null}),scrollToContent:()=>{const{excalidrawAPI:o}=t();if(!o)return;const r=o.getSceneElements();o.scrollToContent(r,{fitToContent:!0,animate:!0,duration:500})}}));function DS(e,t,o){const r=_7(e,t,o),n=new Map,a=new Map;return e.forEach(s=>{n.set(s.id,s)}),t.forEach(s=>{a.set(s.id,s)}),r.map(s=>{const i=s,u=a.get(s.id),l=n.get(s.id);if(u?.customData?.creator&&(i.customData||(i.customData={}),i.customData.creator=u.customData.creator),u?.customData?.lastModifiedBy){const c=u.customData.lastModifiedBy.createdAt,g=l?.customData?.lastModifiedBy?.createdAt||0;c>g&&(i.customData||(i.customData={}),i.customData.lastModifiedBy=u.customData.lastModifiedBy)}l?.customData?.creator&&!i.customData?.creator&&(i.customData||(i.customData={}),i.customData.creator=l.customData.creator);const d=u||l;return d?.customData&&(i.customData||(i.customData={}),d.customData.isTable!==void 0&&(i.customData.isTable=d.customData.isTable),d.customData.tableHtml!==void 0&&(i.customData.tableHtml=d.customData.tableHtml),"tableLock"in d.customData&&(i.customData.tableLock=d.customData.tableLock)),i})}const V2=e=>Symbol.iterator in e,K2=e=>"entries"in e,Q2=(e,t)=>{const o=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(o.size!==r.size)return!1;for(const[n,a]of o)if(!r.has(n)||!Object.is(a,r.get(n)))return!1;return!0},ES=(e,t)=>{const o=e[Symbol.iterator](),r=t[Symbol.iterator]();let n=o.next(),a=r.next();for(;!n.done&&!a.done;){if(!Object.is(n.value,a.value))return!1;n=o.next(),a=r.next()}return!!n.done&&!!a.done};function kS(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:V2(e)&&V2(t)?K2(e)&&K2(t)?Q2(e,t):ES(e,t):Q2({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function go(e){const t=I.useRef(void 0);return o=>{const r=e(o);return kS(t.current,r)?t.current:t.current=r}}var Fd={exports:{}},xS=Fd.exports,X2;function wS(){return X2||(X2=1,function(e,t){(function(){var o,r="4.17.23",n=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",i="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,d="__lodash_placeholder__",c=1,g=2,p=4,m=1,_=2,D=1,E=2,k=4,A=8,N=16,R=32,L=64,V=128,W=256,Z=512,w=30,Y="...",K=800,H=16,$=1,X=2,ie=3,ce=1/0,me=9007199254740991,Ee=17976931348623157e292,Ce=NaN,Be=4294967295,ue=Be-1,fe=Be>>>1,ke=[["ary",V],["bind",D],["bindKey",E],["curry",A],["curryRight",N],["flip",Z],["partial",R],["partialRight",L],["rearg",W]],we="[object Arguments]",Pe="[object Array]",ze="[object AsyncFunction]",ct="[object Boolean]",Le="[object Date]",st="[object DOMException]",Lt="[object Error]",tt="[object Function]",Zt="[object GeneratorFunction]",zt="[object Map]",ao="[object Number]",Bo="[object Null]",J="[object Object]",pe="[object Promise]",ne="[object Proxy]",Ze="[object RegExp]",We="[object Set]",ot="[object String]",Se="[object Symbol]",He="[object Undefined]",Ft="[object WeakMap]",It="[object WeakSet]",oo="[object ArrayBuffer]",co="[object DataView]",B="[object Float32Array]",te="[object Float64Array]",ae="[object Int8Array]",ve="[object Int16Array]",Ve="[object Int32Array]",Ke="[object Uint8Array]",at="[object Uint8ClampedArray]",Ie="[object Uint16Array]",_t="[object Uint32Array]",Xe=/\b__p \+= '';/g,bt=/\b(__p \+=) '' \+/g,qe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,So=/&(?:amp|lt|gt|quot|#39);/g,io=/[&<>"']/g,Vo=RegExp(So.source),or=RegExp(io.source),ya=/<%-([\s\S]+?)%>/g,di=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,qn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jn=/^\w*$/,ns=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ci=/[\\^$.*+?()[\]{}|]/g,ko=RegExp(ci.source),No=/^\s+/,kh=/\s/,su=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,uu=/\{\n\/\* \[wrapped with (.+)\] \*/,lu=/,? & /,xh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ea=/[()=,{}\[\]\/\s]/,hi=/\\(\\)?/g,ta=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,as=/\w*$/,wh=/^[-+]0x[0-9a-f]+$/i,oa=/^0b[01]+$/i,LF=/^\[object .+?Constructor\]$/,Da=/^0o[0-7]+$/i,IF=/^(?:0|[1-9]\d*)$/,B1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xo=/($^)/,Ea=/['\n\r\u2028\u2029\\]/g,Gr="\\ud800-\\udfff",qF="\\u0300-\\u036f",gi="\\ufe20-\\ufe2f",Fu="\\u20d0-\\u20ff",du=qF+gi+Fu,cu="\\u2700-\\u27bf",ra="a-z\\xdf-\\xf6\\xf8-\\xff",YF="\\xac\\xb1\\xd7\\xf7",hu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",PF="\\u2000-\\u206f",Wt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",S1="A-Z\\xc0-\\xd6\\xd8-\\xde",j1="\\ufe0e\\ufe0f",is=YF+hu+PF+Wt,ka="['’]",ZF="["+Gr+"]",O1="["+is+"]",ss="["+du+"]",_o="\\d+",us="["+cu+"]",pi="["+ra+"]",xa="[^"+Gr+is+_o+cu+ra+S1+"]",ls="\\ud83c[\\udffb-\\udfff]",R1="(?:"+ss+"|"+ls+")",Fs="[^"+Gr+"]",gu="(?:\\ud83c[\\udde6-\\uddff]){2}",fi="[\\ud800-\\udbff][\\udc00-\\udfff]",wa="["+S1+"]",HF="\\u200d",Jt="(?:"+pi+"|"+xa+")",zF="(?:"+wa+"|"+xa+")",GF="(?:"+ka+"(?:d|ll|m|re|s|t|ve))?",$F="(?:"+ka+"(?:D|LL|M|RE|S|T|VE))?",fr=R1+"?",va="["+j1+"]?",pu="(?:"+HF+"(?:"+[Fs,gu,fi].join("|")+")"+va+fr+")*",na="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",UF="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",N1=va+fr+pu,$o="(?:"+[us,gu,fi].join("|")+")"+N1,Dn="(?:"+[Fs+ss+"?",ss,gu,fi,ZF].join("|")+")",ds=RegExp(ka,"g"),cs=RegExp(ss,"g"),hs=RegExp(ls+"(?="+ls+")|"+Dn+N1,"g"),aa=RegExp([wa+"?"+pi+"+"+GF+"(?="+[O1,wa,"$"].join("|")+")",zF+"+"+$F+"(?="+[O1,wa+Jt,"$"].join("|")+")",wa+"?"+Jt+"+"+GF,wa+"+"+$F,UF,na,_o,$o].join("|"),"g"),vh=RegExp("["+HF+Gr+du+j1+"]"),En=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,M1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],WF=-1,bo={};bo[B]=bo[te]=bo[ae]=bo[ve]=bo[Ve]=bo[Ke]=bo[at]=bo[Ie]=bo[_t]=!0,bo[we]=bo[Pe]=bo[oo]=bo[ct]=bo[co]=bo[Le]=bo[Lt]=bo[tt]=bo[zt]=bo[ao]=bo[J]=bo[Ze]=bo[We]=bo[ot]=bo[Ft]=!1;var so={};so[we]=so[Pe]=so[oo]=so[co]=so[ct]=so[Le]=so[B]=so[te]=so[ae]=so[ve]=so[Ve]=so[zt]=so[ao]=so[J]=so[Ze]=so[We]=so[ot]=so[Se]=so[Ke]=so[at]=so[Ie]=so[_t]=!0,so[Lt]=so[tt]=so[Ft]=!1;var L1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},VF={"&":"&","<":"<",">":">",'"':""","'":"'"},Th={"&":"&","<":"<",">":">",""":'"',"'":"'"},gs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ch=parseFloat,Ah=parseInt,ps=typeof ti=="object"&&ti&&ti.Object===Object&&ti,fu=typeof self=="object"&&self&&self.Object===Object&&self,qo=ps||fu||Function("return this")(),I1=t&&!t.nodeType&&t,Ta=I1&&!0&&e&&!e.nodeType&&e,KF=Ta&&Ta.exports===I1,fs=KF&&ps.process,mr=function(){try{var j=Ta&&Ta.require&&Ta.require("util").types;return j||fs&&fs.binding&&fs.binding("util")}catch{}}(),q1=mr&&mr.isArrayBuffer,ms=mr&&mr.isDate,_s=mr&&mr.isMap,bs=mr&&mr.isRegExp,Y1=mr&&mr.isSet,QF=mr&&mr.isTypedArray;function Uo(j,z,P){switch(P.length){case 0:return j.call(z);case 1:return j.call(z,P[0]);case 2:return j.call(z,P[0],P[1]);case 3:return j.call(z,P[0],P[1],P[2])}return j.apply(z,P)}function P1(j,z,P,oe){for(var ee=-1,de=j==null?0:j.length;++ee-1}function Ca(j,z,P){for(var oe=-1,ee=j==null?0:j.length;++oe-1;);return P}function K1(j,z){for(var P=j.length;P--&&sa(z,j[P],0)>-1;);return P}function t0(j,z){for(var P=j.length,oe=0;P--;)j[P]===z&&++oe;return oe}var Sh=G1(L1),jh=G1(VF);function Oh(j){return"\\"+gs[j]}function xu(j,z){return j==null?o:j[z]}function yr(j){return vh.test(j)}function jo(j){return En.test(j)}function wu(j){for(var z,P=[];!(z=j.next()).done;)P.push(z.value);return P}function Dr(j){var z=-1,P=Array(j.size);return j.forEach(function(oe,ee){P[++z]=[ee,oe]}),P}function o0(j,z){return function(P){return j(z(P))}}function kn(j,z){for(var P=-1,oe=j.length,ee=0,de=[];++P-1}function Iv(F,h){var b=this.__data__,v=l0(b,F);return v<0?(++this.size,b.push([F,h])):b[v][1]=h,this}ja.prototype.clear=Rv,ja.prototype.delete=Nv,ja.prototype.get=Mv,ja.prototype.has=Lv,ja.prototype.set=Iv;function Oa(F){var h=-1,b=F==null?0:F.length;for(this.clear();++h=h?F:h)),F}function vn(F,h,b,v,O,G){var re,Fe=h&c,be=h&g,Re=h&p;if(b&&(re=O?b(F,v,O,G):b(F)),re!==o)return re;if(!Oo(F))return F;var Ne=Mt(F);if(Ne){if(re=ZT(F),!Fe)return Ur(F,re)}else{var Ye=kr(F),it=Ye==tt||Ye==Zt;if(xi(F))return B_(F,Fe);if(Ye==J||Ye==we||it&&!O){if(re=be||it?{}:V_(F),!Fe)return be?ST(F,eT(re,F)):BT(F,i_(re,F))}else{if(!so[Ye])return O?F:{};re=HT(F,Ye,Fe)}}G||(G=new Yn);var Dt=G.get(F);if(Dt)return Dt;G.set(F,re),x2(F)?F.forEach(function(At){re.add(vn(At,h,b,At,F,G))}):E2(F)&&F.forEach(function(At,Vt){re.set(Vt,vn(At,h,b,Vt,F,G))});var Ct=Re?be?ng:rg:be?Vr:nr,Gt=Ne?o:Ct(F);return _r(Gt||F,function(At,Vt){Gt&&(Vt=At,At=F[Vt]),rl(re,Vt,vn(At,h,b,Vt,F,G))}),re}function tT(F){var h=nr(F);return function(b){return s_(b,F,h)}}function s_(F,h,b){var v=b.length;if(F==null)return!v;for(F=le(F);v--;){var O=b[v],G=h[O],re=F[O];if(re===o&&!(O in F)||!G(re))return!1}return!0}function u_(F,h,b){if(typeof F!="function")throw new ye(s);return Fl(function(){F.apply(o,b)},h)}function nl(F,h,b,v){var O=-1,G=ia,re=!0,Fe=F.length,be=[],Re=h.length;if(!Fe)return be;b&&(h=Eo(h,br(b))),v?(G=Ca,re=!1):h.length>=n&&(G=bi,re=!1,h=new ws(h));e:for(;++OO?0:O+b),v=v===o||v>O?O:Ht(v),v<0&&(v+=O),v=b>v?0:v2(v);b0&&b(Fe)?h>1?lr(Fe,h-1,b,v,O):un(O,Fe):v||(O[O.length]=Fe)}return O}var qh=M_(),d_=M_(!0);function ua(F,h){return F&&qh(F,h,nr)}function Yh(F,h){return F&&d_(F,h,nr)}function d0(F,h){return vo(h,function(b){return Ia(F[b])})}function Ts(F,h){h=Ei(h,F);for(var b=0,v=h.length;F!=null&&bh}function nT(F,h){return F!=null&&je.call(F,h)}function aT(F,h){return F!=null&&h in le(F)}function iT(F,h,b){return F>=Er(h,b)&&F=120&&Ne.length>=120)?new ws(re&&Ne):o}Ne=F[0];var Ye=-1,it=Fe[0];e:for(;++Ye-1;)Fe!==F&&xn.call(Fe,be,1),xn.call(F,be,1);return F}function E_(F,h){for(var b=F?h.length:0,v=b-1;b--;){var O=h[b];if(b==v||O!==G){var G=O;La(O)?xn.call(F,O,1):Kh(F,O)}}return F}function Uh(F,h){return F+a0(o_()*(h-F+1))}function bT(F,h,b,v){for(var O=-1,G=Qo(n0((h-F)/(b||1)),0),re=P(G);G--;)re[v?G:++O]=F,F+=b;return re}function Wh(F,h){var b="";if(!F||h<1||h>me)return b;do h%2&&(b+=F),h=a0(h/2),h&&(F+=F);while(h);return b}function Ut(F,h){return dg(X_(F,h,Kr),F+"")}function yT(F){return a_(Ru(F))}function DT(F,h){var b=Ru(F);return E0(b,vs(h,0,b.length))}function sl(F,h,b,v){if(!Oo(F))return F;h=Ei(h,F);for(var O=-1,G=h.length,re=G-1,Fe=F;Fe!=null&&++OO?0:O+h),b=b>O?O:b,b<0&&(b+=O),O=h>b?0:b-h>>>0,h>>>=0;for(var G=P(O);++v>>1,re=F[G];re!==null&&!Fn(re)&&(b?re<=h:re=n){var Re=h?null:NT(F);if(Re)return ys(Re);re=!1,O=bi,be=new ws}else be=h?[]:Fe;e:for(;++v=v?F:Tn(F,h,b)}var A_=cv||function(F){return qo.clearTimeout(F)};function B_(F,h){if(h)return F.slice();var b=F.length,v=Ko?Ko(b):new F.constructor(b);return F.copy(v),v}function eg(F){var h=new F.constructor(F.byteLength);return new jt(h).set(new jt(F)),h}function vT(F,h){var b=h?eg(F.buffer):F.buffer;return new F.constructor(b,F.byteOffset,F.byteLength)}function TT(F){var h=new F.constructor(F.source,as.exec(F));return h.lastIndex=F.lastIndex,h}function CT(F){return ol?le(ol.call(F)):{}}function S_(F,h){var b=h?eg(F.buffer):F.buffer;return new F.constructor(b,F.byteOffset,F.length)}function j_(F,h){if(F!==h){var b=F!==o,v=F===null,O=F===F,G=Fn(F),re=h!==o,Fe=h===null,be=h===h,Re=Fn(h);if(!Fe&&!Re&&!G&&F>h||G&&re&&be&&!Fe&&!Re||v&&re&&be||!b&&be||!O)return 1;if(!v&&!G&&!Re&&F=Fe)return be;var Re=b[v];return be*(Re=="desc"?-1:1)}}return F.index-h.index}function O_(F,h,b,v){for(var O=-1,G=F.length,re=b.length,Fe=-1,be=h.length,Re=Qo(G-re,0),Ne=P(be+Re),Ye=!v;++Fe1?b[O-1]:o,re=O>2?b[2]:o;for(G=F.length>3&&typeof G=="function"?(O--,G):o,re&&Mr(b[0],b[1],re)&&(G=O<3?o:G,O=1),h=le(h);++v-1?O[G?h[re]:re]:o}}function q_(F){return Ma(function(h){var b=h.length,v=b,O=wn.prototype.thru;for(F&&h.reverse();v--;){var G=h[v];if(typeof G!="function")throw new ye(s);if(O&&!re&&y0(G)=="wrapper")var re=new wn([],!0)}for(v=re?v:b;++v1&&eo.reverse(),Ne&&beFe))return!1;var Re=G.get(F),Ne=G.get(h);if(Re&&Ne)return Re==h&&Ne==F;var Ye=-1,it=!0,Dt=b&_?new ws:o;for(G.set(F,h),G.set(h,F);++Ye1?"& ":"")+h[v],h=h.join(b>2?", ":" "),F.replace(su,`{ /* [wrapped with `+h+`] */ `)}function GT(F){return Mt(F)||Bs(F)||!!(vu&&F&&F[vu])}function La(F,h){var b=typeof F;return h=h??me,!!h&&(b=="number"||b!="symbol"&&IF.test(F))&&F>-1&&F%1==0&&F0){if(++h>=K)return arguments[0]}else h=0;return F.apply(o,arguments)}}function E0(F,h){var b=-1,v=F.length,O=v-1;for(h=h===o?v:h;++b1?F[h-1]:o;return b=typeof b=="function"?(F.pop(),b):o,F2(F,b)});function d2(F){var h=q(F);return h.__chain__=!0,h}function oC(F,h){return h(F),F}function k0(F,h){return h(F)}var rC=Ma(function(F){var h=F.length,b=h?F[0]:0,v=this.__wrapped__,O=function(G){return Ih(G,F)};return h>1||this.__actions__.length||!(v instanceof Qt)||!La(b)?this.thru(O):(v=v.slice(b,+b+(h?1:0)),v.__actions__.push({func:k0,args:[O],thisArg:o}),new wn(v,this.__chain__).thru(function(G){return h&&!G.length&&G.push(o),G}))});function nC(){return d2(this)}function aC(){return new wn(this.value(),this.__chain__)}function iC(){this.__values__===o&&(this.__values__=w2(this.value()));var F=this.__index__>=this.__values__.length,h=F?o:this.__values__[this.__index__++];return{done:F,value:h}}function sC(){return this}function uC(F){for(var h,b=this;b instanceof u0;){var v=n2(b);v.__index__=0,v.__values__=o,h?O.__wrapped__=v:h=v;var O=v;b=b.__wrapped__}return O.__wrapped__=F,h}function lC(){var F=this.__wrapped__;if(F instanceof Qt){var h=F;return this.__actions__.length&&(h=new Qt(this)),h=h.reverse(),h.__actions__.push({func:k0,args:[cg],thisArg:o}),new wn(h,this.__chain__)}return this.thru(cg)}function FC(){return T_(this.__wrapped__,this.__actions__)}var dC=p0(function(F,h,b){je.call(F,b)?++F[b]:Ra(F,b,1)});function cC(F,h,b){var v=Mt(F)?mu:oT;return b&&Mr(F,h,b)&&(h=o),v(F,vt(h,3))}function hC(F,h){var b=Mt(F)?vo:F_;return b(F,vt(h,3))}var gC=I_(a2),pC=I_(i2);function fC(F,h){return lr(x0(F,h),1)}function mC(F,h){return lr(x0(F,h),ce)}function _C(F,h,b){return b=b===o?1:Ht(b),lr(x0(F,h),b)}function c2(F,h){var b=Mt(F)?_r:yi;return b(F,vt(h,3))}function h2(F,h){var b=Mt(F)?Z1:l_;return b(F,vt(h,3))}var bC=p0(function(F,h,b){je.call(F,b)?F[b].push(h):Ra(F,b,[h])});function yC(F,h,b,v){F=Wr(F)?F:Ru(F),b=b&&!v?Ht(b):0;var O=F.length;return b<0&&(b=Qo(O+b,0)),A0(F)?b<=O&&F.indexOf(h,b)>-1:!!O&&sa(F,h,b)>-1}var DC=Ut(function(F,h,b){var v=-1,O=typeof h=="function",G=Wr(F)?P(F.length):[];return yi(F,function(re){G[++v]=O?Uo(h,re,b):al(re,h,b)}),G}),EC=p0(function(F,h,b){Ra(F,b,h)});function x0(F,h){var b=Mt(F)?Eo:f_;return b(F,vt(h,3))}function kC(F,h,b,v){return F==null?[]:(Mt(h)||(h=h==null?[]:[h]),b=v?o:b,Mt(b)||(b=b==null?[]:[b]),y_(F,h,b))}var xC=p0(function(F,h,b){F[b?0:1].push(h)},function(){return[[],[]]});function wC(F,h,b){var v=Mt(F)?_u:Du,O=arguments.length<3;return v(F,vt(h,4),b,O,yi)}function vC(F,h,b){var v=Mt(F)?XF:Du,O=arguments.length<3;return v(F,vt(h,4),b,O,l_)}function TC(F,h){var b=Mt(F)?vo:F_;return b(F,T0(vt(h,3)))}function CC(F){var h=Mt(F)?a_:yT;return h(F)}function AC(F,h,b){(b?Mr(F,h,b):h===o)?h=1:h=Ht(h);var v=Mt(F)?Qv:DT;return v(F,h)}function BC(F){var h=Mt(F)?Xv:kT;return h(F)}function SC(F){if(F==null)return 0;if(Wr(F))return A0(F)?Rr(F):F.length;var h=kr(F);return h==zt||h==We?F.size:zh(F).length}function jC(F,h,b){var v=Mt(F)?mi:xT;return b&&Mr(F,h,b)&&(h=o),v(F,vt(h,3))}var OC=Ut(function(F,h){if(F==null)return[];var b=h.length;return b>1&&Mr(F,h[0],h[1])?h=[]:b>2&&Mr(h[0],h[1],h[2])&&(h=[h[0]]),y_(F,lr(h,1),[])}),w0=hv||function(){return qo.Date.now()};function RC(F,h){if(typeof h!="function")throw new ye(s);return F=Ht(F),function(){if(--F<1)return h.apply(this,arguments)}}function g2(F,h,b){return h=b?o:h,h=F&&h==null?F.length:h,Na(F,V,o,o,o,o,h)}function p2(F,h){var b;if(typeof h!="function")throw new ye(s);return F=Ht(F),function(){return--F>0&&(b=h.apply(this,arguments)),F<=1&&(h=o),b}}var gg=Ut(function(F,h,b){var v=D;if(b.length){var O=kn(b,ju(gg));v|=R}return Na(F,v,h,b,O)}),f2=Ut(function(F,h,b){var v=D|E;if(b.length){var O=kn(b,ju(f2));v|=R}return Na(h,v,F,b,O)});function m2(F,h,b){h=b?o:h;var v=Na(F,A,o,o,o,o,o,h);return v.placeholder=m2.placeholder,v}function _2(F,h,b){h=b?o:h;var v=Na(F,N,o,o,o,o,o,h);return v.placeholder=_2.placeholder,v}function b2(F,h,b){var v,O,G,re,Fe,be,Re=0,Ne=!1,Ye=!1,it=!0;if(typeof F!="function")throw new ye(s);h=An(h)||0,Oo(b)&&(Ne=!!b.leading,Ye="maxWait"in b,G=Ye?Qo(An(b.maxWait)||0,h):G,it="trailing"in b?!!b.trailing:it);function Dt(Zo){var Zn=v,Ya=O;return v=O=o,Re=Zo,re=F.apply(Ya,Zn),re}function Ct(Zo){return Re=Zo,Fe=Fl(Vt,h),Ne?Dt(Zo):re}function Gt(Zo){var Zn=Zo-be,Ya=Zo-Re,I2=h-Zn;return Ye?Er(I2,G-Ya):I2}function At(Zo){var Zn=Zo-be,Ya=Zo-Re;return be===o||Zn>=h||Zn<0||Ye&&Ya>=G}function Vt(){var Zo=w0();if(At(Zo))return eo(Zo);Fe=Fl(Vt,Gt(Zo))}function eo(Zo){return Fe=o,it&&v?Dt(Zo):(v=O=o,re)}function dn(){Fe!==o&&A_(Fe),Re=0,v=be=O=Fe=o}function Lr(){return Fe===o?re:eo(w0())}function cn(){var Zo=w0(),Zn=At(Zo);if(v=arguments,O=this,be=Zo,Zn){if(Fe===o)return Ct(be);if(Ye)return A_(Fe),Fe=Fl(Vt,h),Dt(be)}return Fe===o&&(Fe=Fl(Vt,h)),re}return cn.cancel=dn,cn.flush=Lr,cn}var NC=Ut(function(F,h){return u_(F,1,h)}),MC=Ut(function(F,h,b){return u_(F,An(h)||0,b)});function LC(F){return Na(F,Z)}function v0(F,h){if(typeof F!="function"||h!=null&&typeof h!="function")throw new ye(s);var b=function(){var v=arguments,O=h?h.apply(this,v):v[0],G=b.cache;if(G.has(O))return G.get(O);var re=F.apply(this,v);return b.cache=G.set(O,re)||G,re};return b.cache=new(v0.Cache||Oa),b}v0.Cache=Oa;function T0(F){if(typeof F!="function")throw new ye(s);return function(){var h=arguments;switch(h.length){case 0:return!F.call(this);case 1:return!F.call(this,h[0]);case 2:return!F.call(this,h[0],h[1]);case 3:return!F.call(this,h[0],h[1],h[2])}return!F.apply(this,h)}}function IC(F){return p2(2,F)}var qC=wT(function(F,h){h=h.length==1&&Mt(h[0])?Eo(h[0],br(vt())):Eo(lr(h,1),br(vt()));var b=h.length;return Ut(function(v){for(var O=-1,G=Er(v.length,b);++O=h}),Bs=h_(function(){return arguments}())?h_:function(F){return Lo(F)&&je.call(F,"callee")&&!rr.call(F,"callee")},Mt=P.isArray,eA=q1?br(q1):uT;function Wr(F){return F!=null&&C0(F.length)&&!Ia(F)}function Po(F){return Lo(F)&&Wr(F)}function tA(F){return F===!0||F===!1||Lo(F)&&Nr(F)==ct}var xi=pv||vg,oA=ms?br(ms):lT;function rA(F){return Lo(F)&&F.nodeType===1&&!dl(F)}function nA(F){if(F==null)return!0;if(Wr(F)&&(Mt(F)||typeof F=="string"||typeof F.splice=="function"||xi(F)||Ou(F)||Bs(F)))return!F.length;var h=kr(F);if(h==zt||h==We)return!F.size;if(ll(F))return!zh(F).length;for(var b in F)if(je.call(F,b))return!1;return!0}function aA(F,h){return il(F,h)}function iA(F,h,b){b=typeof b=="function"?b:o;var v=b?b(F,h):o;return v===o?il(F,h,o,b):!!v}function fg(F){if(!Lo(F))return!1;var h=Nr(F);return h==Lt||h==st||typeof F.message=="string"&&typeof F.name=="string"&&!dl(F)}function sA(F){return typeof F=="number"&&t_(F)}function Ia(F){if(!Oo(F))return!1;var h=Nr(F);return h==tt||h==Zt||h==ze||h==ne}function D2(F){return typeof F=="number"&&F==Ht(F)}function C0(F){return typeof F=="number"&&F>-1&&F%1==0&&F<=me}function Oo(F){var h=typeof F;return F!=null&&(h=="object"||h=="function")}function Lo(F){return F!=null&&typeof F=="object"}var E2=_s?br(_s):dT;function uA(F,h){return F===h||Hh(F,h,ig(h))}function lA(F,h,b){return b=typeof b=="function"?b:o,Hh(F,h,ig(h),b)}function FA(F){return k2(F)&&F!=+F}function dA(F){if(WT(F))throw new ee(a);return g_(F)}function cA(F){return F===null}function hA(F){return F==null}function k2(F){return typeof F=="number"||Lo(F)&&Nr(F)==ao}function dl(F){if(!Lo(F)||Nr(F)!=J)return!1;var h=Yo(F);if(h===null)return!0;var b=je.call(h,"constructor")&&h.constructor;return typeof b=="function"&&b instanceof b&&et.call(b)==lt}var mg=bs?br(bs):cT;function gA(F){return D2(F)&&F>=-me&&F<=me}var x2=Y1?br(Y1):hT;function A0(F){return typeof F=="string"||!Mt(F)&&Lo(F)&&Nr(F)==ot}function Fn(F){return typeof F=="symbol"||Lo(F)&&Nr(F)==Se}var Ou=QF?br(QF):gT;function pA(F){return F===o}function fA(F){return Lo(F)&&kr(F)==Ft}function mA(F){return Lo(F)&&Nr(F)==It}var _A=b0(Gh),bA=b0(function(F,h){return F<=h});function w2(F){if(!F)return[];if(Wr(F))return A0(F)?$r(F):Ur(F);if(X1&&F[X1])return wu(F[X1]());var h=kr(F),b=h==zt?Dr:h==We?ys:Ru;return b(F)}function qa(F){if(!F)return F===0?F:0;if(F=An(F),F===ce||F===-ce){var h=F<0?-1:1;return h*Ee}return F===F?F:0}function Ht(F){var h=qa(F),b=h%1;return h===h?b?h-b:h:0}function v2(F){return F?vs(Ht(F),0,Be):0}function An(F){if(typeof F=="number")return F;if(Fn(F))return Ce;if(Oo(F)){var h=typeof F.valueOf=="function"?F.valueOf():F;F=Oo(h)?h+"":h}if(typeof F!="string")return F===0?F:+F;F=W1(F);var b=oa.test(F);return b||Da.test(F)?Ah(F.slice(2),b?2:8):wh.test(F)?Ce:+F}function T2(F){return la(F,Vr(F))}function yA(F){return F?vs(Ht(F),-me,me):F===0?F:0}function po(F){return F==null?"":ln(F)}var DA=Bu(function(F,h){if(ll(h)||Wr(h)){la(h,nr(h),F);return}for(var b in h)je.call(h,b)&&rl(F,b,h[b])}),C2=Bu(function(F,h){la(h,Vr(h),F)}),B0=Bu(function(F,h,b,v){la(h,Vr(h),F,v)}),EA=Bu(function(F,h,b,v){la(h,nr(h),F,v)}),kA=Ma(Ih);function xA(F,h){var b=Au(F);return h==null?b:i_(b,h)}var wA=Ut(function(F,h){F=le(F);var b=-1,v=h.length,O=v>2?h[2]:o;for(O&&Mr(h[0],h[1],O)&&(v=1);++b1),G}),la(F,ng(F),b),v&&(b=vn(b,c|g|p,MT));for(var O=h.length;O--;)Kh(b,h[O]);return b});function HA(F,h){return B2(F,T0(vt(h)))}var zA=Ma(function(F,h){return F==null?{}:mT(F,h)});function B2(F,h){if(F==null)return{};var b=Eo(ng(F),function(v){return[v]});return h=vt(h),D_(F,b,function(v,O){return h(v,O[0])})}function GA(F,h,b){h=Ei(h,F);var v=-1,O=h.length;for(O||(O=1,F=o);++vh){var v=F;F=h,h=v}if(b||F%1||h%1){var O=o_();return Er(F+O*(h-F+Ch("1e-"+((O+"").length-1))),h)}return Uh(F,h)}var o8=Su(function(F,h,b){return h=h.toLowerCase(),F+(b?O2(h):h)});function O2(F){return yg(po(F).toLowerCase())}function R2(F){return F=po(F),F&&F.replace(B1,Sh).replace(cs,"")}function r8(F,h,b){F=po(F),h=ln(h);var v=F.length;b=b===o?v:vs(Ht(b),0,v);var O=b;return b-=h.length,b>=0&&F.slice(b,O)==h}function n8(F){return F=po(F),F&&or.test(F)?F.replace(io,jh):F}function a8(F){return F=po(F),F&&ko.test(F)?F.replace(ci,"\\$&"):F}var i8=Su(function(F,h,b){return F+(b?"-":"")+h.toLowerCase()}),s8=Su(function(F,h,b){return F+(b?" ":"")+h.toLowerCase()}),u8=L_("toLowerCase");function l8(F,h,b){F=po(F),h=Ht(h);var v=h?Rr(F):0;if(!h||v>=h)return F;var O=(h-v)/2;return _0(a0(O),b)+F+_0(n0(O),b)}function F8(F,h,b){F=po(F),h=Ht(h);var v=h?Rr(F):0;return h&&v>>0,b?(F=po(F),F&&(typeof h=="string"||h!=null&&!mg(h))&&(h=ln(h),!h&&yr(F))?ki($r(F),0,b):F.split(h,b)):[]}var m8=Su(function(F,h,b){return F+(b?" ":"")+yg(h)});function _8(F,h,b){return F=po(F),b=b==null?0:vs(Ht(b),0,F.length),h=ln(h),F.slice(b,b+h.length)==h}function b8(F,h,b){var v=q.templateSettings;b&&Mr(F,h,b)&&(h=o),F=po(F),h=B0({},h,v,z_);var O=B0({},h.imports,v.imports,z_),G=nr(O),re=V1(O,G),Fe,be,Re=0,Ne=h.interpolate||xo,Ye="__p += '",it=ge((h.escape||xo).source+"|"+Ne.source+"|"+(Ne===rs?ta:xo).source+"|"+(h.evaluate||xo).source+"|$","g"),Dt="//# sourceURL="+(je.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++WF+"]")+` `;F.replace(it,function(At,Vt,eo,dn,Lr,cn){return eo||(eo=dn),Ye+=F.slice(Re,cn).replace(Ea,Oh),Vt&&(Fe=!0,Ye+=`' + __e(`+Vt+`) + '`),Lr&&(be=!0,Ye+=`'; `+Lr+`; __p += '`),eo&&(Ye+=`' + ((__t = (`+eo+`)) == null ? '' : __t) + '`),Re=cn+At.length,At}),Ye+=`'; `;var Ct=je.call(h,"variable")&&h.variable;if(!Ct)Ye=`with (obj) { `+Ye+` } `;else if(ea.test(Ct))throw new ee(i);Ye=(be?Ye.replace(Xe,""):Ye).replace(bt,"$1").replace(qe,"$1;"),Ye="function("+(Ct||"obj")+`) { `+(Ct?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Fe?", __e = _.escape":"")+(be?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ye+`return __p }`;var Gt=M2(function(){return de(G,Dt+"return "+Ye).apply(o,re)});if(Gt.source=Ye,fg(Gt))throw Gt;return Gt}function y8(F){return po(F).toLowerCase()}function D8(F){return po(F).toUpperCase()}function E8(F,h,b){if(F=po(F),F&&(b||h===o))return W1(F);if(!F||!(h=ln(h)))return F;var v=$r(F),O=$r(h),G=ku(v,O),re=K1(v,O)+1;return ki(v,G,re).join("")}function k8(F,h,b){if(F=po(F),F&&(b||h===o))return F.slice(0,f(F)+1);if(!F||!(h=ln(h)))return F;var v=$r(F),O=K1(v,$r(h))+1;return ki(v,0,O).join("")}function x8(F,h,b){if(F=po(F),F&&(b||h===o))return F.replace(No,"");if(!F||!(h=ln(h)))return F;var v=$r(F),O=ku(v,$r(h));return ki(v,O).join("")}function w8(F,h){var b=w,v=Y;if(Oo(h)){var O="separator"in h?h.separator:O;b="length"in h?Ht(h.length):b,v="omission"in h?ln(h.omission):v}F=po(F);var G=F.length;if(yr(F)){var re=$r(F);G=re.length}if(b>=G)return F;var Fe=b-Rr(v);if(Fe<1)return v;var be=re?ki(re,0,Fe).join(""):F.slice(0,Fe);if(O===o)return be+v;if(re&&(Fe+=be.length-Fe),mg(O)){if(F.slice(Fe).search(O)){var Re,Ne=be;for(O.global||(O=ge(O.source,po(as.exec(O))+"g")),O.lastIndex=0;Re=O.exec(Ne);)var Ye=Re.index;be=be.slice(0,Ye===o?Fe:Ye)}}else if(F.indexOf(ln(O),Fe)!=Fe){var it=be.lastIndexOf(O);it>-1&&(be=be.slice(0,it))}return be+v}function v8(F){return F=po(F),F&&Vo.test(F)?F.replace(So,y):F}var T8=Su(function(F,h,b){return F+(b?" ":"")+h.toUpperCase()}),yg=L_("toUpperCase");function N2(F,h,b){return F=po(F),h=b?o:h,h===o?jo(F)?S(F):z1(F):F.match(h)||[]}var M2=Ut(function(F,h){try{return Uo(F,o,h)}catch(b){return fg(b)?b:new ee(b)}}),C8=Ma(function(F,h){return _r(h,function(b){b=Fa(b),Ra(F,b,gg(F[b],F))}),F});function A8(F){var h=F==null?0:F.length,b=vt();return F=h?Eo(F,function(v){if(typeof v[1]!="function")throw new ye(s);return[b(v[0]),v[1]]}):[],Ut(function(v){for(var O=-1;++Ome)return[];var b=Be,v=Er(F,Be);h=vt(h),F-=Be;for(var O=Eu(v,h);++b0||h<0)?new Qt(b):(F<0?b=b.takeRight(-F):F&&(b=b.drop(F)),h!==o&&(h=Ht(h),b=h<0?b.dropRight(-h):b.take(h-F)),b)},Qt.prototype.takeRightWhile=function(F){return this.reverse().takeWhile(F).reverse()},Qt.prototype.toArray=function(){return this.take(Be)},ua(Qt.prototype,function(F,h){var b=/^(?:filter|find|map|reject)|While$/.test(h),v=/^(?:head|last)$/.test(h),O=q[v?"take"+(h=="last"?"Right":""):h],G=v||/^find/.test(h);O&&(q.prototype[h]=function(){var re=this.__wrapped__,Fe=v?[1]:arguments,be=re instanceof Qt,Re=Fe[0],Ne=be||Mt(re),Ye=function(Vt){var eo=O.apply(q,un([Vt],Fe));return v&&it?eo[0]:eo};Ne&&b&&typeof Re=="function"&&Re.length!=1&&(be=Ne=!1);var it=this.__chain__,Dt=!!this.__actions__.length,Ct=G&&!it,Gt=be&&!Dt;if(!G&&Ne){re=Gt?re:new Qt(this);var At=F.apply(re,Fe);return At.__actions__.push({func:k0,args:[Ye],thisArg:o}),new wn(At,it)}return Ct&&Gt?F.apply(this,Fe):(At=this.thru(Ye),Ct?v?At.value()[0]:At.value():At)})}),_r(["pop","push","shift","sort","splice","unshift"],function(F){var h=xe[F],b=/^(?:push|sort|unshift)$/.test(F)?"tap":"thru",v=/^(?:pop|shift)$/.test(F);q.prototype[F]=function(){var O=arguments;if(v&&!this.__chain__){var G=this.value();return h.apply(Mt(G)?G:[],O)}return this[b](function(re){return h.apply(Mt(re)?re:[],O)})}}),ua(Qt.prototype,function(F,h){var b=q[h];if(b){var v=b.name+"";je.call(Cu,v)||(Cu[v]=[]),Cu[v].push({name:h,func:b})}}),Cu[f0(o,E).name]=[{name:"wrapper",func:o}],Qt.prototype.clone=vv,Qt.prototype.reverse=Tv,Qt.prototype.value=Cv,q.prototype.at=rC,q.prototype.chain=nC,q.prototype.commit=aC,q.prototype.next=iC,q.prototype.plant=uC,q.prototype.reverse=lC,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=FC,q.prototype.first=q.prototype.head,X1&&(q.prototype[X1]=sC),q},Q=M();Ta?((Ta.exports=Q)._=Q,I1._=Q):qo._=Q}).call(xS)}(Fd,Fd.exports)),Fd.exports}var Ja=wS(),bp={exports:{}},vS=bp.exports,J2;function TS(){return J2||(J2=1,function(e,t){(function(o,r){e.exports=r()})(vS,function(){var o=function(f,y){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,C){x.__proto__=C}||function(x,C){for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&(x[S]=C[S])})(f,y)},r=function(){return(r=Object.assign||function(f){for(var y,x=1,C=arguments.length;x"u"||a.Promise||(a.Promise=Promise);var l=Object.getPrototypeOf,d={}.hasOwnProperty;function c(f,y){return d.call(f,y)}function g(f,y){typeof y=="function"&&(y=y(l(f))),(typeof Reflect>"u"?s:Reflect.ownKeys)(y).forEach(function(x){m(f,x,y[x])})}var p=Object.defineProperty;function m(f,y,x,C){p(f,y,u(x&&c(x,"get")&&typeof x.get=="function"?{get:x.get,set:x.set,configurable:!0}:{value:x,configurable:!0,writable:!0},C))}function _(f){return{from:function(y){return f.prototype=Object.create(y.prototype),m(f.prototype,"constructor",f),{extend:g.bind(null,f.prototype)}}}}var D=Object.getOwnPropertyDescriptor,E=[].slice;function k(f,y,x){return E.call(f,y,x)}function A(f,y){return y(f)}function N(f){if(!f)throw new Error("Assertion Failed")}function R(f){a.setImmediate?setImmediate(f):setTimeout(f,0)}function L(f,y){if(typeof y=="string"&&c(f,y))return f[y];if(!y)return f;if(typeof y!="string"){for(var x=[],C=0,S=y.length;C"u"?[]:function(){var f=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[f,l(f),f];var y=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[y,l(y),f]}(),Ft=It[0],Dr=It[1],It=It[2],Dr=Dr&&Dr.then,oo=Ft&&Ft.constructor,co=!!It,B=function(f,y){_t.push([f,y]),ae&&(queueMicrotask(rs),ae=!1)},te=!0,ae=!0,ve=[],Ve=[],Ke=Zt,at={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:tt,pgp:!1,env:{},finalize:tt},Ie=at,_t=[],Xe=0,bt=[];function qe(f){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var y=this._PSD=Ie;if(typeof f!="function"){if(f!==Se)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&Vo(this,this._value))}this._state=null,this._value=null,++y.ref,function x(C,S){try{S(function(M){if(C._state===null){if(M===C)throw new TypeError("A promise cannot be resolved with itself.");var Q=C._lib&&qn();M&&typeof M.then=="function"?x(C,function(j,z){M instanceof qe?M._then(j,z):M.then(j,z)}):(C._state=!0,C._value=M,or(C)),Q&&Jn()}},Vo.bind(null,C))}catch(M){Vo(C,M)}}(this,f)}var So={get:function(){var f=Ie,y=lu;function x(C,S){var M=this,Q=!f.global&&(f!==Ie||y!==lu),j=Q&&!ta(),z=new qe(function(P,oe){ya(M,new io(IF(C,f,Q,j),IF(S,f,Q,j),P,oe,f))});return this._consoleTask&&(z._consoleTask=this._consoleTask),z}return x.prototype=Se,x},set:function(f){m(this,"then",f&&f.prototype===Se?So:{get:function(){return f},set:So.set})}};function io(f,y,x,C,S){this.onFulfilled=typeof f=="function"?f:null,this.onRejected=typeof y=="function"?y:null,this.resolve=x,this.reject=C,this.psd=S}function Vo(f,y){var x,C;Ve.push(y),f._state===null&&(x=f._lib&&qn(),y=Ke(y),f._state=!1,f._value=y,C=f,ve.some(function(S){return S._value===C._value})||ve.push(C),or(f),x&&Jn())}function or(f){var y=f._listeners;f._listeners=[];for(var x=0,C=y.length;x.",qF="String expected.",gi=[],Fu="__dbnames",du="readonly",cu="readwrite";function ra(f,y){return f?y?function(){return f.apply(this,arguments)&&y.apply(this,arguments)}:f:y}var YF={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function hu(f){return typeof f!="string"||/\./.test(f)?function(y){return y}:function(y){return y[f]===void 0&&f in y&&delete(y=H(y))[f],y}}function PF(){throw Le.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function Wt(f,y){try{var x=S1(f),C=S1(y);if(x!==C)return x==="Array"?1:C==="Array"?-1:x==="binary"?1:C==="binary"?-1:x==="string"?1:C==="string"?-1:x==="Date"?1:C!=="Date"?NaN:-1;switch(x){case"number":case"Date":case"string":return yxe+Ae&&_e(xe+z)})})}var ye=xa(x)&&x.limit===1/0&&(typeof f!="function"||le)&&{index:x.index,range:x.range};return _e(0).then(function(){if(0=de})).length!==0?(oe.forEach(function(ye){ge.push(function(){var xe=_e,Ae=ye._cfg.dbschema;bs(ee,xe,le),bs(ee,Ae,le),_e=ee._dbSchema=Ae;var Oe=fs(xe,Ae);Oe.add.forEach(function(rt){mr(le,rt[0],rt[1].primKey,rt[1].indexes)}),Oe.change.forEach(function(rt){if(rt.recreate)throw new Le.Upgrade("Not yet support for changing primary key");var Qe=le.objectStore(rt.name);rt.add.forEach(function(lt){return ms(Qe,lt)}),rt.change.forEach(function(lt){Qe.deleteIndex(lt.name),ms(Qe,lt)}),rt.del.forEach(function(lt){return Qe.deleteIndex(lt)})});var $e=ye._cfg.contentUpgrade;if($e&&ye._cfg.version>de){ps(ee,le),se._memoizedTables={};var et=W(Ae);Oe.del.forEach(function(rt){et[rt]=xe[rt]}),qo(ee,[ee.Transaction.prototype]),fu(ee,[ee.Transaction.prototype],s(et),et),se.schema=et;var je,Je=Be($e);return Je&&hi(),Oe=qe.follow(function(){var rt;(je=$e(se))&&Je&&(rt=ta.bind(null,null),je.then(rt,rt))}),je&&typeof je.then=="function"?qe.resolve(je):Oe.then(function(){return je})}}),ge.push(function(xe){var Ae,Oe,$e=ye._cfg.dbschema;Ae=$e,Oe=xe,[].slice.call(Oe.db.objectStoreNames).forEach(function(et){return Ae[et]==null&&Oe.db.deleteObjectStore(et)}),qo(ee,[ee.Transaction.prototype]),fu(ee,[ee.Transaction.prototype],ee._storeNames,ee._dbSchema),se.schema=ee._dbSchema}),ge.push(function(xe){ee.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(ee.idbdb.version/10)===ye._cfg.version?(ee.idbdb.deleteObjectStore("$meta"),delete ee._dbSchema.$meta,ee._storeNames=ee._storeNames.filter(function(Ae){return Ae!=="$meta"})):xe.objectStore("$meta").put(ye._cfg.version,"version"))})}),function ye(){return ge.length?qe.resolve(ge.shift()(se.idbtrans)).then(ye):qe.resolve()}().then(function(){q1(_e,le)})):qe.resolve();var ee,de,se,le,ge,_e}).catch(Q)):(s(S).forEach(function(oe){mr(x,oe,S[oe].primKey,S[oe].indexes)}),ps(f,x),void qe.follow(function(){return f.on.populate.fire(M)}).catch(Q));var z,P})}function KF(f,y){q1(f._dbSchema,y),y.db.version%10!=0||y.objectStoreNames.contains("$meta")||y.db.createObjectStore("$meta").add(Math.ceil(y.db.version/10-1),"version");var x=_s(0,f.idbdb,y);bs(f,f._dbSchema,y);for(var C=0,S=fs(x,f._dbSchema).change;CMath.pow(2,62)?0:_e.oldVersion,ee=_e<1,f.idbdb=ge.result,M&&KF(f,oe),Ta(f,_e/10,oe,se))},se),ge.onsuccess=ko(function(){oe=null;var _e,ye,xe,Ae,Oe,$e=f.idbdb=ge.result,et=k($e.objectStoreNames);if(0"u"?qe.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(de){function se(){return indexedDB.databases().finally(de)}z=setInterval(se,100),se()}).finally(function(){return clearInterval(z)}):Promise.resolve()).then(j)]).then(function(){return Q(),y.onReadyBeingFired=[],qe.resolve(Z1(function(){return f.on.ready.fire(f.vip)})).then(function de(){if(0y.limit?de.length=y.limit:f.length===y.limit&&de.length=ye.limit&&(!ye.values||$e.req.values)&&Sh($e.req.query.range,ye.query.range)}),!1,xe,Ae];case"count":return Oe=Ae.find(function($e){return t0($e.req.query.range,ye.query.range)}),[Oe,!!Oe,xe,Ae]}}(y,x,"query",M),oe=P[0],ee=P[1],de=P[2],se=P[3];return oe&&ee?oe.obsSet=M.obsSet:(ee=C.query(M).then(function(le){var ge=le.result;if(oe&&(oe.res=ge),Q){for(var _e=0,ye=ge.length;_e{let t=5381;if(e.length===0)return 1;let o=0;for(const r of e)t=t*33^(r.version||0),t=t*33^(r.versionNonce||0),r.isDeleted&&(o++,t=t*33^1);return t=t*33^o,t>>>0};function gD(e,t,o){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const s=e[a],i=t[a],u=Ja.isObject(s)&&Ja.isObject(i);if((u&&!gD(s,i,o)||!u&&s!==i)&&!o.includes(a))return!1}return!0}function BS(e,t,o){return!!(t&&(t.id===e.editingElement?.id||t.id===e.resizingElement?.id||t.id===e.draggingElement?.id||t.version>o.version||t.version===o.version&&t.versionNonce(t.set(typeof o=="string"?o:o.id,o),t),new Map)}function jS(e,t,o){const r=new Set,n=SS(e),a=[];for(const s of t)if(!r.has(s.id)){const i=n.get(s.id),u=BS(o,i,s);i&&u?(a.push(i),r.add(i.id)):(a.push(s),r.add(s.id))}for(const s of e)r.has(s.id)||(a.push(s),r.add(s.id));return a}const OS=50;function RS(){const e=U.useRef(null),t=U.useRef(null),o=U.useRef(new Map),r=U.useRef(null),{excalidrawAPI:n}=pr(go(ue=>({excalidrawAPI:ue.excalidrawAPI}))),{getJWT:a,clearTokens:s}=Pr(go(ue=>({getJWT:ue.getJWT,clearTokens:ue.clearTokens}))),{fileId:i}=Wo(go(ue=>({fileId:ue.fileId}))),{setStatus:u,setSocket:l,setDedicatedSyncer:d,incrementAuthFailure:c,clearAuthError:g,resetStore:p,setIsInRoom:m}=Yt(go(ue=>({setStatus:ue.setStatus,setSocket:ue.setSocket,setDedicatedSyncer:ue.setDedicatedSyncer,incrementAuthFailure:ue.incrementAuthFailure,clearAuthError:ue.clearAuthError,resetStore:ue.resetStore,setIsInRoom:ue.setIsInRoom}))),_=U.useCallback(ue=>{if(n)try{const fe=Sd(ue,null),ke=n.getSceneElementsIncludingDeleted()||[],we=n.getAppState(),Pe=DS(ke,fe,we);n.updateScene({elements:Pe});const ze=n.getFiles(),ct=Yt.getState().socket;ct?.connected&&i&&fe.filter(Le=>Le.type==="image"&&Le.fileId&&!ze[Le.fileId]).forEach(Le=>{const st=Le.fileId;console.log(`[Collaboration] Requesting missing image: ${st}`),ct.emit("image-get",`${i}`,st)})}catch(fe){console.error("[Collaboration] Error reconciling remote elements:",fe)}},[n,i]),D=U.useCallback(ue=>{if(n)try{n.getFiles()[ue.id]?console.log(`[Collaboration] Image already exists: ${ue.id}, skipping`):(console.log(`[Collaboration] Adding received image: ${ue.id}`),n.addFiles([ue]))}catch(fe){console.error("[Collaboration] Error processing received image:",fe)}},[n]),E=U.useCallback(ue=>{if(!n){t.current=ue;return}_(ue)},[n,_]),k=U.useCallback(ue=>{if(!n){o.current.set(ue.id,ue);return}D(ue)},[n,D]),A=U.useCallback(ue=>{if(n)try{n.resetScene();const fe=n.getAppState(),ke=mn(ue.appState),we={...fe,...ke,scrollToContent:ue.scrollToContent};n.updateScene({elements:ue.elements,appState:we});const Pe=Object.values(ue.files||{}).filter(ze=>!!ze);Pe.length>0&&n.addFiles(Pe)}catch(fe){console.error("[Collaboration] Error applying restored scene:",fe)}},[n]);U.useEffect(()=>{if(n){if(r.current){const ue=r.current;r.current=null,A(ue)}if(t.current){const ue=t.current;t.current=null,_(ue)}if(o.current.size>0){const ue=Array.from(o.current.values());o.current.clear(),ue.forEach(fe=>{D(fe)})}}},[n,D,_,A]),U.useEffect(()=>{t.current=null,o.current.clear(),r.current=null},[i]);const N=U.useCallback(async ue=>{if(!n)return;let fe=null;try{const we=await a();if(we){const{parseJwt:Pe}=Pr.getState(),ze=Pe(we);fe=ze?.user?.id||ze?.userid||null}}catch(we){console.error("[Collaboration] Failed to get current user ID:",we)}const ke=new Map;ue.forEach(we=>{we.user.id!==fe&&ke.set(we.user.id,{id:we.user.id,username:we.user.name,pointer:we.pointer,button:we.button,selectedElementIds:we.selectedElementIds})}),n.updateScene({collaborators:ke}),console.log(`[Collaboration] Updated collaborators: ${ke.size} users online (filtered out current user)`)},[n,a]),R=U.useCallback(async ue=>{if(n)try{let fe=null;try{const Pe=await a();if(Pe){const{parseJwt:ze}=Pr.getState(),ct=ze(Pe);fe=ct?.user?.id||ct?.userid||null}}catch(Pe){console.error("[Collaboration] Failed to get current user ID:",Pe)}if(ue.user.id===fe)return;const ke=n.getAppState().collaborators||new Map,we=new Map(ke);we.set(ue.user.id,{id:ue.user.id,username:ue.user.name,pointer:ue.pointer,button:ue.button,selectedElementIds:{}}),n.updateScene({collaborators:we})}catch(fe){console.error("[Collaboration] Error updating cursor:",fe)}},[n,a]),L=U.useMemo(()=>Ja.throttle(R,OS,{leading:!1,trailing:!0}),[R]),V=U.useCallback(ue=>{if(!ue.user?.id||!ue.pointer){console.warn("[Collaboration] Invalid cursor payload:",ue);return}L({pointer:ue.pointer,button:ue.button,user:ue.user})},[L]),W=U.useCallback(ue=>{if(!ue.userId||typeof ue.scrollX!="number"||typeof ue.scrollY!="number"||typeof ue.zoom!="number"){console.warn("[Collaboration] Invalid viewport payload:",ue);return}const{followedUserId:fe,presenterId:ke,isPresentationMode:we,autoFollowPresenter:Pe}=Yt.getState();console.log(`[Collaboration] Viewport update received from user ${ue.userId}`,{followedUserId:fe,presenterId:ke,isPresentationMode:we,autoFollowPresenter:Pe,payload:ue});let ze=!1,ct="";if(fe===ue.userId?(ze=!0,ct="explicit follow"):we&&ke===ue.userId&&Pe&&!fe&&(ze=!0,ct="presentation auto-follow"),ze&&n){console.log(`[Collaboration] Applying viewport from ${ue.userId} (${ct}):`,ue);const Le=n.getAppState();n.updateScene({appState:{...Le,scrollX:ue.scrollX,scrollY:ue.scrollY,zoom:{value:ue.zoom}}})}else(fe||we&&ke)&&console.log(`[Collaboration] Ignoring viewport update from ${ue.userId}`,{reason:fe?`following ${fe}`:we&&!Pe?"auto-follow disabled":"not presenter"})},[n]),Z=U.useCallback(()=>{n&&n.updateScene({collaborators:new Map})},[n]),w=U.useCallback(async()=>{console.log("[Collaboration] Refreshing authentication token..."),u("connecting"),s();try{const ue=await a(),fe=Yt.getState().socket;if(!ue)throw new Error("Failed to obtain new JWT token.");fe?(fe.auth={token:ue},fe.connected||fe.connect()):(console.log("[Collaboration] Socket missing, initiating full connection after token refresh."),await me.current())}catch(ue){console.error("[Collaboration] Failed to refresh token or connect:",ue),u("offline")}},[a,s,u]),Y=U.useMemo(()=>Ja.debounce((ue,fe)=>{console.log(`[Collaboration] Debounced join room ${fe}`),ue.emit("join-room",fe)},300,{leading:!0,trailing:!1}),[]),K=U.useCallback(()=>{const ue=Yt.getState().socket,fe=`${i}`;if(!i||!ue||!ue.connected){console.warn("[Collaboration] Cannot join room:",{hasFileId:!!i,hasSocket:!!ue,connected:ue?.connected});return}if(e.current===fe){console.log(`[Collaboration] Already joined room ${fe}, skipping`);return}console.log(`[Collaboration] Joining room ${fe}`),e.current=fe,Y(ue,fe)},[i,Y]);let H=null;const $=U.useCallback(async ue=>{try{const fe=JSON.parse(new TextDecoder().decode(ue));if(!fe||!fe.type){console.warn("[Collaboration] Invalid broadcast data:",fe);return}if(Wo.getState().isVersionPreview){console.log("[Collaboration] Ignoring broadcast while in version preview");return}switch(fe.type){case"SCENE_RESTORE":{const ke=fe.payload||{};if(!Array.isArray(ke.elements)){console.warn("[Collaboration] Invalid SceneRestore payload:",ke);break}try{const we=Sd(ke.elements,null),Pe=ke.files||{},ze=mn(ke.appState),ct=ke.scrollToContent??!0;if(t.current=null,o.current.clear(),n?A({elements:we,files:Pe,appState:ze,scrollToContent:ct}):r.current={elements:we,files:Pe,appState:ze,scrollToContent:ct},i)try{await $s.put(i,we,Pe||{},ze,{hasPendingLocalChanges:!1,lastSyncedHash:Yf(we)})}catch(Le){console.error("[Collaboration] Failed to persist restored scene to IndexedDB:",Le)}}catch(we){console.error("[Collaboration] Error handling SceneRestore broadcast:",we)}break}case"SCENE_INIT":if(Array.isArray(fe.payload?.elements)){if(JSON.stringify(fe.payload.elements)===H){console.warn("[Collaboration] Received identical SceneInit payload, skipping update");break}E(fe.payload.elements),H=JSON.stringify(fe.payload.elements)}else console.warn("[Collaboration] Invalid SceneInit payload:",fe.payload);break;case"MOUSE_LOCATION":fe.payload&&typeof fe.payload=="object"?V(fe.payload):console.warn("[Collaboration] Invalid MouseLocation payload:",fe.payload);break;case"IMAGE_ADD":fe.payload?.file?k(fe.payload.file):console.warn("[Collaboration] Invalid ImageAdd payload:",fe.payload);break;case"IMAGE_REQUEST":if(fe.payload?.fileId&&n){const ke=fe.payload.fileId,we=n.getFiles()[ke];if(we&&we.dataURL){console.log(`[Collaboration] Sending requested image: ${ke}`);const Pe=Yt.getState().socket;if(Pe&&Pe.connected&&i){const ze=JSON.stringify({type:"IMAGE_ADD",payload:{file:we}}),ct=new TextEncoder().encode(ze);Pe.emit("server-broadcast",`${i}`,ct,[])}}}break;case"VIEWPORT_UPDATE":fe.payload&&typeof fe.payload=="object"?W(fe.payload):console.warn("[Collaboration] Invalid ViewportUpdate payload:",fe.payload);break;default:console.debug("[Collaboration] Unknown broadcast type:",fe.type);break}}catch(fe){console.error("[Collaboration] Error processing client broadcast:",fe)}},[E,V,k,W,n,i,A]),X=U.useCallback(ue=>{console.log(`[Collaboration] Sync designation received: ${ue.isSyncer}`),d(ue.isSyncer)},[d]),ie=U.useCallback(ue=>{const{isDedicatedSyncer:fe}=Yt.getState();if(fe&&n){console.log(`[Collaboration] Broadcasting images to new user: ${ue.userName}`);const ke=n.getFiles(),we=Yt.getState().socket;if(!we||!we.connected||!i)return;Object.entries(ke).forEach(([,Pe])=>{if(Pe&&Pe.dataURL){const ze=JSON.stringify({type:"IMAGE_ADD",payload:{file:Pe}}),ct=new TextEncoder().encode(ze);we.emit("server-broadcast",`${i}`,ct,[])}})}},[n,i]),ce=U.useCallback(ue=>(ue.removeAllListeners(),ue.on("connect_error",async fe=>{if(console.error("[Collaboration] Connection Error:",fe.message),fe.message.includes("Authentication error")){c("jwt_secret_mismatch","WebSocket authentication failed - possible JWT secret mismatch");const{authError:ke}=Yt.getState();if(ke.isPersistent){console.warn("[Collaboration] Persistent authentication failures detected, stopping reconnection attempts"),ue.disconnect(),u("offline");return}ue.disconnect(),await w()}else u("offline")}),ue.on("connect_timeout",()=>{console.warn("[Collaboration] Connection timeout"),u("offline")}),ue.on("connect",()=>{console.log("[Collaboration] Socket connect event fired - setting status to online"),u("online"),m(!1);const{authError:fe}=Yt.getState();fe.type!=="jwt_secret_mismatch"&&g(),e.current=null,console.log("[Collaboration] Reset room join tracking due to connect event")}),ue.on("disconnect",fe=>{console.warn(`[Collaboration] Socket disconnect event fired: ${fe}`),Z(),m(!1),fe==="io client disconnect"?(console.log("[Collaboration] Client disconnect - setting status to offline"),u("offline")):(console.log("[Collaboration] Server disconnect detected, Socket.IO will attempt auto-reconnect"),u("reconnecting")),e.current=null,console.log("[Collaboration] Reset room join tracking due to disconnect")}),ue.on("reconnect",fe=>{console.log(`[Collaboration] Socket reconnect event fired after ${fe} attempts - setting status to online`),u("online"),m(!1);const{authError:ke}=Yt.getState();ke.type!=="jwt_secret_mismatch"&&g(),e.current=null,console.log("[Collaboration] Reset room join tracking due to reconnect event")}),ue.on("reconnect_attempt",fe=>{console.log(`[Collaboration] Reconnection attempt ${fe}`),u("reconnecting")}),ue.on("reconnect_error",fe=>{console.error("[Collaboration] Reconnection error:",fe)}),ue.on("reconnect_failed",()=>{console.error("[Collaboration] Reconnection failed - giving up"),u("offline")}),ue.on("reconnect_error",fe=>{console.error("[Collaboration] Reconnection error:",fe)}),ue.on("init-room",()=>{console.log("[Collaboration] Received init-room event from server, initiating room join");const fe=e.current;e.current=null,console.log(`[Collaboration] Force reset room join tracking (was: ${fe})`);const ke=Yt.getState().status;if((ke==="connecting"||ke==="offline")&&ue.connected){console.log(`[Collaboration] Fallback: Setting status to online based on init-room + socket.connected (was: ${ke})`),u("online");const{authError:we}=Yt.getState();we.type!=="jwt_secret_mismatch"&&g()}K()}),ue.on("room-user-change",fe=>{console.log(`[Collaboration] Room user change: ${fe.length} users`),m(!0),N(fe)}),ue.on("client-broadcast",$),ue.on("sync-designate",X),ue.on("user-joined",fe=>{console.log(`[Collaboration] User joined: ${fe.userName} (${fe.userId})`),ie(fe)}),ue.on("request-presenter-viewport",async()=>{console.log("[Collaboration] Presenter viewport requested");const{isPresenting:fe}=Yt.getState();if(fe&&n){const ke=n.getAppState(),{presenterId:we}=Yt.getState(),Pe={type:"VIEWPORT_UPDATE",payload:{userId:we,scrollX:ke.scrollX||0,scrollY:ke.scrollY||0,zoom:ke.zoom?.value||1}},ze=JSON.stringify(Pe),ct=new TextEncoder().encode(ze);ue.emit("server-broadcast",`${i}`,ct,[]),console.log("[Collaboration] Sent presenter viewport:",Pe.payload)}}),ue.on("send-viewport-request",async fe=>{const{requesterId:ke}=fe;if(console.log(`[Collaboration] Viewport requested by user ${ke}`),n){const we=n.getAppState(),{isPresenting:Pe,presenterId:ze}=Yt.getState();let ct="unknown";if(Pe&&ze)ct=ze;else{const tt=await a();if(tt)try{const Zt=JSON.parse(atob(tt.split(".")[1]));ct=Zt.userid||Zt.userId||"unknown"}catch{console.error("[Collaboration] Failed to parse JWT for user ID")}}const Le={type:"VIEWPORT_UPDATE",payload:{userId:ct,scrollX:we.scrollX||0,scrollY:we.scrollY||0,zoom:we.zoom?.value||1}},st=JSON.stringify(Le),Lt=new TextEncoder().encode(st);ue.emit("server-broadcast",`${i}`,Lt,[]),console.log("[Collaboration] Sent viewport to requester:",Le.payload)}}),ue.on("presenter-viewport-update",fe=>{const{viewportData:ke}=fe;ke&&ke.type==="VIEWPORT_UPDATE"&&W(ke.payload)}),ue),[u,K,w,N,$,X,Z,ie,n,i,a]),me=U.useRef(()=>Promise.resolve()),Ee=U.useRef(null),Ce=U.useCallback(async()=>{const{socket:ue,status:fe}=Yt.getState();if(!i){console.warn("[Collaboration] Cannot connect: invalid fileId."),u("offline");return}if(fe==="online"||fe==="connecting"){console.log("[Collaboration] Already online or connecting, skipping connection attempt");return}const{authError:ke}=Yt.getState();if(ke.isPersistent&&ke.type==="jwt_secret_mismatch"){console.warn("[Collaboration] Skipping connection attempt due to persistent JWT secret mismatch"),u("offline");return}e.current=null,ue&&(console.log("[Collaboration] Disconnecting existing socket before creating new one"),ue.disconnect(),l(null),await new Promise(we=>setTimeout(we,100)));try{u("connecting");const we=Wo.getState().collabBackendUrl;if(!we)throw new Error("Collaboration backend URL missing.");const Pe=await a();if(!Pe)throw new Error("JWT token missing.");const ze=new URL(we),ct=(ze.pathname.endsWith("/")?ze.pathname:ze.pathname+"/")+"socket.io";if(Ee.current){console.log("[Collaboration] Reusing existing socket instance"),Ee.current.auth={token:Pe},ce(Ee.current),l(Ee.current),Ee.current.connected||Ee.current.connect();return}console.log("[Collaboration] Creating new socket instance");const Le=M7(ze.origin,{path:ct,auth:{token:Pe},transports:["websocket"],reconnection:!0,reconnectionDelay:1e3,reconnectionDelayMax:1e4,reconnectionAttempts:1/0,perMessageDeflate:{threshold:1024,zlibDeflateOptions:{level:6,memLevel:8,windowBits:15},zlibInflateOptions:{windowBits:15}}});Ee.current=Le,ce(Le),l(Le),Le.connect()}catch(we){console.error("[Collaboration] Connection initiation failed:",we),l(null),Ee.current=null,u("offline")}},[a,u,l,ce,i]);U.useEffect(()=>{me.current=Ce},[Ce]);const Be=U.useCallback(()=>{const ue=Yt.getState().socket;ue&&(console.log("[Collaboration] Disconnecting socket"),ue.removeAllListeners(),ue.disconnect(),l(null),u("offline"),Z(),m(!1),e.current=null),Ee.current=null},[l,u,Z]);return U.useEffect(()=>(i?(console.log(`[Collaboration] FileId ${i} active, connecting socket`),Ce()):(console.log("[Collaboration] No fileId, disconnecting socket"),Be(),m(!1)),()=>{Y.cancel()}),[i,Ce,Be,Y]),U.useEffect(()=>()=>{console.log("[Collaboration] Unmounting, performing full cleanup"),Y.cancel(),L.cancel(),Be(),p()},[Be,p,L,Y]),{connect:Ce,disconnect:Be}}var Vc="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",NS="M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z",MS="M15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4M15,5.9C16.16,5.9 17.1,6.84 17.1,8C17.1,9.16 16.16,10.1 15,10.1A2.1,2.1 0 0,1 12.9,8A2.1,2.1 0 0,1 15,5.9M4,7V10H1V12H4V15H6V12H9V10H6V7H4M15,13C12.33,13 7,14.33 7,17V20H23V17C23,14.33 17.67,13 15,13M15,14.9C17.97,14.9 21.1,16.36 21.1,17V18.1H8.9V17C8.9,16.36 12,14.9 15,14.9Z",t3="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",LS="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",IS="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",w1="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",qS="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",YS="M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10Z",PS="M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74",ZS="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",Dp="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",HS="M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z",pD="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",fD="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",zS="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",GS="M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z",$S="M22,16V4A2,2 0 0,0 20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16M11,12L13.03,14.71L16,11L20,16H8M2,6V20A2,2 0 0,0 4,22H18V20H4V6",mD="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",US="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",WS="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",VS="M9,6H5V10H7V8H9M19,10H17V12H15V14H19M21,16H3V4H21M21,2H3C1.89,2 1,2.89 1,4V16A2,2 0 0,0 3,18H10V20H8V22H16V20H14V18H21A2,2 0 0,0 23,16V4C23,2.89 22.1,2 21,2",KS="M14,19H18V5H14M6,19H10V5H6V19Z",o3="M8,5.14V19.14L19,12.14L8,5.14Z",Ep="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",r3="M2,3H10A2,2 0 0,1 12,1A2,2 0 0,1 14,3H22V5H21V16H15.25L17,22H15L13.25,16H10.75L9,22H7L8.75,16H3V5H2V3M5,5V14H19V5H5Z",_D="M2,3H10A2,2 0 0,1 12,1A2,2 0 0,1 14,3H22V5H21V16H15.25L17,22H15L13.25,16H10.75L9,22H7L8.75,16H3V5H2V3M5,5V14H19V5H5M11.85,11.85C11.76,11.94 11.64,12 11.5,12A0.5,0.5 0 0,1 11,11.5V7.5A0.5,0.5 0 0,1 11.5,7C11.64,7 11.76,7.06 11.85,7.15L13.25,8.54C13.57,8.86 13.89,9.18 13.89,9.5C13.89,9.82 13.57,10.14 13.25,10.46L11.85,11.85Z",bD="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",n3="M12,4C14.1,4 16.1,4.8 17.6,6.3C20.7,9.4 20.7,14.5 17.6,17.6C15.8,19.5 13.3,20.2 10.9,19.9L11.4,17.9C13.1,18.1 14.9,17.5 16.2,16.2C18.5,13.9 18.5,10.1 16.2,7.7C15.1,6.6 13.5,6 12,6V10.6L7,5.6L12,0.6V4M6.3,17.6C3.7,15 3.3,11 5.1,7.9L6.6,9.4C5.5,11.6 5.9,14.4 7.8,16.2C8.3,16.7 8.9,17.1 9.6,17.4L9,19.4C8,19 7.1,18.4 6.3,17.6Z",Pf="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M9.3 19H7L14.7 5H17L9.3 19Z",QS="M5.5,2C3.56,2 2,3.56 2,5.5V18.5C2,20.44 3.56,22 5.5,22H16L22,16V5.5C22,3.56 20.44,2 18.5,2H5.5M5.75,4H18.25A1.75,1.75 0 0,1 20,5.75V15H18.5C16.56,15 15,16.56 15,18.5V20H5.75A1.75,1.75 0 0,1 4,18.25V5.75A1.75,1.75 0 0,1 5.75,4M14.44,6.77C14.28,6.77 14.12,6.79 13.97,6.83C13.03,7.09 12.5,8.05 12.74,9C12.79,9.15 12.86,9.3 12.95,9.44L16.18,8.56C16.18,8.39 16.16,8.22 16.12,8.05C15.91,7.3 15.22,6.77 14.44,6.77M8.17,8.5C8,8.5 7.85,8.5 7.7,8.55C6.77,8.81 6.22,9.77 6.47,10.7C6.5,10.86 6.59,11 6.68,11.16L9.91,10.28C9.91,10.11 9.89,9.94 9.85,9.78C9.64,9 8.95,8.5 8.17,8.5M16.72,11.26L7.59,13.77C8.91,15.3 11,15.94 12.95,15.41C14.9,14.87 16.36,13.25 16.72,11.26Z",yD="M18,18H6V6H18V18Z",DD="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9",XS="M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z",ED="M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M19.03,7.39L20.45,5.97C20,5.46 19.55,5 19.04,4.56L17.62,6C16.07,4.74 14.12,4 12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22C17,22 21,17.97 21,13C21,10.88 20.26,8.93 19.03,7.39M11,14H13V8H11M15,1H9V3H15V1Z",JS="M18,13H17.32L15.32,15H17.23L19,17H5L6.78,15H8.83L6.83,13H6L3,16V20A2,2 0 0,0 5,22H19A2,2 0 0,0 21,20V16L18,13M17,7.95L12.05,12.9L8.5,9.36L13.46,4.41L17,7.95M12.76,2.29L6.39,8.66C6,9.05 6,9.68 6.39,10.07L11.34,15C11.73,15.41 12.36,15.41 12.75,15L19.11,8.66C19.5,8.27 19.5,7.64 19.11,7.25L14.16,2.3C13.78,1.9 13.15,1.9 12.76,2.29Z",ej="M12,21L15.6,16.2C14.6,15.45 13.35,15 12,15C10.65,15 9.4,15.45 8.4,16.2L12,21M12,3C7.95,3 4.21,4.34 1.2,6.6L3,9C5.5,7.12 8.62,6 12,6C15.38,6 18.5,7.12 21,9L22.8,6.6C19.79,4.34 16.05,3 12,3M12,9C9.3,9 6.81,9.89 4.8,11.4L6.6,13.8C8.1,12.67 9.97,12 12,12C14.03,12 15.9,12.67 17.4,13.8L19.2,11.4C17.19,9.89 14.7,9 12,9Z",a3="M2.28,3L1,4.27L2.47,5.74C2.04,6 1.61,6.29 1.2,6.6L3,9C3.53,8.6 4.08,8.25 4.66,7.93L6.89,10.16C6.15,10.5 5.44,10.91 4.8,11.4L6.6,13.8C7.38,13.22 8.26,12.77 9.2,12.47L11.75,15C10.5,15.07 9.34,15.5 8.4,16.2L12,21L14.46,17.73L17.74,21L19,19.72M12,3C9.85,3 7.8,3.38 5.9,4.07L8.29,6.47C9.5,6.16 10.72,6 12,6C15.38,6 18.5,7.11 21,9L22.8,6.6C19.79,4.34 16.06,3 12,3M12,9C11.62,9 11.25,9 10.88,9.05L14.07,12.25C15.29,12.53 16.43,13.07 17.4,13.8L19.2,11.4C17.2,9.89 14.7,9 12,9Z",tj="M12,3C7.79,3 3.7,4.41 0.38,7C4.41,12.06 7.89,16.37 12,21.5C16.08,16.42 20.24,11.24 23.65,7C20.32,4.41 16.22,3 12,3M12,5C15.07,5 18.09,5.86 20.71,7.45L15.61,13.81C14.5,13.28 13.25,13 12,13C10.75,13 9.5,13.28 8.39,13.8L3.27,7.44C5.91,5.85 8.93,5 12,5Z",oj="M12,3C7.79,3 3.7,4.41 0.38,7C4.41,12.06 7.89,16.37 12,21.5C16.08,16.42 20.24,11.24 23.65,7C20.32,4.41 16.22,3 12,3M12,5C15.07,5 18.09,5.86 20.71,7.45L17.5,11.43C16.26,10.74 14.37,10 12,10C9.62,10 7.74,10.75 6.5,11.43L3.27,7.44C5.91,5.85 8.93,5 12,5Z";function Un(e,t){for(var o in t)e[o]=t[o];return e}var rj=/[!'()*]/g,nj=function(e){return"%"+e.charCodeAt(0).toString(16)},aj=/%2C/g,Mu=function(e){return encodeURIComponent(e).replace(rj,nj).replace(aj,",")};function kp(e){try{return decodeURIComponent(e)}catch{}return e}function ij(e,t,o){t===void 0&&(t={});var r=o||sj,n;try{n=r(e||"")}catch{n={}}for(var a in t){var s=t[a];n[a]=Array.isArray(s)?s.map(i3):i3(s)}return n}var i3=function(e){return e==null||typeof e=="object"?e:String(e)};function sj(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(o){var r=o.replace(/\+/g," ").split("="),n=kp(r.shift()),a=r.length>0?kp(r.join("=")):null;t[n]===void 0?t[n]=a:Array.isArray(t[n])?t[n].push(a):t[n]=[t[n],a]}),t}function uj(e){var t=e?Object.keys(e).map(function(o){var r=e[o];if(r===void 0)return"";if(r===null)return Mu(o);if(Array.isArray(r)){var n=[];return r.forEach(function(a){a!==void 0&&(a===null?n.push(Mu(o)):n.push(Mu(o)+"="+Mu(a)))}),n.join("&")}return Mu(o)+"="+Mu(r)}).filter(function(o){return o.length>0}).join("&"):null;return t?"?"+t:""}var Od=/\/?$/;function Rd(e,t,o,r){var n=r&&r.options.stringifyQuery,a=t.query||{};try{a=xp(a)}catch{}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:s3(t,n),matched:e?lj(e):[]};return o&&(s.redirectedFrom=s3(o,n)),Object.freeze(s)}function xp(e){if(Array.isArray(e))return e.map(xp);if(e&&typeof e=="object"){var t={};for(var o in e)t[o]=xp(e[o]);return t}else return e}var Vi=Rd(null,{path:"/"});function lj(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function s3(e,t){var o=e.path,r=e.query;r===void 0&&(r={});var n=e.hash;n===void 0&&(n="");var a=t||uj;return(o||"/")+a(r)+n}function kD(e,t,o){return t===Vi?e===t:t?e.path&&t.path?e.path.replace(Od,"")===t.path.replace(Od,"")&&(o||e.hash===t.hash&&dd(e.query,t.query)):e.name&&t.name?e.name===t.name&&(o||e.hash===t.hash&&dd(e.query,t.query)&&dd(e.params,t.params)):!1:!1}function dd(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var o=Object.keys(e).sort(),r=Object.keys(t).sort();return o.length!==r.length?!1:o.every(function(n,a){var s=e[n],i=r[a];if(i!==n)return!1;var u=t[n];return s==null||u==null?s===u:typeof s=="object"&&typeof u=="object"?dd(s,u):String(s)===String(u)})}function Fj(e,t){return e.path.replace(Od,"/").indexOf(t.path.replace(Od,"/"))===0&&(!t.hash||e.hash===t.hash)&&dj(e.query,t.query)}function dj(e,t){for(var o in t)if(!(o in e))return!1;return!0}function xD(e){for(var t=0;t=0&&(t=e.slice(r),e=e.slice(0,r));var n=e.indexOf("?");return n>=0&&(o=e.slice(n+1),e=e.slice(0,n)),{path:e,query:o,hash:t}}function Hi(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var Nd=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},Gu=CD,pj=Zf,fj=yj,mj=vD,_j=TD,bj=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Zf(e,t){for(var o=[],r=0,n=0,a="",s=t&&t.delimiter||"/",i;(i=bj.exec(e))!=null;){var u=i[0],l=i[1],d=i.index;if(a+=e.slice(n,d),n=d+u.length,l){a+=l[1];continue}var c=e[n],g=i[2],p=i[3],m=i[4],_=i[5],D=i[6],E=i[7];a&&(o.push(a),a="");var k=g!=null&&c!=null&&c!==g,A=D==="+"||D==="*",N=D==="?"||D==="*",R=i[2]||s,L=m||_;o.push({name:p||r++,prefix:g||"",delimiter:R,optional:N,repeat:A,partial:k,asterisk:!!E,pattern:L?kj(L):E?".*":"[^"+cd(R)+"]+?"})}return n1||!N.length)return N.length===0?e():e("span",{},N)}if(this.tag==="a")A.on=k,A.attrs={href:i,"aria-current":D};else{var R=BD(this.$slots.default);if(R){R.isStatic=!1;var L=R.data=Un({},R.data);L.on=L.on||{};for(var V in L.on){var W=L.on[V];V in k&&(L.on[V]=Array.isArray(W)?W:[W])}for(var Z in k)Z in L.on?L.on[Z].push(k[Z]):L.on[Z]=E;var w=R.data.attrs=Un({},R.data.attrs);w.href=i,w["aria-current"]=D}else A.on=k}return e(this.tag,A,this.$slots.default)}};function d3(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function BD(e){if(e){for(var t,o=0;o-1&&(D.params[N]=m.params[N]);return D.path=hd(k.path,D.params),g(k,D,_)}else if(D.path){D.params={};for(var R=0;R-1}function qd(e,t){return Id(e)&&e._isRouter&&(t==null||e.type===t)}function m3(e,t,o){var r=function(n){n>=e.length?o():e[n]?t(e[n],function(){r(n+1)}):r(n+1)};r(0)}function zj(e){return function(t,o,r){var n=!1,a=0,s=null;LD(e,function(i,u,l,d){if(typeof i=="function"&&i.cid===void 0){n=!0,a++;var c=_3(function(_){$j(_)&&(_=_.default),i.resolved=typeof _=="function"?_:Md.extend(_),l.components[d]=_,a--,a<=0&&r()}),g=_3(function(_){var D="Failed to resolve async component "+d+": "+_;s||(s=Id(_)?_:new Error(D),r(s))}),p;try{p=i(c,g)}catch(_){g(_)}if(p)if(typeof p.then=="function")p.then(c,g);else{var m=p.component;m&&typeof m.then=="function"&&m.then(c,g)}}}),n||r()}}function LD(e,t){return ID(e.map(function(o){return Object.keys(o.components).map(function(r){return t(o.components[r],o.instances[r],o,r)})}))}function ID(e){return Array.prototype.concat.apply([],e)}var Gj=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function $j(e){return e.__esModule||Gj&&e[Symbol.toStringTag]==="Module"}function _3(e){var t=!1;return function(){for(var o=[],r=arguments.length;r--;)o[r]=arguments[r];if(!t)return t=!0,e.apply(this,o)}}var zn=function(e,t){this.router=e,this.base=Uj(t),this.current=Vi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};zn.prototype.listen=function(e){this.cb=e},zn.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},zn.prototype.onError=function(e){this.errorCbs.push(e)},zn.prototype.transitionTo=function(e,t,o){var r=this,n;try{n=this.router.match(e,this.current)}catch(s){throw this.errorCbs.forEach(function(i){i(s)}),s}var a=this.current;this.confirmTransition(n,function(){r.updateRoute(n),t&&t(n),r.ensureURL(),r.router.afterHooks.forEach(function(s){s&&s(n,a)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(s){s(n)}))},function(s){o&&o(s),s&&!r.ready&&(!qd(s,ou.redirected)||a!==Vi)&&(r.ready=!0,r.readyErrorCbs.forEach(function(i){i(s)}))})},zn.prototype.confirmTransition=function(e,t,o){var r=this,n=this.current;this.pending=e;var a=function(m){!qd(m)&&Id(m)&&(r.errorCbs.length?r.errorCbs.forEach(function(_){_(m)}):console.error(m)),o&&o(m)},s=e.matched.length-1,i=n.matched.length-1;if(kD(e,n)&&s===i&&e.matched[s]===n.matched[i])return this.ensureURL(),e.hash&&zi(this.router,n,e,!1),a(Yj(n,e));var u=Wj(this.current.matched,e.matched),l=u.updated,d=u.deactivated,c=u.activated,g=[].concat(Kj(d),this.router.beforeHooks,Qj(l),c.map(function(m){return m.beforeEnter}),zj(c)),p=function(m,_){if(r.pending!==e)return a(f3(n,e));try{m(e,n,function(D){D===!1?(r.ensureURL(!0),a(Pj(n,e))):Id(D)?(r.ensureURL(!0),a(D)):typeof D=="string"||typeof D=="object"&&(typeof D.path=="string"||typeof D.name=="string")?(a(qj(n,e)),typeof D=="object"&&D.replace?r.replace(D):r.push(D)):_(D)})}catch(D){a(D)}};m3(g,p,function(){var m=Xj(c),_=m.concat(r.router.resolveHooks);m3(_,p,function(){if(r.pending!==e)return a(f3(n,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick(function(){xD(e)})})})},zn.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},zn.prototype.setupListeners=function(){},zn.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Vi,this.pending=null};function Uj(e){if(!e)if(CF){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function Wj(e,t){var o,r=Math.max(e.length,t.length);for(o=0;o0)){var r=this.router,n=r.options.scrollBehavior,a=Gi&&n;a&&this.listeners.push(ND());var s=function(){var i=o.current,u=Tl(o.base);o.current===Vi&&u===o._startLocation||o.transitionTo(u,function(l){a&&zi(r,l,i,!0)})};window.addEventListener("popstate",s),this.listeners.push(function(){window.removeEventListener("popstate",s)})}},t.prototype.go=function(o){window.history.go(o)},t.prototype.push=function(o,r,n){var a=this,s=this,i=s.current;this.transitionTo(o,function(u){Ld(Hi(a.base+u.fullPath)),zi(a.router,u,i,!1),r&&r(u)},n)},t.prototype.replace=function(o,r,n){var a=this,s=this,i=s.current;this.transitionTo(o,function(u){Tp(Hi(a.base+u.fullPath)),zi(a.router,u,i,!1),r&&r(u)},n)},t.prototype.ensureURL=function(o){if(Tl(this.base)!==this.current.fullPath){var r=Hi(this.base+this.current.fullPath);o?Ld(r):Tp(r)}},t.prototype.getCurrentLocation=function(){return Tl(this.base)},t}(zn);function Tl(e){var t=window.location.pathname,o=t.toLowerCase(),r=e.toLowerCase();return e&&(o===r||o.indexOf(Hi(r+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var PD=function(e){function t(o,r,n){e.call(this,o,r),!(n&&eO(this.base))&&b3()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var o=this;if(!(this.listeners.length>0)){var r=this.router,n=r.options.scrollBehavior,a=Gi&&n;a&&this.listeners.push(ND());var s=function(){var u=o.current;b3()&&o.transitionTo(gd(),function(l){a&&zi(o.router,l,u,!0),Gi||pd(l.fullPath)})},i=Gi?"popstate":"hashchange";window.addEventListener(i,s),this.listeners.push(function(){window.removeEventListener(i,s)})}},t.prototype.push=function(o,r,n){var a=this,s=this,i=s.current;this.transitionTo(o,function(u){y3(u.fullPath),zi(a.router,u,i,!1),r&&r(u)},n)},t.prototype.replace=function(o,r,n){var a=this,s=this,i=s.current;this.transitionTo(o,function(u){pd(u.fullPath),zi(a.router,u,i,!1),r&&r(u)},n)},t.prototype.go=function(o){window.history.go(o)},t.prototype.ensureURL=function(o){var r=this.current.fullPath;gd()!==r&&(o?y3(r):pd(r))},t.prototype.getCurrentLocation=function(){return gd()},t}(zn);function eO(e){var t=Tl(e);if(!/^\/#/.test(t))return window.location.replace(Hi(e+"/#"+t)),!0}function b3(){var e=gd();return e.charAt(0)==="/"?!0:(pd("/"+e),!1)}function gd(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function Cp(e){var t=window.location.href,o=t.indexOf("#"),r=o>=0?t.slice(0,o):t;return r+"#"+e}function y3(e){Gi?Ld(Cp(e)):window.location.hash=e}function pd(e){Gi?Tp(Cp(e)):window.location.replace(Cp(e))}var tO=function(e){function t(o,r){e.call(this,o,r),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(o,r,n){var a=this;this.transitionTo(o,function(s){a.stack=a.stack.slice(0,a.index+1).concat(s),a.index++,r&&r(s)},n)},t.prototype.replace=function(o,r,n){var a=this;this.transitionTo(o,function(s){a.stack=a.stack.slice(0,a.index).concat(s),r&&r(s)},n)},t.prototype.go=function(o){var r=this,n=this.index+o;if(!(n<0||n>=this.stack.length)){var a=this.stack[n];this.confirmTransition(a,function(){var s=r.current;r.index=n,r.updateRoute(a),r.router.afterHooks.forEach(function(i){i&&i(a,s)})},function(s){qd(s,ou.duplicated)&&(r.index=n)})}},t.prototype.getCurrentLocation=function(){var o=this.stack[this.stack.length-1];return o?o.fullPath:"/"},t.prototype.ensureURL=function(){},t}(zn),Ao=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Sj(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback=t==="history"&&!Gi&&e.fallback!==!1,this.fallback&&(t="hash"),CF||(t="abstract"),this.mode=t,t){case"history":this.history=new YD(this,e.base);break;case"hash":this.history=new PD(this,e.base,this.fallback);break;case"abstract":this.history=new tO(this,e.base);break}},D3={currentRoute:{configurable:!0}};Ao.prototype.match=function(e,t,o){return this.matcher.match(e,t,o)},D3.currentRoute.get=function(){return this.history&&this.history.current},Ao.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var a=t.apps.indexOf(e);a>-1&&t.apps.splice(a,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()}),!this.app){this.app=e;var o=this.history;if(o instanceof YD||o instanceof PD){var r=function(a){var s=o.current,i=t.options.scrollBehavior,u=Gi&&i;u&&"fullPath"in a&&zi(t,a,s,!1)},n=function(a){o.setupListeners(),r(a)};o.transitionTo(o.getCurrentLocation(),n,n)}o.listen(function(a){t.apps.forEach(function(s){s._route=a})})}},Ao.prototype.beforeEach=function(e){return Ag(this.beforeHooks,e)},Ao.prototype.beforeResolve=function(e){return Ag(this.resolveHooks,e)},Ao.prototype.afterEach=function(e){return Ag(this.afterHooks,e)},Ao.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ao.prototype.onError=function(e){this.history.onError(e)},Ao.prototype.push=function(e,t,o){var r=this;if(!t&&!o&&typeof Promise<"u")return new Promise(function(n,a){r.history.push(e,n,a)});this.history.push(e,t,o)},Ao.prototype.replace=function(e,t,o){var r=this;if(!t&&!o&&typeof Promise<"u")return new Promise(function(n,a){r.history.replace(e,n,a)});this.history.replace(e,t,o)},Ao.prototype.go=function(e){this.history.go(e)},Ao.prototype.back=function(){this.go(-1)},Ao.prototype.forward=function(){this.go(1)},Ao.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(o){return Object.keys(o.components).map(function(r){return o.components[r]})})):[]},Ao.prototype.resolve=function(e,t,o){t=t||this.history.current;var r=Gf(e,t,o,this),n=this.match(r,t),a=n.redirectedFrom||n.fullPath,s=this.history.base,i=oO(s,a,this.mode);return{location:r,route:n,href:i,normalizedTo:r,resolved:n}},Ao.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ao.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==Vi&&this.history.transitionTo(this.history.getCurrentLocation())},Ao.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Vi&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ao.prototype,D3);function Ag(e,t){return e.push(t),function(){var o=e.indexOf(t);o>-1&&e.splice(o,1)}}function oO(e,t,o){var r=o==="hash"?"#"+t:t;return e?Hi(e+"/"+r):r}Ao.install=wp,Ao.version="3.6.5",Ao.isNavigationFailure=qd,Ao.NavigationFailureType=ou,Ao.START_LOCATION=Vi,CF&&window.Vue&&window.Vue.use(Ao);const ZD=Symbol.for("insideRadioGroup");function rO(){return Zy(ZD,void 0)}const nO="radio";Pt();const HD={setup(e){const t=rO(),o=en(()=>t?.value?nO:e.type);L7(()=>t?.value.register(!1));const r=x1("checked","update:checked"),n=en({get(){return t?.value?t.value.modelValue:r.value},set(a){t?.value?t.value.onUpdate(a):r.value=a}});return{internalType:o,internalModelValue:n,labelId:Wi(),descriptionId:Wi()}}},E3=()=>{Hy((e,t)=>({"1f97b3de":e.cssIconSize,be84d992:e.cssIconHeight}))},k3=HD.setup;HD.setup=k3?(e,t)=>(E3(),k3(e,t)):E3;const aO={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var iO=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(o){return e.$emit("click",o)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},sO=[],uO=Fo(aO,iO,sO,!1,null,null);const lO=uO.exports;var FO=Object.defineProperty,x3=Object.getOwnPropertySymbols,dO=Object.prototype.hasOwnProperty,cO=Object.prototype.propertyIsEnumerable,w3=(e,t,o)=>t in e?FO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,v3=(e,t)=>{for(var o in t||(t={}))dO.call(t,o)&&w3(e,o,t[o]);if(x3)for(var o of x3(t))cO.call(t,o)&&w3(e,o,t[o]);return e},hO,gO;(hO=window._vue_richtext_widgets)!=null||(window._vue_richtext_widgets={}),(gO=window._registerWidget)!=null||(window._registerWidget=(e,t,o,r)=>{pO(e,t,o,r)});function pO(e,t,o=()=>{},r){const n=v3({hasInteractiveView:!0,fullWidth:!1},r);if(window._vue_richtext_widgets[e]){sn.error("[ReferencePicker]: Widget for id ".concat(e," already registered"));return}window._vue_richtext_widgets[e]=v3({id:e,callback:t,onDestroy:o},n)}function fO(e,t){const{richObjectType:o,richObject:r,accessible:n,interactive:a}=t;if(o!=="open-graph"){if(!window._vue_richtext_widgets[o]){sn.error("Widget for rich object type "+o+" not registered");return}window._vue_richtext_widgets[o].callback(e,{richObjectType:o,richObject:r,accessible:n,interactive:a})}}function mO(e,t){e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(t)}function T3(e){return!!window._vue_richtext_widgets[e]}function _O(e){var t;return!!((t=window._vue_richtext_widgets[e])!=null&&t.hasInteractiveView)}function bO(e){var t;return!!((t=window._vue_richtext_widgets[e])!=null&&t.fullWidth)}var yO,DO;(yO=window._vue_richtext_custom_picker_elements)!=null||(window._vue_richtext_custom_picker_elements={}),(DO=window._registerCustomPickerElement)!=null||(window._registerCustomPickerElement=kO);function rF(e){return!!window._vue_richtext_custom_picker_elements[e]}function EO(e){var t;const o=(t=window._vue_richtext_custom_picker_elements[e])==null?void 0:t.size;return["small","normal","large","full"].includes(o)?o:null}function kO(e,t,o=()=>{},r="large"){if(window._vue_richtext_custom_picker_elements[e]){sn.error("Custom reference picker element for id ".concat(e," already registered"));return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:t,onDestroy:o,size:r}}function xO(e,t){const{providerId:o,accessible:r}=t;if(!window._vue_richtext_custom_picker_elements[o]){sn.error("Custom reference picker element for reference provider ID ".concat(o," not registered"));return}return window._vue_richtext_custom_picker_elements[o].callback(e,{providerId:o,accessible:r})}function wO(e,t,o){window._vue_richtext_custom_picker_elements[e]&&window._vue_richtext_custom_picker_elements[e].onDestroy(t,o)}const vO={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},computed:{hasName(){return this.name!==""},hasDescription(){var e;return this.description!==""||((e=this.$slots.description)==null?void 0:e[0])}}};var TO=function(){var e=this,t=e._self._c;return t("div",{staticClass:"empty-content",attrs:{role:"note"}},[e.$slots.icon?t("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e._t("name",function(){return[e.hasName?t("span",{staticClass:"empty-content__name"},[e._v(" "+e._s(e.name)+" ")]):e._e()]}),e.hasDescription?t("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?t("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()],2)},CO=[],AO=Fo(vO,TO,CO,!1,null,"e5f606f7");const Uf=AO.exports;var BO=Object.defineProperty,SO=Object.defineProperties,jO=Object.getOwnPropertyDescriptors,C3=Object.getOwnPropertySymbols,OO=Object.prototype.hasOwnProperty,RO=Object.prototype.propertyIsEnumerable,A3=(e,t,o)=>t in e?BO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,NO=(e,t)=>{for(var o in t||(t={}))OO.call(t,o)&&A3(e,o,t[o]);if(C3)for(var o of C3(t))RO.call(t,o)&&A3(e,o,t[o]);return e},MO=(e,t)=>SO(e,jO(t));function zD(e,t){const o=[];let r=0,n=e.toLowerCase().indexOf(t.toLowerCase(),r),a=0;for(;n>-1&&a[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=zD(this.text,this.search),e.forEach((t,o)=>{t.end(o.start0&&t.push({start:o.start<0?0:o.start,end:o.end>this.text.length?this.text.length:o.end}),t),[]),e.sort((t,o)=>t.start-o.start),e=e.reduce((t,o)=>{if(!t.length)t.push(o);else{const r=t.length-1;t[r].end>=o.start?t[r]={start:t[r].start,end:Math.max(t[r].end,o.end)}:t.push(o)}return t},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let t=0,o=0;for(;t=this.ranges.length&&tt.highlight?e("strong",{},t.text):t.text)):e("span",{},this.text)}},IO=null,qO=null;var YO=Fo(LO,IO,qO,!1,null,null);const Xc=YO.exports;var Ap={exports:{}},PO=Ap.exports,B3;function ZO(){return B3||(B3=1,function(e,t){(function(o,r){e.exports=r()})(typeof self<"u"?self:PO,function(){return(()=>{var o={646:s=>{s.exports=function(i){if(Array.isArray(i)){for(var u=0,l=new Array(i.length);u{s.exports=function(i,u,l){return u in i?Object.defineProperty(i,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[u]=l,i}},860:s=>{s.exports=function(i){if(Symbol.iterator in Object(i)||Object.prototype.toString.call(i)==="[object Arguments]")return Array.from(i)}},206:s=>{s.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(s,i,u)=>{var l=u(646),d=u(860),c=u(206);s.exports=function(g){return l(g)||d(g)||c()}},8:s=>{function i(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s.exports=i=function(l){return typeof l}:s.exports=i=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(u)}s.exports=i}},r={};function n(s){var i=r[s];if(i!==void 0)return i.exports;var u=r[s]={exports:{}};return o[s](u,u.exports,n),u.exports}n.n=s=>{var i=s&&s.__esModule?()=>s.default:()=>s;return n.d(i,{a:i}),i},n.d=(s,i)=>{for(var u in i)n.o(i,u)&&!n.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:i[u]})},n.o=(s,i)=>Object.prototype.hasOwnProperty.call(s,i),n.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{VueSelect:()=>V,default:()=>Z,mixins:()=>W});var s=n(319),i=n.n(s),u=n(8),l=n.n(u),d=n(713),c=n.n(d);const g={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(w){var Y=this;this.autoscroll&&w&&this.$nextTick(function(){return Y.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var w,Y=((w=this.$refs.dropdownMenu)===null||w===void 0?void 0:w.children[this.typeAheadPointer])||!1;if(Y){var K=this.getDropdownViewport(),H=Y.getBoundingClientRect(),$=H.top,X=H.bottom,ie=H.height;if($K.bottom)return this.$refs.dropdownMenu.scrollTop=Y.offsetTop-(K.height-ie)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},p={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var w=0;w=0;w--)if(this.selectable(this.filteredOptions[w])){this.typeAheadPointer=w;break}},typeAheadDown:function(){for(var w=this.typeAheadPointer+1;w0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=w??!this.mutableLoading}}};function _(w,Y,K,H,$,X,ie,ce){var me,Ee=typeof w=="function"?w.options:w;return Y&&(Ee.render=Y,Ee.staticRenderFns=K,Ee._compiled=!0),{exports:w,options:Ee}}const D={Deselect:_({},function(){var w=this.$createElement,Y=this._self._c||w;return Y("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[Y("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[]).exports,OpenIndicator:_({},function(){var w=this.$createElement,Y=this._self._c||w;return Y("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[Y("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[]).exports},E={inserted:function(w,Y,K){var H=K.context;if(H.appendToBody){document.body.appendChild(w);var $=H.$refs.toggle.getBoundingClientRect(),X=$.height,ie=$.top,ce=$.left,me=$.width,Ee=window.scrollX||window.pageXOffset,Ce=window.scrollY||window.pageYOffset;w.unbindPosition=H.calculatePosition(w,H,{width:me+"px",left:Ee+ce+"px",top:Ce+ie+X+"px"})}},unbind:function(w,Y,K){K.context.appendToBody&&(w.unbindPosition&&typeof w.unbindPosition=="function"&&w.unbindPosition(),w.parentNode&&w.parentNode.removeChild(w))}},k=function(w){var Y={};return Object.keys(w).sort().forEach(function(K){Y[K]=w[K]}),JSON.stringify(Y)};var A=0;const N=function(){return++A};function R(w,Y){var K=Object.keys(w);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(w);Y&&(H=H.filter(function($){return Object.getOwnPropertyDescriptor(w,$).enumerable})),K.push.apply(K,H)}return K}function L(w){for(var Y=1;Y-1}},filter:{type:Function,default:function(w,Y){var K=this;return w.filter(function(H){var $=K.getOptionLabel(H);return typeof $=="number"&&($=$.toString()),K.filterBy(H,$,Y)})}},createOption:{type:Function,default:function(w){return l()(this.optionList[0])==="object"?c()({},this.label,w):w}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(w){return["function","boolean"].includes(l()(w))}},clearSearchOnBlur:{type:Function,default:function(w){var Y=w.clearSearchOnSelect,K=w.multiple;return Y&&!K}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(w,Y){return w}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(w,Y,K){var H=K.width,$=K.top,X=K.left;w.style.top=$,w.style.left=X,w.style.width=H}},dropdownShouldOpen:{type:Function,default:function(w){var Y=w.noDrop,K=w.open,H=w.mutableLoading;return!Y&&K&&!H}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return N()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var w=this.value;return this.isTrackingValues&&(w=this.$data._value),w!=null&&w!==""?[].concat(w):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var w=this,Y={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:L({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs-".concat(this.uid,"__listbox"),"aria-owns":"vs-".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs-".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return w.isComposing=!0},compositionend:function(){return w.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(K){return w.search=K.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:Y,listFooter:Y,header:L({},Y,{deselect:this.deselect}),footer:L({},Y,{deselect:this.deselect})}},childComponents:function(){return L({},D,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var w=this,Y=function(X){return w.limit!==null?X.slice(0,w.limit):X},K=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return Y(K);var H=this.search.length?this.filter(K,this.search,this):K;if(this.taggable&&this.search.length)try{var $=this.createOption(this.search);this.optionExists($)||H.unshift($)}catch{}return Y(H)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(w,Y){var K=this;!this.taggable&&(typeof K.resetOnOptionsChange=="function"?K.resetOnOptionsChange(w,Y,K.selectedValue):K.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(w){this.isTrackingValues&&this.setInternalValueFromOptions(w)}},multiple:function(){this.clearSelection()},open:function(w){this.$emit(w?"open":"close")},search:function(w){w.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(w){var Y=this;Array.isArray(w)?this.$data._value=w.map(function(K){return Y.findOptionFromReducedValue(K)}):this.$data._value=this.findOptionFromReducedValue(w)},select:function(w){this.$emit("option:selecting",w),this.isOptionSelected(w)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(w):(this.taggable&&!this.optionExists(w)&&this.$emit("option:created",w),this.multiple&&(w=this.selectedValue.concat(w)),this.updateValue(w),this.$emit("option:selected",w)),this.onAfterSelect(w)},deselect:function(w){var Y=this;this.$emit("option:deselecting",w),this.updateValue(this.selectedValue.filter(function(K){return!Y.optionComparator(K,w)})),this.$emit("option:deselected",w)},keyboardDeselect:function(w,Y){var K,H;this.deselect(w);var $=(K=this.$refs.deselectButtons)===null||K===void 0?void 0:K[Y+1],X=(H=this.$refs.deselectButtons)===null||H===void 0?void 0:H[Y-1],ie=$??X;ie?ie.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(w){var Y=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return Y.$refs.search.focus()})},updateValue:function(w){var Y=this;this.value===void 0&&(this.$data._value=w),w!==null&&(w=Array.isArray(w)?w.map(function(K){return Y.reduce(K)}):this.reduce(w)),this.$emit("input",w)},toggleDropdown:function(w){var Y=w.target!==this.searchEl;Y&&w.preventDefault();var K=[].concat(i()(this.$refs.deselectButtons||[]),i()([this.$refs.clearButton]));this.searchEl===void 0||K.filter(Boolean).some(function(H){return H.contains(w.target)||H===w.target})?w.preventDefault():this.open&&Y?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(w){var Y=this;return this.selectedValue.some(function(K){return Y.optionComparator(K,w)})},isOptionDeselectable:function(w){return this.isOptionSelected(w)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(w){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&w===this.typeAheadPointer},optionComparator:function(w,Y){return this.getOptionKey(w)===this.getOptionKey(Y)},findOptionFromReducedValue:function(w){var Y=this,K=[].concat(i()(this.options),i()(this.pushedTags)).filter(function(H){return JSON.stringify(Y.reduce(H))===JSON.stringify(w)});return K.length===1?K[0]:K.find(function(H){return Y.optionComparator(H,Y.$data._value)})||w},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var w=null;this.multiple&&(w=i()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(w)}},optionExists:function(w){var Y=this;return this.optionList.some(function(K){return Y.optionComparator(K,w)})},optionAriaSelected:function(w){return this.selectable(w)?String(this.isOptionSelected(w)):null},normalizeOptionForSlot:function(w){return l()(w)==="object"?w:c()({},this.label,w)},pushTag:function(w){this.pushedTags.push(w)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var w=this.clearSearchOnSelect,Y=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:w,multiple:Y})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(w,Y){this.isKeyboardNavigation=!1,this.selectable(w)&&(this.typeAheadPointer=Y)},onSearchKeyDown:function(w){var Y=this,K=function(X){if(X.preventDefault(),Y.open)return!Y.isComposing&&Y.typeAheadSelect();Y.open=!0},H={8:function(X){return Y.maybeDeleteValue()},9:function(X){return Y.onTab()},27:function(X){return Y.onEscape()},38:function(X){if(X.preventDefault(),Y.isKeyboardNavigation=!0,Y.open)return Y.typeAheadUp();Y.open=!0},40:function(X){if(X.preventDefault(),Y.isKeyboardNavigation=!0,Y.open)return Y.typeAheadDown();Y.open=!0}};this.selectOnKeyCodes.forEach(function(X){return H[X]=K});var $=this.mapKeydown(H,this);if(typeof $[w.keyCode]=="function")return $[w.keyCode](w)},onSearchKeyPress:function(w){this.open||w.keyCode!==32||(w.preventDefault(),this.open=!0)}}},function(){var w=this,Y=w.$createElement,K=w._self._c||Y;return K("div",{staticClass:"v-select",class:w.stateClasses,attrs:{id:"v-select-"+w.uid,dir:w.dir}},[w._t("header",null,null,w.scope.header),w._v(" "),K("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[K("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:w.toggleDropdown}},[w._l(w.selectedValue,function(H,$){return w._t("selected-option-container",[K("span",{key:w.getOptionKey(H),staticClass:"vs__selected"},[w._t("selected-option",[w._v(` `+w._s(w.getOptionLabel(H))+` `)],null,w.normalizeOptionForSlot(H)),w._v(" "),w.multiple?K("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:w.disabled,type:"button",title:w.ariaLabelDeselectOption(w.getOptionLabel(H)),"aria-label":w.ariaLabelDeselectOption(w.getOptionLabel(H))},on:{mousedown:function(X){return X.stopPropagation(),w.deselect(H)},keydown:function(X){return!X.type.indexOf("key")&&w._k(X.keyCode,"enter",13,X.key,"Enter")?null:w.keyboardDeselect(H,$)}}},[K(w.childComponents.Deselect,{tag:"component"})],1):w._e()],2)],{option:w.normalizeOptionForSlot(H),deselect:w.deselect,multiple:w.multiple,disabled:w.disabled})}),w._v(" "),w._t("search",[K("input",w._g(w._b({staticClass:"vs__search"},"input",w.scope.search.attributes,!1),w.scope.search.events))],null,w.scope.search)],2),w._v(" "),K("div",{ref:"actions",staticClass:"vs__actions"},[K("button",{directives:[{name:"show",rawName:"v-show",value:w.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:w.disabled,type:"button",title:w.ariaLabelClearSelected,"aria-label":w.ariaLabelClearSelected},on:{click:w.clearSelection}},[K(w.childComponents.Deselect,{tag:"component"})],1),w._v(" "),w.noDrop?w._e():K("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+w.uid+"__listbox","aria-controls":"vs-"+w.uid+"__listbox","aria-expanded":w.dropdownOpen.toString()},on:{mousedown:w.toggleDropdown}},[w._t("open-indicator",[K(w.childComponents.OpenIndicator,w._b({tag:"component"},"component",w.scope.openIndicator.attributes,!1))],null,w.scope.openIndicator)],2),w._v(" "),w._t("spinner",[K("div",{directives:[{name:"show",rawName:"v-show",value:w.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[w._v("Loading...")])],null,w.scope.spinner)],2)]),w._v(" "),K("transition",{attrs:{name:w.transition}},[w.dropdownOpen?K("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+w.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+w.uid+"__listbox",role:"listbox","aria-label":w.ariaLabelListbox,"aria-multiselectable":w.multiple,tabindex:"-1"},on:{mousedown:function(H){return H.preventDefault(),w.onMousedown(H)},mouseup:w.onMouseUp}},[w._t("list-header",null,null,w.scope.listHeader),w._v(" "),w._l(w.filteredOptions,function(H,$){return K("li",{key:w.getOptionKey(H),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":w.isOptionDeselectable(H)&&$===w.typeAheadPointer,"vs__dropdown-option--selected":w.isOptionSelected(H),"vs__dropdown-option--highlight":$===w.typeAheadPointer,"vs__dropdown-option--kb-focus":w.hasKeyboardFocusBorder($),"vs__dropdown-option--disabled":!w.selectable(H)},attrs:{id:"vs-"+w.uid+"__option-"+$,role:"option","aria-selected":w.optionAriaSelected(H)},on:{mousemove:function(X){return w.onMouseMove(H,$)},click:function(X){X.preventDefault(),X.stopPropagation(),w.selectable(H)&&w.select(H)}}},[w._t("option",[w._v(` `+w._s(w.getOptionLabel(H))+` `)],null,w.normalizeOptionForSlot(H))],2)}),w._v(" "),w.filteredOptions.length===0?K("li",{staticClass:"vs__no-options"},[w._t("no-options",[w._v(` Sorry, no matching options. `)],null,w.scope.noOptions)],2):w._e(),w._v(" "),w._t("list-footer",null,null,w.scope.listFooter)],2):K("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+w.uid+"__listbox",role:"listbox","aria-label":w.ariaLabelListbox}})]),w._v(" "),w._t("footer",null,null,w.scope.footer)],2)},[]).exports,W={ajax:m,pointer:p,pointerScroll:g},Z=V})(),a})()})}(Ap)),Ap.exports}var Ss=ZO();const HO={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zO=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(o){return e.$emit("click",o)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},GO=[],$O=Fo(HO,zO,GO,!1,null,null);const UO=$O.exports,WO={name:"NcEllipsisedOption",components:{NcHighlight:Xc},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?zD(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var VO=function(){var e=this,t=e._self._c;return t("span",{staticClass:"name-parts",attrs:{dir:"auto",title:e.name}},[t("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?t("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},KO=[],QO=Fo(WO,VO,KO,!1,null,"592b8444");const XO=QO.exports,GD=nn($D());window.addEventListener("resize",()=>{GD.value=$D()});function $D(){return window.outerHeight===window.screen.height}Mf(GD);const Wf=1024,UD=Wf/2,Yd=e=>document.documentElement.clientWidth{S3.value=Yd(Wf),JO.value=Yd(UD)},{passive:!0}),Mf(S3);var Bp={exports:{}},eR=Bp.exports,j3;function tR(){return j3||(j3=1,function(e){(function(t){if(typeof o!="function"){var o=function(m){return m};o.nonNative=!0}const r=o("plaintext"),n=o("html"),a=o("comment"),s=/<(\w*)>/g,i=/<\/?([^\s\/>]+)/;function u(m,_,D){m=m||"",_=_||[],D=D||"";let E=d(_,D);return c(m,E)}function l(m,_){m=m||[],_=_||"";let D=d(m,_);return function(E){return c(E||"",D)}}u.init_streaming_mode=l;function d(m,_){return m=g(m),{allowable_tags:m,tag_replacement:_,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function c(m,_){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let D=_.allowable_tags,E=_.tag_replacement,k=_.state,A=_.tag_buffer,N=_.depth,R=_.in_quote_char,L="";for(let V=0,W=m.length;V":if(R)break;if(N){N--;break}R="",k=r,A+=">",D.has(p(A))?L+=A:L+=E,A="";break;case'"':case"'":Z===R?R="":R=R||Z,A+=Z;break;case"-":A==="":A.slice(-2)=="--"&&(k=r),A="";break;default:A+=Z;break}}return _.state=k,_.tag_buffer=A,_.depth=N,_.in_quote_char=R,L}function g(m){let _=new Set;if(typeof m=="string"){let D;for(;D=s.exec(m);)_.add(D[1])}else!o.nonNative&&typeof m[o.iterator]=="function"?_=new Set(m):typeof m.forEach=="function"&&m.forEach(_.add,_);return _}function p(m){let _=i.exec(m);return _?_[1].toLowerCase():null}e.exports?e.exports=u:t.striptags=u})(eR)}(Bp)),Bp.exports}tR();function Pd(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}Pd();const oR=Symbol.for("nc:theme:enforced");function rR(e){const t=en(()=>{var a;return(a=ri(e))!=null?a:document.body}),o=nn(Pd(t.value)),r=q7();function n(){o.value=Pd(t.value)}return Y7(t,n,{attributes:!0}),oF(t,n),oF(r,n,{immediate:!0}),Mf(o)}const nR=I7(()=>rR());function aR(){const e=nR(),t=Zy(oR,void 0);return en(()=>t?.value?t.value==="dark":e.value)}var Lu={},hl={},gl={},O3;function WD(){if(O3)return gl;O3=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.default=void 0;function e(n,a,s){return a=t(a),a in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s,n}function t(n){var a=o(n,"string");return typeof a=="symbol"?a:a+""}function o(n,a){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var i=s.call(n,a);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}class r{constructor(a,s,i){e(this,"scope",void 0),e(this,"wrapped",void 0),this.scope="".concat(i?r.GLOBAL_SCOPE_PERSISTENT:r.GLOBAL_SCOPE_VOLATILE,"_").concat(btoa(a),"_"),this.wrapped=s}scopeKey(a){return"".concat(this.scope).concat(a)}setItem(a,s){this.wrapped.setItem(this.scopeKey(a),s)}getItem(a){return this.wrapped.getItem(this.scopeKey(a))}removeItem(a){this.wrapped.removeItem(this.scopeKey(a))}clear(){Object.keys(this.wrapped).filter(a=>a.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}return gl.default=r,e(r,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),e(r,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),gl}var R3;function iR(){if(R3)return hl;R3=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=void 0;var e=t(WD());function t(s){return s&&s.__esModule?s:{default:s}}function o(s,i,u){return i=r(i),i in s?Object.defineProperty(s,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[i]=u,s}function r(s){var i=n(s,"string");return typeof i=="symbol"?i:i+""}function n(s,i){if(typeof s!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var l=u.call(s,i);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(s)}class a{constructor(i){o(this,"appId",void 0),o(this,"persisted",!1),o(this,"clearedOnLogout",!1),this.appId=i}persist(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=i,this}clearOnLogout(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=i,this}build(){return new e.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}return hl.default=a,hl}var N3;function sR(){if(N3)return Lu;N3=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.clearAll=a,Lu.clearNonPersistent=s,Lu.getBuilder=r;var e=o(iR()),t=o(WD());function o(i){return i&&i.__esModule?i:{default:i}}function r(i){return new e.default(i)}function n(i,u){Object.keys(i).filter(l=>u?u(l):!0).map(i.removeItem.bind(i))}function a(){[window.sessionStorage,window.localStorage].map(i=>n(i))}function s(){[window.sessionStorage,window.localStorage].map(i=>n(i,u=>!u.startsWith(t.default.GLOBAL_SCOPE_PERSISTENT)))}return Lu}var Vf=sR();an.util.warn;const VD=P7?window:void 0;function Cl(e){var t;const o=ri(e);return(t=o?.$el)!=null?t:o}function fd(...e){let t,o,r,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,r,n]=e,t=VD):[t,o,r,n]=e,!t)return sd;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const a=[],s=()=>{a.forEach(d=>d()),a.length=0},i=(d,c,g,p)=>(d.addEventListener(c,g,p),()=>d.removeEventListener(c,g,p)),u=oF(()=>[Cl(t),ri(n)],([d,c])=>{if(s(),!d)return;const g=Z7(c)?{...c}:c;a.push(...o.flatMap(p=>r.map(m=>i(d,p,m,g))))},{immediate:!0,flush:"post"}),l=()=>{u(),s()};return zy(l),l}let M3=!1;function L3(e,t,o={}){const{window:r=VD,ignore:n=[],capture:a=!0,detectIframe:s=!1}=o;if(!r)return sd;fp&&!M3&&(M3=!0,Array.from(r.document.body.children).forEach(m=>m.addEventListener("click",sd)),r.document.documentElement.addEventListener("click",sd));let i=!0;const u=m=>ri(n).some(_=>{if(typeof _=="string")return Array.from(r.document.querySelectorAll(_)).some(D=>D===m.target||m.composedPath().includes(D));{const D=Cl(_);return D&&(m.target===D||m.composedPath().includes(D))}});function l(m){const _=ri(m);return _&&_.$.subTree.shapeFlag===16}function d(m,_){const D=ri(m),E=D.$.subTree&&D.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(k=>k.el===_.target||_.composedPath().includes(k.el))}const c=m=>{const _=Cl(e);if(m.target!=null&&!(!(_ instanceof Element)&&l(e)&&d(e,m))&&!(!_||_===m.target||m.composedPath().includes(_))){if(m.detail===0&&(i=!u(m)),!i){i=!0;return}t(m)}};let g=!1;const p=[fd(r,"click",m=>{g||(g=!0,setTimeout(()=>{g=!1},0),c(m))},{passive:!0,capture:a}),fd(r,"pointerdown",m=>{const _=Cl(e);i=!u(m)&&!!(_&&!m.composedPath().includes(_))},{passive:!0}),s&&fd(r,"blur",m=>{setTimeout(()=>{var _;const D=Cl(e);((_=r.document.activeElement)==null?void 0:_.tagName)==="IFRAME"&&!D?.contains(r.document.activeElement)&&t(m)},0)})].filter(Boolean);return()=>p.forEach(m=>m())}const uR={[H2.mounted](e,t){const o=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=L3(e,t.value,{capture:o});else{const[r,n]=t.value;e.__onClickOutside_stop=L3(e,r,Object.assign({capture:o},n))}},[H2.unmounted](e){e.__onClickOutside_stop()}};function Bg(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function KD(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Sg=new WeakMap;function FR(e,t=!1){const o=nn(t);let r=null,n="";oF(H7(e),i=>{const u=Bg(ri(i));if(u){const l=u;if(Sg.get(l)||Sg.set(l,l.style.overflow),l.style.overflow!=="hidden"&&(n=l.style.overflow),l.style.overflow==="hidden")return o.value=!0;if(o.value)return l.style.overflow="hidden"}},{immediate:!0});const a=()=>{const i=Bg(ri(e));!i||o.value||(fp&&(r=fd(i,"touchmove",u=>{lR(u)},{passive:!1})),i.style.overflow="hidden",o.value=!0)},s=()=>{const i=Bg(ri(e));!i||!o.value||(fp&&r?.(),i.style.overflow=n,Sg.delete(i),o.value=!1)};return zy(s),en({get(){return o.value},set(i){i?a():s()}})}function dR(){let e=!1;const t=nn(!1);return(o,r)=>{if(t.value=r.value,e)return;e=!0;const n=FR(o,r.value);oF(t,a=>n.value=a)}}dR();const I3=/(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig;function QD(e,t){const o=(d,c)=>d.startsWith(c)?d.slice(c.length):d,r=(d,...c)=>c.reduce((g,p)=>o(g,p),d);if(!e)return null;const n=/^https?:\/\//.test(t),a=/^[a-z][a-z0-9+.-]*:.+/.test(t);if(!n&&a||n&&!t.startsWith(G2())||!n&&!t.startsWith("/"))return null;const s=n?r(t,G2(),"/index.php"):t,i=r(e.history.base,ZB(),"/index.php"),u=r(s,i)||"/",l=e.resolve(u).route;return l.matched.length?l.fullPath:null}function cR(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(t=>t.enabled(e)):[]}var q3={exports:{}},Y3={exports:{}},P3;function hR(){return P3||(P3=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(o,r){return o<>>32-r},rotr:function(o,r){return o<<32-r|o>>>r},endian:function(o){if(o.constructor==Number)return t.rotl(o,8)&16711935|t.rotl(o,24)&4278255360;for(var r=0;r0;o--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(o){for(var r=[],n=0,a=0;n>>5]|=o[n]<<24-a%32;return r},wordsToBytes:function(o){for(var r=[],n=0;n>>5]>>>24-n%32&255);return r},bytesToHex:function(o){for(var r=[],n=0;n>>4).toString(16)),r.push((o[n]&15).toString(16));return r.join("")},hexToBytes:function(o){for(var r=[],n=0;n>>6*(3-s)&63)):r.push("=");return r.join("")},base64ToBytes:function(o){o=o.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],n=0,a=0;n>>6-a*2);return r}};Y3.exports=t}()),Y3.exports}var jg,Z3;function H3(){if(Z3)return jg;Z3=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var o=[],r=0;r>>24)&16711935|(i[p]<<24|i[p]>>>8)&4278255360;i[u>>>5]|=128<>>9<<4)+14]=u;for(var m=n._ff,_=n._gg,D=n._hh,E=n._ii,p=0;p>>0,d=d+A>>>0,c=c+N>>>0,g=g+R>>>0}return e.endian([l,d,c,g])};n._ff=function(a,s,i,u,l,d,c){var g=a+(s&i|~s&u)+(l>>>0)+c;return(g<>>32-d)+s},n._gg=function(a,s,i,u,l,d,c){var g=a+(s&u|i&~u)+(l>>>0)+c;return(g<>>32-d)+s},n._hh=function(a,s,i,u,l,d,c){var g=a+(s^i^u)+(l>>>0)+c;return(g<>>32-d)+s},n._ii=function(a,s,i,u,l,d,c){var g=a+(i^(s|~u))+(l>>>0)+c;return(g<>>32-d)+s},n._blocksize=16,n._digestsize=16,q3.exports=function(a,s){if(a==null)throw new Error("Illegal argument "+a);var i=e.wordsToBytes(n(a,s));return s&&s.asBytes?i:s&&s.asString?r.bytesToString(i):e.bytesToHex(i)}}()),q3.exports}var fR=pR();const mR=vF(fR);Pt(z7);class zo{constructor(t,o,r,n){this.r=t,this.g=o,this.b=r,this.name=n,this.r=Math.min(t,255),this.g=Math.min(o,255),this.b=Math.min(r,255),this.name=n}get color(){const t=o=>"00".concat(o.toString(16)).slice(-2);return"#".concat(t(this.r)).concat(t(this.g)).concat(t(this.b))}}function _R(e,t,o){return{r:(o.r-t.r)/e,g:(o.g-t.g)/e,b:(o.b-t.b)/e}}function Rg(e,t,o){const r=[];r.push(t);const n=_R(e,t,o);for(let a=1;a `,DR=` `,ER=` `,kR=` `,xR=` `,Q3=` `,X3=` `,wR=` `,vR=` `;Pt(G7),Pt($7);function XD(e){switch(e){case"away":return Ue("away");case"busy":return Ue("busy");case"dnd":return Ue("do not disturb");case"online":return Ue("online");case"invisible":return Ue("invisible");case"offline":return Ue("offline");default:return e}}const TR={online:Nu?wR:vR,away:Nu?K3:DR,busy:Nu?K3:ER,dnd:Nu?kR:xR,invisible:Nu?Q3:X3,offline:Nu?Q3:X3},CR={name:"NcUserStatusIcon",props:{user:{type:String,default:null},status:{type:String,default:null,validator:e=>["online","away","busy","dnd","invisible","offline"].includes(e)},ariaHidden:{type:String,default:null,validator:e=>["true","false"].includes(e)}},data(){return{fetchedUserStatus:null}},computed:{activeStatus(){var e;return(e=this.status)!=null?e:this.fetchedUserStatus},activeSvg(){var e;return(e=TR[this.activeStatus])!=null?e:null},ariaLabel(){return this.ariaHidden==="true"?null:Ue("User status: {status}",{status:XD(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(e){var t,o,r,n;if(!e||!((o=(t=AF())==null?void 0:t.user_status)!=null&&o.enabled)){this.fetchedUserStatus=null;return}try{const{data:a}=await _n.get(Vn("/apps/user_status/api/v1/statuses/{user}",{user:e}));this.fetchedUserStatus=(n=(r=a.ocs)==null?void 0:r.data)==null?void 0:n.status}catch{this.fetchedUserStatus=null}}}}};var AR=function(){var e=this,t=e._self._c;return e.activeStatus?t("span",{staticClass:"user-status-icon",class:{"user-status-icon--invisible":["invisible","offline"].includes(e.status)},attrs:{role:"img","aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel},domProps:{innerHTML:e._s(e.activeSvg)}}):e._e()},BR=[],SR=Fo(CR,AR,BR,!1,null,"86b73d39");const jR=SR.exports,OR={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}};function RR(e,t){let o=e.$parent;for(;o;){if(o.$options.name===t)return o;o=o.$parent}}const Jc={mixins:[OR],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(e){if(this.$emit("click",e),this.closeAfterClick){const t=RR(this,"NcActions");t&&t.closeMenu&&t.closeMenu(!1)}}}},NR={name:"NcActionButton",components:{NcIconSvgWrapper:wF},mixins:[Jc],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{ariaHidden:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>["button","checkbox","radio","reset","submit"].includes(e)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},setup(){return{mdiCheck:Gy,mdiChevronRight:U7}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const e={};return this.isInSemanticMenu?(e.role="menuitem",this.type==="radio"?(e.role="menuitemradio",e["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(e.role="menuitemcheckbox",e["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(e["aria-pressed"]=this.modelValue?"true":"false"),e}},methods:{handleClick(e){this.onClick(e),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}};var MR=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled},attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("button",e._b({staticClass:"action-button button-vue",class:{"action-button--active":e.isChecked,focusable:e.isFocusable},attrs:{"aria-label":e.ariaLabel,disabled:e.disabled,title:e.title,type:e.nativeType},on:{click:e.handleClick}},"button",e.buttonAttributes,!1),[e._t("icon",function(){return[t("span",{staticClass:"action-button__icon",class:[e.isIconUrl?"action-button__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?"url(".concat(e.icon,")"):null},attrs:{"aria-hidden":"true"}})]}),t("span",{staticClass:"action-button__longtext-wrapper"},[e.name?t("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]):e._e(),e.isLongText?t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-button__text"},[e._v(" "+e._s(e.text)+" ")]),e.description?t("span",{staticClass:"action-button__description",domProps:{textContent:e._s(e.description)}}):e._e()]),e.isMenu?t("NcIconSvgWrapper",{staticClass:"action-button__menu-icon",attrs:{directional:"",path:e.mdiChevronRight}}):e.isChecked?t("NcIconSvgWrapper",{staticClass:"action-button__pressed-icon",attrs:{path:e.mdiCheck}}):e.isChecked===!1?t("span",{staticClass:"action-button__pressed-icon material-design-icon"}):e._e(),e._e()],2)])},LR=[],IR=Fo(NR,MR,LR,!1,null,"595cfbf9");const qR=IR.exports,YR={name:"NcActionLink",mixins:[Jc],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{href:{type:String,required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var PR=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("a",{staticClass:"action-link focusable",attrs:{download:e.download,href:e.href,"aria-label":e.ariaLabel,target:e.target,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-link__icon",class:[e.isIconUrl?"action-link__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?"url(".concat(e.icon,")"):null},attrs:{"aria-hidden":"true"}})]}),e.name?t("span",{staticClass:"action-link__longtext-wrapper"},[t("strong",{staticClass:"action-link__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-link__text"},[e._v(e._s(e.text))]),e._e()],2)])},ZR=[],HR=Fo(YR,PR,ZR,!1,null,"0dc8b2f3");const zR=HR.exports,GR={name:"NcActionRouter",mixins:[Jc],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],required:!0},exact:{type:Boolean,default:!1}}};var $R=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("RouterLink",{staticClass:"action-router focusable",attrs:{to:e.to,"aria-label":e.ariaLabel,exact:e.exact,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},nativeOn:{click:function(o){return e.onClick.apply(null,arguments)}}},[e._t("icon",function(){return[t("span",{staticClass:"action-router__icon",class:[e.isIconUrl?"action-router__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?"url(".concat(e.icon,")"):null},attrs:{"aria-hidden":"true"}})]}),e.name?t("span",{staticClass:"action-router__longtext-wrapper"},[t("strong",{staticClass:"action-router__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-router__text"},[e._v(e._s(e.text))]),e._e()],2)],1)},UR=[],WR=Fo(GR,$R,UR,!1,null,"bce2dceb");const VR=WR.exports,KR={name:"NcActionText",mixins:[Jc],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var QR=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("span",{staticClass:"action-text",on:{click:e.onClick}},[e._t("icon",function(){return[e.icon!==""?t("span",{staticClass:"action-text__icon",class:[e.isIconUrl?"action-text__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?"url(".concat(e.icon,")"):null},attrs:{"aria-hidden":"true"}}):e._e()]}),e.name?t("span",{staticClass:"action-text__longtext-wrapper"},[t("strong",{staticClass:"action-text__name"},[e._v(" "+e._s(e.name)+" ")]),t("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-text__text"},[e._v(e._s(e.text))]),e._e()],2)])},XR=[],JR=Fo(KR,QR,XR,!1,null,"6cafaa97");const eN=JR.exports;Pt(V7);const JD={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){var t,o;if(!e)return;const r=AF();if(!(!Object.hasOwn(r,"user_status")||!r.user_status.enabled)&&Xn())try{const{data:n}=await _n.get(Vn("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:a,message:s,icon:i}=n.ocs.data;this.userStatus.status=a,this.userStatus.message=s||"",this.userStatus.icon=i||"",this.hasStatus=!0}catch(n){if(n.response.status===404&&((o=(t=n.response.data.ocs)==null?void 0:t.data)==null?void 0:o.length)===0)return;sn.error("Could not fetch user status",{error:n})}}}},e6=Vf.getBuilder("nextcloud").persist().build();function tN(e){const t=e6.getItem("user-has-avatar."+e);return typeof t=="string"?!!t:null}function J3(e,t){e&&e6.setItem("user-has-avatar."+e,t)}const oN={name:"NcAvatar",directives:{ClickOutside:uR},components:{IconDotsHorizontal:$y,NcActions:W7,NcButton:Ji,NcIconSvgWrapper:wF,NcLoadingIcon:Lf,NcUserStatusIcon:jR},mixins:[JD],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},hideStatus:{type:Boolean,default:!1},showUserStatus:{type:Boolean,default:!0},verboseStatus:{type:Boolean,default:!1},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},noPlaceholder:{type:Boolean,default:!1},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[Boolean,String,Object,Element],default:"body"}},setup(){return{isDarkTheme:aR()}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuData:{},contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){var e,t;if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?Ue("Avatar of {displayName}, {status}",{displayName:(e=this.displayName)!=null?e:this.user,status:XD(this.userStatus.status)}):Ue("Avatar of {displayName}",{displayName:(t=this.displayName)!=null?t:this.user})},canDisplayUserStatus(){return!this.hideStatus&&this.showUserStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return!this.hideStatus&&this.showUserStatus&&!this.verboseStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){var e;return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===((e=Xn())==null?void 0:e.uid)||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--avatar-size":this.size+"px",lineHeight:this.showInitials?this.size+"px":0,fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:t,b:o}=V3(this.userIdentifier);return{backgroundColor:"rgba(".concat(e,", ").concat(t,", ").concat(o,", 0.1)")}},initialsStyle(){const{r:e,g:t,b:o}=V3(this.userIdentifier);return{color:"rgb(".concat(e,", ").concat(t,", ").concat(o,")")}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const t=this.userIdentifier.trim();if(t==="")return e;const o=t.match(new RegExp("[\\p{L}\\p{N}\\s]","gu"));if(!o)return e;const r=o.join(""),n=r.lastIndexOf(" ");e=String.fromCodePoint(r.codePointAt(0)),n!==-1&&(e=e.concat(String.fromCodePoint(r.codePointAt(n+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(o=>{const r=QD(this.$router,o.hyperlink);return{ncActionComponent:r?VR:zR,ncActionComponentProps:r?{to:r,icon:o.icon}:{href:o.hyperlink,icon:o.icon},text:o.title}});for(const o of cR(this.contactsMenuData))try{e.push({ncActionComponent:qR,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>o.callback(this.contactsMenuData)},text:o.displayName(this.contactsMenuData),iconSvg:o.iconSvg(this.contactsMenuData)})}catch(r){sn.error("Failed to render ContactsMenu action ".concat(o.id),{error:r,action:o})}function t(o){const r=document.createTextNode(o),n=document.createElement("p");return n.appendChild(r),n.innerHTML}if(!this.hideStatus&&this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const o=` `.concat(t(this.userStatus.icon),` `);return[{ncActionComponent:eN,ncActionComponentProps:{},iconSvg:this.userStatus.icon?o:void 0,text:"".concat(this.userStatus.message)}].concat(e)}return e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),id("settings:avatar:updated",this.loadAvatarUrl),id("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.showUserStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),id("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){ad("settings:avatar:updated",this.loadAvatarUrl),ad("settings:display-name:updated",this.loadAvatarUrl),ad("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:Ue,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message},this.hasStatus=e.status!==null)},async toggleMenu(e){e.type==="keydown"&&e.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const e=encodeURIComponent(this.user),{data:t}=await _n.post(yn("contactsmenu/findOne"),"shareType=0&shareWith=".concat(e));this.contactsMenuData=t,this.contactsMenuActions=t.topAction?[t.topAction].concat(t.actions):t.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser||this.iconClass)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const e=this.avatarUrlGenerator(this.user,64),t=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,t)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,t){var o;let r=yR(e,{size:t,isDarkTheme:this.isDarkTheme,isGuest:this.isGuest});return e===((o=Xn())==null?void 0:o.uid)&&typeof window.oc_userconfig<"u"&&(r+="?v="+window.oc_userconfig.avatar.version),r},updateImageIfValid(e,t=null){const o=tN(this.user);if(this.isUserDefined&&typeof o=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),o===!1&&(this.userDoesNotExist=!0);return}const r=new Image;r.onload=()=>{this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),this.isAvatarLoaded=!0,J3(this.user,!0)},r.onerror=n=>{sn.debug("Invalid avatar url",{error:n,url:e}),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,J3(this.user,!1)},t&&(r.srcset=t),r.src=e}}};var rN=function(){var e=this,t=e._self._c;return t("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":e.userDoesNotExist,"avatardiv--with-menu":e.hasMenu,"avatardiv--with-menu-loading":e.contactsMenuLoading},style:e.avatarStyle,attrs:{title:e.tooltip}},[e._t("icon",function(){return[e.iconClass?t("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?t("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&e.menu.length===0?t("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.avatarAriaLabel,variant:"tertiary-no-background"},on:{click:e.toggleMenu},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?t("NcLoadingIcon"):t("IconDotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,1269954734)}):e.hasMenu?t("NcActions",{attrs:{"aria-label":e.avatarAriaLabel,container:e.menuContainer,"force-menu":"","manual-open":"",open:e.contactsMenuOpenState,variant:"tertiary-no-background"},on:{"update:open":function(o){e.contactsMenuOpenState=o},click:e.toggleMenu},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[t("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(o,r){return t(o.ncActionComponent,e._g(e._b({key:r,tag:"component",scopedSlots:e._u([o.iconSvg?{key:"icon",fn:function(){return[t("NcIconSvgWrapper",{attrs:{svg:o.iconSvg}})]},proxy:!0}:null],null,!0)},"component",o.ncActionComponentProps,!1),o.ncActionComponentHandlers),[e._v(" "+e._s(o.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?t("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?t("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:e.userStatus.status,"aria-hidden":String(e.hasMenu)}}):e._e(),e.showInitials?t("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[t("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},nN=[],aN=Fo(oN,rN,nN,!1,null,"936fbce2");const iN=aN.exports,sN=8,e4=32,uN={name:"NcListItemIcon",components:{NcAvatar:iN,NcHighlight:Xc,NcIconSvgWrapper:wF},mixins:[JD],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:e4},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:sN,defaultSize:e4}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){var e,t;return((t=(e=this.subname)==null?void 0:e.trim)==null?void 0:t.call(e))!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,t=this.search.match(e);return this.isNoUser||!t?[this.search,this.search]:[t[1].trim(),t[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var lN=function(){var e=this,t=e._self._c;return t("span",e._g({staticClass:"option",class:{"option--compact":e.avatarSizet in e?hN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,js=(e,t)=>{for(var o in t||(t={}))fN.call(t,o)&&o4(e,o,t[o]);if(t4)for(var o of t4(t))mN.call(t,o)&&o4(e,o,t[o]);return e},O0=(e,t)=>gN(e,pN(t));Pt(Uy,K7);const _N={name:"NcSelect",components:{ChevronDown:UO,NcEllipsisedOption:XO,NcListItemIcon:cN,NcLoadingIcon:Lf,VueSelect:Ss.VueSelect},model:{prop:"modelValue",event:"update:modelValue"},props:O0(js(js({},Ss.VueSelect.props),Ss.VueSelect.mixins.reduce((e,t)=>js(js({},e),t.props),{})),{ariaLabelClearSelected:{type:String,default:Ue("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:Ue("Options")},ariaLabelDeselectOption:{type:Function,default:e=>Ue("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:e=>e(Wy,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:e,open:t})=>e?!1:t},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>"select-input-".concat(Wi())},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(e,t){return O0(js({},e),{27:o=>{t.open&&o.stopPropagation(),e[27](o)}})}},uid:{type:String,default:()=>Wi()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}}),emits:[" ","input","update:modelValue","update:model-value"],setup(){const e=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),t=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),o=e-2*t,r=x1("value","input");return{avatarSize:o,model:r}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.model===null||Array.isArray(this.model)&&this.model.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,t,{width:o})=>{e.style.width=o;const r={name:"addClass",fn(){return e.classList.add("vs__dropdown-menu--floating"),{}}},n={name:"togglePlacementClass",fn({placement:s}){return t.$el.classList.toggle("select--drop-up",s==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",s==="top"),{}}},a=()=>{y7(t.$refs.toggle,e,{placement:this.placement,middleware:[D7(-1),r,n,E7(),k7({limiter:x7()})]}).then(({x:s,y:i})=>{Object.assign(e.style,{left:"".concat(s,"px"),top:"".concat(i,"px"),width:"".concat(t.$refs.toggle.getBoundingClientRect().width,"px")})})};return b7(t.$refs.toggle,e,a)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(t,o,r)=>{var n,a,s;const i=r.match(e);return i&&((s=(a=(n=t.subname)==null?void 0:n.toLocaleLowerCase)==null?void 0:a.call(n))==null?void 0:s.indexOf(i[1].toLocaleLowerCase()))>-1||"".concat(o," ").concat(t.subname).toLocaleLowerCase().indexOf(r.toLocaleLowerCase())>-1}:Ss.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Ss.VueSelect.props.label.default},propsToForward(){const e=[...Object.keys(Ss.VueSelect.props),...Ss.VueSelect.mixins.flatMap(o=>{var r;return Object.keys((r=o.props)!=null?r:{})})],t=Object.fromEntries(Object.entries(this.$props).filter(([o])=>e.includes(o)));return O0(js({},t),{value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel})},listenersToForward(){return O0(js({},this.$listeners),{input:e=>{this.model=e}})}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&an.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&an.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:Ue}};var bN=function(){var e=this,t=e._self._c;return t("VueSelect",e._g(e._b({staticClass:"select",class:{"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:o=>e.search=o},scopedSlots:e._u([!e.labelOutside&&e.inputLabel?{key:"header",fn:function(){return[t("label",{staticClass:"select__label",attrs:{for:e.inputId}},[e._v(" "+e._s(e.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:o,events:r}){return[t("input",e._g(e._b({staticClass:"vs__search",class:e.inputClass,attrs:{required:e.inputRequired,dir:"auto"}},"input",o,!1),r))]}},{key:"open-indicator",fn:function({attributes:o}){return[t("ChevronDown",e._b({style:{cursor:e.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",o,!1))]}},{key:"option",fn:function(o){return[e._t("option",function(){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":32,name:o[e.localLabel],search:e.search}},"NcListItemIcon",o,!1)):t("NcEllipsisedOption",{attrs:{name:String(o[e.localLabel]),search:e.search}})]},null,o)]}},{key:"selected-option",fn:function(o){return[e._t("selected-option",function(){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":e.avatarSize,name:o[e.localLabel],"no-margin":"",search:e.search}},"NcListItemIcon",o,!1)):t("NcEllipsisedOption",{attrs:{name:String(o[e.localLabel]),search:e.search}})]},{vBind:o})]}},{key:"spinner",fn:function(o){return[o.loading?t("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(o,r){return{key:r,fn:function(n){return[e._t(r,null,null,n)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.listenersToForward))},yN=[],DN=Fo(_N,bN,yN,!1,null,null);const v1=DN.exports;var EN=Object.defineProperty,kN=Object.defineProperties,xN=Object.getOwnPropertyDescriptors,r4=Object.getOwnPropertySymbols,wN=Object.prototype.hasOwnProperty,vN=Object.prototype.propertyIsEnumerable,n4=(e,t,o)=>t in e?EN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,t6=(e,t)=>{for(var o in t||(t={}))wN.call(t,o)&&n4(e,o,t[o]);if(r4)for(var o of r4(t))vN.call(t,o)&&n4(e,o,t[o]);return e},TN=(e,t)=>kN(e,xN(t));Pt(X7);const CN=3*60*1e3,AN={name:"NcReferenceWidget",components:{NcButton:Ji},props:{reference:{type:Object,required:!0},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},setup(){const e=nn(!1),t=nn(),{width:o}=Py(t);return Q7(t,([r])=>{J7(()=>{e.value=r.isIntersecting})}),{width:o,isVisible:e,widgetRoot:t}},data(){return{showInteractive:!1,rendered:!1,idleTimeout:null}},computed:{isInteractive(){return!this.interactiveOptIn&&this.interactive||this.showInteractive},hasFullWidth(){return bO(this.reference.richObjectType)},hasCustomWidget(){return T3(this.reference.richObjectType)},hasInteractiveView(){return T3(this.reference.richObjectType)&&_O(this.reference.richObjectType)},noAccess(){return this.reference&&!this.reference.accessible},descriptionStyle(){if(this.numberOfLines===0)return{display:"none"};const e=this.numberOfLines;return{lineClamp:e,webkitLineClamp:e}},numberOfLines(){return[450,550,650,1/0].findIndex(e=>this.width{this.isVisible||this.destroyWidget()},CN);return}this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.rendered||this.renderWidget()},immediate:!0}},beforeDestroy(){this.destroyWidget()},methods:{t:Ue,enableInteractive(){this.showInteractive=!0,this.renderWidget()},renderWidget(){var e;if(!this.$refs.customWidget||((e=this==null?void 0:this.reference)==null?void 0:e.richObjectType)==="open-graph")return;this.$refs.customWidget.innerHTML="";const t=document.createElement("div");t.style="width: 100%;",this.$refs.customWidget.appendChild(t),this.$nextTick(()=>{fO(t,TN(t6({},this.reference),{interactive:this.isInteractive})),this.rendered=!0})},destroyWidget(){this.rendered&&(mO(this.reference.richObjectType,this.$el),this.rendered=!1)}}};var BN=function(){var e=this,t=e._self._c;return t("div",{ref:"widgetRoot",class:{"toggle-interactive":e.hasInteractiveView&&!e.isInteractive}},[e.reference&&e.hasCustomWidget?t("div",{ref:"customWidget",staticClass:"widget-custom",class:{"full-width":e.hasFullWidth}}):!e.noAccess&&e.reference&&e.reference.openGraphObject&&!e.hasCustomWidget?t(e.referenceWidgetLinkComponent,e._b({tag:"component",staticClass:"widget-default",attrs:{rel:"noopener noreferrer"}},"component",e.referenceWidgetLinkProps,!1),[e.reference.openGraphObject.thumb?t("img",{staticClass:"widget-default--image",attrs:{src:e.reference.openGraphObject.thumb}}):e._e(),t("div",{staticClass:"widget-default--details"},[t("p",{staticClass:"widget-default--name"},[e._v(" "+e._s(e.reference.openGraphObject.name)+" ")]),t("p",{staticClass:"widget-default--description",style:e.descriptionStyle},[e._v(" "+e._s(e.reference.openGraphObject.description)+" ")]),t("p",{staticClass:"widget-default--link"},[e._v(" "+e._s(e.compactLink)+" ")])])]):e._e(),e.interactiveOptIn&&e.hasInteractiveView&&!e.isInteractive?t("NcButton",{staticClass:"toggle-interactive--button",on:{click:e.enableInteractive}},[e._v(" "+e._s(e.t("Enable interactive view"))+" ")]):e._e()],1)},SN=[],jN=Fo(AN,BN,SN,!1,null,"f05dd81b");const o6=jN.exports,ON={name:"NcCustomPickerElement",props:{provider:{type:Object,required:!0}},emits:["cancel","submit"],data(){return{isRegistered:rF(this.provider.id),renderResult:null}},mounted(){this.isRegistered&&this.renderElement()},beforeDestroy(){this.isRegistered&&wO(this.provider.id,this.$el,this.renderResult)},methods:{renderElement(){this.$refs.domElement&&(this.$refs.domElement.innerHTML="");const e=xO(this.$refs.domElement,{providerId:this.provider.id,accessible:!1});Promise.resolve(e).then(t=>{var o,r;this.renderResult=t,(o=this.renderResult.object)!=null&&o._isVue&&(r=this.renderResult.object)!=null&&r.$on&&(this.renderResult.object.$on("submit",this.onSubmit),this.renderResult.object.$on("cancel",this.onCancel)),this.renderResult.element.addEventListener("submit",n=>{this.onSubmit(n.detail)}),this.renderResult.element.addEventListener("cancel",this.onCancel)})},onSubmit(e){this.$emit("submit",e)},onCancel(){this.$emit("cancel")}}};var RN=function(){var e=this,t=e._self._c;return t("div",{ref:"domElement"})},NN=[],MN=Fo(ON,RN,NN,!1,null,"0547d92f");const LN=MN.exports,IN={name:"LinkVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qN=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon link-variant-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(o){return e.$emit("click",o)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},YN=[],PN=Fo(IN,qN,YN,!1,null,null);const Kf=PN.exports;Pt(eB);var ZN,HN;const zN="any-link",GN={id:zN,title:Ue("Any link"),order:0,icon_url:oD("core","filetypes/link.svg")};(ZN=window._vue_richtext_reference_providers)!=null||(window._vue_richtext_reference_providers=h1("core","reference-provider-list",[])),(HN=window._vue_richtext_reference_provider_timestamps)!=null||(window._vue_richtext_reference_provider_timestamps=h1("core","reference-provider-timestamps",{}));function $N(){return window._vue_richtext_reference_providers.filter(e=>{const t=!!e.search_providers_ids&&e.search_providers_ids.length>0||rF(e.id);return t||sn.debug("[smart picker] ".concat(e.id," reference provider is discoverable but does not have any related search provider or custom picker component registered")),t})}function UN(e){const t=window._vue_richtext_reference_provider_timestamps;return e.sort((o,r)=>o.order===r.order?0:o.order>r.order?1:-1).sort((o,r)=>{const n=t[o.id],a=t[r.id];return n===a?0:a===void 0?-1:n===void 0?1:n>a?-1:1})}function WN(e,t){const o=$N(),r=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(r,"i"),a=UN(o).filter(i=>i.title.match(n)),s=t?a.slice(0,t):a;return(e===""||s.length===0)&&s.push(GN),s}async function VN(e){const t=Math.floor(Date.now()/1e3),o=Vn("references/provider/{providerId}",{providerId:e});await _n.put(o,{timestamp:t}),window._vue_richtext_reference_provider_timestamps[e]=t}Pt(Vy,tB);let a4=0;function r6(e,t){return function(){const o=this,r=arguments;clearTimeout(a4),a4=setTimeout(function(){e.apply(o,r)},t)}}function Qf(e){try{return!!new URL(e)}catch{return!1}}const KN={name:"NcProviderList",components:{NcSelect:v1,NcHighlight:Xc,NcEmptyContent:Uf,LinkVariantIcon:Kf},emits:["select-provider","submit"],data(){return{selectedProvider:null,query:"",multiselectPlaceholder:Ue("Select provider"),providerIconAlt:Ue("Provider icon")}},computed:{options(){const e=[];return this.query!==""&&Qf(this.query)&&e.push({id:this.query,title:this.query,isLink:!0}),e.push(...WN(this.query)),e}},methods:{focus(){setTimeout(()=>{var e,t,o;(o=(t=(e=this.$refs["provider-select"])==null?void 0:e.$el)==null?void 0:t.querySelector("#provider-select-input"))==null||o.focus()},300)},onProviderSelected(e){e!==null&&(e.isLink?this.$emit("submit",e.title):this.$emit("select-provider",e),this.selectedProvider=null)},onSearch(e){this.query=e}}};var QN=function(){var e=this,t=e._self._c;return t("div",{staticClass:"provider-list"},[t("NcSelect",{ref:"provider-select",staticClass:"provider-list--select",attrs:{"input-id":"provider-select-input",label:"title",placeholder:e.multiselectPlaceholder,options:e.options,"append-to-body":!1,"clear-search-on-select":!0,"clear-search-on-blur":()=>!1,filterable:!1},on:{search:e.onSearch,input:e.onProviderSelected},scopedSlots:e._u([{key:"option",fn:function(o){return[o.isLink?t("div",{staticClass:"provider"},[t("LinkVariantIcon",{staticClass:"link-icon",attrs:{size:20}}),t("span",[e._v(e._s(o.title))])],1):t("div",{staticClass:"provider"},[t("img",{staticClass:"provider-icon",attrs:{src:o.icon_url,alt:e.providerIconAlt}}),t("NcHighlight",{staticClass:"option-text",attrs:{search:e.query,text:o.title}})],1)]}}]),model:{value:e.selectedProvider,callback:function(o){e.selectedProvider=o},expression:"selectedProvider"}}),t("NcEmptyContent",{staticClass:"provider-list--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[t("LinkVariantIcon")]},proxy:!0}])})],1)},XN=[],JN=Fo(KN,QN,XN,!1,null,"f39d58d9");const eM=JN.exports;Pt(oB);const tM={name:"NcRawLinkInput",components:{LinkVariantIcon:Kf,NcEmptyContent:Uf,NcLoadingIcon:Lf,NcReferenceWidget:o6,NcTextField:Uc},props:{provider:{type:Object,required:!0}},emits:["submit"],data(){return{inputValue:"",loading:!1,reference:null,abortController:null,inputPlaceholder:Ue("Enter link")}},computed:{isLinkValid(){return Qf(this.inputValue)}},methods:{focus(){var e;(e=this.$refs["url-input"].$el.getElementsByTagName("input")[0])==null||e.focus()},onSubmit(e){const t=e.target.value;this.isLinkValid&&this.$emit("submit",t)},onClear(){this.inputValue="",this.reference=null},onInput(){this.reference=null,this.abortController&&this.abortController.abort(),this.isLinkValid&&r6(()=>{this.updateReference()},500)()},updateReference(){this.loading=!0,this.abortController=new AbortController,_n.get(Vn("references/resolve",2)+"?reference="+encodeURIComponent(this.inputValue),{signal:this.abortController.signal}).then(e=>{this.reference=e.data.ocs.data.references[this.inputValue]}).catch(e=>{sn.error("Could not update reference",{error:e})}).then(()=>{this.loading=!1})}}};var oM=function(){var e=this,t=e._self._c;return t("div",{staticClass:"raw-link"},[t("div",{staticClass:"input-wrapper"},[t("NcTextField",{ref:"url-input",attrs:{value:e.inputValue,"show-trailing-button":e.inputValue!=="",label:e.inputPlaceholder},on:{"update:value":[function(o){e.inputValue=o},e.onInput],"trailing-button-click":e.onClear},nativeOn:{keyup:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.onSubmit.apply(null,arguments)}}},[e.loading?t("NcLoadingIcon",{attrs:{size:16}}):t("LinkVariantIcon",{attrs:{size:16}})],1)],1),e.reference!==null?t("NcReferenceWidget",{staticClass:"reference-widget",attrs:{reference:e.reference}}):t("NcEmptyContent",{staticClass:"raw-link--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?t("img",{staticClass:"provider-icon",attrs:{src:e.provider.icon_url}}):t("LinkVariantIcon")]},proxy:!0}])})],1)},rM=[],nM=Fo(tM,oM,rM,!1,null,"be630586");const aM=nM.exports,iM={name:"NcSearchResult",components:{NcHighlight:Xc},props:{entry:{type:Object,required:!0},query:{type:String,required:!0}}};var sM=function(){var e=this,t=e._self._c;return t("div",{staticClass:"result"},[e.entry.icon?t("div",{staticClass:"result--icon-class",class:{[e.entry.icon]:!0,rounded:e.entry.rounded}}):t("img",{staticClass:"result--image",class:{rounded:e.entry.rounded},attrs:{src:e.entry.thumbnailUrl}}),t("div",{staticClass:"result--content"},[t("span",{staticClass:"result--content--name"},[t("NcHighlight",{attrs:{search:e.query,text:e.entry.title}})],1),t("span",{staticClass:"result--content--subline"},[t("NcHighlight",{attrs:{search:e.query,text:e.entry.subline}})],1)])])},uM=[],lM=Fo(iM,sM,uM,!1,null,"995c2758");const FM=lM.exports;Pt(rB,Vy,Ky);const i4=5,dM={name:"NcSearch",components:{LinkVariantIcon:Kf,DotsHorizontalIcon:$y,NcEmptyContent:Uf,NcSelect:v1,NcSearchResult:FM},props:{provider:{type:Object,required:!0},showEmptyContent:{type:Boolean,default:!0},searchPlaceholder:{type:String,default:null}},emits:["submit"],data(){return{searchQuery:"",selectedResult:null,resultsBySearchProvider:{},searching:!1,searchingMoreOf:null,abortController:null,noOptionsText:Ue("Start typing to search"),providerIconAlt:Ue("Provider icon")}},computed:{mySearchPlaceholder(){return this.searchPlaceholder||Ue("Search")},searchProviderIds(){return this.provider.search_providers_ids},options(){if(this.searchQuery==="")return[];const e=[];return Qf(this.searchQuery)&&e.push(this.rawLinkEntry),e.push(...this.formattedSearchResults),e},rawLinkEntry(){return{id:"rawLinkEntry",resourceUrl:this.searchQuery,isRawLink:!0}},formattedSearchResults(){const e=[];return this.searchProviderIds.forEach(t=>{if(this.resultsBySearchProvider[t].entries.length>0){(this.searchProviderIds.length>1||this.resultsBySearchProvider[t].entries.length>1)&&e.push({id:"groupTitle-"+t,name:this.resultsBySearchProvider[t].name,isCustomGroupTitle:!0,providerId:t});const o=this.resultsBySearchProvider[t].entries.map((r,n)=>t6({id:"provider-"+t+"-entry-"+n},r));e.push(...o),this.resultsBySearchProvider[t].isPaginated&&e.push({id:"moreOf-"+t,name:this.resultsBySearchProvider[t].name,isMore:!0,providerId:t,isLoading:this.searchingMoreOf===t})}}),e}},mounted(){this.resetResults()},beforeDestroy(){this.cancelSearchRequests()},methods:{t:Ue,resetResults(){const e={};this.searchProviderIds.forEach(t=>{e[t]={entries:[]}}),this.resultsBySearchProvider=e},focus(){setTimeout(()=>{var e,t,o;(o=(t=(e=this.$refs["search-select"])==null?void 0:e.$el)==null?void 0:t.querySelector("#search-select-input"))==null||o.focus()},300)},cancelSearchRequests(){this.abortController&&this.abortController.abort()},onSearchInput(e){this.searchQuery=e,r6(()=>{this.updateSearch()},500)()},onSelectResultSelected(e){e!==null&&(e.resourceUrl?(this.cancelSearchRequests(),this.$emit("submit",e.resourceUrl)):e.isMore&&this.searchMoreOf(e.providerId).then(()=>{this.selectedResult=null}))},searchMoreOf(e){return this.searchingMoreOf=e,this.cancelSearchRequests(),this.searchProviders(e)},updateSearch(){if(this.cancelSearchRequests(),this.resetResults(),this.searchQuery===""){this.searching=!1;return}return this.searchProviders()},searchProviders(e=null){var t,o;this.abortController=new AbortController,this.searching=!0;const r=e===null?[...this.searchProviderIds].map(n=>this.searchOneProvider(n)):[this.searchOneProvider(e,(o=(t=this.resultsBySearchProvider[e])==null?void 0:t.cursor)!=null?o:null)];return Promise.allSettled(r).then(n=>{n.find(a=>a.status==="rejected"&&(a.reason.name==="CanceledError"||a.reason.code==="ERR_CANCELED"))||(this.searching=!1,this.searchingMoreOf=null)})},searchOneProvider(e,t=null){const o=t===null?Vn("search/providers/{providerId}/search?term={term}&limit={limit}",{providerId:e,term:this.searchQuery,limit:i4}):Vn("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}",{providerId:e,term:this.searchQuery,limit:i4,cursor:t});return _n.get(o,{signal:this.abortController.signal}).then(r=>{const n=r.data.ocs.data;this.resultsBySearchProvider[e].name=n.name,this.resultsBySearchProvider[e].cursor=n.cursor,this.resultsBySearchProvider[e].isPaginated=n.isPaginated,this.resultsBySearchProvider[e].entries.push(...n.entries)})}}};var cM=function(){var e=this,t=e._self._c;return t("div",{staticClass:"smart-picker-search",class:{"with-empty-content":e.showEmptyContent}},[t("NcSelect",{ref:"search-select",staticClass:"smart-picker-search--select",attrs:{"input-id":"search-select-input",label:"name",placeholder:e.mySearchPlaceholder,options:e.options,"append-to-body":!1,"close-on-select":!1,"clear-search-on-select":!1,"clear-search-on-blur":()=>!1,"reset-focus-on-options-change":!1,filterable:!1,autoscroll:!0,"reset-on-options-change":!1,loading:e.searching},on:{search:e.onSearchInput,input:e.onSelectResultSelected},scopedSlots:e._u([{key:"option",fn:function(o){return[o.isRawLink?t("div",{staticClass:"custom-option"},[t("LinkVariantIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),t("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t("Raw link {options}",{options:o.resourceUrl}))+" ")])],1):o.resourceUrl?t("NcSearchResult",{staticClass:"search-result",attrs:{entry:o,query:e.searchQuery}}):o.isCustomGroupTitle?t("span",{staticClass:"custom-option group-name"},[e.provider.icon_url?t("img",{staticClass:"provider-icon group-name-icon",attrs:{src:e.provider.icon_url}}):e._e(),t("span",{staticClass:"option-text"},[t("strong",[e._v(e._s(o.name))])])]):o.isMore?t("span",{staticClass:"custom-option"},[o.isLoading?t("span",{staticClass:"option-simple-icon icon-loading-small"}):t("DotsHorizontalIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),t("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t('Load more "{options}"',{options:o.name}))+" ")])],1):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.noOptionsText)+" ")]},proxy:!0}]),model:{value:e.selectedResult,callback:function(o){e.selectedResult=o},expression:"selectedResult"}}),e.showEmptyContent?t("NcEmptyContent",{staticClass:"smart-picker-search--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?t("img",{staticClass:"provider-icon",attrs:{alt:e.providerIconAlt,src:e.provider.icon_url}}):t("LinkVariantIcon")]},proxy:!0}],null,!1,2922132592)}):e._e()],1)},hM=[],gM=Fo(dM,cM,hM,!1,null,"e61f71e3");const pM=gM.exports,pl={providerList:1,standardLinkInput:2,searchInput:3,customElement:4},fM={name:"NcReferencePicker",components:{NcCustomPickerElement:LN,NcProviderList:eM,NcRawLinkInput:aM,NcSearch:pM},props:{initialProvider:{type:Object,default:()=>null},width:{type:Number,default:null},focusOnCreate:{type:Boolean,default:!0}},emits:["cancel","cancel-raw-link","cancel-search","provider-selected","submit"],data(){return{MODES:pl,selectedProvider:this.initialProvider}},computed:{mode(){return this.selectedProvider===null?pl.providerList:rF(this.selectedProvider.id)?pl.customElement:this.selectedProvider.search_providers_ids?pl.searchInput:pl.standardLinkInput},pickerWrapperStyle(){return{width:this.width?this.width+"px":void 0}}},mounted(){this.focusOnCreate&&(this.initialProvider?setTimeout(()=>{var e;(e=this.$refs["url-input"])==null||e.focus()},300):this.$nextTick(()=>{var e;(e=this.$refs["provider-list"])==null||e.focus()}))},methods:{onEscapePressed(){this.selectedProvider!==null?this.deselectProvider():this.cancelProviderSelection()},onProviderSelected(e){this.selectedProvider=e,this.$emit("provider-selected",e),this.$nextTick(()=>{var t;(t=this.$refs["url-input"])==null||t.focus()})},cancelCustomElement(){this.deselectProvider()},cancelSearch(){var e;this.$emit("cancel-search",(e=this.selectedProvider)==null?void 0:e.title),this.deselectProvider()},cancelRawLinkInput(){var e;this.$emit("cancel-raw-link",(e=this.selectedProvider)==null?void 0:e.title),this.deselectProvider()},cancelProviderSelection(){this.$emit("cancel")},submitLink(e){this.selectedProvider!==null&&VN(this.selectedProvider.id),this.$emit("submit",e),this.deselectProvider()},deselectProvider(){this.selectedProvider=null,this.$emit("provider-selected",null),setTimeout(()=>{var e;(e=this.$refs["provider-list"])==null||e.focus()},300)}}};var mM=function(){var e=this,t=e._self._c;return t("div",{staticClass:"reference-picker",style:e.pickerWrapperStyle,attrs:{tabindex:"-1"},on:{keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"esc",27,o.key,["Esc","Escape"])?null:(o.stopPropagation(),o.preventDefault(),e.onEscapePressed.apply(null,arguments))}}},[e.mode===e.MODES.providerList?t("NcProviderList",{ref:"provider-list",on:{"select-provider":e.onProviderSelected,submit:e.submitLink,cancel:e.cancelProviderSelection}}):e.mode===e.MODES.standardLinkInput?t("NcRawLinkInput",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelRawLinkInput}}):e.mode===e.MODES.searchInput?t("NcSearch",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{cancel:e.cancelSearch,submit:e.submitLink}}):e.mode===e.MODES.customElement?t("div",{staticClass:"custom-element-wrapper"},[t("NcCustomPickerElement",{staticClass:"custom-element",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelCustomElement}})],1):e._e()],1)},_M=[],bM=Fo(fM,mM,_M,!1,null,"646d5538");const yM=bM.exports;Pt(aB,nB);const DM={name:"NcReferencePickerModal",components:{NcReferencePicker:yM,NcModal:$c,NcButton:Ji,ArrowLeftIcon:lO,CloseIcon:Wy},props:{initialProvider:{type:Object,default:()=>null},focusOnCreate:{type:Boolean,default:!0},isInsideViewer:{type:Boolean,default:!1}},emits:["cancel","submit"],data(){return{show:!0,selectedProvider:this.initialProvider,backButtonTitle:Ue("Back to provider selection"),closeButtonTitle:Ue("Close"),closeButtonLabel:Ue("Close Smart Picker")}},computed:{isProviderSelected(){return this.selectedProvider!==null},showBackButton(){return this.initialProvider===null&&this.isProviderSelected},modalSize(){var e;return this.isProviderSelected&&rF(this.selectedProvider.id)?(e=EO(this.selectedProvider.id))!=null?e:"large":"normal"},showModalName(){return!this.isProviderSelected||!rF(this.selectedProvider.id)},modalName(){return this.isProviderSelected?this.selectedProvider.title:Ue("Smart Picker")}},mounted(){if(this.isInsideViewer){const e=this.$refs.modal_content;f7("viewer:trapElements:changed",e)}},methods:{onCancel(){this.show=!1,this.$emit("cancel")},onSubmit(e){this.show=!1,this.$emit("submit",e)},onProviderSelect(e){this.selectedProvider=e,e===null&&this.initialProvider!==null&&this.onCancel()},onBackClicked(){this.$refs.referencePicker.deselectProvider()}}};var EM=function(){var e=this,t=e._self._c;return e.show?t("NcModal",{staticClass:"reference-picker-modal",attrs:{size:e.modalSize,"can-close":!0},on:{close:e.onCancel}},[t("div",{ref:"modal_content",staticClass:"reference-picker-modal--content"},[e.showBackButton?t("NcButton",{staticClass:"back-button",attrs:{"aria-label":e.backButtonTitle,title:e.backButtonTitle},on:{click:e.onBackClicked},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowLeftIcon")]},proxy:!0}],null,!1,3001860362)}):e._e(),t("NcButton",{staticClass:"close-button",attrs:{"aria-label":e.closeButtonLabel,title:e.closeButtonTitle,variant:"tertiary"},on:{click:e.onCancel},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CloseIcon")]},proxy:!0}],null,!1,2491825086)}),e.showModalName?t("h2",[e._v(" "+e._s(e.modalName)+" ")]):e._e(),t("NcReferencePicker",{ref:"referencePicker",attrs:{"initial-provider":e.initialProvider,"focus-on-create":e.focusOnCreate},on:{"provider-selected":e.onProviderSelect,submit:e.onSubmit,cancel:e.onCancel}})],1)]):e._e()},kM=[],xM=Fo(DM,EM,kM,!1,null,"00990f2a");const wM=xM.exports;async function vM(e,t){const o="referencePickerModal",r=document.createElement("div");r.id=o,document.body.append(r);const{promise:n,reject:a,resolve:s}=Promise.withResolvers(),i=null,u=an.extend(wM),l=new u({propsData:{initialProvider:i,isInsideViewer:t}}).$mount(r);return l.$on("cancel",()=>{l.$destroy(),a(new Error("User cancellation"))}),l.$on("submit",d=>{l.$destroy(),s(d)}),n}const TM={name:"NcReferenceList",components:{NcReferenceWidget:o6},props:{text:{type:String,default:""},referenceData:{type:Array,default:null},limit:{type:Number,default:1},displayFallback:{type:Boolean,default:!1},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},data(){return{references:null,loading:!0}},computed:{isVisible(){return this.loading||this.displayedReferences.length!==0},values(){return this.referenceData?this.referenceData:this.displayFallback&&!this.loading&&!this.references?[this.fallbackReference]:this.references?Object.values(this.references):[]},firstReference(){var e;return(e=this.values[0])!=null?e:null},displayedReferences(){return this.values.filter(Boolean).slice(0,this.limit)},fallbackReference(){return{accessible:!0,openGraphObject:{id:this.text,link:this.text,name:this.text},richObjectType:"open-graph"}}},watch:{text:"fetch"},mounted(){this.fetch()},methods:{fetch(){if(this.loading=!0,this.referenceData){this.references=null,this.loading=!1;return}if(!new RegExp(I3).exec(this.text)){this.references=null,this.loading=!1;return}this.resolve().then(e=>{this.references=e.data.ocs.data.references,this.loading=!1,this.$emit("loaded")}).catch(e=>{sn.error("Failed to extract references",{error:e}),this.loading=!1,this.$emit("loaded")})},resolve(){const e=new RegExp(I3).exec(this.text.trim()),t=Xn()===null;return this.limit===1&&e?t?_n.get(Vn("references/resolvePublic")+"?reference=".concat(encodeURIComponent(e[0]),"&sharingToken=").concat(Y2())):_n.get(Vn("references/resolve")+"?reference=".concat(encodeURIComponent(e[0]))):t?_n.post(Vn("references/extractPublic"),{text:this.text,resolve:!0,limit:this.limit,sharingToken:Y2()}):_n.post(Vn("references/extract"),{text:this.text,resolve:!0,limit:this.limit})}}};var CM=function(){var e=this,t=e._self._c;return e.isVisible?t("div",{staticClass:"widgets--list",class:{"icon-loading":e.loading}},e._l(e.displayedReferences,function(o){var r;return t("NcReferenceWidget",{key:(r=o.openGraphObject)==null?void 0:r.id,attrs:{reference:o,interactive:e.interactive,"interactive-opt-in":e.interactiveOptIn}})}),1):e._e()},AM=[],BM=Fo(TM,CM,AM,!1,null,"a50e616b");const SM=BM.exports,nF=eh(/[A-Za-z]/),Xf=eh(/[\dA-Za-z]/);function jM(e){return e!==null&&(e<32||e===127)}function p1(e){return e!==null&&(e<0||e===32)}const n6=eh(new RegExp("\\p{P}|\\p{S}","u")),aF=eh(/\s/);function eh(e){return t;function t(o){return o!==null&&o>-1&&e.test(String.fromCharCode(o))}}const a6=function(e){if(e==null)return MM;if(typeof e=="function")return th(e);if(typeof e=="object")return Array.isArray(e)?OM(e):RM(e);if(typeof e=="string")return NM(e);throw new Error("Expected function, string, or object as test")};function OM(e){const t=[];let o=-1;for(;++o0&&!o&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),o}nn(null);var R0={},l4;function WM(){if(l4)return R0;l4=1;var e=YB();return R0.createRoot=e.createRoot,R0.hydrateRoot=e.hydrateRoot,R0}var c6=WM(),F4={exports:{}},Ng,d4;function VM(){if(d4)return Ng;d4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ng=e,Ng}var Mg,c4;function KM(){if(c4)return Mg;c4=1;var e=VM();function t(){}function o(){}return o.resetWarningCache=t,Mg=function(){function r(s,i,u,l,d,c){if(c!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function n(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:t};return a.PropTypes=a,a},Mg}var h4;function QM(){return h4||(h4=1,F4.exports=KM()()),F4.exports}var g4,p4;function XM(){return p4||(p4=1,g4=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(r,n,a){o.o(r,n)||Object.defineProperty(r,n,{enumerable:!0,get:a})},o.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},o.t=function(r,n){if(1&n&&(r=o(r)),8&n||4&n&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&n&&typeof r!="string")for(var s in r)o.d(a,s,function(i){return r[i]}.bind(null,s));return a},o.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(n,"a",n),n},o.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},o.p="",o(o.s=2)}([function(e,t){e.exports=QM()},function(e,t){e.exports=PB()},function(e,t,o){o.r(t);var r=o(1),n=o(0),a=function(){return(a=Object.assign||function(m){for(var _,D=1,E=arguments.length;D0&&(Ce.transform=we.join(" "),Ce.transformOrigin="center",ue&&(ze=r.createElement("g",{style:Ce},Pe,r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var ct,Le=ze,st=me===!0||typeof me!="number"?2:me,Lt=!ue&&(K||$);if(st<0&&(Lt=!Lt),me&&(Le=r.createElement("g",{style:{animation:"spin"+(Lt?"-inverse":"")+" linear "+Math.abs(st)+"s infinite",transformOrigin:"center"}},ze,!(K||$||ie!==0)&&r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),ue)return Le;var tt,Zt="icon_labelledby_"+k,zt="icon_describedby_"+k;if(N)ct=L?Zt+" "+zt:Zt;else if(tt="presentation",L)throw new Error("title attribute required when description is set");return r.createElement("svg",d({ref:_,viewBox:"0 0 24 24",style:Ce,role:tt,"aria-labelledby":ct},fe),N&&r.createElement("title",{id:Zt},N),L&&r.createElement("desc",{id:zt},L),!ue&&me&&(Lt?r.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):r.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),Le)});p.displayName="Icon",p.propTypes={path:n.string.isRequired,size:n.oneOfType([n.number,n.string]),color:n.string,horizontal:n.bool,vertical:n.bool,rotate:n.number,spin:n.oneOfType([n.bool,n.number]),style:n.object,inStack:n.bool,className:n.string},p.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=p}])),g4}var Ot=XM();function h6(){const e=pr.getState().excalidrawAPI;e&&e.setActiveTool({type:"selection"})}function BF(e){if(document.querySelector(`.${e.class}`))return null;const t=document.querySelector(".App-toolbar__extra-tools-trigger");if(!t?.parentNode)return null;const o=document.createElement("label");if(o.classList.add("ToolIcon","Shape",e.class),t.parentNode.insertBefore(o,t),e.customContainer)return e.customContainer(o),null;const r=()=>{h6(),e.onClick?.()},n=c6.createRoot(o);return n.render(I.createElement("button",{className:`dropdown-menu-button ${e.buttonClass||""}`,"aria-label":e.label,onClick:r,title:e.label},I.createElement(Ot.Icon,{path:e.icon,size:1}))),n}function JM(){const{excalidrawAPI:e}=pr(go(r=>({excalidrawAPI:r.excalidrawAPI}))),t=U.useCallback(r=>{const n=Zi({clientX:100,clientY:100},e.getAppState()),a=e.getSceneElementsIncludingDeleted().slice();a.push({link:r,id:(Math.random()+1).toString(36).substring(7),x:n.x,y:n.y,strokeColor:"#1e1e1e",backgroundColor:"transparent",fillStyle:"solid",strokeWidth:2,strokeStyle:"solid",roundness:null,roughness:1,opacity:100,width:400,height:200,angle:0,seed:0,version:0,versionNonce:0,isDeleted:!1,groupIds:[],frameId:null,boundElements:null,updated:0,locked:!1,type:"embeddable",validated:!0}),e.updateScene({elements:a})},[e]),o=U.useCallback(()=>{vM(null,!0).then(r=>t(r)).catch(r=>{(typeof r=="string"?r:r?.message)?.includes("User cancellation")?console.debug("[SmartPicker] Picker cancelled by user"):console.error("[SmartPicker] Error during picking:",r)})},[t]);return{renderSmartPicker:U.useCallback(()=>{BF({class:"smart-picker-container",icon:Pf,label:he("whiteboard","Smart picker"),onClick:o})},[o])}}Pt();var eL=Object.defineProperty,tL=Object.defineProperties,oL=Object.getOwnPropertyDescriptors,f4=Object.getOwnPropertySymbols,rL=Object.prototype.hasOwnProperty,nL=Object.prototype.propertyIsEnumerable,m4=(e,t,o)=>t in e?eL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,aL=(e,t)=>{for(var o in t||(t={}))rL.call(t,o)&&m4(e,o,t[o]);if(f4)for(var o of f4(t))nL.call(t,o)&&m4(e,o,t[o]);return e},iL=(e,t)=>tL(e,oL(t));const sL=["date","datetime-local","month","time","week"],uL={name:"NcDateTimePickerNative",inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:Date,default:void 0},modelValue:{type:Date,default:null},id:{type:String,default:()=>"date-time-picker-"+Wi(),validator:e=>e.trim()!==""},type:{type:String,default:"date",validate:e=>sL.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Boolean,Date],default:null},max:{type:[Boolean,Date],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:x1("value","input")}},computed:{formattedValue(){return this.formatValue(this.model)},formattedMin(){return this.min?this.formatValue(this.min):!1},formattedMax(){return this.max?this.formatValue(this.max):!1},listeners(){return iL(aL({},this.$listeners),{input:e=>{if(isNaN(e.target.valueAsNumber))this.model=null;else if(this.type==="time"){const t=e.target.value;if(this.model===""){const{yyyy:o,MM:r,dd:n}=this.getReadableDate(new Date);this.model=new Date("".concat(o,"-").concat(r,"-").concat(n,"T").concat(t))}else{const{yyyy:o,MM:r,dd:n}=this.getReadableDate(this.model);this.model=new Date("".concat(o,"-").concat(r,"-").concat(n,"T").concat(t))}}else if(this.type==="month"){const t=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.model===""){const{yyyy:o,dd:r,hh:n,mm:a}=this.getReadableDate(new Date);this.model=new Date("".concat(o,"-").concat(t,"-").concat(r,"T").concat(n,":").concat(a))}else{const{yyyy:o,dd:r,hh:n,mm:a}=this.getReadableDate(this.model);this.model=new Date("".concat(o,"-").concat(t,"-").concat(r,"T").concat(n,":").concat(a))}}else{const t=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,o=e.target.valueAsNumber+t;this.model=new Date(o)}}})}},methods:{getReadableDate(e){if(e instanceof Date){const t=e.getFullYear().toString().padStart(4,"0"),o=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),n=e.getHours().toString().padStart(2,"0"),a=e.getMinutes().toString().padStart(2,"0");return{yyyy:t,MM:o,dd:r,hh:n,mm:a}}},formatValue(e){if(e instanceof Date){const{yyyy:t,MM:o,dd:r,hh:n,mm:a}=this.getReadableDate(e);if(this.type==="datetime-local")return"".concat(t,"-").concat(o,"-").concat(r,"T").concat(n,":").concat(a);if(this.type==="date")return"".concat(t,"-").concat(o,"-").concat(r);if(this.type==="month")return"".concat(t,"-").concat(o);if(this.type==="time")return"".concat(n,":").concat(a);if(this.type==="week"){const s=new Date(t,0,1),i=Math.floor((e-s)/(24*60*60*1e3)),u=Math.ceil(i/7);return"".concat(t,"-W").concat(u)}}else return""}}};var lL=function(){var e=this,t=e._self._c;return t("div",{staticClass:"native-datetime-picker"},[t("label",{staticClass:"native-datetime-picker--label",class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" ")]),t("input",e._g(e._b({staticClass:"native-datetime-picker--input",class:e.inputClass,attrs:{id:e.id,type:e.type,min:e.formattedMin,max:e.formattedMax},domProps:{value:e.formattedValue}},"input",e.$attrs,!1),e.listeners))])},FL=[],dL=Fo(uL,lL,FL,!1,null,"6c1feae8");const cL=dL.exports;Qy(cL);var N0={exports:{}},_4;function hL(){if(_4)return N0.exports;_4=1;function e(t,o=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(o<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}=typeof r=="boolean"?{immediate:r}:r;let a,s,i,u,l;function d(){const p=a,m=s;return a=void 0,s=void 0,l=t.apply(p,m),l}function c(){const p=Date.now()-u;p=0?i=setTimeout(c,o-p):(i=void 0,n||(l=d()))}const g=function(...p){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))throw new Error("Debounced method called with different contexts of the same prototype.");a=this,s=p,u=Date.now();const m=n&&!i;return i||(i=setTimeout(c,o)),m&&(l=d()),l};return Object.defineProperty(g,"isPending",{get(){return i!==void 0}}),g.clear=()=>{i&&(clearTimeout(i),i=void 0)},g.flush=()=>{i&&g.trigger()},g.trigger=()=>{l=d(),g.clear()},g}return N0.exports.debounce=e,N0.exports=e,N0.exports}var gL=hL();const g6=vF(gL);var pL=Object.defineProperty,fL=Object.defineProperties,mL=Object.getOwnPropertyDescriptors,b4=Object.getOwnPropertySymbols,_L=Object.prototype.hasOwnProperty,bL=Object.prototype.propertyIsEnumerable,y4=(e,t,o)=>t in e?pL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,yL=(e,t)=>{for(var o in t||(t={}))_L.call(t,o)&&y4(e,o,t[o]);if(b4)for(var o of b4(t))bL.call(t,o)&&y4(e,o,t[o]);return e},DL=(e,t)=>fL(e,mL(t));Pt(iB),h1("core","capabilities",{}).password_policy,new Set(Object.keys(z2.props)),DL(yL({" ":{}},z2.props),{showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:void 0,checkPasswordStrength:{type:Boolean,default:!1},minlength:{type:Number,default:0},maxlength:{type:Number,default:null},asText:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}}),g6(async function(e){try{const{data:t}=await _n.post(Vn("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=t.ocs.data.passed,t.ocs.data.passed){this.internalHelpMessage=Ue("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=t.ocs.data.reason,this.$emit("invalid")}catch(t){sn.error("Password policy returned an error",t)}},500),Pt(Xy),Cg(()=>to(()=>Promise.resolve().then(()=>rJ),void 0,import.meta.url)),Cg(()=>to(()=>Promise.resolve().then(()=>TP),void 0,import.meta.url)),Cg(()=>to(()=>Promise.resolve().then(()=>nJ),void 0,import.meta.url)),Ue("Submit");var D4,EL,E4,k4,kL;Pt(sB),Vf.getBuilder("nextcloud").persist().build(),(EL=(D4=AF().theming)==null?void 0:D4.name)!=null;const x4=h1("core","active-app",p7),Lg=h1("core","apps",{});(kL=Array.isArray(Lg)?(E4=Lg.find(e=>e.id===x4))==null?void 0:E4.name:(k4=Lg[x4])==null?void 0:k4.name)!=null;var w4,Ig,v4;(v4=(Ig=(w4=window.OCP)==null?void 0:w4.Accessibility)==null?void 0:Ig.disableKeyboardShortcuts)==null||v4.call(Ig);var T4,qg,C4;Pt(uB),(C4=(qg=(T4=window.OCP)==null?void 0:T4.Accessibility)==null?void 0:qg.disableKeyboardShortcuts)==null||C4.call(qg),Pt(lB),Pt(FB),Pt(cB,dB),Pt(Jy,hB);Ue("Search …"),Pt(gB),Ue("Settings"),Pt();let xL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",wL=(e=21)=>{let t="",o=e|0;for(;o--;)t+=xL[Math.random()*64|0];return t};function md(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?md=function(t){return typeof t}:md=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},md(e)}var p6={selector:"vue-portal-target-".concat(wL())},vL=function(e){return p6.selector=e},Yg=typeof window<"u"&&(typeof document>"u"?"undefined":md(document))!==void 0,TL=an.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var t=this.updatedNodes&&this.updatedNodes();return t?t.length===1&&!t[0].text?t:e(this.tag||"DIV",t):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),CL=an.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(p6.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var t=this.$scopedSlots&&this.$scopedSlots.default();return t?t.length<2&&!t[0].text?t:e(this.tag,t):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(Yg)return document.querySelector(this.selector)},insertTargetEl:function(){if(Yg){var e=document.querySelector("body"),t=document.createElement(this.tag);t.id=this.selector.substring(1),e.appendChild(t)}},mount:function(){if(Yg){var e=this.getTargetEl(),t=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t),this.container=new TL({el:t,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function AL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.component(t.name||"portal",CL),t.defaultSelector&&vL(t.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===an&&an.use(AL);const BL="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",SL="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Np="numeric",Mp="ascii",Lp="alpha",Il="asciinumeric",Al="alphanumeric",Ip="domain",f6="emoji",jL="scheme",OL="slashscheme",Pg="whitespace";function RL(e,t){return e in t||(t[e]=[]),t[e]}function Ps(e,t,o){t[Np]&&(t[Il]=!0,t[Al]=!0),t[Mp]&&(t[Il]=!0,t[Lp]=!0),t[Il]&&(t[Al]=!0),t[Lp]&&(t[Al]=!0),t[Al]&&(t[Ip]=!0),t[f6]&&(t[Ip]=!0);for(const r in t){const n=RL(r,o);n.indexOf(e)<0&&n.push(e)}}function NL(e,t){const o={};for(const r in t)t[r].indexOf(e)>=0&&(o[r]=!0);return o}function fn(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}fn.groups={},fn.prototype={accepts(){return!!this.t},go(e){const t=this,o=t.j[e];if(o)return o;for(let r=0;re.ta(t,o,r,n),Io=(e,t,o,r,n)=>e.tr(t,o,r,n),A4=(e,t,o,r,n)=>e.ts(t,o,r,n),Ge=(e,t,o,r,n)=>e.tt(t,o,r,n),Wa="WORD",qp="UWORD",m6="ASCIINUMERICAL",_6="ALPHANUMERICAL",iF="LOCALHOST",Yp="TLD",Pp="UTLD",_d="SCHEME",qu="SLASH_SCHEME",em="NUM",Zp="WS",tm="NL",ql="OPENBRACE",Yl="CLOSEBRACE",Zd="OPENBRACKET",Hd="CLOSEBRACKET",zd="OPENPAREN",Gd="CLOSEPAREN",$d="OPENANGLEBRACKET",Ud="CLOSEANGLEBRACKET",Wd="FULLWIDTHLEFTPAREN",Vd="FULLWIDTHRIGHTPAREN",Kd="LEFTCORNERBRACKET",Qd="RIGHTCORNERBRACKET",Xd="LEFTWHITECORNERBRACKET",Jd="RIGHTWHITECORNERBRACKET",ec="FULLWIDTHLESSTHAN",tc="FULLWIDTHGREATERTHAN",oc="AMPERSAND",rc="APOSTROPHE",nc="ASTERISK",Ni="AT",ac="BACKSLASH",ic="BACKTICK",sc="CARET",Mi="COLON",om="COMMA",uc="DOLLAR",ga="DOT",lc="EQUALS",rm="EXCLAMATION",jn="HYPHEN",Pl="PERCENT",Fc="PIPE",dc="PLUS",cc="POUND",Zl="QUERY",nm="QUOTE",b6="FULLWIDTHMIDDLEDOT",am="SEMI",pa="SLASH",Hl="TILDE",hc="UNDERSCORE",y6="EMOJI",gc="SYM";var D6=Object.freeze({__proto__:null,ALPHANUMERICAL:_6,AMPERSAND:oc,APOSTROPHE:rc,ASCIINUMERICAL:m6,ASTERISK:nc,AT:Ni,BACKSLASH:ac,BACKTICK:ic,CARET:sc,CLOSEANGLEBRACKET:Ud,CLOSEBRACE:Yl,CLOSEBRACKET:Hd,CLOSEPAREN:Gd,COLON:Mi,COMMA:om,DOLLAR:uc,DOT:ga,EMOJI:y6,EQUALS:lc,EXCLAMATION:rm,FULLWIDTHGREATERTHAN:tc,FULLWIDTHLEFTPAREN:Wd,FULLWIDTHLESSTHAN:ec,FULLWIDTHMIDDLEDOT:b6,FULLWIDTHRIGHTPAREN:Vd,HYPHEN:jn,LEFTCORNERBRACKET:Kd,LEFTWHITECORNERBRACKET:Xd,LOCALHOST:iF,NL:tm,NUM:em,OPENANGLEBRACKET:$d,OPENBRACE:ql,OPENBRACKET:Zd,OPENPAREN:zd,PERCENT:Pl,PIPE:Fc,PLUS:dc,POUND:cc,QUERY:Zl,QUOTE:nm,RIGHTCORNERBRACKET:Qd,RIGHTWHITECORNERBRACKET:Jd,SCHEME:_d,SEMI:am,SLASH:pa,SLASH_SCHEME:qu,SYM:gc,TILDE:Hl,TLD:Yp,UNDERSCORE:hc,UTLD:Pp,UWORD:qp,WORD:Wa,WS:Zp});const Pa=/[a-z]/,fl=new RegExp("\\p{L}","u"),Zg=new RegExp("\\p{Emoji}","u"),Za=/\d/,Hg=/\s/,B4="\r",zg=` `,ML="️",LL="‍",Gg="";let M0=null,L0=null;function IL(e=[]){const t={};fn.groups=t;const o=new fn;M0==null&&(M0=S4(BL)),L0==null&&(L0=S4(SL)),Ge(o,"'",rc),Ge(o,"{",ql),Ge(o,"}",Yl),Ge(o,"[",Zd),Ge(o,"]",Hd),Ge(o,"(",zd),Ge(o,")",Gd),Ge(o,"<",$d),Ge(o,">",Ud),Ge(o,"(",Wd),Ge(o,")",Vd),Ge(o,"「",Kd),Ge(o,"」",Qd),Ge(o,"『",Xd),Ge(o,"』",Jd),Ge(o,"<",ec),Ge(o,">",tc),Ge(o,"&",oc),Ge(o,"*",nc),Ge(o,"@",Ni),Ge(o,"`",ic),Ge(o,"^",sc),Ge(o,":",Mi),Ge(o,",",om),Ge(o,"$",uc),Ge(o,".",ga),Ge(o,"=",lc),Ge(o,"!",rm),Ge(o,"-",jn),Ge(o,"%",Pl),Ge(o,"|",Fc),Ge(o,"+",dc),Ge(o,"#",cc),Ge(o,"?",Zl),Ge(o,'"',nm),Ge(o,"/",pa),Ge(o,";",am),Ge(o,"~",Hl),Ge(o,"_",hc),Ge(o,"\\",ac),Ge(o,"・",b6);const r=Io(o,Za,em,{[Np]:!0});Io(r,Za,r);const n=Io(r,Pa,m6,{[Il]:!0}),a=Io(r,fl,_6,{[Al]:!0}),s=Io(o,Pa,Wa,{[Mp]:!0});Io(s,Za,n),Io(s,Pa,s),Io(n,Za,n),Io(n,Pa,n);const i=Io(o,fl,qp,{[Lp]:!0});Io(i,Pa),Io(i,Za,a),Io(i,fl,i),Io(a,Za,a),Io(a,Pa),Io(a,fl,a);const u=Ge(o,zg,tm,{[Pg]:!0}),l=Ge(o,B4,Zp,{[Pg]:!0}),d=Io(o,Hg,Zp,{[Pg]:!0});Ge(o,Gg,d),Ge(l,zg,u),Ge(l,Gg,d),Io(l,Hg,d),Ge(d,B4),Ge(d,zg),Io(d,Hg,d),Ge(d,Gg,d);const c=Io(o,Zg,y6,{[f6]:!0});Ge(c,"#"),Io(c,Zg,c),Ge(c,ML,c);const g=Ge(c,LL);Ge(g,"#"),Io(g,Zg,c);const p=[[Pa,s],[Za,n]],m=[[Pa,null],[fl,i],[Za,a]];for(let _=0;__[0]>D[0]?1:-1);for(let _=0;_=0?E[Ip]=!0:Pa.test(D)?Za.test(D)?E[Il]=!0:E[Mp]=!0:E[Np]=!0,A4(o,D,D,E)}return A4(o,"localhost",iF,{ascii:!0}),o.jd=new fn(gc),{start:o,tokens:Object.assign({groups:t},D6)}}function E6(e,t){const o=qL(t.replace(/[A-Z]/g,i=>i.toLowerCase())),r=o.length,n=[];let a=0,s=0;for(;s=0&&(c+=o[s].length,g++),l+=o[s].length,a+=o[s].length,s++;a-=c,s-=g,l-=c,n.push({t:d.t,v:t.slice(a-l,a),s:a-l,e:a})}return n}function qL(e){const t=[],o=e.length;let r=0;for(;r56319||r+1===o||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}function Ti(e,t,o,r,n){let a;const s=t.length;for(let i=0;i=0;)a++;if(a>0){t.push(o.join(""));for(let s=parseInt(e.substring(r,r+a),10);s>0;s--)o.pop();r+=a}else o.push(e[r]),r++}return t}const sF={defaultProtocol:"http",events:null,format:j4,formatHref:j4,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function im(e,t=null){let o=Object.assign({},sF);e&&(o=Object.assign(o,e instanceof im?e.o:e));const r=o.ignoreTags,n=[];for(let a=0;ao?r.substring(0,o)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=sF.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,o=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",o,this),n=e.get("tagName",o,t),a=this.toFormattedString(e),s={},i=e.get("className",o,t),u=e.get("target",o,t),l=e.get("rel",o,t),d=e.getObj("attributes",o,t),c=e.getObj("events",o,t);return s.href=r,i&&(s.class=i),u&&(s.target=u),l&&(s.rel=l),d&&Object.assign(s,d),{tagName:n,attributes:s,content:a,eventListeners:c}}};function oh(e,t){class o extends k6{constructor(n,a){super(n,a),this.t=e}}for(const r in t)o.prototype[r]=t[r];return o.t=e,o}const O4=oh("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),R4=oh("text"),YL=oh("nl"),I0=oh("url",{isLink:!0,toHref(e=sF.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==iF&&e[1].t===Mi}}),Bn=e=>new fn(e);function PL({groups:e}){const t=e.domain.concat([oc,nc,Ni,ac,ic,sc,uc,lc,jn,em,Pl,Fc,dc,cc,pa,gc,Hl,hc]),o=[rc,Mi,om,ga,rm,Pl,Zl,nm,am,$d,Ud,ql,Yl,Hd,Zd,zd,Gd,Wd,Vd,Kd,Qd,Xd,Jd,ec,tc],r=[oc,rc,nc,ac,ic,sc,uc,lc,jn,ql,Yl,Pl,Fc,dc,cc,Zl,pa,gc,Hl,hc],n=Bn(),a=Ge(n,Hl);$t(a,r,a),$t(a,e.domain,a);const s=Bn(),i=Bn(),u=Bn();$t(n,e.domain,s),$t(n,e.scheme,i),$t(n,e.slashscheme,u),$t(s,r,a),$t(s,e.domain,s);const l=Ge(s,Ni);Ge(a,Ni,l),Ge(i,Ni,l),Ge(u,Ni,l);const d=Ge(a,ga);$t(d,r,a),$t(d,e.domain,a);const c=Bn();$t(l,e.domain,c),$t(c,e.domain,c);const g=Ge(c,ga);$t(g,e.domain,c);const p=Bn(O4);$t(g,e.tld,p),$t(g,e.utld,p),Ge(l,iF,p);const m=Ge(c,jn);Ge(m,jn,m),$t(m,e.domain,c),$t(p,e.domain,c),Ge(p,ga,g),Ge(p,jn,m);const _=Ge(p,Mi);$t(_,e.numeric,O4);const D=Ge(s,jn),E=Ge(s,ga);Ge(D,jn,D),$t(D,e.domain,s),$t(E,r,a),$t(E,e.domain,s);const k=Bn(I0);$t(E,e.tld,k),$t(E,e.utld,k),$t(k,e.domain,s),$t(k,r,a),Ge(k,ga,E),Ge(k,jn,D),Ge(k,Ni,l);const A=Ge(k,Mi),N=Bn(I0);$t(A,e.numeric,N);const R=Bn(I0),L=Bn();$t(R,t,R),$t(R,o,L),$t(L,t,R),$t(L,o,L),Ge(k,pa,R),Ge(N,pa,R);const V=Ge(i,Mi),W=Ge(u,Mi),Z=Ge(W,pa),w=Ge(Z,pa);$t(i,e.domain,s),Ge(i,ga,E),Ge(i,jn,D),$t(u,e.domain,s),Ge(u,ga,E),Ge(u,jn,D),$t(V,e.domain,R),Ge(V,pa,R),Ge(V,Zl,R),$t(w,e.domain,R),$t(w,t,R),Ge(w,pa,R);const Y=[[ql,Yl],[Zd,Hd],[zd,Gd],[$d,Ud],[Wd,Vd],[Kd,Qd],[Xd,Jd],[ec,tc]];for(let K=0;K=0&&g++,n++,d++;if(g<0)n-=d,n0&&(a.push($g(R4,t,s)),s=[]),n-=g,d-=g;const p=c.t,m=o.slice(n-d,n);a.push($g(p,t,m))}}return s.length>0&&a.push($g(R4,t,s)),a}function $g(e,t,o){const r=o[0].s,n=o[o.length-1].e,a=t.slice(r,n);return new e(a,o)}const wr={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function HL(){wr.scanner=IL(wr.customSchemes);for(let e=0;e/g,">")}function zL(e){return e.replace(/"/g,""")}function GL(e){const t=[];for(const o in e){let r=e[o]+"";t.push(`${o}="${zL(r)}"`)}return t.join(" ")}function $L({tagName:e,attributes:t,content:o}){return`<${e} ${GL(t)}>${w6(o)}`}function UL(e,t={}){t=new im(t,$L);const o=x6(e),r=[];for(let n=0;n `):!a.isLink||!t.check(a)?r.push(w6(a.toString())):r.push(t.render(a))}return r.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return UL(this,e)}}),Pt(pB);var N4;window._nc_vue_element_id=(N4=window._nc_vue_element_id)!=null?N4:0;function v6(){return"nc-vue-".concat(window._nc_vue_element_id++)}var M4={exports:{}},L4;function WL(){return L4||(L4=1,function(e){var t=Object.prototype.hasOwnProperty,o="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(o=!1));function n(u,l,d){this.fn=u,this.context=l,this.once=d||!1}function a(u,l,d,c,g){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new n(d,c||u,g),m=o?o+l:l;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],p]:u._events[m].push(p):(u._events[m]=p,u._eventsCount++),u}function s(u,l){--u._eventsCount===0?u._events=new r:delete u._events[l]}function i(){this._events=new r,this._eventsCount=0}i.prototype.eventNames=function(){var u=[],l,d;if(this._eventsCount===0)return u;for(d in l=this._events)t.call(l,d)&&u.push(o?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},i.prototype.listeners=function(u){var l=o?o+u:u,d=this._events[l];if(!d)return[];if(d.fn)return[d.fn];for(var c=0,g=d.length,p=new Array(g);cglobalThis.DOMException===void 0?new QL(e):new DOMException(e),q4=e=>{const t=e.reason===void 0?I4("This operation was aborted."):e.reason;return t instanceof Error?t:I4(t)};function XL(e,t){const{milliseconds:o,fallback:r,message:n,customTimers:a={setTimeout,clearTimeout}}=t;let s,i;const u=new Promise((l,d)=>{if(typeof o!="number"||Math.sign(o)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${o}\``);if(t.signal){const{signal:g}=t;g.aborted&&d(q4(g)),i=()=>{d(q4(g))},g.addEventListener("abort",i,{once:!0})}if(o===Number.POSITIVE_INFINITY){e.then(l,d);return}const c=new T6;s=a.setTimeout.call(void 0,()=>{if(r){try{l(r())}catch(g){d(g)}return}typeof e.cancel=="function"&&e.cancel(),n===!1?l():n instanceof Error?d(n):(c.message=n??`Promise timed out after ${o} milliseconds`,d(c))},o),(async()=>{try{l(await e)}catch(g){d(g)}})()}).finally(()=>{u.clear(),i&&t.signal&&t.signal.removeEventListener("abort",i)});return u.clear=()=>{a.clearTimeout.call(void 0,s),s=void 0},u}function JL(e,t,o){let r=0,n=e.length;for(;n>0;){const a=Math.trunc(n/2);let s=r+a;o(e[s],t)<=0?(r=++s,n-=a+1):n=a}return r}var On;class eI{constructor(){Ho(this,On,[])}enqueue(t,o){o={priority:0,...o};const r={priority:o.priority,id:o.id,run:t};if(this.size===0||yt(this,On)[this.size-1].priority>=o.priority){yt(this,On).push(r);return}const n=JL(yt(this,On),r,(a,s)=>s.priority-a.priority);yt(this,On).splice(n,0,r)}setPriority(t,o){const r=yt(this,On).findIndex(a=>a.id===t);if(r===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[n]=yt(this,On).splice(r,1);this.enqueue(n.run,{priority:o,id:t})}dequeue(){return yt(this,On).shift()?.run}filter(t){return yt(this,On).filter(o=>o.priority===t.priority).map(o=>o.run)}get size(){return yt(this,On).length}}On=new WeakMap;var Vu,Ku,Yi,yF,Qu,DF,Rn,Xu,qr,EF,Nn,Ju,Xa,kF,zc,uo,C6,A6,B6,S6,j6,bd,Hp,zp,yd,O6,Dd;class tI extends KL{constructor(o){super();Ho(this,uo);Ho(this,Vu);Ho(this,Ku);Ho(this,Yi,0);Ho(this,yF);Ho(this,Qu);Ho(this,DF,0);Ho(this,Rn);Ho(this,Xu);Ho(this,qr);Ho(this,EF);Ho(this,Nn,0);Ho(this,Ju);Ho(this,Xa);Ho(this,kF);Ho(this,zc,1n);Te(this,"timeout");if(o={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:eI,...o},!(typeof o.intervalCap=="number"&&o.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${o.intervalCap?.toString()??""}\` (${typeof o.intervalCap})`);if(o.interval===void 0||!(Number.isFinite(o.interval)&&o.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${o.interval?.toString()??""}\` (${typeof o.interval})`);To(this,Vu,o.carryoverConcurrencyCount),To(this,Ku,o.intervalCap===Number.POSITIVE_INFINITY||o.interval===0),To(this,yF,o.intervalCap),To(this,Qu,o.interval),To(this,qr,new o.queueClass),To(this,EF,o.queueClass),this.concurrency=o.concurrency,this.timeout=o.timeout,To(this,kF,o.throwOnTimeout===!0),To(this,Xa,o.autoStart===!1)}get concurrency(){return yt(this,Ju)}set concurrency(o){if(!(typeof o=="number"&&o>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${o}\` (${typeof o})`);To(this,Ju,o),Fr(this,uo,yd).call(this)}setPriority(o,r){yt(this,qr).setPriority(o,r)}async add(o,r={}){return r.id??(r.id=(cl(this,zc)._++).toString()),r={timeout:this.timeout,throwOnTimeout:yt(this,kF),...r},new Promise((n,a)=>{yt(this,qr).enqueue(async()=>{cl(this,Nn)._++;try{r.signal?.throwIfAborted(),cl(this,Yi)._++;let s=o({signal:r.signal});r.timeout&&(s=XL(Promise.resolve(s),{milliseconds:r.timeout})),r.signal&&(s=Promise.race([s,Fr(this,uo,O6).call(this,r.signal)]));const i=await s;n(i),this.emit("completed",i)}catch(s){if(s instanceof T6&&!r.throwOnTimeout){n();return}a(s),this.emit("error",s)}finally{Fr(this,uo,B6).call(this)}},r),this.emit("add"),Fr(this,uo,bd).call(this)})}async addAll(o,r){return Promise.all(o.map(async n=>this.add(n,r)))}start(){return yt(this,Xa)?(To(this,Xa,!1),Fr(this,uo,yd).call(this),this):this}pause(){To(this,Xa,!0)}clear(){To(this,qr,new(yt(this,EF)))}async onEmpty(){yt(this,qr).size!==0&&await Fr(this,uo,Dd).call(this,"empty")}async onSizeLessThan(o){yt(this,qr).sizeyt(this,qr).size{Fr(this,uo,S6).call(this)},r)),!0}return!1},bd=function(){if(yt(this,qr).size===0)return yt(this,Rn)&&clearInterval(yt(this,Rn)),To(this,Rn,void 0),this.emit("empty"),yt(this,Nn)===0&&this.emit("idle"),!1;if(!yt(this,Xa)){const o=!yt(this,uo,j6);if(yt(this,uo,C6)&&yt(this,uo,A6)){const r=yt(this,qr).dequeue();return r?(this.emit("active"),r(),o&&Fr(this,uo,Hp).call(this),!0):!1}}return!1},Hp=function(){yt(this,Ku)||yt(this,Rn)!==void 0||(To(this,Rn,setInterval(()=>{Fr(this,uo,zp).call(this)},yt(this,Qu))),To(this,DF,Date.now()+yt(this,Qu)))},zp=function(){yt(this,Yi)===0&&yt(this,Nn)===0&&yt(this,Rn)&&(clearInterval(yt(this,Rn)),To(this,Rn,void 0)),To(this,Yi,yt(this,Vu)?yt(this,Nn):0),Fr(this,uo,yd).call(this)},yd=function(){for(;Fr(this,uo,bd).call(this););},O6=async function(o){return new Promise((r,n)=>{o.addEventListener("abort",()=>{n(o.reason)},{once:!0})})},Dd=async function(o,r){return new Promise(n=>{const a=()=>{r&&!r()||(this.off(o,a),n())};this.on(o,a)})};new tI({concurrency:5}),Pt(fB),Pt(mB);var Gp={exports:{}},oI=Gp.exports,Y4;function rI(){return Y4||(Y4=1,function(e,t){(function(o,r){e.exports=r()})(typeof self<"u"?self:oI,function(){return function(o){function r(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return o[a].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var n={};return r.m=o,r.c=n,r.d=function(a,s,i){r.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:i})},r.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(s,"a",s),s},r.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},r.p="",r(r.s=59)}([function(o,r){function n(s,i){var u=s[1]||"",l=s[3];if(!l)return u;if(i&&typeof btoa=="function"){var d=a(l);return[u].concat(l.sources.map(function(c){return"/*# sourceURL="+l.sourceRoot+c+" */"})).concat([d]).join(` `)}return[u].join(` `)}function a(s){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"}o.exports=function(s){var i=[];return i.toString=function(){return this.map(function(u){var l=n(u,s);return u[2]?"@media "+u[2]+"{"+l+"}":l}).join("")},i.i=function(u,l){typeof u=="string"&&(u=[[null,u,""]]);for(var d={},c=0;cW.parts.length&&(Z.parts.length=W.parts.length)}else{for(var Y=[],w=0;w"u"||(E=__VUE_SSR_CONTEXT__),i&&i.call(this,E),E&&E._registeredComponents&&E._registeredComponents.add(l)},p._ssrRegister=m):i&&(m=i),m){var _=p.functional,D=_?p.render:p.beforeCreate;_?(p._injectStyles=m,p.render=function(E,k){return m.call(k),D(E,k)}):p.beforeCreate=D?[].concat(D,m):[m]}return{esModule:d,exports:c,options:p}}},function(o,r,n){function a(u,l){var d,c=u&&u.a;!(d=u&&u.hsl?(0,i.default)(u.hsl):u&&u.hex&&u.hex.length>0?(0,i.default)(u.hex):u&&u.hsv?(0,i.default)(u.hsv):u&&u.rgba?(0,i.default)(u.rgba):u&&u.rgb?(0,i.default)(u.rgb):(0,i.default)(u))||d._a!==void 0&&d._a!==null||d.setAlpha(c||1);var g=d.toHsl(),p=d.toHsv();return g.s===0&&(p.h=g.h=u.h||u.hsl&&u.hsl.h||l||0),{hsl:g,hex:d.toHexString().toUpperCase(),hex8:d.toHex8String().toUpperCase(),rgba:d.toRgb(),hsv:p,oldHue:u.h||l||g.h,source:u.source,a:u.a||d.getAlpha()}}Object.defineProperty(r,"__esModule",{value:!0});var s=n(64),i=function(u){return u&&u.__esModule?u:{default:u}}(s);r.default={props:["value"],data:function(){return{val:a(this.value)}},computed:{colors:{get:function(){return this.val},set:function(u){this.val=u,this.$emit("input",u)}}},watch:{value:function(u){this.val=a(u)}},methods:{colorChange:function(u,l){this.oldHue=this.colors.hsl.h,this.colors=a(u,l||this.oldHue)},isValidHex:function(u){return(0,i.default)(u).isValid()},simpleCheckForValidColor:function(u){for(var l=["r","g","b","a","h","s","l","v"],d=0,c=0,g=0;g0?a:n)(s)}},function(o,r){o.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},function(o,r){o.exports=!0},function(o,r){var n=o.exports={version:"2.5.1"};typeof __e=="number"&&(__e=n)},function(o,r,n){var a=n(14);o.exports=function(s,i){if(!a(s))return s;var u,l;if(i&&typeof(u=s.toString)=="function"&&!a(l=u.call(s))||typeof(u=s.valueOf)=="function"&&!a(l=u.call(s))||!i&&typeof(u=s.toString)=="function"&&!a(l=u.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},function(o,r){o.exports={}},function(o,r,n){var a=n(46),s=n(30);o.exports=Object.keys||function(i){return a(i,s)}},function(o,r,n){var a=n(29)("keys"),s=n(17);o.exports=function(i){return a[i]||(a[i]=s(i))}},function(o,r,n){var a=n(4),s=a["__core-js_shared__"]||(a["__core-js_shared__"]={});o.exports=function(i){return s[i]||(s[i]={})}},function(o,r){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(o,r,n){var a=n(8).f,s=n(6),i=n(11)("toStringTag");o.exports=function(u,l,d){u&&!s(u=d?u:u.prototype,i)&&a(u,i,{configurable:!0,value:l})}},function(o,r,n){r.f=n(11)},function(o,r,n){var a=n(4),s=n(24),i=n(23),u=n(32),l=n(8).f;o.exports=function(d){var c=s.Symbol||(s.Symbol=i?{}:a.Symbol||{});d.charAt(0)=="_"||d in c||l(c,d,{value:u.f(d)})}},function(o,r){r.f={}.propertyIsEnumerable},function(o,r,n){function a(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(r,"__esModule",{value:!0});var s=n(3),i=a(s),u=n(5),l=a(u),d=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];r.default={name:"Compact",mixins:[i.default],props:{palette:{type:Array,default:function(){return d}}},components:{"ed-in":l.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(c){this.colorChange({hex:c,source:"hex"})}}}},function(o,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(a){if(!(this.max!==void 0&&+a>this.max))return a;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(a){this.handleChange(a.target.value)},handleChange:function(a){var s={};s[this.label]=a,s.hex===void 0&&s["#"]===void 0?this.$emit("change",s):a.length>5&&this.$emit("change",s)},handleKeyDown:function(a){var s=this.val,i=Number(s);if(i){var u=this.arrowOffset||1;a.keyCode===38&&(s=i+u,this.handleChange(s),a.preventDefault()),a.keyCode===40&&(s=i-u,this.handleChange(s),a.preventDefault())}}}}},function(o,r,n){Object.defineProperty(r,"__esModule",{value:!0});var a=n(3),s=function(u){return u&&u.__esModule?u:{default:u}}(a),i=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];r.default={name:"Grayscale",mixins:[s.default],props:{palette:{type:Array,default:function(){return i}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(u){this.colorChange({hex:u,source:"hex"})}}}},function(o,r,n){function a(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(r,"__esModule",{value:!0});var s=n(5),i=a(s),u=n(3),l=a(u);r.default={name:"Material",mixins:[l.default],components:{"ed-in":i.default},methods:{onChange:function(d){d&&(d.hex?this.isValidHex(d.hex)&&this.colorChange({hex:d.hex,source:"hex"}):(d.r||d.g||d.b)&&this.colorChange({r:d.r||this.colors.rgba.r,g:d.g||this.colors.rgba.g,b:d.b||this.colors.rgba.b,a:d.a||this.colors.rgba.a,source:"rgba"}))}}}},function(o,r,n){function a(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(r,"__esModule",{value:!0});var s=n(80),i=a(s),u=n(3),l=a(u),d=n(12),c=a(d);r.default={name:"Slider",mixins:[l.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:c.default},computed:{normalizedSwatches:function(){return this.swatches.map(function(g){return(g===void 0?"undefined":(0,i.default)(g))!=="object"?{s:.5,l:g}:g})}},methods:{isActive:function(g,p){var m=this.colors.hsl;return m.l===1&&g.l===1||m.l===0&&g.l===0||Math.abs(m.l-g.l)<.01&&Math.abs(m.s-g.s)<.01},hueChange:function(g){this.colorChange(g)},handleSwClick:function(g,p){this.colorChange({h:this.colors.hsl.h,s:p.s,l:p.l,source:"hsl"})}}}},function(o,r,n){var a=n(23),s=n(41),i=n(44),u=n(7),l=n(6),d=n(26),c=n(87),g=n(31),p=n(94),m=n(11)("iterator"),_=!([].keys&&"next"in[].keys()),D=function(){return this};o.exports=function(E,k,A,N,R,L,V){c(A,k,N);var W,Z,w,Y=function(Ce){if(!_&&Ce in X)return X[Ce];switch(Ce){case"keys":case"values":return function(){return new A(this,Ce)}}return function(){return new A(this,Ce)}},K=k+" Iterator",H=R=="values",$=!1,X=E.prototype,ie=X[m]||X["@@iterator"]||R&&X[R],ce=ie||Y(R),me=R?H?Y("entries"):ce:void 0,Ee=k=="Array"&&X.entries||ie;if(Ee&&(w=p(Ee.call(new E)))!==Object.prototype&&w.next&&(g(w,K,!0),a||l(w,m)||u(w,m,D)),H&&ie&&ie.name!=="values"&&($=!0,ce=function(){return ie.call(this)}),a&&!V||!_&&!$&&X[m]||u(X,m,ce),d[k]=ce,d[K]=D,R)if(W={values:H?ce:Y("values"),keys:L?ce:Y("keys"),entries:me},V)for(Z in W)Z in X||i(X,Z,W[Z]);else s(s.P+s.F*(_||$),k,W);return W}},function(o,r,n){var a=n(4),s=n(24),i=n(85),u=n(7),l=function(d,c,g){var p,m,_,D=d&l.F,E=d&l.G,k=d&l.S,A=d&l.P,N=d&l.B,R=d&l.W,L=E?s:s[c]||(s[c]={}),V=L.prototype,W=E?a:k?a[c]:(a[c]||{}).prototype;E&&(g=c);for(p in g)(m=!D&&W&&W[p]!==void 0)&&p in L||(_=m?W[p]:g[p],L[p]=E&&typeof W[p]!="function"?g[p]:N&&m?i(_,a):R&&W[p]==_?function(Z){var w=function(Y,K,H){if(this instanceof Z){switch(arguments.length){case 0:return new Z;case 1:return new Z(Y);case 2:return new Z(Y,K)}return new Z(Y,K,H)}return Z.apply(this,arguments)};return w.prototype=Z.prototype,w}(_):A&&typeof _=="function"?i(Function.call,_):_,A&&((L.virtual||(L.virtual={}))[p]=_,d&l.R&&V&&!V[p]&&u(V,p,_)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,o.exports=l},function(o,r,n){o.exports=!n(9)&&!n(15)(function(){return Object.defineProperty(n(43)("div"),"a",{get:function(){return 7}}).a!=7})},function(o,r,n){var a=n(14),s=n(4).document,i=a(s)&&a(s.createElement);o.exports=function(u){return i?s.createElement(u):{}}},function(o,r,n){o.exports=n(7)},function(o,r,n){var a=n(13),s=n(88),i=n(30),u=n(28)("IE_PROTO"),l=function(){},d=function(){var c,g=n(43)("iframe"),p=i.length;for(g.style.display="none",n(93).appendChild(g),g.src="javascript:",c=g.contentWindow.document,c.open(),c.write("