diff --git a/README.md b/README.md index 9f83c6a..cc134cd 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,29 @@ Statt Base64 wird das Bild als Datei in Nextcloud gespeichert. Im Board-JSON ste ``` whiteboard-url-refs/ -├── README.md ← diese Datei +├── README.md ├── docs/ -│ ├── 01-reference.md ← Recap aller bestehenden Patches -│ └── 02-implementierungsplan.md ← 4-Phasen-Plan + 23 Test-Gates -├── patches/ -│ └── (kommende JS-Patches für Phase 2–4) +│ ├── 01-reference.md ← Recap aller bestehenden Patches +│ └── 02-implementierungsplan.md ← 4-Phasen-Plan + 23 Test-Gates +├── src/ +│ ├── README.md ← Source-Herkunft dokumentiert +│ ├── whiteboard-source/ ← TypeScript-Source (aus upstream) +│ │ ├── hooks/useFiles.ts ← 🔑 File-Handler (hier dataURL→URL) +│ │ ├── constants/excalidraw.ts ← Excalidraw Init-State +│ │ ├── main.ts ← Entry Point +│ │ └── vite.config.ts ← Build-Config +│ └── whiteboard-built/ ← Live JS-Bundles (gepatcht) +│ ├── NcSelect-*.chunk.mjs ← Whiteboard→Excalidraw Bridge +│ ├── percentages-*.chunk.mjs ← Excalidraw Core Constants +│ ├── image-blob-reduce-*.mjs ← Resize-Library +│ └── whiteboard-*-patch.js ← Unsere bestehenden Patches +├── upstream/ +│ └── excalidraw/ +│ └── constants.ts ← DEFAULT_IMAGE_OPTIONS (1440px/4MB) +├── patches/ ← (kommende JS-Patches) └── test-scripts/ - ├── generate-test-images.sh ← Testbilder (500–8000px) - ├── verify-phase1.sh ← CORS + WebDAV prüfen - └── (weitere Test-Skripte pro Phase) + ├── generate-test-images.sh ← Testbilder 500–8000px + └── verify-phase1.sh ← CORS + WebDAV prüfen ``` ## Phasen diff --git a/src/README.md b/src/README.md new file mode 100644 index 0000000..1def4eb --- /dev/null +++ b/src/README.md @@ -0,0 +1,30 @@ +# Source Code Reference + +## whiteboard-source/ +Source files from [nextcloud/whiteboard](https://github.com/nextcloud/whiteboard) (mirrored at Gitea `Hermes/whiteboard`). + +| File | Purpose | +|---|---| +| `hooks/useFiles.ts` | **Kern-Datei für Phase 2**: File-Upload, `BinaryFileData`, `dataURL` → hier muss `url` rein | +| `constants/excalidraw.ts` | Excalidraw Initial-State, `files: {}` | +| `main.ts` | Entry point | +| `vite.config.ts` | Build-Konfiguration | + +## whiteboard-built/ +Built/bundled JS files vom **Live-System** (Nextcloud Docker Volume). Das sind die Dateien, die wir aktuell patchen. + +| File | Current Patches | +|---|---| +| `NcSelect-CknHatsl.chunk.mjs` | `maxImageSizeBytes`, `maxWidthOrHeight:8192`, `imageOptions:{...}` | +| `percentages-BXMCSKIN-D6x-nnv3.chunk.mjs` | `IM=1/0`, `TM=100*1024*1024` | +| `image-blob-reduce.esm-D7YfjmiK.chunk.mjs` | Die image-blob-reduce Library (nutzt `IM` constant) | +| `whiteboard-settings.mjs` | Settings-UI: liest `maxFileSize` aus Nextcloud Config | +| `whiteboard-scroll-patch.js` | Unser Scroll-Zoom-Patch | +| `whiteboard-image-patch.js` | Unser Image-Quality-Patch | + +## upstream/excalidraw/ +Upstream Excalidraw-Quellcode (nicht gebundled). + +| File | Purpose | +|---|---| +| `constants.ts` | `DEFAULT_IMAGE_OPTIONS` (Source of Truth für 1440px/4MB Limits) | diff --git a/src/whiteboard-built/NcSelect-CknHatsl.chunk.mjs b/src/whiteboard-built/NcSelect-CknHatsl.chunk.mjs new file mode 100644 index 0000000..6a98ed5 --- /dev/null +++ b/src/whiteboard-built/NcSelect-CknHatsl.chunk.mjs @@ -0,0 +1,5173 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('whiteboard', '', 'js/useJwtStore-Cd1qRrRA.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/index-B1bsjjJt.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/vendor-DsWkVfAM.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/index-Bn0s6V7w.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/index-BazmyFQi.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/index-vg7q3Iku.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/whiteboard-main.mjs'),window.OC.filePath('whiteboard', '', 'css/main-Bp_q-jbT.chunk.css'),window.OC.filePath('whiteboard', '', 'js/percentages-BXMCSKIN-D6x-nnv3.chunk.mjs'),window.OC.filePath('whiteboard', '', 'css/percentages-BXMCSKIN-ujA1cZqy.chunk.css'),window.OC.filePath('whiteboard', '', 'js/dagre-6UL2VRFP-DCrVVxUK.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/graph-C8cgt0Tv.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/isEmpty-DxmJ9h_e.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/_baseUniq-BSbgWsiN.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/union-Ce-h8zKz.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/layout-BXX7FE_q.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/_basePickBy-CpcSJqlT.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/has-DsWMmVbW.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/zipObject-DPQqV8hp.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/clone-CL2VRaTe.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/translation-DoG5ZELJ-2LXT9-yc.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/NcPasswordField-D2iDTTpp-DULfdc3z.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/_plugin-vue2_normalizer-DvGFrmqB.chunk.mjs'),window.OC.filePath('whiteboard', '', 'css/_plugin-vue2_normalizer-yBIGBeN8.chunk.css'),window.OC.filePath('whiteboard', '', 'css/NcPasswordField-D2iDTTpp-Du3hRUDR.chunk.css'),window.OC.filePath('whiteboard', '', 'js/NcCheckboxRadioSwitch-ezquUuPz-Be_81ffq.chunk.mjs'),window.OC.filePath('whiteboard', '', 'css/NcCheckboxRadioSwitch-ezquUuPz-35V8jJy1.chunk.css'),window.OC.filePath('whiteboard', '', 'js/line-nuX2diqu.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-DiSH2VGK.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/cytoscape.esm-3961YR65.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/cytoscape-cose-bilkent-cW1HdnmO.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/c4Diagram-YG6GDRKO-DMiBkFnU.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-TZMSLE5B-dY5R4560.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/flowDiagram-NV44I4VS-B9qGIrtY.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-FMBD7UC4-DL9EI3X5.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-55IACEB6-fBhT4EaA.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-QN33PNHL-BbZZZV-8.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/channel-CqnnpsPa.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/erDiagram-Q2GNP2WA-CRiLYR4r.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/gitGraphDiagram-NY62KEGX-UMOsH2j4.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-4BX2VUAB-BBIbMRWG.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-QZHKN3VN-RgCAt6cc.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/treemap-KMMF4GRG-DIOlRGn1.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/ganttDiagram-LVOFAZNH-BtJVkTCv.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/advancedFormat-Dp8V0_Qr.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/linear-NOH7Z385.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-DW4s9ipn.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/pieDiagram-ADFJNKIX-RJaVzXpL.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/arc-CH8CF3kk.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/ordinal-Bt1svyuw.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/pie-CbaqBsNa.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/quadrantDiagram-AYHSOK5B-BtLZyrxV.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/xychartDiagram-PRI3JC2R-Bzn3451i.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/band-C8onkxB6.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/requirementDiagram-UZGBJVZJ-m9OnMQ23.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/sequenceDiagram-WL72ISMW-D_J_BKhH.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/classDiagram-2ON5EDUG-CihHdnTz.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-B4BG7PRW-DUVTB7pw.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/classDiagram-v2-WZHVMYZB-CihHdnTz.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/stateDiagram-FKZM4ZOC-D_zYTL59.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/chunk-DI55MBZ5-B1vAjZox.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/stateDiagram-v2-4FDKWEC3-CWeQPUlV.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/journeyDiagram-XKPGCS4Q-CVkvGd28.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/timeline-definition-IT6M3QCI-Dwk7IfZN.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/mindmap-definition-VGOIOE7T-Dia5y7eo.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/kanban-definition-3W4ZIXB7-DgFD0pos.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/sankeyDiagram-TZEHDZUN-D9ybDz9b.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-D5Wcgl_O.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/diagram-QEK2KX5R-CWO7mmXo.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/blockDiagram-VD42YOAC-DZXpHpmD.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/architectureDiagram-VXUJARFQ-d92ieFWM.chunk.mjs'),window.OC.filePath('whiteboard', '', 'js/diagram-PSM6KHXK-zyTTQ-o8.chunk.mjs')])))=>i.map(i=>d[i]); +/*! third party licenses: js/vendor.LICENSE.txt */ +var rS=Object.defineProperty;var m3=e=>{throw TypeError(e)};var nS=(e,t,o)=>t in e?rS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var je=(e,t,o)=>nS(e,typeof t!="symbol"?t+"":t,o),Hg=(e,t,o)=>t.has(e)||m3("Cannot "+o);var _t=(e,t,o)=>(Hg(e,t,"read from private field"),o?o.call(e):t.get(e)),Go=(e,t,o)=>t.has(e)?m3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),Bo=(e,t,o,r)=>(Hg(e,t,"write to private field"),r?r.call(e,o):t.set(e,o),o),gr=(e,t,o)=>(Hg(e,t,"access private method"),o);var Al=(e,t,o,r)=>({set _(n){Bo(e,t,n,o)},get _(){return _t(e,t,r)}});import{R as I,r as z,_ as no,l as kt,c as iS}from"./whiteboard-main.mjs";import{c as bn,g as la,u as fd,s as md,e as sS,a as _3}from"./index-B1bsjjJt.chunk.mjs";import{c as L1,t as de,g as Np,p as x1,a as uS}from"./translation-DoG5ZELJ-2LXT9-yc.chunk.mjs";import{l as w1,c as b3,d as lS,g as sn,b as Ba,i as xD}from"./index-BazmyFQi.chunk.mjs";import{x as FS,M as Hd,s as _n,a as dS,c as cS,o as hS,b as gS,e as pS,l as fS,D as $i,V as ou,$ as wD,g as qr,h as mS,E as _S,i as Si,t as bS,u as yS,J as DS,j as ES,k as Bi,S as kS}from"./percentages-BXMCSKIN-D6x-nnv3.chunk.mjs";import{c as ih,u as Pr,a as Wo,b as qt,p as xS,d as wS}from"./useJwtStore-Cd1qRrRA.chunk.mjs";import{l as vS,a as sh,d as TS}from"./NcPasswordField-D2iDTTpp-DULfdc3z.chunk.mjs";import{c as ui,g as uh,a as CS,r as AS}from"./vendor-DsWkVfAM.chunk.mjs";import{V as un,z as SS,d as ho,A as ZF,B as lh,C as BS,D as an,E as vD,f as In,G as v1,l as Dn,F as im,H as jS,i as OS,I as Fi,J as RS,K as NS,L as _F,M as y3,O as _d,P as Mp,Q as MS,R as LS,S as TD,T as IS,t as Qe,r as $t,U as qS,h as $u,W as YS,X as PS,j as HF,Y as ZS,Z as CD,b as sm,c as rs,_ as HS,$ as AD,a0 as zS,u as zF,a1 as GS,a2 as SD,a3 as BD,a4 as US,a5 as $S,a6 as WS,a7 as VS,x as bF,a8 as KS,a9 as jD,aa as QS,ab as OD,ac as XS,ad as JS,ae as eB,af as RD,ag as ND,ah as zg,ai as tB,aj as oB,ak as rB,al as nB,q as aB,am as iB,an as sB,ao as MD,ar as uB,as as lB,at as FB,au as dB,y as cB,av as um,aw as hB,ax as gB,ay as pB,az as fB,aA as mB,aB as _B,aC as bB,aD as yB,aE as DB,aF as EB,aG as kB,aH as LD,aI as xB,g as wB,aJ as vB,aK as TB,aL as CB,aM as AB,aN as SB,aO as BB,aP as jB,aQ as OB,aR as Z0,n as Fh,a as RB,s as ja,aS as Lp}from"./_plugin-vue2_normalizer-DvGFrmqB.chunk.mjs";import{I as NB}from"./NcCheckboxRadioSwitch-ezquUuPz-Be_81ffq.chunk.mjs";import{N as MB,d as LB,ab as Ee,ac as at,y as Et,x as ct,w as GF,r as bd,s as ao,a8 as lm,P as ID,Q as qD,R as YD,T as PD,V as ZD,W as HD,X as IB,z as Ip,Y as zD,Z as qB,_ as YB,$ as GD,a0 as PB,a1 as ZB,a2 as HB,a3 as UD,a4 as $D,a5 as zB,a6 as GB,l as yd,a7 as UB,O as WD,a9 as $B,ad as WB,aa as VB,q as D3}from"./isEmpty-DxmJ9h_e.chunk.mjs";import{l as KB}from"./line-nuX2diqu.chunk.mjs";const aS="whiteboard";function QB(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(L1()),t=e.getWeekInfo?.()??e.weekInfo;return t?t.firstDay%7:1}function XB(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=L1();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 JB(){if(typeof globalThis.dayNamesShort<"u")return globalThis.dayNamesShort;const e=L1();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 ej(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=L1();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 tj(){if(typeof globalThis.monthNames<"u")return globalThis.monthNames;const e=L1();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 oj(){if(typeof globalThis.monthNamesShort<"u")return globalThis.monthNamesShort;const e=L1();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 rj=Object.defineProperty,E3=Object.getOwnPropertySymbols,nj=Object.prototype.hasOwnProperty,aj=Object.prototype.propertyIsEnumerable,k3=(e,t,o)=>t in e?rj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ij=(e,t)=>{for(var o in t||(t={}))nj.call(t,o)&&k3(e,o,t[o]);if(E3)for(var o of E3(t))aj.call(t,o)&&k3(e,o,t[o]);return e};function sj(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")),i=new un({el:a,name:"VueDialogHelper",render:s=>s(e,{props:ij({container:null},t),on:{close:(...u)=>{r(...u.map(l=>SS(l))),i.$destroy(),a.remove()}}})});return i}const uj=ZF({name:"NcDialog",components:{NcDialogButton:BS,NcModal:lh},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=an(),{width:n}=vD(r,{width:900}),a=In(()=>n.value<876),i=In(()=>o?.navigation!==void 0),s=v1(),u=In(()=>e.navigationAriaLabel||void 0),l=In(()=>{if(!e.navigationAriaLabel)return e.navigationAriaLabelledby||s}),F=an(),c=In(()=>e.isForm&&!i.value?"form":"div"),g=In(()=>c.value==="form"?{submit(k){k.preventDefault(),t("submit",k)},reset(k){k.preventDefault(),t("reset",k)}}:{}),p=an(!0);function m(k,S){(k.type==="submit"||k.nativeType==="submit")&&c.value==="form"&&!F.value.reportValidity()||(_(S),window.setTimeout(()=>D(),300))}function _(k){p.value=!1,t("closing",k)}function D(){p.value=!0,t("update:open",!1)}const E=In(()=>({noClose:e.noClose||!e.canClose,container:e.container===void 0?"body":e.container,labelId:s,size:e.size,show:e.open&&p.value,outTransition:e.outTransition,closeOnClickOutside:e.closeOnClickOutside,additionalTrapElements:e.additionalTrapElements}));return{dialogElement:F,dialogListeners:g,dialogTagName:c,handleButtonClose:m,handleClosing:_,handleClosed:D,hasNavigation:i,navigationId:s,navigationAriaLabelAttr:u,navigationAriaLabelledbyAttr:l,isNavigationCollapsed:a,modalProps:E,wrapper:r}}});var lj=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()},Fj=[],dj=ho(uj,lj,Fj,!1,null,"66c29e13");const cj=dj.exports,hj=sj,br=ih((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 gj(e,t,o){const r=FS(e,t,o),n=new Map,a=new Map;return e.forEach(i=>{n.set(i.id,i)}),t.forEach(i=>{a.set(i.id,i)}),r.map(i=>{const s=i,u=a.get(i.id),l=n.get(i.id);if(u?.customData?.creator&&(s.customData||(s.customData={}),s.customData.creator=u.customData.creator),u?.customData?.lastModifiedBy){const p=u.customData.lastModifiedBy.createdAt,m=l?.customData?.lastModifiedBy?.createdAt||0;p>m&&(s.customData||(s.customData={}),s.customData.lastModifiedBy=u.customData.lastModifiedBy)}l?.customData?.creator&&!s.customData?.creator&&(s.customData||(s.customData={}),s.customData.creator=l.customData.creator);const F=u?.customData?.aiGenerated??l?.customData?.aiGenerated??s.customData?.aiGenerated;F&&(s.customData||(s.customData={}),s.customData.aiGenerated=F);const c=u?.customData?.aiDisclosureLabel??l?.customData?.aiDisclosureLabel??s.customData?.aiDisclosureLabel;c&&(s.customData||(s.customData={}),s.customData.aiDisclosureLabel=c);const g=u||l;return g?.customData&&(s.customData||(s.customData={}),g.customData.isTable!==void 0&&(s.customData.isTable=g.customData.isTable),g.customData.tableHtml!==void 0&&(s.customData.tableHtml=g.customData.tableHtml),"tableLock"in g.customData&&(s.customData.tableLock=g.customData.tableLock)),s})}const x3=e=>Symbol.iterator in e,w3=e=>"entries"in e,v3=(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},pj=(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 fj(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:x3(e)&&x3(t)?w3(e)&&w3(t)?v3(e,t):pj(e,t):v3({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function fo(e){const t=I.useRef(void 0);return o=>{const r=e(o);return fj(t.current,r)?t.current:t.current=r}}var Dd={exports:{}},mj=Dd.exports,T3;function _j(){return T3||(T3=1,function(e,t){(function(){var o,r="4.18.1",n=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",l="__lodash_hash_undefined__",F=500,c="__lodash_placeholder__",g=1,p=2,m=4,_=1,D=2,E=1,k=2,S=4,N=8,O=16,L=32,$=64,H=128,q=256,v=512,P=30,W="...",te=800,X=16,ee=1,re=2,fe=3,ye=1/0,Se=9007199254740991,Fe=17976931348623157e292,ve=NaN,Ce=4294967295,le=Ce-1,oe=Ce>>>1,ke=[["ary",H],["bind",E],["bindKey",k],["curry",N],["curryRight",O],["flip",v],["partial",L],["partialRight",$],["rearg",q]],Oe="[object Arguments]",Ie="[object Array]",rt="[object AsyncFunction]",lt="[object Boolean]",we="[object Date]",Yt="[object DOMException]",tt="[object Error]",Pt="[object Function]",so="[object GeneratorFunction]",zt="[object Map]",uo="[object Number]",Q="[object Null]",me="[object Object]",ie="[object Promise]",$e="[object Proxy]",ot="[object RegExp]",Je="[object Set]",Re="[object String]",ze="[object Symbol]",dt="[object Undefined]",wt="[object WeakMap]",yo="[object WeakSet]",go="[object ArrayBuffer]",A="[object DataView]",ne="[object Float32Array]",ue="[object Float64Array]",Te="[object Int8Array]",Ke="[object Int16Array]",et="[object Int32Array]",nt="[object Uint8Array]",qe="[object Uint8ClampedArray]",mt="[object Uint16Array]",Qt="[object Uint32Array]",Ao=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,vt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Rt=/&(?:amp|lt|gt|quot|#39);/g,jo=/[&<>"']/g,No=RegExp(Rt.source),Gr=RegExp(jo.source),zn=/<%-([\s\S]+?)%>/g,mi=/<%([\s\S]+?)%>/g,Ur=/<%=([\s\S]+?)%>/g,Fa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ss=/^\w*$/,hu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wo=/[\\^$.*+?()[\]{}|]/g,Vo=RegExp(wo.source),z1=/^\s+/,gu=/\s/,pu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fu=/\{\n\/\* \[wrapped with (.+)\] \*/,Ih=/,? & /,da=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ra=/[()=,{}\[\]\/\s]/,ca=/\\(\\)?/g,mu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,t0=/\w*$/,ha=/^[-+]0x[0-9a-f]+$/i,o0=/^0b[01]+$/i,Na=/^\[object .+?Constructor\]$/,r0=/^0o[0-7]+$/i,G1=/^(?:0|[1-9]\d*)$/,Mo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,En=/($^)/,Gn=/['\n\r\u2028\u2029\\]/g,us="\\ud800-\\udfff",_u="\\u0300-\\u036f",U1="\\ufe20-\\ufe2f",$1="\\u20d0-\\u20ff",ga=_u+U1+$1,W1="\\u2700-\\u27bf",ls="a-z\\xdf-\\xf6\\xf8-\\xff",n0="\\xac\\xb1\\xd7\\xf7",Xt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",a0="\\u2000-\\u206f",i0=" \\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",Fs="A-Z\\xc0-\\xd6\\xd8-\\xde",_i="\\ufe0e\\ufe0f",V1=n0+Xt+a0+i0,bu="['’]",s0="["+us+"]",Do="["+V1+"]",pa="["+ga+"]",bi="\\d+",yi="["+W1+"]",yu="["+ls+"]",Du="[^"+us+V1+bi+W1+ls+Fs+"]",Di="\\ud83c[\\udffb-\\udfff]",u0="(?:"+pa+"|"+Di+")",ds="[^"+us+"]",Eu="(?:\\ud83c[\\udde6-\\uddff]){2}",K1="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+Fs+"]",Q1="\\u200d",l0="(?:"+yu+"|"+Du+")",qh="(?:"+Wt+"|"+Du+")",yr="(?:"+bu+"(?:d|ll|m|re|s|t|ve))?",Ma="(?:"+bu+"(?:D|LL|M|RE|S|T|VE))?",cs=u0+"?",Un="["+_i+"]?",F0="(?:"+Q1+"(?:"+[ds,Eu,K1].join("|")+")"+Un+cs+")*",d0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ko="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$r=Un+cs+F0,hs="(?:"+[yi,Eu,K1].join("|")+")"+$r,gs="(?:"+[ds+pa+"?",pa,Eu,K1,s0].join("|")+")",X1=RegExp(bu,"g"),fa=RegExp(pa,"g"),J1=RegExp(Di+"(?="+Di+")|"+gs+$r,"g"),kn=RegExp([Wt+"?"+yu+"+"+yr+"(?="+[Do,Wt,"$"].join("|")+")",qh+"+"+Ma+"(?="+[Do,Wt+l0,"$"].join("|")+")",Wt+"?"+l0+"+"+yr,Wt+"+"+Ma,Ko,d0,bi,hs].join("|"),"g"),el=RegExp("["+Q1+us+ga+_i+"]"),c0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tl=["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"],ps=-1,Eo={};Eo[ne]=Eo[ue]=Eo[Te]=Eo[Ke]=Eo[et]=Eo[nt]=Eo[qe]=Eo[mt]=Eo[Qt]=!0,Eo[Oe]=Eo[Ie]=Eo[go]=Eo[lt]=Eo[A]=Eo[we]=Eo[tt]=Eo[Pt]=Eo[zt]=Eo[uo]=Eo[me]=Eo[ot]=Eo[Je]=Eo[Re]=Eo[wt]=!1;var ko={};ko[Oe]=ko[Ie]=ko[go]=ko[A]=ko[lt]=ko[we]=ko[ne]=ko[ue]=ko[Te]=ko[Ke]=ko[et]=ko[zt]=ko[uo]=ko[me]=ko[ot]=ko[Je]=ko[Re]=ko[ze]=ko[nt]=ko[qe]=ko[mt]=ko[Qt]=!0,ko[tt]=ko[Pt]=ko[wt]=!1;var Yh={À:"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"},fs={"&":"&","<":"<",">":">",'"':""","'":"'"},Ph={"&":"&","<":"<",">":">",""":'"',"'":"'"},Zh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ku=parseFloat,xu=parseInt,wu=typeof ui=="object"&&ui&&ui.Object===Object&&ui,Hh=typeof self=="object"&&self&&self.Object===Object&&self,Qo=wu||Hh||Function("return this")(),ol=t&&!t.nodeType&&t,$n=ol&&!0&&e&&!e.nodeType&&e,vu=$n&&$n.exports===ol,Tu=vu&&wu.process,Fr=function(){try{var M=$n&&$n.require&&$n.require("util").types;return M||Tu&&Tu.binding&&Tu.binding("util")}catch{}}(),ms=Fr&&Fr.isArrayBuffer,_s=Fr&&Fr.isDate,rl=Fr&&Fr.isMap,h0=Fr&&Fr.isRegExp,La=Fr&&Fr.isSet,Ei=Fr&&Fr.isTypedArray;function dr(M,K,Z){switch(Z.length){case 0:return M.call(K);case 1:return M.call(K,Z[0]);case 2:return M.call(K,Z[0],Z[1]);case 3:return M.call(K,Z[0],Z[1],Z[2])}return M.apply(K,Z)}function nl(M,K,Z,J){for(var se=-1,ge=M==null?0:M.length;++se-1}function Cu(M,K,Z){for(var J=-1,se=M==null?0:M.length;++J-1;);return Z}function cl(M,K){for(var Z=M.length;Z--&&qa(K,M[Z],0)>-1;);return Z}function Uh(M,K){for(var Z=M.length,J=0;Z--;)M[Z]===K&&++J;return J}var $h=Es(Yh),Wh=Es(fs);function Nu(M){return"\\"+Zh[M]}function Vn(M,K){return M==null?o:M[K]}function vo(M){return el.test(M)}function Mu(M){return c0.test(M)}function xi(M){for(var K,Z=[];!(K=M.next()).done;)Z.push(K.value);return Z}function hl(M){var K=-1,Z=Array(M.size);return M.forEach(function(J,se){Z[++K]=[se,J]}),Z}function Lu(M,K){return function(Z){return M(K(Z))}}function Kn(M,K){for(var Z=-1,J=M.length,se=0,ge=[];++Z-1}function AT(d,h){var b=this.__data__,w=D0(b,d);return w<0?(++this.size,b.push([d,h])):b[w][1]=h,this}Za.prototype.clear=wT,Za.prototype.delete=vT,Za.prototype.get=TT,Za.prototype.has=CT,Za.prototype.set=AT;function Ha(d){var h=-1,b=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function Tn(d,h,b,w,j,G){var ae,he=h&g,be=h&p,Ne=h&m;if(b&&(ae=j?b(d,w,j,G):b(d)),ae!==o)return ae;if(!Lo(d))return d;var Me=It(d);if(Me){if(ae=O5(d),!he)return Vr(d,ae)}else{var He=Er(d),it=He==Pt||He==so;if(Ai(d))return s2(d,he);if(He==me||He==Oe||it&&!j){if(ae=be||it?{}:v2(d),!he)return be?E5(d,GT(ae,d)):D5(d,L_(ae,d))}else{if(!ko[He])return j?d:{};ae=R5(d,He,he)}}G||(G=new Qn);var bt=G.get(d);if(bt)return bt;G.set(d,ae),t3(d)?d.forEach(function(Tt){ae.add(Tn(Tt,h,b,Tt,d,G))}):J2(d)&&d.forEach(function(Tt,Jt){ae.set(Jt,Tn(Tt,h,b,Jt,d,G))});var St=Ne?be?bg:_g:be?Qr:ir,Gt=Me?o:St(d);return cr(Gt||d,function(Tt,Jt){Gt&&(Jt=Tt,Tt=d[Jt]),yl(ae,Jt,Tn(Tt,h,b,Jt,d,G))}),ae}function UT(d){var h=ir(d);return function(b){return I_(b,d,h)}}function I_(d,h,b){var w=b.length;if(d==null)return!w;for(d=ce(d);w--;){var j=b[w],G=h[j],ae=d[j];if(ae===o&&!(j in d)||!G(ae))return!1}return!0}function q_(d,h,b){if(typeof d!="function")throw new De(i);return Tl(function(){d.apply(o,b)},h)}function Dl(d,h,b,w){var j=-1,G=ma,ae=!0,he=d.length,be=[],Ne=h.length;if(!he)return be;b&&(h=xo(h,Or(b))),w?(G=Cu,ae=!1):h.length>=n&&(G=Ya,ae=!1,h=new Ts(h));e:for(;++jj?0:j+b),w=w===o||w>j?j:Ht(w),w<0&&(w+=j),w=b>w?0:r3(w);b0&&b(he)?h>1?hr(he,h-1,b,w,j):Wn(j,he):w||(j[j.length]=he)}return j}var eg=h2(),Z_=h2(!0);function ya(d,h){return d&&eg(d,h,ir)}function tg(d,h){return d&&Z_(d,h,ir)}function k0(d,h){return Wr(h,function(b){return $a(d[b])})}function As(d,h){h=Ti(h,d);for(var b=0,w=h.length;d!=null&&bh}function VT(d,h){return d!=null&&Ue.call(d,h)}function KT(d,h){return d!=null&&h in ce(d)}function QT(d,h,b){return d>=Dr(h,b)&&d=120&&Me.length>=120)?new Ts(ae&&Me):o}Me=d[0];var He=-1,it=he[0];e:for(;++He-1;)he!==d&&wn.call(he,be,1),wn.call(d,be,1);return d}function J_(d,h){for(var b=d?h.length:0,w=b-1;b--;){var j=h[b];if(b==w||j!==G){var G=j;Ua(j)?wn.call(d,j,1):dg(d,j)}}return d}function ug(d,h){return d+m0(O_()*(h-d+1))}function F5(d,h,b,w){for(var j=-1,G=er(f0((h-d)/(b||1)),0),ae=Z(G);G--;)ae[w?G:++j]=d,d+=b;return ae}function lg(d,h){var b="";if(!d||h<1||h>Se)return b;do h%2&&(b+=d),h=m0(h/2),h&&(d+=d);while(h);return b}function Vt(d,h){return vg(A2(d,h,Xr),d+"")}function d5(d){return M_(Uu(d))}function c5(d,h){var b=Uu(d);return R0(b,Cs(h,0,b.length))}function xl(d,h,b,w){if(!Lo(d))return d;h=Ti(h,d);for(var j=-1,G=h.length,ae=G-1,he=d;he!=null&&++jj?0:j+h),b=b>j?j:b,b<0&&(b+=j),j=h>b?0:b-h>>>0,h>>>=0;for(var G=Z(j);++w>>1,ae=d[G];ae!==null&&!dn(ae)&&(b?ae<=h:ae=n){var Ne=h?null:v5(d);if(Ne)return xn(Ne);ae=!1,j=Ya,be=new Ts}else be=h?[]:he;e:for(;++w=w?d:Cn(d,h,b)}var i2=rT||function(d){return Qo.clearTimeout(d)};function s2(d,h){if(h)return d.slice();var b=d.length,w=Jo?Jo(b):new d.constructor(b);return d.copy(w),w}function pg(d){var h=new d.constructor(d.byteLength);return new Nt(h).set(new Nt(d)),h}function m5(d,h){var b=h?pg(d.buffer):d.buffer;return new d.constructor(b,d.byteOffset,d.byteLength)}function _5(d){var h=new d.constructor(d.source,t0.exec(d));return h.lastIndex=d.lastIndex,h}function b5(d){return bl?ce(bl.call(d)):{}}function u2(d,h){var b=h?pg(d.buffer):d.buffer;return new d.constructor(b,d.byteOffset,d.length)}function l2(d,h){if(d!==h){var b=d!==o,w=d===null,j=d===d,G=dn(d),ae=h!==o,he=h===null,be=h===h,Ne=dn(h);if(!he&&!Ne&&!G&&d>h||G&&ae&&be&&!he&&!Ne||w&&ae&&be||!b&&be||!j)return 1;if(!w&&!G&&!Ne&&d=he)return be;var Ne=b[w];return be*(Ne=="desc"?-1:1)}}return d.index-h.index}function F2(d,h,b,w){for(var j=-1,G=d.length,ae=b.length,he=-1,be=h.length,Ne=er(G-ae,0),Me=Z(be+Ne),He=!w;++he1?b[j-1]:o,ae=j>2?b[2]:o;for(G=d.length>3&&typeof G=="function"?(j--,G):o,ae&&Nr(b[0],b[1],ae)&&(G=j<3?o:G,j=1),h=ce(h);++w-1?j[G?h[ae]:ae]:o}}function f2(d){return Ga(function(h){var b=h.length,w=b,j=vn.prototype.thru;for(d&&h.reverse();w--;){var G=h[w];if(typeof G!="function")throw new De(i);if(j&&!ae&&j0(G)=="wrapper")var ae=new vn([],!0)}for(w=ae?w:b;++w1&&ro.reverse(),Me&&behe))return!1;var Ne=G.get(d),Me=G.get(h);if(Ne&&Me)return Ne==h&&Me==d;var He=-1,it=!0,bt=b&D?new Ts:o;for(G.set(d,h),G.set(h,d);++He1?"& ":"")+h[w],h=h.join(b>2?", ":" "),d.replace(pu,`{ +/* [wrapped with `+h+`] */ +`)}function M5(d){return It(d)||js(d)||!!(Iu&&d&&d[Iu])}function Ua(d,h){var b=typeof d;return h=h??Se,!!h&&(b=="number"||b!="symbol"&&G1.test(d))&&d>-1&&d%1==0&&d0){if(++h>=te)return arguments[0]}else h=0;return d.apply(o,arguments)}}function R0(d,h){var b=-1,w=d.length,j=w-1;for(h=h===o?w:h;++b1?d[h-1]:o;return b=typeof b=="function"?(d.pop(),b):o,P2(d,b)});function Z2(d){var h=Y(d);return h.__chain__=!0,h}function $C(d,h){return h(d),d}function N0(d,h){return h(d)}var WC=Ga(function(d){var h=d.length,b=h?d[0]:0,w=this.__wrapped__,j=function(G){return Jh(G,d)};return h>1||this.__actions__.length||!(w instanceof to)||!Ua(b)?this.thru(j):(w=w.slice(b,+b+(h?1:0)),w.__actions__.push({func:N0,args:[j],thisArg:o}),new vn(w,this.__chain__).thru(function(G){return h&&!G.length&&G.push(o),G}))});function VC(){return Z2(this)}function KC(){return new vn(this.value(),this.__chain__)}function QC(){this.__values__===o&&(this.__values__=o3(this.value()));var d=this.__index__>=this.__values__.length,h=d?o:this.__values__[this.__index__++];return{done:d,value:h}}function XC(){return this}function JC(d){for(var h,b=this;b instanceof y0;){var w=N2(b);w.__index__=0,w.__values__=o,h?j.__wrapped__=w:h=w;var j=w;b=b.__wrapped__}return j.__wrapped__=d,h}function eA(){var d=this.__wrapped__;if(d instanceof to){var h=d;return this.__actions__.length&&(h=new to(this)),h=h.reverse(),h.__actions__.push({func:N0,args:[Tg],thisArg:o}),new vn(h,this.__chain__)}return this.thru(Tg)}function tA(){return n2(this.__wrapped__,this.__actions__)}var oA=T0(function(d,h,b){Ue.call(d,b)?++d[b]:ba(d,b,1)});function rA(d,h,b){var w=It(d)?Xo:$T;return b&&Nr(d,h,b)&&(h=o),w(d,Ct(h,3))}function nA(d,h){var b=It(d)?Wr:P_;return b(d,Ct(h,3))}var aA=p2(M2),iA=p2(L2);function sA(d,h){return hr(M0(d,h),1)}function uA(d,h){return hr(M0(d,h),ye)}function lA(d,h,b){return b=b===o?1:Ht(b),hr(M0(d,h),b)}function H2(d,h){var b=It(d)?cr:wi;return b(d,Ct(h,3))}function z2(d,h){var b=It(d)?al:Y_;return b(d,Ct(h,3))}var FA=T0(function(d,h,b){Ue.call(d,b)?d[b].push(h):ba(d,b,[h])});function dA(d,h,b,w){d=Kr(d)?d:Uu(d),b=b&&!w?Ht(b):0;var j=d.length;return b<0&&(b=er(j+b,0)),P0(d)?b<=j&&d.indexOf(h,b)>-1:!!j&&qa(d,h,b)>-1}var cA=Vt(function(d,h,b){var w=-1,j=typeof h=="function",G=Kr(d)?Z(d.length):[];return wi(d,function(ae){G[++w]=j?dr(h,ae,b):El(ae,h,b)}),G}),hA=T0(function(d,h,b){ba(d,b,h)});function M0(d,h){var b=It(d)?xo:$_;return b(d,Ct(h,3))}function gA(d,h,b,w){return d==null?[]:(It(h)||(h=h==null?[]:[h]),b=w?o:b,It(b)||(b=b==null?[]:[b]),Q_(d,h,b))}var pA=T0(function(d,h,b){d[b?0:1].push(h)},function(){return[[],[]]});function fA(d,h,b){var w=It(d)?Au:ju,j=arguments.length<3;return w(d,Ct(h,4),b,j,wi)}function mA(d,h,b){var w=It(d)?Su:ju,j=arguments.length<3;return w(d,Ct(h,4),b,j,Y_)}function _A(d,h){var b=It(d)?Wr:P_;return b(d,q0(Ct(h,3)))}function bA(d){var h=It(d)?M_:d5;return h(d)}function yA(d,h,b){(b?Nr(d,h,b):h===o)?h=1:h=Ht(h);var w=It(d)?ZT:c5;return w(d,h)}function DA(d){var h=It(d)?HT:g5;return h(d)}function EA(d){if(d==null)return 0;if(Kr(d))return P0(d)?Pa(d):d.length;var h=Er(d);return h==zt||h==Je?d.size:ag(d).length}function kA(d,h,b){var w=It(d)?bs:p5;return b&&Nr(d,h,b)&&(h=o),w(d,Ct(h,3))}var xA=Vt(function(d,h){if(d==null)return[];var b=h.length;return b>1&&Nr(d,h[0],h[1])?h=[]:b>2&&Nr(h[0],h[1],h[2])&&(h=[h[0]]),Q_(d,hr(h,1),[])}),L0=nT||function(){return Qo.Date.now()};function wA(d,h){if(typeof h!="function")throw new De(i);return d=Ht(d),function(){if(--d<1)return h.apply(this,arguments)}}function G2(d,h,b){return h=b?o:h,h=d&&h==null?d.length:h,za(d,H,o,o,o,o,h)}function U2(d,h){var b;if(typeof h!="function")throw new De(i);return d=Ht(d),function(){return--d>0&&(b=h.apply(this,arguments)),d<=1&&(h=o),b}}var Ag=Vt(function(d,h,b){var w=E;if(b.length){var j=Kn(b,zu(Ag));w|=L}return za(d,w,h,b,j)}),$2=Vt(function(d,h,b){var w=E|k;if(b.length){var j=Kn(b,zu($2));w|=L}return za(h,w,d,b,j)});function W2(d,h,b){h=b?o:h;var w=za(d,N,o,o,o,o,o,h);return w.placeholder=W2.placeholder,w}function V2(d,h,b){h=b?o:h;var w=za(d,O,o,o,o,o,o,h);return w.placeholder=V2.placeholder,w}function K2(d,h,b){var w,j,G,ae,he,be,Ne=0,Me=!1,He=!1,it=!0;if(typeof d!="function")throw new De(i);h=Sn(h)||0,Lo(b)&&(Me=!!b.leading,He="maxWait"in b,G=He?er(Sn(b.maxWait)||0,h):G,it="trailing"in b?!!b.trailing:it);function bt(zo){var ea=w,Va=j;return w=j=o,Ne=zo,ae=d.apply(Va,ea),ae}function St(zo){return Ne=zo,he=Tl(Jt,h),Me?bt(zo):ae}function Gt(zo){var ea=zo-be,Va=zo-Ne,f3=h-ea;return He?Dr(f3,G-Va):f3}function Tt(zo){var ea=zo-be,Va=zo-Ne;return be===o||ea>=h||ea<0||He&&Va>=G}function Jt(){var zo=L0();if(Tt(zo))return ro(zo);he=Tl(Jt,Gt(zo))}function ro(zo){return he=o,it&&w?bt(zo):(w=j=o,ae)}function cn(){he!==o&&i2(he),Ne=0,w=be=j=he=o}function Mr(){return he===o?ae:ro(L0())}function hn(){var zo=L0(),ea=Tt(zo);if(w=arguments,j=this,be=zo,ea){if(he===o)return St(be);if(He)return i2(he),he=Tl(Jt,h),bt(be)}return he===o&&(he=Tl(Jt,h)),ae}return hn.cancel=cn,hn.flush=Mr,hn}var vA=Vt(function(d,h){return q_(d,1,h)}),TA=Vt(function(d,h,b){return q_(d,Sn(h)||0,b)});function CA(d){return za(d,v)}function I0(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new De(i);var b=function(){var w=arguments,j=h?h.apply(this,w):w[0],G=b.cache;if(G.has(j))return G.get(j);var ae=d.apply(this,w);return b.cache=G.set(j,ae)||G,ae};return b.cache=new(I0.Cache||Ha),b}I0.Cache=Ha;function q0(d){if(typeof d!="function")throw new De(i);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function AA(d){return U2(2,d)}var SA=f5(function(d,h){h=h.length==1&&It(h[0])?xo(h[0],Or(Ct())):xo(hr(h,1),Or(Ct()));var b=h.length;return Vt(function(w){for(var j=-1,G=Dr(w.length,b);++j=h}),js=z_(function(){return arguments}())?z_:function(d){return Yo(d)&&Ue.call(d,"callee")&&!ar.call(d,"callee")},It=Z.isArray,GA=ms?Or(ms):JT;function Kr(d){return d!=null&&Y0(d.length)&&!$a(d)}function Ho(d){return Yo(d)&&Kr(d)}function UA(d){return d===!0||d===!1||Yo(d)&&Rr(d)==lt}var Ai=iT||Zg,$A=_s?Or(_s):e5;function WA(d){return Yo(d)&&d.nodeType===1&&!Cl(d)}function VA(d){if(d==null)return!0;if(Kr(d)&&(It(d)||typeof d=="string"||typeof d.splice=="function"||Ai(d)||Gu(d)||js(d)))return!d.length;var h=Er(d);if(h==zt||h==Je)return!d.size;if(vl(d))return!ag(d).length;for(var b in d)if(Ue.call(d,b))return!1;return!0}function KA(d,h){return kl(d,h)}function QA(d,h,b){b=typeof b=="function"?b:o;var w=b?b(d,h):o;return w===o?kl(d,h,o,b):!!w}function Bg(d){if(!Yo(d))return!1;var h=Rr(d);return h==tt||h==Yt||typeof d.message=="string"&&typeof d.name=="string"&&!Cl(d)}function XA(d){return typeof d=="number"&&j_(d)}function $a(d){if(!Lo(d))return!1;var h=Rr(d);return h==Pt||h==so||h==rt||h==$e}function X2(d){return typeof d=="number"&&d==Ht(d)}function Y0(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=Se}function Lo(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function Yo(d){return d!=null&&typeof d=="object"}var J2=rl?Or(rl):o5;function JA(d,h){return d===h||ng(d,h,Dg(h))}function e8(d,h,b){return b=typeof b=="function"?b:o,ng(d,h,Dg(h),b)}function t8(d){return e3(d)&&d!=+d}function o8(d){if(q5(d))throw new se(a);return G_(d)}function r8(d){return d===null}function n8(d){return d==null}function e3(d){return typeof d=="number"||Yo(d)&&Rr(d)==uo}function Cl(d){if(!Yo(d)||Rr(d)!=me)return!1;var h=Zo(d);if(h===null)return!0;var b=Ue.call(h,"constructor")&&h.constructor;return typeof b=="function"&&b instanceof b&&Ge.call(b)==Bt}var jg=h0?Or(h0):r5;function a8(d){return X2(d)&&d>=-Se&&d<=Se}var t3=La?Or(La):n5;function P0(d){return typeof d=="string"||!It(d)&&Yo(d)&&Rr(d)==Re}function dn(d){return typeof d=="symbol"||Yo(d)&&Rr(d)==ze}var Gu=Ei?Or(Ei):a5;function i8(d){return d===o}function s8(d){return Yo(d)&&Er(d)==wt}function u8(d){return Yo(d)&&Rr(d)==yo}var l8=B0(ig),F8=B0(function(d,h){return d<=h});function o3(d){if(!d)return[];if(Kr(d))return P0(d)?f(d):Vr(d);if(pl&&d[pl])return xi(d[pl]());var h=Er(d),b=h==zt?hl:h==Je?xn:Uu;return b(d)}function Wa(d){if(!d)return d===0?d:0;if(d=Sn(d),d===ye||d===-ye){var h=d<0?-1:1;return h*Fe}return d===d?d:0}function Ht(d){var h=Wa(d),b=h%1;return h===h?b?h-b:h:0}function r3(d){return d?Cs(Ht(d),0,Ce):0}function Sn(d){if(typeof d=="number")return d;if(dn(d))return ve;if(Lo(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Lo(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=Fl(d);var b=o0.test(d);return b||r0.test(d)?xu(d.slice(2),b?2:8):ha.test(d)?ve:+d}function n3(d){return Da(d,Qr(d))}function d8(d){return d?Cs(Ht(d),-Se,Se):d===0?d:0}function mo(d){return d==null?"":Fn(d)}var c8=Zu(function(d,h){if(vl(h)||Kr(h)){Da(h,ir(h),d);return}for(var b in h)Ue.call(h,b)&&yl(d,b,h[b])}),a3=Zu(function(d,h){Da(h,Qr(h),d)}),i3=Zu(function(d,h,b,w){Da(h,Qr(h),d,w)}),Og=Zu(function(d,h,b,w){Da(h,ir(h),d,w)}),h8=Ga(Jh);function g8(d,h){var b=Pu(d);return h==null?b:L_(b,h)}var p8=Vt(function(d,h){d=ce(d);var b=-1,w=h.length,j=w>2?h[2]:o;for(j&&Nr(h[0],h[1],j)&&(w=1);++b1),G}),Da(d,bg(d),b),w&&(b=Tn(b,g|p|m,T5));for(var j=h.length;j--;)dg(b,h[j]);return b});function O8(d,h){return u3(d,q0(Ct(h)))}var R8=Ga(function(d,h){return d==null?{}:u5(d,h)});function u3(d,h){if(d==null)return{};var b=xo(bg(d),function(w){return[w]});return h=Ct(h),X_(d,b,function(w,j){return h(w,j[0])})}function N8(d,h,b){h=Ti(h,d);var w=-1,j=h.length;for(j||(j=1,d=o);++wh){var w=d;d=h,h=w}if(b||d%1||h%1){var j=O_();return Dr(d+j*(h-d+ku("1e-"+((j+"").length-1))),h)}return ug(d,h)}var U8=Hu(function(d,h,b){return h=h.toLowerCase(),d+(b?d3(h):h)});function d3(d){return Mg(mo(d).toLowerCase())}function c3(d){return d=mo(d),d&&d.replace(Mo,$h).replace(fa,"")}function $8(d,h,b){d=mo(d),h=Fn(h);var w=d.length;b=b===o?w:Cs(Ht(b),0,w);var j=b;return b-=h.length,b>=0&&d.slice(b,j)==h}function W8(d){return d=mo(d),d&&Gr.test(d)?d.replace(jo,Wh):d}function V8(d){return d=mo(d),d&&Vo.test(d)?d.replace(wo,"\\$&"):d}var K8=Hu(function(d,h,b){return d+(b?"-":"")+h.toLowerCase()}),Q8=Hu(function(d,h,b){return d+(b?" ":"")+h.toLowerCase()}),X8=g2("toLowerCase");function J8(d,h,b){d=mo(d),h=Ht(h);var w=h?Pa(d):0;if(!h||w>=h)return d;var j=(h-w)/2;return S0(m0(j),b)+d+S0(f0(j),b)}function e7(d,h,b){d=mo(d),h=Ht(h);var w=h?Pa(d):0;return h&&w>>0,b?(d=mo(d),d&&(typeof h=="string"||h!=null&&!jg(h))&&(h=Fn(h),!h&&vo(d))?Ci(f(d),0,b):d.split(h,b)):[]}var s7=Hu(function(d,h,b){return d+(b?" ":"")+Mg(h)});function u7(d,h,b){return d=mo(d),b=b==null?0:Cs(Ht(b),0,d.length),h=Fn(h),d.slice(b,b+h.length)==h}function l7(d,h,b){var w=Y.templateSettings;b&&Nr(d,h,b)&&(h=o),d=mo(d),h=Og({},h,w,D2);var j=Og({},h.imports,w.imports,D2),G=ir(j),ae=Ru(j,G);cr(G,function(Tt){if(Ra.test(Tt))throw new se(u)});var he,be,Ne=0,Me=h.interpolate||En,He="__p += '",it=_e((h.escape||En).source+"|"+Me.source+"|"+(Me===Ur?mu:En).source+"|"+(h.evaluate||En).source+"|$","g"),bt="//# sourceURL="+(Ue.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ps+"]")+` +`;d.replace(it,function(Tt,Jt,ro,cn,Mr,hn){return ro||(ro=cn),He+=d.slice(Ne,hn).replace(Gn,Nu),Jt&&(he=!0,He+=`' + +__e(`+Jt+`) + +'`),Mr&&(be=!0,He+=`'; +`+Mr+`; +__p += '`),ro&&(He+=`' + +((__t = (`+ro+`)) == null ? '' : __t) + +'`),Ne=hn+Tt.length,Tt}),He+=`'; +`;var St=Ue.call(h,"variable")&&h.variable;if(!St)He=`with (obj) { +`+He+` +} +`;else if(Ra.test(St))throw new se(s);He=(be?He.replace(Ao,""):He).replace(Ae,"$1").replace(vt,"$1;"),He="function("+(St||"obj")+`) { +`+(St?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(he?", __e = _.escape":"")+(be?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+He+`return __p +}`;var Gt=g3(function(){return ge(G,bt+"return "+He).apply(o,ae)});if(Gt.source=He,Bg(Gt))throw Gt;return Gt}function F7(d){return mo(d).toLowerCase()}function d7(d){return mo(d).toUpperCase()}function c7(d,h,b){if(d=mo(d),d&&(b||h===o))return Fl(d);if(!d||!(h=Fn(h)))return d;var w=f(d),j=f(h),G=dl(w,j),ae=cl(w,j)+1;return Ci(w,G,ae).join("")}function h7(d,h,b){if(d=mo(d),d&&(b||h===o))return d.slice(0,y(d)+1);if(!d||!(h=Fn(h)))return d;var w=f(d),j=cl(w,f(h))+1;return Ci(w,0,j).join("")}function g7(d,h,b){if(d=mo(d),d&&(b||h===o))return d.replace(z1,"");if(!d||!(h=Fn(h)))return d;var w=f(d),j=dl(w,f(h));return Ci(w,j).join("")}function p7(d,h){var b=P,w=W;if(Lo(h)){var j="separator"in h?h.separator:j;b="length"in h?Ht(h.length):b,w="omission"in h?Fn(h.omission):w}d=mo(d);var G=d.length;if(vo(d)){var ae=f(d);G=ae.length}if(b>=G)return d;var he=b-Pa(w);if(he<1)return w;var be=ae?Ci(ae,0,he).join(""):d.slice(0,he);if(j===o)return be+w;if(ae&&(he+=be.length-he),jg(j)){if(d.slice(he).search(j)){var Ne,Me=be;for(j.global||(j=_e(j.source,mo(t0.exec(j))+"g")),j.lastIndex=0;Ne=j.exec(Me);)var He=Ne.index;be=be.slice(0,He===o?he:He)}}else if(d.indexOf(Fn(j),he)!=he){var it=be.lastIndexOf(j);it>-1&&(be=be.slice(0,it))}return be+w}function f7(d){return d=mo(d),d&&No.test(d)?d.replace(Rt,x):d}var m7=Hu(function(d,h,b){return d+(b?" ":"")+h.toUpperCase()}),Mg=g2("toUpperCase");function h3(d,h,b){return d=mo(d),h=b?o:h,h===o?Mu(d)?R(d):sl(d):d.match(h)||[]}var g3=Vt(function(d,h){try{return dr(d,o,h)}catch(b){return Bg(b)?b:new se(b)}}),_7=Ga(function(d,h){return cr(h,function(b){b=Xn(b),ba(d,b,Ag(d[b],d))}),d});function b7(d){var h=d==null?0:d.length,b=Ct();return d=h?xo(d,function(w){if(typeof w[1]!="function")throw new De(i);return[b(w[0]),w[1]]}):[],Vt(function(w){for(var j=-1;++jSe)return[];var b=Ce,w=Dr(d,Ce);h=Ct(h),d-=Ce;for(var j=ll(w,h);++b0||h<0)?new to(b):(d<0?b=b.takeRight(-d):d&&(b=b.drop(d)),h!==o&&(h=Ht(h),b=h<0?b.dropRight(-h):b.take(h-d)),b)},to.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},to.prototype.toArray=function(){return this.take(Ce)},ya(to.prototype,function(d,h){var b=/^(?:filter|find|map|reject)|While$/.test(h),w=/^(?:head|last)$/.test(h),j=Y[w?"take"+(h=="last"?"Right":""):h],G=w||/^find/.test(h);j&&(Y.prototype[h]=function(){var ae=this.__wrapped__,he=w?[1]:arguments,be=ae instanceof to,Ne=he[0],Me=be||It(ae),He=function(Jt){var ro=j.apply(Y,Wn([Jt],he));return w&&it?ro[0]:ro};Me&&b&&typeof Ne=="function"&&Ne.length!=1&&(be=Me=!1);var it=this.__chain__,bt=!!this.__actions__.length,St=G&&!it,Gt=be&&!bt;if(!G&&Me){ae=Gt?ae:new to(this);var Tt=d.apply(ae,he);return Tt.__actions__.push({func:N0,args:[He],thisArg:o}),new vn(Tt,it)}return St&&Gt?d.apply(this,he):(Tt=this.thru(He),St?w?Tt.value()[0]:Tt.value():Tt)})}),cr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Be[d],b=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",w=/^(?:pop|shift)$/.test(d);Y.prototype[d]=function(){var j=arguments;if(w&&!this.__chain__){var G=this.value();return h.apply(It(G)?G:[],j)}return this[b](function(ae){return h.apply(It(ae)?ae:[],j)})}}),ya(to.prototype,function(d,h){var b=Y[h];if(b){var w=b.name+"";Ue.call(Yu,w)||(Yu[w]=[]),Yu[w].push({name:h,func:b})}}),Yu[C0(o,k).name]=[{name:"wrapper",func:o}],to.prototype.clone=mT,to.prototype.reverse=_T,to.prototype.value=bT,Y.prototype.at=WC,Y.prototype.chain=VC,Y.prototype.commit=KC,Y.prototype.next=QC,Y.prototype.plant=JC,Y.prototype.reverse=eA,Y.prototype.toJSON=Y.prototype.valueOf=Y.prototype.value=tA,Y.prototype.first=Y.prototype.head,pl&&(Y.prototype[pl]=XC),Y},V=U();$n?(($n.exports=V)._=V,ol._=V):Qo._=V}).call(mj)}(Dd,Dd.exports)),Dd.exports}var Aa=_j(),qp={exports:{}},bj=qp.exports,C3;function yj(){return C3||(C3=1,function(e,t){((o,r)=>{e.exports=r()})(bj,function(){var o=function(f,y){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(x,C){x.__proto__=C}:function(x,C){for(var B in C)Object.prototype.hasOwnProperty.call(C,B)&&(x[B]=C[B])}))(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,F={}.hasOwnProperty;function c(f,y){return F.call(f,y)}function g(f,y){typeof y=="function"&&(y=y(l(f))),(typeof Reflect>"u"?i: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 S(f,y){return y(f)}function N(f){if(!f)throw new Error("Assertion Failed")}function O(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,B=y.length;C"u"?[]:(wt=Promise.resolve(),typeof crypto<"u"&&crypto.subtle?[dt=crypto.subtle.digest("SHA-512",new Uint8Array([0])),l(dt),wt]:[wt,l(wt),wt]),wt=dt[0],xi=dt[1],xi=xi&&xi.then,yo=wt&&wt.constructor,go=!!dt[2],A=function(f,y){mt.push([f,y]),ue&&(queueMicrotask(mi),ue=!1)},ne=!0,ue=!0,Te=[],Ke=[],et=Pt,nt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:tt,pgp:!1,env:{},finalize:tt},qe=nt,mt=[],Qt=0,Ao=[];function Ae(f){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var y=this._PSD=qe;if(typeof f!="function"){if(f!==Re)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&jo(this,this._value)}else this._state=null,this._value=null,++y.ref,function x(C,B){try{B(function(R){if(C._state===null){if(R===C)throw new TypeError("A promise cannot be resolved with itself.");var U=C._lib&&Ur();R&&typeof R.then=="function"?x(C,function(V,M){R instanceof Ae?R._then(V,M):R.then(V,M)}):(C._state=!0,C._value=R,No(C)),U&&Fa()}},jo.bind(null,C))}catch(R){jo(C,R)}}(this,f)}var vt={get:function(){var f=qe,y=fu;function x(C,B){var R=this,U=!f.global&&(f!==qe||y!==fu),V=U&&!ca(),M=new Ae(function(K,Z){Gr(R,new Rt(r0(C,f,U,V),r0(B,f,U,V),K,Z,f))});return this._consoleTask&&(M._consoleTask=this._consoleTask),M}return x.prototype=Re,x},set:function(f){m(this,"then",f&&f.prototype===Re?vt:{get:function(){return f},set:vt.set})}};function Rt(f,y,x,C,B){this.onFulfilled=typeof f=="function"?f:null,this.onRejected=typeof y=="function"?y:null,this.resolve=x,this.reject=C,this.psd=B}function jo(f,y){var x,C;Ke.push(y),f._state===null&&(x=f._lib&&Ur(),y=et(y),f._state=!1,f._value=y,C=f,Te.some(function(B){return B._value===C._value})||Te.push(C),No(f),x)&&Fa()}function No(f){var y=f._listeners;f._listeners=[];for(var x=0,C=y.length;x{for(var U=Te.length;U;)if(Te[--U]._value===R._value)return Te.splice(U,1)})(y),x.resolve(C)}catch(R){x.reject(R)}finally{--Qt==0&&ss(),--x.psd.ref||x.psd.finalize()}}function mi(){Na(nt,function(){Ur()&&Fa()})}function Ur(){var f=ne;return ue=ne=!1,f}function Fa(){var f,y,x;do for(;0.",us="String expected.",_u="__dbnames",U1="readonly",$1="readwrite";function ga(f,y){return f?y?function(){return f.apply(this,arguments)&&y.apply(this,arguments)}:f:y}var W1={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function ls(f){return typeof f!="string"||/\./.test(f)?function(y){return y}:function(y){return y[f]===void 0&&f in y&&delete(y=te(y))[f],y}}function n0(){throw we.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function Xt(f,y){try{var x=a0(f),C=a0(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 y{var V=Z,M=U;if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function K(){this.constructor=V}function Z(){return U!==null&&U.apply(this,arguments)||this}return o(V,M),V.prototype=M===null?Object.create(M):(K.prototype=M.prototype,new K),Object.defineProperty(Z.prototype,"db",{get:function(){return y},enumerable:!1,configurable:!0}),Z.prototype.table=function(){return x},Z})(f)),new Set),B=f.prototype;B;B=l(B))Object.getOwnPropertyNames(B).forEach(function(U){return C.add(U)});function R(U){if(!U)return U;var V,M=Object.create(f.prototype);for(V in U)if(!C.has(V))try{M[V]=U[V]}catch{}return M}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=R,this.hook("reading",R),f},Do.prototype.defineClass=function(){return this.mapToClass(function(f){u(this,f)})},Do.prototype.add=function(f,y){var x=this,C=this.schema.primKey,B=C.auto,R=C.keyPath,U=f;return R&&B&&(U=ls(R)(f)),this._trans("readwrite",function(V){return x.core.mutate({trans:V,type:"add",keys:y!=null?[y]:null,values:[U]})}).then(function(V){return V.numFailures?Ae.reject(V.failures[0]):V.lastResult}).then(function(V){if(R)try{$(f,R,V)}catch{}return V})},Do.prototype.upsert=function(f,y){var x=this,C=this.schema.primKey.keyPath;return this._trans("readwrite",function(B){return x.core.get({trans:B,key:f}).then(function(R){var U=R??{};return bu(U,y),C&&$(U,C,f),x.core.mutate({trans:B,type:"put",values:[U],keys:[f],upsert:!0,updates:{keys:[f],changeSpecs:[y]}}).then(function(V){return V.numFailures?Ae.reject(V.failures[0]):!!R})})})},Do.prototype.update=function(f,y){return typeof f!="object"||s(f)?this.where(":id").equals(f).modify(y):(f=L(f,this.schema.primKey.keyPath))===void 0?Mo(new we.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(f).modify(y)},Do.prototype.put=function(f,y){var x=this,C=this.schema.primKey,B=C.auto,R=C.keyPath,U=f;return R&&B&&(U=ls(R)(f)),this._trans("readwrite",function(V){return x.core.mutate({trans:V,type:"put",values:[U],keys:y!=null?[y]:null})}).then(function(V){return V.numFailures?Ae.reject(V.failures[0]):V.lastResult}).then(function(V){if(R)try{$(f,R,V)}catch{}return V})},Do.prototype.delete=function(f){var y=this;return this._trans("readwrite",function(x){return y.core.mutate({trans:x,type:"delete",keys:[f]}).then(function(C){return Fs(y,[f],C)}).then(function(C){return C.numFailures?Ae.reject(C.failures[0]):void 0})})},Do.prototype.clear=function(){var f=this;return this._trans("readwrite",function(y){return f.core.mutate({trans:y,type:"deleteRange",range:W1}).then(function(x){return Fs(f,null,x)})}).then(function(y){return y.numFailures?Ae.reject(y.failures[0]):void 0})},Do.prototype.bulkGet=function(f){var y=this;return this._trans("readonly",function(x){return y.core.getMany({keys:f,trans:x}).then(function(C){return C.map(function(B){return y.hook.reading.fire(B)})})})},Do.prototype.bulkAdd=function(f,y,x){var C=this,B=Array.isArray(y)?y:void 0,R=(x=x||(B?void 0:y))?x.allKeys:void 0;return this._trans("readwrite",function(U){var V=C.schema.primKey,K=V.auto,V=V.keyPath;if(V&&B)throw new we.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(B&&B.length!==f.length)throw new we.InvalidArgument("Arguments objects and keys must have the same length");var M=f.length,K=V&&K?f.map(ls(V)):f;return C.core.mutate({trans:U,type:"add",keys:B,values:K,wantResults:R}).then(function(Z){var J=Z.numFailures,se=Z.failures;if(J===0)return R?Z.results:Z.lastResult;throw new Ie("".concat(C.name,".bulkAdd(): ").concat(J," of ").concat(M," operations failed"),se)})})},Do.prototype.bulkPut=function(f,y,x){var C=this,B=Array.isArray(y)?y:void 0,R=(x=x||(B?void 0:y))?x.allKeys:void 0;return this._trans("readwrite",function(U){var V=C.schema.primKey,K=V.auto,V=V.keyPath;if(V&&B)throw new we.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(B&&B.length!==f.length)throw new we.InvalidArgument("Arguments objects and keys must have the same length");var M=f.length,K=V&&K?f.map(ls(V)):f;return C.core.mutate({trans:U,type:"put",keys:B,values:K,wantResults:R}).then(function(Z){var J=Z.numFailures,se=Z.failures;if(J===0)return R?Z.results:Z.lastResult;throw new Ie("".concat(C.name,".bulkPut(): ").concat(J," of ").concat(M," operations failed"),se)})})},Do.prototype.bulkUpdate=function(f){var y=this,x=this.core,C=f.map(function(U){return U.key}),B=f.map(function(U){return U.changes}),R=[];return this._trans("readwrite",function(U){return x.getMany({trans:U,keys:C,cache:"clone"}).then(function(V){var M=[],K=[],Z=(f.forEach(function(J,se){var ge=J.key,pe=J.changes,ce=V[se];if(ce){for(var _e=0,xe=Object.keys(pe);_eDe+Be&&_e(De+K)})})}var xe=yi(x)&&x.limit===1/0&&(typeof f!="function"||pe)&&{index:x.index,range:x.range};return _e(0).then(function(){if(0{for(var jt=Math.min(Ge.length,Ft.length),Mt=-1,Zt=0;Zt=se})).length===0?Ae.resolve():(_e.forEach(function(De){ce.push(function(){var Be,Ze,Ye,Ve=xe,Ge=De._cfg.dbschema,Ue=(_s(J,Ve,pe),_s(J,Ge,pe),xe=J._dbSchema=Ge,$n(Ve,Ge)),Xe=(Ue.add.forEach(function(Ft){vu(pe,Ft[0],Ft[1].primKey,Ft[1].indexes)}),Ue.change.forEach(function(Ft){if(Ft.recreate)throw new we.Upgrade("Not yet support for changing primary key");var Pe=pe.objectStore(Ft.name);Ft.add.forEach(function(Bt){return Fr(Pe,Bt)}),Ft.change.forEach(function(Bt){Pe.deleteIndex(Bt.name),Fr(Pe,Bt)}),Ft.del.forEach(function(Bt){return Pe.deleteIndex(Bt)})}),De._cfg.contentUpgrade);if(Xe&&De._cfg.version>se)return ku(J,pe),ge._memoizedTables={},Be=H(Ge),Ue.del.forEach(function(Ft){Be[Ft]=Ve[Ft]}),wu(J,[J.Transaction.prototype]),xu(J,[J.Transaction.prototype],i(Be),Be),ge.schema=Be,(Ze=ve(Xe))&&Ra(),Ge=Ae.follow(function(){var Ft;(Ye=Xe(ge))&&Ze&&(Ft=ca.bind(null,null),Ye.then(Ft,Ft))}),Ye&&typeof Ye.then=="function"?Ae.resolve(Ye):Ge.then(function(){return Ye})}),ce.push(function(Be){var Ze,Ye,Ve=De._cfg.dbschema;Ze=Ve,Ye=Be,[].slice.call(Ye.db.objectStoreNames).forEach(function(Ge){return Ze[Ge]==null&&Ye.db.deleteObjectStore(Ge)}),wu(J,[J.Transaction.prototype]),xu(J,[J.Transaction.prototype],J._storeNames,J._dbSchema),ge.schema=J._dbSchema}),ce.push(function(Be){J.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(J.idbdb.version/10)===De._cfg.version?(J.idbdb.deleteObjectStore("$meta"),delete J._dbSchema.$meta,J._storeNames=J._storeNames.filter(function(Ze){return Ze!=="$meta"})):Be.objectStore("$meta").put(De._cfg.version,"version"))})}),function De(){return ce.length?Ae.resolve(ce.shift()(ge.idbtrans)).then(De):Ae.resolve()}().then(function(){Tu(xe,pe)}))}).catch(U);var M,K;i(B).forEach(function(Z){vu(x,Z,B[Z].primKey,B[Z].indexes)}),ku(f,x),Ae.follow(function(){return f.on.populate.fire(R)}).catch(U)})}function ol(f,y){Tu(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=ms(0,f.idbdb,y);_s(f,f._dbSchema,y);for(var C=0,B=$n(x,f._dbSchema).change;C{if(U.change.length||U.recreate)return console.warn("Unable to patch indexes of table ".concat(U.name," because it has changes on the type of index or primary key.")),{value:void 0};var V=y.objectStore(U.name);U.add.forEach(function(M){ot&&console.debug("Dexie upgrade patch: Creating missing index ".concat(U.name,".").concat(M.src)),Fr(V,M)})})(B[C]);if(typeof R=="object")return R.value}}function $n(f,y){var x,C={del:[],add:[],change:[]};for(x in f)y[x]||C.del.push(x);for(x in y){var B=f[x],R=y[x];if(B){var U={name:x,def:R,recreate:!1,del:[],add:[],change:[]};if(""+(B.primKey.keyPath||"")!=""+(R.primKey.keyPath||"")||B.primKey.auto!==R.primKey.auto)U.recreate=!0,C.change.push(U);else{var V=B.idxByName,M=R.idxByName,K=void 0;for(K in V)M[K]||U.del.push(K);for(K in M){var Z=V[K],J=M[K];Z?Z.src!==J.src&&U.change.push(J):U.add.push(J)}(0{var f,y,x;return typeof FinalizationRegistry<"u"&&typeof WeakRef<"u"?(f=new Set,y=new FinalizationRegistry(function(C){f.delete(C)}),{toArray:function(){return Array.from(f).map(function(C){return C.deref()}).filter(function(C){return C!==void 0})},add:function(C){var B=new WeakRef(C._novip);f.add(B),y.register(C._novip,B,B),f.size>C._options.maxConnections&&(B=f.values().next().value,f.delete(B),y.unregister(B))},remove:function(C){if(C)for(var B=f.values(),R=B.next();!R.done;){var U=R.value;if(U.deref()===C._novip)return f.delete(U),void y.unregister(U);R=B.next()}}}):(x=[],{toArray:function(){return x},add:function(C){x.push(C._novip)},remove:function(C){C&&(C=x.indexOf(C._novip))!==-1&&x.splice(C,1)}})})();function dr(f,y){var x=f._dbNamesDB;return x||(x=f._dbNamesDB=new Vn(_u,{addons:[],indexedDB:f,IDBKeyRange:y})).version(1).stores({dbnames:"name"}),x.table("dbnames")}function nl(f){return f&&typeof f.databases=="function"}function cr(f){return da(function(){return qe.letThrough=!0,f()})}function al(f){return!("from"in f)}var Xo=function(f,y){var x;if(!this)return x=new Xo,f&&"d"in f&&u(x,f),x;u(this,arguments.length?{d:1,from:f,to:1Math.pow(2,62)?0:_e.oldVersion,J=xe<1,f.idbdb=ce.result,R&&ol(f,Z),Qo(f,xe/10,Z,ge))},ge),ce.onsuccess=wo(function(){Z=null;var _e,xe,De,Be,Ze,Ye,Ve=f.idbdb=ce.result,Ge=k(Ve.objectStoreNames);if(0"u"?Ae.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(se){function ge(){return indexedDB.databases().finally(se)}M=setInterval(ge,100),ge()}).finally(function(){return clearInterval(M)}):Promise.resolve()).then(V)]).then(function(){return U(),y.onReadyBeingFired=[],Ae.resolve(cr(function(){return f.on.ready.fire(f.vip)})).then(function se(){var ge;if(0y.limit?C.length=y.limit:f.length===y.limit&&C.length{if(x===void 0)return C!==void 0?-1:0;if(C===void 0)return 1;if((x=Xt(x,C))===0){if(B&&R)return 0;if(B)return 1;if(R)return-1}return x})(f.lower,y.lower,f.lowerOpen,y.lowerOpen)<=0&&0<=((x,C,B,R)=>{if(x===void 0)return C!==void 0?1:0;if(C===void 0)return-1;if((x=Xt(x,C))===0){if(B&&R)return 0;if(B)return-1;if(R)return 1}return x})(f.upper,y.upper,f.upperOpen,y.upperOpen)}function $h(f,y,x,C){f.subscribers.add(x),C.addEventListener("abort",function(){var B,R;f.subscribers.delete(x),f.subscribers.size===0&&(B=f,R=y,setTimeout(function(){B.subscribers.size===0&&ye(R,B)},3e3))})}var Wh={stack:"dbcore",level:0,name:"Cache",create:function(f){var y=f.schema.name;return r(r({},f),{transaction:function(x,C,B){var R,U,V=f.transaction(x,C,B);return C==="readwrite"&&(B=(R=new AbortController).signal,V.addEventListener("abort",(U=function(M){return function(){if(R.abort(),C==="readwrite"){for(var K=new Set,Z=0,J=x;Z{var xe=Ia["idb://".concat(ge,"/").concat(pe)];if(!xe)return[];if(!(ge=xe.queries[ce]))return[null,!1,xe,null];var De=ge[(_e.query?_e.query.index.name:null)||""];if(!De)return[null,!1,xe,null];switch(ce){case"query":var Be=(Ze=_e.direction)!=null?Ze:"next",Ze=De.find(function(Ye){var Ve;return Ye.req.limit===_e.limit&&Ye.req.values===_e.values&&((Ve=Ye.req.direction)!=null?Ve:"next")===Be&&cl(Ye.req.query.range,_e.query.range)});return Ze?[Ze,!0,xe,De]:[De.find(function(Ye){var Ve;return("limit"in Ye.req?Ye.req.limit:1/0)>=_e.limit&&((Ve=Ye.req.direction)!=null?Ve:"next")===Be&&(!_e.values||Ye.req.values)&&Uh(Ye.req.query.range,_e.query.range)}),!1,xe,De];case"count":return Ze=De.find(function(Ye){return cl(Ye.req.query.range,_e.query.range)}),[Ze,!!Ze,xe,De]}})(y,x,"query",R),se=J[0],K=J[2],Z=J[3],se&&J[1]?se.obsSet=R.obsSet:(J=C.query(R).then(function(ge){var pe=ge.result;if(se&&(se.res=pe),U){for(var ce=0,_e=pe.length;ce<_e;++ce)Object.freeze(pe[ce]);Object.freeze(pe)}else ge.result=te(pe);return ge}).catch(function(ge){return Z&&se&&ye(Z,se),Promise.reject(ge)}),se={obsSet:R.obsSet,promise:J,subscribers:new Set,type:"query",req:R,dirty:!1},Z?Z.push(se):(Z=[se],(K=K||(Ia["idb://".concat(y,"/").concat(x)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[R.query.index.name||""]=Z)),$h(se,Z,V,M),se.promise.then(function(ge){return{result:dl(ge.result,R,K?.optimisticOps,C,se,U)}})):C.query(R)}})}})}};function Nu(f,y){return new Proxy(f,{get:function(x,C,B){return C==="db"?y:Reflect.get(x,C,B)}})}vo.prototype.version=function(f){if(isNaN(f)||f<.1)throw new we.Type("Given version is not a positive number");if(f=Math.round(10*f)/10,this.idbdb||this._state.isBeingOpened)throw new we.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,f);var y=this._versions,x=y.filter(function(C){return C._cfg.version===f})[0];return x||(x=new this.Version(f),y.push(x),y.sort(Hh),x.stores({}),this._state.autoSchema=!1),x},vo.prototype._whenReady=function(f){var y=this;return this.idbdb&&(this._state.openComplete||qe.letThrough||this._vip)?f():new Ae(function(x,C){if(y._state.openComplete)return C(new we.DatabaseClosed(y._state.dbOpenError));if(!y._state.isBeingOpened){if(!y._state.autoOpen)return void C(new we.DatabaseClosed);y.open().catch(tt)}y._state.dbReadyPromise.then(x,C)}).then(f)},vo.prototype.use=function(B){var y=B.stack,x=B.create,C=B.level,B=B.name,R=(B&&this.unuse({stack:y,name:B}),this._middlewares[y]||(this._middlewares[y]=[]));return R.push({stack:y,create:x,level:C??10,name:B}),R.sort(function(U,V){return U.level-V.level}),this},vo.prototype.unuse=function(f){var y=f.stack,x=f.name,C=f.create;return y&&this._middlewares[y]&&(this._middlewares[y]=this._middlewares[y].filter(function(B){return C?B.create!==C:!!x&&B.name!==x})),this},vo.prototype.open=function(){var f=this;return Na(nt,function(){return zh(f)})},vo.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var f=this._state;if(Ei.remove(this),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}f.isBeingOpened||(f.dbReadyPromise=new Ae(function(y){f.dbReadyResolve=y}),f.openCanceller=new Ae(function(y,x){f.cancelOpen=x}))},vo.prototype.close=function(y){var y=(y===void 0?{disableAutoOpen:!0}:y).disableAutoOpen,x=this._state;y?(x.isBeingOpened&&x.cancelOpen(new we.DatabaseClosed),this._close(),x.autoOpen=!1,x.dbOpenError=new we.DatabaseClosed):(this._close(),x.autoOpen=this._options.autoOpen||x.isBeingOpened,x.openComplete=!1,x.dbOpenError=null)},vo.prototype.delete=function(f){var y=this,x=(f===void 0&&(f={disableAutoOpen:!0}),0{var Ze=Ur();try{R&&Ra();var Ye=da(f,Be);return Ye=R?Ye.finally(ca):Ye}finally{Ze&&Fa()}})(xe={subscr:_e,signal:U.signal,requery:se,querier:f,trans:null}),J||(fa(gs,pe),J=!0),Promise.resolve(De).then(function(Be){x=!0,y=Be,V||xe.signal.aborted||(ge()||(K=_e,ge())?se():(M={},G1(function(){return!V&&B.next&&B.next(Be)})))},function(Be){x=!1,["DatabaseClosedError","AbortError"].includes(Be?.name)||V||G1(function(){V||B.error&&B.error(Be)})}))};return setTimeout(se,0),Z});return C.hasValue=function(){return x},C.getValue=function(){return y},C}var xn=Vn;function gl(f){var y=_a;try{_a=!0,fa.storagemutated.fire(f),ki(f,!0)}finally{_a=y}}g(xn,r(r({},Ce),{delete:function(f){return new xn(f,{addons:[]}).delete()},exists:function(f){return new xn(f,{addons:[]}).open().then(function(y){return y.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(f){try{return y=xn.dependencies,x=y.indexedDB,y=y.IDBKeyRange,(nl(x)?Promise.resolve(x.databases()).then(function(C){return C.map(function(B){return B.name}).filter(function(B){return B!==_u})}):dr(x,y).toCollection().primaryKeys()).then(f)}catch{return Mo(new we.MissingAPI)}var y,x},defineClass:function(){return function(f){u(this,f)}},ignoreTransaction:function(f){return qe.trans?Na(qe.transless||nt,f):f()},vip:cr,async:function(f){return function(){try{var y=Bu(f.apply(this,arguments));return y&&typeof y.then=="function"?y:Ae.resolve(y)}catch(x){return Mo(x)}}},spawn:function(f,y,x){try{var C=Bu(f.apply(x,y||[]));return C&&typeof C.then=="function"?C:Ae.resolve(C)}catch(B){return Mo(B)}},currentTransaction:{get:function(){return qe.trans||null}},waitFor:function(f,y){return f=Ae.resolve(typeof f=="function"?xn.ignoreTransaction(f):f).timeout(y||6e4),qe.trans?qe.trans.waitFor(f):f},Promise:Ae,debug:{get:function(){return ot},set:function(f){Je(f)}},derive:_,extend:u,props:g,override:S,Events:pa,on:fa,liveQuery:Kn,extendObservabilitySet:Su,getByKeyPath:L,setByKeyPath:$,delByKeyPath:function(f,y){typeof y=="string"?$(f,y,void 0):"length"in y&&[].map.call(y,function(x){$(f,x,void 0)})},shallowClone:H,deepClone:te,getObjectDiff:Es,cmp:Xt,asap:O,minKey:-1/0,addons:[],connections:{get:Ei.toArray},errnames:rt,dependencies:Mu,cache:Ia,semVer:"4.4.2",version:"4.4.2".split(".").map(function(f){return parseInt(f)}).reduce(function(f,y,x){return f+y/Math.pow(10,2*x)})})),xn.maxKey=ps(xn.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(fa(gs,function(f){_a||(f=new CustomEvent(X1,{detail:f}),_a=!0,dispatchEvent(f),_a=!1)}),addEventListener(X1,function(f){f=f.detail,_a||gl(f)}));var ks,_a=!1,Pa=function(){};return typeof BroadcastChannel<"u"&&((Pa=function(){(ks=new BroadcastChannel(X1)).onmessage=function(f){return f.data&&gl(f.data)}})(),typeof ks.unref=="function"&&ks.unref(),fa(gs,function(f){_a||ks.postMessage(f)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(f){if(!Vn.disableBfCache&&f.persisted){ot&&console.debug("Dexie: handling persisted pagehide"),ks?.close();for(var y=0,x=Ei.toArray();y{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},VD=e=>({version:e.version,versionNonce:e.versionNonce}),Gg=e=>e.reduce((t,o)=>(t[o.id]=VD(o),t),{}),kj=(e,t)=>{if(t.length===0)return e;const o={...e};return t.forEach(r=>{o[r.id]=VD(r)}),o},xj=(e,t)=>e.filter(o=>{const r=t[o.id];return r?.version!==o.version||r.versionNonce!==o.versionNonce});function KD(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 i=e[a],s=t[a],u=Aa.isObject(i)&&Aa.isObject(s);if((u&&!KD(i,s,o)||!u&&i!==s)&&!o.includes(a))return!1}return!0}function wj(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 Tj(e,t,o){const r=new Set,n=vj(e),a=[];for(const i of t)if(!r.has(i.id)){const s=n.get(i.id),u=wj(o,s,i);s&&u?(a.push(s),r.add(s.id)):(a.push(i),r.add(i.id))}for(const i of e)r.has(i.id)||(a.push(i),r.add(i.id));return a}const Cj=50;function Aj(){const e=z.useRef(null),t=z.useRef(null),o=z.useRef(new Map),r=z.useRef(null),{excalidrawAPI:n}=br(fo(le=>({excalidrawAPI:le.excalidrawAPI}))),{getJWT:a,clearTokens:i}=Pr(fo(le=>({getJWT:le.getJWT,clearTokens:le.clearTokens}))),{fileId:s}=Wo(fo(le=>({fileId:le.fileId}))),u=z.useMemo(()=>typeof window>"u"?"viewer":w1("whiteboard","isRecording",!1)?"recording":"viewer",[]),{setStatus:l,setSocket:F,setDedicatedSyncer:c,incrementAuthFailure:g,clearAuthError:p,resetStore:m,setIsInRoom:_}=qt(fo(le=>({setStatus:le.setStatus,setSocket:le.setSocket,setDedicatedSyncer:le.setDedicatedSyncer,incrementAuthFailure:le.incrementAuthFailure,clearAuthError:le.clearAuthError,resetStore:le.resetStore,setIsInRoom:le.setIsInRoom}))),D=z.useCallback(le=>{if(n)try{const oe=Hd(le,null),ke=n.getSceneElementsIncludingDeleted()||[],Oe=n.getAppState(),Ie=gj(ke,oe,Oe);n.updateScene({elements:Ie});const rt=n.getFiles(),lt=qt.getState().socket;lt?.connected&&s&&oe.filter(we=>we.type==="image"&&we.fileId&&!rt[we.fileId]).forEach(we=>{const Yt=we.fileId;console.log(`[Collaboration] Requesting missing image: ${Yt}`),lt.emit("image-get",`${s}`,Yt)})}catch(oe){console.error("[Collaboration] Error reconciling remote elements:",oe)}},[n,s]),E=z.useCallback(le=>{if(n)try{n.getFiles()[le.id]?console.log(`[Collaboration] Image already exists: ${le.id}, skipping`):(console.log(`[Collaboration] Adding received image: ${le.id}`),n.addFiles([le]))}catch(oe){console.error("[Collaboration] Error processing received image:",oe)}},[n]),k=z.useCallback(le=>{if(!n){t.current=le;return}D(le)},[n,D]),S=z.useCallback(le=>{if(!n){o.current.set(le.id,le);return}E(le)},[n,E]),N=z.useCallback(le=>{if(n)try{n.resetScene();const oe=n.getAppState(),ke=_n(le.appState),Oe={...oe,...ke,scrollToContent:le.scrollToContent};n.updateScene({elements:le.elements,appState:Oe});const Ie=Object.values(le.files||{}).filter(rt=>!!rt);Ie.length>0&&n.addFiles(Ie)}catch(oe){console.error("[Collaboration] Error applying restored scene:",oe)}},[n]);z.useEffect(()=>{if(n){if(r.current){const le=r.current;r.current=null,N(le)}if(t.current){const le=t.current;t.current=null,D(le)}if(o.current.size>0){const le=Array.from(o.current.values());o.current.clear(),le.forEach(oe=>{E(oe)})}}},[n,E,D,N]),z.useEffect(()=>{t.current=null,o.current.clear(),r.current=null},[s]);const O=z.useCallback(async le=>{if(!n)return;let oe=null;try{const Oe=await a();if(Oe){const{parseJwt:Ie}=Pr.getState(),rt=Ie(Oe);oe=rt?.user?.id||rt?.userid||null}}catch(Oe){console.error("[Collaboration] Failed to get current user ID:",Oe)}const ke=new Map;le.forEach(Oe=>{Oe.user.id!==oe&&ke.set(Oe.user.id,{id:Oe.user.id,username:Oe.user.name,pointer:Oe.pointer,button:Oe.button,selectedElementIds:Oe.selectedElementIds})}),n.updateScene({collaborators:ke}),console.log(`[Collaboration] Updated collaborators: ${ke.size} users online (filtered out current user)`)},[n,a]),L=z.useCallback(async le=>{if(n)try{let oe=null;try{const Ie=await a();if(Ie){const{parseJwt:rt}=Pr.getState(),lt=rt(Ie);oe=lt?.user?.id||lt?.userid||null}}catch(Ie){console.error("[Collaboration] Failed to get current user ID:",Ie)}if(le.user.id===oe)return;const ke=n.getAppState().collaborators||new Map,Oe=new Map(ke);Oe.set(le.user.id,{id:le.user.id,username:le.user.name,pointer:le.pointer,button:le.button,selectedElementIds:{}}),n.updateScene({collaborators:Oe})}catch(oe){console.error("[Collaboration] Error updating cursor:",oe)}},[n,a]),$=z.useMemo(()=>Aa.throttle(L,Cj,{leading:!1,trailing:!0}),[L]),H=z.useCallback(le=>{if(!le.user?.id||!le.pointer){console.warn("[Collaboration] Invalid cursor payload:",le);return}$({pointer:le.pointer,button:le.button,user:le.user})},[$]),q=z.useCallback(le=>{if(!le.userId||typeof le.scrollX!="number"||typeof le.scrollY!="number"||typeof le.zoom!="number"){console.warn("[Collaboration] Invalid viewport payload:",le);return}const{followedUserId:oe,presenterId:ke,isPresentationMode:Oe,autoFollowPresenter:Ie}=qt.getState();console.log(`[Collaboration] Viewport update received from user ${le.userId}`,{followedUserId:oe,presenterId:ke,isPresentationMode:Oe,autoFollowPresenter:Ie,payload:le});let rt=!1,lt="";if(oe===le.userId?(rt=!0,lt="explicit follow"):Oe&&ke===le.userId&&Ie&&!oe&&(rt=!0,lt="presentation auto-follow"),rt&&n){console.log(`[Collaboration] Applying viewport from ${le.userId} (${lt}):`,le);const we=n.getAppState();n.updateScene({appState:{...we,scrollX:le.scrollX,scrollY:le.scrollY,zoom:{value:le.zoom}}})}else(oe||Oe&&ke)&&console.log(`[Collaboration] Ignoring viewport update from ${le.userId}`,{reason:oe?`following ${oe}`:Oe&&!Ie?"auto-follow disabled":"not presenter"})},[n]),v=z.useCallback(()=>{n&&n.updateScene({collaborators:new Map})},[n]),P=z.useCallback(async()=>{console.log("[Collaboration] Refreshing authentication token..."),l("connecting"),i();try{const le=await a(),oe=qt.getState().socket;if(!le)throw new Error("Failed to obtain new JWT token.");oe?(oe.auth={token:le},oe.connected||oe.connect()):(console.log("[Collaboration] Socket missing, initiating full connection after token refresh."),await Se.current())}catch(le){console.error("[Collaboration] Failed to refresh token or connect:",le),l("offline")}},[a,i,l]),W=z.useMemo(()=>Aa.debounce((le,oe)=>{console.log(`[Collaboration] Debounced join room ${oe}`),le.emit("join-room",oe)},300,{leading:!0,trailing:!1}),[]),te=z.useCallback(()=>{const le=qt.getState().socket,oe=`${s}`;if(!s||!le||!le.connected){console.warn("[Collaboration] Cannot join room:",{hasFileId:!!s,hasSocket:!!le,connected:le?.connected});return}if(e.current===oe){console.log(`[Collaboration] Already joined room ${oe}, skipping`);return}console.log(`[Collaboration] Joining room ${oe}`),e.current=oe,W(le,oe)},[s,W]);let X=null;const ee=z.useCallback(async le=>{try{const oe=JSON.parse(new TextDecoder().decode(le));if(!oe||!oe.type){console.warn("[Collaboration] Invalid broadcast data:",oe);return}if(Wo.getState().isVersionPreview){console.log("[Collaboration] Ignoring broadcast while in version preview");return}switch(oe.type){case"SCENE_RESTORE":{const ke=oe.payload||{};if(!Array.isArray(ke.elements)){console.warn("[Collaboration] Invalid SceneRestore payload:",ke);break}try{const Oe=Hd(ke.elements,null),Ie=ke.files||{},rt=_n(ke.appState),lt=ke.scrollToContent??!0;if(t.current=null,o.current.clear(),n?N({elements:Oe,files:Ie,appState:rt,scrollToContent:lt}):r.current={elements:Oe,files:Ie,appState:rt,scrollToContent:lt},s)try{await Ws.put(s,Oe,Ie||{},rt,{hasPendingLocalChanges:!1,lastSyncedHash:s1(Oe)})}catch(we){console.error("[Collaboration] Failed to persist restored scene to IndexedDB:",we)}}catch(Oe){console.error("[Collaboration] Error handling SceneRestore broadcast:",Oe)}break}case"SCENE_INIT":case"SCENE_UPDATE":if(Array.isArray(oe.payload?.elements)){if(console.log("[Collaboration] Received scene payload",{type:oe.type,elementCount:oe.payload.elements.length,sampleElementIds:oe.payload.elements.slice(0,10).map(ke=>ke.id)}),JSON.stringify(oe.payload.elements)===X){console.warn("[Collaboration] Received identical scene payload, skipping update");break}k(oe.payload.elements),X=JSON.stringify(oe.payload.elements)}else console.warn("[Collaboration] Invalid scene payload:",oe.payload);break;case"MOUSE_LOCATION":oe.payload&&typeof oe.payload=="object"?H(oe.payload):console.warn("[Collaboration] Invalid MouseLocation payload:",oe.payload);break;case"IMAGE_ADD":oe.payload?.file?S(oe.payload.file):console.warn("[Collaboration] Invalid ImageAdd payload:",oe.payload);break;case"IMAGE_REQUEST":if(oe.payload?.fileId&&n){const ke=oe.payload.fileId,Oe=n.getFiles()[ke];if(Oe&&Oe.dataURL){console.log(`[Collaboration] Sending requested image: ${ke}`);const Ie=qt.getState().socket;if(Ie&&Ie.connected&&s){const rt=JSON.stringify({type:"IMAGE_ADD",payload:{file:Oe}}),lt=new TextEncoder().encode(rt);Ie.emit("server-broadcast",`${s}`,lt,[])}}}break;case"VIEWPORT_UPDATE":oe.payload&&typeof oe.payload=="object"?q(oe.payload):console.warn("[Collaboration] Invalid ViewportUpdate payload:",oe.payload);break;default:console.debug("[Collaboration] Unknown broadcast type:",oe.type);break}}catch(oe){console.error("[Collaboration] Error processing client broadcast:",oe)}},[k,H,S,q,n,s,N]),re=z.useCallback(le=>{console.log(`[Collaboration] Sync designation received: ${le.isSyncer}`),c(le.isSyncer)},[c]),fe=z.useCallback(le=>{const{isDedicatedSyncer:oe}=qt.getState();if(oe&&n){console.log(`[Collaboration] Broadcasting full scene to new user: ${le.userName}`);const ke=n.getSceneElementsIncludingDeleted(),Oe=n.getFiles(),Ie=qt.getState().socket;if(!Ie||!Ie.connected||!s)return;const rt=JSON.stringify({type:"SCENE_INIT",payload:{elements:ke}}),lt=new TextEncoder().encode(rt);Ie.emit("server-broadcast",`${s}`,lt,[]),console.log("[Collaboration] Re-broadcasted full scene for room convergence",{targetUser:le.userName,elementsCount:ke.length,sampleElementIds:ke.slice(0,10).map(we=>we.id)}),console.log(`[Collaboration] Broadcasting images to new user: ${le.userName}`),Object.entries(Oe).forEach(([,we])=>{if(we&&we.dataURL){const Yt=JSON.stringify({type:"IMAGE_ADD",payload:{file:we}}),tt=new TextEncoder().encode(Yt);Ie.emit("server-broadcast",`${s}`,tt,[])}})}},[n,s]),ye=z.useCallback(le=>(le.removeAllListeners(),le.on("connect_error",async oe=>{if(console.error("[Collaboration] Connection Error:",oe.message),oe.message.includes("Authentication error")){g("jwt_secret_mismatch","WebSocket authentication failed - possible JWT secret mismatch");const{authError:ke}=qt.getState();if(ke.isPersistent){console.warn("[Collaboration] Persistent authentication failures detected, stopping reconnection attempts"),le.disconnect(),l("offline");return}le.disconnect(),await P()}else l("offline")}),le.on("connect_timeout",()=>{console.warn("[Collaboration] Connection timeout"),l("offline")}),le.on("connect",()=>{console.log("[Collaboration] Socket connect event fired - setting status to online"),l("online"),_(!1);const{authError:oe}=qt.getState();oe.type!=="jwt_secret_mismatch"&&p(),e.current=null,console.log("[Collaboration] Reset room join tracking due to connect event")}),le.on("disconnect",oe=>{console.warn(`[Collaboration] Socket disconnect event fired: ${oe}`),v(),_(!1),oe==="io client disconnect"?(console.log("[Collaboration] Client disconnect - setting status to offline"),l("offline")):(console.log("[Collaboration] Server disconnect detected, Socket.IO will attempt auto-reconnect"),l("reconnecting")),e.current=null,console.log("[Collaboration] Reset room join tracking due to disconnect")}),le.on("reconnect",oe=>{console.log(`[Collaboration] Socket reconnect event fired after ${oe} attempts - setting status to online`),l("online"),_(!1);const{authError:ke}=qt.getState();ke.type!=="jwt_secret_mismatch"&&p(),e.current=null,console.log("[Collaboration] Reset room join tracking due to reconnect event")}),le.on("reconnect_attempt",oe=>{console.log(`[Collaboration] Reconnection attempt ${oe}`),l("reconnecting")}),le.on("reconnect_error",oe=>{console.error("[Collaboration] Reconnection error:",oe)}),le.on("reconnect_failed",()=>{console.error("[Collaboration] Reconnection failed - giving up"),l("offline")}),le.on("reconnect_error",oe=>{console.error("[Collaboration] Reconnection error:",oe)}),le.on("init-room",()=>{console.log("[Collaboration] Received init-room event from server, initiating room join");const oe=e.current;e.current=null,console.log(`[Collaboration] Force reset room join tracking (was: ${oe})`);const ke=qt.getState().status;if((ke==="connecting"||ke==="offline")&&le.connected){console.log(`[Collaboration] Fallback: Setting status to online based on init-room + socket.connected (was: ${ke})`),l("online");const{authError:Oe}=qt.getState();Oe.type!=="jwt_secret_mismatch"&&p()}te()}),le.on("room-user-change",oe=>{console.log(`[Collaboration] Room user change: ${oe.length} users`),_(!0),O(oe)}),le.on("client-broadcast",ee),le.on("sync-designate",re),le.on("user-joined",oe=>{console.log(`[Collaboration] User joined: ${oe.userName} (${oe.userId})`),fe(oe)}),le.on("request-presenter-viewport",async()=>{console.log("[Collaboration] Presenter viewport requested");const{isPresenting:oe}=qt.getState();if(oe&&n){const ke=n.getAppState(),{presenterId:Oe}=qt.getState(),Ie={type:"VIEWPORT_UPDATE",payload:{userId:Oe,scrollX:ke.scrollX||0,scrollY:ke.scrollY||0,zoom:ke.zoom?.value||1}},rt=JSON.stringify(Ie),lt=new TextEncoder().encode(rt);le.emit("server-broadcast",`${s}`,lt,[]),console.log("[Collaboration] Sent presenter viewport:",Ie.payload)}}),le.on("send-viewport-request",async oe=>{const{requesterId:ke}=oe;if(console.log(`[Collaboration] Viewport requested by user ${ke}`),n){const Oe=n.getAppState(),{isPresenting:Ie,presenterId:rt}=qt.getState();let lt="unknown";if(Ie&&rt)lt=rt;else{const Pt=await a();if(Pt)try{const so=JSON.parse(atob(Pt.split(".")[1]));lt=so.userid||so.userId||"unknown"}catch{console.error("[Collaboration] Failed to parse JWT for user ID")}}const we={type:"VIEWPORT_UPDATE",payload:{userId:lt,scrollX:Oe.scrollX||0,scrollY:Oe.scrollY||0,zoom:Oe.zoom?.value||1}},Yt=JSON.stringify(we),tt=new TextEncoder().encode(Yt);le.emit("server-broadcast",`${s}`,tt,[]),console.log("[Collaboration] Sent viewport to requester:",we.payload)}}),le.on("presenter-viewport-update",oe=>{const{viewportData:ke}=oe;ke&&ke.type==="VIEWPORT_UPDATE"&&q(ke.payload)}),le),[l,te,P,O,ee,re,v,fe,n,s,a]),Se=z.useRef(()=>Promise.resolve()),Fe=z.useRef(null),ve=z.useCallback(async()=>{const{socket:le,status:oe}=qt.getState();if(!s){console.warn("[Collaboration] Cannot connect: invalid fileId."),l("offline");return}if(oe==="online"||oe==="connecting"){console.log("[Collaboration] Already online or connecting, skipping connection attempt");return}const{authError:ke}=qt.getState();if(ke.isPersistent&&ke.type==="jwt_secret_mismatch"){console.warn("[Collaboration] Skipping connection attempt due to persistent JWT secret mismatch"),l("offline");return}e.current=null,le&&(console.log("[Collaboration] Disconnecting existing socket before creating new one"),le.disconnect(),F(null),await new Promise(Oe=>setTimeout(Oe,100)));try{l("connecting");const Oe=Wo.getState().collabBackendUrl;if(!Oe)throw new Error("Collaboration backend URL missing.");const Ie=await a();if(!Ie)throw new Error("JWT token missing.");const rt=new URL(Oe),lt=(rt.pathname.endsWith("/")?rt.pathname:rt.pathname+"/")+"socket.io";if(Fe.current){console.log("[Collaboration] Reusing existing socket instance"),Fe.current.auth={token:Ie,clientType:u},ye(Fe.current),F(Fe.current),Fe.current.connected||Fe.current.connect();return}console.log("[Collaboration] Creating new socket instance");const we=vS(rt.origin,{path:lt,auth:{token:Ie,clientType:u},transports:["websocket"],reconnection:!0,reconnectionDelay:1e3,reconnectionDelayMax:1e4,reconnectionAttempts:1/0,perMessageDeflate:{threshold:1024,zlibDeflateOptions:{level:6,memLevel:8,windowBits:15},zlibInflateOptions:{windowBits:15}}});Fe.current=we,ye(we),F(we),we.connect()}catch(Oe){console.error("[Collaboration] Connection initiation failed:",Oe),F(null),Fe.current=null,l("offline")}},[a,l,F,ye,s,u]);z.useEffect(()=>{Se.current=ve},[ve]);const Ce=z.useCallback(()=>{const le=qt.getState().socket;le&&(console.log("[Collaboration] Disconnecting socket"),le.removeAllListeners(),le.disconnect(),F(null),l("offline"),v(),_(!1),e.current=null),Fe.current=null},[F,l,v]);return z.useEffect(()=>(s?(console.log(`[Collaboration] FileId ${s} active, connecting socket`),ve()):(console.log("[Collaboration] No fileId, disconnecting socket"),Ce(),_(!1)),()=>{W.cancel()}),[s,ve,Ce,W]),z.useEffect(()=>()=>{console.log("[Collaboration] Unmounting, performing full cleanup"),W.cancel(),$.cancel(),Ce(),m()},[Ce,m,$,W]),{connect:ve,disconnect:Ce}}var dh="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",Sj="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",Bj="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",S3="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",jj="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",Oj="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",I1="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",Rj="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",Nj="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",Mj="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",Lj="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",Pp="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",Ij="M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z",QD="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",XD="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",qj="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",Yj="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",Pj="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",JD="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",Zj="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",Hj="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",zj="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",Gj="M14,19H18V5H14M6,19H10V5H6V19Z",B3="M8,5.14V19.14L19,12.14L8,5.14Z",Zp="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",j3="M2,3H10A2,2 0 0,1 12,1A2,2 0 0,1 14,3H22V5H21V16H15.25L17,22H15L13.25,16H10.75L9,22H7L8.75,16H3V5H2V3M5,5V14H19V5H5Z",e6="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",Uj="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",O3="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",Fm="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",$j="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",t6="M18,18H6V6H18V18Z",o6="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",Wj="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",r6="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",Vj="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",Kj="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",R3="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",Qj="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",Xj="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 aa(e,t){for(var o in t)e[o]=t[o];return e}var Jj=/[!'()*]/g,eO=function(e){return"%"+e.charCodeAt(0).toString(16)},tO=/%2C/g,Wu=function(e){return encodeURIComponent(e).replace(Jj,eO).replace(tO,",")};function Hp(e){try{return decodeURIComponent(e)}catch{}return e}function oO(e,t,o){t===void 0&&(t={});var r=o||rO,n;try{n=r(e||"")}catch{n={}}for(var a in t){var i=t[a];n[a]=Array.isArray(i)?i.map(N3):N3(i)}return n}var N3=function(e){return e==null||typeof e=="object"?e:String(e)};function rO(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(o){var r=o.replace(/\+/g," ").split("="),n=Hp(r.shift()),a=r.length>0?Hp(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 nO(e){var t=e?Object.keys(e).map(function(o){var r=e[o];if(r===void 0)return"";if(r===null)return Wu(o);if(Array.isArray(r)){var n=[];return r.forEach(function(a){a!==void 0&&(a===null?n.push(Wu(o)):n.push(Wu(o)+"="+Wu(a)))}),n.join("&")}return Wu(o)+"="+Wu(r)}).filter(function(o){return o.length>0}).join("&"):null;return t?"?"+t:""}var Gd=/\/?$/;function Ud(e,t,o,r){var n=r&&r.options.stringifyQuery,a=t.query||{};try{a=zp(a)}catch{}var i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:M3(t,n),matched:e?aO(e):[]};return o&&(i.redirectedFrom=M3(o,n)),Object.freeze(i)}function zp(e){if(Array.isArray(e))return e.map(zp);if(e&&typeof e=="object"){var t={};for(var o in e)t[o]=zp(e[o]);return t}else return e}var Ji=Ud(null,{path:"/"});function aO(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function M3(e,t){var o=e.path,r=e.query;r===void 0&&(r={});var n=e.hash;n===void 0&&(n="");var a=t||nO;return(o||"/")+a(r)+n}function n6(e,t,o){return t===Ji?e===t:t?e.path&&t.path?e.path.replace(Gd,"")===t.path.replace(Gd,"")&&(o||e.hash===t.hash&&Ed(e.query,t.query)):e.name&&t.name?e.name===t.name&&(o||e.hash===t.hash&&Ed(e.query,t.query)&&Ed(e.params,t.params)):!1:!1}function Ed(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 i=e[n],s=r[a];if(s!==n)return!1;var u=t[n];return i==null||u==null?i===u:typeof i=="object"&&typeof u=="object"?Ed(i,u):String(i)===String(u)})}function iO(e,t){return e.path.replace(Gd,"/").indexOf(t.path.replace(Gd,"/"))===0&&(!t.hash||e.hash===t.hash)&&sO(e.query,t.query)}function sO(e,t){for(var o in t)if(!(o in e))return!1;return!0}function a6(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 Wi(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var $d=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},r1=l6,dO=dm,cO=fO,hO=s6,gO=u6,pO=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function dm(e,t){for(var o=[],r=0,n=0,a="",i=t&&t.delimiter||"/",s;(s=pO.exec(e))!=null;){var u=s[0],l=s[1],F=s.index;if(a+=e.slice(n,F),n=F+u.length,l){a+=l[1];continue}var c=e[n],g=s[2],p=s[3],m=s[4],_=s[5],D=s[6],E=s[7];a&&(o.push(a),a="");var k=g!=null&&c!=null&&c!==g,S=D==="+"||D==="*",N=D==="?"||D==="*",O=s[2]||i,L=m||_;o.push({name:p||r++,prefix:g||"",delimiter:O,optional:N,repeat:S,partial:k,asterisk:!!E,pattern:L?bO(L):E?".*":"[^"+kd(O)+"]+?"})}return n1||!N.length)return N.length===0?e():e("span",{},N)}if(this.tag==="a")S.on=k,S.attrs={href:s,"aria-current":D};else{var O=d6(this.$slots.default);if(O){O.isStatic=!1;var L=O.data=aa({},O.data);L.on=L.on||{};for(var $ in L.on){var H=L.on[$];$ in k&&(L.on[$]=Array.isArray(H)?H:[H])}for(var q in k)q in L.on?L.on[q].push(k[q]):L.on[q]=E;var v=O.data.attrs=aa({},O.data.attrs);v.href=s,v["aria-current"]=D}else S.on=k}return e(this.tag,S,this.$slots.default)}};function Y3(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 d6(e){if(e){for(var t,o=0;o-1&&(D.params[N]=m.params[N]);return D.path=xd(k.path,D.params),g(k,D,_)}else if(D.path){D.params={};for(var O=0;O-1}function Qd(e,t){return Kd(e)&&e._isRouter&&(t==null||e.type===t)}function U3(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 YO(e){return function(t,o,r){var n=!1,a=0,i=null;_6(e,function(s,u,l,F){if(typeof s=="function"&&s.cid===void 0){n=!0,a++;var c=$3(function(_){ZO(_)&&(_=_.default),s.resolved=typeof _=="function"?_:Wd.extend(_),l.components[F]=_,a--,a<=0&&r()}),g=$3(function(_){var D="Failed to resolve async component "+F+": "+_;i||(i=Kd(_)?_:new Error(D),r(i))}),p;try{p=s(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 _6(e,t){return b6(e.map(function(o){return Object.keys(o.components).map(function(r){return t(o.components[r],o.instances[r],o,r)})}))}function b6(e){return Array.prototype.concat.apply([],e)}var PO=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ZO(e){return e.__esModule||PO&&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 oa=function(e,t){this.router=e,this.base=HO(t),this.current=Ji,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};oa.prototype.listen=function(e){this.cb=e},oa.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},oa.prototype.onError=function(e){this.errorCbs.push(e)},oa.prototype.transitionTo=function(e,t,o){var r=this,n;try{n=this.router.match(e,this.current)}catch(i){throw this.errorCbs.forEach(function(s){s(i)}),i}var a=this.current;this.confirmTransition(n,function(){r.updateRoute(n),t&&t(n),r.ensureURL(),r.router.afterHooks.forEach(function(i){i&&i(n,a)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(i){i(n)}))},function(i){o&&o(i),i&&!r.ready&&(!Qd(i,lu.redirected)||a!==Ji)&&(r.ready=!0,r.readyErrorCbs.forEach(function(s){s(i)}))})},oa.prototype.confirmTransition=function(e,t,o){var r=this,n=this.current;this.pending=e;var a=function(m){!Qd(m)&&Kd(m)&&(r.errorCbs.length?r.errorCbs.forEach(function(_){_(m)}):console.error(m)),o&&o(m)},i=e.matched.length-1,s=n.matched.length-1;if(n6(e,n)&&i===s&&e.matched[i]===n.matched[s])return this.ensureURL(),e.hash&&Vi(this.router,n,e,!1),a(MO(n,e));var u=zO(this.current.matched,e.matched),l=u.updated,F=u.deactivated,c=u.activated,g=[].concat(UO(F),this.router.beforeHooks,$O(l),c.map(function(m){return m.beforeEnter}),YO(c)),p=function(m,_){if(r.pending!==e)return a(G3(n,e));try{m(e,n,function(D){D===!1?(r.ensureURL(!0),a(LO(n,e))):Kd(D)?(r.ensureURL(!0),a(D)):typeof D=="string"||typeof D=="object"&&(typeof D.path=="string"||typeof D.name=="string")?(a(NO(n,e)),typeof D=="object"&&D.replace?r.replace(D):r.push(D)):_(D)})}catch(D){a(D)}};U3(g,p,function(){var m=WO(c),_=m.concat(r.router.resolveHooks);U3(_,p,function(){if(r.pending!==e)return a(G3(n,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick(function(){a6(e)})})})},oa.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},oa.prototype.setupListeners=function(){},oa.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Ji,this.pending=null};function HO(e){if(!e)if(UF){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 zO(e,t){var o,r=Math.max(e.length,t.length);for(o=0;o0)){var r=this.router,n=r.options.scrollBehavior,a=Ki&&n;a&&this.listeners.push(f6());var i=function(){var s=o.current,u=zl(o.base);o.current===Ji&&u===o._startLocation||o.transitionTo(u,function(l){a&&Vi(r,l,s,!0)})};window.addEventListener("popstate",i),this.listeners.push(function(){window.removeEventListener("popstate",i)})}},t.prototype.go=function(o){window.history.go(o)},t.prototype.push=function(o,r,n){var a=this,i=this,s=i.current;this.transitionTo(o,function(u){Vd(Wi(a.base+u.fullPath)),Vi(a.router,u,s,!1),r&&r(u)},n)},t.prototype.replace=function(o,r,n){var a=this,i=this,s=i.current;this.transitionTo(o,function(u){$p(Wi(a.base+u.fullPath)),Vi(a.router,u,s,!1),r&&r(u)},n)},t.prototype.ensureURL=function(o){if(zl(this.base)!==this.current.fullPath){var r=Wi(this.base+this.current.fullPath);o?Vd(r):$p(r)}},t.prototype.getCurrentLocation=function(){return zl(this.base)},t}(oa);function zl(e){var t=window.location.pathname,o=t.toLowerCase(),r=e.toLowerCase();return e&&(o===r||o.indexOf(Wi(r+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var E6=function(e){function t(o,r,n){e.call(this,o,r),!(n&&KO(this.base))&&W3()}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=Ki&&n;a&&this.listeners.push(f6());var i=function(){var u=o.current;W3()&&o.transitionTo(wd(),function(l){a&&Vi(o.router,l,u,!0),Ki||vd(l.fullPath)})},s=Ki?"popstate":"hashchange";window.addEventListener(s,i),this.listeners.push(function(){window.removeEventListener(s,i)})}},t.prototype.push=function(o,r,n){var a=this,i=this,s=i.current;this.transitionTo(o,function(u){V3(u.fullPath),Vi(a.router,u,s,!1),r&&r(u)},n)},t.prototype.replace=function(o,r,n){var a=this,i=this,s=i.current;this.transitionTo(o,function(u){vd(u.fullPath),Vi(a.router,u,s,!1),r&&r(u)},n)},t.prototype.go=function(o){window.history.go(o)},t.prototype.ensureURL=function(o){var r=this.current.fullPath;wd()!==r&&(o?V3(r):vd(r))},t.prototype.getCurrentLocation=function(){return wd()},t}(oa);function KO(e){var t=zl(e);if(!/^\/#/.test(t))return window.location.replace(Wi(e+"/#"+t)),!0}function W3(){var e=wd();return e.charAt(0)==="/"?!0:(vd("/"+e),!1)}function wd(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function Wp(e){var t=window.location.href,o=t.indexOf("#"),r=o>=0?t.slice(0,o):t;return r+"#"+e}function V3(e){Ki?Vd(Wp(e)):window.location.hash=e}function vd(e){Ki?$p(Wp(e)):window.location.replace(Wp(e))}var QO=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(i){a.stack=a.stack.slice(0,a.index+1).concat(i),a.index++,r&&r(i)},n)},t.prototype.replace=function(o,r,n){var a=this;this.transitionTo(o,function(i){a.stack=a.stack.slice(0,a.index).concat(i),r&&r(i)},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 i=r.current;r.index=n,r.updateRoute(a),r.router.afterHooks.forEach(function(s){s&&s(a,i)})},function(i){Qd(i,lu.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}(oa),Ro=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=TO(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback=t==="history"&&!Ki&&e.fallback!==!1,this.fallback&&(t="hash"),UF||(t="abstract"),this.mode=t,t){case"history":this.history=new D6(this,e.base);break;case"hash":this.history=new E6(this,e.base,this.fallback);break;case"abstract":this.history=new QO(this,e.base);break}},K3={currentRoute:{configurable:!0}};Ro.prototype.match=function(e,t,o){return this.matcher.match(e,t,o)},K3.currentRoute.get=function(){return this.history&&this.history.current},Ro.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 D6||o instanceof E6){var r=function(a){var i=o.current,s=t.options.scrollBehavior,u=Ki&&s;u&&"fullPath"in a&&Vi(t,a,i,!1)},n=function(a){o.setupListeners(),r(a)};o.transitionTo(o.getCurrentLocation(),n,n)}o.listen(function(a){t.apps.forEach(function(i){i._route=a})})}},Ro.prototype.beforeEach=function(e){return Ug(this.beforeHooks,e)},Ro.prototype.beforeResolve=function(e){return Ug(this.resolveHooks,e)},Ro.prototype.afterEach=function(e){return Ug(this.afterHooks,e)},Ro.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ro.prototype.onError=function(e){this.history.onError(e)},Ro.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)},Ro.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)},Ro.prototype.go=function(e){this.history.go(e)},Ro.prototype.back=function(){this.go(-1)},Ro.prototype.forward=function(){this.go(1)},Ro.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]})})):[]},Ro.prototype.resolve=function(e,t,o){t=t||this.history.current;var r=gm(e,t,o,this),n=this.match(r,t),a=n.redirectedFrom||n.fullPath,i=this.history.base,s=XO(i,a,this.mode);return{location:r,route:n,href:s,normalizedTo:r,resolved:n}},Ro.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ro.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==Ji&&this.history.transitionTo(this.history.getCurrentLocation())},Ro.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Ji&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ro.prototype,K3);function Ug(e,t){return e.push(t),function(){var o=e.indexOf(t);o>-1&&e.splice(o,1)}}function XO(e,t,o){var r=o==="hash"?"#"+t:t;return e?Wi(e+"/"+r):r}Ro.install=Gp,Ro.version="3.6.5",Ro.isNavigationFailure=Qd,Ro.NavigationFailureType=lu,Ro.START_LOCATION=Ji,UF&&window.Vue&&window.Vue.use(Ro);function JO(e,t,o){const r=`#initial-state-${e}-${t}`;if(window._nc_initial_state?.has(r))return window._nc_initial_state.get(r);window._nc_initial_state||(window._nc_initial_state=new Map);const n=document.querySelector(r);if(n===null)return o;try{const a=JSON.parse(atob(n.value));return window._nc_initial_state.set(r,a),a}catch(a){return console.error("[@nextcloud/initial-state] Could not parse initial state",{key:t,app:e,error:a}),o}}function Q3(){return JO("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}const eR={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var tR=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()])])])},oR=[],rR=ho(eR,tR,oR,!1,null,null);const nR=rR.exports;var aR=Object.defineProperty,X3=Object.getOwnPropertySymbols,iR=Object.prototype.hasOwnProperty,sR=Object.prototype.propertyIsEnumerable,J3=(e,t,o)=>t in e?aR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,eb=(e,t)=>{for(var o in t||(t={}))iR.call(t,o)&&J3(e,o,t[o]);if(X3)for(var o of X3(t))sR.call(t,o)&&J3(e,o,t[o]);return e},uR,lR;(uR=window._vue_richtext_widgets)!=null||(window._vue_richtext_widgets={}),(lR=window._registerWidget)!=null||(window._registerWidget=(e,t,o,r)=>{FR(e,t,o,r)});function FR(e,t,o=()=>{},r){const n=eb({hasInteractiveView:!0,fullWidth:!1},r);if(window._vue_richtext_widgets[e]){Dn.error("[ReferencePicker]: Widget for id ".concat(e," already registered"));return}window._vue_richtext_widgets[e]=eb({id:e,callback:t,onDestroy:o},n)}function dR(e,t){const{richObjectType:o,richObject:r,accessible:n,interactive:a}=t;if(o!=="open-graph"){if(!window._vue_richtext_widgets[o]){Dn.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 cR(e,t){e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(t)}function tb(e){return!!window._vue_richtext_widgets[e]}function hR(e){var t;return!!((t=window._vue_richtext_widgets[e])!=null&&t.hasInteractiveView)}function gR(e){var t;return!!((t=window._vue_richtext_widgets[e])!=null&&t.fullWidth)}var pR,fR;(pR=window._vue_richtext_custom_picker_elements)!=null||(window._vue_richtext_custom_picker_elements={}),(fR=window._registerCustomPickerElement)!=null||(window._registerCustomPickerElement=_R);function yF(e){return!!window._vue_richtext_custom_picker_elements[e]}function mR(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 _R(e,t,o=()=>{},r="large"){if(window._vue_richtext_custom_picker_elements[e]){Dn.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 bR(e,t){const{providerId:o,accessible:r}=t;if(!window._vue_richtext_custom_picker_elements[o]){Dn.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 yR(e,t,o){window._vue_richtext_custom_picker_elements[e]&&window._vue_richtext_custom_picker_elements[e].onDestroy(t,o)}const DR={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 ER=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)},kR=[],xR=ho(DR,ER,kR,!1,null,"e5f606f7");const fm=xR.exports;var wR=Object.defineProperty,vR=Object.defineProperties,TR=Object.getOwnPropertyDescriptors,ob=Object.getOwnPropertySymbols,CR=Object.prototype.hasOwnProperty,AR=Object.prototype.propertyIsEnumerable,rb=(e,t,o)=>t in e?wR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,SR=(e,t)=>{for(var o in t||(t={}))CR.call(t,o)&&rb(e,o,t[o]);if(ob)for(var o of ob(t))AR.call(t,o)&&rb(e,o,t[o]);return e},BR=(e,t)=>vR(e,TR(t));function k6(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=k6(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)}},OR=null,RR=null;var NR=ho(jR,OR,RR,!1,null,null);const gh=NR.exports;var Vp={exports:{}},MR=Vp.exports,nb;function LR(){return nb||(nb=1,function(e,t){(function(o,r){e.exports=r()})(typeof self<"u"?self:MR,function(){return(()=>{var o={646:i=>{i.exports=function(s){if(Array.isArray(s)){for(var u=0,l=new Array(s.length);u{i.exports=function(s,u,l){return u in s?Object.defineProperty(s,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[u]=l,s}},860:i=>{i.exports=function(s){if(Symbol.iterator in Object(s)||Object.prototype.toString.call(s)==="[object Arguments]")return Array.from(s)}},206:i=>{i.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(i,s,u)=>{var l=u(646),F=u(860),c=u(206);i.exports=function(g){return l(g)||F(g)||c()}},8:i=>{function s(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i.exports=s=function(l){return typeof l}:i.exports=s=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},s(u)}i.exports=s}},r={};function n(i){var s=r[i];if(s!==void 0)return s.exports;var u=r[i]={exports:{}};return o[i](u,u.exports,n),u.exports}n.n=i=>{var s=i&&i.__esModule?()=>i.default:()=>i;return n.d(s,{a:s}),s},n.d=(i,s)=>{for(var u in s)n.o(s,u)&&!n.o(i,u)&&Object.defineProperty(i,u,{enumerable:!0,get:s[u]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{VueSelect:()=>$,default:()=>q,mixins:()=>H});var i=n(319),s=n.n(i),u=n(8),l=n.n(u),F=n(713),c=n.n(F);const g={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(v){var P=this;this.autoscroll&&v&&this.$nextTick(function(){return P.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var v,P=((v=this.$refs.dropdownMenu)===null||v===void 0?void 0:v.children[this.typeAheadPointer])||!1;if(P){var W=this.getDropdownViewport(),te=P.getBoundingClientRect(),X=te.top,ee=te.bottom,re=te.height;if(XW.bottom)return this.$refs.dropdownMenu.scrollTop=P.offsetTop-(W.height-re)}},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 v=0;v=0;v--)if(this.selectable(this.filteredOptions[v])){this.typeAheadPointer=v;break}},typeAheadDown:function(){for(var v=this.typeAheadPointer+1;v0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=v??!this.mutableLoading}}};function _(v,P,W,te,X,ee,re,fe){var ye,Se=typeof v=="function"?v.options:v;return P&&(Se.render=P,Se.staticRenderFns=W,Se._compiled=!0),{exports:v,options:Se}}const D={Deselect:_({},function(){var v=this.$createElement,P=this._self._c||v;return P("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[P("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 v=this.$createElement,P=this._self._c||v;return P("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[P("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(v,P,W){var te=W.context;if(te.appendToBody){document.body.appendChild(v);var X=te.$refs.toggle.getBoundingClientRect(),ee=X.height,re=X.top,fe=X.left,ye=X.width,Se=window.scrollX||window.pageXOffset,Fe=window.scrollY||window.pageYOffset;v.unbindPosition=te.calculatePosition(v,te,{width:ye+"px",left:Se+fe+"px",top:Fe+re+ee+"px"})}},unbind:function(v,P,W){W.context.appendToBody&&(v.unbindPosition&&typeof v.unbindPosition=="function"&&v.unbindPosition(),v.parentNode&&v.parentNode.removeChild(v))}},k=function(v){var P={};return Object.keys(v).sort().forEach(function(W){P[W]=v[W]}),JSON.stringify(P)};var S=0;const N=function(){return++S};function O(v,P){var W=Object.keys(v);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(v);P&&(te=te.filter(function(X){return Object.getOwnPropertyDescriptor(v,X).enumerable})),W.push.apply(W,te)}return W}function L(v){for(var P=1;P-1}},filter:{type:Function,default:function(v,P){var W=this;return v.filter(function(te){var X=W.getOptionLabel(te);return typeof X=="number"&&(X=X.toString()),W.filterBy(te,X,P)})}},createOption:{type:Function,default:function(v){return l()(this.optionList[0])==="object"?c()({},this.label,v):v}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(v){return["function","boolean"].includes(l()(v))}},clearSearchOnBlur:{type:Function,default:function(v){var P=v.clearSearchOnSelect,W=v.multiple;return P&&!W}},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(v,P){return v}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(v,P,W){var te=W.width,X=W.top,ee=W.left;v.style.top=X,v.style.left=ee,v.style.width=te}},dropdownShouldOpen:{type:Function,default:function(v){var P=v.noDrop,W=v.open,te=v.mutableLoading;return!P&&W&&!te}},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 v=this.value;return this.isTrackingValues&&(v=this.$data._value),v!=null&&v!==""?[].concat(v):[]},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 v=this,P={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 v.isComposing=!0},compositionend:function(){return v.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(W){return v.search=W.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:P,listFooter:P,header:L({},P,{deselect:this.deselect}),footer:L({},P,{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 v=this,P=function(ee){return v.limit!==null?ee.slice(0,v.limit):ee},W=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return P(W);var te=this.search.length?this.filter(W,this.search,this):W;if(this.taggable&&this.search.length)try{var X=this.createOption(this.search);this.optionExists(X)||te.unshift(X)}catch{}return P(te)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(v,P){var W=this;!this.taggable&&(typeof W.resetOnOptionsChange=="function"?W.resetOnOptionsChange(v,P,W.selectedValue):W.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(v){this.isTrackingValues&&this.setInternalValueFromOptions(v)}},multiple:function(){this.clearSelection()},open:function(v){this.$emit(v?"open":"close")},search:function(v){v.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(v){var P=this;Array.isArray(v)?this.$data._value=v.map(function(W){return P.findOptionFromReducedValue(W)}):this.$data._value=this.findOptionFromReducedValue(v)},select:function(v){this.$emit("option:selecting",v),this.isOptionSelected(v)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(v):(this.taggable&&!this.optionExists(v)&&this.$emit("option:created",v),this.multiple&&(v=this.selectedValue.concat(v)),this.updateValue(v),this.$emit("option:selected",v)),this.onAfterSelect(v)},deselect:function(v){var P=this;this.$emit("option:deselecting",v),this.updateValue(this.selectedValue.filter(function(W){return!P.optionComparator(W,v)})),this.$emit("option:deselected",v)},keyboardDeselect:function(v,P){var W,te;this.deselect(v);var X=(W=this.$refs.deselectButtons)===null||W===void 0?void 0:W[P+1],ee=(te=this.$refs.deselectButtons)===null||te===void 0?void 0:te[P-1],re=X??ee;re?re.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(v){var P=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return P.$refs.search.focus()})},updateValue:function(v){var P=this;this.value===void 0&&(this.$data._value=v),v!==null&&(v=Array.isArray(v)?v.map(function(W){return P.reduce(W)}):this.reduce(v)),this.$emit("input",v)},toggleDropdown:function(v){var P=v.target!==this.searchEl;P&&v.preventDefault();var W=[].concat(s()(this.$refs.deselectButtons||[]),s()([this.$refs.clearButton]));this.searchEl===void 0||W.filter(Boolean).some(function(te){return te.contains(v.target)||te===v.target})?v.preventDefault():this.open&&P?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(v){var P=this;return this.selectedValue.some(function(W){return P.optionComparator(W,v)})},isOptionDeselectable:function(v){return this.isOptionSelected(v)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(v){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&v===this.typeAheadPointer},optionComparator:function(v,P){return this.getOptionKey(v)===this.getOptionKey(P)},findOptionFromReducedValue:function(v){var P=this,W=[].concat(s()(this.options),s()(this.pushedTags)).filter(function(te){return JSON.stringify(P.reduce(te))===JSON.stringify(v)});return W.length===1?W[0]:W.find(function(te){return P.optionComparator(te,P.$data._value)})||v},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var v=null;this.multiple&&(v=s()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(v)}},optionExists:function(v){var P=this;return this.optionList.some(function(W){return P.optionComparator(W,v)})},optionAriaSelected:function(v){return this.selectable(v)?String(this.isOptionSelected(v)):null},normalizeOptionForSlot:function(v){return l()(v)==="object"?v:c()({},this.label,v)},pushTag:function(v){this.pushedTags.push(v)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var v=this.clearSearchOnSelect,P=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:v,multiple:P})&&(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(v,P){this.isKeyboardNavigation=!1,this.selectable(v)&&(this.typeAheadPointer=P)},onSearchKeyDown:function(v){var P=this,W=function(ee){if(ee.preventDefault(),P.open)return!P.isComposing&&P.typeAheadSelect();P.open=!0},te={8:function(ee){return P.maybeDeleteValue()},9:function(ee){return P.onTab()},27:function(ee){return P.onEscape()},38:function(ee){if(ee.preventDefault(),P.isKeyboardNavigation=!0,P.open)return P.typeAheadUp();P.open=!0},40:function(ee){if(ee.preventDefault(),P.isKeyboardNavigation=!0,P.open)return P.typeAheadDown();P.open=!0}};this.selectOnKeyCodes.forEach(function(ee){return te[ee]=W});var X=this.mapKeydown(te,this);if(typeof X[v.keyCode]=="function")return X[v.keyCode](v)},onSearchKeyPress:function(v){this.open||v.keyCode!==32||(v.preventDefault(),this.open=!0)}}},function(){var v=this,P=v.$createElement,W=v._self._c||P;return W("div",{staticClass:"v-select",class:v.stateClasses,attrs:{id:"v-select-"+v.uid,dir:v.dir}},[v._t("header",null,null,v.scope.header),v._v(" "),W("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[W("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:v.toggleDropdown}},[v._l(v.selectedValue,function(te,X){return v._t("selected-option-container",[W("span",{key:v.getOptionKey(te),staticClass:"vs__selected"},[v._t("selected-option",[v._v(` + `+v._s(v.getOptionLabel(te))+` + `)],null,v.normalizeOptionForSlot(te)),v._v(" "),v.multiple?W("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:v.disabled,type:"button",title:v.ariaLabelDeselectOption(v.getOptionLabel(te)),"aria-label":v.ariaLabelDeselectOption(v.getOptionLabel(te))},on:{mousedown:function(ee){return ee.stopPropagation(),v.deselect(te)},keydown:function(ee){return!ee.type.indexOf("key")&&v._k(ee.keyCode,"enter",13,ee.key,"Enter")?null:v.keyboardDeselect(te,X)}}},[W(v.childComponents.Deselect,{tag:"component"})],1):v._e()],2)],{option:v.normalizeOptionForSlot(te),deselect:v.deselect,multiple:v.multiple,disabled:v.disabled})}),v._v(" "),v._t("search",[W("input",v._g(v._b({staticClass:"vs__search"},"input",v.scope.search.attributes,!1),v.scope.search.events))],null,v.scope.search)],2),v._v(" "),W("div",{ref:"actions",staticClass:"vs__actions"},[W("button",{directives:[{name:"show",rawName:"v-show",value:v.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:v.disabled,type:"button",title:v.ariaLabelClearSelected,"aria-label":v.ariaLabelClearSelected},on:{click:v.clearSelection}},[W(v.childComponents.Deselect,{tag:"component"})],1),v._v(" "),v.noDrop?v._e():W("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+v.uid+"__listbox","aria-controls":"vs-"+v.uid+"__listbox","aria-expanded":v.dropdownOpen.toString()},on:{mousedown:v.toggleDropdown}},[v._t("open-indicator",[W(v.childComponents.OpenIndicator,v._b({tag:"component"},"component",v.scope.openIndicator.attributes,!1))],null,v.scope.openIndicator)],2),v._v(" "),v._t("spinner",[W("div",{directives:[{name:"show",rawName:"v-show",value:v.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[v._v("Loading...")])],null,v.scope.spinner)],2)]),v._v(" "),W("transition",{attrs:{name:v.transition}},[v.dropdownOpen?W("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+v.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+v.uid+"__listbox",role:"listbox","aria-label":v.ariaLabelListbox,"aria-multiselectable":v.multiple,tabindex:"-1"},on:{mousedown:function(te){return te.preventDefault(),v.onMousedown(te)},mouseup:v.onMouseUp}},[v._t("list-header",null,null,v.scope.listHeader),v._v(" "),v._l(v.filteredOptions,function(te,X){return W("li",{key:v.getOptionKey(te),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":v.isOptionDeselectable(te)&&X===v.typeAheadPointer,"vs__dropdown-option--selected":v.isOptionSelected(te),"vs__dropdown-option--highlight":X===v.typeAheadPointer,"vs__dropdown-option--kb-focus":v.hasKeyboardFocusBorder(X),"vs__dropdown-option--disabled":!v.selectable(te)},attrs:{id:"vs-"+v.uid+"__option-"+X,role:"option","aria-selected":v.optionAriaSelected(te)},on:{mousemove:function(ee){return v.onMouseMove(te,X)},click:function(ee){ee.preventDefault(),ee.stopPropagation(),v.selectable(te)&&v.select(te)}}},[v._t("option",[v._v(` + `+v._s(v.getOptionLabel(te))+` + `)],null,v.normalizeOptionForSlot(te))],2)}),v._v(" "),v.filteredOptions.length===0?W("li",{staticClass:"vs__no-options"},[v._t("no-options",[v._v(` + Sorry, no matching options. + `)],null,v.scope.noOptions)],2):v._e(),v._v(" "),v._t("list-footer",null,null,v.scope.listFooter)],2):W("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+v.uid+"__listbox",role:"listbox","aria-label":v.ariaLabelListbox}})]),v._v(" "),v._t("footer",null,null,v.scope.footer)],2)},[]).exports,H={ajax:m,pointer:p,pointerScroll:g},q=$})(),a})()})}(Vp)),Vp.exports}var Os=LR();const IR={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qR=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()])])])},YR=[],PR=ho(IR,qR,YR,!1,null,null);const ZR=PR.exports,HR={name:"NcEllipsisedOption",components:{NcHighlight:gh},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?k6(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var zR=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)},GR=[],UR=ho(HR,zR,GR,!1,null,"592b8444");const $R=UR.exports,x6=an(w6());window.addEventListener("resize",()=>{x6.value=w6()});function w6(){return window.outerHeight===window.screen.height}im(x6);const mm=1024,v6=mm/2,Xd=e=>document.documentElement.clientWidth{ab.value=Xd(mm),WR.value=Xd(v6)},{passive:!0}),im(ab);var Kp={exports:{}},VR=Kp.exports,ib;function KR(){return ib||(ib=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"),i=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function u(m,_,D){m=m||"",_=_||[],D=D||"";let E=F(_,D);return c(m,E)}function l(m,_){m=m||[],_=_||"";let D=F(m,_);return function(E){return c(E||"",D)}}u.init_streaming_mode=l;function F(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,S=_.tag_buffer,N=_.depth,O=_.in_quote_char,L="";for(let $=0,H=m.length;$":if(O)break;if(N){N--;break}O="",k=r,S+=">",D.has(p(S))?L+=S:L+=E,S="";break;case'"':case"'":q===O?O="":O=O||q,S+=q;break;case"-":S==="":S.slice(-2)=="--"&&(k=r),S="";break;default:S+=q;break}}return _.state=k,_.tag_buffer=S,_.depth=N,_.in_quote_char=O,L}function g(m){let _=new Set;if(typeof m=="string"){let D;for(;D=i.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 _=s.exec(m);return _?_[1].toLowerCase():null}e.exports?e.exports=u:t.striptags=u})(VR)}(Kp)),Kp.exports}KR();function Jd(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}Jd();const QR=Symbol.for("nc:theme:enforced");function XR(e){const t=In(()=>{var a;return(a=Fi(e))!=null?a:document.body}),o=an(Jd(t.value)),r=RS();function n(){o.value=Jd(t.value)}return NS(t,n,{attributes:!0}),_F(t,n),_F(r,n,{immediate:!0}),im(o)}const JR=jS(()=>XR());function eN(){const e=JR(),t=OS(QR,void 0);return In(()=>t?.value?t.value==="dark":e.value)}var Vu={},Sl={},Bl={},sb;function T6(){if(sb)return Bl;sb=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=void 0;function e(n,a,i){return a=t(a),a in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,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 i=n[Symbol.toPrimitive];if(i!==void 0){var s=i.call(n,a);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}class r{constructor(a,i,s){e(this,"scope",void 0),e(this,"wrapped",void 0),this.scope="".concat(s?r.GLOBAL_SCOPE_PERSISTENT:r.GLOBAL_SCOPE_VOLATILE,"_").concat(btoa(a),"_"),this.wrapped=i}scopeKey(a){return"".concat(this.scope).concat(a)}setItem(a,i){this.wrapped.setItem(this.scopeKey(a),i)}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 Bl.default=r,e(r,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),e(r,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),Bl}var ub;function tN(){if(ub)return Sl;ub=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=void 0;var e=t(T6());function t(i){return i&&i.__esModule?i:{default:i}}function o(i,s,u){return s=r(s),s in i?Object.defineProperty(i,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[s]=u,i}function r(i){var s=n(i,"string");return typeof s=="symbol"?s:s+""}function n(i,s){if(typeof i!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var l=u.call(i,s);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(i)}class a{constructor(s){o(this,"appId",void 0),o(this,"persisted",!1),o(this,"clearedOnLogout",!1),this.appId=s}persist(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=s,this}clearOnLogout(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=s,this}build(){return new e.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}return Sl.default=a,Sl}var lb;function oN(){if(lb)return Vu;lb=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.clearAll=a,Vu.clearNonPersistent=i,Vu.getBuilder=r;var e=o(tN()),t=o(T6());function o(s){return s&&s.__esModule?s:{default:s}}function r(s){return new e.default(s)}function n(s,u){Object.keys(s).filter(l=>u?u(l):!0).map(s.removeItem.bind(s))}function a(){[window.sessionStorage,window.localStorage].map(s=>n(s))}function i(){[window.sessionStorage,window.localStorage].map(s=>n(s,u=>!u.startsWith(t.default.GLOBAL_SCOPE_PERSISTENT)))}return Vu}var _m=oN();un.util.warn;const C6=MS?window:void 0;function Gl(e){var t;const o=Fi(e);return(t=o?.$el)!=null?t:o}function Td(...e){let t,o,r,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,r,n]=e,t=C6):[t,o,r,n]=e,!t)return _d;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(F=>F()),a.length=0},s=(F,c,g,p)=>(F.addEventListener(c,g,p),()=>F.removeEventListener(c,g,p)),u=_F(()=>[Gl(t),Fi(n)],([F,c])=>{if(i(),!F)return;const g=LS(c)?{...c}:c;a.push(...o.flatMap(p=>r.map(m=>s(F,p,m,g))))},{immediate:!0,flush:"post"}),l=()=>{u(),i()};return TD(l),l}let Fb=!1;function db(e,t,o={}){const{window:r=C6,ignore:n=[],capture:a=!0,detectIframe:i=!1}=o;if(!r)return _d;Mp&&!Fb&&(Fb=!0,Array.from(r.document.body.children).forEach(m=>m.addEventListener("click",_d)),r.document.documentElement.addEventListener("click",_d));let s=!0;const u=m=>Fi(n).some(_=>{if(typeof _=="string")return Array.from(r.document.querySelectorAll(_)).some(D=>D===m.target||m.composedPath().includes(D));{const D=Gl(_);return D&&(m.target===D||m.composedPath().includes(D))}});function l(m){const _=Fi(m);return _&&_.$.subTree.shapeFlag===16}function F(m,_){const D=Fi(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 _=Gl(e);if(m.target!=null&&!(!(_ instanceof Element)&&l(e)&&F(e,m))&&!(!_||_===m.target||m.composedPath().includes(_))){if(m.detail===0&&(s=!u(m)),!s){s=!0;return}t(m)}};let g=!1;const p=[Td(r,"click",m=>{g||(g=!0,setTimeout(()=>{g=!1},0),c(m))},{passive:!0,capture:a}),Td(r,"pointerdown",m=>{const _=Gl(e);s=!u(m)&&!!(_&&!m.composedPath().includes(_))},{passive:!0}),i&&Td(r,"blur",m=>{setTimeout(()=>{var _;const D=Gl(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 rN={[y3.mounted](e,t){const o=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=db(e,t.value,{capture:o});else{const[r,n]=t.value;e.__onClickOutside_stop=db(e,r,Object.assign({capture:o},n))}},[y3.unmounted](e){e.__onClickOutside_stop()}};function $g(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function A6(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 Wg=new WeakMap;function aN(e,t=!1){const o=an(t);let r=null,n="";_F(IS(e),s=>{const u=$g(Fi(s));if(u){const l=u;if(Wg.get(l)||Wg.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 s=$g(Fi(e));!s||o.value||(Mp&&(r=Td(s,"touchmove",u=>{nN(u)},{passive:!1})),s.style.overflow="hidden",o.value=!0)},i=()=>{const s=$g(Fi(e));!s||!o.value||(Mp&&r?.(),s.style.overflow=n,Wg.delete(s),o.value=!1)};return TD(i),In({get(){return o.value},set(s){s?a():i()}})}function iN(){let e=!1;const t=an(!1);return(o,r)=>{if(t.value=r.value,e)return;e=!0;const n=aN(o,r.value);_F(t,a=>n.value=a)}}iN();const cb=/(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig;function S6(e,t){const o=(F,c)=>F.startsWith(c)?F.slice(c.length):F,r=(F,...c)=>c.reduce((g,p)=>o(g,p),F);if(!e)return null;const n=/^https?:\/\//.test(t),a=/^[a-z][a-z0-9+.-]*:.+/.test(t);if(!n&&a||n&&!t.startsWith(b3())||!n&&!t.startsWith("/"))return null;const i=n?r(t,b3(),"/index.php"):t,s=r(e.history.base,lS(),"/index.php"),u=r(i,s)||"/",l=e.resolve(u).route;return l.matched.length?l.fullPath:null}function sN(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(t=>t.enabled(e)):[]}var hb={exports:{}},gb={exports:{}},pb;function uN(){return pb||(pb=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-i)&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}};gb.exports=t}()),gb.exports}var Vg,fb;function mb(){if(fb)return Vg;fb=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|(s[p]<<24|s[p]>>>8)&4278255360;s[u>>>5]|=128<>>9<<4)+14]=u;for(var m=n._ff,_=n._gg,D=n._hh,E=n._ii,p=0;p>>0,F=F+S>>>0,c=c+N>>>0,g=g+O>>>0}return e.endian([l,F,c,g])};n._ff=function(a,i,s,u,l,F,c){var g=a+(i&s|~i&u)+(l>>>0)+c;return(g<>>32-F)+i},n._gg=function(a,i,s,u,l,F,c){var g=a+(i&u|s&~u)+(l>>>0)+c;return(g<>>32-F)+i},n._hh=function(a,i,s,u,l,F,c){var g=a+(i^s^u)+(l>>>0)+c;return(g<>>32-F)+i},n._ii=function(a,i,s,u,l,F,c){var g=a+(s^(i|~u))+(l>>>0)+c;return(g<>>32-F)+i},n._blocksize=16,n._digestsize=16,hb.exports=function(a,i){if(a==null)throw new Error("Illegal argument "+a);var s=e.wordsToBytes(n(a,i));return i&&i.asBytes?s:i&&i.asString?r.bytesToString(s):e.bytesToHex(s)}}()),hb.exports}var dN=FN();const cN=uh(dN);$t(qS);class Uo{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 hN(e,t,o){return{r:(o.r-t.r)/e,g:(o.g-t.g)/e,b:(o.b-t.b)/e}}function Qg(e,t,o){const r=[];r.push(t);const n=hN(e,t,o);for(let a=1;a + + + + +`,fN=` + + + +`,mN=` + + + +`,_N=` + + + + + +`,bN=` + + + +`,wb=` + + + + +`,vb=` + + + +`,yN=` + + + +`,DN=` + + + +`;$t(YS),$t(PS);function B6(e){switch(e){case"away":return Qe("away");case"busy":return Qe("busy");case"dnd":return Qe("do not disturb");case"online":return Qe("online");case"invisible":return Qe("invisible");case"offline":return Qe("offline");default:return e}}const EN={online:$u?yN:DN,away:$u?xb:fN,busy:$u?xb:mN,dnd:$u?_N:bN,invisible:$u?wb:vb,offline:$u?wb:vb},kN={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=EN[this.activeStatus])!=null?e:null},ariaLabel(){return this.ariaHidden==="true"?null:Qe("User status: {status}",{status:B6(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(e){var t,o,r,n;if(!e||!((o=(t=$F())==null?void 0:t.user_status)!=null&&o.enabled)){this.fetchedUserStatus=null;return}try{const{data:a}=await bn.get(Ba("/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 xN=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()},wN=[],vN=ho(kN,xN,wN,!1,null,"86b73d39");const TN=vN.exports,CN={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 AN(e,t){let o=e.$parent;for(;o;){if(o.$options.name===t)return o;o=o.$parent}}const ph={mixins:[CN],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=AN(this,"NcActions");t&&t.closeMenu&&t.closeMenu(!1)}}}},SN={name:"NcActionButton",components:{NcIconSvgWrapper:HF},mixins:[ph],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:CD,mdiChevronRight:ZS}},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 BN=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)])},jN=[],ON=ho(SN,BN,jN,!1,null,"595cfbf9");const RN=ON.exports,NN={name:"NcActionLink",mixins:[ph],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 MN=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)])},LN=[],IN=ho(NN,MN,LN,!1,null,"0dc8b2f3");const qN=IN.exports,YN={name:"NcActionRouter",mixins:[ph],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],required:!0},exact:{type:Boolean,default:!1}}};var PN=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)},ZN=[],HN=ho(YN,PN,ZN,!1,null,"bce2dceb");const zN=HN.exports,GN={name:"NcActionText",mixins:[ph],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var UN=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)])},$N=[],WN=ho(GN,UN,$N,!1,null,"6cafaa97");const VN=WN.exports;$t(zS);const j6={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){var t,o;if(!e)return;const r=$F();if(!(!Object.hasOwn(r,"user_status")||!r.user_status.enabled)&&la())try{const{data:n}=await bn.get(Ba("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:a,message:i,icon:s}=n.ocs.data;this.userStatus.status=a,this.userStatus.message=i||"",this.userStatus.icon=s||"",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;Dn.error("Could not fetch user status",{error:n})}}}},O6=_m.getBuilder("nextcloud").persist().build();function KN(e){const t=O6.getItem("user-has-avatar."+e);return typeof t=="string"?!!t:null}function Tb(e,t){e&&O6.setItem("user-has-avatar."+e,t)}const QN={name:"NcAvatar",directives:{ClickOutside:rN},components:{IconDotsHorizontal:AD,NcActions:HS,NcButton:rs,NcIconSvgWrapper:HF,NcLoadingIcon:sm,NcUserStatusIcon:TN},mixins:[j6],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:eN()}},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?Qe("Avatar of {displayName}, {status}",{displayName:(e=this.displayName)!=null?e:this.user,status:B6(this.userStatus.status)}):Qe("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=la())==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}=kb(this.userIdentifier);return{backgroundColor:"rgba(".concat(e,", ").concat(t,", ").concat(o,", 0.1)")}},initialsStyle(){const{r:e,g:t,b:o}=kb(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=S6(this.$router,o.hyperlink);return{ncActionComponent:r?zN:qN,ncActionComponentProps:r?{to:r,icon:o.icon}:{href:o.hyperlink,icon:o.icon},text:o.title}});for(const o of sN(this.contactsMenuData))try{e.push({ncActionComponent:RN,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>o.callback(this.contactsMenuData)},text:o.displayName(this.contactsMenuData),iconSvg:o.iconSvg(this.contactsMenuData)})}catch(r){Dn.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:VN,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(),md("settings:avatar:updated",this.loadAvatarUrl),md("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),md("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){fd("settings:avatar:updated",this.loadAvatarUrl),fd("settings:display-name:updated",this.loadAvatarUrl),fd("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:Qe,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 bn.post(sn("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=pN(e,{size:t,isDarkTheme:this.isDarkTheme,isGuest:this.isGuest});return e===((o=la())==null?void 0:o.uid)&&typeof window.oc_userconfig<"u"&&(r+="?v="+window.oc_userconfig.avatar.version),r},updateImageIfValid(e,t=null){const o=KN(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,Tb(this.user,!0)},r.onerror=n=>{Dn.debug("Invalid avatar url",{error:n,url:e}),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,Tb(this.user,!1)},t&&(r.srcset=t),r.src=e}}};var XN=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)},JN=[],eM=ho(QN,XN,JN,!1,null,"936fbce2");const tM=eM.exports,oM=8,Cb=32,rM={name:"NcListItemIcon",components:{NcAvatar:tM,NcHighlight:gh,NcIconSvgWrapper:HF},mixins:[j6],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:Cb},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:oM,defaultSize:Cb}},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 nM=function(){var e=this,t=e._self._c;return t("span",e._g({staticClass:"option",class:{"option--compact":e.avatarSizet in e?uM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Rs=(e,t)=>{for(var o in t||(t={}))dM.call(t,o)&&Sb(e,o,t[o]);if(Ab)for(var o of Ab(t))cM.call(t,o)&&Sb(e,o,t[o]);return e},z0=(e,t)=>lM(e,FM(t));$t(SD,GS);const hM={name:"NcSelect",components:{ChevronDown:ZR,NcEllipsisedOption:$R,NcListItemIcon:sM,NcLoadingIcon:sm,VueSelect:Os.VueSelect},model:{prop:"modelValue",event:"update:modelValue"},props:z0(Rs(Rs({},Os.VueSelect.props),Os.VueSelect.mixins.reduce((e,t)=>Rs(Rs({},e),t.props),{})),{ariaLabelClearSelected:{type:String,default:Qe("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:Qe("Options")},ariaLabelDeselectOption:{type:Function,default:e=>Qe("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(BD,{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(v1())},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 z0(Rs({},e),{27:o=>{t.open&&o.stopPropagation(),e[27](o)}})}},uid:{type:String,default:()=>v1()},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=zF("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:i}){return t.$el.classList.toggle("select--drop-up",i==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",i==="top"),{}}},a=()=>{cS(t.$refs.toggle,e,{placement:this.placement,middleware:[hS(-1),r,n,gS(),pS({limiter:fS()})]}).then(({x:i,y:s})=>{Object.assign(e.style,{left:"".concat(i,"px"),top:"".concat(s,"px"),width:"".concat(t.$refs.toggle.getBoundingClientRect().width,"px")})})};return dS(t.$refs.toggle,e,a)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(t,o,r)=>{var n,a,i;const s=r.match(e);return s&&((i=(a=(n=t.subname)==null?void 0:n.toLocaleLowerCase)==null?void 0:a.call(n))==null?void 0:i.indexOf(s[1].toLocaleLowerCase()))>-1||"".concat(o," ").concat(t.subname).toLocaleLowerCase().indexOf(r.toLocaleLowerCase())>-1}:Os.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Os.VueSelect.props.label.default},propsToForward(){const e=[...Object.keys(Os.VueSelect.props),...Os.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 z0(Rs({},t),{value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel})},listenersToForward(){return z0(Rs({},this.$listeners),{input:e=>{this.model=e}})}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&un.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&&un.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:Qe}};var gM=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))},pM=[],fM=ho(hM,gM,pM,!1,null,null);const q1=fM.exports;var mM=Object.defineProperty,_M=Object.defineProperties,bM=Object.getOwnPropertyDescriptors,Bb=Object.getOwnPropertySymbols,yM=Object.prototype.hasOwnProperty,DM=Object.prototype.propertyIsEnumerable,jb=(e,t,o)=>t in e?mM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,R6=(e,t)=>{for(var o in t||(t={}))yM.call(t,o)&&jb(e,o,t[o]);if(Bb)for(var o of Bb(t))DM.call(t,o)&&jb(e,o,t[o]);return e},EM=(e,t)=>_M(e,bM(t));$t($S);const kM=3*60*1e3,xM={name:"NcReferenceWidget",components:{NcButton:rs},props:{reference:{type:Object,required:!0},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},setup(){const e=an(!1),t=an(),{width:o}=vD(t);return US(t,([r])=>{WS(()=>{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 gR(this.reference.richObjectType)},hasCustomWidget(){return tb(this.reference.richObjectType)},hasInteractiveView(){return tb(this.reference.richObjectType)&&hR(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()},kM);return}this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.rendered||this.renderWidget()},immediate:!0}},beforeDestroy(){this.destroyWidget()},methods:{t:Qe,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(()=>{dR(t,EM(R6({},this.reference),{interactive:this.isInteractive})),this.rendered=!0})},destroyWidget(){this.rendered&&(cR(this.reference.richObjectType,this.$el),this.rendered=!1)}}};var wM=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)},vM=[],TM=ho(xM,wM,vM,!1,null,"f05dd81b");const N6=TM.exports,CM={name:"NcCustomPickerElement",props:{provider:{type:Object,required:!0}},emits:["cancel","submit"],data(){return{isRegistered:yF(this.provider.id),renderResult:null}},mounted(){this.isRegistered&&this.renderElement()},beforeDestroy(){this.isRegistered&&yR(this.provider.id,this.$el,this.renderResult)},methods:{renderElement(){this.$refs.domElement&&(this.$refs.domElement.innerHTML="");const e=bR(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 AM=function(){var e=this,t=e._self._c;return t("div",{ref:"domElement"})},SM=[],BM=ho(CM,AM,SM,!1,null,"0547d92f");const jM=BM.exports,OM={name:"LinkVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var RM=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()])])])},NM=[],MM=ho(OM,RM,NM,!1,null,null);const bm=MM.exports;$t(VS);var LM,IM;const qM="any-link",YM={id:qM,title:Qe("Any link"),order:0,icon_url:xD("core","filetypes/link.svg")};(LM=window._vue_richtext_reference_providers)!=null||(window._vue_richtext_reference_providers=bF("core","reference-provider-list",[])),(IM=window._vue_richtext_reference_provider_timestamps)!=null||(window._vue_richtext_reference_provider_timestamps=bF("core","reference-provider-timestamps",{}));function PM(){return window._vue_richtext_reference_providers.filter(e=>{const t=!!e.search_providers_ids&&e.search_providers_ids.length>0||yF(e.id);return t||Dn.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 ZM(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 HM(e,t){const o=PM(),r=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(r,"i"),a=ZM(o).filter(s=>s.title.match(n)),i=t?a.slice(0,t):a;return(e===""||i.length===0)&&i.push(YM),i}async function zM(e){const t=Math.floor(Date.now()/1e3),o=Ba("references/provider/{providerId}",{providerId:e});await bn.put(o,{timestamp:t}),window._vue_richtext_reference_provider_timestamps[e]=t}$t(jD,KS);let Ob=0;function M6(e,t){return function(){const o=this,r=arguments;clearTimeout(Ob),Ob=setTimeout(function(){e.apply(o,r)},t)}}function ym(e){try{return!!new URL(e)}catch{return!1}}const GM={name:"NcProviderList",components:{NcSelect:q1,NcHighlight:gh,NcEmptyContent:fm,LinkVariantIcon:bm},emits:["select-provider","submit"],data(){return{selectedProvider:null,query:"",multiselectPlaceholder:Qe("Select provider"),providerIconAlt:Qe("Provider icon")}},computed:{options(){const e=[];return this.query!==""&&ym(this.query)&&e.push({id:this.query,title:this.query,isLink:!0}),e.push(...HM(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 UM=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)},$M=[],WM=ho(GM,UM,$M,!1,null,"f39d58d9");const VM=WM.exports;$t(QS);const KM={name:"NcRawLinkInput",components:{LinkVariantIcon:bm,NcEmptyContent:fm,NcLoadingIcon:sm,NcReferenceWidget:N6,NcTextField:sh},props:{provider:{type:Object,required:!0}},emits:["submit"],data(){return{inputValue:"",loading:!1,reference:null,abortController:null,inputPlaceholder:Qe("Enter link")}},computed:{isLinkValid(){return ym(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&&M6(()=>{this.updateReference()},500)()},updateReference(){this.loading=!0,this.abortController=new AbortController,bn.get(Ba("references/resolve",2)+"?reference="+encodeURIComponent(this.inputValue),{signal:this.abortController.signal}).then(e=>{this.reference=e.data.ocs.data.references[this.inputValue]}).catch(e=>{Dn.error("Could not update reference",{error:e})}).then(()=>{this.loading=!1})}}};var QM=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)},XM=[],JM=ho(KM,QM,XM,!1,null,"be630586");const eL=JM.exports,tL={name:"NcSearchResult",components:{NcHighlight:gh},props:{entry:{type:Object,required:!0},query:{type:String,required:!0}}};var oL=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)])])},rL=[],nL=ho(tL,oL,rL,!1,null,"995c2758");const aL=nL.exports;$t(XS,jD,OD);const Rb=5,iL={name:"NcSearch",components:{LinkVariantIcon:bm,DotsHorizontalIcon:AD,NcEmptyContent:fm,NcSelect:q1,NcSearchResult:aL},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:Qe("Start typing to search"),providerIconAlt:Qe("Provider icon")}},computed:{mySearchPlaceholder(){return this.searchPlaceholder||Qe("Search")},searchProviderIds(){return this.provider.search_providers_ids},options(){if(this.searchQuery==="")return[];const e=[];return ym(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)=>R6({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:Qe,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,M6(()=>{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?Ba("search/providers/{providerId}/search?term={term}&limit={limit}",{providerId:e,term:this.searchQuery,limit:Rb}):Ba("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}",{providerId:e,term:this.searchQuery,limit:Rb,cursor:t});return bn.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 sL=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)},uL=[],lL=ho(iL,sL,uL,!1,null,"e61f71e3");const FL=lL.exports,jl={providerList:1,standardLinkInput:2,searchInput:3,customElement:4},dL={name:"NcReferencePicker",components:{NcCustomPickerElement:jM,NcProviderList:VM,NcRawLinkInput:eL,NcSearch:FL},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:jl,selectedProvider:this.initialProvider}},computed:{mode(){return this.selectedProvider===null?jl.providerList:yF(this.selectedProvider.id)?jl.customElement:this.selectedProvider.search_providers_ids?jl.searchInput:jl.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&&zM(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 cL=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)},hL=[],gL=ho(dL,cL,hL,!1,null,"646d5538");const pL=gL.exports;$t(eB,JS);const fL={name:"NcReferencePickerModal",components:{NcReferencePicker:pL,NcModal:lh,NcButton:rs,ArrowLeftIcon:nR,CloseIcon:BD},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:Qe("Back to provider selection"),closeButtonTitle:Qe("Close"),closeButtonLabel:Qe("Close Smart Picker")}},computed:{isProviderSelected(){return this.selectedProvider!==null},showBackButton(){return this.initialProvider===null&&this.isProviderSelected},modalSize(){var e;return this.isProviderSelected&&yF(this.selectedProvider.id)?(e=mR(this.selectedProvider.id))!=null?e:"large":"normal"},showModalName(){return!this.isProviderSelected||!yF(this.selectedProvider.id)},modalName(){return this.isProviderSelected?this.selectedProvider.title:Qe("Smart Picker")}},mounted(){if(this.isInsideViewer){const e=this.$refs.modal_content;sS("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 mL=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()},_L=[],bL=ho(fL,mL,_L,!1,null,"00990f2a");const yL=bL.exports;async function DL(e,t){const o="referencePickerModal",r=document.createElement("div");r.id=o,document.body.append(r);const{promise:n,reject:a,resolve:i}=Promise.withResolvers(),s=null,u=un.extend(yL),l=new u({propsData:{initialProvider:s,isInsideViewer:t}}).$mount(r);return l.$on("cancel",()=>{l.$destroy(),a(new Error("User cancellation"))}),l.$on("submit",F=>{l.$destroy(),i(F)}),n}const EL={name:"NcReferenceList",components:{NcReferenceWidget:N6},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(cb).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=>{Dn.error("Failed to extract references",{error:e}),this.loading=!1,this.$emit("loaded")})},resolve(){const e=new RegExp(cb).exec(this.text.trim()),t=la()===null;return this.limit===1&&e?t?bn.get(Ba("references/resolvePublic")+"?reference=".concat(encodeURIComponent(e[0]),"&sharingToken=").concat(Q3())):bn.get(Ba("references/resolve")+"?reference=".concat(encodeURIComponent(e[0]))):t?bn.post(Ba("references/extractPublic"),{text:this.text,resolve:!0,limit:this.limit,sharingToken:Q3()}):bn.post(Ba("references/extract"),{text:this.text,resolve:!0,limit:this.limit})}}};var kL=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()},xL=[],wL=ho(EL,kL,xL,!1,null,"a50e616b");const vL=wL.exports,DF=fh(/[A-Za-z]/),Dm=fh(/[\dA-Za-z]/);function TL(e){return e!==null&&(e<32||e===127)}function C1(e){return e!==null&&(e<0||e===32)}const L6=fh(new RegExp("\\p{P}|\\p{S}","u")),EF=fh(/\s/);function fh(e){return t;function t(o){return o!==null&&o>-1&&e.test(String.fromCharCode(o))}}const I6=function(e){if(e==null)return BL;if(typeof e=="function")return mh(e);if(typeof e=="object")return Array.isArray(e)?CL(e):AL(e);if(typeof e=="string")return SL(e);throw new Error("Expected function, string, or object as test")};function CL(e){const t=[];let o=-1;for(;++o0&&!o&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),o}an(null);var G0={},Lb;function HL(){if(Lb)return G0;Lb=1;var e=CS();return G0.createRoot=e.createRoot,G0.hydrateRoot=e.hydrateRoot,G0}var G6=HL(),Ib={exports:{}},Xg,qb;function zL(){if(qb)return Xg;qb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xg=e,Xg}var Jg,Yb;function GL(){if(Yb)return Jg;Yb=1;var e=zL();function t(){}function o(){}return o.resetWarningCache=t,Jg=function(){function r(i,s,u,l,F,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},Jg}var Pb;function UL(){return Pb||(Pb=1,Ib.exports=GL()()),Ib.exports}var Zb,Hb;function $L(){return Hb||(Hb=1,Zb=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 i in r)o.d(a,i,function(s){return r[s]}.bind(null,i));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=UL()},function(e,t){e.exports=AS()},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&&(Fe.transform=ke.join(" "),Fe.transformOrigin="center",Ce&&(Ie=r.createElement("g",{style:Fe},Oe,r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var rt,lt=Ie,we=ye===!0||typeof ye!="number"?2:ye,Yt=!Ce&&(W||X);if(we<0&&(Yt=!Yt),ye&&(lt=r.createElement("g",{style:{animation:"spin"+(Yt?"-inverse":"")+" linear "+Math.abs(we)+"s infinite",transformOrigin:"center"}},Ie,!(W||X||re!==0)&&r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),Ce)return lt;var tt,Pt="icon_labelledby_"+k,so="icon_describedby_"+k;if(N)rt=L?Pt+" "+so:Pt;else if(tt="presentation",L)throw new Error("title attribute required when description is set");return r.createElement("svg",F({ref:_,viewBox:"0 0 24 24",style:Fe,role:tt,"aria-labelledby":rt},le),N&&r.createElement("title",{id:Pt},N),L&&r.createElement("desc",{id:so},L),!Ce&&ye&&(Yt?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) } }")),lt)});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}])),Zb}var Lt=$L();function U6(){const e=br.getState().excalidrawAPI;e&&e.setActiveTool({type:"selection"})}function WF(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=()=>{U6(),e.onClick?.()},n=G6.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(Lt.Icon,{path:e.icon,size:1}))),n}function WL(){const{excalidrawAPI:e}=br(fo(r=>({excalidrawAPI:r.excalidrawAPI}))),t=z.useCallback(r=>{const n=$i({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=z.useCallback(()=>{DL(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:z.useCallback(()=>{WF({class:"smart-picker-container",icon:Fm,label:de("whiteboard","Smart picker"),onClick:o})},[o])}}$t();var VL=Object.defineProperty,KL=Object.defineProperties,QL=Object.getOwnPropertyDescriptors,zb=Object.getOwnPropertySymbols,XL=Object.prototype.hasOwnProperty,JL=Object.prototype.propertyIsEnumerable,Gb=(e,t,o)=>t in e?VL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,eI=(e,t)=>{for(var o in t||(t={}))XL.call(t,o)&&Gb(e,o,t[o]);if(zb)for(var o of zb(t))JL.call(t,o)&&Gb(e,o,t[o]);return e},tI=(e,t)=>KL(e,QL(t));const oI=["date","datetime-local","month","time","week"],rI={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-"+v1(),validator:e=>e.trim()!==""},type:{type:String,default:"date",validate:e=>oI.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:zF("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 tI(eI({},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 i=new Date(t,0,1),s=Math.floor((e-i)/(24*60*60*1e3)),u=Math.ceil(s/7);return"".concat(t,"-W").concat(u)}}else return""}}};var nI=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))])},aI=[],iI=ho(rI,nI,aI,!1,null,"6c1feae8");const sI=iI.exports;RD(sI),$t(ND),zg(()=>no(()=>Promise.resolve().then(()=>dte),void 0,import.meta.url)),zg(()=>no(()=>Promise.resolve().then(()=>hZ),void 0,import.meta.url)),zg(()=>no(()=>Promise.resolve().then(()=>cte),void 0,import.meta.url)),Qe("Submit");var Ub,uI,$b,Wb,lI;$t(tB),_m.getBuilder("nextcloud").persist().build(),(uI=(Ub=$F().theming)==null?void 0:Ub.name)!=null;const Vb=bF("core","active-app",aS),ep=bF("core","apps",{});(lI=Array.isArray(ep)?($b=ep.find(e=>e.id===Vb))==null?void 0:$b.name:(Wb=ep[Vb])==null?void 0:Wb.name)!=null;var Kb,tp,Qb;(Qb=(tp=(Kb=window.OCP)==null?void 0:Kb.Accessibility)==null?void 0:tp.disableKeyboardShortcuts)==null||Qb.call(tp);var Xb,op,Jb;$t(oB),(Jb=(op=(Xb=window.OCP)==null?void 0:Xb.Accessibility)==null?void 0:op.disableKeyboardShortcuts)==null||Jb.call(op),$t(rB),$t(nB),$t(iB,aB),$t(MD,sB);Qe("Search …"),$t(uB),Qe("Settings"),$t();let FI="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",dI=(e=21)=>{let t="",o=e|0;for(;o--;)t+=FI[Math.random()*64|0];return t};function Cd(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cd=function(t){return typeof t}:Cd=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cd(e)}var $6={selector:"vue-portal-target-".concat(dI())},cI=function(e){return $6.selector=e},rp=typeof window<"u"&&(typeof document>"u"?"undefined":Cd(document))!==void 0,hI=un.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)}}),gI=un.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat($6.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(rp)return document.querySelector(this.selector)},insertTargetEl:function(){if(rp){var e=document.querySelector("body"),t=document.createElement(this.tag);t.id=this.selector.substring(1),e.appendChild(t)}},mount:function(){if(rp){var e=this.getTargetEl(),t=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t),this.container=new hI({el:t,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function pI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.component(t.name||"portal",gI),t.defaultSelector&&cI(t.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===un&&un.use(pI);const fI="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",mI="ελ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",tf="numeric",of="ascii",rf="alpha",tF="asciinumeric",Ul="alphanumeric",nf="domain",W6="emoji",_I="scheme",bI="slashscheme",np="whitespace";function yI(e,t){return e in t||(t[e]=[]),t[e]}function Hs(e,t,o){t[tf]&&(t[tF]=!0,t[Ul]=!0),t[of]&&(t[tF]=!0,t[rf]=!0),t[tF]&&(t[Ul]=!0),t[rf]&&(t[Ul]=!0),t[Ul]&&(t[nf]=!0),t[W6]&&(t[nf]=!0);for(const r in t){const n=yI(r,o);n.indexOf(e)<0&&n.push(e)}}function DI(e,t){const o={};for(const r in t)t[r].indexOf(e)>=0&&(o[r]=!0);return o}function mn(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}mn.groups={},mn.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),Po=(e,t,o,r,n)=>e.tr(t,o,r,n),e4=(e,t,o,r,n)=>e.ts(t,o,r,n),We=(e,t,o,r,n)=>e.tt(t,o,r,n),ri="WORD",af="UWORD",V6="ASCIINUMERICAL",K6="ALPHANUMERICAL",kF="LOCALHOST",sf="TLD",uf="UTLD",Ad="SCHEME",Qu="SLASH_SCHEME",km="NUM",lf="WS",xm="NL",oF="OPENBRACE",rF="CLOSEBRACE",ec="OPENBRACKET",tc="CLOSEBRACKET",oc="OPENPAREN",rc="CLOSEPAREN",nc="OPENANGLEBRACKET",ac="CLOSEANGLEBRACKET",ic="FULLWIDTHLEFTPAREN",sc="FULLWIDTHRIGHTPAREN",uc="LEFTCORNERBRACKET",lc="RIGHTCORNERBRACKET",Fc="LEFTWHITECORNERBRACKET",dc="RIGHTWHITECORNERBRACKET",cc="FULLWIDTHLESSTHAN",hc="FULLWIDTHGREATERTHAN",gc="AMPERSAND",pc="APOSTROPHE",fc="ASTERISK",qi="AT",mc="BACKSLASH",_c="BACKTICK",bc="CARET",Yi="COLON",wm="COMMA",yc="DOLLAR",wa="DOT",Dc="EQUALS",vm="EXCLAMATION",On="HYPHEN",nF="PERCENT",Ec="PIPE",kc="PLUS",xc="POUND",aF="QUERY",Tm="QUOTE",Q6="FULLWIDTHMIDDLEDOT",Cm="SEMI",va="SLASH",iF="TILDE",wc="UNDERSCORE",X6="EMOJI",vc="SYM";var J6=Object.freeze({__proto__:null,ALPHANUMERICAL:K6,AMPERSAND:gc,APOSTROPHE:pc,ASCIINUMERICAL:V6,ASTERISK:fc,AT:qi,BACKSLASH:mc,BACKTICK:_c,CARET:bc,CLOSEANGLEBRACKET:ac,CLOSEBRACE:rF,CLOSEBRACKET:tc,CLOSEPAREN:rc,COLON:Yi,COMMA:wm,DOLLAR:yc,DOT:wa,EMOJI:X6,EQUALS:Dc,EXCLAMATION:vm,FULLWIDTHGREATERTHAN:hc,FULLWIDTHLEFTPAREN:ic,FULLWIDTHLESSTHAN:cc,FULLWIDTHMIDDLEDOT:Q6,FULLWIDTHRIGHTPAREN:sc,HYPHEN:On,LEFTCORNERBRACKET:uc,LEFTWHITECORNERBRACKET:Fc,LOCALHOST:kF,NL:xm,NUM:km,OPENANGLEBRACKET:nc,OPENBRACE:oF,OPENBRACKET:ec,OPENPAREN:oc,PERCENT:nF,PIPE:Ec,PLUS:kc,POUND:xc,QUERY:aF,QUOTE:Tm,RIGHTCORNERBRACKET:lc,RIGHTWHITECORNERBRACKET:dc,SCHEME:Ad,SEMI:Cm,SLASH:va,SLASH_SCHEME:Qu,SYM:vc,TILDE:iF,TLD:sf,UNDERSCORE:wc,UTLD:uf,UWORD:af,WORD:ri,WS:lf});const Ka=/[a-z]/,Ol=new RegExp("\\p{L}","u"),ap=new RegExp("\\p{Emoji}","u"),Qa=/\d/,ip=/\s/,t4="\r",sp=` +`,EI="️",kI="‍",up="";let U0=null,$0=null;function xI(e=[]){const t={};mn.groups=t;const o=new mn;U0==null&&(U0=o4(fI)),$0==null&&($0=o4(mI)),We(o,"'",pc),We(o,"{",oF),We(o,"}",rF),We(o,"[",ec),We(o,"]",tc),We(o,"(",oc),We(o,")",rc),We(o,"<",nc),We(o,">",ac),We(o,"(",ic),We(o,")",sc),We(o,"「",uc),We(o,"」",lc),We(o,"『",Fc),We(o,"』",dc),We(o,"<",cc),We(o,">",hc),We(o,"&",gc),We(o,"*",fc),We(o,"@",qi),We(o,"`",_c),We(o,"^",bc),We(o,":",Yi),We(o,",",wm),We(o,"$",yc),We(o,".",wa),We(o,"=",Dc),We(o,"!",vm),We(o,"-",On),We(o,"%",nF),We(o,"|",Ec),We(o,"+",kc),We(o,"#",xc),We(o,"?",aF),We(o,'"',Tm),We(o,"/",va),We(o,";",Cm),We(o,"~",iF),We(o,"_",wc),We(o,"\\",mc),We(o,"・",Q6);const r=Po(o,Qa,km,{[tf]:!0});Po(r,Qa,r);const n=Po(r,Ka,V6,{[tF]:!0}),a=Po(r,Ol,K6,{[Ul]:!0}),i=Po(o,Ka,ri,{[of]:!0});Po(i,Qa,n),Po(i,Ka,i),Po(n,Qa,n),Po(n,Ka,n);const s=Po(o,Ol,af,{[rf]:!0});Po(s,Ka),Po(s,Qa,a),Po(s,Ol,s),Po(a,Qa,a),Po(a,Ka),Po(a,Ol,a);const u=We(o,sp,xm,{[np]:!0}),l=We(o,t4,lf,{[np]:!0}),F=Po(o,ip,lf,{[np]:!0});We(o,up,F),We(l,sp,u),We(l,up,F),Po(l,ip,F),We(F,t4),We(F,sp),Po(F,ip,F),We(F,up,F);const c=Po(o,ap,X6,{[W6]:!0});We(c,"#"),Po(c,ap,c),We(c,EI,c);const g=We(c,kI);We(g,"#"),Po(g,ap,c);const p=[[Ka,i],[Qa,n]],m=[[Ka,null],[Ol,s],[Qa,a]];for(let _=0;__[0]>D[0]?1:-1);for(let _=0;_=0?E[nf]=!0:Ka.test(D)?Qa.test(D)?E[tF]=!0:E[of]=!0:E[tf]=!0,e4(o,D,D,E)}return e4(o,"localhost",kF,{ascii:!0}),o.jd=new mn(vc),{start:o,tokens:Object.assign({groups:t},J6)}}function eE(e,t){const o=wI(t.replace(/[A-Z]/g,s=>s.toLowerCase())),r=o.length,n=[];let a=0,i=0;for(;i=0&&(c+=o[i].length,g++),l+=o[i].length,a+=o[i].length,i++;a-=c,i-=g,l-=c,n.push({t:F.t,v:t.slice(a-l,a),s:a-l,e:a})}return n}function wI(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(i),r+=i.length}return t}function ji(e,t,o,r,n){let a;const i=t.length;for(let s=0;s=0;)a++;if(a>0){t.push(o.join(""));for(let i=parseInt(e.substring(r,r+a),10);i>0;i--)o.pop();r+=a}else o.push(e[r]),r++}return t}const xF={defaultProtocol:"http",events:null,format:r4,formatHref:r4,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Am(e,t=null){let o=Object.assign({},xF);e&&(o=Object.assign(o,e instanceof Am?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=xF.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),i={},s=e.get("className",o,t),u=e.get("target",o,t),l=e.get("rel",o,t),F=e.getObj("attributes",o,t),c=e.getObj("events",o,t);return i.href=r,s&&(i.class=s),u&&(i.target=u),l&&(i.rel=l),F&&Object.assign(i,F),{tagName:n,attributes:i,content:a,eventListeners:c}}};function _h(e,t){class o extends tE{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 n4=_h("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),a4=_h("text"),vI=_h("nl"),W0=_h("url",{isLink:!0,toHref(e=xF.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==kF&&e[1].t===Yi}}),Bn=e=>new mn(e);function TI({groups:e}){const t=e.domain.concat([gc,fc,qi,mc,_c,bc,yc,Dc,On,km,nF,Ec,kc,xc,va,vc,iF,wc]),o=[pc,Yi,wm,wa,vm,nF,aF,Tm,Cm,nc,ac,oF,rF,tc,ec,oc,rc,ic,sc,uc,lc,Fc,dc,cc,hc],r=[gc,pc,fc,mc,_c,bc,yc,Dc,On,oF,rF,nF,Ec,kc,xc,aF,va,vc,iF,wc],n=Bn(),a=We(n,iF);Ut(a,r,a),Ut(a,e.domain,a);const i=Bn(),s=Bn(),u=Bn();Ut(n,e.domain,i),Ut(n,e.scheme,s),Ut(n,e.slashscheme,u),Ut(i,r,a),Ut(i,e.domain,i);const l=We(i,qi);We(a,qi,l),We(s,qi,l),We(u,qi,l);const F=We(a,wa);Ut(F,r,a),Ut(F,e.domain,a);const c=Bn();Ut(l,e.domain,c),Ut(c,e.domain,c);const g=We(c,wa);Ut(g,e.domain,c);const p=Bn(n4);Ut(g,e.tld,p),Ut(g,e.utld,p),We(l,kF,p);const m=We(c,On);We(m,On,m),Ut(m,e.domain,c),Ut(p,e.domain,c),We(p,wa,g),We(p,On,m);const _=We(p,Yi);Ut(_,e.numeric,n4);const D=We(i,On),E=We(i,wa);We(D,On,D),Ut(D,e.domain,i),Ut(E,r,a),Ut(E,e.domain,i);const k=Bn(W0);Ut(E,e.tld,k),Ut(E,e.utld,k),Ut(k,e.domain,i),Ut(k,r,a),We(k,wa,E),We(k,On,D),We(k,qi,l);const S=We(k,Yi),N=Bn(W0);Ut(S,e.numeric,N);const O=Bn(W0),L=Bn();Ut(O,t,O),Ut(O,o,L),Ut(L,t,O),Ut(L,o,L),We(k,va,O),We(N,va,O);const $=We(s,Yi),H=We(u,Yi),q=We(H,va),v=We(q,va);Ut(s,e.domain,i),We(s,wa,E),We(s,On,D),Ut(u,e.domain,i),We(u,wa,E),We(u,On,D),Ut($,e.domain,O),We($,va,O),We($,aF,O),Ut(v,e.domain,O),Ut(v,t,O),We(v,va,O);const P=[[oF,rF],[ec,tc],[oc,rc],[nc,ac],[ic,sc],[uc,lc],[Fc,dc],[cc,hc]];for(let W=0;W=0&&g++,n++,F++;if(g<0)n-=F,n0&&(a.push(lp(a4,t,i)),i=[]),n-=g,F-=g;const p=c.t,m=o.slice(n-F,n);a.push(lp(p,t,m))}}return i.length>0&&a.push(lp(a4,t,i)),a}function lp(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 xr={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function AI(){xr.scanner=xI(xr.customSchemes);for(let e=0;e/g,">")}function SI(e){return e.replace(/"/g,""")}function BI(e){const t=[];for(const o in e){let r=e[o]+"";t.push(`${o}="${SI(r)}"`)}return t.join(" ")}function jI({tagName:e,attributes:t,content:o}){return`<${e} ${BI(t)}>${rE(o)}`}function OI(e,t={}){t=new Am(t,jI);const o=oE(e),r=[];for(let n=0;n +`):!a.isLink||!t.check(a)?r.push(rE(a.toString())):r.push(t.render(a))}return r.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return OI(this,e)}}),$t(lB);var i4;window._nc_vue_element_id=(i4=window._nc_vue_element_id)!=null?i4:0;function nE(){return"nc-vue-".concat(window._nc_vue_element_id++)}var s4={exports:{}},u4;function RI(){return u4||(u4=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,F){this.fn=u,this.context=l,this.once=F||!1}function a(u,l,F,c,g){if(typeof F!="function")throw new TypeError("The listener must be a function");var p=new n(F,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 i(u,l){--u._eventsCount===0?u._events=new r:delete u._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],l,F;if(this._eventsCount===0)return u;for(F in l=this._events)t.call(l,F)&&u.push(o?F.slice(1):F);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},s.prototype.listeners=function(u){var l=o?o+u:u,F=this._events[l];if(!F)return[];if(F.fn)return[F.fn];for(var c=0,g=F.length,p=new Array(g);cglobalThis.DOMException===void 0?new LI(e):new DOMException(e),F4=e=>{const t=e.reason===void 0?l4("This operation was aborted."):e.reason;return t instanceof Error?t:l4(t)};function II(e,t){const{milliseconds:o,fallback:r,message:n,customTimers:a={setTimeout,clearTimeout}}=t;let i,s;const u=new Promise((l,F)=>{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&&F(F4(g)),s=()=>{F(F4(g))},g.addEventListener("abort",s,{once:!0})}if(o===Number.POSITIVE_INFINITY){e.then(l,F);return}const c=new aE;i=a.setTimeout.call(void 0,()=>{if(r){try{l(r())}catch(g){F(g)}return}typeof e.cancel=="function"&&e.cancel(),n===!1?l():n instanceof Error?F(n):(c.message=n??`Promise timed out after ${o} milliseconds`,F(c))},o),(async()=>{try{l(await e)}catch(g){F(g)}})()}).finally(()=>{u.clear(),s&&t.signal&&t.signal.removeEventListener("abort",s)});return u.clear=()=>{a.clearTimeout.call(void 0,i),i=void 0},u}function qI(e,t,o){let r=0,n=e.length;for(;n>0;){const a=Math.trunc(n/2);let i=r+a;o(e[i],t)<=0?(r=++i,n-=a+1):n=a}return r}var Rn;class YI{constructor(){Go(this,Rn,[])}enqueue(t,o){o={priority:0,...o};const r={priority:o.priority,id:o.id,run:t};if(this.size===0||_t(this,Rn)[this.size-1].priority>=o.priority){_t(this,Rn).push(r);return}const n=qI(_t(this,Rn),r,(a,i)=>i.priority-a.priority);_t(this,Rn).splice(n,0,r)}setPriority(t,o){const r=_t(this,Rn).findIndex(a=>a.id===t);if(r===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[n]=_t(this,Rn).splice(r,1);this.enqueue(n.run,{priority:o,id:t})}dequeue(){return _t(this,Rn).shift()?.run}filter(t){return _t(this,Rn).filter(o=>o.priority===t.priority).map(o=>o.run)}get size(){return _t(this,Rn).length}}Rn=new WeakMap;var u1,l1,Gi,IF,F1,qF,Nn,d1,Ir,YF,Mn,c1,ii,PF,ah,Fo,iE,sE,uE,lE,FE,Sd,Ff,df,Bd,dE,jd;class PI extends MI{constructor(o){super();Go(this,Fo);Go(this,u1);Go(this,l1);Go(this,Gi,0);Go(this,IF);Go(this,F1);Go(this,qF,0);Go(this,Nn);Go(this,d1);Go(this,Ir);Go(this,YF);Go(this,Mn,0);Go(this,c1);Go(this,ii);Go(this,PF);Go(this,ah,1n);je(this,"timeout");if(o={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:YI,...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})`);Bo(this,u1,o.carryoverConcurrencyCount),Bo(this,l1,o.intervalCap===Number.POSITIVE_INFINITY||o.interval===0),Bo(this,IF,o.intervalCap),Bo(this,F1,o.interval),Bo(this,Ir,new o.queueClass),Bo(this,YF,o.queueClass),this.concurrency=o.concurrency,this.timeout=o.timeout,Bo(this,PF,o.throwOnTimeout===!0),Bo(this,ii,o.autoStart===!1)}get concurrency(){return _t(this,c1)}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})`);Bo(this,c1,o),gr(this,Fo,Bd).call(this)}setPriority(o,r){_t(this,Ir).setPriority(o,r)}async add(o,r={}){return r.id??(r.id=(Al(this,ah)._++).toString()),r={timeout:this.timeout,throwOnTimeout:_t(this,PF),...r},new Promise((n,a)=>{_t(this,Ir).enqueue(async()=>{Al(this,Mn)._++;try{r.signal?.throwIfAborted(),Al(this,Gi)._++;let i=o({signal:r.signal});r.timeout&&(i=II(Promise.resolve(i),{milliseconds:r.timeout})),r.signal&&(i=Promise.race([i,gr(this,Fo,dE).call(this,r.signal)]));const s=await i;n(s),this.emit("completed",s)}catch(i){if(i instanceof aE&&!r.throwOnTimeout){n();return}a(i),this.emit("error",i)}finally{gr(this,Fo,uE).call(this)}},r),this.emit("add"),gr(this,Fo,Sd).call(this)})}async addAll(o,r){return Promise.all(o.map(async n=>this.add(n,r)))}start(){return _t(this,ii)?(Bo(this,ii,!1),gr(this,Fo,Bd).call(this),this):this}pause(){Bo(this,ii,!0)}clear(){Bo(this,Ir,new(_t(this,YF)))}async onEmpty(){_t(this,Ir).size!==0&&await gr(this,Fo,jd).call(this,"empty")}async onSizeLessThan(o){_t(this,Ir).size_t(this,Ir).size{gr(this,Fo,lE).call(this)},r)),!0}return!1},Sd=function(){if(_t(this,Ir).size===0)return _t(this,Nn)&&clearInterval(_t(this,Nn)),Bo(this,Nn,void 0),this.emit("empty"),_t(this,Mn)===0&&this.emit("idle"),!1;if(!_t(this,ii)){const o=!_t(this,Fo,FE);if(_t(this,Fo,iE)&&_t(this,Fo,sE)){const r=_t(this,Ir).dequeue();return r?(this.emit("active"),r(),o&&gr(this,Fo,Ff).call(this),!0):!1}}return!1},Ff=function(){_t(this,l1)||_t(this,Nn)!==void 0||(Bo(this,Nn,setInterval(()=>{gr(this,Fo,df).call(this)},_t(this,F1))),Bo(this,qF,Date.now()+_t(this,F1)))},df=function(){_t(this,Gi)===0&&_t(this,Mn)===0&&_t(this,Nn)&&(clearInterval(_t(this,Nn)),Bo(this,Nn,void 0)),Bo(this,Gi,_t(this,u1)?_t(this,Mn):0),gr(this,Fo,Bd).call(this)},Bd=function(){for(;gr(this,Fo,Sd).call(this););},dE=async function(o){return new Promise((r,n)=>{o.addEventListener("abort",()=>{n(o.reason)},{once:!0})})},jd=async function(o,r){return new Promise(n=>{const a=()=>{r&&!r()||(this.off(o,a),n())};this.on(o,a)})};new PI({concurrency:5}),$t(FB),$t(dB);var cf={exports:{}},ZI=cf.exports,d4;function HI(){return d4||(d4=1,function(e,t){(function(o,r){e.exports=r()})(typeof self<"u"?self:ZI,function(){return function(o){function r(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return o[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}var n={};return r.m=o,r.c=n,r.d=function(a,i,s){r.o(a,i)||Object.defineProperty(a,i,{configurable:!1,enumerable:!0,get:s})},r.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(i,"a",i),i},r.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)},r.p="",r(r.s=59)}([function(o,r){function n(i,s){var u=i[1]||"",l=i[3];if(!l)return u;if(s&&typeof btoa=="function"){var F=a(l);return[u].concat(l.sources.map(function(c){return"/*# sourceURL="+l.sourceRoot+c+" */"})).concat([F]).join(` +`)}return[u].join(` +`)}function a(i){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"}o.exports=function(i){var s=[];return s.toString=function(){return this.map(function(u){var l=n(u,i);return u[2]?"@media "+u[2]+"{"+l+"}":l}).join("")},s.i=function(u,l){typeof u=="string"&&(u=[[null,u,""]]);for(var F={},c=0;cH.parts.length&&(q.parts.length=H.parts.length)}else{for(var P=[],v=0;v"u"||(E=__VUE_SSR_CONTEXT__),s&&s.call(this,E),E&&E._registeredComponents&&E._registeredComponents.add(l)},p._ssrRegister=m):s&&(m=s),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:F,exports:c,options:p}}},function(o,r,n){function a(u,l){var F,c=u&&u.a;!(F=u&&u.hsl?(0,s.default)(u.hsl):u&&u.hex&&u.hex.length>0?(0,s.default)(u.hex):u&&u.hsv?(0,s.default)(u.hsv):u&&u.rgba?(0,s.default)(u.rgba):u&&u.rgb?(0,s.default)(u.rgb):(0,s.default)(u))||F._a!==void 0&&F._a!==null||F.setAlpha(c||1);var g=F.toHsl(),p=F.toHsv();return g.s===0&&(p.h=g.h=u.h||u.hsl&&u.hsl.h||l||0),{hsl:g,hex:F.toHexString().toUpperCase(),hex8:F.toHex8String().toUpperCase(),rgba:F.toRgb(),hsv:p,oldHue:u.h||l||g.h,source:u.source,a:u.a||F.getAlpha()}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(64),s=function(u){return u&&u.__esModule?u:{default:u}}(i);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,s.default)(u).isValid()},simpleCheckForValidColor:function(u){for(var l=["r","g","b","a","h","s","l","v"],F=0,c=0,g=0;g0?a:n)(i)}},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(i,s){if(!a(i))return i;var u,l;if(s&&typeof(u=i.toString)=="function"&&!a(l=u.call(i))||typeof(u=i.valueOf)=="function"&&!a(l=u.call(i))||!s&&typeof(u=i.toString)=="function"&&!a(l=u.call(i)))return l;throw TypeError("Can't convert object to primitive value")}},function(o,r){o.exports={}},function(o,r,n){var a=n(46),i=n(30);o.exports=Object.keys||function(s){return a(s,i)}},function(o,r,n){var a=n(29)("keys"),i=n(17);o.exports=function(s){return a[s]||(a[s]=i(s))}},function(o,r,n){var a=n(4),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});o.exports=function(s){return i[s]||(i[s]={})}},function(o,r){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(o,r,n){var a=n(8).f,i=n(6),s=n(11)("toStringTag");o.exports=function(u,l,F){u&&!i(u=F?u:u.prototype,s)&&a(u,s,{configurable:!0,value:l})}},function(o,r,n){r.f=n(11)},function(o,r,n){var a=n(4),i=n(24),s=n(23),u=n(32),l=n(8).f;o.exports=function(F){var c=i.Symbol||(i.Symbol=s?{}:a.Symbol||{});F.charAt(0)=="_"||F in c||l(c,F,{value:u.f(F)})}},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 i=n(3),s=a(i),u=n(5),l=a(u),F=["#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:[s.default],props:{palette:{type:Array,default:function(){return F}}},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 i={};i[this.label]=a,i.hex===void 0&&i["#"]===void 0?this.$emit("change",i):a.length>5&&this.$emit("change",i)},handleKeyDown:function(a){var i=this.val,s=Number(i);if(s){var u=this.arrowOffset||1;a.keyCode===38&&(i=s+u,this.handleChange(i),a.preventDefault()),a.keyCode===40&&(i=s-u,this.handleChange(i),a.preventDefault())}}}}},function(o,r,n){Object.defineProperty(r,"__esModule",{value:!0});var a=n(3),i=function(u){return u&&u.__esModule?u:{default:u}}(a),s=["#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:[i.default],props:{palette:{type:Array,default:function(){return s}}},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(F){return F&&F.__esModule?F:{default:F}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(5),s=a(i),u=n(3),l=a(u);r.default={name:"Material",mixins:[l.default],components:{"ed-in":s.default},methods:{onChange:function(F){F&&(F.hex?this.isValidHex(F.hex)&&this.colorChange({hex:F.hex,source:"hex"}):(F.r||F.g||F.b)&&this.colorChange({r:F.r||this.colors.rgba.r,g:F.g||this.colors.rgba.g,b:F.b||this.colors.rgba.b,a:F.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 i=n(80),s=a(i),u=n(3),l=a(u),F=n(12),c=a(F);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,s.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),i=n(41),s=n(44),u=n(7),l=n(6),F=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,S,N,O,L,$){c(S,k,N);var H,q,v,P=function(Fe){if(!_&&Fe in ee)return ee[Fe];switch(Fe){case"keys":case"values":return function(){return new S(this,Fe)}}return function(){return new S(this,Fe)}},W=k+" Iterator",te=O=="values",X=!1,ee=E.prototype,re=ee[m]||ee["@@iterator"]||O&&ee[O],fe=re||P(O),ye=O?te?P("entries"):fe:void 0,Se=k=="Array"&&ee.entries||re;if(Se&&(v=p(Se.call(new E)))!==Object.prototype&&v.next&&(g(v,W,!0),a||l(v,m)||u(v,m,D)),te&&re&&re.name!=="values"&&(X=!0,fe=function(){return re.call(this)}),a&&!$||!_&&!X&&ee[m]||u(ee,m,fe),F[k]=fe,F[W]=D,O)if(H={values:te?fe:P("values"),keys:L?fe:P("keys"),entries:ye},$)for(q in H)q in ee||s(ee,q,H[q]);else i(i.P+i.F*(_||X),k,H);return H}},function(o,r,n){var a=n(4),i=n(24),s=n(85),u=n(7),l=function(F,c,g){var p,m,_,D=F&l.F,E=F&l.G,k=F&l.S,S=F&l.P,N=F&l.B,O=F&l.W,L=E?i:i[c]||(i[c]={}),$=L.prototype,H=E?a:k?a[c]:(a[c]||{}).prototype;E&&(g=c);for(p in g)(m=!D&&H&&H[p]!==void 0)&&p in L||(_=m?H[p]:g[p],L[p]=E&&typeof H[p]!="function"?g[p]:N&&m?s(_,a):O&&H[p]==_?function(q){var v=function(P,W,te){if(this instanceof q){switch(arguments.length){case 0:return new q;case 1:return new q(P);case 2:return new q(P,W)}return new q(P,W,te)}return q.apply(this,arguments)};return v.prototype=q.prototype,v}(_):S&&typeof _=="function"?s(Function.call,_):_,S&&((L.virtual||(L.virtual={}))[p]=_,F&l.R&&$&&!$[p]&&u($,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),i=n(4).document,s=a(i)&&a(i.createElement);o.exports=function(u){return s?i.createElement(u):{}}},function(o,r,n){o.exports=n(7)},function(o,r,n){var a=n(13),i=n(88),s=n(30),u=n(28)("IE_PROTO"),l=function(){},F=function(){var c,g=n(43)("iframe"),p=s.length;for(g.style.display="none",n(93).appendChild(g),g.src="javascript:",c=g.contentWindow.document,c.open(),c.write("