pennsieve-dashboard 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -321,7 +321,7 @@ const rt = Ks("globalPensieveDashVars", () => {
|
|
|
321
321
|
}
|
|
322
322
|
function z({ manualEdit: C, reactiveSource: L, hideHeader: A }) {
|
|
323
323
|
const k = e.getDashItem(t.widgetID);
|
|
324
|
-
k && (k.hideHeader = A, L && L.trim() !== "" ? (k.Props = k.Props || {}, k.Props.bindedKey = L, k.Props.displayText = null, k.componentName = O(L)) : (k.Props = k.Props || {}, k.Props.bindedKey = null, k.Props.displayText = C ?? "", k.componentName = C ?? "Text")
|
|
324
|
+
k && (k.hideHeader = A, L && L.trim() !== "" ? (k.Props = k.Props || {}, k.Props.bindedKey = L, k.Props.displayText = null, k.componentName = O(L)) : (k.Props = k.Props || {}, k.Props.bindedKey = null, k.Props.displayText = C ?? "", k.componentName = C ?? "Text"));
|
|
325
325
|
}
|
|
326
326
|
function O(C) {
|
|
327
327
|
return C ? C.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/^./, (L) => L.toUpperCase()) : "";
|
|
@@ -378,7 +378,7 @@ const rt = Ks("globalPensieveDashVars", () => {
|
|
|
378
378
|
], 64);
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
}), no = /* @__PURE__ */ Ne(fr, [["__scopeId", "data-v-
|
|
381
|
+
}), no = /* @__PURE__ */ Ne(fr, [["__scopeId", "data-v-bbd00006"]]);
|
|
382
382
|
function oi() {
|
|
383
383
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
384
384
|
}
|
|
@@ -2029,7 +2029,7 @@ const wn = ["innerHTML"], vn = "Markdown", xn = /* @__PURE__ */ be({
|
|
|
2029
2029
|
], 16)
|
|
2030
2030
|
], 64));
|
|
2031
2031
|
}
|
|
2032
|
-
}), oo = /* @__PURE__ */ Ne(xn, [["__scopeId", "data-v-
|
|
2032
|
+
}), oo = /* @__PURE__ */ Ne(xn, [["__scopeId", "data-v-5bf532d5"]]);
|
|
2033
2033
|
function kn(o, e, t, i, s) {
|
|
2034
2034
|
let r = (...l) => (console.warn("gridstack.js: Function `" + t + "` is deprecated in " + s + " and has been replaced with `" + i + "`. It will be **removed** in a future release"), e.apply(o, l));
|
|
2035
2035
|
return r.prototype = e.prototype, r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(q,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("pinia"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","pinia","element-plus"],l):(q=typeof globalThis<"u"?globalThis:q||self,l(q["pennsieve-dashboard"]={},q.Vue,q.Pinia,q.ElementPlus))})(this,(function(q,l,ce,yt){"use strict";var dn=Object.defineProperty;var un=(q,l,ce)=>l in q?dn(q,l,{enumerable:!0,configurable:!0,writable:!0,value:ce}):q[l]=ce;var P=(q,l,ce)=>un(q,typeof l!="symbol"?l+"":l,ce);/*! Element Plus Icons Vue v2.3.2 */var Pt;var ss=l.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),rs=ss,ns=l.defineComponent({name:"Close",__name:"close",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),os=ns,ls=l.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),l.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Qt=ls,as=l.defineComponent({name:"Lock",__name:"lock",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),l.createElementVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),hs=as,cs=l.defineComponent({name:"Unlock",__name:"unlock",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),l.createElementVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),ds=cs;const De=ce.defineStore("globalPensieveDashVars",()=>{const o=l.ref([]),e=l.ref({}),t="dashboard-globalVarsStore",i=l.ref([]),s=l.ref([]),r=l.ref({}),a=l.reactive({}),n=l.reactive({});function d(C,T,F=!1){a[C]=T,n[C]=F}function h(C={}){for(const T of Object.keys(a))delete a[T];Object.assign(a,C)}const c=C=>{delete a[C]};function f(){for(const C of Object.keys(a))delete a[C]}function u(){s.value=[...o.value],h({})}const _=C=>s.value.find(T=>T.id===C),b=(C,T)=>{i.value.push({name:C,value:T})},L=()=>{i.value=[]},H=C=>{r.value=N(C)},A=()=>r.value;function N(C){const T={};if(!C||typeof C!="object")return T;for(const[F,O]of Object.entries(C))if(O&&typeof O=="object"&&!(l.isRef(O)||l.isReactive(O))){const z=Object.getPrototypeOf(O)===Object.prototype;T[F]=z?{...O}:l.markRaw(O)}else T[F]=O;return T}const D=C=>{const T=s.value.find(F=>F.id===C);T&&(T.Props=T.Props||{},T.Props.locked=!T.Props.locked)},v=C=>C.map(T=>{const F=e.value[T.componentKey];return F?{...T,component:F}:null}).filter(T=>!!T);function B(C){}function w(){}return{DASHBOARD_ITEMS:s,DefaultLayout:o,ComponentRegistry:e,optionsData:i,Services:r,Filters:a,displayFilters:n,registerGridProvider:B,unregisterGridProvider:w,setFilter:d,clearFilter:c,clearAllFilters:f,resetFilters:h,resetGridLayout:u,getDashItem:_,toggleWidgetLock:D,addOptionsDataItems:b,clearOptionsDataItems:L,loadFromLocalStorage:()=>{const C=localStorage.getItem(t);if(!C){u();return}try{const T=JSON.parse(C);s.value=Array.isArray(T.items)?v(T.items):[...o.value],h(T.filters??{})}catch(T){console.error("Failed to parse globalVarsStore:",T),s.value=[...o.value],h({})}},setOptionServices:H,getServices:A}}),us={class:"widget-settings-container"},ps={class:"widget-setting"},fs={class:"dialog-footer"},gs=l.defineComponent({__name:"TextWidgetSettings",props:{showDialog:{type:Boolean},reactiveSourceValue:{},manualEntryValue:{},hideHeaderValue:{type:Boolean}},emits:["close-dialog","update-text-var"],setup(o,{emit:e}){const t=De(),{optionsData:i}=ce.storeToRefs(t),s=e,r=o,a=l.computed({get:()=>r.showDialog,set:f=>{f||s("close-dialog")}}),n=l.ref(r.reactiveSourceValue??""),d=l.ref(r.manualEntryValue??""),h=l.ref(!!r.hideHeaderValue);l.watch(()=>r.reactiveSourceValue,f=>{n.value=f??""}),l.watch(()=>r.manualEntryValue,f=>{d.value=f??""},{immediate:!0}),l.watch(()=>r.hideHeaderValue,f=>{h.value=!!f});function c(){var b;const f=(n.value||"").trim(),u=f!=="",_=u?null:((b=d.value)==null?void 0:b.trim())||"";s("update-text-var",{reactiveSource:u?f:null,manualEdit:_,hideHeader:h.value}),a.value=!1}return(f,u)=>{const _=l.resolveComponent("el-option"),b=l.resolveComponent("el-select"),L=l.resolveComponent("el-input"),H=l.resolveComponent("el-checkbox"),A=l.resolveComponent("el-button"),N=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(N,{class:"full-dialog-dashboard",modelValue:a.value,"onUpdate:modelValue":u[4]||(u[4]=D=>a.value=D),title:"Text Widget Settings","append-to-body":!0},{footer:l.withCtx(()=>[l.createElementVNode("div",fs,[l.createVNode(A,{class:"secondary",onClick:u[3]||(u[3]=D=>a.value=!1)},{default:l.withCtx(()=>[...u[8]||(u[8]=[l.createTextVNode("Cancel",-1)])]),_:1}),l.createVNode(A,{onClick:c},{default:l.withCtx(()=>[...u[9]||(u[9]=[l.createTextVNode("Save",-1)])]),_:1})])]),default:l.withCtx(()=>[l.createElementVNode("div",us,[l.createElementVNode("div",ps,[u[5]||(u[5]=l.createElementVNode("h4",null,"Select This Widget's Value",-1)),u[6]||(u[6]=l.createElementVNode("h5",null,"Select From Variables",-1)),l.createVNode(b,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=D=>n.value=D),class:"text-settings-height"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(_,{value:"",key:"__manual__",label:"Manual entry"})),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(i),D=>(l.openBlock(),l.createBlock(_,{key:D.name,label:D.name,value:D.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),u[7]||(u[7]=l.createElementVNode("h5",null,"Manual Entry",-1)),l.createVNode(L,{modelValue:d.value,"onUpdate:modelValue":u[1]||(u[1]=D=>d.value=D),class:"text-settings-height"},null,8,["modelValue"]),l.createVNode(H,{modelValue:h.value,"onUpdate:modelValue":u[2]||(u[2]=D=>h.value=D),label:"Hide Header"},null,8,["modelValue"])])])]),_:1},8,["modelValue"])}}}),_e=(o,e)=>{const t=o.__vccOpts||o;for(const[i,s]of e)t[i]=s;return t},ms=_e(gs,[["__scopeId","data-v-769ea864"]]),_s={key:0},ys=_e(l.defineComponent({inheritAttrs:!1,__name:"TextWidget",props:{displayText:{},bindedKey:{},widgetID:{},hideHeader:{type:Boolean}},setup(o){const e=De(),t=o;l.inject("dashboard:globalVars",null);const i=l.ref(t.displayText??"");l.watch(()=>t.displayText,A=>{i.value=A??""},{immediate:!0});const s=l.computed(()=>!!(t.bindedKey&&t.bindedKey.trim()!=="")),r=l.computed(()=>{var v;const A=(v=t.bindedKey)==null?void 0:v.trim();if(!A)return"—";const N=e.optionsData.find(B=>(B==null?void 0:B.name)===A),D=N==null?void 0:N.value;return Array.isArray(D)?D.join(", "):D&&typeof D=="object"?JSON.stringify(D):D??"—"}),a=l.ref("Text Widget"),n=l.shallowRef([{comp:Qt,event:_,tooltip:"open Text settings"}]),d=l.ref(!1),h=l.ref(null);function c(){var A,N;d.value=!0,(N=(A=h.value)==null?void 0:A.focus)==null||N.call(A)}function f(){d.value=!1}const u=l.ref(!1);function _(){u.value=!0}function b(){u.value=!1}function L({manualEdit:A,reactiveSource:N,hideHeader:D}){const v=e.getDashItem(t.widgetID);v&&(v.hideHeader=D,N&&N.trim()!==""?(v.Props=v.Props||{},v.Props.bindedKey=N,v.Props.displayText=null,v.componentName=H(N)):(v.Props=v.Props||{},v.Props.bindedKey=null,v.Props.displayText=A??"",v.componentName=A??"Text"),e.saveToLocalStorage())}function H(A){return A?A.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,N=>N.toUpperCase()):""}return(A,N)=>{const D=l.resolveComponent("el-input"),v=l.resolveDirective("click-out");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.renderSlot(A.$slots,"default",{widgetName:a.value,childIcons:n.value},void 0,!0),l.createElementVNode("div",l.mergeProps({class:"text-widget-wrap"},A.$attrs),[s.value?(l.openBlock(),l.createElementBlock("div",_s,[l.createElementVNode("h2",null,l.toDisplayString(r.value),1)])):l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:1,onKeyup:l.withKeys(f,["enter"]),class:"tw-flex"},[l.withDirectives(l.createElementVNode("div",null,[l.createVNode(D,{ref_key:"textUserInput",ref:h,modelValue:i.value,"onUpdate:modelValue":N[0]||(N[0]=B=>i.value=B),onFocus:N[1]||(N[1]=B=>{var w,y;return(y=(w=B.target)==null?void 0:w.select)==null?void 0:y.call(w)})},null,8,["modelValue"])],512),[[l.vShow,d.value]]),l.withDirectives(l.createElementVNode("div",{onClick:N[2]||(N[2]=B=>c()),class:"tw-w-full tw-h-full"},[l.createElementVNode("h2",null,l.toDisplayString(i.value),1)],512),[[l.vShow,!d.value]])],32)),[[v,f]])],16),l.createVNode(ms,{"show-dialog":u.value,"reactive-source-value":t.bindedKey||"","manual-entry-value":i.value,"hide-header-value":t.hideHeader||!1,onCloseDialog:b,onUpdateTextVar:L},null,8,["show-dialog","reactive-source-value","manual-entry-value","hide-header-value"])],64)}}}),[["__scopeId","data-v-5e485ae3"]]);function wt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ye=wt();function Jt(o){ye=o}var Ne={exec:()=>null};function M(o,e=""){let t=typeof o=="string"?o:o.source,i={replace:(s,r)=>{let a=typeof r=="string"?r:r.source;return a=a.replace(K.caret,"$1"),t=t.replace(s,a),i},getRegex:()=>new RegExp(t,e)};return i}var K={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:o=>new RegExp(`^( {0,3}${o})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}#`),htmlBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}<(?:[a-z].*>|!--)`,"i")},ws=/^(?:[ \t]*(?:\n|$))+/,bs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xs=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Le=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ks=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bt=/(?:[*+-]|\d{1,9}[.)])/,ei=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ti=M(ei).replace(/bull/g,bt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Es=M(ei).replace(/bull/g,bt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,vs=/^[^\n]+/,kt=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ts=M(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rs=M(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bt).getRegex(),qe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Et=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Cs=M("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Et).replace("tag",qe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ii=M(xt).replace("hr",Le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qe).getRegex(),Ss=M(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ii).getRegex(),vt={blockquote:Ss,code:bs,def:Ts,fences:xs,heading:ks,hr:Le,html:Cs,lheading:ti,list:Rs,newline:ws,paragraph:ii,table:Ne,text:vs},si=M("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qe).getRegex(),As={...vt,lheading:Es,table:si,paragraph:M(xt).replace("hr",Le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",si).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qe).getRegex()},Ds={...vt,html:M(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Et).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:M(xt).replace("hr",Le).replace("heading",` *#{1,6} *[^
|
|
1
|
+
(function(q,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("pinia"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","pinia","element-plus"],l):(q=typeof globalThis<"u"?globalThis:q||self,l(q["pennsieve-dashboard"]={},q.Vue,q.Pinia,q.ElementPlus))})(this,(function(q,l,ce,yt){"use strict";var dn=Object.defineProperty;var un=(q,l,ce)=>l in q?dn(q,l,{enumerable:!0,configurable:!0,writable:!0,value:ce}):q[l]=ce;var P=(q,l,ce)=>un(q,typeof l!="symbol"?l+"":l,ce);/*! Element Plus Icons Vue v2.3.2 */var Pt;var ss=l.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),rs=ss,ns=l.defineComponent({name:"Close",__name:"close",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),os=ns,ls=l.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),l.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Qt=ls,as=l.defineComponent({name:"Lock",__name:"lock",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),l.createElementVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),hs=as,cs=l.defineComponent({name:"Unlock",__name:"unlock",setup(o){return(e,t)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),l.createElementVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),ds=cs;const De=ce.defineStore("globalPensieveDashVars",()=>{const o=l.ref([]),e=l.ref({}),t="dashboard-globalVarsStore",i=l.ref([]),s=l.ref([]),r=l.ref({}),a=l.reactive({}),n=l.reactive({});function d(C,T,F=!1){a[C]=T,n[C]=F}function h(C={}){for(const T of Object.keys(a))delete a[T];Object.assign(a,C)}const c=C=>{delete a[C]};function f(){for(const C of Object.keys(a))delete a[C]}function u(){s.value=[...o.value],h({})}const _=C=>s.value.find(T=>T.id===C),b=(C,T)=>{i.value.push({name:C,value:T})},L=()=>{i.value=[]},H=C=>{r.value=N(C)},A=()=>r.value;function N(C){const T={};if(!C||typeof C!="object")return T;for(const[F,O]of Object.entries(C))if(O&&typeof O=="object"&&!(l.isRef(O)||l.isReactive(O))){const z=Object.getPrototypeOf(O)===Object.prototype;T[F]=z?{...O}:l.markRaw(O)}else T[F]=O;return T}const D=C=>{const T=s.value.find(F=>F.id===C);T&&(T.Props=T.Props||{},T.Props.locked=!T.Props.locked)},v=C=>C.map(T=>{const F=e.value[T.componentKey];return F?{...T,component:F}:null}).filter(T=>!!T);function B(C){}function w(){}return{DASHBOARD_ITEMS:s,DefaultLayout:o,ComponentRegistry:e,optionsData:i,Services:r,Filters:a,displayFilters:n,registerGridProvider:B,unregisterGridProvider:w,setFilter:d,clearFilter:c,clearAllFilters:f,resetFilters:h,resetGridLayout:u,getDashItem:_,toggleWidgetLock:D,addOptionsDataItems:b,clearOptionsDataItems:L,loadFromLocalStorage:()=>{const C=localStorage.getItem(t);if(!C){u();return}try{const T=JSON.parse(C);s.value=Array.isArray(T.items)?v(T.items):[...o.value],h(T.filters??{})}catch(T){console.error("Failed to parse globalVarsStore:",T),s.value=[...o.value],h({})}},setOptionServices:H,getServices:A}}),us={class:"widget-settings-container"},ps={class:"widget-setting"},fs={class:"dialog-footer"},gs=l.defineComponent({__name:"TextWidgetSettings",props:{showDialog:{type:Boolean},reactiveSourceValue:{},manualEntryValue:{},hideHeaderValue:{type:Boolean}},emits:["close-dialog","update-text-var"],setup(o,{emit:e}){const t=De(),{optionsData:i}=ce.storeToRefs(t),s=e,r=o,a=l.computed({get:()=>r.showDialog,set:f=>{f||s("close-dialog")}}),n=l.ref(r.reactiveSourceValue??""),d=l.ref(r.manualEntryValue??""),h=l.ref(!!r.hideHeaderValue);l.watch(()=>r.reactiveSourceValue,f=>{n.value=f??""}),l.watch(()=>r.manualEntryValue,f=>{d.value=f??""},{immediate:!0}),l.watch(()=>r.hideHeaderValue,f=>{h.value=!!f});function c(){var b;const f=(n.value||"").trim(),u=f!=="",_=u?null:((b=d.value)==null?void 0:b.trim())||"";s("update-text-var",{reactiveSource:u?f:null,manualEdit:_,hideHeader:h.value}),a.value=!1}return(f,u)=>{const _=l.resolveComponent("el-option"),b=l.resolveComponent("el-select"),L=l.resolveComponent("el-input"),H=l.resolveComponent("el-checkbox"),A=l.resolveComponent("el-button"),N=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(N,{class:"full-dialog-dashboard",modelValue:a.value,"onUpdate:modelValue":u[4]||(u[4]=D=>a.value=D),title:"Text Widget Settings","append-to-body":!0},{footer:l.withCtx(()=>[l.createElementVNode("div",fs,[l.createVNode(A,{class:"secondary",onClick:u[3]||(u[3]=D=>a.value=!1)},{default:l.withCtx(()=>[...u[8]||(u[8]=[l.createTextVNode("Cancel",-1)])]),_:1}),l.createVNode(A,{onClick:c},{default:l.withCtx(()=>[...u[9]||(u[9]=[l.createTextVNode("Save",-1)])]),_:1})])]),default:l.withCtx(()=>[l.createElementVNode("div",us,[l.createElementVNode("div",ps,[u[5]||(u[5]=l.createElementVNode("h4",null,"Select This Widget's Value",-1)),u[6]||(u[6]=l.createElementVNode("h5",null,"Select From Variables",-1)),l.createVNode(b,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=D=>n.value=D),class:"text-settings-height"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(_,{value:"",key:"__manual__",label:"Manual entry"})),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(i),D=>(l.openBlock(),l.createBlock(_,{key:D.name,label:D.name,value:D.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),u[7]||(u[7]=l.createElementVNode("h5",null,"Manual Entry",-1)),l.createVNode(L,{modelValue:d.value,"onUpdate:modelValue":u[1]||(u[1]=D=>d.value=D),class:"text-settings-height"},null,8,["modelValue"]),l.createVNode(H,{modelValue:h.value,"onUpdate:modelValue":u[2]||(u[2]=D=>h.value=D),label:"Hide Header"},null,8,["modelValue"])])])]),_:1},8,["modelValue"])}}}),_e=(o,e)=>{const t=o.__vccOpts||o;for(const[i,s]of e)t[i]=s;return t},ms=_e(gs,[["__scopeId","data-v-769ea864"]]),_s={key:0},ys=_e(l.defineComponent({inheritAttrs:!1,__name:"TextWidget",props:{displayText:{},bindedKey:{},widgetID:{},hideHeader:{type:Boolean}},setup(o){const e=De(),t=o;l.inject("dashboard:globalVars",null);const i=l.ref(t.displayText??"");l.watch(()=>t.displayText,A=>{i.value=A??""},{immediate:!0});const s=l.computed(()=>!!(t.bindedKey&&t.bindedKey.trim()!=="")),r=l.computed(()=>{var v;const A=(v=t.bindedKey)==null?void 0:v.trim();if(!A)return"—";const N=e.optionsData.find(B=>(B==null?void 0:B.name)===A),D=N==null?void 0:N.value;return Array.isArray(D)?D.join(", "):D&&typeof D=="object"?JSON.stringify(D):D??"—"}),a=l.ref("Text Widget"),n=l.shallowRef([{comp:Qt,event:_,tooltip:"open Text settings"}]),d=l.ref(!1),h=l.ref(null);function c(){var A,N;d.value=!0,(N=(A=h.value)==null?void 0:A.focus)==null||N.call(A)}function f(){d.value=!1}const u=l.ref(!1);function _(){u.value=!0}function b(){u.value=!1}function L({manualEdit:A,reactiveSource:N,hideHeader:D}){const v=e.getDashItem(t.widgetID);v&&(v.hideHeader=D,N&&N.trim()!==""?(v.Props=v.Props||{},v.Props.bindedKey=N,v.Props.displayText=null,v.componentName=H(N)):(v.Props=v.Props||{},v.Props.bindedKey=null,v.Props.displayText=A??"",v.componentName=A??"Text"))}function H(A){return A?A.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,N=>N.toUpperCase()):""}return(A,N)=>{const D=l.resolveComponent("el-input"),v=l.resolveDirective("click-out");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.renderSlot(A.$slots,"default",{widgetName:a.value,childIcons:n.value},void 0,!0),l.createElementVNode("div",l.mergeProps({class:"text-widget-wrap"},A.$attrs),[s.value?(l.openBlock(),l.createElementBlock("div",_s,[l.createElementVNode("h2",null,l.toDisplayString(r.value),1)])):l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:1,onKeyup:l.withKeys(f,["enter"]),class:"tw-flex"},[l.withDirectives(l.createElementVNode("div",null,[l.createVNode(D,{ref_key:"textUserInput",ref:h,modelValue:i.value,"onUpdate:modelValue":N[0]||(N[0]=B=>i.value=B),onFocus:N[1]||(N[1]=B=>{var w,y;return(y=(w=B.target)==null?void 0:w.select)==null?void 0:y.call(w)})},null,8,["modelValue"])],512),[[l.vShow,d.value]]),l.withDirectives(l.createElementVNode("div",{onClick:N[2]||(N[2]=B=>c()),class:"tw-w-full tw-h-full"},[l.createElementVNode("h2",null,l.toDisplayString(i.value),1)],512),[[l.vShow,!d.value]])],32)),[[v,f]])],16),l.createVNode(ms,{"show-dialog":u.value,"reactive-source-value":t.bindedKey||"","manual-entry-value":i.value,"hide-header-value":t.hideHeader||!1,onCloseDialog:b,onUpdateTextVar:L},null,8,["show-dialog","reactive-source-value","manual-entry-value","hide-header-value"])],64)}}}),[["__scopeId","data-v-bbd00006"]]);function wt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ye=wt();function Jt(o){ye=o}var Ne={exec:()=>null};function M(o,e=""){let t=typeof o=="string"?o:o.source,i={replace:(s,r)=>{let a=typeof r=="string"?r:r.source;return a=a.replace(K.caret,"$1"),t=t.replace(s,a),i},getRegex:()=>new RegExp(t,e)};return i}var K={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:o=>new RegExp(`^( {0,3}${o})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}#`),htmlBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}<(?:[a-z].*>|!--)`,"i")},ws=/^(?:[ \t]*(?:\n|$))+/,bs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xs=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Le=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ks=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bt=/(?:[*+-]|\d{1,9}[.)])/,ei=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ti=M(ei).replace(/bull/g,bt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Es=M(ei).replace(/bull/g,bt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,vs=/^[^\n]+/,kt=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ts=M(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rs=M(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bt).getRegex(),qe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Et=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Cs=M("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Et).replace("tag",qe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ii=M(xt).replace("hr",Le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qe).getRegex(),Ss=M(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ii).getRegex(),vt={blockquote:Ss,code:bs,def:Ts,fences:xs,heading:ks,hr:Le,html:Cs,lheading:ti,list:Rs,newline:ws,paragraph:ii,table:Ne,text:vs},si=M("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qe).getRegex(),As={...vt,lheading:Es,table:si,paragraph:M(xt).replace("hr",Le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",si).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qe).getRegex()},Ds={...vt,html:M(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Et).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:M(xt).replace("hr",Le).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",ti).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ns=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ls=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ri=/^( {2,}|\\)\n(?!\s*$)/,zs=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,je=/[\p{P}\p{S}]/u,Tt=/[\s\p{P}\p{S}]/u,ni=/[^\s\p{P}\p{S}]/u,Ms=M(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Tt).getRegex(),oi=/(?!~)[\p{P}\p{S}]/u,Is=/(?!~)[\s\p{P}\p{S}]/u,Hs=/(?:[^\s\p{P}\p{S}]|~)/u,Os=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,li=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ps=M(li,"u").replace(/punct/g,je).getRegex(),Bs=M(li,"u").replace(/punct/g,oi).getRegex(),ai="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$s=M(ai,"gu").replace(/notPunctSpace/g,ni).replace(/punctSpace/g,Tt).replace(/punct/g,je).getRegex(),Us=M(ai,"gu").replace(/notPunctSpace/g,Hs).replace(/punctSpace/g,Is).replace(/punct/g,oi).getRegex(),Fs=M("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ni).replace(/punctSpace/g,Tt).replace(/punct/g,je).getRegex(),Ws=M(/\\(punct)/,"gu").replace(/punct/g,je).getRegex(),Gs=M(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Vs=M(Et).replace("(?:-->|$)","-->").getRegex(),qs=M("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Vs).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ye=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,js=M(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ye).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),hi=M(/^!?\[(label)\]\[(ref)\]/).replace("label",Ye).replace("ref",kt).getRegex(),ci=M(/^!?\[(ref)\](?:\[\])?/).replace("ref",kt).getRegex(),Ys=M("reflink|nolink(?!\\()","g").replace("reflink",hi).replace("nolink",ci).getRegex(),Rt={_backpedal:Ne,anyPunctuation:Ws,autolink:Gs,blockSkip:Os,br:ri,code:Ls,del:Ne,emStrongLDelim:Ps,emStrongRDelimAst:$s,emStrongRDelimUnd:Fs,escape:Ns,link:js,nolink:ci,punctuation:Ms,reflink:hi,reflinkSearch:Ys,tag:qs,text:zs,url:Ne},Xs={...Rt,link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",Ye).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ye).getRegex()},Ct={...Rt,emStrongRDelimAst:Us,emStrongLDelim:Bs,url:M(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Zs={...Ct,br:M(ri).replace("{2,}","*").getRegex(),text:M(Ct.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Xe={normal:vt,gfm:As,pedantic:Ds},ze={normal:Rt,gfm:Ct,breaks:Zs,pedantic:Xs},Ks={"&":"&","<":"<",">":">",'"':""","'":"'"},di=o=>Ks[o];function oe(o,e){if(e){if(K.escapeTest.test(o))return o.replace(K.escapeReplace,di)}else if(K.escapeTestNoEncode.test(o))return o.replace(K.escapeReplaceNoEncode,di);return o}function ui(o){try{o=encodeURI(o).replace(K.percentDecode,"%")}catch{return null}return o}function pi(o,e){var r;let t=o.replace(K.findPipe,(a,n,d)=>{let h=!1,c=n;for(;--c>=0&&d[c]==="\\";)h=!h;return h?"|":" |"}),i=t.split(K.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((r=i.at(-1))!=null&&r.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(K.slashPipe,"|");return i}function Me(o,e,t){let i=o.length;if(i===0)return"";let s=0;for(;s<i&&o.charAt(i-s-1)===e;)s++;return o.slice(0,i-s)}function Qs(o,e){if(o.indexOf(e[1])===-1)return-1;let t=0;for(let i=0;i<o.length;i++)if(o[i]==="\\")i++;else if(o[i]===e[0])t++;else if(o[i]===e[1]&&(t--,t<0))return i;return t>0?-2:-1}function fi(o,e,t,i,s){let r=e.href,a=e.title||null,n=o[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let d={type:o[0].charAt(0)==="!"?"image":"link",raw:t,href:r,title:a,text:n,tokens:i.inlineTokens(n)};return i.state.inLink=!1,d}function Js(o,e,t){let i=o.match(t.other.indentCodeCompensation);if(i===null)return e;let s=i[1];return e.split(`
|
|
3
3
|
`).map(r=>{let a=r.match(t.other.beginningSpace);if(a===null)return r;let[n]=a;return n.length>=s.length?r.slice(s.length):r}).join(`
|
|
4
4
|
`)}var Ze=class{constructor(o){P(this,"options");P(this,"rules");P(this,"lexer");this.options=o||ye}space(o){let e=this.rules.block.newline.exec(o);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(o){let e=this.rules.block.code.exec(o);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:Me(t,`
|
|
@@ -58,7 +58,7 @@ ${o}</tr>
|
|
|
58
58
|
`}strong({tokens:o}){return`<strong>${this.parser.parseInline(o)}</strong>`}em({tokens:o}){return`<em>${this.parser.parseInline(o)}</em>`}codespan({text:o}){return`<code>${oe(o,!0)}</code>`}br(o){return"<br>"}del({tokens:o}){return`<del>${this.parser.parseInline(o)}</del>`}link({href:o,title:e,tokens:t}){let i=this.parser.parseInline(t),s=ui(o);if(s===null)return i;o=s;let r='<a href="'+o+'"';return e&&(r+=' title="'+oe(e)+'"'),r+=">"+i+"</a>",r}image({href:o,title:e,text:t,tokens:i}){i&&(t=this.parser.parseInline(i,this.parser.textRenderer));let s=ui(o);if(s===null)return oe(t);o=s;let r=`<img src="${o}" alt="${t}"`;return e&&(r+=` title="${oe(e)}"`),r+=">",r}text(o){return"tokens"in o&&o.tokens?this.parser.parseInline(o.tokens):"escaped"in o&&o.escaped?o.text:oe(o.text)}},St=class{strong({text:o}){return o}em({text:o}){return o}codespan({text:o}){return o}del({text:o}){return o}html({text:o}){return o}text({text:o}){return o}link({text:o}){return""+o}image({text:o}){return""+o}br(){return""}},ue=class Kt{constructor(e){P(this,"options");P(this,"renderer");P(this,"textRenderer");this.options=e||ye,this.options.renderer=this.options.renderer||new Ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new St}static parse(e,t){return new Kt(t).parse(e)}static parseInline(e,t){return new Kt(t).parseInline(e)}parse(e,t=!0){var s,r;let i="";for(let a=0;a<e.length;a++){let n=e[a];if((r=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&r[n.type]){let h=n,c=this.options.extensions.renderers[h.type].call({parser:this},h);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){i+=c||"";continue}}let d=n;switch(d.type){case"space":{i+=this.renderer.space(d);continue}case"hr":{i+=this.renderer.hr(d);continue}case"heading":{i+=this.renderer.heading(d);continue}case"code":{i+=this.renderer.code(d);continue}case"table":{i+=this.renderer.table(d);continue}case"blockquote":{i+=this.renderer.blockquote(d);continue}case"list":{i+=this.renderer.list(d);continue}case"html":{i+=this.renderer.html(d);continue}case"def":{i+=this.renderer.def(d);continue}case"paragraph":{i+=this.renderer.paragraph(d);continue}case"text":{let h=d,c=this.renderer.text(h);for(;a+1<e.length&&e[a+1].type==="text";)h=e[++a],c+=`
|
|
59
59
|
`+this.renderer.text(h);t?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):i+=c;continue}default:{let h='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}parseInline(e,t=this.renderer){var s,r;let i="";for(let a=0;a<e.length;a++){let n=e[a];if((r=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&r[n.type]){let h=this.options.extensions.renderers[n.type].call({parser:this},n);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=h||"";continue}}let d=n;switch(d.type){case"escape":{i+=t.text(d);break}case"html":{i+=t.html(d);break}case"link":{i+=t.link(d);break}case"image":{i+=t.image(d);break}case"strong":{i+=t.strong(d);break}case"em":{i+=t.em(d);break}case"codespan":{i+=t.codespan(d);break}case"br":{i+=t.br(d);break}case"del":{i+=t.del(d);break}case"text":{i+=t.text(d);break}default:{let h='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},Qe=(Pt=class{constructor(o){P(this,"options");P(this,"block");this.options=o||ye}preprocess(o){return o}postprocess(o){return o}processAllTokens(o){return o}provideLexer(){return this.block?de.lex:de.lexInline}provideParser(){return this.block?ue.parse:ue.parseInline}},P(Pt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Pt),er=class{constructor(...o){P(this,"defaults",wt());P(this,"options",this.setOptions);P(this,"parse",this.parseMarkdown(!0));P(this,"parseInline",this.parseMarkdown(!1));P(this,"Parser",ue);P(this,"Renderer",Ke);P(this,"TextRenderer",St);P(this,"Lexer",de);P(this,"Tokenizer",Ze);P(this,"Hooks",Qe);this.use(...o)}walkTokens(o,e){var i,s;let t=[];for(let r of o)switch(t=t.concat(e.call(this,r)),r.type){case"table":{let a=r;for(let n of a.header)t=t.concat(this.walkTokens(n.tokens,e));for(let n of a.rows)for(let d of n)t=t.concat(this.walkTokens(d.tokens,e));break}case"list":{let a=r;t=t.concat(this.walkTokens(a.items,e));break}default:{let a=r;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[a.type]?this.defaults.extensions.childTokens[a.type].forEach(n=>{let d=a[n].flat(1/0);t=t.concat(this.walkTokens(d,e))}):a.tokens&&(t=t.concat(this.walkTokens(a.tokens,e)))}}return t}use(...o){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return o.forEach(t=>{let i={...t};if(i.async=this.defaults.async||i.async||!1,t.extensions&&(t.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let r=e.renderers[s.name];r?e.renderers[s.name]=function(...a){let n=s.renderer.apply(this,a);return n===!1&&(n=r.apply(this,a)),n}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=e[s.level];r?r.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),i.extensions=e),t.renderer){let s=this.defaults.renderer||new Ke(this.defaults);for(let r in t.renderer){if(!(r in s))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let a=r,n=t.renderer[a],d=s[a];s[a]=(...h)=>{let c=n.apply(s,h);return c===!1&&(c=d.apply(s,h)),c||""}}i.renderer=s}if(t.tokenizer){let s=this.defaults.tokenizer||new Ze(this.defaults);for(let r in t.tokenizer){if(!(r in s))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let a=r,n=t.tokenizer[a],d=s[a];s[a]=(...h)=>{let c=n.apply(s,h);return c===!1&&(c=d.apply(s,h)),c}}i.tokenizer=s}if(t.hooks){let s=this.defaults.hooks||new Qe;for(let r in t.hooks){if(!(r in s))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let a=r,n=t.hooks[a],d=s[a];Qe.passThroughHooks.has(r)?s[a]=h=>{if(this.defaults.async)return Promise.resolve(n.call(s,h)).then(f=>d.call(s,f));let c=n.call(s,h);return d.call(s,c)}:s[a]=(...h)=>{let c=n.apply(s,h);return c===!1&&(c=d.apply(s,h)),c}}i.hooks=s}if(t.walkTokens){let s=this.defaults.walkTokens,r=t.walkTokens;i.walkTokens=function(a){let n=[];return n.push(r.call(this,a)),s&&(n=n.concat(s.call(this,a))),n}}this.defaults={...this.defaults,...i}}),this}setOptions(o){return this.defaults={...this.defaults,...o},this}lexer(o,e){return de.lex(o,e??this.defaults)}parser(o,e){return ue.parse(o,e??this.defaults)}parseMarkdown(o){return(e,t)=>{let i={...t},s={...this.defaults,...i},r=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=o);let a=s.hooks?s.hooks.provideLexer():o?de.lex:de.lexInline,n=s.hooks?s.hooks.provideParser():o?ue.parse:ue.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(e):e).then(d=>a(d,s)).then(d=>s.hooks?s.hooks.processAllTokens(d):d).then(d=>s.walkTokens?Promise.all(this.walkTokens(d,s.walkTokens)).then(()=>d):d).then(d=>n(d,s)).then(d=>s.hooks?s.hooks.postprocess(d):d).catch(r);try{s.hooks&&(e=s.hooks.preprocess(e));let d=a(e,s);s.hooks&&(d=s.hooks.processAllTokens(d)),s.walkTokens&&this.walkTokens(d,s.walkTokens);let h=n(d,s);return s.hooks&&(h=s.hooks.postprocess(h)),h}catch(d){return r(d)}}}onError(o,e){return t=>{if(t.message+=`
|
|
60
60
|
Please report this to https://github.com/markedjs/marked.`,o){let i="<p>An error occurred:</p><pre>"+oe(t.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(t);throw t}}},we=new er;function I(o,e){return we.parse(o,e)}I.options=I.setOptions=function(o){return we.setOptions(o),I.defaults=we.defaults,Jt(I.defaults),I},I.getDefaults=wt,I.defaults=ye,I.use=function(...o){return we.use(...o),I.defaults=we.defaults,Jt(I.defaults),I},I.walkTokens=function(o,e){return we.walkTokens(o,e)},I.parseInline=we.parseInline,I.Parser=ue,I.parser=ue.parse,I.Renderer=Ke,I.TextRenderer=St,I.Lexer=de,I.lexer=de.lex,I.Tokenizer=Ze,I.Hooks=Qe,I.parse=I,I.options,I.setOptions,I.use,I.walkTokens,I.parseInline,ue.parse,de.lex;/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:gi,setPrototypeOf:mi,isFrozen:tr,getPrototypeOf:ir,getOwnPropertyDescriptor:sr}=Object;let{freeze:Q,seal:se,create:_i}=Object,{apply:At,construct:Dt}=typeof Reflect<"u"&&Reflect;Q||(Q=function(e){return e}),se||(se=function(e){return e}),At||(At=function(e,t,i){return e.apply(t,i)}),Dt||(Dt=function(e,t){return new e(...t)});const Je=ee(Array.prototype.forEach),rr=ee(Array.prototype.lastIndexOf),yi=ee(Array.prototype.pop),Ie=ee(Array.prototype.push),nr=ee(Array.prototype.splice),et=ee(String.prototype.toLowerCase),Nt=ee(String.prototype.toString),wi=ee(String.prototype.match),He=ee(String.prototype.replace),or=ee(String.prototype.indexOf),lr=ee(String.prototype.trim),re=ee(Object.prototype.hasOwnProperty),J=ee(RegExp.prototype.test),Oe=ar(TypeError);function ee(o){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return At(o,e,i)}}function ar(o){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Dt(o,t)}}function S(o,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:et;mi&&mi(o,null);let i=e.length;for(;i--;){let s=e[i];if(typeof s=="string"){const r=t(s);r!==s&&(tr(e)||(e[i]=r),s=r)}o[s]=!0}return o}function hr(o){for(let e=0;e<o.length;e++)re(o,e)||(o[e]=null);return o}function pe(o){const e=_i(null);for(const[t,i]of gi(o))re(o,t)&&(Array.isArray(i)?e[t]=hr(i):i&&typeof i=="object"&&i.constructor===Object?e[t]=pe(i):e[t]=i);return e}function Pe(o,e){for(;o!==null;){const i=sr(o,e);if(i){if(i.get)return ee(i.get);if(typeof i.value=="function")return ee(i.value)}o=ir(o)}function t(){return null}return t}const bi=Q(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lt=Q(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zt=Q(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cr=Q(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mt=Q(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),dr=Q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xi=Q(["#text"]),ki=Q(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),It=Q(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ei=Q(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),tt=Q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ur=se(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pr=se(/<%[\w\W]*|[\w\W]*%>/gm),fr=se(/\$\{[\w\W]*/gm),gr=se(/^data-[\-\w.\u00B7-\uFFFF]+$/),mr=se(/^aria-[\-\w]+$/),vi=se(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_r=se(/^(?:\w+script|data):/i),yr=se(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ti=se(/^html$/i),wr=se(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ri=Object.freeze({__proto__:null,ARIA_ATTR:mr,ATTR_WHITESPACE:yr,CUSTOM_ELEMENT:wr,DATA_ATTR:gr,DOCTYPE_NAME:Ti,ERB_EXPR:pr,IS_ALLOWED_URI:vi,IS_SCRIPT_OR_DATA:_r,MUSTACHE_EXPR:ur,TMPLIT_EXPR:fr});const Be={element:1,text:3,progressingInstruction:7,comment:8,document:9},br=function(){return typeof window>"u"?null:window},xr=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(i=t.getAttribute(s));const r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Ci=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Si(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:br();const e=k=>Si(k);if(e.version="3.2.6",e.removed=[],!o||!o.document||o.document.nodeType!==Be.document||!o.Element)return e.isSupported=!1,e;let{document:t}=o;const i=t,s=i.currentScript,{DocumentFragment:r,HTMLTemplateElement:a,Node:n,Element:d,NodeFilter:h,NamedNodeMap:c=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:f,DOMParser:u,trustedTypes:_}=o,b=d.prototype,L=Pe(b,"cloneNode"),H=Pe(b,"remove"),A=Pe(b,"nextSibling"),N=Pe(b,"childNodes"),D=Pe(b,"parentNode");if(typeof a=="function"){const k=t.createElement("template");k.content&&k.content.ownerDocument&&(t=k.content.ownerDocument)}let v,B="";const{implementation:w,createNodeIterator:y,createDocumentFragment:C,getElementsByTagName:T}=t,{importNode:F}=i;let O=Ci();e.isSupported=typeof gi=="function"&&typeof D=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:be,TMPLIT_EXPR:ke,DATA_ATTR:at,ARIA_ATTR:ht,IS_SCRIPT_OR_DATA:ct,ATTR_WHITESPACE:Li,CUSTOM_ELEMENT:tn}=Ri;let{IS_ALLOWED_URI:zi}=Ri,G=null;const Mi=S({},[...bi,...Lt,...zt,...Mt,...xi]);let Y=null;const Ii=S({},[...ki,...It,...Ei,...tt]);let U=Object.seal(_i(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Fe=null,Bt=null,Hi=!0,$t=!0,Oi=!1,Pi=!0,Ee=!1,dt=!0,xe=!1,Ut=!1,Ft=!1,ve=!1,ut=!1,pt=!1,Bi=!0,$i=!1;const sn="user-content-";let Wt=!0,We=!1,Te={},Re=null;const Ui=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fi=null;const Wi=S({},["audio","video","img","source","image","track"]);let Gt=null;const Gi=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml";let Ce=fe,Vt=!1,qt=null;const rn=S({},[ft,gt,fe],Nt);let mt=S({},["mi","mo","mn","ms","mtext"]),_t=S({},["annotation-xml"]);const nn=S({},["title","style","font","a","script"]);let Ge=null;const on=["application/xhtml+xml","text/html"],ln="text/html";let V=null,Se=null;const an=t.createElement("form"),Vi=function(p){return p instanceof RegExp||p instanceof Function},jt=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Se&&Se===p)){if((!p||typeof p!="object")&&(p={}),p=pe(p),Ge=on.indexOf(p.PARSER_MEDIA_TYPE)===-1?ln:p.PARSER_MEDIA_TYPE,V=Ge==="application/xhtml+xml"?Nt:et,G=re(p,"ALLOWED_TAGS")?S({},p.ALLOWED_TAGS,V):Mi,Y=re(p,"ALLOWED_ATTR")?S({},p.ALLOWED_ATTR,V):Ii,qt=re(p,"ALLOWED_NAMESPACES")?S({},p.ALLOWED_NAMESPACES,Nt):rn,Gt=re(p,"ADD_URI_SAFE_ATTR")?S(pe(Gi),p.ADD_URI_SAFE_ATTR,V):Gi,Fi=re(p,"ADD_DATA_URI_TAGS")?S(pe(Wi),p.ADD_DATA_URI_TAGS,V):Wi,Re=re(p,"FORBID_CONTENTS")?S({},p.FORBID_CONTENTS,V):Ui,Fe=re(p,"FORBID_TAGS")?S({},p.FORBID_TAGS,V):pe({}),Bt=re(p,"FORBID_ATTR")?S({},p.FORBID_ATTR,V):pe({}),Te=re(p,"USE_PROFILES")?p.USE_PROFILES:!1,Hi=p.ALLOW_ARIA_ATTR!==!1,$t=p.ALLOW_DATA_ATTR!==!1,Oi=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Pi=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=p.SAFE_FOR_TEMPLATES||!1,dt=p.SAFE_FOR_XML!==!1,xe=p.WHOLE_DOCUMENT||!1,ve=p.RETURN_DOM||!1,ut=p.RETURN_DOM_FRAGMENT||!1,pt=p.RETURN_TRUSTED_TYPE||!1,Ft=p.FORCE_BODY||!1,Bi=p.SANITIZE_DOM!==!1,$i=p.SANITIZE_NAMED_PROPS||!1,Wt=p.KEEP_CONTENT!==!1,We=p.IN_PLACE||!1,zi=p.ALLOWED_URI_REGEXP||vi,Ce=p.NAMESPACE||fe,mt=p.MATHML_TEXT_INTEGRATION_POINTS||mt,_t=p.HTML_INTEGRATION_POINTS||_t,U=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Vi(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Vi(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&($t=!1),ut&&(ve=!0),Te&&(G=S({},xi),Y=[],Te.html===!0&&(S(G,bi),S(Y,ki)),Te.svg===!0&&(S(G,Lt),S(Y,It),S(Y,tt)),Te.svgFilters===!0&&(S(G,zt),S(Y,It),S(Y,tt)),Te.mathMl===!0&&(S(G,Mt),S(Y,Ei),S(Y,tt))),p.ADD_TAGS&&(G===Mi&&(G=pe(G)),S(G,p.ADD_TAGS,V)),p.ADD_ATTR&&(Y===Ii&&(Y=pe(Y)),S(Y,p.ADD_ATTR,V)),p.ADD_URI_SAFE_ATTR&&S(Gt,p.ADD_URI_SAFE_ATTR,V),p.FORBID_CONTENTS&&(Re===Ui&&(Re=pe(Re)),S(Re,p.FORBID_CONTENTS,V)),Wt&&(G["#text"]=!0),xe&&S(G,["html","head","body"]),G.table&&(S(G,["tbody"]),delete Fe.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=p.TRUSTED_TYPES_POLICY,B=v.createHTML("")}else v===void 0&&(v=xr(_,s)),v!==null&&typeof B=="string"&&(B=v.createHTML(""));Q&&Q(p),Se=p}},qi=S({},[...Lt,...zt,...cr]),ji=S({},[...Mt,...dr]),hn=function(p){let m=D(p);(!m||!m.tagName)&&(m={namespaceURI:Ce,tagName:"template"});const x=et(p.tagName),$=et(m.tagName);return qt[p.namespaceURI]?p.namespaceURI===gt?m.namespaceURI===fe?x==="svg":m.namespaceURI===ft?x==="svg"&&($==="annotation-xml"||mt[$]):!!qi[x]:p.namespaceURI===ft?m.namespaceURI===fe?x==="math":m.namespaceURI===gt?x==="math"&&_t[$]:!!ji[x]:p.namespaceURI===fe?m.namespaceURI===gt&&!_t[$]||m.namespaceURI===ft&&!mt[$]?!1:!ji[x]&&(nn[x]||!qi[x]):!!(Ge==="application/xhtml+xml"&&qt[p.namespaceURI]):!1},he=function(p){Ie(e.removed,{element:p});try{D(p).removeChild(p)}catch{H(p)}},Ae=function(p,m){try{Ie(e.removed,{attribute:m.getAttributeNode(p),from:m})}catch{Ie(e.removed,{attribute:null,from:m})}if(m.removeAttribute(p),p==="is")if(ve||ut)try{he(m)}catch{}else try{m.setAttribute(p,"")}catch{}},Yi=function(p){let m=null,x=null;if(Ft)p="<remove></remove>"+p;else{const W=wi(p,/^[\r\n\t ]+/);x=W&&W[0]}Ge==="application/xhtml+xml"&&Ce===fe&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const $=v?v.createHTML(p):p;if(Ce===fe)try{m=new u().parseFromString($,Ge)}catch{}if(!m||!m.documentElement){m=w.createDocument(Ce,"template",null);try{m.documentElement.innerHTML=Vt?B:$}catch{}}const X=m.body||m.documentElement;return p&&x&&X.insertBefore(t.createTextNode(x),X.childNodes[0]||null),Ce===fe?T.call(m,xe?"html":"body")[0]:xe?m.documentElement:X},Xi=function(p){return y.call(p.ownerDocument||p,p,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Yt=function(p){return p instanceof f&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof c)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Zi=function(p){return typeof n=="function"&&p instanceof n};function ge(k,p,m){Je(k,x=>{x.call(e,p,m,Se)})}const Ki=function(p){let m=null;if(ge(O.beforeSanitizeElements,p,null),Yt(p))return he(p),!0;const x=V(p.nodeName);if(ge(O.uponSanitizeElement,p,{tagName:x,allowedTags:G}),dt&&p.hasChildNodes()&&!Zi(p.firstElementChild)&&J(/<[/\w!]/g,p.innerHTML)&&J(/<[/\w!]/g,p.textContent)||p.nodeType===Be.progressingInstruction||dt&&p.nodeType===Be.comment&&J(/<[/\w]/g,p.data))return he(p),!0;if(!G[x]||Fe[x]){if(!Fe[x]&&Ji(x)&&(U.tagNameCheck instanceof RegExp&&J(U.tagNameCheck,x)||U.tagNameCheck instanceof Function&&U.tagNameCheck(x)))return!1;if(Wt&&!Re[x]){const $=D(p)||p.parentNode,X=N(p)||p.childNodes;if(X&&$){const W=X.length;for(let te=W-1;te>=0;--te){const me=L(X[te],!0);me.__removalCount=(p.__removalCount||0)+1,$.insertBefore(me,A(p))}}}return he(p),!0}return p instanceof d&&!hn(p)||(x==="noscript"||x==="noembed"||x==="noframes")&&J(/<\/no(script|embed|frames)/i,p.innerHTML)?(he(p),!0):(Ee&&p.nodeType===Be.text&&(m=p.textContent,Je([z,be,ke],$=>{m=He(m,$," ")}),p.textContent!==m&&(Ie(e.removed,{element:p.cloneNode()}),p.textContent=m)),ge(O.afterSanitizeElements,p,null),!1)},Qi=function(p,m,x){if(Bi&&(m==="id"||m==="name")&&(x in t||x in an))return!1;if(!($t&&!Bt[m]&&J(at,m))){if(!(Hi&&J(ht,m))){if(!Y[m]||Bt[m]){if(!(Ji(p)&&(U.tagNameCheck instanceof RegExp&&J(U.tagNameCheck,p)||U.tagNameCheck instanceof Function&&U.tagNameCheck(p))&&(U.attributeNameCheck instanceof RegExp&&J(U.attributeNameCheck,m)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(m))||m==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&J(U.tagNameCheck,x)||U.tagNameCheck instanceof Function&&U.tagNameCheck(x))))return!1}else if(!Gt[m]){if(!J(zi,He(x,Li,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&p!=="script"&&or(x,"data:")===0&&Fi[p])){if(!(Oi&&!J(ct,He(x,Li,"")))){if(x)return!1}}}}}}return!0},Ji=function(p){return p!=="annotation-xml"&&wi(p,tn)},es=function(p){ge(O.beforeSanitizeAttributes,p,null);const{attributes:m}=p;if(!m||Yt(p))return;const x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let $=m.length;for(;$--;){const X=m[$],{name:W,namespaceURI:te,value:me}=X,Ve=V(W),Xt=me;let Z=W==="value"?Xt:lr(Xt);if(x.attrName=Ve,x.attrValue=Z,x.keepAttr=!0,x.forceKeepAttr=void 0,ge(O.uponSanitizeAttribute,p,x),Z=x.attrValue,$i&&(Ve==="id"||Ve==="name")&&(Ae(W,p),Z=sn+Z),dt&&J(/((--!?|])>)|<\/(style|title)/i,Z)){Ae(W,p);continue}if(x.forceKeepAttr)continue;if(!x.keepAttr){Ae(W,p);continue}if(!Pi&&J(/\/>/i,Z)){Ae(W,p);continue}Ee&&Je([z,be,ke],is=>{Z=He(Z,is," ")});const ts=V(p.nodeName);if(!Qi(ts,Ve,Z)){Ae(W,p);continue}if(v&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!te)switch(_.getAttributeType(ts,Ve)){case"TrustedHTML":{Z=v.createHTML(Z);break}case"TrustedScriptURL":{Z=v.createScriptURL(Z);break}}if(Z!==Xt)try{te?p.setAttributeNS(te,W,Z):p.setAttribute(W,Z),Yt(p)?he(p):yi(e.removed)}catch{Ae(W,p)}}ge(O.afterSanitizeAttributes,p,null)},cn=function k(p){let m=null;const x=Xi(p);for(ge(O.beforeSanitizeShadowDOM,p,null);m=x.nextNode();)ge(O.uponSanitizeShadowNode,m,null),Ki(m),es(m),m.content instanceof r&&k(m.content);ge(O.afterSanitizeShadowDOM,p,null)};return e.sanitize=function(k){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,x=null,$=null,X=null;if(Vt=!k,Vt&&(k="<!-->"),typeof k!="string"&&!Zi(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw Oe("dirty is not a string, aborting")}else throw Oe("toString is not a function");if(!e.isSupported)return k;if(Ut||jt(p),e.removed=[],typeof k=="string"&&(We=!1),We){if(k.nodeName){const me=V(k.nodeName);if(!G[me]||Fe[me])throw Oe("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof n)m=Yi("<!---->"),x=m.ownerDocument.importNode(k,!0),x.nodeType===Be.element&&x.nodeName==="BODY"||x.nodeName==="HTML"?m=x:m.appendChild(x);else{if(!ve&&!Ee&&!xe&&k.indexOf("<")===-1)return v&&pt?v.createHTML(k):k;if(m=Yi(k),!m)return ve?null:pt?B:""}m&&Ft&&he(m.firstChild);const W=Xi(We?k:m);for(;$=W.nextNode();)Ki($),es($),$.content instanceof r&&cn($.content);if(We)return k;if(ve){if(ut)for(X=C.call(m.ownerDocument);m.firstChild;)X.appendChild(m.firstChild);else X=m;return(Y.shadowroot||Y.shadowrootmode)&&(X=F.call(i,X,!0)),X}let te=xe?m.outerHTML:m.innerHTML;return xe&&G["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&J(Ti,m.ownerDocument.doctype.name)&&(te="<!DOCTYPE "+m.ownerDocument.doctype.name+`>
|
|
61
|
-
`+te),Ee&&Je([z,be,ke],me=>{te=He(te,me," ")}),v&&pt?v.createHTML(te):te},e.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};jt(k),Ut=!0},e.clearConfig=function(){Se=null,Ut=!1},e.isValidAttribute=function(k,p,m){Se||jt({});const x=V(k),$=V(p);return Qi(x,$,m)},e.addHook=function(k,p){typeof p=="function"&&Ie(O[k],p)},e.removeHook=function(k,p){if(p!==void 0){const m=rr(O[k],p);return m===-1?void 0:nr(O[k],m,1)[0]}return yi(O[k])},e.removeHooks=function(k){O[k]=[]},e.removeAllHooks=function(){O=Ci()},e}var kr=Si();const Er=["innerHTML"],vr="Markdown",Tr=_e(l.defineComponent({inheritAttrs:!1,__name:"Markdown",props:{markdownText:{},mode:{},sanitize:{type:Boolean},inputFormat:{}},emits:["update:markdownText","changeMode"],setup(o,{emit:e}){const t=o,i=e,s=l.shallowRef([{comp:Qt,event:h,tooltip:"Edit Markdown"}]);I.setOptions({gfm:!0,breaks:!0});const r=l.ref(t.markdownText??"");l.watch(()=>t.markdownText,c=>{c!==void 0&&c!==r.value&&(r.value=c)});const a=l.ref(t.mode?t.mode==="edit":!1);l.watch(()=>t.mode,c=>{c&&(a.value=c==="edit")});const n=l.computed(()=>{const c=t.inputFormat==="html"?r.value??"":I.parse(r.value??"");return t.sanitize===!1?c:kr.sanitize(c)});function d(){i("update:markdownText",r.value)}function h(){a.value=!a.value,i("changeMode",a.value?"edit":"preview")}return(c,f)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.renderSlot(c.$slots,"default",{widgetName:vr,childIcons:s.value},void 0,!0),l.createElementVNode("div",l.mergeProps({class:"markdown-widget-wrap"},c.$attrs),[a.value?l.withDirectives((l.openBlock(),l.createElementBlock("textarea",{key:0,"onUpdate:modelValue":f[0]||(f[0]=u=>r.value=u),onInput:d,class:"markdown-input",placeholder:"Write markdown here…"},null,544)),[[l.vModelText,r.value]]):(l.openBlock(),l.createElementBlock("div",{key:1,class:"markdown-output",innerHTML:n.value},null,8,Er))],16)],64))}}),[["__scopeId","data-v-b2d32c29"]]);function Rr(o,e,t,i,s){let r=(...a)=>(console.warn("gridstack.js: Function `"+t+"` is deprecated in "+s+" and has been replaced with `"+i+"`. It will be **removed** in a future release"),e.apply(o,a));return r.prototype=e.prototype,r}class g{static getElements(e,t=document){if(typeof e=="string"){const i="getElementById"in t?t:void 0;if(i&&!isNaN(+e[0])){const r=i.getElementById(e);return r?[r]:[]}let s=t.querySelectorAll(e);return!s.length&&e[0]!=="."&&e[0]!=="#"&&(s=t.querySelectorAll("."+e),s.length||(s=t.querySelectorAll("#"+e))),Array.from(s)}return[e]}static getElement(e,t=document){if(typeof e=="string"){const i="getElementById"in t?t:void 0;if(!e.length)return null;if(i&&e[0]==="#")return i.getElementById(e.substring(1));if(e[0]==="#"||e[0]==="."||e[0]==="[")return t.querySelector(e);if(i&&!isNaN(+e[0]))return i.getElementById(e);let s=t.querySelector(e);return i&&!s&&(s=i.getElementById(e)),s||(s=t.querySelector("."+e)),s}return e}static shouldSizeToContent(e){return(e==null?void 0:e.grid)&&(!!e.sizeToContent||e.grid.opts.sizeToContent&&e.sizeToContent!==!1)}static isIntercepted(e,t){return!(e.y>=t.y+t.h||e.y+e.h<=t.y||e.x+e.w<=t.x||e.x>=t.x+t.w)}static isTouching(e,t){return g.isIntercepted(e,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static areaIntercept(e,t){let i=e.x>t.x?e.x:t.x,s=e.x+e.w<t.x+t.w?e.x+e.w:t.x+t.w;if(s<=i)return 0;let r=e.y>t.y?e.y:t.y,a=e.y+e.h<t.y+t.h?e.y+e.h:t.y+t.h;return a<=r?0:(s-i)*(a-r)}static area(e){return e.w*e.h}static sort(e,t=1,i){return i=i||e.reduce((s,r)=>Math.max(r.x+r.w,s),0)||12,t===-1?e.sort((s,r)=>(r.x??1e3)+(r.y??1e3)*i-((s.x??1e3)+(s.y??1e3)*i)):e.sort((s,r)=>(s.x??1e3)+(s.y??1e3)*i-((r.x??1e3)+(r.y??1e3)*i))}static find(e,t){return t?e.find(i=>i.id===t):void 0}static createStylesheet(e,t,i){let s=document.createElement("style");const r=i==null?void 0:i.nonce;return r&&(s.nonce=r),s.setAttribute("type","text/css"),s.setAttribute("gs-style-id",e),s.styleSheet?s.styleSheet.cssText="":s.appendChild(document.createTextNode("")),t?t.insertBefore(s,t.firstChild):(t=document.getElementsByTagName("head")[0],t.appendChild(s)),s.sheet}static removeStylesheet(e){let t=document.querySelector("STYLE[gs-style-id="+e+"]");t&&t.parentNode&&t.remove()}static addCSSRule(e,t,i){typeof e.addRule=="function"?e.addRule(t,i):typeof e.insertRule=="function"&&e.insertRule(`${t}{${i}}`)}static toBool(e){return typeof e=="boolean"?e:typeof e=="string"?(e=e.toLowerCase(),!(e===""||e==="no"||e==="false"||e==="0")):!!e}static toNumber(e){return e===null||e.length===0?void 0:Number(e)}static parseHeight(e){let t,i="px";if(typeof e=="string")if(e==="auto"||e==="")t=0;else{let s=e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);if(!s)throw new Error(`Invalid height val = ${e}`);i=s[2]||"px",t=parseFloat(s[1])}else t=e;return{h:t,unit:i}}static defaults(e,...t){return t.forEach(i=>{for(const s in i){if(!i.hasOwnProperty(s))return;e[s]===null||e[s]===void 0?e[s]=i[s]:typeof i[s]=="object"&&typeof e[s]=="object"&&this.defaults(e[s],i[s])}}),e}static same(e,t){if(typeof e!="object")return e==t;if(typeof e!=typeof t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}static copyPos(e,t,i=!1){return t.x!==void 0&&(e.x=t.x),t.y!==void 0&&(e.y=t.y),t.w!==void 0&&(e.w=t.w),t.h!==void 0&&(e.h=t.h),i&&(t.minW&&(e.minW=t.minW),t.minH&&(e.minH=t.minH),t.maxW&&(e.maxW=t.maxW),t.maxH&&(e.maxH=t.maxH)),e}static samePos(e,t){return e&&t&&e.x===t.x&&e.y===t.y&&(e.w||1)===(t.w||1)&&(e.h||1)===(t.h||1)}static sanitizeMinMax(e){e.minW||delete e.minW,e.minH||delete e.minH,e.maxW||delete e.maxW,e.maxH||delete e.maxH}static removeInternalAndSame(e,t){if(!(typeof e!="object"||typeof t!="object"))for(let i in e){let s=e[i];if(i[0]==="_"||s===t[i])delete e[i];else if(s&&typeof s=="object"&&t[i]!==void 0){for(let r in s)(s[r]===t[i][r]||r[0]==="_")&&delete s[r];Object.keys(s).length||delete e[i]}}}static removeInternalForSave(e,t=!0){for(let i in e)(i[0]==="_"||e[i]===null||e[i]===void 0)&&delete e[i];delete e.grid,t&&delete e.el,e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,e.locked||delete e.locked,(e.w===1||e.w===e.minW)&&delete e.w,(e.h===1||e.h===e.minH)&&delete e.h}static throttle(e,t){let i=!1;return(...s)=>{i||(i=!0,setTimeout(()=>{e(...s),i=!1},t))}}static removePositioningStyles(e){let t=e.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(e){if(!e)return document.scrollingElement||document.documentElement;const t=getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowY)?e:this.getScrollElement(e.parentElement)}static updateScrollPosition(e,t,i){let s=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;if(s.top<0||s.bottom>r){let a=s.bottom-r,n=s.top,d=this.getScrollElement(e);if(d!==null){let h=d.scrollTop;s.top<0&&i<0?e.offsetHeight>r?d.scrollTop+=i:d.scrollTop+=Math.abs(n)>Math.abs(i)?i:n:i>0&&(e.offsetHeight>r?d.scrollTop+=i:d.scrollTop+=a>i?i:a),t.top+=d.scrollTop-h}}}static updateScrollResize(e,t,i){const s=this.getScrollElement(t),r=s.clientHeight,a=s===this.getScrollElement()?0:s.getBoundingClientRect().top,n=e.clientY-a,d=n<i,h=n>r-i;d?s.scrollBy({behavior:"smooth",top:n-i}):h&&s.scrollBy({behavior:"smooth",top:i-(r-n)})}static clone(e){return e==null||typeof e!="object"?e:e instanceof Array?[...e]:{...e}}static cloneDeep(e){const t=["parentGrid","el","grid","subGrid","engine"],i=g.clone(e);for(const s in i)i.hasOwnProperty(s)&&typeof i[s]=="object"&&s.substring(0,2)!=="__"&&!t.find(r=>r===s)&&(i[s]=g.cloneDeep(e[s]));return i}static cloneNode(e){const t=e.cloneNode(!0);return t.removeAttribute("id"),t}static appendTo(e,t){let i;typeof t=="string"?i=g.getElement(t):i=t,i&&i.appendChild(e)}static addElStyles(e,t){if(t instanceof Object)for(const i in t)t.hasOwnProperty(i)&&(Array.isArray(t[i])?t[i].forEach(s=>{e.style[i]=s}):e.style[i]=t[i])}static initEvent(e,t){const i={type:t.type},s={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:t.target?t.target:e.target};return e.dataTransfer&&(i.dataTransfer=e.dataTransfer),["altKey","ctrlKey","metaKey","shiftKey"].forEach(r=>i[r]=e[r]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(r=>i[r]=e[r]),{...i,...s}}static simulateMouseEvent(e,t,i){const s=document.createEvent("MouseEvents");s.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,e.target),(i||e.target).dispatchEvent(s)}}class le{constructor(e={}){this.addedNodes=[],this.removedNodes=[],this.column=e.column||12,this.maxRow=e.maxRow,this._float=e.float,this.nodes=e.nodes||[],this.onChange=e.onChange}batchUpdate(e=!0,t=!0){return!!this.batchMode===e?this:(this.batchMode=e,e?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,t&&this._packNodes(),this._notify()),this)}_useEntireRowArea(e,t){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!e._moving||e._skipDown||t.y<=e.y)}_fixCollisions(e,t=e,i,s={}){if(this.sortNodes(-1),i=i||this.collide(e,t),!i)return!1;if(e._moving&&!s.nested&&!this.float&&this.swap(e,i))return!0;let r=t;this._useEntireRowArea(e,t)&&(r={x:0,w:this.column,y:t.y,h:t.h},i=this.collide(e,r,s.skip));let a=!1,n={nested:!0,pack:!1};for(;i=i||this.collide(e,r,s.skip);){let d;if(i.locked||e._moving&&!e._skipDown&&t.y>e.y&&!this.float&&(!this.collide(i,{...i,y:e.y},e)||!this.collide(i,{...i,y:t.y-i.h},e))?(e._skipDown=e._skipDown||t.y>e.y,d=this.moveNode(e,{...t,y:i.y+i.h,...n}),i.locked&&d?g.copyPos(t,e):!i.locked&&d&&s.pack&&(this._packNodes(),t.y=i.y+i.h,g.copyPos(e,t)),a=a||d):d=this.moveNode(i,{...i,y:t.y+t.h,skip:e,...n}),!d)return a;i=void 0}return a}collide(e,t=e,i){const s=e._id,r=i==null?void 0:i._id;return this.nodes.find(a=>a._id!==s&&a._id!==r&&g.isIntercepted(a,t))}collideAll(e,t=e,i){const s=e._id,r=i==null?void 0:i._id;return this.nodes.filter(a=>a._id!==s&&a._id!==r&&g.isIntercepted(a,t))}directionCollideCoverage(e,t,i){if(!t.rect||!e._rect)return;let s=e._rect,r={...t.rect};r.y>s.y?(r.h+=r.y-s.y,r.y=s.y):r.h+=s.y-r.y,r.x>s.x?(r.w+=r.x-s.x,r.x=s.x):r.w+=s.x-r.x;let a,n=.5;return i.forEach(d=>{if(d.locked||!d._rect)return;let h=d._rect,c=Number.MAX_VALUE,f=Number.MAX_VALUE;s.y<h.y?c=(r.y+r.h-h.y)/h.h:s.y+s.h>h.y+h.h&&(c=(h.y+h.h-r.y)/h.h),s.x<h.x?f=(r.x+r.w-h.x)/h.w:s.x+s.w>h.x+h.w&&(f=(h.x+h.w-r.x)/h.w);let u=Math.min(f,c);u>n&&(n=u,a=d)}),t.collide=a,a}cacheRects(e,t,i,s,r,a){return this.nodes.forEach(n=>n._rect={y:n.y*t+i,x:n.x*e+a,w:n.w*e-a-s,h:n.h*t-i-r}),this}swap(e,t){if(!t||t.locked||!e||e.locked)return!1;function i(){let r=t.x,a=t.y;return t.x=e.x,t.y=e.y,e.h!=t.h?(e.x=r,e.y=t.y+t.h):e.w!=t.w?(e.x=t.x+t.w,e.y=a):(e.x=r,e.y=a),e._dirty=t._dirty=!0,!0}let s;if(e.w===t.w&&e.h===t.h&&(e.x===t.x||e.y===t.y)&&(s=g.isTouching(e,t)))return i();if(s!==!1){if(e.w===t.w&&e.x===t.x&&(s||(s=g.isTouching(e,t)))){if(t.y<e.y){let r=e;e=t,t=r}return i()}if(s!==!1){if(e.h===t.h&&e.y===t.y&&(s||(s=g.isTouching(e,t)))){if(t.x<e.x){let r=e;e=t,t=r}return i()}return!1}}}isAreaEmpty(e,t,i,s){let r={x:e||0,y:t||0,w:i||1,h:s||1};return!this.collide(r)}compact(e="compact",t=!0){if(this.nodes.length===0)return this;t&&this.sortNodes();const i=this.batchMode;i||this.batchUpdate();const s=this._inColumnResize;s||(this._inColumnResize=!0);let r=this.nodes;return this.nodes=[],r.forEach((a,n,d)=>{let h;a.locked||(a.autoPosition=!0,e==="list"&&n&&(h=d[n-1])),this.addNode(a,!1,h)}),s||delete this._inColumnResize,i||this.batchUpdate(!1),this}set float(e){this._float!==e&&(this._float=e||!1,e||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(e=1,t=this.column){return this.nodes=g.sort(this.nodes,e,t),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(e=>{if(e._updating||e._orig===void 0||e.y===e._orig.y)return;let t=e.y;for(;t>e._orig.y;)--t,this.collide(e,{x:e.x,y:t,w:e.w,h:e.h})||(e._dirty=!0,e.y=t)}):this.nodes.forEach((e,t)=>{if(!e.locked)for(;e.y>0;){let i=t===0?0:e.y-1;if(!(t===0||!this.collide(e,{x:e.x,y:i,w:e.w,h:e.h})))break;e._dirty=e.y!==i,e.y=i}}),this)}prepareNode(e,t){e._id=e._id??le._idSeq++,(e.x===void 0||e.y===void 0||e.x===null||e.y===null)&&(e.autoPosition=!0);let i={x:0,y:0,w:1,h:1};return g.defaults(e,i),e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,g.sanitizeMinMax(e),typeof e.x=="string"&&(e.x=Number(e.x)),typeof e.y=="string"&&(e.y=Number(e.y)),typeof e.w=="string"&&(e.w=Number(e.w)),typeof e.h=="string"&&(e.h=Number(e.h)),isNaN(e.x)&&(e.x=i.x,e.autoPosition=!0),isNaN(e.y)&&(e.y=i.y,e.autoPosition=!0),isNaN(e.w)&&(e.w=i.w),isNaN(e.h)&&(e.h=i.h),this.nodeBoundFix(e,t),e}nodeBoundFix(e,t){let i=e._orig||g.copyPos({},e);if(e.maxW&&(e.w=Math.min(e.w,e.maxW)),e.maxH&&(e.h=Math.min(e.h,e.maxH)),e.minW&&e.minW<=this.column&&(e.w=Math.max(e.w,e.minW)),e.minH&&(e.h=Math.max(e.h,e.minH)),(e.x||0)+(e.w||1)>this.column&&this.column<12&&!this._inColumnResize&&e._id&&this.findCacheLayout(e,12)===-1){let r={...e};r.autoPosition||r.x===void 0?(delete r.x,delete r.y):r.x=Math.min(11,r.x),r.w=Math.min(12,r.w||1),this.cacheOneLayout(r,12)}return e.w>this.column?e.w=this.column:e.w<1&&(e.w=1),this.maxRow&&e.h>this.maxRow?e.h=this.maxRow:e.h<1&&(e.h=1),e.x<0&&(e.x=0),e.y<0&&(e.y=0),e.x+e.w>this.column&&(t?e.w=this.column-e.x:e.x=this.column-e.w),this.maxRow&&e.y+e.h>this.maxRow&&(t?e.h=this.maxRow-e.y:e.y=this.maxRow-e.h),g.samePos(e,i)||(e._dirty=!0),this}getDirtyNodes(e){return e?this.nodes.filter(t=>t._dirty&&!g.samePos(t,t._orig)):this.nodes.filter(t=>t._dirty)}_notify(e){if(this.batchMode||!this.onChange)return this;let t=(e||[]).concat(this.getDirtyNodes());return this.onChange(t),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(e=>{delete e._dirty,delete e._lastTried}),this)}saveInitial(){return this.nodes.forEach(e=>{e._orig=g.copyPos({},e),delete e._dirty}),this._hasLocked=this.nodes.some(e=>e.locked),this}restoreInitial(){return this.nodes.forEach(e=>{g.samePos(e,e._orig)||(g.copyPos(e,e._orig),e._dirty=!0)}),this._notify(),this}findEmptyPosition(e,t=this.nodes,i=this.column,s){let r=s?s.y*i+(s.x+s.w):0,a=!1;for(let n=r;!a;++n){let d=n%i,h=Math.floor(n/i);if(d+e.w>i)continue;let c={x:d,y:h,w:e.w,h:e.h};t.find(f=>g.isIntercepted(c,f))||((e.x!==d||e.y!==h)&&(e._dirty=!0),e.x=d,e.y=h,delete e.autoPosition,a=!0)}return a}addNode(e,t=!1,i){let s=this.nodes.find(a=>a._id===e._id);if(s)return s;this._inColumnResize?this.nodeBoundFix(e):this.prepareNode(e),delete e._temporaryRemoved,delete e._removeDOM;let r;return e.autoPosition&&this.findEmptyPosition(e,this.nodes,this.column,i)&&(delete e.autoPosition,r=!0),this.nodes.push(e),t&&this.addedNodes.push(e),r||this._fixCollisions(e),this.batchMode||this._packNodes()._notify(),e}removeNode(e,t=!0,i=!1){return this.nodes.find(s=>s._id===e._id)?(i&&this.removedNodes.push(e),t&&(e._removeDOM=!0),this.nodes=this.nodes.filter(s=>s._id!==e._id),e._isAboutToRemove||this._packNodes(),this._notify([e]),this):this}removeAll(e=!0){return delete this._layouts,this.nodes.length?(e&&this.nodes.forEach(t=>t._removeDOM=!0),this.removedNodes=this.nodes,this.nodes=[],this._notify(this.removedNodes)):this}moveNodeCheck(e,t){if(!this.changedPosConstrain(e,t))return!1;if(t.pack=!0,!this.maxRow)return this.moveNode(e,t);let i,s=new le({column:this.column,float:this.float,nodes:this.nodes.map(a=>a._id===e._id?(i={...a},i):{...a})});if(!i)return!1;let r=s.moveNode(i,t)&&s.getRow()<=Math.max(this.getRow(),this.maxRow);if(!r&&!t.resizing&&t.collide){let a=t.collide.el.gridstackNode;if(this.swap(e,a))return this._notify(),!0}return r?(s.nodes.filter(a=>a._dirty).forEach(a=>{let n=this.nodes.find(d=>d._id===a._id);n&&(g.copyPos(n,a),n._dirty=!0)}),this._notify(),!0):!1}willItFit(e){if(delete e._willFitPos,!this.maxRow)return!0;let t=new le({column:this.column,float:this.float,nodes:this.nodes.map(s=>({...s}))}),i={...e};return this.cleanupNode(i),delete i.el,delete i._id,delete i.content,delete i.grid,t.addNode(i),t.getRow()<=this.maxRow?(e._willFitPos=g.copyPos({},i),!0):!1}changedPosConstrain(e,t){return t.w=t.w||e.w,t.h=t.h||e.h,e.x!==t.x||e.y!==t.y?!0:(e.maxW&&(t.w=Math.min(t.w,e.maxW)),e.maxH&&(t.h=Math.min(t.h,e.maxH)),e.minW&&(t.w=Math.max(t.w,e.minW)),e.minH&&(t.h=Math.max(t.h,e.minH)),e.w!==t.w||e.h!==t.h)}moveNode(e,t){var h,c;if(!e||!t)return!1;let i;t.pack===void 0&&!this.batchMode&&(i=t.pack=!0),typeof t.x!="number"&&(t.x=e.x),typeof t.y!="number"&&(t.y=e.y),typeof t.w!="number"&&(t.w=e.w),typeof t.h!="number"&&(t.h=e.h);let s=e.w!==t.w||e.h!==t.h,r=g.copyPos({},e,!0);if(g.copyPos(r,t),this.nodeBoundFix(r,s),g.copyPos(t,r),!t.forceCollide&&g.samePos(e,t))return!1;let a=g.copyPos({},e),n=this.collideAll(e,r,t.skip),d=!0;if(n.length){let f=e._moving&&!t.nested,u=f?this.directionCollideCoverage(e,t,n):n[0];if(f&&u&&((c=(h=e.grid)==null?void 0:h.opts)!=null&&c.subGridDynamic)&&!e.grid._isTemp){let _=g.areaIntercept(t.rect,u._rect),b=g.area(t.rect),L=g.area(u._rect);_/(b<L?b:L)>.8&&(u.grid.makeSubGrid(u.el,void 0,e),u=void 0)}u?d=!this._fixCollisions(e,r,u,t):(d=!1,i&&delete t.pack)}return d&&(e._dirty=!0,g.copyPos(e,r)),t.pack&&this._packNodes()._notify(),!g.samePos(e,a)}getRow(){return this.nodes.reduce((e,t)=>Math.max(e,t.y+t.h),0)}beginUpdate(e){return e._updating||(e._updating=!0,delete e._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){let e=this.nodes.find(t=>t._updating);return e&&(delete e._updating,delete e._skipDown),this}save(e=!0,t){var a;let i=(a=this._layouts)==null?void 0:a.length,s=i&&this.column!==i-1?this._layouts[i-1]:null,r=[];return this.sortNodes(),this.nodes.forEach(n=>{let d=s==null?void 0:s.find(c=>c._id===n._id),h={...n,...d||{}};g.removeInternalForSave(h,!e),t&&t(n,h),r.push(h)}),r}layoutsNodesChange(e){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((t,i)=>{if(!t||i===this.column)return this;if(i<this.column)this._layouts[i]=void 0;else{let s=i/this.column;e.forEach(r=>{if(!r._orig)return;let a=t.find(n=>n._id===r._id);a&&(a.y>=0&&r.y!==r._orig.y&&(a.y+=r.y-r._orig.y),r.x!==r._orig.x&&(a.x=Math.round(r.x*s)),r.w!==r._orig.w&&(a.w=Math.round(r.w*s)))})}}),this)}columnChanged(e,t,i,s="moveScale"){var d;if(!this.nodes.length||!t||e===t)return this;const r=s==="compact"||s==="list";r&&this.sortNodes(1,e),t<e&&this.cacheLayout(this.nodes,e),this.batchUpdate();let a=[],n=!1;if(t===1&&(i!=null&&i.length)){n=!0;let h=0;i.forEach(c=>{c.x=0,c.w=1,c.y=Math.max(c.y,h),h=c.y+c.h}),a=i,i=[]}else i=r?this.nodes:g.sort(this.nodes,-1,e);if(t>e&&this._layouts){const h=this._layouts[t]||[];let c=this._layouts.length-1;!h.length&&e!==c&&((d=this._layouts[c])!=null&&d.length)&&(e=c,this._layouts[c].forEach(f=>{let u=i.find(_=>_._id===f._id);u&&(!r&&!f.autoPosition&&(u.x=f.x??u.x,u.y=f.y??u.y),u.w=f.w??u.w,(f.x==null||f.y===void 0)&&(u.autoPosition=!0))})),h.forEach(f=>{let u=i.findIndex(_=>_._id===f._id);if(u!==-1){const _=i[u];if(r){_.w=f.w;return}(f.autoPosition||isNaN(f.x)||isNaN(f.y))&&this.findEmptyPosition(f,a),f.autoPosition||(_.x=f.x??_.x,_.y=f.y??_.y,_.w=f.w??_.w,a.push(_)),i.splice(u,1)}})}if(r)this.compact(s,!1);else{if(i.length){if(typeof s=="function")s(t,e,a,i);else if(!n){let h=r||s==="none"?1:t/e,c=s==="move"||s==="moveScale",f=s==="scale"||s==="moveScale";i.forEach(u=>{u.x=t===1?0:c?Math.round(u.x*h):Math.min(u.x,t-1),u.w=t===1||e===1?1:f?Math.round(u.w*h)||1:Math.min(u.w,t),a.push(u)}),i=[]}}n||(a=g.sort(a,-1,t)),this._inColumnResize=!0,this.nodes=[],a.forEach(h=>{this.addNode(h,!1),delete h._orig})}return this.nodes.forEach(h=>delete h._orig),this.batchUpdate(!1,!r),delete this._inColumnResize,this}cacheLayout(e,t,i=!1){let s=[];return e.forEach((r,a)=>{if(r._id===void 0){const n=r.id?this.nodes.find(d=>d.id===r.id):void 0;r._id=(n==null?void 0:n._id)??le._idSeq++}s[a]={x:r.x,y:r.y,w:r.w,_id:r._id}}),this._layouts=i?[]:this._layouts||[],this._layouts[t]=s,this}cacheOneLayout(e,t){e._id=e._id??le._idSeq++;let i={x:e.x,y:e.y,w:e.w,_id:e._id};(e.autoPosition||e.x===void 0)&&(delete i.x,delete i.y,e.autoPosition&&(i.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[t]=this._layouts[t]||[];let s=this.findCacheLayout(e,t);return s===-1?this._layouts[t].push(i):this._layouts[t][s]=i,this}findCacheLayout(e,t){var i,s;return((s=(i=this._layouts)==null?void 0:i[t])==null?void 0:s.findIndex(r=>r._id===e._id))??-1}removeNodeFromLayoutCache(e){if(this._layouts)for(let t=0;t<this._layouts.length;t++){let i=this.findCacheLayout(e,t);i!==-1&&this._layouts[t].splice(i,1)}}cleanupNode(e){for(let t in e)t[0]==="_"&&t!=="_id"&&delete e[t];return this}}le._idSeq=0;const ie={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,oneColumnSize:768,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"},Cr={handle:".grid-stack-item-content",appendTo:"body"};class E{}const ne=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);class ae{}function it(o,e){if(o.touches.length>1)return;o.cancelable&&o.preventDefault();const t=o.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(i)}function Ai(o,e){o.cancelable&&o.preventDefault();const t=document.createEvent("MouseEvents");t.initMouseEvent(e,!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(t)}function st(o){ae.touchHandled||(ae.touchHandled=!0,it(o,"mousedown"))}function rt(o){ae.touchHandled&&it(o,"mousemove")}function nt(o){if(!ae.touchHandled)return;ae.pointerLeaveTimeout&&(window.clearTimeout(ae.pointerLeaveTimeout),delete ae.pointerLeaveTimeout);const e=!!E.dragElement;it(o,"mouseup"),e||it(o,"click"),ae.touchHandled=!1}function ot(o){o.pointerType!=="mouse"&&o.target.releasePointerCapture(o.pointerId)}function Di(o){E.dragElement&&o.pointerType!=="mouse"&&Ai(o,"mouseenter")}function Ni(o){E.dragElement&&o.pointerType!=="mouse"&&(ae.pointerLeaveTimeout=window.setTimeout(()=>{delete ae.pointerLeaveTimeout,Ai(o,"mouseleave")},10))}class lt{constructor(e,t,i){this.moving=!1,this.host=e,this.dir=t,this.option=i,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._init()}_init(){const e=document.createElement("div");return e.classList.add("ui-resizable-handle"),e.classList.add(`${lt.prefix}${this.dir}`),e.style.zIndex="100",e.style.userSelect="none",this.el=e,this.host.appendChild(this.el),this.el.addEventListener("mousedown",this._mouseDown),ne&&(this.el.addEventListener("touchstart",st),this.el.addEventListener("pointerdown",ot)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),ne&&(this.el.removeEventListener("touchstart",st),this.el.removeEventListener("pointerdown",ot)),this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(e){this.mouseDownEvent=e,document.addEventListener("mousemove",this._mouseMove,!0),document.addEventListener("mouseup",this._mouseUp,!0),ne&&(this.el.addEventListener("touchmove",rt),this.el.addEventListener("touchend",nt)),e.stopPropagation(),e.preventDefault()}_mouseMove(e){let t=this.mouseDownEvent;this.moving?this._triggerEvent("move",e):Math.abs(e.x-t.x)+Math.abs(e.y-t.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",e)),e.stopPropagation(),e.preventDefault()}_mouseUp(e){this.moving&&this._triggerEvent("stop",e),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),ne&&(this.el.removeEventListener("touchmove",rt),this.el.removeEventListener("touchend",nt)),delete this.moving,delete this.mouseDownEvent,e.stopPropagation(),e.preventDefault()}_triggerEvent(e,t){return this.option[e]&&this.option[e](t),this}}lt.prefix="ui-resizable-";class Ht{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,t){this._eventRegister[e]=t}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,t){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](t)}}class $e extends Ht{constructor(e,t={}){super(),this.rectScale={x:1,y:1},this._ui=()=>{const s=this.el.parentElement.getBoundingClientRect(),r={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||r;return{position:{left:(a.left-s.left)*this.rectScale.x,top:(a.top-s.top)*this.rectScale.y},size:{width:a.width*this.rectScale.x,height:a.height*this.rectScale.y}}},this.el=e,this.option=t,this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(e,t){super.on(e,t)}off(e){super.off(e)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(e){let t=e.handles&&e.handles!==this.option.handles,i=e.autoHide&&e.autoHide!==this.option.autoHide;return Object.keys(e).forEach(s=>this.option[s]=e[s]),t&&(this._removeHandlers(),this._setupHandlers()),i&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(e){return e?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),E.overResizeElement===this&&delete E.overResizeElement),this}_mouseOver(e){E.overResizeElement||E.dragElement||(E.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(e){E.overResizeElement===this&&(delete E.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){let e=this.option.handles||"e,s,se";return e==="all"&&(e="n,e,s,w,se,sw,ne,nw"),this.handlers=e.split(",").map(t=>t.trim()).map(t=>new lt(this.el,t,{start:i=>{this._resizeStart(i)},stop:i=>{this._resizeStop(i)},move:i=>{this._resizing(i,t)}})),this}_resizeStart(e){this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=g.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=e,this._setupHelper(),this._applyChange();const t=g.initEvent(e,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(t,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",t),this}_resizing(e,t){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(e,t),this._applyChange();const i=g.initEvent(e,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(i,this._ui()),this.triggerEvent("resize",i),this}_resizeStop(e){const t=g.initEvent(e,{type:"resizestop",target:this.el});return this.option.stop&&this.option.stop(t),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",t),this._cleanHelper(),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=$e._originStyleProp.map(s=>this.el.style[s]),this.parentOriginStylePosition=this.el.parentElement.style.position;const e=this.el.parentElement,t=document.createElement("div");g.addElStyles(t,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),e.appendChild(t);const i=t.getBoundingClientRect();return e.removeChild(t),this.rectScale={x:1/i.width,y:1/i.height},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return $e._originStyleProp.forEach((e,t)=>{this.el.style[e]=this.elOriginStyleVal[t]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(e,t){const i=this.startEvent,s={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},r=e.clientX-i.clientX,a=e.clientY-i.clientY;t.indexOf("e")>-1?s.width+=r:t.indexOf("w")>-1&&(s.width-=r,s.left+=r),t.indexOf("s")>-1?s.height+=a:t.indexOf("n")>-1&&(s.height-=a,s.top+=a);const n=this._constrainSize(s.width,s.height);return Math.round(s.width)!==Math.round(n.width)&&(t.indexOf("w")>-1&&(s.left+=s.width-n.width),s.width=n.width),Math.round(s.height)!==Math.round(n.height)&&(t.indexOf("n")>-1&&(s.top+=s.height-n.height),s.height=n.height),s}_constrainSize(e,t){const i=this.option.maxWidth||Number.MAX_SAFE_INTEGER,s=this.option.minWidth/this.rectScale.x||e,r=this.option.maxHeight||Number.MAX_SAFE_INTEGER,a=this.option.minHeight/this.rectScale.y||t,n=Math.min(i,Math.max(s,e)),d=Math.min(r,Math.max(a,t));return{width:n,height:d}}_applyChange(){let e={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const t=this.el.parentElement,{left:i,top:s}=t.getBoundingClientRect();e={left:i,top:s,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(t=>{const i=this.temporalRect[t],s=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(i-e[t])*s+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(e=>e.destroy()),delete this.handlers,this}}$e._originStyleProp=["width","height","position","left","top","opacity","zIndex"];const Sr='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';class Ue extends Ht{constructor(e,t={}){super(),this.dragScale={x:1,y:1},this.el=e,this.option=t;let i=t.handle.substring(1);this.dragEl=e.classList.contains(i)?e:e.querySelector(t.handle)||e,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this.enable()}on(e,t){super.on(e,t)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.dragEl.addEventListener("mousedown",this._mouseDown),ne&&(this.dragEl.addEventListener("touchstart",st),this.dragEl.addEventListener("pointerdown",ot)),this.el.classList.remove("ui-draggable-disabled"))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.dragEl.removeEventListener("mousedown",this._mouseDown),ne&&(this.dragEl.removeEventListener("touchstart",st),this.dragEl.removeEventListener("pointerdown",ot)),e||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(e){return Object.keys(e).forEach(t=>this.option[t]=e[t]),this}_mouseDown(e){if(!E.mouseHandled)return e.button!==0||e.target.closest(Sr)||this.option.cancel&&e.target.closest(this.option.cancel)||(this.mouseDownEvent=e,delete this.dragging,delete E.dragElement,delete E.dropElement,document.addEventListener("mousemove",this._mouseMove,!0),document.addEventListener("mouseup",this._mouseUp,!0),ne&&(this.dragEl.addEventListener("touchmove",rt),this.dragEl.addEventListener("touchend",nt)),e.preventDefault(),document.activeElement&&document.activeElement.blur(),E.mouseHandled=!0),!0}_callDrag(e){if(!this.dragging)return;const t=g.initEvent(e,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(t,this.ui()),this.triggerEvent("drag",t)}_mouseMove(e){var i;let t=this.mouseDownEvent;if(this.dragging)if(this._dragFollow(e),E.pauseDrag){const s=Number.isInteger(E.pauseDrag)?E.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(e),s)}else this._callDrag(e);else if(Math.abs(e.x-t.x)+Math.abs(e.y-t.y)>3){this.dragging=!0,E.dragElement=this;let s=(i=this.el.gridstackNode)==null?void 0:i.grid;s?E.dropElement=s.el.ddElement.ddDroppable:delete E.dropElement,this.helper=this._createHelper(e),this._setupHelperContainmentStyle(),this.dragOffset=this._getDragOffset(e,this.el,this.helperContainment);const r=g.initEvent(e,{target:this.el,type:"dragstart"});this._setupHelperStyle(e),this.option.start&&this.option.start(r,this.ui()),this.triggerEvent("dragstart",r)}return e.preventDefault(),!0}_mouseUp(e){var t;if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),ne&&(this.dragEl.removeEventListener("touchmove",rt,!0),this.dragEl.removeEventListener("touchend",nt,!0)),this.dragging){delete this.dragging,((t=E.dropElement)==null?void 0:t.el)===this.el.parentElement&&delete E.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper===this.el?this._removeHelperStyle():this.helper.remove();const i=g.initEvent(e,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(i),this.triggerEvent("dragstop",i),E.dropElement&&E.dropElement.drop(e)}delete this.helper,delete this.mouseDownEvent,delete E.dragElement,delete E.dropElement,delete E.mouseHandled,e.preventDefault()}_createHelper(e){let t=this.el;return typeof this.option.helper=="function"?t=this.option.helper(e):this.option.helper==="clone"&&(t=g.cloneNode(this.el)),document.body.contains(t)||g.appendTo(t,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),t===this.el&&(this.dragElementOriginStyle=Ue.originStyleProp.map(i=>this.el.style[i])),t}_setupHelperStyle(e){this.helper.classList.add("ui-draggable-dragging");const t=this.helper.style;return t.pointerEvents="none",t.width=this.dragOffset.width+"px",t.height=this.dragOffset.height+"px",t.willChange="left, top",t.position="fixed",this._dragFollow(e),t.transition="none",setTimeout(()=>{this.helper&&(t.transition=null)},0),this}_removeHelperStyle(){var t;this.helper.classList.remove("ui-draggable-dragging");let e=(t=this.helper)==null?void 0:t.gridstackNode;if(!(e!=null&&e._isAboutToRemove)&&this.dragElementOriginStyle){let i=this.helper,s=this.dragElementOriginStyle.transition||null;i.style.transition=this.dragElementOriginStyle.transition="none",Ue.originStyleProp.forEach(r=>i.style[r]=this.dragElementOriginStyle[r]||null),setTimeout(()=>i.style.transition=s,50)}return delete this.dragElementOriginStyle,this}_dragFollow(e){let t={left:0,top:0};const i=this.helper.style,s=this.dragOffset;i.left=(e.clientX+s.offsetLeft-t.left)*this.dragScale.x+"px",i.top=(e.clientY+s.offsetTop-t.top)*this.dragScale.y+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(e,t,i){let s=0,r=0;if(i){const n=document.createElement("div");g.addElStyles(n,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),i.appendChild(n);const d=n.getBoundingClientRect();i.removeChild(n),s=d.left,r=d.top,this.dragScale={x:1/d.width,y:1/d.height}}const a=t.getBoundingClientRect();return{left:a.left,top:a.top,offsetLeft:-e.clientX+a.left-s,offsetTop:-e.clientY+a.top-r,width:a.width*this.dragScale.x,height:a.height*this.dragScale.y}}ui(){const t=this.el.parentElement.getBoundingClientRect(),i=this.helper.getBoundingClientRect();return{position:{top:(i.top-t.top)*this.dragScale.y,left:(i.left-t.left)*this.dragScale.x}}}}Ue.originStyleProp=["transition","pointerEvents","position","left","top","minWidth","willChange"];class Ar extends Ht{constructor(e,t={}){super(),this.el=e,this.option=t,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,t){super.on(e,t)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),ne&&(this.el.addEventListener("pointerenter",Di),this.el.addEventListener("pointerleave",Ni)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),ne&&(this.el.removeEventListener("pointerenter",Di),this.el.removeEventListener("pointerleave",Ni)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(t=>this.option[t]=e[t]),this._setupAccept(),this}_mouseEnter(e){if(!E.dragElement||!this._canDrop(E.dragElement.el))return;e.preventDefault(),e.stopPropagation(),E.dropElement&&E.dropElement!==this&&E.dropElement._mouseLeave(e),E.dropElement=this;const t=g.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(t,this._ui(E.dragElement)),this.triggerEvent("dropover",t),this.el.classList.add("ui-droppable-over")}_mouseLeave(e){var i;if(!E.dragElement||E.dropElement!==this)return;e.preventDefault(),e.stopPropagation();const t=g.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(t,this._ui(E.dragElement)),this.triggerEvent("dropout",t),E.dropElement===this){delete E.dropElement;let s,r=this.el.parentElement;for(;!s&&r;)s=(i=r.ddElement)==null?void 0:i.ddDroppable,r=r.parentElement;s&&s._mouseEnter(e)}}drop(e){e.preventDefault();const t=g.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(t,this._ui(E.dragElement)),this.triggerEvent("drop",t)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}}class Ot{static init(e){return e.ddElement||(e.ddElement=new Ot(e)),e.ddElement}constructor(e){this.el=e}on(e,t){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.on(e,t):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.on(e,t):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.on(e,t),this}off(e){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.off(e):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.off(e):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.off(e),this}setupDraggable(e){return this.ddDraggable?this.ddDraggable.updateOption(e):this.ddDraggable=new Ue(this.el,e),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(e){return this.ddResizable?this.ddResizable.updateOption(e):this.ddResizable=new $e(this.el,e),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(e){return this.ddDroppable?this.ddDroppable.updateOption(e):this.ddDroppable=new Ar(this.el,e),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}}class Dr{resizable(e,t,i,s){return this._getDDElements(e).forEach(r=>{if(t==="disable"||t==="enable")r.ddResizable&&r.ddResizable[t]();else if(t==="destroy")r.ddResizable&&r.cleanResizable();else if(t==="option")r.setupResizable({[i]:s});else{const a=r.el.gridstackNode.grid;let n=r.el.getAttribute("gs-resize-handles")?r.el.getAttribute("gs-resize-handles"):a.opts.resizable.handles,d=!a.opts.alwaysShowResizeHandle;r.setupResizable({...a.opts.resizable,handles:n,autoHide:d,start:t.start,stop:t.stop,resize:t.resize})}}),this}draggable(e,t,i,s){return this._getDDElements(e).forEach(r=>{if(t==="disable"||t==="enable")r.ddDraggable&&r.ddDraggable[t]();else if(t==="destroy")r.ddDraggable&&r.cleanDraggable();else if(t==="option")r.setupDraggable({[i]:s});else{const a=r.el.gridstackNode.grid;r.setupDraggable({...a.opts.draggable,start:t.start,stop:t.stop,drag:t.drag})}}),this}dragIn(e,t){return this._getDDElements(e).forEach(i=>i.setupDraggable(t)),this}droppable(e,t,i,s){return typeof t.accept=="function"&&!t._accept&&(t._accept=t.accept,t.accept=r=>t._accept(r)),this._getDDElements(e).forEach(r=>{t==="disable"||t==="enable"?r.ddDroppable&&r.ddDroppable[t]():t==="destroy"?r.ddDroppable&&r.cleanDroppable():t==="option"?r.setupDroppable({[i]:s}):r.setupDroppable(t)}),this}isDroppable(e){return!!(e&&e.ddElement&&e.ddElement.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e&&e.ddElement&&e.ddElement.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e&&e.ddElement&&e.ddElement.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,t,i){return this._getDDElements(e).forEach(s=>s.on(t,r=>{i(r,E.dragElement?E.dragElement.el:r.target,E.dragElement?E.dragElement.helper:null)})),this}off(e,t){return this._getDDElements(e).forEach(i=>i.off(t)),this}_getDDElements(e,t=!0){let i=g.getElements(e);if(!i.length)return[];let s=i.map(r=>r.ddElement||(t?Ot.init(r):null));return t||s.filter(r=>r),s}}/*!
|
|
61
|
+
`+te),Ee&&Je([z,be,ke],me=>{te=He(te,me," ")}),v&&pt?v.createHTML(te):te},e.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};jt(k),Ut=!0},e.clearConfig=function(){Se=null,Ut=!1},e.isValidAttribute=function(k,p,m){Se||jt({});const x=V(k),$=V(p);return Qi(x,$,m)},e.addHook=function(k,p){typeof p=="function"&&Ie(O[k],p)},e.removeHook=function(k,p){if(p!==void 0){const m=rr(O[k],p);return m===-1?void 0:nr(O[k],m,1)[0]}return yi(O[k])},e.removeHooks=function(k){O[k]=[]},e.removeAllHooks=function(){O=Ci()},e}var kr=Si();const Er=["innerHTML"],vr="Markdown",Tr=_e(l.defineComponent({inheritAttrs:!1,__name:"Markdown",props:{markdownText:{},mode:{},sanitize:{type:Boolean},inputFormat:{}},emits:["update:markdownText","changeMode"],setup(o,{emit:e}){const t=o,i=e,s=l.shallowRef([{comp:Qt,event:h,tooltip:"Edit Markdown"}]);I.setOptions({gfm:!0,breaks:!0});const r=l.ref(t.markdownText??"");l.watch(()=>t.markdownText,c=>{c!==void 0&&c!==r.value&&(r.value=c)});const a=l.ref(t.mode?t.mode==="edit":!1);l.watch(()=>t.mode,c=>{c&&(a.value=c==="edit")});const n=l.computed(()=>{const c=t.inputFormat==="html"?r.value??"":I.parse(r.value??"");return t.sanitize===!1?c:kr.sanitize(c)});function d(){i("update:markdownText",r.value)}function h(){a.value=!a.value,i("changeMode",a.value?"edit":"preview")}return(c,f)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.renderSlot(c.$slots,"default",{widgetName:vr,childIcons:s.value},void 0,!0),l.createElementVNode("div",l.mergeProps({class:"markdown-widget-wrap"},c.$attrs),[a.value?l.withDirectives((l.openBlock(),l.createElementBlock("textarea",{key:0,"onUpdate:modelValue":f[0]||(f[0]=u=>r.value=u),onInput:d,class:"markdown-input",placeholder:"Write markdown here…"},null,544)),[[l.vModelText,r.value]]):(l.openBlock(),l.createElementBlock("div",{key:1,class:"markdown-output",innerHTML:n.value},null,8,Er))],16)],64))}}),[["__scopeId","data-v-5bf532d5"]]);function Rr(o,e,t,i,s){let r=(...a)=>(console.warn("gridstack.js: Function `"+t+"` is deprecated in "+s+" and has been replaced with `"+i+"`. It will be **removed** in a future release"),e.apply(o,a));return r.prototype=e.prototype,r}class g{static getElements(e,t=document){if(typeof e=="string"){const i="getElementById"in t?t:void 0;if(i&&!isNaN(+e[0])){const r=i.getElementById(e);return r?[r]:[]}let s=t.querySelectorAll(e);return!s.length&&e[0]!=="."&&e[0]!=="#"&&(s=t.querySelectorAll("."+e),s.length||(s=t.querySelectorAll("#"+e))),Array.from(s)}return[e]}static getElement(e,t=document){if(typeof e=="string"){const i="getElementById"in t?t:void 0;if(!e.length)return null;if(i&&e[0]==="#")return i.getElementById(e.substring(1));if(e[0]==="#"||e[0]==="."||e[0]==="[")return t.querySelector(e);if(i&&!isNaN(+e[0]))return i.getElementById(e);let s=t.querySelector(e);return i&&!s&&(s=i.getElementById(e)),s||(s=t.querySelector("."+e)),s}return e}static shouldSizeToContent(e){return(e==null?void 0:e.grid)&&(!!e.sizeToContent||e.grid.opts.sizeToContent&&e.sizeToContent!==!1)}static isIntercepted(e,t){return!(e.y>=t.y+t.h||e.y+e.h<=t.y||e.x+e.w<=t.x||e.x>=t.x+t.w)}static isTouching(e,t){return g.isIntercepted(e,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static areaIntercept(e,t){let i=e.x>t.x?e.x:t.x,s=e.x+e.w<t.x+t.w?e.x+e.w:t.x+t.w;if(s<=i)return 0;let r=e.y>t.y?e.y:t.y,a=e.y+e.h<t.y+t.h?e.y+e.h:t.y+t.h;return a<=r?0:(s-i)*(a-r)}static area(e){return e.w*e.h}static sort(e,t=1,i){return i=i||e.reduce((s,r)=>Math.max(r.x+r.w,s),0)||12,t===-1?e.sort((s,r)=>(r.x??1e3)+(r.y??1e3)*i-((s.x??1e3)+(s.y??1e3)*i)):e.sort((s,r)=>(s.x??1e3)+(s.y??1e3)*i-((r.x??1e3)+(r.y??1e3)*i))}static find(e,t){return t?e.find(i=>i.id===t):void 0}static createStylesheet(e,t,i){let s=document.createElement("style");const r=i==null?void 0:i.nonce;return r&&(s.nonce=r),s.setAttribute("type","text/css"),s.setAttribute("gs-style-id",e),s.styleSheet?s.styleSheet.cssText="":s.appendChild(document.createTextNode("")),t?t.insertBefore(s,t.firstChild):(t=document.getElementsByTagName("head")[0],t.appendChild(s)),s.sheet}static removeStylesheet(e){let t=document.querySelector("STYLE[gs-style-id="+e+"]");t&&t.parentNode&&t.remove()}static addCSSRule(e,t,i){typeof e.addRule=="function"?e.addRule(t,i):typeof e.insertRule=="function"&&e.insertRule(`${t}{${i}}`)}static toBool(e){return typeof e=="boolean"?e:typeof e=="string"?(e=e.toLowerCase(),!(e===""||e==="no"||e==="false"||e==="0")):!!e}static toNumber(e){return e===null||e.length===0?void 0:Number(e)}static parseHeight(e){let t,i="px";if(typeof e=="string")if(e==="auto"||e==="")t=0;else{let s=e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);if(!s)throw new Error(`Invalid height val = ${e}`);i=s[2]||"px",t=parseFloat(s[1])}else t=e;return{h:t,unit:i}}static defaults(e,...t){return t.forEach(i=>{for(const s in i){if(!i.hasOwnProperty(s))return;e[s]===null||e[s]===void 0?e[s]=i[s]:typeof i[s]=="object"&&typeof e[s]=="object"&&this.defaults(e[s],i[s])}}),e}static same(e,t){if(typeof e!="object")return e==t;if(typeof e!=typeof t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}static copyPos(e,t,i=!1){return t.x!==void 0&&(e.x=t.x),t.y!==void 0&&(e.y=t.y),t.w!==void 0&&(e.w=t.w),t.h!==void 0&&(e.h=t.h),i&&(t.minW&&(e.minW=t.minW),t.minH&&(e.minH=t.minH),t.maxW&&(e.maxW=t.maxW),t.maxH&&(e.maxH=t.maxH)),e}static samePos(e,t){return e&&t&&e.x===t.x&&e.y===t.y&&(e.w||1)===(t.w||1)&&(e.h||1)===(t.h||1)}static sanitizeMinMax(e){e.minW||delete e.minW,e.minH||delete e.minH,e.maxW||delete e.maxW,e.maxH||delete e.maxH}static removeInternalAndSame(e,t){if(!(typeof e!="object"||typeof t!="object"))for(let i in e){let s=e[i];if(i[0]==="_"||s===t[i])delete e[i];else if(s&&typeof s=="object"&&t[i]!==void 0){for(let r in s)(s[r]===t[i][r]||r[0]==="_")&&delete s[r];Object.keys(s).length||delete e[i]}}}static removeInternalForSave(e,t=!0){for(let i in e)(i[0]==="_"||e[i]===null||e[i]===void 0)&&delete e[i];delete e.grid,t&&delete e.el,e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,e.locked||delete e.locked,(e.w===1||e.w===e.minW)&&delete e.w,(e.h===1||e.h===e.minH)&&delete e.h}static throttle(e,t){let i=!1;return(...s)=>{i||(i=!0,setTimeout(()=>{e(...s),i=!1},t))}}static removePositioningStyles(e){let t=e.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(e){if(!e)return document.scrollingElement||document.documentElement;const t=getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowY)?e:this.getScrollElement(e.parentElement)}static updateScrollPosition(e,t,i){let s=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;if(s.top<0||s.bottom>r){let a=s.bottom-r,n=s.top,d=this.getScrollElement(e);if(d!==null){let h=d.scrollTop;s.top<0&&i<0?e.offsetHeight>r?d.scrollTop+=i:d.scrollTop+=Math.abs(n)>Math.abs(i)?i:n:i>0&&(e.offsetHeight>r?d.scrollTop+=i:d.scrollTop+=a>i?i:a),t.top+=d.scrollTop-h}}}static updateScrollResize(e,t,i){const s=this.getScrollElement(t),r=s.clientHeight,a=s===this.getScrollElement()?0:s.getBoundingClientRect().top,n=e.clientY-a,d=n<i,h=n>r-i;d?s.scrollBy({behavior:"smooth",top:n-i}):h&&s.scrollBy({behavior:"smooth",top:i-(r-n)})}static clone(e){return e==null||typeof e!="object"?e:e instanceof Array?[...e]:{...e}}static cloneDeep(e){const t=["parentGrid","el","grid","subGrid","engine"],i=g.clone(e);for(const s in i)i.hasOwnProperty(s)&&typeof i[s]=="object"&&s.substring(0,2)!=="__"&&!t.find(r=>r===s)&&(i[s]=g.cloneDeep(e[s]));return i}static cloneNode(e){const t=e.cloneNode(!0);return t.removeAttribute("id"),t}static appendTo(e,t){let i;typeof t=="string"?i=g.getElement(t):i=t,i&&i.appendChild(e)}static addElStyles(e,t){if(t instanceof Object)for(const i in t)t.hasOwnProperty(i)&&(Array.isArray(t[i])?t[i].forEach(s=>{e.style[i]=s}):e.style[i]=t[i])}static initEvent(e,t){const i={type:t.type},s={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:t.target?t.target:e.target};return e.dataTransfer&&(i.dataTransfer=e.dataTransfer),["altKey","ctrlKey","metaKey","shiftKey"].forEach(r=>i[r]=e[r]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(r=>i[r]=e[r]),{...i,...s}}static simulateMouseEvent(e,t,i){const s=document.createEvent("MouseEvents");s.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,e.target),(i||e.target).dispatchEvent(s)}}class le{constructor(e={}){this.addedNodes=[],this.removedNodes=[],this.column=e.column||12,this.maxRow=e.maxRow,this._float=e.float,this.nodes=e.nodes||[],this.onChange=e.onChange}batchUpdate(e=!0,t=!0){return!!this.batchMode===e?this:(this.batchMode=e,e?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,t&&this._packNodes(),this._notify()),this)}_useEntireRowArea(e,t){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!e._moving||e._skipDown||t.y<=e.y)}_fixCollisions(e,t=e,i,s={}){if(this.sortNodes(-1),i=i||this.collide(e,t),!i)return!1;if(e._moving&&!s.nested&&!this.float&&this.swap(e,i))return!0;let r=t;this._useEntireRowArea(e,t)&&(r={x:0,w:this.column,y:t.y,h:t.h},i=this.collide(e,r,s.skip));let a=!1,n={nested:!0,pack:!1};for(;i=i||this.collide(e,r,s.skip);){let d;if(i.locked||e._moving&&!e._skipDown&&t.y>e.y&&!this.float&&(!this.collide(i,{...i,y:e.y},e)||!this.collide(i,{...i,y:t.y-i.h},e))?(e._skipDown=e._skipDown||t.y>e.y,d=this.moveNode(e,{...t,y:i.y+i.h,...n}),i.locked&&d?g.copyPos(t,e):!i.locked&&d&&s.pack&&(this._packNodes(),t.y=i.y+i.h,g.copyPos(e,t)),a=a||d):d=this.moveNode(i,{...i,y:t.y+t.h,skip:e,...n}),!d)return a;i=void 0}return a}collide(e,t=e,i){const s=e._id,r=i==null?void 0:i._id;return this.nodes.find(a=>a._id!==s&&a._id!==r&&g.isIntercepted(a,t))}collideAll(e,t=e,i){const s=e._id,r=i==null?void 0:i._id;return this.nodes.filter(a=>a._id!==s&&a._id!==r&&g.isIntercepted(a,t))}directionCollideCoverage(e,t,i){if(!t.rect||!e._rect)return;let s=e._rect,r={...t.rect};r.y>s.y?(r.h+=r.y-s.y,r.y=s.y):r.h+=s.y-r.y,r.x>s.x?(r.w+=r.x-s.x,r.x=s.x):r.w+=s.x-r.x;let a,n=.5;return i.forEach(d=>{if(d.locked||!d._rect)return;let h=d._rect,c=Number.MAX_VALUE,f=Number.MAX_VALUE;s.y<h.y?c=(r.y+r.h-h.y)/h.h:s.y+s.h>h.y+h.h&&(c=(h.y+h.h-r.y)/h.h),s.x<h.x?f=(r.x+r.w-h.x)/h.w:s.x+s.w>h.x+h.w&&(f=(h.x+h.w-r.x)/h.w);let u=Math.min(f,c);u>n&&(n=u,a=d)}),t.collide=a,a}cacheRects(e,t,i,s,r,a){return this.nodes.forEach(n=>n._rect={y:n.y*t+i,x:n.x*e+a,w:n.w*e-a-s,h:n.h*t-i-r}),this}swap(e,t){if(!t||t.locked||!e||e.locked)return!1;function i(){let r=t.x,a=t.y;return t.x=e.x,t.y=e.y,e.h!=t.h?(e.x=r,e.y=t.y+t.h):e.w!=t.w?(e.x=t.x+t.w,e.y=a):(e.x=r,e.y=a),e._dirty=t._dirty=!0,!0}let s;if(e.w===t.w&&e.h===t.h&&(e.x===t.x||e.y===t.y)&&(s=g.isTouching(e,t)))return i();if(s!==!1){if(e.w===t.w&&e.x===t.x&&(s||(s=g.isTouching(e,t)))){if(t.y<e.y){let r=e;e=t,t=r}return i()}if(s!==!1){if(e.h===t.h&&e.y===t.y&&(s||(s=g.isTouching(e,t)))){if(t.x<e.x){let r=e;e=t,t=r}return i()}return!1}}}isAreaEmpty(e,t,i,s){let r={x:e||0,y:t||0,w:i||1,h:s||1};return!this.collide(r)}compact(e="compact",t=!0){if(this.nodes.length===0)return this;t&&this.sortNodes();const i=this.batchMode;i||this.batchUpdate();const s=this._inColumnResize;s||(this._inColumnResize=!0);let r=this.nodes;return this.nodes=[],r.forEach((a,n,d)=>{let h;a.locked||(a.autoPosition=!0,e==="list"&&n&&(h=d[n-1])),this.addNode(a,!1,h)}),s||delete this._inColumnResize,i||this.batchUpdate(!1),this}set float(e){this._float!==e&&(this._float=e||!1,e||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(e=1,t=this.column){return this.nodes=g.sort(this.nodes,e,t),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(e=>{if(e._updating||e._orig===void 0||e.y===e._orig.y)return;let t=e.y;for(;t>e._orig.y;)--t,this.collide(e,{x:e.x,y:t,w:e.w,h:e.h})||(e._dirty=!0,e.y=t)}):this.nodes.forEach((e,t)=>{if(!e.locked)for(;e.y>0;){let i=t===0?0:e.y-1;if(!(t===0||!this.collide(e,{x:e.x,y:i,w:e.w,h:e.h})))break;e._dirty=e.y!==i,e.y=i}}),this)}prepareNode(e,t){e._id=e._id??le._idSeq++,(e.x===void 0||e.y===void 0||e.x===null||e.y===null)&&(e.autoPosition=!0);let i={x:0,y:0,w:1,h:1};return g.defaults(e,i),e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,g.sanitizeMinMax(e),typeof e.x=="string"&&(e.x=Number(e.x)),typeof e.y=="string"&&(e.y=Number(e.y)),typeof e.w=="string"&&(e.w=Number(e.w)),typeof e.h=="string"&&(e.h=Number(e.h)),isNaN(e.x)&&(e.x=i.x,e.autoPosition=!0),isNaN(e.y)&&(e.y=i.y,e.autoPosition=!0),isNaN(e.w)&&(e.w=i.w),isNaN(e.h)&&(e.h=i.h),this.nodeBoundFix(e,t),e}nodeBoundFix(e,t){let i=e._orig||g.copyPos({},e);if(e.maxW&&(e.w=Math.min(e.w,e.maxW)),e.maxH&&(e.h=Math.min(e.h,e.maxH)),e.minW&&e.minW<=this.column&&(e.w=Math.max(e.w,e.minW)),e.minH&&(e.h=Math.max(e.h,e.minH)),(e.x||0)+(e.w||1)>this.column&&this.column<12&&!this._inColumnResize&&e._id&&this.findCacheLayout(e,12)===-1){let r={...e};r.autoPosition||r.x===void 0?(delete r.x,delete r.y):r.x=Math.min(11,r.x),r.w=Math.min(12,r.w||1),this.cacheOneLayout(r,12)}return e.w>this.column?e.w=this.column:e.w<1&&(e.w=1),this.maxRow&&e.h>this.maxRow?e.h=this.maxRow:e.h<1&&(e.h=1),e.x<0&&(e.x=0),e.y<0&&(e.y=0),e.x+e.w>this.column&&(t?e.w=this.column-e.x:e.x=this.column-e.w),this.maxRow&&e.y+e.h>this.maxRow&&(t?e.h=this.maxRow-e.y:e.y=this.maxRow-e.h),g.samePos(e,i)||(e._dirty=!0),this}getDirtyNodes(e){return e?this.nodes.filter(t=>t._dirty&&!g.samePos(t,t._orig)):this.nodes.filter(t=>t._dirty)}_notify(e){if(this.batchMode||!this.onChange)return this;let t=(e||[]).concat(this.getDirtyNodes());return this.onChange(t),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(e=>{delete e._dirty,delete e._lastTried}),this)}saveInitial(){return this.nodes.forEach(e=>{e._orig=g.copyPos({},e),delete e._dirty}),this._hasLocked=this.nodes.some(e=>e.locked),this}restoreInitial(){return this.nodes.forEach(e=>{g.samePos(e,e._orig)||(g.copyPos(e,e._orig),e._dirty=!0)}),this._notify(),this}findEmptyPosition(e,t=this.nodes,i=this.column,s){let r=s?s.y*i+(s.x+s.w):0,a=!1;for(let n=r;!a;++n){let d=n%i,h=Math.floor(n/i);if(d+e.w>i)continue;let c={x:d,y:h,w:e.w,h:e.h};t.find(f=>g.isIntercepted(c,f))||((e.x!==d||e.y!==h)&&(e._dirty=!0),e.x=d,e.y=h,delete e.autoPosition,a=!0)}return a}addNode(e,t=!1,i){let s=this.nodes.find(a=>a._id===e._id);if(s)return s;this._inColumnResize?this.nodeBoundFix(e):this.prepareNode(e),delete e._temporaryRemoved,delete e._removeDOM;let r;return e.autoPosition&&this.findEmptyPosition(e,this.nodes,this.column,i)&&(delete e.autoPosition,r=!0),this.nodes.push(e),t&&this.addedNodes.push(e),r||this._fixCollisions(e),this.batchMode||this._packNodes()._notify(),e}removeNode(e,t=!0,i=!1){return this.nodes.find(s=>s._id===e._id)?(i&&this.removedNodes.push(e),t&&(e._removeDOM=!0),this.nodes=this.nodes.filter(s=>s._id!==e._id),e._isAboutToRemove||this._packNodes(),this._notify([e]),this):this}removeAll(e=!0){return delete this._layouts,this.nodes.length?(e&&this.nodes.forEach(t=>t._removeDOM=!0),this.removedNodes=this.nodes,this.nodes=[],this._notify(this.removedNodes)):this}moveNodeCheck(e,t){if(!this.changedPosConstrain(e,t))return!1;if(t.pack=!0,!this.maxRow)return this.moveNode(e,t);let i,s=new le({column:this.column,float:this.float,nodes:this.nodes.map(a=>a._id===e._id?(i={...a},i):{...a})});if(!i)return!1;let r=s.moveNode(i,t)&&s.getRow()<=Math.max(this.getRow(),this.maxRow);if(!r&&!t.resizing&&t.collide){let a=t.collide.el.gridstackNode;if(this.swap(e,a))return this._notify(),!0}return r?(s.nodes.filter(a=>a._dirty).forEach(a=>{let n=this.nodes.find(d=>d._id===a._id);n&&(g.copyPos(n,a),n._dirty=!0)}),this._notify(),!0):!1}willItFit(e){if(delete e._willFitPos,!this.maxRow)return!0;let t=new le({column:this.column,float:this.float,nodes:this.nodes.map(s=>({...s}))}),i={...e};return this.cleanupNode(i),delete i.el,delete i._id,delete i.content,delete i.grid,t.addNode(i),t.getRow()<=this.maxRow?(e._willFitPos=g.copyPos({},i),!0):!1}changedPosConstrain(e,t){return t.w=t.w||e.w,t.h=t.h||e.h,e.x!==t.x||e.y!==t.y?!0:(e.maxW&&(t.w=Math.min(t.w,e.maxW)),e.maxH&&(t.h=Math.min(t.h,e.maxH)),e.minW&&(t.w=Math.max(t.w,e.minW)),e.minH&&(t.h=Math.max(t.h,e.minH)),e.w!==t.w||e.h!==t.h)}moveNode(e,t){var h,c;if(!e||!t)return!1;let i;t.pack===void 0&&!this.batchMode&&(i=t.pack=!0),typeof t.x!="number"&&(t.x=e.x),typeof t.y!="number"&&(t.y=e.y),typeof t.w!="number"&&(t.w=e.w),typeof t.h!="number"&&(t.h=e.h);let s=e.w!==t.w||e.h!==t.h,r=g.copyPos({},e,!0);if(g.copyPos(r,t),this.nodeBoundFix(r,s),g.copyPos(t,r),!t.forceCollide&&g.samePos(e,t))return!1;let a=g.copyPos({},e),n=this.collideAll(e,r,t.skip),d=!0;if(n.length){let f=e._moving&&!t.nested,u=f?this.directionCollideCoverage(e,t,n):n[0];if(f&&u&&((c=(h=e.grid)==null?void 0:h.opts)!=null&&c.subGridDynamic)&&!e.grid._isTemp){let _=g.areaIntercept(t.rect,u._rect),b=g.area(t.rect),L=g.area(u._rect);_/(b<L?b:L)>.8&&(u.grid.makeSubGrid(u.el,void 0,e),u=void 0)}u?d=!this._fixCollisions(e,r,u,t):(d=!1,i&&delete t.pack)}return d&&(e._dirty=!0,g.copyPos(e,r)),t.pack&&this._packNodes()._notify(),!g.samePos(e,a)}getRow(){return this.nodes.reduce((e,t)=>Math.max(e,t.y+t.h),0)}beginUpdate(e){return e._updating||(e._updating=!0,delete e._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){let e=this.nodes.find(t=>t._updating);return e&&(delete e._updating,delete e._skipDown),this}save(e=!0,t){var a;let i=(a=this._layouts)==null?void 0:a.length,s=i&&this.column!==i-1?this._layouts[i-1]:null,r=[];return this.sortNodes(),this.nodes.forEach(n=>{let d=s==null?void 0:s.find(c=>c._id===n._id),h={...n,...d||{}};g.removeInternalForSave(h,!e),t&&t(n,h),r.push(h)}),r}layoutsNodesChange(e){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((t,i)=>{if(!t||i===this.column)return this;if(i<this.column)this._layouts[i]=void 0;else{let s=i/this.column;e.forEach(r=>{if(!r._orig)return;let a=t.find(n=>n._id===r._id);a&&(a.y>=0&&r.y!==r._orig.y&&(a.y+=r.y-r._orig.y),r.x!==r._orig.x&&(a.x=Math.round(r.x*s)),r.w!==r._orig.w&&(a.w=Math.round(r.w*s)))})}}),this)}columnChanged(e,t,i,s="moveScale"){var d;if(!this.nodes.length||!t||e===t)return this;const r=s==="compact"||s==="list";r&&this.sortNodes(1,e),t<e&&this.cacheLayout(this.nodes,e),this.batchUpdate();let a=[],n=!1;if(t===1&&(i!=null&&i.length)){n=!0;let h=0;i.forEach(c=>{c.x=0,c.w=1,c.y=Math.max(c.y,h),h=c.y+c.h}),a=i,i=[]}else i=r?this.nodes:g.sort(this.nodes,-1,e);if(t>e&&this._layouts){const h=this._layouts[t]||[];let c=this._layouts.length-1;!h.length&&e!==c&&((d=this._layouts[c])!=null&&d.length)&&(e=c,this._layouts[c].forEach(f=>{let u=i.find(_=>_._id===f._id);u&&(!r&&!f.autoPosition&&(u.x=f.x??u.x,u.y=f.y??u.y),u.w=f.w??u.w,(f.x==null||f.y===void 0)&&(u.autoPosition=!0))})),h.forEach(f=>{let u=i.findIndex(_=>_._id===f._id);if(u!==-1){const _=i[u];if(r){_.w=f.w;return}(f.autoPosition||isNaN(f.x)||isNaN(f.y))&&this.findEmptyPosition(f,a),f.autoPosition||(_.x=f.x??_.x,_.y=f.y??_.y,_.w=f.w??_.w,a.push(_)),i.splice(u,1)}})}if(r)this.compact(s,!1);else{if(i.length){if(typeof s=="function")s(t,e,a,i);else if(!n){let h=r||s==="none"?1:t/e,c=s==="move"||s==="moveScale",f=s==="scale"||s==="moveScale";i.forEach(u=>{u.x=t===1?0:c?Math.round(u.x*h):Math.min(u.x,t-1),u.w=t===1||e===1?1:f?Math.round(u.w*h)||1:Math.min(u.w,t),a.push(u)}),i=[]}}n||(a=g.sort(a,-1,t)),this._inColumnResize=!0,this.nodes=[],a.forEach(h=>{this.addNode(h,!1),delete h._orig})}return this.nodes.forEach(h=>delete h._orig),this.batchUpdate(!1,!r),delete this._inColumnResize,this}cacheLayout(e,t,i=!1){let s=[];return e.forEach((r,a)=>{if(r._id===void 0){const n=r.id?this.nodes.find(d=>d.id===r.id):void 0;r._id=(n==null?void 0:n._id)??le._idSeq++}s[a]={x:r.x,y:r.y,w:r.w,_id:r._id}}),this._layouts=i?[]:this._layouts||[],this._layouts[t]=s,this}cacheOneLayout(e,t){e._id=e._id??le._idSeq++;let i={x:e.x,y:e.y,w:e.w,_id:e._id};(e.autoPosition||e.x===void 0)&&(delete i.x,delete i.y,e.autoPosition&&(i.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[t]=this._layouts[t]||[];let s=this.findCacheLayout(e,t);return s===-1?this._layouts[t].push(i):this._layouts[t][s]=i,this}findCacheLayout(e,t){var i,s;return((s=(i=this._layouts)==null?void 0:i[t])==null?void 0:s.findIndex(r=>r._id===e._id))??-1}removeNodeFromLayoutCache(e){if(this._layouts)for(let t=0;t<this._layouts.length;t++){let i=this.findCacheLayout(e,t);i!==-1&&this._layouts[t].splice(i,1)}}cleanupNode(e){for(let t in e)t[0]==="_"&&t!=="_id"&&delete e[t];return this}}le._idSeq=0;const ie={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,oneColumnSize:768,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"},Cr={handle:".grid-stack-item-content",appendTo:"body"};class E{}const ne=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);class ae{}function it(o,e){if(o.touches.length>1)return;o.cancelable&&o.preventDefault();const t=o.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(i)}function Ai(o,e){o.cancelable&&o.preventDefault();const t=document.createEvent("MouseEvents");t.initMouseEvent(e,!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(t)}function st(o){ae.touchHandled||(ae.touchHandled=!0,it(o,"mousedown"))}function rt(o){ae.touchHandled&&it(o,"mousemove")}function nt(o){if(!ae.touchHandled)return;ae.pointerLeaveTimeout&&(window.clearTimeout(ae.pointerLeaveTimeout),delete ae.pointerLeaveTimeout);const e=!!E.dragElement;it(o,"mouseup"),e||it(o,"click"),ae.touchHandled=!1}function ot(o){o.pointerType!=="mouse"&&o.target.releasePointerCapture(o.pointerId)}function Di(o){E.dragElement&&o.pointerType!=="mouse"&&Ai(o,"mouseenter")}function Ni(o){E.dragElement&&o.pointerType!=="mouse"&&(ae.pointerLeaveTimeout=window.setTimeout(()=>{delete ae.pointerLeaveTimeout,Ai(o,"mouseleave")},10))}class lt{constructor(e,t,i){this.moving=!1,this.host=e,this.dir=t,this.option=i,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._init()}_init(){const e=document.createElement("div");return e.classList.add("ui-resizable-handle"),e.classList.add(`${lt.prefix}${this.dir}`),e.style.zIndex="100",e.style.userSelect="none",this.el=e,this.host.appendChild(this.el),this.el.addEventListener("mousedown",this._mouseDown),ne&&(this.el.addEventListener("touchstart",st),this.el.addEventListener("pointerdown",ot)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),ne&&(this.el.removeEventListener("touchstart",st),this.el.removeEventListener("pointerdown",ot)),this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(e){this.mouseDownEvent=e,document.addEventListener("mousemove",this._mouseMove,!0),document.addEventListener("mouseup",this._mouseUp,!0),ne&&(this.el.addEventListener("touchmove",rt),this.el.addEventListener("touchend",nt)),e.stopPropagation(),e.preventDefault()}_mouseMove(e){let t=this.mouseDownEvent;this.moving?this._triggerEvent("move",e):Math.abs(e.x-t.x)+Math.abs(e.y-t.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",e)),e.stopPropagation(),e.preventDefault()}_mouseUp(e){this.moving&&this._triggerEvent("stop",e),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),ne&&(this.el.removeEventListener("touchmove",rt),this.el.removeEventListener("touchend",nt)),delete this.moving,delete this.mouseDownEvent,e.stopPropagation(),e.preventDefault()}_triggerEvent(e,t){return this.option[e]&&this.option[e](t),this}}lt.prefix="ui-resizable-";class Ht{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,t){this._eventRegister[e]=t}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,t){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](t)}}class $e extends Ht{constructor(e,t={}){super(),this.rectScale={x:1,y:1},this._ui=()=>{const s=this.el.parentElement.getBoundingClientRect(),r={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||r;return{position:{left:(a.left-s.left)*this.rectScale.x,top:(a.top-s.top)*this.rectScale.y},size:{width:a.width*this.rectScale.x,height:a.height*this.rectScale.y}}},this.el=e,this.option=t,this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(e,t){super.on(e,t)}off(e){super.off(e)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(e){let t=e.handles&&e.handles!==this.option.handles,i=e.autoHide&&e.autoHide!==this.option.autoHide;return Object.keys(e).forEach(s=>this.option[s]=e[s]),t&&(this._removeHandlers(),this._setupHandlers()),i&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(e){return e?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),E.overResizeElement===this&&delete E.overResizeElement),this}_mouseOver(e){E.overResizeElement||E.dragElement||(E.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(e){E.overResizeElement===this&&(delete E.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){let e=this.option.handles||"e,s,se";return e==="all"&&(e="n,e,s,w,se,sw,ne,nw"),this.handlers=e.split(",").map(t=>t.trim()).map(t=>new lt(this.el,t,{start:i=>{this._resizeStart(i)},stop:i=>{this._resizeStop(i)},move:i=>{this._resizing(i,t)}})),this}_resizeStart(e){this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=g.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=e,this._setupHelper(),this._applyChange();const t=g.initEvent(e,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(t,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",t),this}_resizing(e,t){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(e,t),this._applyChange();const i=g.initEvent(e,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(i,this._ui()),this.triggerEvent("resize",i),this}_resizeStop(e){const t=g.initEvent(e,{type:"resizestop",target:this.el});return this.option.stop&&this.option.stop(t),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",t),this._cleanHelper(),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=$e._originStyleProp.map(s=>this.el.style[s]),this.parentOriginStylePosition=this.el.parentElement.style.position;const e=this.el.parentElement,t=document.createElement("div");g.addElStyles(t,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),e.appendChild(t);const i=t.getBoundingClientRect();return e.removeChild(t),this.rectScale={x:1/i.width,y:1/i.height},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return $e._originStyleProp.forEach((e,t)=>{this.el.style[e]=this.elOriginStyleVal[t]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(e,t){const i=this.startEvent,s={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},r=e.clientX-i.clientX,a=e.clientY-i.clientY;t.indexOf("e")>-1?s.width+=r:t.indexOf("w")>-1&&(s.width-=r,s.left+=r),t.indexOf("s")>-1?s.height+=a:t.indexOf("n")>-1&&(s.height-=a,s.top+=a);const n=this._constrainSize(s.width,s.height);return Math.round(s.width)!==Math.round(n.width)&&(t.indexOf("w")>-1&&(s.left+=s.width-n.width),s.width=n.width),Math.round(s.height)!==Math.round(n.height)&&(t.indexOf("n")>-1&&(s.top+=s.height-n.height),s.height=n.height),s}_constrainSize(e,t){const i=this.option.maxWidth||Number.MAX_SAFE_INTEGER,s=this.option.minWidth/this.rectScale.x||e,r=this.option.maxHeight||Number.MAX_SAFE_INTEGER,a=this.option.minHeight/this.rectScale.y||t,n=Math.min(i,Math.max(s,e)),d=Math.min(r,Math.max(a,t));return{width:n,height:d}}_applyChange(){let e={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const t=this.el.parentElement,{left:i,top:s}=t.getBoundingClientRect();e={left:i,top:s,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(t=>{const i=this.temporalRect[t],s=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(i-e[t])*s+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(e=>e.destroy()),delete this.handlers,this}}$e._originStyleProp=["width","height","position","left","top","opacity","zIndex"];const Sr='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';class Ue extends Ht{constructor(e,t={}){super(),this.dragScale={x:1,y:1},this.el=e,this.option=t;let i=t.handle.substring(1);this.dragEl=e.classList.contains(i)?e:e.querySelector(t.handle)||e,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this.enable()}on(e,t){super.on(e,t)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.dragEl.addEventListener("mousedown",this._mouseDown),ne&&(this.dragEl.addEventListener("touchstart",st),this.dragEl.addEventListener("pointerdown",ot)),this.el.classList.remove("ui-draggable-disabled"))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.dragEl.removeEventListener("mousedown",this._mouseDown),ne&&(this.dragEl.removeEventListener("touchstart",st),this.dragEl.removeEventListener("pointerdown",ot)),e||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(e){return Object.keys(e).forEach(t=>this.option[t]=e[t]),this}_mouseDown(e){if(!E.mouseHandled)return e.button!==0||e.target.closest(Sr)||this.option.cancel&&e.target.closest(this.option.cancel)||(this.mouseDownEvent=e,delete this.dragging,delete E.dragElement,delete E.dropElement,document.addEventListener("mousemove",this._mouseMove,!0),document.addEventListener("mouseup",this._mouseUp,!0),ne&&(this.dragEl.addEventListener("touchmove",rt),this.dragEl.addEventListener("touchend",nt)),e.preventDefault(),document.activeElement&&document.activeElement.blur(),E.mouseHandled=!0),!0}_callDrag(e){if(!this.dragging)return;const t=g.initEvent(e,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(t,this.ui()),this.triggerEvent("drag",t)}_mouseMove(e){var i;let t=this.mouseDownEvent;if(this.dragging)if(this._dragFollow(e),E.pauseDrag){const s=Number.isInteger(E.pauseDrag)?E.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(e),s)}else this._callDrag(e);else if(Math.abs(e.x-t.x)+Math.abs(e.y-t.y)>3){this.dragging=!0,E.dragElement=this;let s=(i=this.el.gridstackNode)==null?void 0:i.grid;s?E.dropElement=s.el.ddElement.ddDroppable:delete E.dropElement,this.helper=this._createHelper(e),this._setupHelperContainmentStyle(),this.dragOffset=this._getDragOffset(e,this.el,this.helperContainment);const r=g.initEvent(e,{target:this.el,type:"dragstart"});this._setupHelperStyle(e),this.option.start&&this.option.start(r,this.ui()),this.triggerEvent("dragstart",r)}return e.preventDefault(),!0}_mouseUp(e){var t;if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),ne&&(this.dragEl.removeEventListener("touchmove",rt,!0),this.dragEl.removeEventListener("touchend",nt,!0)),this.dragging){delete this.dragging,((t=E.dropElement)==null?void 0:t.el)===this.el.parentElement&&delete E.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper===this.el?this._removeHelperStyle():this.helper.remove();const i=g.initEvent(e,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(i),this.triggerEvent("dragstop",i),E.dropElement&&E.dropElement.drop(e)}delete this.helper,delete this.mouseDownEvent,delete E.dragElement,delete E.dropElement,delete E.mouseHandled,e.preventDefault()}_createHelper(e){let t=this.el;return typeof this.option.helper=="function"?t=this.option.helper(e):this.option.helper==="clone"&&(t=g.cloneNode(this.el)),document.body.contains(t)||g.appendTo(t,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),t===this.el&&(this.dragElementOriginStyle=Ue.originStyleProp.map(i=>this.el.style[i])),t}_setupHelperStyle(e){this.helper.classList.add("ui-draggable-dragging");const t=this.helper.style;return t.pointerEvents="none",t.width=this.dragOffset.width+"px",t.height=this.dragOffset.height+"px",t.willChange="left, top",t.position="fixed",this._dragFollow(e),t.transition="none",setTimeout(()=>{this.helper&&(t.transition=null)},0),this}_removeHelperStyle(){var t;this.helper.classList.remove("ui-draggable-dragging");let e=(t=this.helper)==null?void 0:t.gridstackNode;if(!(e!=null&&e._isAboutToRemove)&&this.dragElementOriginStyle){let i=this.helper,s=this.dragElementOriginStyle.transition||null;i.style.transition=this.dragElementOriginStyle.transition="none",Ue.originStyleProp.forEach(r=>i.style[r]=this.dragElementOriginStyle[r]||null),setTimeout(()=>i.style.transition=s,50)}return delete this.dragElementOriginStyle,this}_dragFollow(e){let t={left:0,top:0};const i=this.helper.style,s=this.dragOffset;i.left=(e.clientX+s.offsetLeft-t.left)*this.dragScale.x+"px",i.top=(e.clientY+s.offsetTop-t.top)*this.dragScale.y+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(e,t,i){let s=0,r=0;if(i){const n=document.createElement("div");g.addElStyles(n,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),i.appendChild(n);const d=n.getBoundingClientRect();i.removeChild(n),s=d.left,r=d.top,this.dragScale={x:1/d.width,y:1/d.height}}const a=t.getBoundingClientRect();return{left:a.left,top:a.top,offsetLeft:-e.clientX+a.left-s,offsetTop:-e.clientY+a.top-r,width:a.width*this.dragScale.x,height:a.height*this.dragScale.y}}ui(){const t=this.el.parentElement.getBoundingClientRect(),i=this.helper.getBoundingClientRect();return{position:{top:(i.top-t.top)*this.dragScale.y,left:(i.left-t.left)*this.dragScale.x}}}}Ue.originStyleProp=["transition","pointerEvents","position","left","top","minWidth","willChange"];class Ar extends Ht{constructor(e,t={}){super(),this.el=e,this.option=t,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,t){super.on(e,t)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),ne&&(this.el.addEventListener("pointerenter",Di),this.el.addEventListener("pointerleave",Ni)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),ne&&(this.el.removeEventListener("pointerenter",Di),this.el.removeEventListener("pointerleave",Ni)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(t=>this.option[t]=e[t]),this._setupAccept(),this}_mouseEnter(e){if(!E.dragElement||!this._canDrop(E.dragElement.el))return;e.preventDefault(),e.stopPropagation(),E.dropElement&&E.dropElement!==this&&E.dropElement._mouseLeave(e),E.dropElement=this;const t=g.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(t,this._ui(E.dragElement)),this.triggerEvent("dropover",t),this.el.classList.add("ui-droppable-over")}_mouseLeave(e){var i;if(!E.dragElement||E.dropElement!==this)return;e.preventDefault(),e.stopPropagation();const t=g.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(t,this._ui(E.dragElement)),this.triggerEvent("dropout",t),E.dropElement===this){delete E.dropElement;let s,r=this.el.parentElement;for(;!s&&r;)s=(i=r.ddElement)==null?void 0:i.ddDroppable,r=r.parentElement;s&&s._mouseEnter(e)}}drop(e){e.preventDefault();const t=g.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(t,this._ui(E.dragElement)),this.triggerEvent("drop",t)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}}class Ot{static init(e){return e.ddElement||(e.ddElement=new Ot(e)),e.ddElement}constructor(e){this.el=e}on(e,t){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.on(e,t):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.on(e,t):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.on(e,t),this}off(e){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(e)>-1?this.ddDraggable.off(e):this.ddDroppable&&["drop","dropover","dropout"].indexOf(e)>-1?this.ddDroppable.off(e):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(e)>-1&&this.ddResizable.off(e),this}setupDraggable(e){return this.ddDraggable?this.ddDraggable.updateOption(e):this.ddDraggable=new Ue(this.el,e),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(e){return this.ddResizable?this.ddResizable.updateOption(e):this.ddResizable=new $e(this.el,e),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(e){return this.ddDroppable?this.ddDroppable.updateOption(e):this.ddDroppable=new Ar(this.el,e),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}}class Dr{resizable(e,t,i,s){return this._getDDElements(e).forEach(r=>{if(t==="disable"||t==="enable")r.ddResizable&&r.ddResizable[t]();else if(t==="destroy")r.ddResizable&&r.cleanResizable();else if(t==="option")r.setupResizable({[i]:s});else{const a=r.el.gridstackNode.grid;let n=r.el.getAttribute("gs-resize-handles")?r.el.getAttribute("gs-resize-handles"):a.opts.resizable.handles,d=!a.opts.alwaysShowResizeHandle;r.setupResizable({...a.opts.resizable,handles:n,autoHide:d,start:t.start,stop:t.stop,resize:t.resize})}}),this}draggable(e,t,i,s){return this._getDDElements(e).forEach(r=>{if(t==="disable"||t==="enable")r.ddDraggable&&r.ddDraggable[t]();else if(t==="destroy")r.ddDraggable&&r.cleanDraggable();else if(t==="option")r.setupDraggable({[i]:s});else{const a=r.el.gridstackNode.grid;r.setupDraggable({...a.opts.draggable,start:t.start,stop:t.stop,drag:t.drag})}}),this}dragIn(e,t){return this._getDDElements(e).forEach(i=>i.setupDraggable(t)),this}droppable(e,t,i,s){return typeof t.accept=="function"&&!t._accept&&(t._accept=t.accept,t.accept=r=>t._accept(r)),this._getDDElements(e).forEach(r=>{t==="disable"||t==="enable"?r.ddDroppable&&r.ddDroppable[t]():t==="destroy"?r.ddDroppable&&r.cleanDroppable():t==="option"?r.setupDroppable({[i]:s}):r.setupDroppable(t)}),this}isDroppable(e){return!!(e&&e.ddElement&&e.ddElement.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e&&e.ddElement&&e.ddElement.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e&&e.ddElement&&e.ddElement.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,t,i){return this._getDDElements(e).forEach(s=>s.on(t,r=>{i(r,E.dragElement?E.dragElement.el:r.target,E.dragElement?E.dragElement.helper:null)})),this}off(e,t){return this._getDDElements(e).forEach(i=>i.off(t)),this}_getDDElements(e,t=!0){let i=g.getElements(e);if(!i.length)return[];let s=i.map(r=>r.ddElement||(t?Ot.init(r):null));return t||s.filter(r=>r),s}}/*!
|
|
62
62
|
* GridStack 9.5.1
|
|
63
63
|
* https://gridstackjs.com/
|
|
64
64
|
*
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-dialog__header[data-v-769ea864]{color:#fff}.full-dialog-dashboard[data-v-769ea864]{width:95%;height:95%;margin:2.5% auto 0}.widget-settings-container[data-v-769ea864]{display:flex;flex-direction:column;gap:16px;font-family:Roboto,sans-serif;font-size:14px;color:var(--textDark)}.widget-setting[data-v-769ea864]{display:flex;flex-direction:column;gap:8px}.widget-setting .text-settings-height[data-v-769ea864]{--el-input-height: 42px}.dialog-footer[data-v-769ea864]{display:flex;justify-content:flex-end;gap:10px}.el-button[data-v-769ea864]{background-color:var(--el-color-primary);border-color:var(--el-color-primary-dark-2);color:#fff}.el-button[data-v-769ea864]:hover{background-color:var(--el-color-primary-light-3);border-color:var(--el-color-primary-dark-2)}.text-widget-wrap[data-v-5e485ae3]{margin:auto}.markdown-widget-wrap[data-v-b2d32c29]{max-width:none;width:100%;min-width:0;height:100%;display:flex;flex-direction:column;box-sizing:border-box;margin-left:5px}.markdown-input[data-v-b2d32c29],.markdown-output[data-v-b2d32c29]{flex:1 1 auto;width:100%;height:100%;min-height:0;box-sizing:border-box}.markdown-input[data-v-b2d32c29]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.95rem;line-height:1.5;padding:.75rem;border:1px solid #ddd;border-radius:.5rem;resize:none}.markdown-output[data-v-b2d32c29]{overflow:auto}.markdown-output[data-v-b2d32c29] pre,.markdown-output[data-v-b2d32c29] code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.markdown-output[data-v-b2d32c29] h1{font-size:1.75rem;margin:1rem 0 .5rem}.markdown-output[data-v-b2d32c29] h2{font-size:1.5rem;margin:1rem 0 .5rem}.markdown-output[data-v-b2d32c29] p{margin:.5rem 0}.color-secondary[data-v-55b985b8]{color:var(--dash-secondary)}.color-primary[data-v-55b985b8]{color:var(--dash-text-medium)}.color-background[data-v-55b985b8]{background-color:var(--dash-background)}.filter-wrapper[data-v-55b985b8]{background-color:var(--dash-secondary);height:33px;padding:0 8px;justify-content:space-between;width:100%}.clear-filter-div[data-v-55b985b8]{width:33px;height:33px;margin-left:10px}.empty[data-v-55b985b8]{opacity:.8;color:#ddd}.content-header .visible-div[data-v-4f4aa869]{min-width:100px;height:40px}.content-header .editing-div[data-v-4f4aa869]{width:150px}.header-slot-icon[data-v-4f4aa869]{position:absolute;top:5px;right:5px}.dash-header-visible[data-v-4f4aa869]{min-height:40px}.stick-to-top[data-v-4f4aa869]{position:sticky;top:0;width:100%}[data-v-a2daf4ac] .content-header{z-index:3;width:100%;overflow:hidden}[data-v-a2daf4ac] .content-header h3{margin:10px}[data-v-a2daf4ac] .content-header .item-widget-button,[data-v-a2daf4ac] .content-header .close-button{cursor:pointer;margin-right:3px;width:20px;height:20px}[data-v-a2daf4ac] .widget-body{height:calc(100% - 40px)}[data-v-a2daf4ac] .widget-body-no-head{height:inherit}[data-v-a2daf4ac] .widget-body-no-head h2{margin:0}.grid-stack-item-content[data-v-a2daf4ac]{background-color:#fff;overflow:hidden;text-align:start;display:flex;flex-flow:column;transition:background .3s ease-in-out}.grid-stack-item-content[data-v-a2daf4ac]:hover{background:var(--dash-backgroundBlocked)}.grid-stack-item-content.locked-widget[data-v-a2daf4ac]{background-color:#f2f2f2}.grid-stack-item-content.locked-widget .lock-toggle[data-v-a2daf4ac]{opacity:1!important;transform:translateY(0)!important}.grid-stack-item-content .header-icon[data-v-a2daf4ac]{cursor:pointer;height:18px;opacity:0;transform:translateY(5px);transition:opacity .3s ease-in-out,transform .3s ease-in-out}.grid-stack-item-content:hover .header-icon[data-v-a2daf4ac]{opacity:1;transform:translateY(0)}[data-v-a2daf4ac] .fill{display:flex;justify-content:center;align-items:center}[data-v-a2daf4ac] .fill img{flex-shrink:1;width:100%}.icon-wrapper[data-v-a2daf4ac]{width:25px}.parent-div[data-v-a2daf4ac]{position:relative;display:inline-block;padding:20px;background:#f0f0f0;border-radius:8px;transition:background .3s ease-in-out}:root{--dash-background: #f6fcff;--dash-background2:#fbfdff;--dash-backgroundBlocked:#cedded;--dash-drop-shadow:0px -2px 4px rgba(7, 79, 124, .05), 0px 6px 10px rgba(7, 79, 124, .1);--dash-text-dark: #243d8e;--dash-text-medium:#546085;--dash-text-light:#d9e3ff;--dash-secondary:#24245b}.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTMyOC45MDYsNDAxLjk5NGgtMzYuNTUzVjEwOS42MzZoMzYuNTUzYzQuOTQ4LDAsOS4yMzYtMS44MDksMTIuODQ3LTUuNDI2YzMuNjEzLTMuNjE1LDUuNDIxLTcuODk4LDUuNDIxLTEyLjg0NSAgIGMwLTQuOTQ5LTEuODAxLTkuMjMxLTUuNDI4LTEyLjg1MWwtNzMuMDg3LTczLjA5QzI2NS4wNDQsMS44MDksMjYwLjc2LDAsMjU1LjgxMywwYy00Ljk0OCwwLTkuMjI5LDEuODA5LTEyLjg0Nyw1LjQyNCAgIGwtNzMuMDg4LDczLjA5Yy0zLjYxOCwzLjYxOS01LjQyNCw3LjkwMi01LjQyNCwxMi44NTFjMCw0Ljk0NiwxLjgwNyw5LjIyOSw1LjQyNCwxMi44NDVjMy42MTksMy42MTcsNy45MDEsNS40MjYsMTIuODUsNS40MjYgICBoMzYuNTQ1djI5Mi4zNThoLTM2LjU0MmMtNC45NTIsMC05LjIzNSwxLjgwOC0xMi44NSw1LjQyMWMtMy42MTcsMy42MjEtNS40MjQsNy45MDUtNS40MjQsMTIuODU0ICAgYzAsNC45NDUsMS44MDcsOS4yMjcsNS40MjQsMTIuODQ3bDczLjA4OSw3My4wODhjMy42MTcsMy42MTcsNy44OTgsNS40MjQsMTIuODQ3LDUuNDI0YzQuOTUsMCw5LjIzNC0xLjgwNywxMi44NDktNS40MjQgICBsNzMuMDg3LTczLjA4OGMzLjYxMy0zLjYyLDUuNDIxLTcuOTAxLDUuNDIxLTEyLjg0N2MwLTQuOTQ4LTEuODA4LTkuMjMyLTUuNDIxLTEyLjg1NCAgIEMzMzguMTQyLDQwMy44MDIsMzMzLjg1Nyw0MDEuOTk0LDMyOC45MDYsNDAxLjk5NHoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:translateY(10px) rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:translateY(10px) rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:0;left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:0;right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,top;cursor:move}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack>.grid-stack-item[gs-x="0"]{left:0}.gs-12>.grid-stack-item{width:8.333%}.gs-12>.grid-stack-item[gs-x="1"]{left:8.333%}.gs-12>.grid-stack-item[gs-w="2"]{width:16.667%}.gs-12>.grid-stack-item[gs-x="2"]{left:16.667%}.gs-12>.grid-stack-item[gs-w="3"]{width:25%}.gs-12>.grid-stack-item[gs-x="3"]{left:25%}.gs-12>.grid-stack-item[gs-w="4"]{width:33.333%}.gs-12>.grid-stack-item[gs-x="4"]{left:33.333%}.gs-12>.grid-stack-item[gs-w="5"]{width:41.667%}.gs-12>.grid-stack-item[gs-x="5"]{left:41.667%}.gs-12>.grid-stack-item[gs-w="6"]{width:50%}.gs-12>.grid-stack-item[gs-x="6"]{left:50%}.gs-12>.grid-stack-item[gs-w="7"]{width:58.333%}.gs-12>.grid-stack-item[gs-x="7"]{left:58.333%}.gs-12>.grid-stack-item[gs-w="8"]{width:66.667%}.gs-12>.grid-stack-item[gs-x="8"]{left:66.667%}.gs-12>.grid-stack-item[gs-w="9"]{width:75%}.gs-12>.grid-stack-item[gs-x="9"]{left:75%}.gs-12>.grid-stack-item[gs-w="10"]{width:83.333%}.gs-12>.grid-stack-item[gs-x="10"]{left:83.333%}.gs-12>.grid-stack-item[gs-w="11"]{width:91.667%}.gs-12>.grid-stack-item[gs-x="11"]{left:91.667%}.gs-12>.grid-stack-item[gs-w="12"]{width:100%}.gs-1>.grid-stack-item{width:100%}.gs-2>.grid-stack-item{width:50%}.gs-2>.grid-stack-item[gs-x="1"]{left:50%}.gs-2>.grid-stack-item[gs-w="2"]{width:100%}.gs-3>.grid-stack-item{width:33.333%}.gs-3>.grid-stack-item[gs-x="1"]{left:33.333%}.gs-3>.grid-stack-item[gs-w="2"]{width:66.667%}.gs-3>.grid-stack-item[gs-x="2"]{left:66.667%}.gs-3>.grid-stack-item[gs-w="3"]{width:100%}.gs-4>.grid-stack-item{width:25%}.gs-4>.grid-stack-item[gs-x="1"]{left:25%}.gs-4>.grid-stack-item[gs-w="2"]{width:50%}.gs-4>.grid-stack-item[gs-x="2"]{left:50%}.gs-4>.grid-stack-item[gs-w="3"]{width:75%}.gs-4>.grid-stack-item[gs-x="3"]{left:75%}.gs-4>.grid-stack-item[gs-w="4"]{width:100%}.gs-5>.grid-stack-item{width:20%}.gs-5>.grid-stack-item[gs-x="1"]{left:20%}.gs-5>.grid-stack-item[gs-w="2"]{width:40%}.gs-5>.grid-stack-item[gs-x="2"]{left:40%}.gs-5>.grid-stack-item[gs-w="3"]{width:60%}.gs-5>.grid-stack-item[gs-x="3"]{left:60%}.gs-5>.grid-stack-item[gs-w="4"]{width:80%}.gs-5>.grid-stack-item[gs-x="4"]{left:80%}.gs-5>.grid-stack-item[gs-w="5"]{width:100%}.gs-6>.grid-stack-item{width:16.667%}.gs-6>.grid-stack-item[gs-x="1"]{left:16.667%}.gs-6>.grid-stack-item[gs-w="2"]{width:33.333%}.gs-6>.grid-stack-item[gs-x="2"]{left:33.333%}.gs-6>.grid-stack-item[gs-w="3"]{width:50%}.gs-6>.grid-stack-item[gs-x="3"]{left:50%}.gs-6>.grid-stack-item[gs-w="4"]{width:66.667%}.gs-6>.grid-stack-item[gs-x="4"]{left:66.667%}.gs-6>.grid-stack-item[gs-w="5"]{width:83.333%}.gs-6>.grid-stack-item[gs-x="5"]{left:83.333%}.gs-6>.grid-stack-item[gs-w="6"]{width:100%}.gs-7>.grid-stack-item{width:14.286%}.gs-7>.grid-stack-item[gs-x="1"]{left:14.286%}.gs-7>.grid-stack-item[gs-w="2"]{width:28.571%}.gs-7>.grid-stack-item[gs-x="2"]{left:28.571%}.gs-7>.grid-stack-item[gs-w="3"]{width:42.857%}.gs-7>.grid-stack-item[gs-x="3"]{left:42.857%}.gs-7>.grid-stack-item[gs-w="4"]{width:57.143%}.gs-7>.grid-stack-item[gs-x="4"]{left:57.143%}.gs-7>.grid-stack-item[gs-w="5"]{width:71.429%}.gs-7>.grid-stack-item[gs-x="5"]{left:71.429%}.gs-7>.grid-stack-item[gs-w="6"]{width:85.714%}.gs-7>.grid-stack-item[gs-x="6"]{left:85.714%}.gs-7>.grid-stack-item[gs-w="7"]{width:100%}.gs-8>.grid-stack-item{width:12.5%}.gs-8>.grid-stack-item[gs-x="1"]{left:12.5%}.gs-8>.grid-stack-item[gs-w="2"]{width:25%}.gs-8>.grid-stack-item[gs-x="2"]{left:25%}.gs-8>.grid-stack-item[gs-w="3"]{width:37.5%}.gs-8>.grid-stack-item[gs-x="3"]{left:37.5%}.gs-8>.grid-stack-item[gs-w="4"]{width:50%}.gs-8>.grid-stack-item[gs-x="4"]{left:50%}.gs-8>.grid-stack-item[gs-w="5"]{width:62.5%}.gs-8>.grid-stack-item[gs-x="5"]{left:62.5%}.gs-8>.grid-stack-item[gs-w="6"]{width:75%}.gs-8>.grid-stack-item[gs-x="6"]{left:75%}.gs-8>.grid-stack-item[gs-w="7"]{width:87.5%}.gs-8>.grid-stack-item[gs-x="7"]{left:87.5%}.gs-8>.grid-stack-item[gs-w="8"]{width:100%}.gs-9>.grid-stack-item{width:11.111%}.gs-9>.grid-stack-item[gs-x="1"]{left:11.111%}.gs-9>.grid-stack-item[gs-w="2"]{width:22.222%}.gs-9>.grid-stack-item[gs-x="2"]{left:22.222%}.gs-9>.grid-stack-item[gs-w="3"]{width:33.333%}.gs-9>.grid-stack-item[gs-x="3"]{left:33.333%}.gs-9>.grid-stack-item[gs-w="4"]{width:44.444%}.gs-9>.grid-stack-item[gs-x="4"]{left:44.444%}.gs-9>.grid-stack-item[gs-w="5"]{width:55.556%}.gs-9>.grid-stack-item[gs-x="5"]{left:55.556%}.gs-9>.grid-stack-item[gs-w="6"]{width:66.667%}.gs-9>.grid-stack-item[gs-x="6"]{left:66.667%}.gs-9>.grid-stack-item[gs-w="7"]{width:77.778%}.gs-9>.grid-stack-item[gs-x="7"]{left:77.778%}.gs-9>.grid-stack-item[gs-w="8"]{width:88.889%}.gs-9>.grid-stack-item[gs-x="8"]{left:88.889%}.gs-9>.grid-stack-item[gs-w="9"]{width:100%}.gs-10>.grid-stack-item{width:10%}.gs-10>.grid-stack-item[gs-x="1"]{left:10%}.gs-10>.grid-stack-item[gs-w="2"]{width:20%}.gs-10>.grid-stack-item[gs-x="2"]{left:20%}.gs-10>.grid-stack-item[gs-w="3"]{width:30%}.gs-10>.grid-stack-item[gs-x="3"]{left:30%}.gs-10>.grid-stack-item[gs-w="4"]{width:40%}.gs-10>.grid-stack-item[gs-x="4"]{left:40%}.gs-10>.grid-stack-item[gs-w="5"]{width:50%}.gs-10>.grid-stack-item[gs-x="5"]{left:50%}.gs-10>.grid-stack-item[gs-w="6"]{width:60%}.gs-10>.grid-stack-item[gs-x="6"]{left:60%}.gs-10>.grid-stack-item[gs-w="7"]{width:70%}.gs-10>.grid-stack-item[gs-x="7"]{left:70%}.gs-10>.grid-stack-item[gs-w="8"]{width:80%}.gs-10>.grid-stack-item[gs-x="8"]{left:80%}.gs-10>.grid-stack-item[gs-w="9"]{width:90%}.gs-10>.grid-stack-item[gs-x="9"]{left:90%}.gs-10>.grid-stack-item[gs-w="10"]{width:100%}.gs-11>.grid-stack-item{width:9.091%}.gs-11>.grid-stack-item[gs-x="1"]{left:9.091%}.gs-11>.grid-stack-item[gs-w="2"]{width:18.182%}.gs-11>.grid-stack-item[gs-x="2"]{left:18.182%}.gs-11>.grid-stack-item[gs-w="3"]{width:27.273%}.gs-11>.grid-stack-item[gs-x="3"]{left:27.273%}.gs-11>.grid-stack-item[gs-w="4"]{width:36.364%}.gs-11>.grid-stack-item[gs-x="4"]{left:36.364%}.gs-11>.grid-stack-item[gs-w="5"]{width:45.455%}.gs-11>.grid-stack-item[gs-x="5"]{left:45.455%}.gs-11>.grid-stack-item[gs-w="6"]{width:54.545%}.gs-11>.grid-stack-item[gs-x="6"]{left:54.545%}.gs-11>.grid-stack-item[gs-w="7"]{width:63.636%}.gs-11>.grid-stack-item[gs-x="7"]{left:63.636%}.gs-11>.grid-stack-item[gs-w="8"]{width:72.727%}.gs-11>.grid-stack-item[gs-x="8"]{left:72.727%}.gs-11>.grid-stack-item[gs-w="9"]{width:81.818%}.gs-11>.grid-stack-item[gs-x="9"]{left:81.818%}.gs-11>.grid-stack-item[gs-w="10"]{width:90.909%}.gs-11>.grid-stack-item[gs-x="10"]{left:90.909%}.gs-11>.grid-stack-item[gs-w="11"]{width:100%}.dashboard-app .tw-flex[data-v-240ef3ec]{display:flex}.dashboard-app .tw-flex-row[data-v-240ef3ec]{flex-direction:row}.dashboard-app .tw-items-center[data-v-240ef3ec]{align-items:center}.dashboard-app .tw-justify-between[data-v-240ef3ec]{justify-content:space-between}.dashboard-app .tw-h-10[data-v-240ef3ec]{height:2.5rem}.dashboard-app .tw-m-1[data-v-240ef3ec]{margin:.25rem}.dashboard-app .tw-m-4[data-v-240ef3ec]{margin:1rem}.dashboard-app .tw-m-w-4[data-v-240ef3ec]{margin:0 1rem}.dashboard-app .tw-leading-none[data-v-240ef3ec]{line-height:1}.dashboard-app .tw-pl-1[data-v-240ef3ec]{padding-left:.25rem}.dashboard-app .tw-flex-wrap[data-v-240ef3ec]{flex-wrap:wrap}.dashboard-app .tw-gap-2[data-v-240ef3ec]{gap:.5rem}.dashboard-app .tw-max-h-screen[data-v-240ef3ec]{max-height:100vh}.dashboard-app .tw-h-screen[data-v-240ef3ec]{height:100vh}.dashboard-app .tw-float-left[data-v-240ef3ec]{float:left}.dashboard-app .tw-w-40[data-v-240ef3ec]{width:10rem}.dashboard-app .tw-w-50[data-v-240ef3ec]{width:20rem}.el-dialog__title[data-v-240ef3ec]{color:#fff}.grid-stack-item[data-v-240ef3ec]{text-align:center;line-height:35px}.grid-stack-item .grid-stack-item-content[data-v-240ef3ec]{overflow:hidden;border:solid var(--dash-text-light) 1px;border-radius:.2rem}.dashboard-app[data-v-240ef3ec]{font-family:Roboto,sans-serif;font-size:14px;line-height:17px;background:var(--dash-background);color:var(--dash-text-dark)}.dashboard-app .edit-button[data-v-240ef3ec]{background-color:var(--el-color-primary);border-color:var(--el-color-primary-dark-2);color:#fff}.dashboard-app .edit-button[data-v-240ef3ec]:hover{color:var(--el-color-primary-dark-2);background-color:var(--el-color-primary-light-3);border-color:var(--el-color-primary-dark-2)}.dashboard-app .tw-flex{display:flex}.dashboard-app .tw-flex-row{flex-direction:row}.dashboard-app .tw-items-center{align-items:center}.dashboard-app .tw-justify-between{justify-content:space-between}.dashboard-app .tw-h-10{height:2.5rem}.dashboard-app .tw-m-1{margin:.25rem}.dashboard-app .tw-m-4{margin:1rem}.dashboard-app .tw-m-w-4{margin:0 1rem}.dashboard-app .tw-leading-none{line-height:1}.dashboard-app .tw-pl-1{padding-left:.25rem}.dashboard-app .tw-flex-wrap{flex-wrap:wrap}.dashboard-app .tw-gap-2{gap:.5rem}.dashboard-app .tw-max-h-screen{max-height:100vh}.dashboard-app .tw-h-screen{height:100vh}.dashboard-app .tw-float-left{float:left}.dashboard-app .tw-w-40{width:10rem}.dashboard-app .tw-w-50{width:20rem}
|
|
1
|
+
.el-dialog__header[data-v-769ea864]{color:#fff}.full-dialog-dashboard[data-v-769ea864]{width:95%;height:95%;margin:2.5% auto 0}.widget-settings-container[data-v-769ea864]{display:flex;flex-direction:column;gap:16px;font-family:Roboto,sans-serif;font-size:14px;color:var(--textDark)}.widget-setting[data-v-769ea864]{display:flex;flex-direction:column;gap:8px}.widget-setting .text-settings-height[data-v-769ea864]{--el-input-height: 42px}.dialog-footer[data-v-769ea864]{display:flex;justify-content:flex-end;gap:10px}.el-button[data-v-769ea864]{background-color:var(--el-color-primary);border-color:var(--el-color-primary-dark-2);color:#fff}.el-button[data-v-769ea864]:hover{background-color:var(--el-color-primary-light-3);border-color:var(--el-color-primary-dark-2)}.text-widget-wrap[data-v-bbd00006]{margin:20px auto auto}.markdown-widget-wrap[data-v-5bf532d5]{max-width:none;width:100%;min-width:0;height:100%;display:flex;flex-direction:column;box-sizing:border-box;margin-left:5px;margin-top:0}.markdown-input[data-v-5bf532d5],.markdown-output[data-v-5bf532d5]{flex:1 1 auto;width:100%;height:100%;min-height:0;box-sizing:border-box}.markdown-input[data-v-5bf532d5]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.95rem;line-height:1.5;padding:.75rem;border:1px solid #ddd;border-radius:.5rem;resize:none}.markdown-output[data-v-5bf532d5]{overflow:auto}.markdown-output[data-v-5bf532d5] pre,.markdown-output[data-v-5bf532d5] code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.markdown-output[data-v-5bf532d5] h1{font-size:1.75rem;margin:1rem 0 .5rem}.markdown-output[data-v-5bf532d5] h2{font-size:1.5rem;margin:1rem 0 .5rem}.markdown-output[data-v-5bf532d5] p{margin:.5rem 0}.color-secondary[data-v-55b985b8]{color:var(--dash-secondary)}.color-primary[data-v-55b985b8]{color:var(--dash-text-medium)}.color-background[data-v-55b985b8]{background-color:var(--dash-background)}.filter-wrapper[data-v-55b985b8]{background-color:var(--dash-secondary);height:33px;padding:0 8px;justify-content:space-between;width:100%}.clear-filter-div[data-v-55b985b8]{width:33px;height:33px;margin-left:10px}.empty[data-v-55b985b8]{opacity:.8;color:#ddd}.content-header .visible-div[data-v-4f4aa869]{min-width:100px;height:40px}.content-header .editing-div[data-v-4f4aa869]{width:150px}.header-slot-icon[data-v-4f4aa869]{position:absolute;top:5px;right:5px}.dash-header-visible[data-v-4f4aa869]{min-height:40px}.stick-to-top[data-v-4f4aa869]{position:sticky;top:0;width:100%}[data-v-a2daf4ac] .content-header{z-index:3;width:100%;overflow:hidden}[data-v-a2daf4ac] .content-header h3{margin:10px}[data-v-a2daf4ac] .content-header .item-widget-button,[data-v-a2daf4ac] .content-header .close-button{cursor:pointer;margin-right:3px;width:20px;height:20px}[data-v-a2daf4ac] .widget-body{height:calc(100% - 40px)}[data-v-a2daf4ac] .widget-body-no-head{height:inherit}[data-v-a2daf4ac] .widget-body-no-head h2{margin:0}.grid-stack-item-content[data-v-a2daf4ac]{background-color:#fff;overflow:hidden;text-align:start;display:flex;flex-flow:column;transition:background .3s ease-in-out}.grid-stack-item-content[data-v-a2daf4ac]:hover{background:var(--dash-backgroundBlocked)}.grid-stack-item-content.locked-widget[data-v-a2daf4ac]{background-color:#f2f2f2}.grid-stack-item-content.locked-widget .lock-toggle[data-v-a2daf4ac]{opacity:1!important;transform:translateY(0)!important}.grid-stack-item-content .header-icon[data-v-a2daf4ac]{cursor:pointer;height:18px;opacity:0;transform:translateY(5px);transition:opacity .3s ease-in-out,transform .3s ease-in-out}.grid-stack-item-content:hover .header-icon[data-v-a2daf4ac]{opacity:1;transform:translateY(0)}[data-v-a2daf4ac] .fill{display:flex;justify-content:center;align-items:center}[data-v-a2daf4ac] .fill img{flex-shrink:1;width:100%}.icon-wrapper[data-v-a2daf4ac]{width:25px}.parent-div[data-v-a2daf4ac]{position:relative;display:inline-block;padding:20px;background:#f0f0f0;border-radius:8px;transition:background .3s ease-in-out}:root{--dash-background: #f6fcff;--dash-background2:#fbfdff;--dash-backgroundBlocked:#cedded;--dash-drop-shadow:0px -2px 4px rgba(7, 79, 124, .05), 0px 6px 10px rgba(7, 79, 124, .1);--dash-text-dark: #243d8e;--dash-text-medium:#546085;--dash-text-light:#d9e3ff;--dash-secondary:#24245b}.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTMyOC45MDYsNDAxLjk5NGgtMzYuNTUzVjEwOS42MzZoMzYuNTUzYzQuOTQ4LDAsOS4yMzYtMS44MDksMTIuODQ3LTUuNDI2YzMuNjEzLTMuNjE1LDUuNDIxLTcuODk4LDUuNDIxLTEyLjg0NSAgIGMwLTQuOTQ5LTEuODAxLTkuMjMxLTUuNDI4LTEyLjg1MWwtNzMuMDg3LTczLjA5QzI2NS4wNDQsMS44MDksMjYwLjc2LDAsMjU1LjgxMywwYy00Ljk0OCwwLTkuMjI5LDEuODA5LTEyLjg0Nyw1LjQyNCAgIGwtNzMuMDg4LDczLjA5Yy0zLjYxOCwzLjYxOS01LjQyNCw3LjkwMi01LjQyNCwxMi44NTFjMCw0Ljk0NiwxLjgwNyw5LjIyOSw1LjQyNCwxMi44NDVjMy42MTksMy42MTcsNy45MDEsNS40MjYsMTIuODUsNS40MjYgICBoMzYuNTQ1djI5Mi4zNThoLTM2LjU0MmMtNC45NTIsMC05LjIzNSwxLjgwOC0xMi44NSw1LjQyMWMtMy42MTcsMy42MjEtNS40MjQsNy45MDUtNS40MjQsMTIuODU0ICAgYzAsNC45NDUsMS44MDcsOS4yMjcsNS40MjQsMTIuODQ3bDczLjA4OSw3My4wODhjMy42MTcsMy42MTcsNy44OTgsNS40MjQsMTIuODQ3LDUuNDI0YzQuOTUsMCw5LjIzNC0xLjgwNywxMi44NDktNS40MjQgICBsNzMuMDg3LTczLjA4OGMzLjYxMy0zLjYyLDUuNDIxLTcuOTAxLDUuNDIxLTEyLjg0N2MwLTQuOTQ4LTEuODA4LTkuMjMyLTUuNDIxLTEyLjg1NCAgIEMzMzguMTQyLDQwMy44MDIsMzMzLjg1Nyw0MDEuOTk0LDMyOC45MDYsNDAxLjk5NHoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:translateY(10px) rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:translateY(10px) rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:0;left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:0;right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,top;cursor:move}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack>.grid-stack-item[gs-x="0"]{left:0}.gs-12>.grid-stack-item{width:8.333%}.gs-12>.grid-stack-item[gs-x="1"]{left:8.333%}.gs-12>.grid-stack-item[gs-w="2"]{width:16.667%}.gs-12>.grid-stack-item[gs-x="2"]{left:16.667%}.gs-12>.grid-stack-item[gs-w="3"]{width:25%}.gs-12>.grid-stack-item[gs-x="3"]{left:25%}.gs-12>.grid-stack-item[gs-w="4"]{width:33.333%}.gs-12>.grid-stack-item[gs-x="4"]{left:33.333%}.gs-12>.grid-stack-item[gs-w="5"]{width:41.667%}.gs-12>.grid-stack-item[gs-x="5"]{left:41.667%}.gs-12>.grid-stack-item[gs-w="6"]{width:50%}.gs-12>.grid-stack-item[gs-x="6"]{left:50%}.gs-12>.grid-stack-item[gs-w="7"]{width:58.333%}.gs-12>.grid-stack-item[gs-x="7"]{left:58.333%}.gs-12>.grid-stack-item[gs-w="8"]{width:66.667%}.gs-12>.grid-stack-item[gs-x="8"]{left:66.667%}.gs-12>.grid-stack-item[gs-w="9"]{width:75%}.gs-12>.grid-stack-item[gs-x="9"]{left:75%}.gs-12>.grid-stack-item[gs-w="10"]{width:83.333%}.gs-12>.grid-stack-item[gs-x="10"]{left:83.333%}.gs-12>.grid-stack-item[gs-w="11"]{width:91.667%}.gs-12>.grid-stack-item[gs-x="11"]{left:91.667%}.gs-12>.grid-stack-item[gs-w="12"]{width:100%}.gs-1>.grid-stack-item{width:100%}.gs-2>.grid-stack-item{width:50%}.gs-2>.grid-stack-item[gs-x="1"]{left:50%}.gs-2>.grid-stack-item[gs-w="2"]{width:100%}.gs-3>.grid-stack-item{width:33.333%}.gs-3>.grid-stack-item[gs-x="1"]{left:33.333%}.gs-3>.grid-stack-item[gs-w="2"]{width:66.667%}.gs-3>.grid-stack-item[gs-x="2"]{left:66.667%}.gs-3>.grid-stack-item[gs-w="3"]{width:100%}.gs-4>.grid-stack-item{width:25%}.gs-4>.grid-stack-item[gs-x="1"]{left:25%}.gs-4>.grid-stack-item[gs-w="2"]{width:50%}.gs-4>.grid-stack-item[gs-x="2"]{left:50%}.gs-4>.grid-stack-item[gs-w="3"]{width:75%}.gs-4>.grid-stack-item[gs-x="3"]{left:75%}.gs-4>.grid-stack-item[gs-w="4"]{width:100%}.gs-5>.grid-stack-item{width:20%}.gs-5>.grid-stack-item[gs-x="1"]{left:20%}.gs-5>.grid-stack-item[gs-w="2"]{width:40%}.gs-5>.grid-stack-item[gs-x="2"]{left:40%}.gs-5>.grid-stack-item[gs-w="3"]{width:60%}.gs-5>.grid-stack-item[gs-x="3"]{left:60%}.gs-5>.grid-stack-item[gs-w="4"]{width:80%}.gs-5>.grid-stack-item[gs-x="4"]{left:80%}.gs-5>.grid-stack-item[gs-w="5"]{width:100%}.gs-6>.grid-stack-item{width:16.667%}.gs-6>.grid-stack-item[gs-x="1"]{left:16.667%}.gs-6>.grid-stack-item[gs-w="2"]{width:33.333%}.gs-6>.grid-stack-item[gs-x="2"]{left:33.333%}.gs-6>.grid-stack-item[gs-w="3"]{width:50%}.gs-6>.grid-stack-item[gs-x="3"]{left:50%}.gs-6>.grid-stack-item[gs-w="4"]{width:66.667%}.gs-6>.grid-stack-item[gs-x="4"]{left:66.667%}.gs-6>.grid-stack-item[gs-w="5"]{width:83.333%}.gs-6>.grid-stack-item[gs-x="5"]{left:83.333%}.gs-6>.grid-stack-item[gs-w="6"]{width:100%}.gs-7>.grid-stack-item{width:14.286%}.gs-7>.grid-stack-item[gs-x="1"]{left:14.286%}.gs-7>.grid-stack-item[gs-w="2"]{width:28.571%}.gs-7>.grid-stack-item[gs-x="2"]{left:28.571%}.gs-7>.grid-stack-item[gs-w="3"]{width:42.857%}.gs-7>.grid-stack-item[gs-x="3"]{left:42.857%}.gs-7>.grid-stack-item[gs-w="4"]{width:57.143%}.gs-7>.grid-stack-item[gs-x="4"]{left:57.143%}.gs-7>.grid-stack-item[gs-w="5"]{width:71.429%}.gs-7>.grid-stack-item[gs-x="5"]{left:71.429%}.gs-7>.grid-stack-item[gs-w="6"]{width:85.714%}.gs-7>.grid-stack-item[gs-x="6"]{left:85.714%}.gs-7>.grid-stack-item[gs-w="7"]{width:100%}.gs-8>.grid-stack-item{width:12.5%}.gs-8>.grid-stack-item[gs-x="1"]{left:12.5%}.gs-8>.grid-stack-item[gs-w="2"]{width:25%}.gs-8>.grid-stack-item[gs-x="2"]{left:25%}.gs-8>.grid-stack-item[gs-w="3"]{width:37.5%}.gs-8>.grid-stack-item[gs-x="3"]{left:37.5%}.gs-8>.grid-stack-item[gs-w="4"]{width:50%}.gs-8>.grid-stack-item[gs-x="4"]{left:50%}.gs-8>.grid-stack-item[gs-w="5"]{width:62.5%}.gs-8>.grid-stack-item[gs-x="5"]{left:62.5%}.gs-8>.grid-stack-item[gs-w="6"]{width:75%}.gs-8>.grid-stack-item[gs-x="6"]{left:75%}.gs-8>.grid-stack-item[gs-w="7"]{width:87.5%}.gs-8>.grid-stack-item[gs-x="7"]{left:87.5%}.gs-8>.grid-stack-item[gs-w="8"]{width:100%}.gs-9>.grid-stack-item{width:11.111%}.gs-9>.grid-stack-item[gs-x="1"]{left:11.111%}.gs-9>.grid-stack-item[gs-w="2"]{width:22.222%}.gs-9>.grid-stack-item[gs-x="2"]{left:22.222%}.gs-9>.grid-stack-item[gs-w="3"]{width:33.333%}.gs-9>.grid-stack-item[gs-x="3"]{left:33.333%}.gs-9>.grid-stack-item[gs-w="4"]{width:44.444%}.gs-9>.grid-stack-item[gs-x="4"]{left:44.444%}.gs-9>.grid-stack-item[gs-w="5"]{width:55.556%}.gs-9>.grid-stack-item[gs-x="5"]{left:55.556%}.gs-9>.grid-stack-item[gs-w="6"]{width:66.667%}.gs-9>.grid-stack-item[gs-x="6"]{left:66.667%}.gs-9>.grid-stack-item[gs-w="7"]{width:77.778%}.gs-9>.grid-stack-item[gs-x="7"]{left:77.778%}.gs-9>.grid-stack-item[gs-w="8"]{width:88.889%}.gs-9>.grid-stack-item[gs-x="8"]{left:88.889%}.gs-9>.grid-stack-item[gs-w="9"]{width:100%}.gs-10>.grid-stack-item{width:10%}.gs-10>.grid-stack-item[gs-x="1"]{left:10%}.gs-10>.grid-stack-item[gs-w="2"]{width:20%}.gs-10>.grid-stack-item[gs-x="2"]{left:20%}.gs-10>.grid-stack-item[gs-w="3"]{width:30%}.gs-10>.grid-stack-item[gs-x="3"]{left:30%}.gs-10>.grid-stack-item[gs-w="4"]{width:40%}.gs-10>.grid-stack-item[gs-x="4"]{left:40%}.gs-10>.grid-stack-item[gs-w="5"]{width:50%}.gs-10>.grid-stack-item[gs-x="5"]{left:50%}.gs-10>.grid-stack-item[gs-w="6"]{width:60%}.gs-10>.grid-stack-item[gs-x="6"]{left:60%}.gs-10>.grid-stack-item[gs-w="7"]{width:70%}.gs-10>.grid-stack-item[gs-x="7"]{left:70%}.gs-10>.grid-stack-item[gs-w="8"]{width:80%}.gs-10>.grid-stack-item[gs-x="8"]{left:80%}.gs-10>.grid-stack-item[gs-w="9"]{width:90%}.gs-10>.grid-stack-item[gs-x="9"]{left:90%}.gs-10>.grid-stack-item[gs-w="10"]{width:100%}.gs-11>.grid-stack-item{width:9.091%}.gs-11>.grid-stack-item[gs-x="1"]{left:9.091%}.gs-11>.grid-stack-item[gs-w="2"]{width:18.182%}.gs-11>.grid-stack-item[gs-x="2"]{left:18.182%}.gs-11>.grid-stack-item[gs-w="3"]{width:27.273%}.gs-11>.grid-stack-item[gs-x="3"]{left:27.273%}.gs-11>.grid-stack-item[gs-w="4"]{width:36.364%}.gs-11>.grid-stack-item[gs-x="4"]{left:36.364%}.gs-11>.grid-stack-item[gs-w="5"]{width:45.455%}.gs-11>.grid-stack-item[gs-x="5"]{left:45.455%}.gs-11>.grid-stack-item[gs-w="6"]{width:54.545%}.gs-11>.grid-stack-item[gs-x="6"]{left:54.545%}.gs-11>.grid-stack-item[gs-w="7"]{width:63.636%}.gs-11>.grid-stack-item[gs-x="7"]{left:63.636%}.gs-11>.grid-stack-item[gs-w="8"]{width:72.727%}.gs-11>.grid-stack-item[gs-x="8"]{left:72.727%}.gs-11>.grid-stack-item[gs-w="9"]{width:81.818%}.gs-11>.grid-stack-item[gs-x="9"]{left:81.818%}.gs-11>.grid-stack-item[gs-w="10"]{width:90.909%}.gs-11>.grid-stack-item[gs-x="10"]{left:90.909%}.gs-11>.grid-stack-item[gs-w="11"]{width:100%}.dashboard-app .tw-flex[data-v-240ef3ec]{display:flex}.dashboard-app .tw-flex-row[data-v-240ef3ec]{flex-direction:row}.dashboard-app .tw-items-center[data-v-240ef3ec]{align-items:center}.dashboard-app .tw-justify-between[data-v-240ef3ec]{justify-content:space-between}.dashboard-app .tw-h-10[data-v-240ef3ec]{height:2.5rem}.dashboard-app .tw-m-1[data-v-240ef3ec]{margin:.25rem}.dashboard-app .tw-m-4[data-v-240ef3ec]{margin:1rem}.dashboard-app .tw-m-w-4[data-v-240ef3ec]{margin:0 1rem}.dashboard-app .tw-leading-none[data-v-240ef3ec]{line-height:1}.dashboard-app .tw-pl-1[data-v-240ef3ec]{padding-left:.25rem}.dashboard-app .tw-flex-wrap[data-v-240ef3ec]{flex-wrap:wrap}.dashboard-app .tw-gap-2[data-v-240ef3ec]{gap:.5rem}.dashboard-app .tw-max-h-screen[data-v-240ef3ec]{max-height:100vh}.dashboard-app .tw-h-screen[data-v-240ef3ec]{height:100vh}.dashboard-app .tw-float-left[data-v-240ef3ec]{float:left}.dashboard-app .tw-w-40[data-v-240ef3ec]{width:10rem}.dashboard-app .tw-w-50[data-v-240ef3ec]{width:20rem}.el-dialog__title[data-v-240ef3ec]{color:#fff}.grid-stack-item[data-v-240ef3ec]{text-align:center;line-height:35px}.grid-stack-item .grid-stack-item-content[data-v-240ef3ec]{overflow:hidden;border:solid var(--dash-text-light) 1px;border-radius:.2rem}.dashboard-app[data-v-240ef3ec]{font-family:Roboto,sans-serif;font-size:14px;line-height:17px;background:var(--dash-background);color:var(--dash-text-dark)}.dashboard-app .edit-button[data-v-240ef3ec]{background-color:var(--el-color-primary);border-color:var(--el-color-primary-dark-2);color:#fff}.dashboard-app .edit-button[data-v-240ef3ec]:hover{color:var(--el-color-primary-dark-2);background-color:var(--el-color-primary-light-3);border-color:var(--el-color-primary-dark-2)}.dashboard-app .tw-flex{display:flex}.dashboard-app .tw-flex-row{flex-direction:row}.dashboard-app .tw-items-center{align-items:center}.dashboard-app .tw-justify-between{justify-content:space-between}.dashboard-app .tw-h-10{height:2.5rem}.dashboard-app .tw-m-1{margin:.25rem}.dashboard-app .tw-m-4{margin:1rem}.dashboard-app .tw-m-w-4{margin:0 1rem}.dashboard-app .tw-leading-none{line-height:1}.dashboard-app .tw-pl-1{padding-left:.25rem}.dashboard-app .tw-flex-wrap{flex-wrap:wrap}.dashboard-app .tw-gap-2{gap:.5rem}.dashboard-app .tw-max-h-screen{max-height:100vh}.dashboard-app .tw-h-screen{height:100vh}.dashboard-app .tw-float-left{float:left}.dashboard-app .tw-w-40{width:10rem}.dashboard-app .tw-w-50{width:20rem}
|