diff --git a/assets/data_table/src/App.js b/assets/data_table/src/App.js index 6df76fac..b963dcad 100644 --- a/assets/data_table/src/App.js +++ b/assets/data_table/src/App.js @@ -1,4 +1,4 @@ -import React, { useCallback, useEffect, useRef, useState } from "react"; +import React, { useCallback, useEffect, useState } from "react"; import DataEditor, { GridCellKind, GridColumnIcon, @@ -6,18 +6,14 @@ import DataEditor, { withAlpha, getMiddleCenterBias, } from "@glideapps/glide-data-grid"; -import { - RiRefreshLine, - RiArrowLeftSLine, - RiArrowRightSLine, - RiSearch2Line, - RiSortAsc, - RiSortDesc, - RiAlignJustify, - RiFileDownloadLine, - RiArrowDownSLine, -} from "@remixicon/react"; import { useLayer } from "react-laag"; +import DataInfo from "./DataInfo"; +import HeaderMenu from "./HeaderMenu"; +import Pagination from "./Pagination"; +import LimitSelect from "./LimitSelect"; +import SearchButton from "./SearchButton"; +import RefetchButton from "./RefetchButton"; +import DownloadExported from "./DownloadExported"; const customHeaderIcons = { arrowUp: ({ @@ -460,15 +456,7 @@ export function App({ ctx, data }) { return (
Z&&this.props.onSwipeRight(1,p),this.movePosition.deltaY<-Z?this.props.onSwipeUp(1,p):this.movePosition.deltaY>Z&&this.props.onSwipeDown(1,p)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(p){this.swiper=p,this.props.innerRef(p)}},{key:"render",value:function(){var p=this.props,Z=p.tagName,R=p.className,x=p.style,N=p.children,E=p.allowMouseEvents,S=p.onSwipeUp,k=p.onSwipeDown,b=p.onSwipeLeft,D=p.onSwipeRight,B=p.onSwipeStart,_=p.onSwipeMove,K=p.onSwipeEnd,Q=p.innerRef,m1=p.tolerance,g1=o(p,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return l.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:x},g1),N)}}]),u}(t.Component);v.displayName="ReactSwipe",v.propTypes={tagName:r.default.string,className:r.default.string,style:r.default.object,children:r.default.node,allowMouseEvents:r.default.bool,onSwipeUp:r.default.func,onSwipeDown:r.default.func,onSwipeLeft:r.default.func,onSwipeRight:r.default.func,onSwipeStart:r.default.func,onSwipeMove:r.default.func,onSwipeEnd:r.default.func,innerRef:r.default.func,tolerance:r.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=v})});var A3=U(m7=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["exports","./react-swipe"],t);else if(typeof m7!="undefined")t(m7,ce());else{var i={exports:{}};t(i.exports,e.reactSwipe),e.index=i.exports}})(m7,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=l(t);function l(r){return r&&r.__esModule?r:{default:r}}e.default=i.default})});var me=U((xV,h7)=>{(function(){"use strict";var e={}.hasOwnProperty,t="[native code]";function i(){for(var l=[],r=0;r Z&&this.props.onSwipeRight(1,p),this.movePosition.deltaY<-Z?this.props.onSwipeUp(1,p):this.movePosition.deltaY>Z&&this.props.onSwipeDown(1,p)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(p){this.swiper=p,this.props.innerRef(p)}},{key:"render",value:function(){var p=this.props,Z=p.tagName,R=p.className,x=p.style,N=p.children,E=p.allowMouseEvents,S=p.onSwipeUp,k=p.onSwipeDown,b=p.onSwipeLeft,D=p.onSwipeRight,B=p.onSwipeStart,_=p.onSwipeMove,K=p.onSwipeEnd,J=p.innerRef,c1=p.tolerance,w1=o(p,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return l.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:x},w1),N)}}]),u}(t.Component);v.displayName="ReactSwipe",v.propTypes={tagName:r.default.string,className:r.default.string,style:r.default.object,children:r.default.node,allowMouseEvents:r.default.bool,onSwipeUp:r.default.func,onSwipeDown:r.default.func,onSwipeLeft:r.default.func,onSwipeRight:r.default.func,onSwipeStart:r.default.func,onSwipeMove:r.default.func,onSwipeEnd:r.default.func,innerRef:r.default.func,tolerance:r.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=v})});var G3=U(V7=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["exports","./react-swipe"],t);else if(typeof V7!="undefined")t(V7,fe());else{var i={exports:{}};t(i.exports,e.reactSwipe),e.index=i.exports}})(V7,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=l(t);function l(r){return r&&r.__esModule?r:{default:r}}e.default=i.default})});var Ze=U((FV,d7)=>{(function(){"use strict";var e={}.hasOwnProperty,t="[native code]";function i(){for(var l=[],r=0;r An error occurred: An error occurred: An error occurred: An error occurred: An
P+1?(l1--,r0(0,l1,"vertical")):(X=Math.max(0,X-1),r0(0,X,"vertical"));break}default:o5(M)}if(f!==0)if(f===2)$=Y.length,I=F,r0($-1-A,0,"horizontal");else if(f===-2)I=A,$=F+1,r0(I-A,0,"horizontal");else{let V1=[];if(o0!==void 0){let z1=o0({x:I,y:X,width:$-I-A,height:l1-X},E0.current.signal);typeof z1=="object"&&(V1=ML(z1))}if(f===1){let z1=!1;if(I{var mc=Jt();function hc(e){return e&&e.length?mc(e):[]}ei.exports=hc});var c8=U((qd,ii)=>{function wc(e,t){for(var i=-1,l=t.length,r=e.length;++i{function Mm(e){return function(t,i,l){for(var r=-1,s=Object(t),a=l(t),o=a.length;o--;){var n=a[e?o:++r];if(i(s[n],n,s)===!1)break}return t}}Di.exports=Mm});var Oi=U((Su,Ii)=>{var xm=Ai(),fm=xm();Ii.exports=fm});var Wi=U((ku,_i)=>{function Zm(e,t){for(var i=-1,l=Array(e);++i{var Rg=p9();function Bg(e){return e===e&&!Rg(e)}Fr.exports=Bg});var kr=U((pv,Sr)=>{var zg=S8(),yg=J7();function bg(e){for(var t=yg(e),i=t.length;i--;){var l=t[i],r=e[l];t[i]=[l,r,zg(r)]}return t}Sr.exports=bg});var k8=U((Mv,Tr)=>{function Fg(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==void 0||e in Object(i))}}Tr.exports=Fg});var Dr=U((xv,Pr)=>{var Sg=br(),kg=kr(),Tg=k8();function Pg(e){var t=kg(e);return t.length==1&&t[0][2]?Tg(t[0][0],t[0][1]):function(i){return i===e||Sg(i,e,t)}}Pr.exports=Pg});var T8=U((fv,Ar)=>{var Dg=Do(),Ag=S3();function Ig(e,t){t=Dg(t,e);for(var i=0,l=t.length;e!=null&&i{var Nc=wi();function Rc(e){return e&&e.length?Nc(e):[]}gi.exports=Rc});var d8=U((eu,Li)=>{function Bc(e,t){for(var i=-1,l=t.length,r=e.length;++i{function Dm(e){return function(t,i,l){for(var r=-1,s=Object(t),a=l(t),o=a.length;o--;){var n=a[e?o:++r];if(i(s[n],n,s)===!1)break}return t}}Qi.exports=Dm});var tl=U((qu,el)=>{var Am=Ji(),Im=Am();el.exports=Im});var ll=U(($u,il)=>{function Om(e,t){for(var i=-1,l=Array(e);++i{var qg=E9();function $g(e){return e===e&&!qg(e)}Gr.exports=$g});var Xr=U((yv,Kr)=>{var Ug=_8(),Gg=s3();function Kg(e){for(var t=Gg(e),i=t.length;i--;){var l=t[i],r=e[l];t[i]=[l,r,Ug(r)]}return t}Kr.exports=Kg});var W8=U((bv,jr)=>{function Xg(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==void 0||e in Object(i))}}jr.exports=Xg});var Qr=U((Fv,Yr)=>{var jg=Ur(),Yg=Xr(),Qg=W8();function Jg(e){var t=Yg(e);return t.length==1&&t[0][2]?Qg(t[0][0],t[0][1]):function(i){return i===e||jg(i,e,t)}}Yr.exports=Jg});var q8=U((Sv,Jr)=>{var eH=en(),tH=_3();function iH(e,t){t=eH(t,e);for(var i=0,l=t.length;e!=null&&i
`:"'+(l?t:u0(t,!0))+`
`}blockquote(t){return`"+(l?t:u0(t,!0))+`
@@ -42,21 +42,21 @@ ${t}
`}tablerow(t){return`
${t}
`}tablecell(t,i){let l=i.header?"th":"td";return(i.align?`<${l} align="${i.align}">`:`<${l}>`)+t+`${l}>
-`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}
`}br(){return this.options.xhtml?"
":"
"}del(t){return`${t}`}link(t,i,l){if(t=Ue(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r='"+l+"",r}image(t,i,l){if(t=Ue(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r=`":">",r}text(t){return t}},A7=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,i,l){return""+l}image(t,i,l){return""+l}br(){return""}},I7=class{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,i){let l=t,r=0;if(this.seen.hasOwnProperty(l)){r=this.seen[t];do r++,l=t+"-"+r;while(this.seen.hasOwnProperty(l))}return i||(this.seen[t]=r,this.seen[l]=0),l}slug(t,i={}){let l=this.serialize(t);return this.getNextSafeSlug(l,i.dryrun)}},k4=class e{constructor(t){this.options=t||U5,this.options.renderer=this.options.renderer||new b9,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new A7,this.slugger=new I7}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(t,i=!0){let l="",r,s,a,o,n,C,c,h,g,m,w,L,v,V,u,d,p,Z,R,x=t.length;for(r=0;r"+u0(r.message+"",!0)+"
";throw r}try{let r=q4.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(O1.walkTokens(r,t.walkTokens)).then(()=>k4.parse(r,t)).catch(l);O1.walkTokens(r,t.walkTokens)}return k4.parse(r,t)}catch(r){l(r)}}O1.options=O1.setOptions=function(e){return L4(O1.defaults,e),iC(O1.defaults),O1};O1.getDefaults=Ye;O1.defaults=U5;O1.use=function(...e){let t=L4({},...e),i=O1.defaults.extensions||{renderers:{},childTokens:{}},l;e.forEach(r=>{if(r.extensions&&(l=!0,r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){let a=i.renderers?i.renderers[s.name]:null;a?i.renderers[s.name]=function(...o){let n=s.renderer.apply(this,o);return n===!1&&(n=a.apply(this,o)),n}:i.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");i[s.level]?i[s.level].unshift(s.tokenizer):i[s.level]=[s.tokenizer],s.start&&(s.level==="block"?i.startBlock?i.startBlock.push(s.start):i.startBlock=[s.start]:s.level==="inline"&&(i.startInline?i.startInline.push(s.start):i.startInline=[s.start]))}s.childTokens&&(i.childTokens[s.name]=s.childTokens)})),r.renderer){let s=O1.defaults.renderer||new b9;for(let a in r.renderer){let o=s[a];s[a]=(...n)=>{let C=r.renderer[a].apply(s,n);return C===!1&&(C=o.apply(s,n)),C}}t.renderer=s}if(r.tokenizer){let s=O1.defaults.tokenizer||new y9;for(let a in r.tokenizer){let o=s[a];s[a]=(...n)=>{let C=r.tokenizer[a].apply(s,n);return C===!1&&(C=o.apply(s,n)),C}}t.tokenizer=s}if(r.walkTokens){let s=O1.defaults.walkTokens;t.walkTokens=function(a){let o=[];return o.push(r.walkTokens.call(this,a)),s&&(o=o.concat(s.call(this,a))),o}}l&&(t.extensions=i),O1.setOptions(t)})};O1.walkTokens=function(e,t){let i=[];for(let l of e)switch(i=i.concat(t.call(O1,l)),l.type){case"table":{for(let r of l.header)i=i.concat(O1.walkTokens(r.tokens,t));for(let r of l.rows)for(let s of r)i=i.concat(O1.walkTokens(s.tokens,t));break}case"list":{i=i.concat(O1.walkTokens(l.items,t));break}default:O1.defaults.extensions&&O1.defaults.extensions.childTokens&&O1.defaults.extensions.childTokens[l.type]?O1.defaults.extensions.childTokens[l.type].forEach(function(r){i=i.concat(O1.walkTokens(l[r],t))}):l.tokens&&(i=i.concat(O1.walkTokens(l.tokens,t)))}return i};O1.parseInline=function(e,t){if(typeof e=="undefined"||e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=L4({},O1.defaults,t||{}),Je(t);try{let i=q4.lexInline(e,t);return t.walkTokens&&O1.walkTokens(i,t.walkTokens),k4.parseInline(i,t)}catch(i){if(i.message+=`
-Please report this to https://github.com/markedjs/marked.`,t.silent)return""+u0(i.message+"",!0)+"
";throw i}};O1.Parser=k4;O1.parser=k4.parse;O1.Renderer=b9;O1.TextRenderer=A7;O1.Lexer=q4;O1.lexer=q4.lex;O1.Tokenizer=y9;O1.Slugger=I7;O1.parse=O1;var UV=O1.options,GV=O1.setOptions,KV=O1.use,XV=O1.walkTokens,jV=O1.parseInline;var YV=k4.parse,QV=q4.lex;var et=X2("div")({name:"MarkdownContainer",class:"gdg-mnuv029",propsAsIs:!1});var F9=class extends Q3.default.PureComponent{constructor(){super(...arguments);c2(this,"targetElement",null);c2(this,"containerRefHook",i=>{this.targetElement=i,this.renderMarkdownIntoDiv()})}renderMarkdownIntoDiv(){let{targetElement:i,props:l}=this;if(i===null)return;let{contents:r,createNode:s}=l,a=O1(r),o=document.createRange();o.selectNodeContents(i),o.deleteContents();let n=s==null?void 0:s(a);if(n===void 0){let c=document.createElement("template");c.innerHTML=a,n=c.content}i.append(n);let C=i.getElementsByTagName("a");for(let c of C)c.target="_blank",c.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),Q3.default.createElement(et,{ref:this.containerRefHook})}};var A0=F1(Y1(),1);var tt=X2("textarea")({name:"InputBox",class:"gdg-izpuzkl",propsAsIs:!1}),it=X2("div")({name:"ShadowBox",class:"gdg-s69h75o",propsAsIs:!1}),lt=X2("div")({name:"GrowingEntryStyle",class:"gdg-g1y0xocz",propsAsIs:!1});var rt=0,$4=e=>{let w=e,{placeholder:t,value:i,onKeyDown:l,highlight:r,altNewline:s,validatedSelection:a}=w,o=o0(w,["placeholder","value","onKeyDown","highlight","altNewline","validatedSelection"]),{onChange:n,className:C}=o,c=A0.useRef(null),h=i!=null?i:"";d0(n!==void 0,"GrowingEntry must be a controlled input area");let[g]=A0.useState(()=>"input-box-"+(rt=(rt+1)%1e7));A0.useEffect(()=>{let L=c.current;if(L===null||L.disabled)return;let v=h.toString().length;L.focus(),L.setSelectionRange(r?0:v,v)},[]),A0.useLayoutEffect(()=>{var L;if(a!==void 0){let v=typeof a=="number"?[a,null]:a;(L=c.current)==null||L.setSelectionRange(v[0],v[1])}},[a]);let m=A0.useCallback(L=>{L.key==="Enter"&&L.shiftKey&&s===!0||l==null||l(L)},[s,l]);return A0.createElement(lt,{className:"gdg-growing-entry"},A0.createElement(it,{className:C},h+`
-`),A0.createElement(tt,P(y({},o),{className:(C!=null?C:"")+" gdg-input",id:g,ref:c,onKeyDown:m,value:h,placeholder:t,dir:"auto"})))};var ct=F1(Y1(),1);var G5=new Map,K5=new Map,J3=new Map;function st(){G5.clear(),J3.clear(),K5.clear()}function uC(e,t,i,l,r){var s,a,o;let n=0,C={};for(let h of e)n+=(s=i.get(h))!=null?s:r,C[h]=((a=C[h])!=null?a:0)+1;let c=t-n;for(let h of Object.keys(C)){let g=C[h],m=(o=i.get(h))!=null?o:r,w=m*g/n,L=c*w*l/g,v=m+L;i.set(h,v)}}function vC(e,t){var i;let l=new Map,r=0;for(let C of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let c=e.measureText(C).width;l.set(C,c),r+=c}let s=r/l.size,a=3,o=(t/s+a)/(a+1),n=l.keys();for(let C of n)l.set(C,((i=l.get(C))!=null?i:s)*o);return l}function S9(e,t,i,l){var r,s;let a=K5.get(i);if(l&&a!==void 0&&a.count>2e4){let C=J3.get(i);if(C===void 0&&(C=vC(e,a.size),J3.set(i,C)),a.count>5e5){let h=0;for(let g of t)h+=(r=C.get(g))!=null?r:a.size;return h*1.01}let c=e.measureText(t);return uC(t,c.width,C,Math.max(.05,1-a.count/2e5),a.size),K5.set(i,{count:a.count+t.length,size:a.size}),c.width}let o=e.measureText(t),n=o.width/t.length;if(((s=a==null?void 0:a.count)!=null?s:0)>2e4)return o.width;if(a===void 0)K5.set(i,{count:t.length,size:n});else{let C=n-a.size,c=t.length/(a.count+t.length),h=a.size+C*c;K5.set(i,{count:a.count+t.length,size:h})}return o.width}function pC(e,t,i,l,r,s,a,o){if(t.length<=1)return t.length;if(ri;){let h=c!==void 0?0:t.lastIndexOf(" ",n-1);h>0?n=h:n--,C=S9(e,t.slice(0,Math.max(0,n)),l,a)}if(t[n]!==" "){let h=0;if(c===void 0)h=t.lastIndexOf(" ",n);else for(let g of c){if(g>n)break;h=g}h>0&&(n=h)}return n}function at(e,t,i,l,r,s){let a=`${t}_${i}_${l}px`,o=G5.get(a);if(o!==void 0)return o;if(l<=0)return[];let n=[],C=t.split(`
-`),c=K5.get(i),h=c===void 0?t.length:l/c.size*1.5,g=r&&c!==void 0&&c.count>2e4;for(let m of C){let w=S9(e,m.slice(0,Math.max(0,h)),i,g),L=Math.min(m.length,h);if(w<=l)n.push(m);else{for(;w>l;){let v=pC(e,m,l,i,w,L,g,s),V=m.slice(0,Math.max(0,v));m=m.slice(V.length),n.push(V),w=S9(e,m.slice(0,Math.max(0,h)),i,g),L=Math.min(m.length,h)}w>0&&n.push(m)}}return n=n.map((m,w)=>w===0?m.trimEnd():m.trim()),G5.set(a,n),G5.size>500&&G5.delete(G5.keys().next().value),n}function mt(e,t){return ct.default.useMemo(()=>e.map((i,l)=>({group:i.group,grow:i.grow,hasMenu:i.hasMenu,icon:i.icon,id:i.id,menuIcon:i.menuIcon,overlayIcon:i.overlayIcon,sourceIndex:l,sticky:l1?1:g),L=1,v=!1;m<0?w<0?w=Math.PI+w:(w=Math.PI-w,L=-1,v=!0):w>0&&(L=-1,v=!0),r=n.radius!==void 0?n.radius:i;let V=w/2,u=Math.abs(Math.cos(V)*r/Math.sin(V)),d;u>Math.min(c.len/2,h.len/2)?(u=Math.min(c.len/2,h.len/2),d=Math.abs(u*Math.sin(V)/Math.cos(V))):d=r;let p=n.x+h.nx*u,Z=n.y+h.ny*u;p+=-h.ny*d*L,Z+=h.nx*d*L,e.arc(p,Z,d,c.ang+Math.PI/2*L,h.ang-Math.PI/2*L,v),a=n,n=C}e.closePath()}function P9(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w){let L={x:0,y:s+C,width:0,height:0};if(e>=m.length||t>=c||t<-2||e<0)return L;let v=s-r;if(e>=h){let V=a>e?-1:1,u=Z4(m);L.x+=u+n;for(let d=a;d!==e;d+=V)L.x+=m[V===1?d:d-1].width*V}else for(let V=0;V${t}
`}br(){return this.options.xhtml?"
":"
"}del(t){return`${t}`}link(t,i,l){if(t=at(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r='"+l+"",r}image(t,i,l){if(t=at(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r=`":">",r}text(t){return t}},$7=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,i,l){return""+l}image(t,i,l){return""+l}br(){return""}},U7=class{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,i){let l=t,r=0;if(this.seen.hasOwnProperty(l)){r=this.seen[t];do r++,l=t+"-"+r;while(this.seen.hasOwnProperty(l))}return i||(this.seen[t]=r,this.seen[l]=0),l}slug(t,i={}){let l=this.serialize(t);return this.getNextSafeSlug(l,i.dryrun)}},A4=class e{constructor(t){this.options=t||Y5,this.options.renderer=this.options.renderer||new P9,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $7,this.slugger=new U7}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(t,i=!0){let l="",r,s,a,o,n,C,c,h,g,m,w,L,v,V,u,d,p,Z,R,x=t.length;for(r=0;r"+u0(r.message+"",!0)+"
";throw r}try{let r=K4.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(O1.walkTokens(r,t.walkTokens)).then(()=>A4.parse(r,t)).catch(l);O1.walkTokens(r,t.walkTokens)}return A4.parse(r,t)}catch(r){l(r)}}O1.options=O1.setOptions=function(e){return d4(O1.defaults,e),dC(O1.defaults),O1};O1.getDefaults=mt;O1.defaults=Y5;O1.use=function(...e){let t=d4({},...e),i=O1.defaults.extensions||{renderers:{},childTokens:{}},l;e.forEach(r=>{if(r.extensions&&(l=!0,r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){let a=i.renderers?i.renderers[s.name]:null;a?i.renderers[s.name]=function(...o){let n=s.renderer.apply(this,o);return n===!1&&(n=a.apply(this,o)),n}:i.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");i[s.level]?i[s.level].unshift(s.tokenizer):i[s.level]=[s.tokenizer],s.start&&(s.level==="block"?i.startBlock?i.startBlock.push(s.start):i.startBlock=[s.start]:s.level==="inline"&&(i.startInline?i.startInline.push(s.start):i.startInline=[s.start]))}s.childTokens&&(i.childTokens[s.name]=s.childTokens)})),r.renderer){let s=O1.defaults.renderer||new P9;for(let a in r.renderer){let o=s[a];s[a]=(...n)=>{let C=r.renderer[a].apply(s,n);return C===!1&&(C=o.apply(s,n)),C}}t.renderer=s}if(r.tokenizer){let s=O1.defaults.tokenizer||new T9;for(let a in r.tokenizer){let o=s[a];s[a]=(...n)=>{let C=r.tokenizer[a].apply(s,n);return C===!1&&(C=o.apply(s,n)),C}}t.tokenizer=s}if(r.walkTokens){let s=O1.defaults.walkTokens;t.walkTokens=function(a){let o=[];return o.push(r.walkTokens.call(this,a)),s&&(o=o.concat(s.call(this,a))),o}}l&&(t.extensions=i),O1.setOptions(t)})};O1.walkTokens=function(e,t){let i=[];for(let l of e)switch(i=i.concat(t.call(O1,l)),l.type){case"table":{for(let r of l.header)i=i.concat(O1.walkTokens(r.tokens,t));for(let r of l.rows)for(let s of r)i=i.concat(O1.walkTokens(s.tokens,t));break}case"list":{i=i.concat(O1.walkTokens(l.items,t));break}default:O1.defaults.extensions&&O1.defaults.extensions.childTokens&&O1.defaults.extensions.childTokens[l.type]?O1.defaults.extensions.childTokens[l.type].forEach(function(r){i=i.concat(O1.walkTokens(l[r],t))}):l.tokens&&(i=i.concat(O1.walkTokens(l.tokens,t)))}return i};O1.parseInline=function(e,t){if(typeof e=="undefined"||e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=d4({},O1.defaults,t||{}),wt(t);try{let i=K4.lexInline(e,t);return t.walkTokens&&O1.walkTokens(i,t.walkTokens),A4.parseInline(i,t)}catch(i){if(i.message+=`
+Please report this to https://github.com/markedjs/marked.`,t.silent)return""+u0(i.message+"",!0)+"
";throw i}};O1.Parser=A4;O1.parser=A4.parse;O1.Renderer=P9;O1.TextRenderer=$7;O1.Lexer=K4;O1.lexer=K4.lex;O1.Tokenizer=T9;O1.Slugger=U7;O1.parse=O1;var id=O1.options,ld=O1.setOptions,rd=O1.use,sd=O1.walkTokens,ad=O1.parseInline;var od=A4.parse,nd=K4.lex;var gt=X2("div")({name:"MarkdownContainer",class:"gdg-mnuv029",propsAsIs:!1});var D9=class extends a8.default.PureComponent{constructor(){super(...arguments);C2(this,"targetElement",null);C2(this,"containerRefHook",i=>{this.targetElement=i,this.renderMarkdownIntoDiv()})}renderMarkdownIntoDiv(){let{targetElement:i,props:l}=this;if(i===null)return;let{contents:r,createNode:s}=l,a=O1(r),o=document.createRange();o.selectNodeContents(i),o.deleteContents();let n=s==null?void 0:s(a);if(n===void 0){let c=document.createElement("template");c.innerHTML=a,n=c.content}i.append(n);let C=i.getElementsByTagName("a");for(let c of C)c.target="_blank",c.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),a8.default.createElement(gt,{ref:this.containerRefHook})}};var A0=x1(k1(),1);var Ht=X2("textarea")({name:"InputBox",class:"gdg-izpuzkl",propsAsIs:!1}),Lt=X2("div")({name:"ShadowBox",class:"gdg-s69h75o",propsAsIs:!1}),Vt=X2("div")({name:"GrowingEntryStyle",class:"gdg-g1y0xocz",propsAsIs:!1});var dt=0,X4=e=>{let w=e,{placeholder:t,value:i,onKeyDown:l,highlight:r,altNewline:s,validatedSelection:a}=w,o=s0(w,["placeholder","value","onKeyDown","highlight","altNewline","validatedSelection"]),{onChange:n,className:C}=o,c=A0.useRef(null),h=i!=null?i:"";d0(n!==void 0,"GrowingEntry must be a controlled input area");let[g]=A0.useState(()=>"input-box-"+(dt=(dt+1)%1e7));A0.useEffect(()=>{let L=c.current;if(L===null||L.disabled)return;let v=h.toString().length;L.focus(),L.setSelectionRange(r?0:v,v)},[]),A0.useLayoutEffect(()=>{var L;if(a!==void 0){let v=typeof a=="number"?[a,null]:a;(L=c.current)==null||L.setSelectionRange(v[0],v[1])}},[a]);let m=A0.useCallback(L=>{L.key==="Enter"&&L.shiftKey&&s===!0||l==null||l(L)},[s,l]);return A0.createElement(Vt,{className:"gdg-growing-entry"},A0.createElement(Lt,{className:C},h+`
+`),A0.createElement(Ht,T(y({},o),{className:(C!=null?C:"")+" gdg-input",id:g,ref:c,onKeyDown:m,value:h,placeholder:t,dir:"auto"})))};var ft=x1(k1(),1);var Q5=new Map,J5=new Map,o8=new Map;function ut(){Q5.clear(),o8.clear(),J5.clear()}function kC(e,t,i,l,r){var s,a,o;let n=0,C={};for(let h of e)n+=(s=i.get(h))!=null?s:r,C[h]=((a=C[h])!=null?a:0)+1;let c=t-n;for(let h of Object.keys(C)){let g=C[h],m=(o=i.get(h))!=null?o:r,w=m*g/n,L=c*w*l/g,v=m+L;i.set(h,v)}}function TC(e,t){var i;let l=new Map,r=0;for(let C of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let c=e.measureText(C).width;l.set(C,c),r+=c}let s=r/l.size,a=3,o=(t/s+a)/(a+1),n=l.keys();for(let C of n)l.set(C,((i=l.get(C))!=null?i:s)*o);return l}function A9(e,t,i,l){var r,s;let a=J5.get(i);if(l&&a!==void 0&&a.count>2e4){let C=o8.get(i);if(C===void 0&&(C=TC(e,a.size),o8.set(i,C)),a.count>5e5){let h=0;for(let g of t)h+=(r=C.get(g))!=null?r:a.size;return h*1.01}let c=e.measureText(t);return kC(t,c.width,C,Math.max(.05,1-a.count/2e5),a.size),J5.set(i,{count:a.count+t.length,size:a.size}),c.width}let o=e.measureText(t),n=o.width/t.length;if(((s=a==null?void 0:a.count)!=null?s:0)>2e4)return o.width;if(a===void 0)J5.set(i,{count:t.length,size:n});else{let C=n-a.size,c=t.length/(a.count+t.length),h=a.size+C*c;J5.set(i,{count:a.count+t.length,size:h})}return o.width}function PC(e,t,i,l,r,s,a,o){if(t.length<=1)return t.length;if(ri;){let h=c!==void 0?0:t.lastIndexOf(" ",n-1);h>0?n=h:n--,C=A9(e,t.slice(0,Math.max(0,n)),l,a)}if(t[n]!==" "){let h=0;if(c===void 0)h=t.lastIndexOf(" ",n);else for(let g of c){if(g>n)break;h=g}h>0&&(n=h)}return n}function vt(e,t,i,l,r,s){let a=`${t}_${i}_${l}px`,o=Q5.get(a);if(o!==void 0)return o;if(l<=0)return[];let n=[],C=t.split(`
+`),c=J5.get(i),h=c===void 0?t.length:l/c.size*1.5,g=r&&c!==void 0&&c.count>2e4;for(let m of C){let w=A9(e,m.slice(0,Math.max(0,h)),i,g),L=Math.min(m.length,h);if(w<=l)n.push(m);else{for(;w>l;){let v=PC(e,m,l,i,w,L,g,s),V=m.slice(0,Math.max(0,v));m=m.slice(V.length),n.push(V),w=A9(e,m.slice(0,Math.max(0,h)),i,g),L=Math.min(m.length,h)}w>0&&n.push(m)}}return n=n.map((m,w)=>w===0?m.trimEnd():m.trim()),Q5.set(a,n),Q5.size>500&&Q5.delete(Q5.keys().next().value),n}function Zt(e,t){return ft.default.useMemo(()=>e.map((i,l)=>({group:i.group,grow:i.grow,hasMenu:i.hasMenu,icon:i.icon,id:i.id,menuIcon:i.menuIcon,overlayIcon:i.overlayIcon,sourceIndex:l,sticky:l1?1:g),L=1,v=!1;m<0?w<0?w=Math.PI+w:(w=Math.PI-w,L=-1,v=!0):w>0&&(L=-1,v=!0),r=n.radius!==void 0?n.radius:i;let V=w/2,u=Math.abs(Math.cos(V)*r/Math.sin(V)),d;u>Math.min(c.len/2,h.len/2)?(u=Math.min(c.len/2,h.len/2),d=Math.abs(u*Math.sin(V)/Math.cos(V))):d=r;let p=n.x+h.nx*u,Z=n.y+h.ny*u;p+=-h.ny*d*L,Z+=h.nx*d*L,e.arc(p,Z,d,c.ang+Math.PI/2*L,h.ang-Math.PI/2*L,v),a=n,n=C}e.closePath()}function _9(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w){let L={x:0,y:s+C,width:0,height:0};if(e>=m.length||t>=c||t<-2||e<0)return L;let v=s-r;if(e>=h){let V=a>e?-1:1,u=N4(m);L.x+=u+n;for(let d=a;d!==e;d+=V)L.x+=m[V===1?d:d-1].width*V}else for(let V=0;V!w.sticky))==null?void 0:g.sourceIndex)!=null?m:0;if(n>h){let w=Math.max(o,h),L=t,v=l;for(let V=s.sourceIndex-1;V>=w;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=n;V++)v+=a[V].width;c={x:L,y:i,width:v,height:r}}if(h>o){let w=Math.min(n,h-1),L=t,v=l;for(let V=s.sourceIndex-1;V>=o;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=w;V++)v+=a[V].width;C={x:L,y:i,width:v,height:r}}return[C,c]}function Zi(e,t,i,l){if(l==="any")return w8(e,{x:t,y:i,width:1,height:1});if(l==="vertical"&&(t=e.x),l==="horizontal"&&(i=e.y),_7([t,i],e))return;let r=t-e.x,s=e.x+e.width-t,a=i-e.y+1,o=e.y+e.height-i,n=Math.min(l==="vertical"?Number.MAX_SAFE_INTEGER:r,l==="vertical"?Number.MAX_SAFE_INTEGER:s,l==="horizontal"?Number.MAX_SAFE_INTEGER:a,l==="horizontal"?Number.MAX_SAFE_INTEGER:o);return n===o?{x:e.x,y:e.y+e.height,width:e.width,height:i-e.y-e.height+1}:n===a?{x:e.x,y:i,width:e.width,height:e.y-i}:n===s?{x:e.x+e.width,y:e.y,width:t-e.x-e.width+1,height:e.height}:{x:t,y:e.y,width:e.x-t,height:e.height}}function H5(e,t,i,l,r,s,a,o){return e<=r+a&&r<=e+i&&t<=s+o&&s<=t+l}function G4(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function w8(e,t){let i=Math.min(e.x,t.x),l=Math.min(e.y,t.y),r=Math.max(e.x+e.width,t.x+t.width)-i,s=Math.max(e.y+e.height,t.y+t.height)-l;return{x:i,y:l,width:r,height:s}}function Ei(e,t){return e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height}function Ni(e,t,i,l){if(e.x>t||e.y>i||e.x<0&&e.y<0&&e.x+e.width>t&&e.y+e.height>i)return;if(e.x>=0&&e.y>=0&&e.x+e.width<=t&&e.y+e.height<=i)return e;let r=-4,s=-4,a=t+4,o=i+4,n=r-e.x,C=e.x+e.width-a,c=s-e.y,h=e.y+e.height-o,g=n>0?e.x+Math.floor(n/l)*l:e.x,m=C>0?e.x+e.width-Math.floor(C/l)*l:e.x+e.width,w=c>0?e.y+Math.floor(c/l)*l:e.y,L=h>0?e.y+e.height-Math.floor(h/l)*l:e.y+e.height;return{x:g,y:w,width:m-g,height:L-w}}function Ri(e,t,i,l,r){let[s,a,o,n]=t,[C,c,h,g]=r,{x:m,y:w,width:L,height:v}=e,V=[];if(L<=0||v<=0)return V;let u=m+L,d=w+v,p=mo,x=w+v>n,N=m>=s&&mo,E=w>=a&&w{}),v4=e1.useRef(t0);v4.current=t0;let[P0,q0]=e1.useMemo(()=>{let z=document.createElement("canvas"),j=document.createElement("canvas");return z.style.display="none",z.style.opacity="0",z.style.position="fixed",j.style.display="none",j.style.opacity="0",j.style.position="fixed",[z.getContext("2d",{alpha:!1}),j.getContext("2d",{alpha:!1})]},[]);e1.useLayoutEffect(()=>{if(!(P0===null||q0===null))return document.documentElement.append(P0.canvas),document.documentElement.append(q0.canvas),()=>{P0.canvas.remove(),q0.canvas.remove()}},[P0,q0]);let z4=e1.useMemo(()=>new q7,[]),K9=T0&&Z1?1:m0&&Z1?2:5,X9=(L1==null?void 0:L1.disableMinimumCellWidth)===!0?1:10,p4=e1.useRef(),f5=e1.useRef(null),Z5=e1.useRef(null),E5=e1.useCallback(()=>{var _1,K1,h1;let z=V1.current,j=k0.current;if(z===null||j===null||(f5.current===null&&(f5.current=z.getContext("2d",{alpha:!1}),z.width=0,z.height=0),Z5.current===null&&(Z5.current=j.getContext("2d",{alpha:!1}),j.width=0,j.height=0),f5.current===null||Z5.current===null||P0===null||q0===null))return;let x1=!1,v1=q2=>{x1=!0,m2(q2)},C1=p4.current,Y={headerCanvasCtx:Z5.current,canvasCtx:f5.current,bufferACtx:P0,bufferBCtx:q0,width:i,height:l,cellXOffset:n1,cellYOffset:o,translateX:Math.round(b1),translateY:Math.round(z2),mappedColumns:B1,enableGroups:v,freezeColumns:R,dragAndDropState:Q,theme:y1,headerHeight:n,groupHeaderHeight:c,disabledRows:E2!=null?E2:x2.empty(),rowHeight:h,verticalBorder:i2,isResizing:I1,resizeCol:p1,isFocused:p,selection:Z,fillHandle:C,drawCellCallback:a1,hasAppendRow:Z2,overrideCursor:v1,maxScaleFactor:K9,freezeTrailingRows:N,rows:g,drawFocus:k,getCellContent:m,getGroupDetails:u2!=null?u2:q2=>({name:q2}),getRowThemeOverride:w,drawHeaderCallback:T1,prelightCells:t2,highlightRegions:G,imageLoader:l1,lastBlitData:e0,damage:M1.current,hoverValues:Q2.current,hoverInfo:v4.current,spriteManager:F2,scrolling:Z1,hyperWrapping:(_1=L1==null?void 0:L1.hyperWrapping)!=null?_1:!1,touchMode:L2,enqueue:Q0.current,renderStateProvider:z4,renderStrategy:(K1=L1==null?void 0:L1.renderStrategy)!=null?K1:i9.value?"double-buffer":"single-buffer",getCellRenderer:f1,minimumCellWidth:X9};Y.damage===void 0?(p4.current=Y,I8(Y,C1)):I8(Y,void 0),!x1&&(Y.damage===void 0||Y.damage.has((h1=v4==null?void 0:v4.current)==null?void 0:h1[0]))&&m2(void 0)},[P0,q0,i,l,n1,o,b1,z2,B1,v,R,Q,y1,n,c,E2,h,i2,I1,Z2,p1,p,Z,C,N,g,k,K9,m,u2,w,a1,T1,t2,G,l1,F2,Z1,L1==null?void 0:L1.hyperWrapping,L1==null?void 0:L1.renderStrategy,L2,z4,f1,X9]),j4=e1.useRef(E5);e1.useLayoutEffect(()=>{E5(),j4.current=E5},[E5]),e1.useLayoutEffect(()=>{(async()=>{var j;((j=document==null?void 0:document.fonts)==null?void 0:j.ready)!==void 0&&(await document.fonts.ready,p4.current=void 0,j4.current())})()},[]);let T4=e1.useCallback(z=>{M1.current=z,j4.current(),M1.current=void 0},[]),j9=Vs(T4);Q0.current=j9;let Y9=e1.useCallback(z=>{T4(new R4(z.map(j=>j.cell)))},[T4]);l1.setCallback(T4);let[w3,g3]=e1.useState(!1),[N5,y4]=j1!=null?j1:[],H3=N5!==void 0&&y4===-1,L3=N5!==void 0&&y4===-2,Q9=!1,R5=!1,s0=C2;if(s0===void 0&&N5!==void 0&&y4!==void 0&&y4>-1&&y4
");for(let r of e){t.push("
"),t.join("")}function ks(e,t){let i=XH(e,t),l=jH(i),r=QH(i);return{textPlain:l,textHtml:r}}function G8(e){var a,o,n,C,c,h;let t=document.createElement("html");t.innerHTML=e.replace(/ /g," ");let i=t.querySelector("table");if(i===null)return;let l=[i],r=[],s;for(;l.length>0;){let g=l.pop();if(g===void 0)break;if(g instanceof HTMLTableElement||g.nodeName==="TBODY")l.push(...[...g.children].reverse());else if(g instanceof HTMLTableRowElement)s!==void 0&&r.push(s),s=[],l.push(...[...g.children].reverse());else if(g instanceof HTMLTableCellElement){let m=g.cloneNode(!0),L=m.children.length===1&&m.children[0].nodeName==="P"?m.children[0]:null,v=(L==null?void 0:L.children.length)===1&&L.children[0].nodeName==="FONT",V=m.querySelectorAll("br");for(let p of V)p.replaceWith(`
-`);let u=m.getAttribute("gdg-raw-value"),d=(a=m.getAttribute("gdg-format"))!=null?a:"string";if(m.querySelector("a")!==null)s==null||s.push({rawValue:(n=(o=m.querySelector("a"))==null?void 0:o.getAttribute("href"))!=null?n:"",formatted:(C=m.textContent)!=null?C:"",format:d});else if(m.querySelector("ol")!==null){let p=m.querySelectorAll("li");s==null||s.push({rawValue:[...p].map(Z=>{var R;return(R=Z.getAttribute("gdg-raw-value"))!=null?R:""}),formatted:[...p].map(Z=>{var R;return(R=Z.textContent)!=null?R:""}),format:"string-array"})}else if(u!==null)s==null||s.push({rawValue:YH(u),formatted:(c=m.textContent)!=null?c:"",format:d});else{let p=(h=m.textContent)!=null?h:"";v&&(p=p.replace(/\n(?!\n)/g,"")),s==null||s.push({rawValue:p!=null?p:"",formatted:p!=null?p:"",format:d})}}}return s!==void 0&&r.push(s),r}function Ps(e,t,i,l,r){var o,n;let s=e;if(l==="allowPartial"||e.current===void 0||t===void 0)return e;let a=!1;do{if((e==null?void 0:e.current)===void 0)break;let C=(o=e.current)==null?void 0:o.range,c=[];if(C.width>2){let m=t({x:C.x,y:C.y,width:1,height:C.height},r.signal);if(typeof m=="function")return s;c.push(...m);let w=t({x:C.x+C.width-1,y:C.y,width:1,height:C.height},r.signal);if(typeof w=="function")return s;c.push(...w)}else{let m=t({x:C.x,y:C.y,width:C.width,height:C.height},r.signal);if(typeof m=="function")return s;c.push(...m)}let h=C.x-i,g=C.x+C.width-1-i;for(let m of c)for(let w of m)w.span!==void 0&&(h=Math.min(w.span[0],h),g=Math.max(w.span[1],g));h===C.x-i&&g===C.x+C.width-1-i?a=!0:e={current:{cell:(n=e.current.cell)!=null?n:[0,0],range:{x:h+i,y:C.y,width:g-h+1,height:C.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!a);return e}function Ts(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function Ds(e){let t;(function(o){o[o.None=0]="None",o[o.inString=1]="inString",o[o.inStringPostQuote=2]="inStringPostQuote"})(t||(t={}));let i=[],l=[],r=0,s=t.None;e=e.replace(/\r\n/g,`
+`},Di={headerRowID:im,headerNumber:rm,headerCode:lm,headerString:sm,headerBoolean:am,headerAudioUri:nm,headerVideoUri:Cm,headerEmoji:cm,headerImage:mm,headerUri:Pi,headerPhone:hm,headerMarkdown:wm,headerDate:gm,headerTime:Hm,headerEmail:Lm,headerReference:Vm,headerIfThenElse:dm,headerSingleValue:um,headerLookup:vm,headerTextTemplate:pm,headerMath:Mm,headerRollup:xm,headerJoinStrings:fm,headerSplitString:Zm,headerGeoDistance:Em,headerArray:Nm,rowOwnerOverlay:Rm,protectedColumnOverlay:Bm,renameIcon:om};function zm(e,t){return e==="normal"?[t.bgIconHeader,t.fgIconHeader]:e==="selected"?["white",t.accentColor]:[t.accentColor,t.bgHeader]}var t3=class{constructor(t,i){C2(this,"onSettled");C2(this,"spriteMap",new Map);C2(this,"headerIcons");C2(this,"inFlight",0);this.onSettled=i,this.headerIcons=t!=null?t:{}}drawSprite(t,i,l,r,s,a,o,n=1){let[C,c]=zm(i,o),h=a*Math.ceil(window.devicePixelRatio),g=`${C}_${c}_${h}_${t}`,m=this.spriteMap.get(g);if(m===void 0){let w=this.headerIcons[t];if(w===void 0)return;m=document.createElement("canvas");let L=m.getContext("2d");if(L===null)return;let v=new Image;v.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(w({fgColor:c,bgColor:C}))}`,this.spriteMap.set(g,m);let V=v.decode();if(V===void 0)return;this.inFlight++,V.then(()=>{L.drawImage(v,0,0,h,h)}).finally(()=>{this.inFlight--,this.inFlight===0&&this.onSettled()})}else n<1&&(l.globalAlpha=n),l.drawImage(m,0,0,h,h,r,s,a,a),n<1&&(l.globalAlpha=1)}};var Q8=x1(q9(),1),Fs=x1(v8(),1);function i3(e){if(e.length===0)return;let t;for(let i of e)t=Math.min(t!=null?t:i.y,i.y)}function j4(e,t,i,l,r,s,a,o,n){o=o!=null?o:t;let C=t,c=e,h=l-s,g=!1;for(;Co&&n(C,c,m,!1,a&&c===l-1)===!0){g=!0;break}C+=m,c++}if(!g){C=i;for(let m=0;m");for(let s of r){let a=`gdg-format="${s.format}"`;s.format==="url"?t.push(` ")}return t.push("${U8(s.formatted)} `):s.format==="string-array"?t.push(` `):t.push(`${s.formatted.map((o,n)=>`
${U8(s.formatted)} `)}t.push("!w.sticky))==null?void 0:g.sourceIndex)!=null?m:0;if(n>h){let w=Math.max(o,h),L=t,v=l;for(let V=s.sourceIndex-1;V>=w;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=n;V++)v+=a[V].width;c={x:L,y:i,width:v,height:r}}if(h>o){let w=Math.min(n,h-1),L=t,v=l;for(let V=s.sourceIndex-1;V>=o;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=w;V++)v+=a[V].width;C={x:L,y:i,width:v,height:r}}return[C,c]}function Ai(e,t,i,l){if(l==="any")return p8(e,{x:t,y:i,width:1,height:1});if(l==="vertical"&&(t=e.x),l==="horizontal"&&(i=e.y),K7([t,i],e))return;let r=t-e.x,s=e.x+e.width-t,a=i-e.y+1,o=e.y+e.height-i,n=Math.min(l==="vertical"?Number.MAX_SAFE_INTEGER:r,l==="vertical"?Number.MAX_SAFE_INTEGER:s,l==="horizontal"?Number.MAX_SAFE_INTEGER:a,l==="horizontal"?Number.MAX_SAFE_INTEGER:o);return n===o?{x:e.x,y:e.y+e.height,width:e.width,height:i-e.y-e.height+1}:n===a?{x:e.x,y:i,width:e.width,height:e.y-i}:n===s?{x:e.x+e.width,y:e.y,width:t-e.x-e.width+1,height:e.height}:{x:t,y:e.y,width:e.x-t,height:e.height}}function u5(e,t,i,l,r,s,a,o){return e<=r+a&&r<=e+i&&t<=s+o&&s<=t+l}function Y4(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function p8(e,t){let i=Math.min(e.x,t.x),l=Math.min(e.y,t.y),r=Math.max(e.x+e.width,t.x+t.width)-i,s=Math.max(e.y+e.height,t.y+t.height)-l;return{x:i,y:l,width:r,height:s}}function Ii(e,t){return e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height}function Oi(e,t,i,l){if(e.x>t||e.y>i||e.x<0&&e.y<0&&e.x+e.width>t&&e.y+e.height>i)return;if(e.x>=0&&e.y>=0&&e.x+e.width<=t&&e.y+e.height<=i)return e;let r=-4,s=-4,a=t+4,o=i+4,n=r-e.x,C=e.x+e.width-a,c=s-e.y,h=e.y+e.height-o,g=n>0?e.x+Math.floor(n/l)*l:e.x,m=C>0?e.x+e.width-Math.floor(C/l)*l:e.x+e.width,w=c>0?e.y+Math.floor(c/l)*l:e.y,L=h>0?e.y+e.height-Math.floor(h/l)*l:e.y+e.height;return{x:g,y:w,width:m-g,height:L-w}}function _i(e,t,i,l,r){let[s,a,o,n]=t,[C,c,h,g]=r,{x:m,y:w,width:L,height:v}=e,V=[];if(L<=0||v<=0)return V;let u=m+L,d=w+v,p=mo,x=w+v>n,N=m>=s&&mo,E=w>=a&&w");for(let r of e){t.push("
"),t.join("")}function Xs(e,t){let i=mL(e,t),l=hL(i),r=gL(i);return{textPlain:l,textHtml:r}}function t6(e){var a,o,n,C,c,h;let t=document.createElement("html");t.innerHTML=e.replace(/ /g," ");let i=t.querySelector("table");if(i===null)return;let l=[i],r=[],s;for(;l.length>0;){let g=l.pop();if(g===void 0)break;if(g instanceof HTMLTableElement||g.nodeName==="TBODY")l.push(...[...g.children].reverse());else if(g instanceof HTMLTableRowElement)s!==void 0&&r.push(s),s=[],l.push(...[...g.children].reverse());else if(g instanceof HTMLTableCellElement){let m=g.cloneNode(!0),L=m.children.length===1&&m.children[0].nodeName==="P"?m.children[0]:null,v=(L==null?void 0:L.children.length)===1&&L.children[0].nodeName==="FONT",V=m.querySelectorAll("br");for(let p of V)p.replaceWith(`
+`);let u=m.getAttribute("gdg-raw-value"),d=(a=m.getAttribute("gdg-format"))!=null?a:"string";if(m.querySelector("a")!==null)s==null||s.push({rawValue:(n=(o=m.querySelector("a"))==null?void 0:o.getAttribute("href"))!=null?n:"",formatted:(C=m.textContent)!=null?C:"",format:d});else if(m.querySelector("ol")!==null){let p=m.querySelectorAll("li");s==null||s.push({rawValue:[...p].map(Z=>{var R;return(R=Z.getAttribute("gdg-raw-value"))!=null?R:""}),formatted:[...p].map(Z=>{var R;return(R=Z.textContent)!=null?R:""}),format:"string-array"})}else if(u!==null)s==null||s.push({rawValue:wL(u),formatted:(c=m.textContent)!=null?c:"",format:d});else{let p=(h=m.textContent)!=null?h:"";v&&(p=p.replace(/\n(?!\n)/g,"")),s==null||s.push({rawValue:p!=null?p:"",formatted:p!=null?p:"",format:d})}}}return s!==void 0&&r.push(s),r}function Ys(e,t,i,l,r){var o,n;let s=e;if(l==="allowPartial"||e.current===void 0||t===void 0)return e;let a=!1;do{if((e==null?void 0:e.current)===void 0)break;let C=(o=e.current)==null?void 0:o.range,c=[];if(C.width>2){let m=t({x:C.x,y:C.y,width:1,height:C.height},r.signal);if(typeof m=="function")return s;c.push(...m);let w=t({x:C.x+C.width-1,y:C.y,width:1,height:C.height},r.signal);if(typeof w=="function")return s;c.push(...w)}else{let m=t({x:C.x,y:C.y,width:C.width,height:C.height},r.signal);if(typeof m=="function")return s;c.push(...m)}let h=C.x-i,g=C.x+C.width-1-i;for(let m of c)for(let w of m)w.span!==void 0&&(h=Math.min(w.span[0],h),g=Math.max(w.span[1],g));h===C.x-i&&g===C.x+C.width-1-i?a=!0:e={current:{cell:(n=e.current.cell)!=null?n:[0,0],range:{x:h+i,y:C.y,width:g-h+1,height:C.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!a);return e}function js(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function Qs(e){let t;(function(o){o[o.None=0]="None",o[o.inString=1]="inString",o[o.inStringPostQuote=2]="inStringPostQuote"})(t||(t={}));let i=[],l=[],r=0,s=t.None;e=e.replace(/\r\n/g,`
`);let a=0;for(let o of e){switch(s){case t.None:o===" "||o===`
`?(l.push(e.slice(r,a)),r=a+1,o===`
`&&(i.push(l),l=[])):o==='"'&&(s=t.inString);break;case t.inString:o==='"'&&(s=t.inStringPostQuote);break;case t.inStringPostQuote:o==='"'?s=t.inString:((o===" "||o===`
-`)&&(l.push(Ts(e.slice(r,a))),r=a+1,o===`
-`&&(i.push(l),l=[])),s=t.None);break}a++}return r");for(let s of r){let a=`gdg-format="${s.format}"`;s.format==="url"?t.push(` ")}return t.push("${e6(s.formatted)} `):s.format==="string-array"?t.push(` `):t.push(`${s.formatted.map((o,n)=>`
${e6(s.formatted)} `)}t.push("