dolphin-components 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dolphin-components.cjs.js +87 -87
- package/dist/dolphin-components.css +1 -1
- package/dist/dolphin-components.es.js +1811 -1799
- package/dist/dolphin-components.umd.js +25 -25
- package/dist/index.d.ts +5 -3
- package/package.json +2 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";var DE=Object.defineProperty;var zE=(o,e,t)=>e in o?DE(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var E=(o,e,t)=>zE(o,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),RE={class:"content-div"},HE={class:"content-title"},AE={key:0},VE={key:2,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PE={class:"content-action"},qE=["onClick"],BE=c.defineComponent({__name:"ContentLayout",props:{title:{default:()=>[]},actions:{},bodyClass:{default:""},titleClass:{default:""}},setup(o,{emit:e}){const t=e,i=o,a=c.ref(i.actions?i.actions:[]);return c.watch(()=>i.actions,n=>{n&&(a.value=n)},{deep:!0}),(n,r)=>{const l=c.resolveComponent("RouterLink");return c.openBlock(),c.createElementBlock("div",RE,[c.createElementVNode("div",{class:c.normalizeClass(["content-title-div",n.titleClass])},[c.createElementVNode("div",HE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.title,(h,d)=>(c.openBlock(),c.createElementBlock("div",{key:d},[h.link?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",AE,c.toDisplayString(h.name),1)),h.link?(c.openBlock(),c.createBlock(l,{key:1,to:h.link,class:"hover:underline cursor-pointer"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(h.name),1)]),_:2},1032,["to"])):c.createCommentVNode("",!0),n.title.length!==0&&d+1!==n.title.length?(c.openBlock(),c.createElementBlock("svg",VE,r[0]||(r[0]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("div",PE,[c.renderSlot(n.$slots,"action-before"),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,(h,d)=>(c.openBlock(),c.createElementBlock("div",{key:d},[c.createElementVNode("button",{class:c.normalizeClass(h.class||"btn"),onClick:u=>t(h.emit)},c.toDisplayString(h.title),11,qE)]))),128)),c.renderSlot(n.$slots,"action-after")])],2),c.createElementVNode("div",{class:c.normalizeClass(["content-body",n.bodyClass])},[c.renderSlot(n.$slots,"body")],2)])}}}),FE={class:"border-b py-3 px-4"},OE={class:"font-bold text-lg my-auto relative flex text-[19px]"},jE={key:0},NE={key:3,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_E={class:"border-t py-2.5 px-4"},WE={class:"my-auto relative"},UE={class:"flex justify-end gap-1.5"},GE=["onClick"],$E={key:0,class:"h-screen bg-black/30 z-10 fixed top-0 right-0 left-0"},gx=c.defineComponent({__name:"Modal",props:{title:{default:()=>[]},actions:{default:()=>[]},show:{type:Boolean,default:!1},width:{default:"600px"}},setup(o,{emit:e}){const t=e,i=o,a=c.ref(window.innerHeight),n=c.ref(null),r=c.ref(!1),l=p=>{p.emit==="onClose"?t("onClose"):t(p.emit)},h=()=>{if(n.value){const p=a.value-200;r.value=n.value.scrollHeight>p}},d=()=>{a.value=window.innerHeight,h()};c.onMounted(()=>{h(),window.addEventListener("resize",d)}),c.onUpdated(()=>{h()}),c.onBeforeUnmount(()=>{window.removeEventListener("resize",d)}),c.watch(a,h);const u=c.ref(i.actions);return c.watch(()=>i.actions,p=>{u.value=p},{deep:!0}),(p,y)=>{const f=c.resolveComponent("RouterLink");return c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[c.createElementVNode("div",null,[c.createVNode(c.Transition,{name:"modal-load"},{default:c.withCtx(()=>[p.show?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["bg-white border border-border z-11 fixed top-[50px] right-0 left-0 mx-auto",{"overflow-y-auto":r.value}]),style:c.normalizeStyle({width:p.width})},[c.createElementVNode("div",FE,[c.createElementVNode("div",OE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(p.title,(g,k)=>(c.openBlock(),c.createElementBlock("span",{key:k,class:"flex"},[g.link?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",jE,c.toDisplayString(g.name),1)),g.link&&g.link!=="#"?(c.openBlock(),c.createBlock(f,{key:1,to:g.link,class:"hover:underline"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(g.name),1)]),_:2},1032,["to"])):c.createCommentVNode("",!0),g.link&&g.link==="#"?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:y[0]||(y[0]=v=>t("onClose")),class:"hover:underline cursor-pointer"},c.toDisplayString(g.name),1)):c.createCommentVNode("",!0),p.title.length!==0&&k+1!==p.title.length?(c.openBlock(),c.createElementBlock("svg",NE,y[2]||(y[2]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128)),c.createElementVNode("div",{class:"absolute hover:cursor-pointer top-[7px] right-0 text-xl group",onClick:y[1]||(y[1]=g=>t("onClose"))},y[3]||(y[3]=[c.createElementVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16.00 16.00",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"duration-200","stroke-width":"0.592"},[c.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[c.createElementVNode("path",{d:"M0 14.545L1.455 16 8 9.455 14.545 16 16 14.545 9.455 8 16 1.455 14.545 0 8 6.545 1.455 0 0 1.455 6.545 8z","fill-rule":"evenodd"})])],-1)]))])]),c.createElementVNode("div",{ref_key:"dynamicDiv",ref:n,class:c.normalizeClass(["py-4 px-4",{"overflow-y-auto":r.value}]),style:c.normalizeStyle({maxHeight:`${a.value-200}px`})},[c.renderSlot(p.$slots,"default")],6),c.createElementVNode("div",_E,[c.createElementVNode("div",WE,[c.createElementVNode("div",UE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.value,(g,k)=>(c.openBlock(),c.createElementBlock("div",{key:k},[c.createElementVNode("button",{class:c.normalizeClass(g.class||"btn"),onClick:v=>l(g)},c.toDisplayString(g.title),11,GE)]))),128))])])])],6)):c.createCommentVNode("",!0)]),_:3}),p.show?(c.openBlock(),c.createElementBlock("div",$E)):c.createCommentVNode("",!0)])])}}}),YE=["aria-checked"],ZE=c.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean,default:!1},background:{default:"bg-[#1C64F2]"},disable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue);c.watch(()=>t.modelValue,r=>{a.value=r});const n=()=>{t.disable||(a.value=!a.value,i("update:modelValue",a.value))};return(r,l)=>(c.openBlock(),c.createElementBlock("button",{onClick:n,class:c.normalizeClass(["relative w-[40px] h-[25px] rounded-full p-1 transition-colors duration-200 my-[1px]",[a.value?r.background:"bg-gray-200",r.disable?"cursor-not-allowed":"cursor-pointer"]]),role:"switch","aria-checked":a.value},[c.createElementVNode("div",{class:c.normalizeClass(["flex items-center justify-center w-[15px] h-[15px] rounded-full bg-white shadow-md transform transition-transform duration-200",a.value?"translate-x-[110%]":"translate-x-0"])},null,2)],10,YE))}});class te{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class G{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var a=e?t.split(e):[t],n=a.length,r;for(let l=0;l<n&&(i=i[a[l]],r=i,!!i);l++);return r}static deepClone(e,t,i=[]){var a={}.__proto__,n=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var r in e){let l=e[r],h,d;l!=null&&typeof l=="object"&&(l.__proto__===a||l.__proto__===n)&&(h=i.findIndex(u=>u.subject===l),h>-1?t[r]=i[h].copy:(d=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:d}),t[r]=this.deepClone(l,d,i)))}return t}}let XE=class kx extends te{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,a=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let n=G.elOffset(this.container);i-=n.left,a-=n.top}return{x:i,y:a}}elementPositionCoords(e,t="right"){var i=G.elOffset(e),a,n,r;switch(this.container!==document.body&&(a=G.elOffset(this.container),i.left-=a.left,i.top-=a.top),t){case"right":n=i.left+e.offsetWidth,r=i.top-1;break;case"bottom":n=i.left,r=i.top+e.offsetHeight;break;case"left":n=i.left,r=i.top-1;break;case"top":n=i.left,r=i.top;break;case"center":n=i.left+e.offsetWidth/2,r=i.top+e.offsetHeight/2;break}return{x:n,y:r,offset:i}}show(e,t){var i,a,n,r,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(n=e,l=this.elementPositionCoords(e,t),r=l.offset,i=l.x,a=l.y):typeof e=="number"?(r={top:0,left:0},i=e,a=t):(l=this.containerEventCoords(e),i=l.x,a=l.y,this.reversedX=!1),this.element.style.top=a+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,a,n,r,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",h=>{h.stopPropagation()}),this)}_fitToScreen(e,t,i,a,n){var r=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-a.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,r?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(n){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new kx(this.table,e,this),this.childPopup}};class q extends te{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(a=>a.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new XE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var KE={rownum:function(o,e,t,i,a,n){return n.getPosition()}};const Zo=class Zo extends q{constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(a=>{var n="accessor"+(a.charAt(0).toUpperCase()+a.slice(1)),r;e.definition[n]&&(r=this.lookupAccessor(e.definition[n]),r&&(t=!0,i[n]={accessor:r,params:e.definition[n+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":Zo.accessors[e]?t=Zo.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),a=e.getComponent(),n=G.deepClone(e.data||{});return this.table.columnManager.traverse(function(r){var l,h,d,u;r.modules.accessor&&(h=r.modules.accessor[i]||r.modules.accessor.accessor||!1,h&&(l=r.getFieldValue(n),l!="undefined"&&(u=r.getComponent(),d=typeof h.params=="function"?h.params(l,n,t,u,a):h.params,r.setFieldValue(n,h.accessor(l,n,t,d,u,a)))))}),n}};E(Zo,"moduleName","accessor"),E(Zo,"accessors",KE);let E9=Zo;var JE={method:"GET"};function S9(o,e){var t=[];if(e=e||"",Array.isArray(o))o.forEach((a,n)=>{t=t.concat(S9(a,e?e+"["+n+"]":n))});else if(typeof o=="object")for(var i in o)t=t.concat(S9(o[i],e?e+"["+i+"]":i));else t.push({key:e,value:o});return t}function QE(o){var e=S9(o),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function vx(o,e,t){return o&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",o+=(o.includes("?")?"&":"?")+QE(t)),o}function eS(o,e,t){var i;return new Promise((a,n)=>{if(o=this.urlGenerator.call(this.table,o,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var r in i.headers)e.headers||(e.headers={}),typeof e.headers[r]>"u"&&(e.headers[r]=i.headers[r]);e.body=i.body.call(this,o,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);o?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(o,e).then(l=>{l.ok?l.json().then(h=>{a(h)}).catch(h=>{n(h),console.warn("Ajax Load Error - Invalid JSON returned",h)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),n(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),n(l)})):(console.warn("Ajax Load Error - No URL Set"),a([]))})}function I9(o,e){var t=[];if(e=e||"",Array.isArray(o))o.forEach((a,n)=>{t=t.concat(I9(a,e?e+"["+n+"]":n))});else if(typeof o=="object")for(var i in o)t=t.concat(I9(o[i],e?e+"["+i+"]":i));else t.push({key:e,value:o});return t}var tS={json:{headers:{"Content-Type":"application/json"},body:function(o,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(o,e,t){var i=I9(t),a=new FormData;return i.forEach(function(n){a.append(n.key,n.value)}),a}}};const Ce=class Ce extends q{constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=Ce.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Ce.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Ce.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,a){var n=this.table.options.ajaxParams;return n&&(typeof n=="function"&&(n=n.call(this.table)),a=Object.assign(Object.assign({},n),a)),a}requestDataCheck(e,t,i,a){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,a,n){var r;return!n&&this.requestDataCheck(e)?(e&&this.setUrl(e),r=this.generateConfig(i),this.sendRequest(this.url,t,r)):n}setDefaultConfig(e={}){this.config=Object.assign({},Ce.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(a=>(this.table.options.ajaxResponse&&(a=this.table.options.ajaxResponse.call(this.table,e,t,a)),a)):Promise.reject()}};E(Ce,"moduleName","ajax"),E(Ce,"defaultConfig",JE),E(Ce,"defaultURLGenerator",vx),E(Ce,"defaultLoaderPromise",eS),E(Ce,"contentTypeFormatters",tS);let T9=Ce;var iS={replace:function(o){return this.table.setData(o)},update:function(o){return this.table.updateOrAddData(o)},insert:function(o){return this.table.addData(o)}},aS={table:function(o){var e=[],t=!0,i=this.table.columnManager.columns,a=[],n=[];return o=o.split(`
|
|
2
|
-
`),o.forEach(function(r){e.push(r.split(" "))}),e.length&&!(e.length===1&&e[0].length<2)?(e[0].forEach(function(r){var l=i.find(function(h){return r&&h.definition.title&&r.trim()&&h.definition.title.trim()===r.trim()});l?a.push(l):t=!1}),t||(t=!0,a=[],e[0].forEach(function(r){var l=i.find(function(h){return r&&h.field&&r.trim()&&h.field.trim()===r.trim()});l?a.push(l):t=!1}),t||(a=this.table.columnManager.columnsByIndex)),t&&e.shift(),e.forEach(function(r){var l={};r.forEach(function(h,d){a[d]&&(l[a[d].field]=h)}),n.push(l)}),n):!1}},oS={copyToClipboard:["ctrl + 67","meta + 67"]},nS={copyToClipboard:function(o){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},sS={keybindings:{bindings:oS,actions:nS}},xe;let rS=(xe=class extends
|
|
3
|
-
`)}copy(e,t){var i,a;this.blocked=!1,this.customSelection=!1,(this.mode===!0||this.mode==="copy")&&(this.rowRange=e||this.table.options.clipboardCopyRowRange,typeof window.getSelection<"u"&&typeof document.createRange<"u"?(e=document.createRange(),e.selectNodeContents(this.table.element),i=window.getSelection(),i.toString()&&t&&(this.customSelection=i.toString()),i.removeAllRanges(),i.addRange(e)):typeof document.selection<"u"&&typeof document.body.createTextRange<"u"&&(a=document.body.createTextRange(),a.moveToElementText(this.table.element),a.select()),document.execCommand("copy"),i&&i.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=xe.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e;break}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=xe.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e;break}}paste(e){var t,i,a;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),i=this.pasteParser.call(this,t),i?(e.preventDefault(),this.table.modExists("mutator")&&(i=this.mutateData(i)),a=this.pasteAction.call(this,i),this.dispatchExternal("clipboardPasted",t,i,a)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"clipboard"))}):t=e,t}checkPasteOrigin(e){var t=!0,i=this.confirm("clipboard-paste",[e]);return(i||!["DIV","SPAN"].includes(e.target.tagName))&&(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}},E(xe,"moduleName","clipboard"),E(xe,"moduleExtensions",sS),E(xe,"pasteActions",iS),E(xe,"pasteParsers",aS),xe);class lS{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}_getSelf(){return this._row}}class bx{constructor(e){return this._cell=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._cell.table.componentFunctionBinder.handle("cell",t._cell,i)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){typeof t>"u"&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class wn extends te{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField(),i={top:"flex-start",bottom:"flex-end",middle:"center"},a={left:"flex-start",right:"flex-end",center:"center"};if(e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems=i[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent=a[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass){var n=this.column.definition.cssClass.split(" ");n.forEach(r=>{e.classList.add(r)})}this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(e=this.chain("cell-format",this,null,()=>this.element.innerHTML=this.value),typeof e){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",e!=null&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,i){var a=this.setValueProcessData(e,t,i);a&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,i){var a=!1;return(this.value!==e||i)&&(a=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),a&&this.dispatch("cell-value-changed",this),a}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new bx(this)),this.component}}class wx{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._column.table.componentFunctionBinder.handle("column",t._column,i)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var i=this._column.table.columnManager.findColumn(e);i?this._column.table.columnManager.moveColumn(this._column,i,t):console.warn("Move Error - No matching column found:",i)}getNextColumn(){var e=this._column.nextColumn();return e?e.getComponent():!1}getPrevColumn(){var e=this._column.prevColumn();return e?e.getComponent():!1}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return e===!0?t=this._column.reinitializeWidth(!0):t=this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var Mx={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};const Po=class Po extends te{constructor(e,t,i){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=i,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach((a,n)=>{var r=new Po(a,this);this.attachColumn(r)}),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end";break}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)typeof this.definition[t]>"u"&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate(Po.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{Po.defaultOptionList.indexOf(e)===-1&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)})}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),e.headerVertical==="flip"&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;if(this.dispatch("column-layout",this),typeof e.visible<"u"&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass){var t=e.cssClass.split(" ");t.forEach(i=>{this.element.classList.add(i)})}e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",a=>{a.stopPropagation(),i.focus()}),i.addEventListener("mousedown",a=>{a.stopPropagation()}),i.addEventListener("change",()=>{e.title=i.value,this.dispatchExternal("columnTitleChanged",this.getComponent())}),t.appendChild(i),e.field?this.langBind("columns|"+e.field,a=>{i.value=a||e.title||" "}):i.value=e.title||" "}else e.field?this.langBind("columns|"+e.field,a=>{this._formatColumnHeaderTitle(t,a||e.title||" ")}):this._formatColumnHeaderTitle(t,e.title||" ");return t}_formatColumnHeaderTitle(e,t){var i=this.chain("column-format",[this,t,e],null,()=>t);switch(typeof i){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=i}}_buildGroupHeader(){if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var e=this.definition.cssClass.split(" ");e.forEach(t=>{this.element.classList.add(t)})}this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t=e,i=this.fieldStructure,a=i.length,n;for(let r=0;r<a&&(t=t[i[r]],n=t,!!t);r++);return n}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var i=e,a=this.fieldStructure,n=a.length;for(let r=0;r<n;r++)if(r==n-1)i[a[r]]=t;else{if(!i[a[r]])if(typeof t<"u")i[a[r]]={};else break;i=i[a[r]]}}attachColumn(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(e,t){var i=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=i+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=i-this.contentElement.offsetHeight+"px"),this.columns.forEach(function(a){a.verticalAlign(e)})}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach(function(e){e.clearVerticalAlign()}),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?this.columns.length?this.columns[0].getFirstColumn():!1:this}getLastColumn(){return this.isGroup?this.columns.length?this.columns[this.columns.length-1].getLastColumn():!1:this}getColumns(e){var t=[];return e?this.columns.forEach(i=>{t.push(i),t=t.concat(i.getColumns(!0))}):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach(function(i){t.push(i.getDefinition(!0))}),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach(function(t){t.visible&&(e=!0)}),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.show()}),!this.isGroup&&this.width===null&&this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.hide()}),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(t){t.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(t.row.getElement().offsetParent!==null?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(t){t.calcHeight()}),e.forEach(function(t){t.setCellHeight()})}getWidth(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(t){t.setMinWidth()})}setMaxWidth(e){this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth ("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(t){t.setMaxWidth()})}delete(){return new Promise((e,t)=>{this.isGroup&&this.columns.forEach(function(a){a.delete()}),this.dispatch("column-delete",this);var i=this.cells.length;for(let a=0;a<i;a++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),e()})}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(e){var t=new wn(this,e);return this.cells.push(t),t}nextColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._nextVisibleColumn(e+1):!1}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._prevVisibleColumn(e-1):!1}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,typeof this.definition.width<"u"&&!e&&this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach(a=>{a.clearWidth()}));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach(a=>{var n=a.getWidth();n>t&&(t=n)}),t)){var i=t+1;e?this.setWidth(i):(this.maxInitialWidth&&!e&&(i=Math.min(i,this.maxInitialWidth)),this.setWidthActual(i))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then(i=>(t.field==this.field&&(this.field=!1),this.delete().then(()=>i.getComponent()))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new wx(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Po?this.parent.getComponent():!1}};E(Po,"defaultOptionList",Mx);let No=Po;class Z7{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e&&e.getComponent()}getPrevRow(){var e=this._row.prevRow();return e&&e.getComponent()}}class ie extends te{constructor(e,t,i="row"){super(t.table),this.parent=t,this.data={},this.type=i,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach(e=>{e.cellRendered()})}reinitializeHeight(){this.heightInitialized=!1,this.element&&this.element.offsetParent!==null&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&this.element.offsetParent!==null&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,i=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(i=this.calcMinHeight(),t=this.calcMaxHeight(),e?this.height=Math.max(t,i):this.height=this.manualHeight?this.height:Math.max(t,i)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach(function(t){var i=t.getHeight();i>e&&(e=i)}),e}setCellHeight(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach(function(e){e.clearHeight()})}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t=this.element&&G.elVisible(this.element),i={},a;return new Promise((n,r)=>{typeof e=="string"&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(i=Object.assign(i,this.data),i=Object.assign(i,e)),a=this.chain("row-data-changing",[this,i,e],null,e);for(let l in a)this.data[l]=a[l];this.dispatch("row-data-save-after",this);for(let l in e)this.table.columnManager.getColumnsByFieldRoot(l).forEach(d=>{let u=this.getCell(d.getField());if(u){let p=d.getFieldValue(a);u.getValue()!==p&&(u.setValueProcessData(p),t&&u.cellRendered())}});t?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,t,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),n()})}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){var t=!1;return e=this.table.columnManager.findColumn(e),!this.initialized&&this.cells.length===0&&this.generateCells(),t=this.cells.find(function(i){return i.column===e}),t}getCellIndex(e){return this.cells.findIndex(function(t){return t===e})}findCell(e){return this.cells.find(t=>t.element===e)}getCells(){return!this.initialized&&this.cells.length===0&&this.generateCells(),this.cells}nextRow(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1}prevRow(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1}moveToRow(e,t){var i=this.table.rowManager.findRow(e);i?(this.table.rowManager.moveRowActual(this,i,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return this.isDisplayed()?this.position:!1}setPosition(e){e!=this.position&&(this.position=e,this.positionWatchers.forEach(t=>{t(this.position)}))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new Z7(this)),this.component}}var hS={avg:function(o,e,t){var i=0,a=typeof t.precision<"u"?t.precision:2;return o.length&&(i=o.reduce(function(n,r){return Number(n)+Number(r)}),i=i/o.length,i=a!==!1?i.toFixed(a):i),parseFloat(i).toString()},max:function(o,e,t){var i=null,a=typeof t.precision<"u"?t.precision:!1;return o.forEach(function(n){n=Number(n),(n>i||i===null)&&(i=n)}),i!==null?a!==!1?i.toFixed(a):i:""},min:function(o,e,t){var i=null,a=typeof t.precision<"u"?t.precision:!1;return o.forEach(function(n){n=Number(n),(n<i||i===null)&&(i=n)}),i!==null?a!==!1?i.toFixed(a):i:""},sum:function(o,e,t){var i=0,a=typeof t.precision<"u"?t.precision:!1;return o.length&&o.forEach(function(n){n=Number(n),i+=isNaN(n)?0:Number(n)}),a!==!1?i.toFixed(a):i},concat:function(o,e,t){var i=0;return o.length&&(i=o.reduce(function(a,n){return String(a)+String(n)})),i},count:function(o,e,t){var i=0;return o.length&&o.forEach(function(a){a&&i++}),i},unique:function(o,e,t){var i=o.filter((a,n)=>(o||a===0)&&o.indexOf(a)===n);return i.length}};const Ne=class Ne extends q{constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new No({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?((this.table.options.columnCalcs=="table"||this.table.options.columnCalcs=="both")&&this.recalcActiveRows(),this.table.options.columnCalcs!="table"&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,i={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":Ne.calculations[t.topCalc]?i.topCalc=Ne.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":i.topCalc=t.topCalc;break}i.topCalc&&(e.modules.columnCalcs=i,this.topCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":Ne.calculations[t.bottomCalc]?i.botCalc=Ne.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":i.botCalc=t.bottomCalc;break}i.botCalc&&(e.modules.columnCalcs=i,this.botCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,i;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),i=this.generateRow("top",t),this.topRow=i;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(i.getElement()),i.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),i=this.generateRow("bottom",t),this.botRow=i;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(i.getElement()),i.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){if((this.topCalcs.length||this.botCalcs.length)&&(this.table.options.columnCalcs!=="group"&&this.recalcActiveRows(),this.table.options.groupBy&&this.table.options.columnCalcs!=="table")){var e=this.table.modules.groupRows.getChildGroups();e.forEach(t=>{this.recalcGroup(t)})}}recalcGroup(e){var t,i;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),i=this.generateRowData("bottom",t),e.calcs.bottom.updateData(i),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),i=this.generateRowData("top",t),e.calcs.top.updateData(i),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],i=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,a=this.table.modules.dataTree;return e.forEach(n=>{var r;t.push(n.getData()),i&&((r=n.modules.dataTree)!=null&&r.open)&&this.rowsToData(a.getFilteredTreeChildren(n)).forEach(l=>{t.push(n)})}),t}generateRow(e,t){var i=this.generateRowData(e,t),a;return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),a=new ie(i,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),a.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),a.component=!1,a.getComponent=()=>(a.component||(a.component=new lS(a)),a.component),a.generateCells=()=>{var n=[];this.table.columnManager.columnsByIndex.forEach(r=>{this.genColumn.setField(r.getField()),this.genColumn.hozAlign=r.hozAlign,r.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(r.definition[e+"CalcFormatter"]),params:r.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=r.definition.cssClass;var l=new wn(this.genColumn,a);l.getElement(),l.column=r,l.setWidth(),r.cells.push(l),n.push(l),r.visible||l.hide()}),a.cells=n},a}generateRowData(e,t){var i={},a=e=="top"?this.topCalcs:this.botCalcs,n=e=="top"?"topCalc":"botCalc",r,l;return a.forEach(function(h){var d=[];h.modules.columnCalcs&&h.modules.columnCalcs[n]&&(t.forEach(function(u){d.push(h.getFieldValue(u))}),l=n+"Params",r=typeof h.modules.columnCalcs[l]=="function"?h.modules.columnCalcs[l](d,t):h.modules.columnCalcs[l],h.setFieldValue(i,h.modules.columnCalcs[n](d,t,r)))}),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={},t;return this.table.options.groupBy&&this.table.modExists("groupRows")?(t=this.table.modules.groupRows.getGroups(!0),t.forEach(i=>{e[i.getKey()]=this.getGroupResults(i)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),i=e.getSubGroups(),a={},n={};return i.forEach(r=>{a[r.getKey()]=this.getGroupResults(r)}),n={top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:a},n}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}};E(Ne,"moduleName","columnCalcs"),E(Ne,"calculations",hS);let D9=Ne;class Cx extends q{constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?t.dataTreeBranchElement===!0?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):typeof t.dataTreeBranchElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?typeof t.dataTreeCollapseElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?typeof t.dataTreeExpandElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(i,a){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(i,a){return t.dataTreeStartExpanded[a]};break}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){var t;e&&(t=this.table.rowManager.getRows(),t.forEach(i=>{this.reinitializeRowChildren(i)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||(e?e.field:!1)}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach(t=>{e=e.concat(this.getTreeChildren(t,!1,!0))}),e}rowDataChanged(e,t,i){this.redrawNeeded(i)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){var t=e.column.getField();t===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],i=Array.isArray(t),a=i||!i&&typeof t=="object"&&t!==null;!a&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!a&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:a?e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0):!1,controlEl:e.modules.dataTree&&a?e.modules.dataTree.controlEl:!1,branchEl:e.modules.dataTree&&a?e.modules.dataTree.branchEl:!1,parent:e.modules.dataTree?e.modules.dataTree.parent:!1,children:a}}reinitializeRowChildren(e){var t=this.getTreeChildren(e,!1,!0);t.forEach(function(i){i.reinitialize(!0)})}layoutRow(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],i=t.getElement(),a=e.modules.dataTree;a.branchEl&&(a.branchEl.parentNode&&a.branchEl.parentNode.removeChild(a.branchEl),a.branchEl=!1),a.controlEl&&(a.controlEl.parentNode&&a.controlEl.parentNode.removeChild(a.controlEl),a.controlEl=!1),this.generateControlElement(e,i),e.getElement().classList.add("tabulator-tree-level-"+a.index),a.index&&(this.branchEl?(a.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(a.branchEl,i.firstChild),this.table.rtl?a.branchEl.style.marginRight=(a.branchEl.offsetWidth+a.branchEl.style.marginLeft)*(a.index-1)+a.index*this.indent+"px":a.branchEl.style.marginLeft=(a.branchEl.offsetWidth+a.branchEl.style.marginRight)*(a.index-1)+a.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+a.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+a.index*this.indent+"px")}generateControlElement(e,t){var i=e.modules.dataTree,a=i.controlEl;t=t||e.getCells()[0].getElement(),i.children!==!1&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",n=>{n.stopPropagation(),this.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",n=>{n.stopPropagation(),this.expandRow(e)})),i.controlEl.addEventListener("mousedown",n=>{n.stopPropagation()}),a&&a.parentNode===t?a.parentNode.replaceChild(i.controlEl,a):t.insertBefore(i.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach((i,a)=>{var n,r;t.push(i),i instanceof ie&&(i.create(),n=i.modules.dataTree,!n.index&&n.children!==!1&&(r=this.getChildren(i,!1,!0),r.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var a=e.modules.dataTree,n=[],r=[];return a.children!==!1&&(a.open||t)&&(Array.isArray(a.children)||(a.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?n=this.table.modules.filter.filter(a.children):n=a.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(n,i),n.forEach(l=>{r.push(l);var h=this.getChildren(l,!1,!0);h.forEach(d=>{r.push(d)})})),r}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(a=>{var n=new ie(a||{},this.table.rowManager);n.create(),n.modules.dataTree.index=e.modules.dataTree.index+1,n.modules.dataTree.parent=e,n.modules.dataTree.children&&(n.modules.dataTree.open=this.startOpen(n.getComponent(),n.modules.dataTree.index)),t.push(n)}),t}expandRow(e,t){var i=e.modules.dataTree;i.children!==!1&&(i.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return e.modules.dataTree.parent?e.modules.dataTree.parent.getComponent():!1}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,i=[],a;return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?a=this.table.modules.filter.filter(t.children):a=t.children,a.forEach(n=>{n instanceof ie&&i.push(n)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof ie&&i.wipe()})}rowDelete(e){var t=e.modules.dataTree.parent,i;t&&(i=this.findChildIndex(e,t),i!==!1&&t.data[this.field].splice(i,1),t.data[this.field].length||delete t.data[this.field],this.initializeRow(t),this.layoutRow(t)),this.refreshData(!0)}addTreeChildRow(e,t,i,a){var n=!1;typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),typeof a<"u"&&(n=this.findChildIndex(a,e),n!==!1&&e.data[this.field].splice(i?n:n+1,0,t)),n===!1&&(i?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var i=!1;return typeof e=="object"?e instanceof ie?i=e.data:e instanceof Z7?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(a=>a instanceof ie?a.element===e:!1),i&&(i=i.data)):e===null&&(i=!1):typeof e>"u"?i=!1:i=t.data[this.field].find(a=>a.data[this.table.options.index]==e),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),i==-1&&(i=!1)),i}getTreeChildren(e,t,i){var a=e.modules.dataTree,n=[];return a&&a.children&&(Array.isArray(a.children)||(a.children=this.generateChildren(e)),a.children.forEach(r=>{r instanceof ie&&(n.push(t?r.getComponent():r),i&&this.getTreeChildren(r,t,i).forEach(l=>{n.push(l)}))})),n}getChildField(){return this.field}redrawNeeded(e){return(this.field?typeof e[this.field]<"u":!1)||(this.elementField?typeof e[this.elementField]<"u":!1)}}E(Cx,"moduleName","dataTree");function cS(o,e={},t){var i=e.delimiter?e.delimiter:",",a=[],n=[];o.forEach(r=>{var l=[];switch(r.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":r.columns.forEach((h,d)=>{h&&h.depth===1&&(n[d]=typeof h.value>"u"||h.value===null?"":'"'+String(h.value).split('"').join('""')+'"')});break;case"row":r.columns.forEach(h=>{if(h){switch(typeof h.value){case"object":h.value=h.value!==null?JSON.stringify(h.value):"";break;case"undefined":h.value="";break}l.push('"'+String(h.value).split('"').join('""')+'"')}}),a.push(l.join(i));break}}),n.length&&a.unshift(n.join(i)),a=a.join(`
|
|
4
|
-
`),e.bom&&(a="\uFEFF"+a),t(a,"text/csv")}function dS(o,e,t){var i=[];o.forEach(a=>{var n={};switch(a.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":a.columns.forEach(r=>{r&&(n[r.component.getTitleDownload()||r.component.getField()]=r.value)}),i.push(n);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function uS(o,e={},t){var i=[],a=[],n={},r=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},l=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},h=e.jsPDF||{},d=e.title?e.title:"",u,p;h.orientation||(h.orientation=e.orientation||"landscape"),h.unit||(h.unit="pt"),o.forEach(f=>{switch(f.type){case"header":i.push(y(f));break;case"group":a.push(y(f,r));break;case"calc":a.push(y(f,l));break;case"row":a.push(y(f));break}});function y(f,g){var k=[];return f.columns.forEach(v=>{var m;if(v){switch(typeof v.value){case"object":v.value=v.value!==null?JSON.stringify(v.value):"";break;case"undefined":v.value="";break}m={content:v.value,colSpan:v.width,rowSpan:v.height},g&&(m.styles=g),k.push(m)}}),k}u=this.dependencyRegistry.lookup("jspdf","jsPDF"),p=new u(h),e.autoTable&&(typeof e.autoTable=="function"?n=e.autoTable(p)||{}:n=e.autoTable),d&&(n.didDrawPage=function(f){p.text(d,40,30)}),n.head=i,n.body=a,p.autoTable(n),e.documentProcessing&&e.documentProcessing(p),t(p.output("arraybuffer"),"application/pdf")}function pS(o,e,t){var i=this,a=e.sheetName||"Sheet1",n=this.dependencyRegistry.lookup("XLSX"),r=n.utils.book_new(),l=new
|
|
5
|
-
`),"application/x-ndjson")}var mS={csv:cS,json:dS,jsonLines:fS,pdf:uS,xlsx:pS,html:yS},Ve;let gS=(Ve=class extends q{constructor(e){super(e),this.registerTableOption("downloadEncoder",function(t,i){return new Blob([t],{type:i})}),this.registerTableOption("downloadConfig",{}),this.registerTableOption("downloadRowRange","active"),this.registerColumnOption("download"),this.registerColumnOption("titleDownload")}initialize(){this.deprecatedOptionsCheck(),this.registerTableFunction("download",this.download.bind(this)),this.registerTableFunction("downloadToTab",this.downloadToTab.bind(this))}deprecatedOptionsCheck(){}downloadToTab(e,t,i,a){this.download(e,t,i,a,!0)}download(e,t,i,a,n){var r=!1;function l(d,u){n?n===!0?this.triggerDownload(d,u,e,t,!0):n(d):this.triggerDownload(d,u,e,t)}if(typeof e=="function"?r=e:Ve.downloaders[e]?r=Ve.downloaders[e]:console.warn("Download Error - No such download type found: ",e),r){var h=this.generateExportList(a);r.call(this.table,h,i||{},l.bind(this))}}generateExportList(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),i=this.table.options.groupHeaderDownload;return i&&!Array.isArray(i)&&(i=[i]),t.forEach(a=>{var n;a.type==="group"&&(n=a.columns[0],i&&i[a.indent]&&(n.value=i[a.indent](n.value,a.component._group.getRowCount(),a.component._group.getData(),a.component)))}),t}triggerDownload(e,t,i,a,n){var r=document.createElement("a"),l=this.table.options.downloadEncoder(e,t);l&&(n?window.open(window.URL.createObjectURL(l)):(a=a||"Tabulator."+(typeof i=="function"?"txt":i),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(l,a):(r.setAttribute("href",window.URL.createObjectURL(l)),r.setAttribute("download",a),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r))),this.dispatchExternal("downloadComplete"))}commsReceived(e,t,i){switch(t){case"intercept":this.download(i.type,"",i.options,i.active,i.intercept);break}}},E(Ve,"moduleName","download"),E(Ve,"downloaders",mS),Ve);function X7(o,e){var t=e.mask,i=typeof e.maskLetterChar<"u"?e.maskLetterChar:"A",a=typeof e.maskNumberChar<"u"?e.maskNumberChar:"9",n=typeof e.maskWildcardChar<"u"?e.maskWildcardChar:"*";function r(l){var h=t[l];typeof h<"u"&&h!==n&&h!==i&&h!==a&&(o.value=o.value+""+h,r(l+1))}o.addEventListener("keydown",l=>{var h=o.value.length,d=l.key;if(l.keyCode>46&&!l.ctrlKey&&!l.metaKey){if(h>=t.length)return l.preventDefault(),l.stopPropagation(),!1;switch(t[h]){case i:if(d.toUpperCase()==d.toLowerCase())return l.preventDefault(),l.stopPropagation(),!1;break;case a:if(isNaN(d))return l.preventDefault(),l.stopPropagation(),!1;break;case n:break;default:if(d!==t[h])return l.preventDefault(),l.stopPropagation(),!1}}}),o.addEventListener("keyup",l=>{l.keyCode>46&&e.maskAutoFill&&r(o.value.length)}),o.placeholder||(o.placeholder=t),e.maskAutoFill&&r(o.value.length)}function kS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input");if(r.setAttribute("type",a.search?"search":"text"),r.style.padding="4px",r.style.width="100%",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let h in a.elementAttributes)h.charAt(0)=="+"?(h=h.slice(1),r.setAttribute(h,r.getAttribute(h)+a.elementAttributes["+"+h])):r.setAttribute(h,a.elementAttributes[h]);r.value=typeof n<"u"?n:"",e(function(){o.getType()==="cell"&&(r.focus({preventScroll:!0}),r.style.height="100%",a.selectContents&&r.select())});function l(h){(n===null||typeof n>"u")&&r.value!==""||r.value!==n?t(r.value)&&(n=r.value):i()}return r.addEventListener("change",l),r.addEventListener("blur",l),r.addEventListener("keydown",function(h){switch(h.keyCode){case 13:l();break;case 27:i();break;case 35:case 36:h.stopPropagation();break}}),a.mask&&X7(r,a),r}function vS(o,e,t,i,a){var n=o.getValue(),r=a.verticalNavigation||"hybrid",l=String(n!==null&&typeof n<"u"?n:""),h=document.createElement("textarea"),d=0;if(h.style.display="block",h.style.padding="2px",h.style.height="100%",h.style.width="100%",h.style.boxSizing="border-box",h.style.whiteSpace="pre-wrap",h.style.resize="none",a.elementAttributes&&typeof a.elementAttributes=="object")for(let p in a.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),h.setAttribute(p,h.getAttribute(p)+a.elementAttributes["+"+p])):h.setAttribute(p,a.elementAttributes[p]);h.value=l,e(function(){o.getType()==="cell"&&(h.focus({preventScroll:!0}),h.style.height="100%",h.scrollHeight,h.style.height=h.scrollHeight+"px",o.getRow().normalizeHeight(),a.selectContents&&h.select())});function u(p){(n===null||typeof n>"u")&&h.value!==""||h.value!==n?(t(h.value)&&(n=h.value),setTimeout(function(){o.getRow().normalizeHeight()},300)):i()}return h.addEventListener("change",u),h.addEventListener("blur",u),h.addEventListener("keyup",function(){h.style.height="";var p=h.scrollHeight;h.style.height=p+"px",p!=d&&(d=p,o.getRow().normalizeHeight())}),h.addEventListener("keydown",function(p){switch(p.keyCode){case 13:p.shiftKey&&a.shiftEnterSubmit&&u();break;case 27:i();break;case 38:(r=="editor"||r=="hybrid"&&h.selectionStart)&&(p.stopImmediatePropagation(),p.stopPropagation());break;case 40:(r=="editor"||r=="hybrid"&&h.selectionStart!==h.value.length)&&(p.stopImmediatePropagation(),p.stopPropagation());break;case 35:case 36:p.stopPropagation();break}}),a.mask&&X7(h,a),h}function bS(o,e,t,i,a){var n=o.getValue(),r=a.verticalNavigation||"editor",l=document.createElement("input");if(l.setAttribute("type","number"),typeof a.max<"u"&&l.setAttribute("max",a.max),typeof a.min<"u"&&l.setAttribute("min",a.min),typeof a.step<"u"&&l.setAttribute("step",a.step),l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let u in a.elementAttributes)u.charAt(0)=="+"?(u=u.slice(1),l.setAttribute(u,l.getAttribute(u)+a.elementAttributes["+"+u])):l.setAttribute(u,a.elementAttributes[u]);l.value=n;var h=function(u){d()};e(function(){o.getType()==="cell"&&(l.removeEventListener("blur",h),l.focus({preventScroll:!0}),l.style.height="100%",l.addEventListener("blur",h),a.selectContents&&l.select())});function d(){var u=l.value;!isNaN(u)&&u!==""&&(u=Number(u)),u!==n?t(u)&&(n=u):i()}return l.addEventListener("keydown",function(u){switch(u.keyCode){case 13:d();break;case 27:i();break;case 38:case 40:r=="editor"&&(u.stopImmediatePropagation(),u.stopPropagation());break;case 35:case 36:u.stopPropagation();break}}),a.mask&&X7(l,a),l}function wS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input");if(r.setAttribute("type","range"),typeof a.max<"u"&&r.setAttribute("max",a.max),typeof a.min<"u"&&r.setAttribute("min",a.min),typeof a.step<"u"&&r.setAttribute("step",a.step),r.style.padding="4px",r.style.width="100%",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let h in a.elementAttributes)h.charAt(0)=="+"?(h=h.slice(1),r.setAttribute(h,r.getAttribute(h)+a.elementAttributes["+"+h])):r.setAttribute(h,a.elementAttributes[h]);r.value=n,e(function(){o.getType()==="cell"&&(r.focus({preventScroll:!0}),r.style.height="100%")});function l(){var h=r.value;!isNaN(h)&&h!==""&&(h=Number(h)),h!=n?t(h)&&(n=h):i()}return r.addEventListener("blur",function(h){l()}),r.addEventListener("keydown",function(h){switch(h.keyCode){case 13:l();break;case 27:i();break}}),r}function MS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?window.DateTime||luxon.DateTime:null,h=o.getValue(),d=document.createElement("input");function u(y){var f;return l.isDateTime(y)?f=y:n==="iso"?f=l.fromISO(String(y)):f=l.fromFormat(String(y),n),f.toFormat("yyyy-MM-dd")}if(d.type="date",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",a.max&&d.setAttribute("max",n?u(a.max):a.max),a.min&&d.setAttribute("min",n?u(a.min):a.min),a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),d.setAttribute(y,d.getAttribute(y)+a.elementAttributes["+"+y])):d.setAttribute(y,a.elementAttributes[y]);h=typeof h<"u"?h:"",n&&(l?h=u(h):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=h,e(function(){o.getType()==="cell"&&(d.focus({preventScroll:!0}),d.style.height="100%",a.selectContents&&d.select())});function p(){var y=d.value,f;if((h===null||typeof h>"u")&&y!==""||y!==h){if(y&&n)switch(f=l.fromFormat(String(y),"yyyy-MM-dd"),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(h=d.value)}else i()}return d.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==d)&&p()}),d.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),d}function CS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?window.DateTime||luxon.DateTime:null,h,d=o.getValue(),u=document.createElement("input");if(u.type="time",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),u.setAttribute(y,u.getAttribute(y)+a.elementAttributes["+"+y])):u.setAttribute(y,a.elementAttributes[y]);d=typeof d<"u"?d:"",n&&(l?(l.isDateTime(d)?h=d:n==="iso"?h=l.fromISO(String(d)):h=l.fromFormat(String(d),n),d=h.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=d,e(function(){o.getType()=="cell"&&(u.focus({preventScroll:!0}),u.style.height="100%",a.selectContents&&u.select())});function p(){var y=u.value,f;if((d===null||typeof d>"u")&&y!==""||y!==d){if(y&&n)switch(f=l.fromFormat(String(y),"hh:mm"),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(d=u.value)}else i()}return u.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==u)&&p()}),u.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),u}function xS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"):null,h,d=o.getValue(),u=document.createElement("input");if(u.type="datetime-local",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),u.setAttribute(y,u.getAttribute(y)+a.elementAttributes["+"+y])):u.setAttribute(y,a.elementAttributes[y]);d=typeof d<"u"?d:"",n&&(l?(l.isDateTime(d)?h=d:n==="iso"?h=l.fromISO(String(d)):h=l.fromFormat(String(d),n),d=h.toFormat("yyyy-MM-dd")+"T"+h.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=d,e(function(){o.getType()==="cell"&&(u.focus({preventScroll:!0}),u.style.height="100%",a.selectContents&&u.select())});function p(){var y=u.value,f;if((d===null||typeof d>"u")&&y!==""||y!==d){if(y&&n)switch(f=l.fromISO(String(y)),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(d=u.value)}else i()}return u.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==u)&&p()}),u.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),u}let LS=class{constructor(e,t,i,a,n,r){this.edit=e,this.table=e.table,this.cell=t,this.params=this._initializeParams(r),this.data=[],this.displayItems=[],this.currentItems=[],this.focusedItem=null,this.input=this._createInputElement(),this.listEl=this._createListElement(),this.initialValues=null,this.isFilter=t.getType()==="header",this.filterTimeout=null,this.filtered=!1,this.typing=!1,this.values=[],this.popup=null,this.listIteration=0,this.lastAction="",this.filterTerm="",this.blurable=!0,this.actions={success:a,cancel:n},this._deprecatedOptionsCheck(),this._initializeValue(),i(this._onRendered.bind(this))}_deprecatedOptionsCheck(){}_initializeValue(){var e=this.cell.getValue();typeof e>"u"&&typeof this.params.defaultValue<"u"&&(e=this.params.defaultValue),this.initialValues=this.params.multiselect?e:[e],this.isFilter&&(this.input.value=this.initialValues?this.initialValues.join(","):"",this.headerFilterInitialListGen())}_onRendered(){var e=this.cell.getElement();function t(i){i.stopPropagation()}this.isFilter||(this.input.style.height="100%",this.input.focus({preventScroll:!0})),e.addEventListener("click",t),setTimeout(()=>{e.removeEventListener("click",t)},1e3),this.input.addEventListener("mousedown",this._preventPopupBlur.bind(this))}_createListElement(){var e=document.createElement("div");return e.classList.add("tabulator-edit-list"),e.addEventListener("mousedown",this._preventBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e}_setListWidth(){var e=this.isFilter?this.input:this.cell.getElement();this.listEl.style.minWidth=e.offsetWidth+"px",this.params.maxWidth&&(this.params.maxWidth===!0?this.listEl.style.maxWidth=e.offsetWidth+"px":typeof this.params.maxWidth=="number"?this.listEl.style.maxWidth=this.params.maxWidth+"px":this.listEl.style.maxWidth=this.params.maxWidth)}_createInputElement(){var e=this.params.elementAttributes,t=document.createElement("input");if(t.setAttribute("type",this.params.clearable?"search":"text"),t.style.padding="4px",t.style.width="100%",t.style.boxSizing="border-box",this.params.autocomplete||(t.style.cursor="default",t.style.caretColor="transparent"),e&&typeof e=="object")for(let i in e)i.charAt(0)=="+"?(i=i.slice(1),t.setAttribute(i,t.getAttribute(i)+e["+"+i])):t.setAttribute(i,e[i]);return this.params.mask&&X7(t,this.params),this._bindInputEvents(t),t}_initializeParams(e){var t=["values","valuesURL","valuesLookup"],i;return e=Object.assign({},e),e.verticalNavigation=e.verticalNavigation||"editor",e.placeholderLoading=typeof e.placeholderLoading>"u"?"Searching ...":e.placeholderLoading,e.placeholderEmpty=typeof e.placeholderEmpty>"u"?"No Results Found":e.placeholderEmpty,e.filterDelay=typeof e.filterDelay>"u"?300:e.filterDelay,e.emptyValue=Object.keys(e).includes("emptyValue")?e.emptyValue:"",i=Object.keys(e).filter(a=>t.includes(a)).length,i?i>1&&console.warn("list editor config error - only one of the values, valuesURL, or valuesLookup options can be set on the same editor"):console.warn("list editor config error - either the values, valuesURL, or valuesLookup option must be set"),e.autocomplete?e.multiselect&&(e.multiselect=!1,console.warn("list editor config error - multiselect option is not available when autocomplete is enabled")):(e.freetext&&(e.freetext=!1,console.warn("list editor config error - freetext option is only available when autocomplete is enabled")),e.filterFunc&&(e.filterFunc=!1,console.warn("list editor config error - filterFunc option is only available when autocomplete is enabled")),e.filterRemote&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option is only available when autocomplete is enabled")),e.mask&&(e.mask=!1,console.warn("list editor config error - mask option is only available when autocomplete is enabled")),e.allowEmpty&&(e.allowEmpty=!1,console.warn("list editor config error - allowEmpty option is only available when autocomplete is enabled")),e.listOnEmpty&&(e.listOnEmpty=!1,console.warn("list editor config error - listOnEmpty option is only available when autocomplete is enabled"))),e.filterRemote&&!(typeof e.valuesLookup=="function"||e.valuesURL)&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option should only be used when values list is populated from a remote source")),e}_bindInputEvents(e){e.addEventListener("focus",this._inputFocus.bind(this)),e.addEventListener("click",this._inputClick.bind(this)),e.addEventListener("blur",this._inputBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e.addEventListener("search",this._inputSearch.bind(this)),this.params.autocomplete&&e.addEventListener("keyup",this._inputKeyUp.bind(this))}_inputFocus(e){this.rebuildOptionsList()}_filter(){this.params.filterRemote?(clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout(()=>{this.rebuildOptionsList()},this.params.filterDelay)):this._filterList()}_inputClick(e){e.stopPropagation()}_inputBlur(e){this.blurable&&(this.popup?this.popup.hide():this._resolveValue(!0))}_inputSearch(){this._clearChoices()}_inputKeyDown(e){switch(e.keyCode){case 38:this._keyUp(e);break;case 40:this._keyDown(e);break;case 37:case 39:this._keySide(e);break;case 13:this._keyEnter();break;case 27:this._keyEsc();break;case 36:case 35:this._keyHomeEnd(e);break;case 9:this._keyTab(e);break;default:this._keySelectLetter(e)}}_inputKeyUp(e){switch(e.keyCode){case 38:case 37:case 39:case 40:case 13:case 27:break;default:this._keyAutoCompLetter(e)}}_preventPopupBlur(){this.popup&&this.popup.blockHide(),setTimeout(()=>{this.popup&&this.popup.restoreHide()},10)}_preventBlur(){this.blurable=!1,setTimeout(()=>{this.blurable=!0},10)}_keyTab(e){this.params.autocomplete&&this.lastAction==="typing"?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem,!0)}_keyUp(e){var t=this.displayItems.indexOf(this.focusedItem);(this.params.verticalNavigation=="editor"||this.params.verticalNavigation=="hybrid"&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t>0&&this._focusItem(this.displayItems[t-1]))}_keyDown(e){var t=this.displayItems.indexOf(this.focusedItem);(this.params.verticalNavigation=="editor"||this.params.verticalNavigation=="hybrid"&&t<this.displayItems.length-1)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t<this.displayItems.length-1&&(t==-1?this._focusItem(this.displayItems[0]):this._focusItem(this.displayItems[t+1])))}_keySide(e){this.params.autocomplete||(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}_keyEnter(e){this.params.autocomplete&&this.lastAction==="typing"?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem)}_keyEsc(e){this._cancel()}_keyHomeEnd(e){this.params.autocomplete&&e.stopImmediatePropagation()}_keySelectLetter(e){this.params.autocomplete||(e.preventDefault(),e.keyCode>=38&&e.keyCode<=90&&this._scrollToValue(e.keyCode))}_keyAutoCompLetter(e){this._filter(),this.lastAction="typing",this.typing=!0}_scrollToValue(e){clearTimeout(this.filterTimeout);var t=String.fromCharCode(e).toLowerCase();this.filterTerm+=t.toLowerCase();var i=this.displayItems.find(a=>typeof a.label<"u"&&a.label.toLowerCase().startsWith(this.filterTerm));i&&this._focusItem(i),this.filterTimeout=setTimeout(()=>{this.filterTerm=""},800)}_focusItem(e){this.lastAction="focus",this.focusedItem&&this.focusedItem.element&&this.focusedItem.element.classList.remove("focused"),this.focusedItem=e,e&&e.element&&(e.element.classList.add("focused"),e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}headerFilterInitialListGen(){this._generateOptions(!0)}rebuildOptionsList(){this._generateOptions().then(this._sortOptions.bind(this)).then(this._buildList.bind(this)).then(this._showList.bind(this)).catch(e=>{Number.isInteger(e)||console.error("List generation error",e)})}_filterList(){this._buildList(this._filterOptions()),this._showList()}_generateOptions(e){var t=[],i=++this.listIteration;return this.filtered=!1,this.params.values?t=this.params.values:this.params.valuesURL?t=this._ajaxRequest(this.params.valuesURL,this.input.value):typeof this.params.valuesLookup=="function"?t=this.params.valuesLookup(this.cell,this.input.value):this.params.valuesLookup&&(t=this._uniqueColumnValues(this.params.valuesLookupField)),t instanceof Promise?(e||this._addPlaceholder(this.params.placeholderLoading),t.then().then(a=>this.listIteration===i?this._parseList(a):Promise.reject(i))):Promise.resolve(this._parseList(t))}_addPlaceholder(e){var t=document.createElement("div");typeof e=="function"&&(e=e(this.cell.getComponent(),this.listEl)),e&&(this._clearList(),e instanceof HTMLElement?t=e:(t.classList.add("tabulator-edit-list-placeholder"),t.innerHTML=e),this.listEl.appendChild(t),this._showList())}_ajaxRequest(e,t){var i=this.params.filterRemote?{term:t}:{};return e=vx(e,{},i),fetch(e).then(a=>a.ok?a.json().catch(n=>(console.warn("List Ajax Load Error - Invalid JSON returned",n),Promise.reject(n))):(console.error("List Ajax Load Error - Connection Error: "+a.status,a.statusText),Promise.reject(a))).catch(a=>(console.error("List Ajax Load Error - Connection Error: ",a),Promise.reject(a)))}_uniqueColumnValues(e){var t={},i=this.table.getData(this.params.valuesLookup),a;return e?a=this.table.columnManager.getColumnByField(e):a=this.cell.getColumn()._getSelf(),a?i.forEach(n=>{var r=a.getFieldValue(n);this._emptyValueCheck(r)||(this.params.multiselect&&Array.isArray(r)?r.forEach(l=>{this._emptyValueCheck(l)||(t[l]=!0)}):t[r]=!0)}):(console.warn("unable to find matching column to create select lookup list:",e),t=[]),Object.keys(t)}_emptyValueCheck(e){return e===null||typeof e>"u"||e===""}_parseList(e){var t=[];return Array.isArray(e)||(e=Object.entries(e).map(([i,a])=>({label:a,value:i}))),e.forEach(i=>{typeof i!="object"&&(i={label:i,value:i}),this._parseListItem(i,t,0)}),!this.currentItems.length&&this.params.freetext&&(this.input.value=this.initialValues,this.typing=!0,this.lastAction="typing"),this.data=t,t}_parseListItem(e,t,i){var a={};e.options?a=this._parseListGroup(e,i+1):(a={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,selected:!1,visible:!0,level:i,original:e},this.initialValues&&this.initialValues.indexOf(e.value)>-1&&this._chooseItem(a,!0)),t.push(a)}_parseListGroup(e,t){var i={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,visible:!0,level:t,options:[],original:e};return e.options.forEach(a=>{this._parseListItem(a,i.options,t)}),i}_sortOptions(e){var t;return this.params.sort&&(t=typeof this.params.sort=="function"?this.params.sort:this._defaultSortFunction.bind(this),this._sortGroup(t,e)),e}_sortGroup(e,t){t.sort((i,a)=>e(i.label,a.label,i.value,a.value,i.original,a.original)),t.forEach(i=>{i.group&&this._sortGroup(e,i.options)})}_defaultSortFunction(e,t){var i,a,n,r,l=0,h,d=/(\d+)|(\D+)/g,u=/\d/,p=0;if(this.params.sort==="desc"&&([e,t]=[t,e]),!e&&e!==0)p=!t&&t!==0?0:-1;else if(!t&&t!==0)p=1;else{if(isFinite(e)&&isFinite(t))return e-t;if(i=String(e).toLowerCase(),a=String(t).toLowerCase(),i===a)return 0;if(!(u.test(i)&&u.test(a)))return i>a?1:-1;for(i=i.match(d),a=a.match(d),h=i.length>a.length?a.length:i.length;l<h;)if(n=i[l],r=a[l++],n!==r)return isFinite(n)&&isFinite(r)?(n.charAt(0)==="0"&&(n="."+n),r.charAt(0)==="0"&&(r="."+r),n-r):n>r?1:-1;return i.length>a.length}return p}_filterOptions(){var e=this.params.filterFunc||this._defaultFilterFunc,t=this.input.value;return t?(this.filtered=!0,this.data.forEach(i=>{this._filterItem(e,t,i)})):this.filtered=!1,this.data}_filterItem(e,t,i){var a=!1;return i.group?(i.options.forEach(n=>{this._filterItem(e,t,n)&&(a=!0)}),i.visible=a):i.visible=e(t,i.label,i.value,i.original),i.visible}_defaultFilterFunc(e,t,i,a){return e=String(e).toLowerCase(),t!==null&&typeof t<"u"&&(String(t).toLowerCase().indexOf(e)>-1||String(i).toLowerCase().indexOf(e)>-1)}_clearList(){for(;this.listEl.firstChild;)this.listEl.removeChild(this.listEl.firstChild);this.displayItems=[]}_buildList(e){this._clearList(),e.forEach(t=>{this._buildItem(t)}),this.displayItems.length||this._addPlaceholder(this.params.placeholderEmpty)}_buildItem(e){var t=e.element,i;if(!this.filtered||e.visible){if(!t){if(t=document.createElement("div"),t.tabIndex=0,i=this.params.itemFormatter?this.params.itemFormatter(e.label,e.value,e.original,t):e.label,i instanceof HTMLElement?t.appendChild(i):t.innerHTML=i,e.group?t.classList.add("tabulator-edit-list-group"):t.classList.add("tabulator-edit-list-item"),t.classList.add("tabulator-edit-list-group-level-"+e.level),e.elementAttributes&&typeof e.elementAttributes=="object")for(let a in e.elementAttributes)a.charAt(0)=="+"?(a=a.slice(1),t.setAttribute(a,this.input.getAttribute(a)+e.elementAttributes["+"+a])):t.setAttribute(a,e.elementAttributes[a]);e.group?t.addEventListener("click",this._groupClick.bind(this,e)):t.addEventListener("click",this._itemClick.bind(this,e)),t.addEventListener("mousedown",this._preventBlur.bind(this)),e.element=t}this._styleItem(e),this.listEl.appendChild(t),e.group?e.options.forEach(a=>{this._buildItem(a)}):this.displayItems.push(e)}}_showList(){var e=this.popup&&this.popup.isVisible();if(this.input.parentNode){if(this.params.autocomplete&&this.input.value===""&&!this.params.listOnEmpty){this.popup&&this.popup.hide(!0);return}this._setListWidth(),this.popup||(this.popup=this.edit.popup(this.listEl)),this.popup.show(this.cell.getElement(),"bottom"),e||setTimeout(()=>{this.popup.hideOnBlur(this._resolveValue.bind(this,!0))},10)}}_styleItem(e){e&&e.element&&(e.selected?e.element.classList.add("active"):e.element.classList.remove("active"))}_itemClick(e,t){t.stopPropagation(),this._chooseItem(e)}_groupClick(e,t){t.stopPropagation()}_cancel(){this.popup.hide(!0),this.actions.cancel()}_clearChoices(){this.typing=!0,this.currentItems.forEach(e=>{e.selected=!1,this._styleItem(e)}),this.currentItems=[],this.focusedItem=null}_chooseItem(e,t){var i;this.typing=!1,this.params.multiselect?(i=this.currentItems.indexOf(e),i>-1?(this.currentItems.splice(i,1),e.selected=!1):(this.currentItems.push(e),e.selected=!0),this.input.value=this.currentItems.map(a=>a.label).join(","),this._styleItem(e)):(this.currentItems=[e],e.selected=!0,this.input.value=e.label,this._styleItem(e),t||this._resolveValue()),this._focusItem(e)}_resolveValue(e){var t,i;if(this.popup&&this.popup.hide(!0),this.params.multiselect)t=this.currentItems.map(a=>a.value);else if(e&&this.params.autocomplete&&this.typing)if(this.params.freetext||this.params.allowEmpty&&this.input.value==="")t=this.input.value;else{this.actions.cancel();return}else this.currentItems[0]?t=this.currentItems[0].value:(i=Array.isArray(this.initialValues)?this.initialValues[0]:this.initialValues,i===null||typeof i>"u"||i===""?t=i:t=this.params.emptyValue);t===""&&(t=this.params.emptyValue),this.actions.success(t),this.isFilter&&(this.initialValues=t&&!Array.isArray(t)?[t]:t,this.currentItems=[])}};function ES(o,e,t,i,a){var n=new LS(this,o,e,t,i,a);return n.input}function SS(o,e,t,i,a){var n=this,r=o.getElement(),l=o.getValue(),h=r.getElementsByTagName("svg").length||5,d=r.getElementsByTagName("svg")[0]?r.getElementsByTagName("svg")[0].getAttribute("width"):14,u=[],p=document.createElement("div"),y=document.createElementNS("http://www.w3.org/2000/svg","svg");function f(m){u.forEach(function(M,w){w<m?(n.table.browser=="ie"?M.setAttribute("class","tabulator-star-active"):M.classList.replace("tabulator-star-inactive","tabulator-star-active"),M.innerHTML='<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>'):(n.table.browser=="ie"?M.setAttribute("class","tabulator-star-inactive"):M.classList.replace("tabulator-star-active","tabulator-star-inactive"),M.innerHTML='<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>')})}function g(m){var M=document.createElement("span"),w=y.cloneNode(!0);u.push(w),M.addEventListener("mouseenter",function(C){C.stopPropagation(),C.stopImmediatePropagation(),f(m)}),M.addEventListener("mousemove",function(C){C.stopPropagation(),C.stopImmediatePropagation()}),M.addEventListener("click",function(C){C.stopPropagation(),C.stopImmediatePropagation(),t(m),r.blur()}),M.appendChild(w),p.appendChild(M)}function k(m){l=m,f(m)}if(r.style.whiteSpace="nowrap",r.style.overflow="hidden",r.style.textOverflow="ellipsis",p.style.verticalAlign="middle",p.style.display="inline-block",p.style.padding="4px",y.setAttribute("width",d),y.setAttribute("height",d),y.setAttribute("viewBox","0 0 512 512"),y.setAttribute("xml:space","preserve"),y.style.padding="0 1px",a.elementAttributes&&typeof a.elementAttributes=="object")for(let m in a.elementAttributes)m.charAt(0)=="+"?(m=m.slice(1),p.setAttribute(m,p.getAttribute(m)+a.elementAttributes["+"+m])):p.setAttribute(m,a.elementAttributes[m]);for(var v=1;v<=h;v++)g(v);return l=Math.min(parseInt(l),h),f(l),p.addEventListener("mousemove",function(m){f(0)}),p.addEventListener("click",function(m){t(0)}),r.addEventListener("blur",function(m){i()}),r.addEventListener("keydown",function(m){switch(m.keyCode){case 39:k(l+1);break;case 37:k(l-1);break;case 13:t(l);break;case 27:i();break}}),p}function IS(o,e,t,i,a){var n=o.getElement(),r=typeof a.max>"u"?n.getElementsByTagName("div")[0]&&n.getElementsByTagName("div")[0].getAttribute("max")||100:a.max,l=typeof a.min>"u"?n.getElementsByTagName("div")[0]&&n.getElementsByTagName("div")[0].getAttribute("min")||0:a.min,h=(r-l)/100,d=o.getValue()||0,u=document.createElement("div"),p=document.createElement("div"),y,f;function g(){var k=window.getComputedStyle(n,null),v=h*Math.round(p.offsetWidth/((n.clientWidth-parseInt(k.getPropertyValue("padding-left"))-parseInt(k.getPropertyValue("padding-right")))/100))+l;t(v),n.setAttribute("aria-valuenow",v),n.setAttribute("aria-label",d)}if(u.style.position="absolute",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.width="5px",u.classList.add("tabulator-progress-handle"),p.style.display="inline-block",p.style.position="relative",p.style.height="100%",p.style.backgroundColor="#488CE9",p.style.maxWidth="100%",p.style.minWidth="0%",a.elementAttributes&&typeof a.elementAttributes=="object")for(let k in a.elementAttributes)k.charAt(0)=="+"?(k=k.slice(1),p.setAttribute(k,p.getAttribute(k)+a.elementAttributes["+"+k])):p.setAttribute(k,a.elementAttributes[k]);return n.style.padding="4px 4px",d=Math.min(parseFloat(d),r),d=Math.max(parseFloat(d),l),d=Math.round((d-l)/h),p.style.width=d+"%",n.setAttribute("aria-valuemin",l),n.setAttribute("aria-valuemax",r),p.appendChild(u),u.addEventListener("mousedown",function(k){y=k.screenX,f=p.offsetWidth}),u.addEventListener("mouseover",function(){u.style.cursor="ew-resize"}),n.addEventListener("mousemove",function(k){y&&(p.style.width=f+k.screenX-y+"px")}),n.addEventListener("mouseup",function(k){y&&(k.stopPropagation(),k.stopImmediatePropagation(),y=!1,f=!1,g())}),n.addEventListener("keydown",function(k){switch(k.keyCode){case 39:k.preventDefault(),p.style.width=p.clientWidth+n.clientWidth/100+"px";break;case 37:k.preventDefault(),p.style.width=p.clientWidth-n.clientWidth/100+"px";break;case 9:case 13:g();break;case 27:i();break}}),n.addEventListener("blur",function(){i()}),p}function TS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input"),l=a.tristate,h=typeof a.indeterminateValue>"u"?null:a.indeterminateValue,d=!1,u=Object.keys(a).includes("trueValue"),p=Object.keys(a).includes("falseValue");if(r.setAttribute("type","checkbox"),r.style.marginTop="5px",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let f in a.elementAttributes)f.charAt(0)=="+"?(f=f.slice(1),r.setAttribute(f,r.getAttribute(f)+a.elementAttributes["+"+f])):r.setAttribute(f,a.elementAttributes[f]);r.value=n,l&&(typeof n>"u"||n===h||n==="")&&(d=!0,r.indeterminate=!0),this.table.browser!="firefox"&&this.table.browser!="safari"&&e(function(){o.getType()==="cell"&&r.focus({preventScroll:!0})}),r.checked=u?n===a.trueValue:n===!0||n==="true"||n==="True"||n===1;function y(f){var g=r.checked;return u&&g?g=a.trueValue:p&&!g&&(g=a.falseValue),l?f?d?h:g:r.checked&&!d?(r.checked=!1,r.indeterminate=!0,d=!0,h):(d=!1,g):g}return r.addEventListener("change",function(f){t(y())}),r.addEventListener("blur",function(f){t(y(!0))}),r.addEventListener("keydown",function(f){f.keyCode==13&&t(y()),f.keyCode==27&&i()}),r}function DS(o,e,t,i,a){var n=o._getSelf().column,r,l,h;function d(u){var p=u.getValue(),y="input";switch(typeof p){case"number":y="number";break;case"boolean":y="tickCross";break;case"string":p.includes(`
|
|
6
|
-
`)&&(y="textarea");break}return y}return r=a.editorLookup?a.editorLookup(o):d(o),a.paramsLookup&&(h=typeof a.paramsLookup=="function"?a.paramsLookup(r,o):a.paramsLookup[r]),l=this.table.modules.edit.lookupEditor(r,n),l.call(this,o,e,t,i,h||{})}var zS={input:kS,textarea:vS,number:bS,range:wS,date:MS,time:CS,datetime:xS,list:ES,star:SS,progress:IS,tickCross:TS,adaptable:DS};const mn=class mn extends q{constructor(e){super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.convertEmptyValues=!1,this.editors=mn.editors,this.registerTableOption("editTriggerEvent","focus"),this.registerTableOption("editorEmptyValue"),this.registerTableOption("editorEmptyValueFunc",this.emptyValueCheck.bind(this)),this.registerColumnOption("editable"),this.registerColumnOption("editor"),this.registerColumnOption("editorParams"),this.registerColumnOption("editorEmptyValue"),this.registerColumnOption("editorEmptyValueFunc"),this.registerColumnOption("cellEditing"),this.registerColumnOption("cellEdited"),this.registerColumnOption("cellEditCancelled"),this.registerTableFunction("getEditedCells",this.getEditedCells.bind(this)),this.registerTableFunction("clearCellEdited",this.clearCellEdited.bind(this)),this.registerTableFunction("navigatePrev",this.navigatePrev.bind(this)),this.registerTableFunction("navigateNext",this.navigateNext.bind(this)),this.registerTableFunction("navigateLeft",this.navigateLeft.bind(this)),this.registerTableFunction("navigateRight",this.navigateRight.bind(this)),this.registerTableFunction("navigateUp",this.navigateUp.bind(this)),this.registerTableFunction("navigateDown",this.navigateDown.bind(this)),this.registerComponentFunction("cell","isEdited",this.cellIsEdited.bind(this)),this.registerComponentFunction("cell","clearEdited",this.clearEdited.bind(this)),this.registerComponentFunction("cell","edit",this.editCell.bind(this)),this.registerComponentFunction("cell","cancelEdit",this.cellCancelEdit.bind(this)),this.registerComponentFunction("cell","navigatePrev",this.navigatePrev.bind(this)),this.registerComponentFunction("cell","navigateNext",this.navigateNext.bind(this)),this.registerComponentFunction("cell","navigateLeft",this.navigateLeft.bind(this)),this.registerComponentFunction("cell","navigateRight",this.navigateRight.bind(this)),this.registerComponentFunction("cell","navigateUp",this.navigateUp.bind(this)),this.registerComponentFunction("cell","navigateDown",this.navigateDown.bind(this))}initialize(){this.subscribe("cell-init",this.bindEditor.bind(this)),this.subscribe("cell-delete",this.clearEdited.bind(this)),this.subscribe("cell-value-changed",this.updateCellClass.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("column-delete",this.columnDeleteCheck.bind(this)),this.subscribe("row-deleting",this.rowDeleteCheck.bind(this)),this.subscribe("row-layout",this.rowEditableCheck.bind(this)),this.subscribe("data-refreshing",this.cancelEdit.bind(this)),this.subscribe("clipboard-paste",this.pasteBlocker.bind(this)),this.subscribe("keybinding-nav-prev",this.navigatePrev.bind(this,void 0)),this.subscribe("keybinding-nav-next",this.keybindingNavigateNext.bind(this)),this.subscribe("keybinding-nav-up",this.navigateUp.bind(this,void 0)),this.subscribe("keybinding-nav-down",this.navigateDown.bind(this,void 0)),Object.keys(this.table.options).includes("editorEmptyValue")&&(this.convertEmptyValues=!0)}pasteBlocker(e){if(this.currentCell)return!0}keybindingNavigateNext(e){var t=this.currentCell,i=this.options("tabEndNewRow");t&&(this.navigateNext(t,e)||i&&(t.getElement().firstChild.blur(),this.invalidEdit||(i===!0?i=this.table.addRow({}):typeof i=="function"?i=this.table.addRow(i(t.row.getComponent())):i=this.table.addRow(Object.assign({},i)),i.then(()=>{setTimeout(()=>{t.getComponent().navigateNext()})}))))}cellIsEdited(e){return!!e.modules.edit&&e.modules.edit.edited}cellCancelEdit(e){e===this.currentCell?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}updateCellClass(e){this.allowEdit(e)?e.getElement().classList.add("tabulator-editable"):e.getElement().classList.remove("tabulator-editable")}clearCellEdited(e){e||(e=this.table.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.table.modules.edit.clearEdited(t._getSelf())})}navigatePrev(e=this.currentCell,t){var i,a;if(e){if(t&&t.preventDefault(),i=this.navigateLeft(),i)return!0;if(a=this.table.rowManager.prevDisplayRow(e.row,!0),a&&(i=this.findPrevEditableCell(a,a.cells.length),i))return i.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var i,a;if(e){if(t&&t.preventDefault(),i=this.navigateRight(),i)return!0;if(a=this.table.rowManager.nextDisplayRow(e.row,!0),a&&(i=this.findNextEditableCell(a,-1),i))return i.getComponent().edit(),!0}return!1}navigateLeft(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.findPrevEditableCell(e.row,i),a)?(a.getComponent().edit(),!0):!1}navigateRight(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.findNextEditableCell(e.row,i),a)?(a.getComponent().edit(),!0):!1}navigateUp(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.table.rowManager.prevDisplayRow(e.row,!0),a)?(a.cells[i].getComponent().edit(),!0):!1}navigateDown(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.table.rowManager.nextDisplayRow(e.row,!0),a)?(a.cells[i].getComponent().edit(),!0):!1}findNextEditableCell(e,t){var i=!1;if(t<e.cells.length-1)for(var a=t+1;a<e.cells.length;a++){let n=e.cells[a];if(n.column.modules.edit&&G.elVisible(n.getElement())&&this.allowEdit(n)){i=n;break}}return i}findPrevEditableCell(e,t){var i=!1;if(t>0)for(var a=t-1;a>=0;a--){let n=e.cells[a];if(n.column.modules.edit&&G.elVisible(n.getElement())&&this.allowEdit(n)){i=n;break}}return i}initializeColumnCheck(e){typeof e.definition.editor<"u"&&this.initializeColumn(e)}columnDeleteCheck(e){this.currentCell&&this.currentCell.column===e&&this.cancelEdit()}rowDeleteCheck(e){this.currentCell&&this.currentCell.row===e&&this.cancelEdit()}rowEditableCheck(e){e.getCells().forEach(t=>{t.column.modules.edit&&typeof t.column.modules.edit.check=="function"&&this.updateCellClass(t)})}initializeColumn(e){var t=Object.keys(e.definition).includes("editorEmptyValue"),i={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{},convertEmptyValues:t,editorEmptyValue:e.definition.editorEmptyValue,editorEmptyValueFunc:e.definition.editorEmptyValueFunc};i.editor=this.lookupEditor(e.definition.editor,e),i.editor&&(e.modules.edit=i)}lookupEditor(e,t){var i;switch(typeof e){case"string":this.editors[e]?i=this.editors[e]:console.warn("Editor Error - No such editor found: ",e);break;case"function":i=e;break;case"boolean":e===!0&&(typeof t.definition.formatter!="function"?this.editors[t.definition.formatter]?i=this.editors[t.definition.formatter]:i=this.editors.input:console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",t.definition.formatter));break}return i}getCurrentCell(){return this.currentCell?this.currentCell.getComponent():!1}clearEditor(e){var t=this.currentCell,i;if(this.invalidEdit=!1,t){for(this.currentCell=!1,i=t.getElement(),this.dispatch("edit-editor-clear",t,e),i.classList.remove("tabulator-editing");i.firstChild;)i.removeChild(i.firstChild);t.row.getElement().classList.remove("tabulator-editing"),t.table.element.classList.remove("tabulator-editing")}}cancelEdit(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),(e.column.definition.editor=="textarea"||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.definition.cellEditCancelled&&e.column.definition.cellEditCancelled.call(this.table,t),this.dispatch("edit-cancelled",e),this.dispatchExternal("cellEditCancelled",t)}}bindEditor(e){if(e.column.modules.edit){var t=this,i=e.getElement(!0);this.updateCellClass(e),i.setAttribute("tabindex",0),i.addEventListener("mousedown",function(a){a.button===2?a.preventDefault():t.mouseClick=!0}),this.options("editTriggerEvent")==="dblclick"&&i.addEventListener("dblclick",function(a){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,a,!1))}),(this.options("editTriggerEvent")==="focus"||this.options("editTriggerEvent")==="click")&&i.addEventListener("click",function(a){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,a,!1))}),this.options("editTriggerEvent")==="focus"&&i.addEventListener("focus",function(a){t.recursionBlock||t.edit(e,a,!1)})}}focusCellNoEvent(e,t){this.recursionBlock=!0,t&&this.table.browser==="ie"||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1}editCell(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)}focusScrollAdjust(e){if(this.table.rowManager.getRenderMode()=="virtual"){var t=this.table.rowManager.element.scrollTop,i=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,a=e.row.getElement();a.offsetTop<t?this.table.rowManager.element.scrollTop-=t-a.offsetTop:a.offsetTop+a.offsetHeight>i&&(this.table.rowManager.element.scrollTop+=a.offsetTop+a.offsetHeight-i);var n=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,l=e.getElement();this.table.modExists("frozenColumns")&&(n+=parseInt(this.table.modules.frozenColumns.leftMargin||0),r-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),this.table.options.renderHorizontal==="virtual"&&(n-=parseInt(this.table.columnManager.renderer.vDomPadLeft),r-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),l.offsetLeft<n?this.table.rowManager.element.scrollLeft-=n-l.offsetLeft:l.offsetLeft+l.offsetWidth>r&&(this.table.rowManager.element.scrollLeft+=l.offsetLeft+l.offsetWidth-r)}}allowEdit(e){var t=!!e.column.modules.edit;if(e.column.modules.edit)switch(typeof e.column.modules.edit.check){case"function":e.row.initialized&&(t=e.column.modules.edit.check(e.getComponent()));break;case"string":t=!!e.row.data[e.column.modules.edit.check];break;case"boolean":t=e.column.modules.edit.check;break}return t}edit(e,t,i){var a=this,n=!0,r=function(){},l=e.getElement(),h=!1,d,u,p;if(this.currentCell){!this.invalidEdit&&this.currentCell!==e&&this.cancelEdit();return}function y(m){if(a.currentCell===e&&!h){var M=a.chain("edit-success",[e,m],!0,!0);return M===!0||a.table.options.validationMode==="highlight"?(h=!0,a.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,a.editedCells.indexOf(e)==-1&&a.editedCells.push(e),m=a.transformEmptyValues(m,e),e.setValue(m,!0),M===!0):(h=!0,a.invalidEdit=!0,a.focusCellNoEvent(e,!0),r(),setTimeout(()=>{h=!1},10),!1)}}function f(){a.currentCell===e&&!h&&a.cancelEdit()}function g(m){r=m}if(e.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(l),!1;if(t&&t.stopPropagation(),n=this.allowEdit(e),n||i){if(a.cancelEdit(),a.currentCell=e,this.focusScrollAdjust(e),u=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,u)),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,u),this.dispatch("cell-editing",e),this.dispatchExternal("cellEditing",u),p=typeof e.column.modules.edit.params=="function"?e.column.modules.edit.params(u):e.column.modules.edit.params,d=e.column.modules.edit.editor.call(a,u,g,y,f,p),this.currentCell&&d!==!1)if(d instanceof Node){for(l.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-editing"),e.table.element.classList.add("tabulator-editing");l.firstChild;)l.removeChild(l.firstChild);l.appendChild(d),r();for(var k=l.children,v=0;v<k.length;v++)k[v].addEventListener("click",function(m){m.stopPropagation()})}else return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",d),this.blur(l),!1;else return this.blur(l),!1;return!0}else return this.mouseClick=!1,this.blur(l),!1}emptyValueCheck(e){return e===""||e===null||typeof e>"u"}transformEmptyValues(e,t){var i=t.column.modules.edit,a=i.convertEmptyValues||this.convertEmptyValues,n;return a&&(n=i.editorEmptyValueFunc||this.options("editorEmptyValueFunc"),n&&n(e)&&(e=i.convertEmptyValues?i.editorEmptyValue:this.options("editorEmptyValue"))),e}blur(e){this.confirm("edit-blur",[e])||e.blur()}getEditedCells(){var e=[];return this.editedCells.forEach(t=>{e.push(t.getComponent())}),e}clearEdited(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,this.dispatch("edit-edited-clear",e)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)}};E(mn,"moduleName","edit"),E(mn,"editors",zS);let z9=mn;class PC{constructor(e,t,i,a){this.type=e,this.columns=t,this.component=i||!1,this.indent=a||0}}class d9{constructor(e,t,i,a,n){this.value=e,this.component=t||!1,this.width=i,this.height=a,this.depth=n}}var RS={},HS={visible:function(){return this.rowManager.getVisibleRows(!1,!0)},all:function(){return this.rowManager.rows},selected:function(){return this.modules.selectRow.selectedRows},active:function(){return this.options.pagination?this.rowManager.getDisplayRows(this.rowManager.displayRows.length-2):this.rowManager.getDisplayRows()}};const _e=class _e extends q{constructor(e){super(e),this.config={},this.cloneTableStyle=!0,this.colVisProp="",this.colVisPropAttach="",this.registerTableOption("htmlOutputConfig",!1),this.registerColumnOption("htmlOutput"),this.registerColumnOption("titleHtmlOutput")}initialize(){this.registerTableFunction("getHtml",this.getHtml.bind(this))}generateExportList(e,t,i,a){var n,r,l,h;return this.cloneTableStyle=t,this.config=e||{},this.colVisProp=a,this.colVisPropAttach=this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1),h=_e.columnLookups[i],h&&(l=h.call(this.table),l=l.filter(d=>this.columnVisCheck(d))),n=this.config.columnHeaders!==!1?this.headersToExportRows(this.generateColumnGroupHeaders(l)):[],l&&(l=l.map(d=>d.getComponent())),r=this.bodyToExportRows(this.rowLookup(i),l),n.concat(r)}generateTable(e,t,i,a){var n=this.generateExportList(e,t,i,a);return this.generateTableElement(n)}rowLookup(e){var t=[],i;return typeof e=="function"?e.call(this.table).forEach(a=>{a=this.table.rowManager.findRow(a),a&&t.push(a)}):(i=_e.rowLookups[e]||_e.rowLookups.active,t=i.call(this.table)),Object.assign([],t)}generateColumnGroupHeaders(e){var t=[];return e||(e=this.config.columnGroups!==!1?this.table.columnManager.columns:this.table.columnManager.columnsByIndex),e.forEach(i=>{var a=this.processColumnGroup(i);a&&t.push(a)}),t}processColumnGroup(e){var t=e.columns,i=0,a=e.definition["title"+this.colVisPropAttach]||e.definition.title,n={title:a,column:e,depth:1};if(t.length){if(n.subGroups=[],n.width=0,t.forEach(r=>{var l=this.processColumnGroup(r);l&&(n.width+=l.width,n.subGroups.push(l),l.depth>i&&(i=l.depth))}),n.depth+=i,!n.width)return!1}else if(this.columnVisCheck(e))n.width=1;else return!1;return n}columnVisCheck(e){var t=e.definition[this.colVisProp];return this.config.rowHeaders===!1&&e.isRowHeader?!1:(typeof t=="function"&&(t=t.call(this.table,e.getComponent())),t===!1||t===!0?t:e.visible&&e.field)}headersToExportRows(e){var t=[],i=0,a=[];function n(r,l){var h=i-l;if(typeof t[l]>"u"&&(t[l]=[]),r.height=r.subGroups?1:h-r.depth+1,t[l].push(r),r.height>1)for(let d=1;d<r.height;d++)typeof t[l+d]>"u"&&(t[l+d]=[]),t[l+d].push(!1);if(r.width>1)for(let d=1;d<r.width;d++)t[l].push(!1);r.subGroups&&r.subGroups.forEach(function(d){n(d,l+1)})}return e.forEach(function(r){r.depth>i&&(i=r.depth)}),e.forEach(function(r){n(r,0)}),t.forEach(r=>{var l=[];r.forEach(h=>{if(h){let d=typeof h.title>"u"?"":h.title;l.push(new d9(d,h.column.getComponent(),h.width,h.height,h.depth))}else l.push(null)}),a.push(new PC("header",l))}),a}bodyToExportRows(e,t=[]){var i=[];return t.length===0&&this.table.columnManager.columnsByIndex.forEach(a=>{this.columnVisCheck(a)&&t.push(a.getComponent())}),this.config.columnCalcs!==!1&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(a=>{switch(a.type){case"group":return this.config.rowGroups!==!1;case"calc":return this.config.columnCalcs!==!1;case"row":return!(this.table.options.dataTree&&this.config.dataTree===!1&&a.modules.dataTree.parent)}return!0}),e.forEach((a,n)=>{var r=a.getData(this.colVisProp),l=[],h=0;switch(a.type){case"group":h=a.level,l.push(new d9(a.key,a.getComponent(),t.length,1));break;case"calc":case"row":t.forEach(d=>{l.push(new d9(d._column.getFieldValue(r),d,1,1))}),this.table.options.dataTree&&this.config.dataTree!==!1&&(h=a.modules.dataTree.index);break}i.push(new PC(a.type,l,a.getComponent(),h))}),i}generateTableElement(e){var t=document.createElement("table"),i=document.createElement("thead"),a=document.createElement("tbody"),n=this.lookupTableStyles(),r=this.table.options["rowFormatter"+this.colVisPropAttach],l={};return l.rowFormatter=r!==null?r:this.table.options.rowFormatter,this.table.options.dataTree&&this.config.dataTree!==!1&&this.table.modExists("columnCalcs")&&(l.treeElementField=this.table.modules.dataTree.elementField),l.groupHeader=this.table.options["groupHeader"+this.colVisPropAttach],l.groupHeader&&!Array.isArray(l.groupHeader)&&(l.groupHeader=[l.groupHeader]),t.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),i,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach((h,d)=>{let u;switch(h.type){case"header":i.appendChild(this.generateHeaderElement(h,l,n));break;case"group":a.appendChild(this.generateGroupElement(h,l,n));break;case"calc":a.appendChild(this.generateCalcElement(h,l,n));break;case"row":u=this.generateRowElement(h,l,n),this.mapElementStyles(d%2&&n.evenRow?n.evenRow:n.oddRow,u,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a.appendChild(u);break}}),i.innerHTML&&t.appendChild(i),t.appendChild(a),this.mapElementStyles(this.table.element,t,["border-top","border-left","border-right","border-bottom"]),t}lookupTableStyles(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.styleRowHeader=e.firstRow.getElementsByClassName("tabulator-row-header")[0],e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e}generateHeaderElement(e,t,i){var a=document.createElement("tr");return e.columns.forEach(n=>{if(n){var r=document.createElement("th"),l=n.component._column.definition.cssClass?n.component._column.definition.cssClass.split(" "):[];r.colSpan=n.width,r.rowSpan=n.height,r.innerHTML=n.value,this.cloneTableStyle&&(r.style.boxSizing="border-box"),l.forEach(function(h){r.classList.add(h)}),this.mapElementStyles(n.component.getElement(),r,["text-align","border-left","border-right","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(n.component._column.contentElement,r,["padding-top","padding-left","padding-right","padding-bottom"]),n.component._column.visible?this.mapElementStyles(n.component.getElement(),r,["width"]):n.component._column.definition.width&&(r.style.width=n.component._column.definition.width+"px"),n.component._column.parent&&n.component._column.parent.isGroup?this.mapElementStyles(n.component._column.parent.groupElement,r,["border-top"]):this.mapElementStyles(n.component.getElement(),r,["border-top"]),n.component._column.isGroup?this.mapElementStyles(n.component.getElement(),r,["border-bottom"]):this.mapElementStyles(this.table.columnManager.getElement(),r,["border-bottom"]),a.appendChild(r)}}),a}generateGroupElement(e,t,i){var a=document.createElement("tr"),n=document.createElement("td"),r=e.columns[0];return a.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):t.groupHeader!==!1&&(r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)),n.colSpan=r.width,n.innerHTML=r.value,a.classList.add("tabulator-print-table-group"),a.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&a.classList.add("tabulator-group-visible"),this.mapElementStyles(i.firstGroup,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(i.firstGroup,n,["padding-top","padding-left","padding-right","padding-bottom"]),a.appendChild(n),a}generateCalcElement(e,t,i){var a=this.generateRowElement(e,t,i);return a.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(i.calcRow,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a}generateRowElement(e,t,i){var a=document.createElement("tr");if(a.classList.add("tabulator-print-table-row"),e.columns.forEach((n,r)=>{if(n){var l=document.createElement("td"),h=n.component._column,d=this.table,u=d.columnManager.findColumnIndex(h),p=n.value,y,f,g={modules:{},getValue:function(){return p},getField:function(){return h.definition.field},getElement:function(){return l},getType:function(){return"cell"},getColumn:function(){return h.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getTable:function(){return d},getComponent:function(){return g},column:h},k=h.definition.cssClass?h.definition.cssClass.split(" "):[];if(k.forEach(function(v){l.classList.add(v)}),this.table.modExists("format")&&this.config.formatCells!==!1)p=this.table.modules.format.formatExportValue(g,this.colVisProp);else switch(typeof p){case"object":p=p!==null?JSON.stringify(p):"";break;case"undefined":p="";break}p instanceof Node?l.appendChild(p):l.innerHTML=p,f=["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","text-align"],h.isRowHeader?(y=i.styleRowHeader,f.push("background-color")):y=i.styleCells&&i.styleCells[u]?i.styleCells[u]:i.firstCell,y&&(this.mapElementStyles(y,l,f),h.definition.align&&(l.style.textAlign=h.definition.align)),this.table.options.dataTree&&this.config.dataTree!==!1&&(t.treeElementField&&t.treeElementField==h.field||!t.treeElementField&&r==0)&&(e.component._row.modules.dataTree.controlEl&&l.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),l.firstChild),e.component._row.modules.dataTree.branchEl&&l.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),l.firstChild)),a.appendChild(l),g.modules.format&&g.modules.format.renderedCallback&&g.modules.format.renderedCallback()}}),t.rowFormatter&&e.type==="row"&&this.config.formatCells!==!1){let n=Object.assign(e.component);n.getElement=function(){return a},t.rowFormatter(e.component)}return a}generateHTMLTable(e){var t=document.createElement("div");return t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,i,a){var n=this.generateExportList(i||this.table.options.htmlOutputConfig,t,e,a||"htmlOutput");return this.generateHTMLTable(n)}mapElementStyles(e,t,i){if(this.cloneTableStyle&&e&&t){var a={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var n=window.getComputedStyle(e);i.forEach(function(r){t.style[a[r]]||(t.style[a[r]]=n.getPropertyValue(r))})}}}};E(_e,"moduleName","export"),E(_e,"columnLookups",RS),E(_e,"rowLookups",HS);let R9=_e;var AS={"=":function(o,e,t,i){return e==o},"<":function(o,e,t,i){return e<o},"<=":function(o,e,t,i){return e<=o},">":function(o,e,t,i){return e>o},">=":function(o,e,t,i){return e>=o},"!=":function(o,e,t,i){return e!=o},regex:function(o,e,t,i){return typeof o=="string"&&(o=new RegExp(o)),o.test(e)},like:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().indexOf(o.toLowerCase())>-1:!1},keywords:function(o,e,t,i){var a=o.toLowerCase().split(typeof i.separator>"u"?" ":i.separator),n=String(e===null||typeof e>"u"?"":e).toLowerCase(),r=[];return a.forEach(l=>{n.includes(l)&&r.push(!0)}),i.matchAll?r.length===a.length:!!r.length},starts:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().startsWith(o.toLowerCase()):!1},ends:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().endsWith(o.toLowerCase()):!1},in:function(o,e,t,i){return Array.isArray(o)?o.length?o.indexOf(e)>-1:!0:(console.warn("Filter Error - filter value is not an array:",o),!1)}};const He=class He extends q{constructor(e){super(e),this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1,this.tableInitialized=!1,this.registerTableOption("filterMode","local"),this.registerTableOption("initialFilter",!1),this.registerTableOption("initialHeaderFilter",!1),this.registerTableOption("headerFilterLiveFilterDelay",300),this.registerTableOption("placeholderHeaderFilter",!1),this.registerColumnOption("headerFilter"),this.registerColumnOption("headerFilterPlaceholder"),this.registerColumnOption("headerFilterParams"),this.registerColumnOption("headerFilterEmptyCheck"),this.registerColumnOption("headerFilterFunc"),this.registerColumnOption("headerFilterFuncParams"),this.registerColumnOption("headerFilterLiveFilter"),this.registerTableFunction("searchRows",this.searchRows.bind(this)),this.registerTableFunction("searchData",this.searchData.bind(this)),this.registerTableFunction("setFilter",this.userSetFilter.bind(this)),this.registerTableFunction("refreshFilter",this.userRefreshFilter.bind(this)),this.registerTableFunction("addFilter",this.userAddFilter.bind(this)),this.registerTableFunction("getFilters",this.getFilters.bind(this)),this.registerTableFunction("setHeaderFilterFocus",this.userSetHeaderFilterFocus.bind(this)),this.registerTableFunction("getHeaderFilterValue",this.userGetHeaderFilterValue.bind(this)),this.registerTableFunction("setHeaderFilterValue",this.userSetHeaderFilterValue.bind(this)),this.registerTableFunction("getHeaderFilters",this.getHeaderFilters.bind(this)),this.registerTableFunction("removeFilter",this.userRemoveFilter.bind(this)),this.registerTableFunction("clearFilter",this.userClearFilter.bind(this)),this.registerTableFunction("clearHeaderFilter",this.userClearHeaderFilter.bind(this)),this.registerComponentFunction("column","headerFilterFocus",this.setHeaderFilterFocus.bind(this)),this.registerComponentFunction("column","reloadHeaderFilter",this.reloadHeaderFilter.bind(this)),this.registerComponentFunction("column","getHeaderFilterValue",this.getHeaderFilterValue.bind(this)),this.registerComponentFunction("column","setHeaderFilterValue",this.setHeaderFilterValue.bind(this))}initialize(){this.subscribe("column-init",this.initializeColumnHeaderFilter.bind(this)),this.subscribe("column-width-fit-before",this.hideHeaderFilterElements.bind(this)),this.subscribe("column-width-fit-after",this.showHeaderFilterElements.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.subscribe("placeholder",this.generatePlaceholder.bind(this)),this.table.options.filterMode==="remote"&&this.subscribe("data-params",this.remoteFilterParams.bind(this)),this.registerDataHandler(this.filter.bind(this),10)}tableBuilt(){this.table.options.initialFilter&&this.setFilter(this.table.options.initialFilter),this.table.options.initialHeaderFilter&&this.table.options.initialHeaderFilter.forEach(e=>{var t=this.table.columnManager.findColumn(e.field);if(t)this.setHeaderFilterValue(t,e.value);else return console.warn("Column Filter Error - No matching column found:",e.field),!1}),this.tableInitialized=!0}remoteFilterParams(e,t,i,a){return a.filter=this.getFilters(!0,!0),a}generatePlaceholder(e){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,i,a){this.setFilter(e,t,i,a),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(e,t,i,a){this.addFilter(e,t,i,a),this.refreshFilter()}userSetHeaderFilterFocus(e){var t=this.table.columnManager.findColumn(e);if(t)this.setHeaderFilterFocus(t);else return console.warn("Column Filter Focus Error - No matching column found:",e),!1}userGetHeaderFilterValue(e){var t=this.table.columnManager.findColumn(e);if(t)return this.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}userSetHeaderFilterValue(e,t){var i=this.table.columnManager.findColumn(e);if(i)this.setHeaderFilterValue(i,t);else return console.warn("Column Filter Error - No matching column found:",e),!1}userRemoveFilter(e,t,i){this.removeFilter(e,t,i),this.refreshFilter()}userClearFilter(e){this.clearFilter(e),this.refreshFilter()}userClearHeaderFilter(){this.clearHeaderFilter(),this.refreshFilter()}searchRows(e,t,i){return this.search("rows",e,t,i)}searchData(e,t,i){return this.search("data",e,t,i)}initializeColumnHeaderFilter(e){var t=e.definition;t.headerFilter&&this.initializeColumn(e)}initializeColumn(e,t){var i=this,a=e.getField();function n(r){var l=e.modules.filter.tagType=="input"&&e.modules.filter.attrType=="text"||e.modules.filter.tagType=="textarea"?"partial":"match",h="",d="",u;if(typeof e.modules.filter.prevSuccess>"u"||e.modules.filter.prevSuccess!==r){if(e.modules.filter.prevSuccess=r,e.modules.filter.emptyFunc(r))delete i.headerFilters[a];else{switch(e.modules.filter.value=r,typeof e.definition.headerFilterFunc){case"string":He.filters[e.definition.headerFilterFunc]?(h=e.definition.headerFilterFunc,u=function(p){var y=e.definition.headerFilterFuncParams||{},f=e.getFieldValue(p);return y=typeof y=="function"?y(r,f,p):y,He.filters[e.definition.headerFilterFunc](r,f,p,y)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":u=function(p){var y=e.definition.headerFilterFuncParams||{},f=e.getFieldValue(p);return y=typeof y=="function"?y(r,f,p):y,e.definition.headerFilterFunc(r,f,p,y)},h=u;break}if(!u)switch(l){case"partial":u=function(p){var y=e.getFieldValue(p);return typeof y<"u"&&y!==null?String(y).toLowerCase().indexOf(String(r).toLowerCase())>-1:!1},h="like";break;default:u=function(p){return e.getFieldValue(p)==r},h="="}i.headerFilters[a]={value:r,func:u,type:h}}e.modules.filter.value=r,d=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==d&&(i.prevHeaderFilterChangeCheck=d,i.trackChanges(),i.refreshFilter())}return!0}e.modules.filter={success:n,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,i){var a=this,n=e.modules.filter.success,r=e.getField(),l,h,d,u,p,y,f,g;e.modules.filter.value=t;function k(){}function v(m){g=m}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),r){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(m){return!m&&m!==0},l=document.createElement("div"),l.classList.add("tabulator-header-filter"),typeof e.definition.headerFilter){case"string":a.table.modules.edit.editors[e.definition.headerFilter]?(h=a.table.modules.edit.editors[e.definition.headerFilter],(e.definition.headerFilter==="tick"||e.definition.headerFilter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(m){return m!==!0&&m!==!1})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":h=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?h=e.modules.edit.editor:e.definition.formatter&&a.table.modules.edit.editors[e.definition.formatter]?(h=a.table.modules.edit.editors[e.definition.formatter],(e.definition.formatter==="tick"||e.definition.formatter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(m){return m!==!0&&m!==!1})):h=a.table.modules.edit.editors.input;break}if(h){if(u={getValue:function(){return typeof t<"u"?t:""},getField:function(){return e.definition.field},getElement:function(){return l},getColumn:function(){return e.getComponent()},getTable:()=>this.table,getType:()=>"header",getRow:function(){return{normalizeHeight:function(){}}}},f=e.definition.headerFilterParams||{},f=typeof f=="function"?f.call(a.table,u):f,d=h.call(this.table.modules.edit,u,v,n,k,f),!d){console.warn("Filter Error - Cannot add filter to "+r+" column, editor returned a value of false");return}if(!(d instanceof Node)){console.warn("Filter Error - Cannot add filter to "+r+" column, editor should return an instance of Node, the editor returned:",d);return}a.langBind("headerFilters|columns|"+e.definition.field,function(m){d.setAttribute("placeholder",typeof m<"u"&&m?m:e.definition.headerFilterPlaceholder||a.langText("headerFilters|default"))}),d.addEventListener("click",function(m){m.stopPropagation(),d.focus()}),d.addEventListener("focus",m=>{var M=this.table.columnManager.contentsElement.scrollLeft,w=this.table.rowManager.element.scrollLeft;M!==w&&(this.table.rowManager.scrollHorizontal(M),this.table.columnManager.scrollHorizontal(M))}),p=!1,y=function(m){p&&clearTimeout(p),p=setTimeout(function(){n(d.value)},a.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=d,e.modules.filter.attrType=d.hasAttribute("type")?d.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=d.tagName.toLowerCase(),e.definition.headerFilterLiveFilter!==!1&&(e.definition.headerFilter==="autocomplete"||e.definition.headerFilter==="tickCross"||(e.definition.editor==="autocomplete"||e.definition.editor==="tickCross")&&e.definition.headerFilter===!0||(d.addEventListener("keyup",y),d.addEventListener("search",y),e.modules.filter.attrType=="number"&&d.addEventListener("change",function(m){n(d.value)}),e.modules.filter.attrType=="text"&&this.table.browser!=="ie"&&d.setAttribute("type","search")),(e.modules.filter.tagType=="input"||e.modules.filter.tagType=="select"||e.modules.filter.tagType=="textarea")&&d.addEventListener("mousedown",function(m){m.stopPropagation()})),l.appendChild(d),e.contentElement.appendChild(l),i||a.headerFilterColumns.push(e),g&&g()}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)}hideHeaderFilterElements(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})}showHeaderFilterElements(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})}setHeaderFilterFocus(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())}getHeaderFilterValue(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())}setHeaderFilterValue(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}reloadHeaderFilter(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}refreshFilter(){this.tableInitialized&&(this.table.options.filterMode==="remote"?this.reloadData(null,!1,!1):this.refreshData(!0))}trackChanges(){this.changed=!0,this.dispatch("filter-changed")}hasChanged(){var e=this.changed;return this.changed=!1,e}setFilter(e,t,i,a){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:i,params:a}]),this.addFilter(e)}addFilter(e,t,i,a){var n=!1;Array.isArray(e)||(e=[{field:e,type:t,value:i,params:a}]),e.forEach(r=>{r=this.findFilter(r),r&&(this.filterList.push(r),n=!0)}),n&&this.trackChanges()}findFilter(e){var t;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return typeof e.field=="function"?i=function(a){return e.field(a,e.type||{})}:He.filters[e.type]?(t=this.table.columnManager.getColumnByField(e.field),t?i=function(a){return He.filters[e.type](e.value,t.getFieldValue(a),a,e.params||{})}:i=function(a){return He.filters[e.type](e.value,a[e.field],a,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=i,e.func?e:!1}findSubFilters(e){var t=[];return e.forEach(i=>{i=this.findFilter(i),i&&t.push(i)}),t.length?t:!1}getFilters(e,t){var i=[];return e&&(i=this.getHeaderFilters()),t&&i.forEach(function(a){typeof a.type=="function"&&(a.type="function")}),i=i.concat(this.filtersToArray(this.filterList,t)),i}filtersToArray(e,t){var i=[];return e.forEach(a=>{var n;Array.isArray(a)?i.push(this.filtersToArray(a,t)):(n={field:a.field,type:a.type,value:a.value},t&&typeof n.type=="function"&&(n.type="function"),i.push(n))}),i}getHeaderFilters(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e}removeFilter(e,t,i){Array.isArray(e)||(e=[{field:e,type:t,value:i}]),e.forEach(a=>{var n=-1;typeof a.field=="object"?n=this.filterList.findIndex(r=>a===r):n=this.filterList.findIndex(r=>a.field===r.field&&a.type===r.type&&a.value===r.value),n>-1?this.filterList.splice(n,1):console.warn("Filter Error - No matching filter type found, ignoring: ",a.type)}),this.trackChanges()}clearFilter(e){this.filterList=[],e&&this.clearHeaderFilter(),this.trackChanges()}clearHeaderFilter(){this.headerFilters={},this.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(e=>{typeof e.modules.filter.value<"u"&&delete e.modules.filter.value,e.modules.filter.prevSuccess=void 0,this.reloadHeaderFilter(e)}),this.trackChanges()}search(e,t,i,a){var n=[],r=[];return Array.isArray(t)||(t=[{field:t,type:i,value:a}]),t.forEach(l=>{l=this.findFilter(l),l&&r.push(l)}),this.table.rowManager.rows.forEach(l=>{var h=!0;r.forEach(d=>{this.filterRecurse(d,l.getData())||(h=!1)}),h&&n.push(e==="data"?l.getData("data"):l.getComponent())}),n}filter(e,t){var i=[],a=[];return this.subscribedExternal("dataFiltering")&&this.dispatchExternal("dataFiltering",this.getFilters(!0)),this.table.options.filterMode!=="remote"&&(this.filterList.length||Object.keys(this.headerFilters).length)?e.forEach(n=>{this.filterRow(n)&&i.push(n)}):i=e.slice(0),this.subscribedExternal("dataFiltered")&&(i.forEach(n=>{a.push(n.getComponent())}),this.dispatchExternal("dataFiltered",this.getFilters(!0),a)),i}filterRow(e,t){var i=!0,a=e.getData();this.filterList.forEach(r=>{this.filterRecurse(r,a)||(i=!1)});for(var n in this.headerFilters)this.headerFilters[n].func(a)||(i=!1);return i}filterRecurse(e,t){var i=!1;return Array.isArray(e)?e.forEach(a=>{this.filterRecurse(a,t)&&(i=!0)}):i=e.func(t),i}};E(He,"moduleName","filter"),E(He,"filters",AS);let H9=He;function VS(o,e,t){return this.emptyToSpace(this.sanitizeHTML(o.getValue()))}function PS(o,e,t){return o.getValue()}function qS(o,e,t){return o.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(o.getValue()))}function BS(o,e,t){var i=parseFloat(o.getValue()),a="",n,r,l,h,d,u=e.decimal||".",p=e.thousand||",",y=e.negativeSign||"-",f=e.symbol||"",g=!!e.symbolAfter,k=typeof e.precision<"u"?e.precision:2;if(isNaN(i))return this.emptyToSpace(this.sanitizeHTML(o.getValue()));if(i<0&&(i=Math.abs(i),a=y),n=k!==!1?i.toFixed(k):i,n=String(n).split("."),r=n[0],l=n.length>1?u+n[1]:"",e.thousand!==!1)for(h=/(\d+)(\d{3})/;h.test(r);)r=r.replace(h,"$1"+p+"$2");return d=r+l,a===!0?(d="("+d+")",g?d+f:f+d):g?a+d+f:a+f+d}function FS(o,e,t){var i=o.getValue(),a=e.urlPrefix||"",n=e.download,r=i,l=document.createElement("a"),h;function d(u,p){var y=u.shift(),f=p[y];return u.length&&typeof f=="object"?d(u,f):f}if(e.labelField&&(h=o.getData(),r=d(e.labelField.split(this.table.options.nestedFieldSeparator),h)),e.label)switch(typeof e.label){case"string":r=e.label;break;case"function":r=e.label(o);break}if(r){if(e.urlField&&(h=o.getData(),i=G.retrieveNestedData(this.table.options.nestedFieldSeparator,e.urlField,h)),e.url)switch(typeof e.url){case"string":i=e.url;break;case"function":i=e.url(o);break}return l.setAttribute("href",a+i),e.target&&l.setAttribute("target",e.target),e.download&&(typeof n=="function"?n=n(o):n=n===!0?"":n,l.setAttribute("download",n)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(r)),l}else return" "}function OS(o,e,t){var i=document.createElement("img"),a=o.getValue();switch(e.urlPrefix&&(a=e.urlPrefix+o.getValue()),e.urlSuffix&&(a=a+e.urlSuffix),i.setAttribute("src",a),typeof e.height){case"number":i.style.height=e.height+"px";break;case"string":i.style.height=e.height;break}switch(typeof e.width){case"number":i.style.width=e.width+"px";break;case"string":i.style.width=e.width;break}return i.addEventListener("load",function(){o.getRow().normalizeHeight()}),i}function jS(o,e,t){var i=o.getValue(),a=o.getElement(),n=e.allowEmpty,r=e.allowTruthy,l=Object.keys(e).includes("trueValue"),h=typeof e.tickElement<"u"?e.tickElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',d=typeof e.crossElement<"u"?e.crossElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';return l&&i===e.trueValue||!l&&(r&&i||i===!0||i==="true"||i==="True"||i===1||i==="1")?(a.setAttribute("aria-checked",!0),h||""):n&&(i==="null"||i===""||i===null||typeof i>"u")?(a.setAttribute("aria-checked","mixed"),""):(a.setAttribute("aria-checked",!1),d||"")}function NS(o,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),a=e.inputFormat||"yyyy-MM-dd HH:mm:ss",n=e.outputFormat||"dd/MM/yyyy HH:mm:ss",r=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",l=o.getValue();if(typeof i<"u"){var h;return i.isDateTime(l)?h=l:a==="iso"?h=i.fromISO(String(l)):h=i.fromFormat(String(l),a),h.isValid?(e.timezone&&(h=h.setZone(e.timezone)),h.toFormat(n)):r===!0||!l?l:typeof r=="function"?r(l):r}else console.error("Format Error - 'datetime' formatter is dependant on luxon.js")}function _S(o,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),a=e.inputFormat||"yyyy-MM-dd HH:mm:ss",n=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",r=typeof e.suffix<"u"?e.suffix:!1,l=typeof e.unit<"u"?e.unit:"days",h=typeof e.humanize<"u"?e.humanize:!1,d=typeof e.date<"u"?e.date:i.now(),u=o.getValue();if(typeof i<"u"){var p;return i.isDateTime(u)?p=u:a==="iso"?p=i.fromISO(String(u)):p=i.fromFormat(String(u),a),p.isValid?h?p.diff(d,l).toHuman()+(r?" "+r:""):parseInt(p.diff(d,l)[l])+(r?" "+r:""):n===!0?u:typeof n=="function"?n(u):n}else console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")}function WS(o,e,t){var i=o.getValue();return typeof e[i]>"u"?(console.warn("Missing display value for "+i),i):e[i]}function US(o,e,t){var i=o.getValue(),a=o.getElement(),n=e&&e.stars?e.stars:5,r=document.createElement("span"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),h='<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>',d='<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>';r.style.verticalAlign="middle",l.setAttribute("width","14"),l.setAttribute("height","14"),l.setAttribute("viewBox","0 0 512 512"),l.setAttribute("xml:space","preserve"),l.style.padding="0 1px",i=i&&!isNaN(i)?parseInt(i):0,i=Math.max(0,Math.min(i,n));for(var u=1;u<=n;u++){var p=l.cloneNode(!0);p.innerHTML=u<=i?h:d,r.appendChild(p)}return a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",a.setAttribute("aria-label",i),r}function GS(o,e,t){var i=this.sanitizeHTML(o.getValue())||0,a=document.createElement("span"),n=e&&e.max?e.max:100,r=e&&e.min?e.min:0,l=e&&typeof e.color<"u"?e.color:["red","orange","green"],h="#666666",d,u;if(!(isNaN(i)||typeof o.getValue()>"u")){switch(a.classList.add("tabulator-traffic-light"),u=parseFloat(i)<=n?parseFloat(i):n,u=parseFloat(u)>=r?parseFloat(u):r,d=(n-r)/100,u=Math.round((u-r)/d),typeof l){case"string":h=l;break;case"function":h=l(i);break;case"object":if(Array.isArray(l)){var p=100/l.length,y=Math.floor(u/p);y=Math.min(y,l.length-1),y=Math.max(y,0),h=l[y];break}}return a.style.backgroundColor=h,a}}function $S(o,e={},t){var i=this.sanitizeHTML(o.getValue())||0,a=o.getElement(),n=e.max?e.max:100,r=e.min?e.min:0,l=e.legendAlign?e.legendAlign:"center",h,d,u,p,y;switch(d=parseFloat(i)<=n?parseFloat(i):n,d=parseFloat(d)>=r?parseFloat(d):r,h=(n-r)/100,d=Math.round((d-r)/h),typeof e.color){case"string":u=e.color;break;case"function":u=e.color(i);break;case"object":if(Array.isArray(e.color)){let v=100/e.color.length,m=Math.floor(d/v);m=Math.min(m,e.color.length-1),m=Math.max(m,0),u=e.color[m];break}default:u="#2DC214"}switch(typeof e.legend){case"string":p=e.legend;break;case"function":p=e.legend(i);break;case"boolean":p=i;break;default:p=!1}switch(typeof e.legendColor){case"string":y=e.legendColor;break;case"function":y=e.legendColor(i);break;case"object":if(Array.isArray(e.legendColor)){let v=100/e.legendColor.length,m=Math.floor(d/v);m=Math.min(m,e.legendColor.length-1),m=Math.max(m,0),y=e.legendColor[m]}break;default:y="#000"}a.style.minWidth="30px",a.style.position="relative",a.setAttribute("aria-label",d);var f=document.createElement("div");f.style.display="inline-block",f.style.width=d+"%",f.style.backgroundColor=u,f.style.height="100%",f.setAttribute("data-max",n),f.setAttribute("data-min",r);var g=document.createElement("div");if(g.style.position="relative",g.style.width="100%",g.style.height="100%",p){var k=document.createElement("div");k.style.position="absolute",k.style.top=0,k.style.left=0,k.style.textAlign=l,k.style.width="100%",k.style.color=y,k.innerHTML=p}return t(function(){if(!(o instanceof bx)){var v=document.createElement("div");v.style.position="absolute",v.style.top="4px",v.style.bottom="4px",v.style.left="4px",v.style.right="4px",a.appendChild(v),a=v}a.appendChild(g),g.appendChild(f),p&&g.appendChild(k)}),""}function YS(o,e,t){return o.getElement().style.backgroundColor=this.sanitizeHTML(o.getValue()),""}function ZS(o,e,t){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>'}function XS(o,e,t){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>'}function KS(o,e,t){var i=o.getValue(),a=e.size||15,n=a+"px",r,l,h=e.hasOwnProperty("onValue")?e.onValue:!0,d=e.hasOwnProperty("offValue")?e.offValue:!1,u=e.onTruthy?i:i===h;return r=document.createElement("div"),r.classList.add("tabulator-toggle"),u?(r.classList.add("tabulator-toggle-on"),r.style.flexDirection="row-reverse",e.onColor&&(r.style.background=e.onColor)):e.offColor&&(r.style.background=e.offColor),r.style.width=2.5*a+"px",r.style.borderRadius=n,e.clickable&&r.addEventListener("click",p=>{o.setValue(u?d:h)}),l=document.createElement("div"),l.classList.add("tabulator-toggle-switch"),l.style.height=n,l.style.width=n,l.style.borderRadius=n,r.appendChild(l),r}function JS(o,e,t){var i=document.createElement("span"),a=o.getRow(),n=o.getTable();return a.watchPosition(r=>{e.relativeToPage&&(r+=n.modules.page.getPageSize()*(n.modules.page.getPage()-1)),i.innerText=r}),i}function QS(o,e,t){return o.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>"}function eI(o,e,t){var i,a,n;function r(l){var h=l.getValue(),d="plaintext";switch(typeof h){case"boolean":d="tickCross";break;case"string":h.includes(`
|
|
7
|
-
`)&&(d="textarea");break}return d}return i=e.formatterLookup?e.formatterLookup(o):r(o),e.paramsLookup&&(n=typeof e.paramsLookup=="function"?e.paramsLookup(i,o):e.paramsLookup[i]),a=this.table.modules.format.lookupFormatter(i),a.call(this,o,n||{},t)}function tI(o,e,t){var i=e.delimiter||",",a=o.getValue(),n=this.table,r;return e.valueMap&&(typeof e.valueMap=="string"?r=function(l){return l.map(h=>G.retrieveNestedData(n.options.nestedFieldSeparator,e.valueMap,h))}:r=e.valueMap),Array.isArray(a)?(r&&(a=r(a)),a.join(i)):a}function iI(o,e,t){var i=e.indent||" ",a=typeof e.multiline>"u"?!0:e.multiline,n=e.replacer||null,r=o.getValue();return a&&(o.getElement().style.whiteSpace="pre-wrap"),JSON.stringify(r,n,i)}var aI={plaintext:VS,html:PS,textarea:qS,money:BS,link:FS,image:OS,tickCross:jS,datetime:NS,datetimediff:_S,lookup:WS,star:US,traffic:GS,progress:$S,color:YS,buttonTick:ZS,buttonCross:XS,toggle:KS,rownum:JS,handle:QS,adaptable:eI,array:tI,json:iI};const We=class We extends q{constructor(e){super(e),this.registerColumnOption("formatter"),this.registerColumnOption("formatterParams"),this.registerColumnOption("formatterPrint"),this.registerColumnOption("formatterPrintParams"),this.registerColumnOption("formatterClipboard"),this.registerColumnOption("formatterClipboardParams"),this.registerColumnOption("formatterHtmlOutput"),this.registerColumnOption("formatterHtmlOutputParams"),this.registerColumnOption("titleFormatter"),this.registerColumnOption("titleFormatterParams")}initialize(){this.subscribe("cell-format",this.formatValue.bind(this)),this.subscribe("cell-rendered",this.cellRendered.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-format",this.formatHeader.bind(this))}initializeColumn(e){e.modules.format=this.lookupTypeFormatter(e,""),typeof e.definition.formatterPrint<"u"&&(e.modules.format.print=this.lookupTypeFormatter(e,"Print")),typeof e.definition.formatterClipboard<"u"&&(e.modules.format.clipboard=this.lookupTypeFormatter(e,"Clipboard")),typeof e.definition.formatterHtmlOutput<"u"&&(e.modules.format.htmlOutput=this.lookupTypeFormatter(e,"HtmlOutput"))}lookupTypeFormatter(e,t){var i={params:e.definition["formatter"+t+"Params"]||{}},a=e.definition["formatter"+t];return i.formatter=this.lookupFormatter(a),i}lookupFormatter(e){var t;switch(typeof e){case"string":We.formatters[e]?t=We.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),t=We.formatters.plaintext);break;case"function":t=e;break;default:t=We.formatters.plaintext;break}return t}cellRendered(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)}formatHeader(e,t,i){var a,n,r,l;return e.definition.titleFormatter?(a=this.lookupFormatter(e.definition.titleFormatter),r=h=>{e.titleFormatterRendered=h},l={getValue:function(){return t},getElement:function(){return i},getType:function(){return"header"},getColumn:function(){return e.getComponent()},getTable:()=>this.table},n=e.definition.titleFormatterParams||{},n=typeof n=="function"?n():n,a.call(this,l,n,r)):t}formatValue(e){var t=e.getComponent(),i=typeof e.column.modules.format.params=="function"?e.column.modules.format.params(t):e.column.modules.format.params;function a(n){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=n,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,i,a)}formatExportValue(e,t){var i=e.column.modules.format[t],a;if(i){let n=function(r){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=r,e.modules.format.rendered=!1};return a=typeof i.params=="function"?i.params(e.getComponent()):i.params,i.formatter.call(this,e.getComponent(),a,n)}else return this.formatValue(e)}sanitizeHTML(e){if(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=/]/g,function(i){return t[i]})}else return e}emptyToSpace(e){return e===null||typeof e>"u"||e===""?" ":e}};E(We,"moduleName","format"),E(We,"formatters",aI);let A9=We;class xx extends q{constructor(e){super(e),this.leftColumns=[],this.rightColumns=[],this.initializationMode="left",this.active=!1,this.blocked=!0,this.registerColumnOption("frozen")}reset(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.active=!1}initialize(){this.subscribe("cell-layout",this.layoutCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-width",this.layout.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("table-layout",this.layout.bind(this)),this.subscribe("columns-loading",this.reset.bind(this)),this.subscribe("column-add",this.reinitializeColumns.bind(this)),this.subscribe("column-deleted",this.reinitializeColumns.bind(this)),this.subscribe("column-hide",this.reinitializeColumns.bind(this)),this.subscribe("column-show",this.reinitializeColumns.bind(this)),this.subscribe("columns-loaded",this.reinitializeColumns.bind(this)),this.subscribe("table-redraw",this.layout.bind(this)),this.subscribe("layout-refreshing",this.blockLayout.bind(this)),this.subscribe("layout-refreshed",this.unblockLayout.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this))}blockLayout(){this.blocked=!0}unblockLayout(){this.blocked=!1}layoutCell(e){this.layoutElement(e.element,e.column)}reinitializeColumns(){this.reset(),this.table.columnManager.columnsByIndex.forEach(e=>{this.initializeColumn(e)}),this.layout()}initializeColumn(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,this.initializationMode=="left"?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")}frozenCheck(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen}layoutCalcRows(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow),this.table.modExists("groupRows")&&this.layoutGroupCalcs(this.table.modules.groupRows.getGroups()))}layoutGroupCalcs(e){e.forEach(t=>{t.calcs.top&&this.layoutRow(t.calcs.top),t.calcs.bottom&&this.layoutRow(t.calcs.bottom),t.groupList&&t.groupList.length&&this.layoutGroupCalcs(t.groupList)})}layoutColumnPosition(e){var t=[],i=0,a=0;this.leftColumns.forEach((n,r)=>{if(n.modules.frozen.marginValue=i,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(i+=n.getWidth()),r==this.leftColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup){var l=this.getColGroupParentElement(n);t.includes(l)||(this.layoutElement(l,n),t.push(l)),l.classList.toggle("tabulator-frozen-left",n.modules.frozen.edge&&n.modules.frozen.position==="left"),l.classList.toggle("tabulator-frozen-right",n.modules.frozen.edge&&n.modules.frozen.position==="right")}else this.layoutElement(n.getElement(),n);e&&n.cells.forEach(h=>{this.layoutElement(h.getElement(!0),n)})}),this.rightColumns.forEach((n,r)=>{n.modules.frozen.marginValue=a,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(a+=n.getWidth()),r==this.rightColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup?this.layoutElement(this.getColGroupParentElement(n),n):this.layoutElement(n.getElement(),n),e&&n.cells.forEach(l=>{this.layoutElement(l.getElement(!0),n)})})}getColGroupParentElement(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()}layout(){this.active&&!this.blocked&&(this.layoutColumnPosition(),this.reinitializeRows(),this.layoutCalcRows())}reinitializeRows(){var e=this.table.rowManager.getVisibleRows(!0),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));t.forEach(i=>{i.deinitialize()}),e.forEach(i=>{i.type==="row"&&this.layoutRow(i)})}layoutRow(e){this.table.options.layout==="fitDataFill"&&this.rightColumns.length&&(this.table.rowManager.getTableElement().style.minWidth="calc(100% - "+this.rightMargin+")"),this.leftColumns.forEach(t=>{var i=e.getCell(t);i&&this.layoutElement(i.getElement(!0),t)}),this.rightColumns.forEach(t=>{var i=e.getCell(t);i&&this.layoutElement(i.getElement(!0),t)})}layoutElement(e,t){var i;t.modules.frozen&&e&&(e.style.position="sticky",this.table.rtl?i=t.modules.frozen.position==="left"?"right":"left":i=t.modules.frozen.position,e.style[i]=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),e.classList.toggle("tabulator-frozen-left",t.modules.frozen.edge&&t.modules.frozen.position==="left"),e.classList.toggle("tabulator-frozen-right",t.modules.frozen.edge&&t.modules.frozen.position==="right"))}adjustForScrollbar(e){this.rightColumns.length&&(this.table.columnManager.getContentsElement().style.width="calc(100% - "+e+"px)")}getFrozenColumns(){return this.leftColumns.concat(this.rightColumns)}_calcSpace(e,t){var i=0;for(let a=0;a<t;a++)e[a].visible&&(i+=e[a].getWidth());return i}}E(xx,"moduleName","frozenColumns");class Lx extends q{constructor(e){super(e),this.topElement=document.createElement("div"),this.rows=[],this.registerComponentFunction("row","freeze",this.freezeRow.bind(this)),this.registerComponentFunction("row","unfreeze",this.unfreezeRow.bind(this)),this.registerComponentFunction("row","isFrozen",this.isRowFrozen.bind(this)),this.registerTableOption("frozenRowsField","id"),this.registerTableOption("frozenRows",!1)}initialize(){var e=document.createDocumentFragment();this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-holder"),e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.subscribe("row-deleting",this.detachRow.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),10),this.table.options.frozenRows&&(this.subscribe("data-processed",this.initializeRows.bind(this)),this.subscribe("row-added",this.initializeRow.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this))),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}initializeRows(){this.table.rowManager.getRows().forEach(e=>{this.initializeRow(e)})}initializeRow(e){var t=this.table.options.frozenRows,i=typeof t;i==="number"?e.getPosition()&&e.getPosition()+this.rows.length<=t&&this.freezeRow(e):i==="function"?t.call(this.table,e.getComponent())&&this.freezeRow(e):Array.isArray(t)&&t.includes(e.data[this.options("frozenRowsField")])&&this.freezeRow(e)}isRowFrozen(e){var t=this.rows.indexOf(e);return t>-1}isFrozen(){return!!this.rows.length}visibleRows(e,t){return this.rows.forEach(i=>{t.push(i)}),t}getRows(e){var t=e.slice(0);return this.rows.forEach(function(i){var a=t.indexOf(i);a>-1&&t.splice(a,1)}),t}freezeRow(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.rows.push(e),this.refreshData(!1,"display"),this.table.rowManager.adjustTableSize(),this.styleRows())}unfreezeRow(e){e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.refreshData(!1,"display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")}detachRow(e){var t=this.rows.indexOf(e);if(t>-1){var i=e.getElement();i.parentNode&&i.parentNode.removeChild(i),this.rows.splice(t,1)}}styleRows(e){this.rows.forEach((t,i)=>{this.table.rowManager.styleRow(t,i)})}}E(Lx,"moduleName","frozenRows");class oI{constructor(e){return this._group=e,this.type="GroupComponent",new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._group.groupManager.table.componentFunctionBinder.handle("group",t._group,i)}})}getKey(){return this._group.key}getField(){return this._group.field}getElement(){return this._group.element}getRows(){return this._group.getRows(!0)}getSubGroups(){return this._group.getSubGroups(!0)}getParentGroup(){return this._group.parent?this._group.parent.getComponent():!1}isVisible(){return this._group.visible}show(){this._group.show()}hide(){this._group.hide()}toggle(){this._group.toggleVisibility()}scrollTo(e,t){return this._group.groupManager.table.rowManager.scrollToRow(this._group,e,t)}_getSelf(){return this._group}getTable(){return this._group.groupManager.table}}let Hn=class Ex{constructor(e,t,i,a,n,r,l){this.groupManager=e,this.parent=t,this.key=a,this.level=i,this.field=n,this.hasSubGroups=i<e.groupIDLookups.length-1,this.addRow=this.hasSubGroups?this._addRowToGroup:this._addRow,this.type="group",this.old=l,this.rows=[],this.groups=[],this.groupList=[],this.generator=r,this.element=!1,this.elementContents=!1,this.height=0,this.outerHeight=0,this.initialized=!1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!1,this.visible=l?l.visible:typeof e.startOpen[i]<"u"?e.startOpen[i]:e.startOpen[0],this.component=null,this.createElements(),this.addBindings(),this.createValueGroups()}wipe(e){e||(this.groupList.length?this.groupList.forEach(function(t){t.wipe()}):this.rows.forEach(t=>{t.modules&&delete t.modules.group})),this.element=!1,this.arrowElement=!1,this.elementContents=!1}createElements(){var e=document.createElement("div");e.classList.add("tabulator-arrow"),this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-group-toggle"),this.arrowElement.appendChild(e),this.groupManager.table.options.movableRows!==!1&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)}createValueGroups(){var e=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[e]&&this.groupManager.allowedValues[e].forEach(t=>{this._createGroup(t,e)})}addBindings(){var e;this.groupManager.table.options.groupToggleElement&&(e=this.groupManager.table.options.groupToggleElement=="arrow"?this.arrowElement:this.element,e.addEventListener("click",t=>{this.groupManager.table.options.groupToggleElement==="arrow"&&(t.stopPropagation(),t.stopImmediatePropagation()),setTimeout(()=>{this.toggleVisibility()})}))}_createGroup(e,t){var i=t+"_"+e,a=new Ex(this.groupManager,this,t,e,this.groupManager.groupIDLookups[t].field,this.groupManager.headerGenerator[t]||this.groupManager.headerGenerator[0],this.old?this.old.groups[i]:!1);this.groups[i]=a,this.groupList.push(a)}_addRowToGroup(e){var t=this.level+1;if(this.hasSubGroups){var i=this.groupManager.groupIDLookups[t].func(e.getData()),a=t+"_"+i;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]?this.groups[a]&&this.groups[a].addRow(e):(this.groups[a]||this._createGroup(i,t),this.groups[a].addRow(e))}}_addRow(e){this.rows.push(e),e.modules.group=this}insertRow(e,t,i){var a=this.conformRowData({});e.updateData(a);var n=this.rows.indexOf(t);n>-1?i?this.rows.splice(n+1,0,e):this.rows.splice(n,0,e):i?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)}scrollHeader(e){this.arrowElement&&(this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)}))}getRowIndex(e){}conformRowData(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e}removeRow(e){var t=this.rows.indexOf(e),i=e.getElement();t>-1&&this.rows.splice(t,1),!this.groupManager.table.options.groupValues&&!this.rows.length?(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0)):(i.parentNode&&i.parentNode.removeChild(i),this.groupManager.blockRedraw||(this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)))}removeGroup(e){var t=e.level+"_"+e.key,i;this.groups[t]&&(delete this.groups[t],i=this.groupList.indexOf(e),i>-1&&this.groupList.splice(i,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))}getHeadersAndRows(){var e=[];return e.push(this),this._visSet(),this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.visible?this.groupList.length?this.groupList.forEach(function(t){e=e.concat(t.getHeadersAndRows())}):(this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),e=e.concat(this.rows),this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))):!this.groupList.length&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&(this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))),e}getData(e,t){var i=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(a=>{i.push(a.getData(t||"data"))}),i}getRowCount(){var e=0;return this.groupList.length?this.groupList.forEach(t=>{e+=t.getRowCount()}):e=this.rows.length,e}toggleVisibility(){this.visible?this.hide():this.show()}hide(){this.visible=!1,this.groupManager.table.rowManager.getRenderMode()=="basic"&&!this.groupManager.table.options.pagination?(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(e=>{var t=e.getHeadersAndRows();t.forEach(i=>{i.detachElement()})}):this.rows.forEach(e=>{var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.updateGroupRows(!0)):this.groupManager.updateGroupRows(!0),this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!1)}show(){if(this.visible=!0,this.groupManager.table.rowManager.getRenderMode()=="basic"&&!this.groupManager.table.options.pagination){this.element.classList.add("tabulator-group-visible");var e=this.generateElement();this.groupList.length?this.groupList.forEach(t=>{var i=t.getHeadersAndRows();i.forEach(a=>{var n=a.getElement();e.parentNode.insertBefore(n,e.nextSibling),a.initialize(),e=n})}):this.rows.forEach(t=>{var i=t.getElement();e.parentNode.insertBefore(i,e.nextSibling),t.initialize(),e=i}),this.groupManager.updateGroupRows(!0)}else this.groupManager.updateGroupRows(!0);this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!0)}_visSet(){var e=[];typeof this.visible=="function"&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))}getRowGroup(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(i){var a=i.getRowGroup(e);a&&(t=a)}):this.rows.find(function(i){return i===e})&&(t=this),t}getSubGroups(e){var t=[];return this.groupList.forEach(function(i){t.push(e?i.getComponent():i)}),t}getRows(e,t){var i=[];return t&&this.groupList.length?this.groupList.forEach(a=>{i=i.concat(a.getRows(e,t))}):this.rows.forEach(function(a){i.push(e?a.getComponent():a)}),i}generateGroupHeaderContents(){var e=[],t=this.getRows(!1,!0);for(t.forEach(function(i){e.push(i.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);typeof this.elementContents=="string"?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)}getPath(e=[]){return e.unshift(this.key),this.parent&&this.parent.getPath(e),e}getElement(){return this.elementContents?this.element:this.generateElement()}generateElement(){this.addBindings=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;e<this.element.childNodes.length;++e)this.element.childNodes[e].parentNode.removeChild(this.element.childNodes[e]);return this.generateGroupHeaderContents(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}normalizeHeight(){this.setHeight(this.element.clientHeight)}initialize(e){(!this.initialized||e)&&(this.normalizeHeight(),this.initialized=!0)}reinitialize(){this.initialized=!1,this.height=0,G.elVisible(this.element)&&this.initialize(!0)}setHeight(e){this.height!=e&&(this.height=e,this.outerHeight=this.element.offsetHeight)}getHeight(){return this.outerHeight}getGroup(){return this}reinitializeHeight(){}calcHeight(){}setCellHeight(){}clearCellHeight(){}deinitializeHeight(){}rendered(){}getComponent(){return this.component||(this.component=new oI(this)),this.component}};class Sx extends q{constructor(e){super(e),this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayHandler=this.getRows.bind(this),this.blockRedraw=!1,this.registerTableOption("groupBy",!1),this.registerTableOption("groupStartOpen",!0),this.registerTableOption("groupValues",!1),this.registerTableOption("groupUpdateOnCellEdit",!1),this.registerTableOption("groupHeader",!1),this.registerTableOption("groupHeaderPrint",null),this.registerTableOption("groupHeaderClipboard",null),this.registerTableOption("groupHeaderHtmlOutput",null),this.registerTableOption("groupHeaderDownload",null),this.registerTableOption("groupToggleElement","arrow"),this.registerTableOption("groupClosedShowCalcs",!1),this.registerTableFunction("setGroupBy",this.setGroupBy.bind(this)),this.registerTableFunction("setGroupValues",this.setGroupValues.bind(this)),this.registerTableFunction("setGroupStartOpen",this.setGroupStartOpen.bind(this)),this.registerTableFunction("setGroupHeader",this.setGroupHeader.bind(this)),this.registerTableFunction("getGroups",this.userGetGroups.bind(this)),this.registerTableFunction("getGroupedData",this.userGetGroupedData.bind(this)),this.registerComponentFunction("row","getGroup",this.rowGetGroup.bind(this))}initialize(){this.subscribe("table-destroy",this._blockRedrawing.bind(this)),this.subscribe("rows-wipe",this._blockRedrawing.bind(this)),this.subscribe("rows-wiped",this._restore_redrawing.bind(this)),this.table.options.groupBy&&(this.table.options.groupUpdateOnCellEdit&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("row-data-changed",this.reassignRowToGroup.bind(this),0)),this.subscribe("table-built",this.configureGroupSetup.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHeaders.bind(this)),this.subscribe("rows-wipe",this.wipe.bind(this)),this.subscribe("rows-added",this.rowsUpdated.bind(this)),this.subscribe("row-moving",this.rowMoving.bind(this)),this.subscribe("row-adding-index",this.rowAddingIndex.bind(this)),this.subscribe("rows-sample",this.rowSample.bind(this)),this.subscribe("render-virtual-fill",this.virtualRenderFill.bind(this)),this.registerDisplayHandler(this.displayHandler,20),this.initialized=!0)}_blockRedrawing(){this.blockRedraw=!0}_restore_redrawing(){this.blockRedraw=!1}configureGroupSetup(){if(this.table.options.groupBy){var e=this.table.options.groupBy,t=this.table.options.groupStartOpen,i=this.table.options.groupHeader;if(this.allowedValues=this.table.options.groupValues,Array.isArray(e)&&Array.isArray(i)&&e.length>i.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),this.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],this.langBind("groups|item",(n,r)=>{this.headerGenerator[0]=(l,h,d)=>(typeof l>"u"?"":l)+"<span>("+h+" "+(h===1?n:r.groups.items)+")</span>"}),this.groupIDLookups=[],e)this.table.modExists("columnCalcs")&&this.table.options.columnCalcs!="table"&&this.table.options.columnCalcs!="both"&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&this.table.options.columnCalcs!="group"){var a=this.table.columnManager.getRealColumns();a.forEach(n=>{n.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),n.definition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(e)||(e=[e]),e.forEach((n,r)=>{var l,h;typeof n=="function"?l=n:(h=this.table.columnManager.getColumnByField(n),h?l=function(d){return h.getFieldValue(d)}:l=function(d){return d[n]}),this.groupIDLookups.push({field:typeof n=="function"?!1:n,func:l,values:this.allowedValues?this.allowedValues[r]:!1})}),t&&(Array.isArray(t)||(t=[t]),t.forEach(n=>{}),this.startOpen=t),i&&(this.headerGenerator=Array.isArray(i)?i:[i])}else this.groupList=[],this.groups={}}rowSample(e,t){if(this.table.options.groupBy){var i=this.getGroups(!1)[0];t.push(i.getRows(!1)[0])}return t}virtualRenderFill(){var e=this.table.rowManager.tableElement,t=this.table.rowManager.getVisibleRows();if(this.table.options.groupBy)t=t.filter(i=>i.type!=="group"),e.style.minWidth=t.length?"":this.table.columnManager.getWidth()+"px";else return t}rowAddingIndex(e,t,i){if(this.table.options.groupBy){this.assignRowToGroup(e);var a=e.modules.group.rows;return a.length>1&&(!t||t&&a.indexOf(t)==-1?i?a[0]!==e&&(t=a[0],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):a[a.length-1]!==e&&(t=a[a.length-1],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)),t}}trackChanges(){this.dispatch("group-changed")}setGroupBy(e){this.table.options.groupBy=e,this.initialized||this.initialize(),this.configureGroupSetup(),!e&&this.table.modExists("columnCalcs")&&this.table.options.columnCalcs===!0&&this.table.modules.columnCalcs.reinitializeCalcs(),this.refreshData(),this.trackChanges()}setGroupValues(e){this.table.options.groupValues=e,this.configureGroupSetup(),this.refreshData(),this.trackChanges()}setGroupStartOpen(e){this.table.options.groupStartOpen=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}setGroupHeader(e){this.table.options.groupHeader=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}userGetGroups(e){return this.getGroups(!0)}userGetGroupedData(){return this.table.options.groupBy?this.getGroupedData():this.getData()}rowGetGroup(e){return e.modules.group?e.modules.group.getComponent():!1}rowMoving(e,t,i){if(this.table.options.groupBy){!i&&t instanceof Hn&&(t=this.table.rowManager.prevDisplayRow(e)||t);var a=t instanceof Hn?t:t.modules.group,n=e instanceof Hn?e:e.modules.group;a===n?this.table.rowManager.moveRowInArray(a.rows,e,t,i):(n&&n.removeRow(e),a.insertRow(e,t,i))}}rowDeleting(e){this.table.options.groupBy&&e.modules.group&&e.modules.group.removeRow(e)}rowsUpdated(e){this.table.options.groupBy&&this.updateGroupRows(!0)}cellUpdated(e){this.table.options.groupBy&&this.reassignRowToGroup(e.row)}getRows(e){return this.table.options.groupBy&&this.groupIDLookups.length?(this.dispatchExternal("dataGrouping"),this.generateGroups(e),this.subscribedExternal("dataGrouped")&&this.dispatchExternal("dataGrouped",this.getGroups(!0)),this.updateGroupRows()):e.slice(0)}getGroups(e){var t=[];return this.groupList.forEach(function(i){t.push(e?i.getComponent():i)}),t}getChildGroups(e){var t=[];return e||(e=this),e.groupList.forEach(i=>{i.groupList.length?t=t.concat(this.getChildGroups(i)):t.push(i)}),t}wipe(){this.table.options.groupBy&&(this.groupList.forEach(function(e){e.wipe()}),this.groupList=[],this.groups={})}pullGroupListData(e){var t=[];return e.forEach(i=>{var a={};a.level=0,a.rowCount=0,a.headerContent="";var n=[];i.hasSubGroups?(n=this.pullGroupListData(i.groupList),a.level=i.level,a.rowCount=n.length-i.groupList.length,a.headerContent=i.generator(i.key,a.rowCount,i.rows,i),t.push(a),t=t.concat(n)):(a.level=i.level,a.headerContent=i.generator(i.key,i.rows.length,i.rows,i),a.rowCount=i.getRows().length,t.push(a),i.getRows().forEach(r=>{t.push(r.getData("data"))}))}),t}getGroupedData(){return this.pullGroupListData(this.groupList)}getRowGroup(e){var t=!1;return this.options("dataTree")&&(e=this.table.modules.dataTree.getTreeParentRoot(e)),this.groupList.forEach(i=>{var a=i.getRowGroup(e);a&&(t=a)}),t}countGroups(){return this.groupList.length}generateGroups(e){var t=this.groups;this.groups={},this.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(i=>{this.createGroup(i,0,t)}),e.forEach(i=>{this.assignRowToExistingGroup(i,t)})):e.forEach(i=>{this.assignRowToGroup(i,t)}),Object.values(t).forEach(i=>{i.wipe(!0)})}createGroup(e,t,i){var a=t+"_"+e,n;i=i||[],n=new Hn(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],i[a]),this.groups[a]=n,this.groupList.push(n)}assignRowToExistingGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),a="0_"+i;this.groups[a]&&this.groups[a].addRow(e)}assignRowToGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),a=!this.groups["0_"+i];return a&&this.createGroup(i,0,t),this.groups["0_"+i].addRow(e),!a}reassignRowToGroup(e){if(e.type==="row"){var t=e.modules.group,i=t.getPath(),a=this.getExpectedPath(e),n;n=i.length==a.length&&i.every((r,l)=>r===a[l]),n||(t.removeRow(e),this.assignRowToGroup(e,this.groups),this.refreshData(!0))}}getExpectedPath(e){var t=[],i=e.getData();return this.groupIDLookups.forEach(a=>{t.push(a.func(i))}),t}updateGroupRows(e){var t=[];return this.blockRedraw||(this.groupList.forEach(i=>{t=t.concat(i.getHeadersAndRows())}),e&&this.refreshData(!0)),t}scrollHeaders(e){this.table.options.groupBy&&(this.table.options.renderHorizontal==="virtual"&&(e-=this.table.columnManager.renderer.vDomPadLeft),e=e+"px",this.groupList.forEach(t=>{t.scrollHeader(e)}))}removeGroup(e){var t=e.level+"_"+e.key,i;this.groups[t]&&(delete this.groups[t],i=this.groupList.indexOf(e),i>-1&&this.groupList.splice(i,1))}checkBasicModeGroupHeaderWidth(){var e=this.table.rowManager.tableElement,t=!0;this.table.rowManager.getDisplayRows().forEach((i,a)=>{this.table.rowManager.styleRow(i,a),e.appendChild(i.getElement()),i.initialize(!0),i.type!=="group"&&(t=!1)}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}}E(Sx,"moduleName","groupRows");var nI={cellEdit:function(o){o.component.setValueProcessData(o.data.oldValue),o.component.cellRendered()},rowAdd:function(o){o.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowDelete:function(o){var e=this.table.rowManager.addRowActual(o.data.data,o.data.pos,o.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(o.component,e),this.table.rowManager.checkPlaceholder()},rowMove:function(o){var e=o.data.posFrom-o.data.posTo>0;this.table.rowManager.moveRowActual(o.component,this.table.rowManager.getRowFromPosition(o.data.posFrom),e),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},sI={cellEdit:function(o){o.component.setValueProcessData(o.data.newValue),o.component.cellRendered()},rowAdd:function(o){var e=this.table.rowManager.addRowActual(o.data.data,o.data.pos,o.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(o.component,e),this.table.rowManager.checkPlaceholder()},rowDelete:function(o){o.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowMove:function(o){this.table.rowManager.moveRowActual(o.component,this.table.rowManager.getRowFromPosition(o.data.posTo),o.data.after),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},rI={undo:["ctrl + 90","meta + 90"],redo:["ctrl + 89","meta + 89"]},lI={undo:function(o){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(o.preventDefault(),this.table.modules.history.undo()))},redo:function(o){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(o.preventDefault(),this.table.modules.history.redo()))}},hI={keybindings:{bindings:rI,actions:lI}},Le;let cI=(Le=class extends q{constructor(e){super(e),this.history=[],this.index=-1,this.registerTableOption("history",!1)}initialize(){this.table.options.history&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("cell-delete",this.clearComponentHistory.bind(this)),this.subscribe("row-delete",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clear.bind(this)),this.subscribe("row-added",this.rowAdded.bind(this)),this.subscribe("row-move",this.rowMoved.bind(this))),this.registerTableFunction("undo",this.undo.bind(this)),this.registerTableFunction("redo",this.redo.bind(this)),this.registerTableFunction("getHistoryUndoSize",this.getHistoryUndoSize.bind(this)),this.registerTableFunction("getHistoryRedoSize",this.getHistoryRedoSize.bind(this)),this.registerTableFunction("clearHistory",this.clear.bind(this))}rowMoved(e,t,i){this.action("rowMove",e,{posFrom:e.getPosition(),posTo:t.getPosition(),to:t,after:i})}rowAdded(e,t,i,a){this.action("rowAdd",e,{data:t,pos:i,index:a})}rowDeleted(e){var t,i;this.table.options.groupBy?(i=e.getComponent().getGroup()._getSelf().rows,t=i.indexOf(e),t&&(t=i[t-1])):(t=e.table.rowManager.getRowIndex(e),t&&(t=e.table.rowManager.rows[t-1])),this.action("rowDelete",e,{data:e.getData(),pos:!t,index:t})}cellUpdated(e){this.action("cellEdit",e,{oldValue:e.oldValue,newValue:e.value})}clear(){this.history=[],this.index=-1}action(e,t,i){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:i}),this.index++}getHistoryUndoSize(){return this.index+1}getHistoryRedoSize(){return this.history.length-(this.index+1)}clearComponentHistory(e){var t=this.history.findIndex(function(i){return i.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))}undo(){if(this.index>-1){let e=this.history[this.index];return Le.undoers[e.type].call(this,e),this.index--,this.dispatchExternal("historyUndo",e.type,e.component.getComponent(),e.data),!0}else return console.warn(this.options("history")?"History Undo Error - No more history to undo":"History module not enabled"),!1}redo(){if(this.history.length-1>this.index){this.index++;let e=this.history[this.index];return Le.redoers[e.type].call(this,e),this.dispatchExternal("historyRedo",e.type,e.component.getComponent(),e.data),!0}else return console.warn(this.options("history")?"History Redo Error - No more history to redo":"History module not enabled"),!1}_rebindRow(e,t){this.history.forEach(function(i){if(i.component instanceof ie)i.component===e&&(i.component=t);else if(i.component instanceof wn&&i.component.row===e){var a=i.component.column.getField();a&&(i.component=t.getCell(a))}})}},E(Le,"moduleName","history"),E(Le,"moduleExtensions",hI),E(Le,"undoers",nI),E(Le,"redoers",sI),Le);class Ix extends q{constructor(e){super(e),this.fieldIndex=[],this.hasIndex=!1}initialize(){this.tableElementCheck()}tableElementCheck(){this.table.originalElement&&this.table.originalElement.tagName==="TABLE"&&(this.table.originalElement.childNodes.length?this.parseTable():console.warn("Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."))}parseTable(){var e=this.table.originalElement,t=this.table.options,i=e.getElementsByTagName("th"),a=e.getElementsByTagName("tbody")[0],n=[];this.hasIndex=!1,this.dispatchExternal("htmlImporting"),a=a?a.getElementsByTagName("tr"):[],this._extractOptions(e,t),i.length?this._extractHeaders(i,a):this._generateBlankHeaders(i,a);for(var r=0;r<a.length;r++){var l=a[r],h=l.getElementsByTagName("td"),d={};this.hasIndex||(d[t.index]=r);for(var u=0;u<h.length;u++){var p=h[u];typeof this.fieldIndex[u]<"u"&&(d[this.fieldIndex[u]]=p.innerHTML)}n.push(d)}t.data=n,this.dispatchExternal("htmlImported")}_extractOptions(e,t,i){var a=e.attributes,n=Object.keys(i||t),r={};n.forEach(u=>{r[u.toLowerCase()]=u});for(var l in a){var h=a[l],d;h&&typeof h=="object"&&h.name&&h.name.indexOf("tabulator-")===0&&(d=h.name.replace("tabulator-",""),typeof r[d]<"u"&&(t[r[d]]=this._attribValue(h.value)))}}_attribValue(e){return e==="true"?!0:e==="false"?!1:e}_findCol(e){var t=this.table.options.columns.find(i=>i.title===e);return t||!1}_extractHeaders(e,t){for(var i=0;i<e.length;i++){var a=e[i],n=!1,r=this._findCol(a.textContent),l;r?n=!0:r={title:a.textContent.trim()},r.field||(r.field=a.textContent.trim().toLowerCase().replaceAll(" ","_")),l=a.getAttribute("width"),l&&!r.width&&(r.width=l),this._extractOptions(a,r,this.table.columnManager.optionsList.registeredDefaults),this.fieldIndex[i]=r.field,r.field==this.table.options.index&&(this.hasIndex=!0),n||this.table.options.columns.push(r)}}_generateBlankHeaders(e,t){for(var i=0;i<e.length;i++){var a=e[i],n={title:"",field:"col"+i};this.fieldIndex[i]=n.field;var r=a.getAttribute("width");r&&(n.width=r),this.table.options.columns.push(n)}}}E(Ix,"moduleName","htmlTableImport");function dI(o){var e=[],t=0,i=0,a=!1;for(let n=0;n<o.length;n++){let r=o[n],l=o[n+1];if(e[t]||(e[t]=[]),e[t][i]||(e[t][i]=""),r=='"'&&a&&l=='"'){e[t][i]+=r,n++;continue}if(r=='"'){a=!a;continue}if(r==","&&!a){i++;continue}if(r=="\r"&&l==`
|
|
1
|
+
"use strict";var DE=Object.defineProperty;var zE=(o,e,t)=>e in o?DE(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var E=(o,e,t)=>zE(o,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),RE={class:"content-div"},HE={class:"content-title"},AE={key:0},VE={key:2,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PE={class:"content-action"},qE=["onClick"],BE=c.defineComponent({__name:"ContentLayout",props:{title:{default:()=>[]},actions:{},bodyClass:{default:""},titleClass:{default:""}},setup(o,{emit:e}){const t=e,i=o,a=c.ref(i.actions?i.actions:[]);return c.watch(()=>i.actions,n=>{n&&(a.value=n)},{deep:!0}),(n,r)=>{const l=c.resolveComponent("RouterLink");return c.openBlock(),c.createElementBlock("div",RE,[c.createElementVNode("div",{class:c.normalizeClass(["content-title-div",n.titleClass])},[c.createElementVNode("div",HE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.title,(h,d)=>(c.openBlock(),c.createElementBlock("div",{key:d},[h.link?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",AE,c.toDisplayString(h.name),1)),h.link?(c.openBlock(),c.createBlock(l,{key:1,to:h.link,class:"hover:underline cursor-pointer"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(h.name),1)]),_:2},1032,["to"])):c.createCommentVNode("",!0),n.title.length!==0&&d+1!==n.title.length?(c.openBlock(),c.createElementBlock("svg",VE,r[0]||(r[0]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("div",PE,[c.renderSlot(n.$slots,"action-before"),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,(h,d)=>(c.openBlock(),c.createElementBlock("div",{key:d},[c.createElementVNode("button",{class:c.normalizeClass(h.class||"btn"),onClick:u=>t(h.emit)},c.toDisplayString(h.title),11,qE)]))),128)),c.renderSlot(n.$slots,"action-after")])],2),c.createElementVNode("div",{class:c.normalizeClass(["content-body",n.bodyClass])},[c.renderSlot(n.$slots,"body")],2)])}}}),FE={class:"border-b py-3 px-4"},OE={class:"font-bold text-lg my-auto relative flex text-[19px]"},jE={key:0},NE={key:3,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_E={class:"border-t py-2.5 px-4"},WE={class:"my-auto relative"},UE={class:"flex justify-end gap-1.5"},$E=["onClick"],GE={key:0,class:"h-screen bg-black/30 z-10 fixed top-0 right-0 left-0"},gx=c.defineComponent({__name:"Modal",props:{title:{default:()=>[]},actions:{default:()=>[]},show:{type:Boolean,default:!1},width:{default:"600px"}},setup(o,{emit:e}){const t=e,i=o,a=c.ref(window.innerHeight),n=c.ref(null),r=c.ref(!1),l=p=>{p.emit==="onClose"?t("onClose"):t(p.emit)},h=()=>{if(n.value){const p=a.value-200;r.value=n.value.scrollHeight>p}},d=()=>{a.value=window.innerHeight,h()};c.onMounted(()=>{h(),window.addEventListener("resize",d)}),c.onUpdated(()=>{h()}),c.onBeforeUnmount(()=>{window.removeEventListener("resize",d)}),c.watch(a,h);const u=c.ref(i.actions);return c.watch(()=>i.actions,p=>{u.value=p},{deep:!0}),(p,y)=>{const f=c.resolveComponent("RouterLink");return c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[c.createElementVNode("div",null,[c.createVNode(c.Transition,{name:"modal-load"},{default:c.withCtx(()=>[p.show?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["bg-white border border-border z-11 fixed top-[50px] right-0 left-0 mx-auto",{"overflow-y-auto":r.value}]),style:c.normalizeStyle({width:p.width})},[c.createElementVNode("div",FE,[c.createElementVNode("div",OE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(p.title,(g,k)=>(c.openBlock(),c.createElementBlock("span",{key:k,class:"flex"},[g.link?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",jE,c.toDisplayString(g.name),1)),g.link&&g.link!=="#"?(c.openBlock(),c.createBlock(f,{key:1,to:g.link,class:"hover:underline"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(g.name),1)]),_:2},1032,["to"])):c.createCommentVNode("",!0),g.link&&g.link==="#"?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:y[0]||(y[0]=v=>t("onClose")),class:"hover:underline cursor-pointer"},c.toDisplayString(g.name),1)):c.createCommentVNode("",!0),p.title.length!==0&&k+1!==p.title.length?(c.openBlock(),c.createElementBlock("svg",NE,y[2]||(y[2]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128)),c.createElementVNode("div",{class:"absolute hover:cursor-pointer top-[7px] right-0 text-xl group",onClick:y[1]||(y[1]=g=>t("onClose"))},y[3]||(y[3]=[c.createElementVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16.00 16.00",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"duration-200","stroke-width":"0.592"},[c.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[c.createElementVNode("path",{d:"M0 14.545L1.455 16 8 9.455 14.545 16 16 14.545 9.455 8 16 1.455 14.545 0 8 6.545 1.455 0 0 1.455 6.545 8z","fill-rule":"evenodd"})])],-1)]))])]),c.createElementVNode("div",{ref_key:"dynamicDiv",ref:n,class:c.normalizeClass(["py-4 px-4",{"overflow-y-auto":r.value}]),style:c.normalizeStyle({maxHeight:`${a.value-200}px`})},[c.renderSlot(p.$slots,"default")],6),c.createElementVNode("div",_E,[c.createElementVNode("div",WE,[c.createElementVNode("div",UE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.value,(g,k)=>(c.openBlock(),c.createElementBlock("div",{key:k},[c.createElementVNode("button",{class:c.normalizeClass(g.class||"btn"),onClick:v=>l(g)},c.toDisplayString(g.title),11,$E)]))),128))])])])],6)):c.createCommentVNode("",!0)]),_:3}),p.show?(c.openBlock(),c.createElementBlock("div",GE)):c.createCommentVNode("",!0)])])}}}),YE=["aria-checked"],ZE=c.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean,default:!1},background:{default:"bg-[#1C64F2]"},disable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue);c.watch(()=>t.modelValue,r=>{a.value=r});const n=()=>{t.disable||(a.value=!a.value,i("update:modelValue",a.value))};return(r,l)=>(c.openBlock(),c.createElementBlock("button",{onClick:n,class:c.normalizeClass(["relative w-[40px] h-[25px] rounded-full p-1 transition-colors duration-200 my-[1px]",[a.value?r.background:"bg-gray-200",r.disable?"cursor-not-allowed":"cursor-pointer"]]),role:"switch","aria-checked":a.value},[c.createElementVNode("div",{class:c.normalizeClass(["flex items-center justify-center w-[15px] h-[15px] rounded-full bg-white shadow-md transform transition-transform duration-200",a.value?"translate-x-[110%]":"translate-x-0"])},null,2)],10,YE))}});class ie{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class G{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var a=e?t.split(e):[t],n=a.length,r;for(let l=0;l<n&&(i=i[a[l]],r=i,!!i);l++);return r}static deepClone(e,t,i=[]){var a={}.__proto__,n=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var r in e){let l=e[r],h,d;l!=null&&typeof l=="object"&&(l.__proto__===a||l.__proto__===n)&&(h=i.findIndex(u=>u.subject===l),h>-1?t[r]=i[h].copy:(d=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:d}),t[r]=this.deepClone(l,d,i)))}return t}}let XE=class kx extends ie{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,a=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let n=G.elOffset(this.container);i-=n.left,a-=n.top}return{x:i,y:a}}elementPositionCoords(e,t="right"){var i=G.elOffset(e),a,n,r;switch(this.container!==document.body&&(a=G.elOffset(this.container),i.left-=a.left,i.top-=a.top),t){case"right":n=i.left+e.offsetWidth,r=i.top-1;break;case"bottom":n=i.left,r=i.top+e.offsetHeight;break;case"left":n=i.left,r=i.top-1;break;case"top":n=i.left,r=i.top;break;case"center":n=i.left+e.offsetWidth/2,r=i.top+e.offsetHeight/2;break}return{x:n,y:r,offset:i}}show(e,t){var i,a,n,r,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(n=e,l=this.elementPositionCoords(e,t),r=l.offset,i=l.x,a=l.y):typeof e=="number"?(r={top:0,left:0},i=e,a=t):(l=this.containerEventCoords(e),i=l.x,a=l.y,this.reversedX=!1),this.element.style.top=a+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,a,n,r,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",h=>{h.stopPropagation()}),this)}_fitToScreen(e,t,i,a,n){var r=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-a.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,r?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(n){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new kx(this.table,e,this),this.childPopup}};class B extends ie{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(a=>a.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new XE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var KE={rownum:function(o,e,t,i,a,n){return n.getPosition()}};const Zo=class Zo extends B{constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(a=>{var n="accessor"+(a.charAt(0).toUpperCase()+a.slice(1)),r;e.definition[n]&&(r=this.lookupAccessor(e.definition[n]),r&&(t=!0,i[n]={accessor:r,params:e.definition[n+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":Zo.accessors[e]?t=Zo.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),a=e.getComponent(),n=G.deepClone(e.data||{});return this.table.columnManager.traverse(function(r){var l,h,d,u;r.modules.accessor&&(h=r.modules.accessor[i]||r.modules.accessor.accessor||!1,h&&(l=r.getFieldValue(n),l!="undefined"&&(u=r.getComponent(),d=typeof h.params=="function"?h.params(l,n,t,u,a):h.params,r.setFieldValue(n,h.accessor(l,n,t,d,u,a)))))}),n}};E(Zo,"moduleName","accessor"),E(Zo,"accessors",KE);let E9=Zo;var JE={method:"GET"};function S9(o,e){var t=[];if(e=e||"",Array.isArray(o))o.forEach((a,n)=>{t=t.concat(S9(a,e?e+"["+n+"]":n))});else if(typeof o=="object")for(var i in o)t=t.concat(S9(o[i],e?e+"["+i+"]":i));else t.push({key:e,value:o});return t}function QE(o){var e=S9(o),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function vx(o,e,t){return o&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",o+=(o.includes("?")?"&":"?")+QE(t)),o}function eS(o,e,t){var i;return new Promise((a,n)=>{if(o=this.urlGenerator.call(this.table,o,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var r in i.headers)e.headers||(e.headers={}),typeof e.headers[r]>"u"&&(e.headers[r]=i.headers[r]);e.body=i.body.call(this,o,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);o?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(o,e).then(l=>{l.ok?l.json().then(h=>{a(h)}).catch(h=>{n(h),console.warn("Ajax Load Error - Invalid JSON returned",h)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),n(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),n(l)})):(console.warn("Ajax Load Error - No URL Set"),a([]))})}function I9(o,e){var t=[];if(e=e||"",Array.isArray(o))o.forEach((a,n)=>{t=t.concat(I9(a,e?e+"["+n+"]":n))});else if(typeof o=="object")for(var i in o)t=t.concat(I9(o[i],e?e+"["+i+"]":i));else t.push({key:e,value:o});return t}var tS={json:{headers:{"Content-Type":"application/json"},body:function(o,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(o,e,t){var i=I9(t),a=new FormData;return i.forEach(function(n){a.append(n.key,n.value)}),a}}};const Ce=class Ce extends B{constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=Ce.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Ce.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Ce.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,a){var n=this.table.options.ajaxParams;return n&&(typeof n=="function"&&(n=n.call(this.table)),a=Object.assign(Object.assign({},n),a)),a}requestDataCheck(e,t,i,a){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,a,n){var r;return!n&&this.requestDataCheck(e)?(e&&this.setUrl(e),r=this.generateConfig(i),this.sendRequest(this.url,t,r)):n}setDefaultConfig(e={}){this.config=Object.assign({},Ce.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(a=>(this.table.options.ajaxResponse&&(a=this.table.options.ajaxResponse.call(this.table,e,t,a)),a)):Promise.reject()}};E(Ce,"moduleName","ajax"),E(Ce,"defaultConfig",JE),E(Ce,"defaultURLGenerator",vx),E(Ce,"defaultLoaderPromise",eS),E(Ce,"contentTypeFormatters",tS);let T9=Ce;var iS={replace:function(o){return this.table.setData(o)},update:function(o){return this.table.updateOrAddData(o)},insert:function(o){return this.table.addData(o)}},aS={table:function(o){var e=[],t=!0,i=this.table.columnManager.columns,a=[],n=[];return o=o.split(`
|
|
2
|
+
`),o.forEach(function(r){e.push(r.split(" "))}),e.length&&!(e.length===1&&e[0].length<2)?(e[0].forEach(function(r){var l=i.find(function(h){return r&&h.definition.title&&r.trim()&&h.definition.title.trim()===r.trim()});l?a.push(l):t=!1}),t||(t=!0,a=[],e[0].forEach(function(r){var l=i.find(function(h){return r&&h.field&&r.trim()&&h.field.trim()===r.trim()});l?a.push(l):t=!1}),t||(a=this.table.columnManager.columnsByIndex)),t&&e.shift(),e.forEach(function(r){var l={};r.forEach(function(h,d){a[d]&&(l[a[d].field]=h)}),n.push(l)}),n):!1}},oS={copyToClipboard:["ctrl + 67","meta + 67"]},nS={copyToClipboard:function(o){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},sS={keybindings:{bindings:oS,actions:nS}},xe;let rS=(xe=class extends B{constructor(e){super(e),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0,this.registerTableOption("clipboard",!1),this.registerTableOption("clipboardCopyStyled",!0),this.registerTableOption("clipboardCopyConfig",!1),this.registerTableOption("clipboardCopyFormatter",!1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOption("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction","insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleClipboard")}initialize(){this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,(this.mode===!0||this.mode==="copy")&&this.table.element.addEventListener("copy",e=>{var t,i,a;this.blocked||(e.preventDefault(),this.customSelection?(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t))):(a=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),i=this.table.modules.export.generateHTMLTable(a),t=i?this.generatePlainContent(a):"",this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t),i=this.table.options.clipboardCopyFormatter("html",i))),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",t):e.clipboardData&&e.clipboardData.setData?(e.clipboardData.setData("text/plain",t),i&&e.clipboardData.setData("text/html",i)):e.originalEvent&&e.originalEvent.clipboardData.setData&&(e.originalEvent.clipboardData.setData("text/plain",t),i&&e.originalEvent.clipboardData.setData("text/html",i)),this.dispatchExternal("clipboardCopied",t,i),this.reset())}),(this.mode===!0||this.mode==="paste")&&this.table.element.addEventListener("paste",e=>{this.paste(e)}),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunction("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!0,this.customSelection=!1}generatePlainContent(e){var t=[];return e.forEach(i=>{var a=[];i.columns.forEach(n=>{var r="";if(n)if(i.type==="group"&&(n.value=n.component.getKey()),n.value===null)r="";else switch(typeof n.value){case"object":r=JSON.stringify(n.value);break;case"undefined":r="";break;default:r=n.value}a.push(r)}),t.push(a.join(" "))}),t.join(`
|
|
3
|
+
`)}copy(e,t){var i,a;this.blocked=!1,this.customSelection=!1,(this.mode===!0||this.mode==="copy")&&(this.rowRange=e||this.table.options.clipboardCopyRowRange,typeof window.getSelection<"u"&&typeof document.createRange<"u"?(e=document.createRange(),e.selectNodeContents(this.table.element),i=window.getSelection(),i.toString()&&t&&(this.customSelection=i.toString()),i.removeAllRanges(),i.addRange(e)):typeof document.selection<"u"&&typeof document.body.createTextRange<"u"&&(a=document.body.createTextRange(),a.moveToElementText(this.table.element),a.select()),document.execCommand("copy"),i&&i.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=xe.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e;break}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=xe.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e;break}}paste(e){var t,i,a;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),i=this.pasteParser.call(this,t),i?(e.preventDefault(),this.table.modExists("mutator")&&(i=this.mutateData(i)),a=this.pasteAction.call(this,i),this.dispatchExternal("clipboardPasted",t,i,a)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"clipboard"))}):t=e,t}checkPasteOrigin(e){var t=!0,i=this.confirm("clipboard-paste",[e]);return(i||!["DIV","SPAN"].includes(e.target.tagName))&&(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}},E(xe,"moduleName","clipboard"),E(xe,"moduleExtensions",sS),E(xe,"pasteActions",iS),E(xe,"pasteParsers",aS),xe);class lS{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}_getSelf(){return this._row}}class bx{constructor(e){return this._cell=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._cell.table.componentFunctionBinder.handle("cell",t._cell,i)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){typeof t>"u"&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class wn extends ie{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField(),i={top:"flex-start",bottom:"flex-end",middle:"center"},a={left:"flex-start",right:"flex-end",center:"center"};if(e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems=i[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent=a[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass){var n=this.column.definition.cssClass.split(" ");n.forEach(r=>{e.classList.add(r)})}this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(e=this.chain("cell-format",this,null,()=>this.element.innerHTML=this.value),typeof e){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",e!=null&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,i){var a=this.setValueProcessData(e,t,i);a&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,i){var a=!1;return(this.value!==e||i)&&(a=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),a&&this.dispatch("cell-value-changed",this),a}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new bx(this)),this.component}}class wx{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._column.table.componentFunctionBinder.handle("column",t._column,i)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var i=this._column.table.columnManager.findColumn(e);i?this._column.table.columnManager.moveColumn(this._column,i,t):console.warn("Move Error - No matching column found:",i)}getNextColumn(){var e=this._column.nextColumn();return e?e.getComponent():!1}getPrevColumn(){var e=this._column.prevColumn();return e?e.getComponent():!1}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return e===!0?t=this._column.reinitializeWidth(!0):t=this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var Mx={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};const Po=class Po extends ie{constructor(e,t,i){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=i,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach((a,n)=>{var r=new Po(a,this);this.attachColumn(r)}),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end";break}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)typeof this.definition[t]>"u"&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate(Po.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{Po.defaultOptionList.indexOf(e)===-1&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)})}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),e.headerVertical==="flip"&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;if(this.dispatch("column-layout",this),typeof e.visible<"u"&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass){var t=e.cssClass.split(" ");t.forEach(i=>{this.element.classList.add(i)})}e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",a=>{a.stopPropagation(),i.focus()}),i.addEventListener("mousedown",a=>{a.stopPropagation()}),i.addEventListener("change",()=>{e.title=i.value,this.dispatchExternal("columnTitleChanged",this.getComponent())}),t.appendChild(i),e.field?this.langBind("columns|"+e.field,a=>{i.value=a||e.title||" "}):i.value=e.title||" "}else e.field?this.langBind("columns|"+e.field,a=>{this._formatColumnHeaderTitle(t,a||e.title||" ")}):this._formatColumnHeaderTitle(t,e.title||" ");return t}_formatColumnHeaderTitle(e,t){var i=this.chain("column-format",[this,t,e],null,()=>t);switch(typeof i){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=i}}_buildGroupHeader(){if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var e=this.definition.cssClass.split(" ");e.forEach(t=>{this.element.classList.add(t)})}this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t=e,i=this.fieldStructure,a=i.length,n;for(let r=0;r<a&&(t=t[i[r]],n=t,!!t);r++);return n}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var i=e,a=this.fieldStructure,n=a.length;for(let r=0;r<n;r++)if(r==n-1)i[a[r]]=t;else{if(!i[a[r]])if(typeof t<"u")i[a[r]]={};else break;i=i[a[r]]}}attachColumn(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(e,t){var i=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=i+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=i-this.contentElement.offsetHeight+"px"),this.columns.forEach(function(a){a.verticalAlign(e)})}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach(function(e){e.clearVerticalAlign()}),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?this.columns.length?this.columns[0].getFirstColumn():!1:this}getLastColumn(){return this.isGroup?this.columns.length?this.columns[this.columns.length-1].getLastColumn():!1:this}getColumns(e){var t=[];return e?this.columns.forEach(i=>{t.push(i),t=t.concat(i.getColumns(!0))}):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach(function(i){t.push(i.getDefinition(!0))}),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach(function(t){t.visible&&(e=!0)}),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.show()}),!this.isGroup&&this.width===null&&this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.hide()}),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(t){t.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(t.row.getElement().offsetParent!==null?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(t){t.calcHeight()}),e.forEach(function(t){t.setCellHeight()})}getWidth(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(t){t.setMinWidth()})}setMaxWidth(e){this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth ("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(t){t.setMaxWidth()})}delete(){return new Promise((e,t)=>{this.isGroup&&this.columns.forEach(function(a){a.delete()}),this.dispatch("column-delete",this);var i=this.cells.length;for(let a=0;a<i;a++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),e()})}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(e){var t=new wn(this,e);return this.cells.push(t),t}nextColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._nextVisibleColumn(e+1):!1}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._prevVisibleColumn(e-1):!1}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,typeof this.definition.width<"u"&&!e&&this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach(a=>{a.clearWidth()}));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach(a=>{var n=a.getWidth();n>t&&(t=n)}),t)){var i=t+1;e?this.setWidth(i):(this.maxInitialWidth&&!e&&(i=Math.min(i,this.maxInitialWidth)),this.setWidthActual(i))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then(i=>(t.field==this.field&&(this.field=!1),this.delete().then(()=>i.getComponent()))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new wx(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Po?this.parent.getComponent():!1}};E(Po,"defaultOptionList",Mx);let No=Po;class Z7{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e&&e.getComponent()}getPrevRow(){var e=this._row.prevRow();return e&&e.getComponent()}}class ae extends ie{constructor(e,t,i="row"){super(t.table),this.parent=t,this.data={},this.type=i,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach(e=>{e.cellRendered()})}reinitializeHeight(){this.heightInitialized=!1,this.element&&this.element.offsetParent!==null&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&this.element.offsetParent!==null&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,i=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(i=this.calcMinHeight(),t=this.calcMaxHeight(),e?this.height=Math.max(t,i):this.height=this.manualHeight?this.height:Math.max(t,i)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach(function(t){var i=t.getHeight();i>e&&(e=i)}),e}setCellHeight(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach(function(e){e.clearHeight()})}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t=this.element&&G.elVisible(this.element),i={},a;return new Promise((n,r)=>{typeof e=="string"&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(i=Object.assign(i,this.data),i=Object.assign(i,e)),a=this.chain("row-data-changing",[this,i,e],null,e);for(let l in a)this.data[l]=a[l];this.dispatch("row-data-save-after",this);for(let l in e)this.table.columnManager.getColumnsByFieldRoot(l).forEach(d=>{let u=this.getCell(d.getField());if(u){let p=d.getFieldValue(a);u.getValue()!==p&&(u.setValueProcessData(p),t&&u.cellRendered())}});t?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,t,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),n()})}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){var t=!1;return e=this.table.columnManager.findColumn(e),!this.initialized&&this.cells.length===0&&this.generateCells(),t=this.cells.find(function(i){return i.column===e}),t}getCellIndex(e){return this.cells.findIndex(function(t){return t===e})}findCell(e){return this.cells.find(t=>t.element===e)}getCells(){return!this.initialized&&this.cells.length===0&&this.generateCells(),this.cells}nextRow(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1}prevRow(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1}moveToRow(e,t){var i=this.table.rowManager.findRow(e);i?(this.table.rowManager.moveRowActual(this,i,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return this.isDisplayed()?this.position:!1}setPosition(e){e!=this.position&&(this.position=e,this.positionWatchers.forEach(t=>{t(this.position)}))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new Z7(this)),this.component}}var hS={avg:function(o,e,t){var i=0,a=typeof t.precision<"u"?t.precision:2;return o.length&&(i=o.reduce(function(n,r){return Number(n)+Number(r)}),i=i/o.length,i=a!==!1?i.toFixed(a):i),parseFloat(i).toString()},max:function(o,e,t){var i=null,a=typeof t.precision<"u"?t.precision:!1;return o.forEach(function(n){n=Number(n),(n>i||i===null)&&(i=n)}),i!==null?a!==!1?i.toFixed(a):i:""},min:function(o,e,t){var i=null,a=typeof t.precision<"u"?t.precision:!1;return o.forEach(function(n){n=Number(n),(n<i||i===null)&&(i=n)}),i!==null?a!==!1?i.toFixed(a):i:""},sum:function(o,e,t){var i=0,a=typeof t.precision<"u"?t.precision:!1;return o.length&&o.forEach(function(n){n=Number(n),i+=isNaN(n)?0:Number(n)}),a!==!1?i.toFixed(a):i},concat:function(o,e,t){var i=0;return o.length&&(i=o.reduce(function(a,n){return String(a)+String(n)})),i},count:function(o,e,t){var i=0;return o.length&&o.forEach(function(a){a&&i++}),i},unique:function(o,e,t){var i=o.filter((a,n)=>(o||a===0)&&o.indexOf(a)===n);return i.length}};const Ne=class Ne extends B{constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new No({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?((this.table.options.columnCalcs=="table"||this.table.options.columnCalcs=="both")&&this.recalcActiveRows(),this.table.options.columnCalcs!="table"&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,i={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":Ne.calculations[t.topCalc]?i.topCalc=Ne.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":i.topCalc=t.topCalc;break}i.topCalc&&(e.modules.columnCalcs=i,this.topCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":Ne.calculations[t.bottomCalc]?i.botCalc=Ne.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":i.botCalc=t.bottomCalc;break}i.botCalc&&(e.modules.columnCalcs=i,this.botCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,i;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),i=this.generateRow("top",t),this.topRow=i;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(i.getElement()),i.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),i=this.generateRow("bottom",t),this.botRow=i;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(i.getElement()),i.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){if((this.topCalcs.length||this.botCalcs.length)&&(this.table.options.columnCalcs!=="group"&&this.recalcActiveRows(),this.table.options.groupBy&&this.table.options.columnCalcs!=="table")){var e=this.table.modules.groupRows.getChildGroups();e.forEach(t=>{this.recalcGroup(t)})}}recalcGroup(e){var t,i;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),i=this.generateRowData("bottom",t),e.calcs.bottom.updateData(i),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),i=this.generateRowData("top",t),e.calcs.top.updateData(i),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],i=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,a=this.table.modules.dataTree;return e.forEach(n=>{var r;t.push(n.getData()),i&&((r=n.modules.dataTree)!=null&&r.open)&&this.rowsToData(a.getFilteredTreeChildren(n)).forEach(l=>{t.push(n)})}),t}generateRow(e,t){var i=this.generateRowData(e,t),a;return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),a=new ae(i,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),a.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),a.component=!1,a.getComponent=()=>(a.component||(a.component=new lS(a)),a.component),a.generateCells=()=>{var n=[];this.table.columnManager.columnsByIndex.forEach(r=>{this.genColumn.setField(r.getField()),this.genColumn.hozAlign=r.hozAlign,r.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(r.definition[e+"CalcFormatter"]),params:r.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=r.definition.cssClass;var l=new wn(this.genColumn,a);l.getElement(),l.column=r,l.setWidth(),r.cells.push(l),n.push(l),r.visible||l.hide()}),a.cells=n},a}generateRowData(e,t){var i={},a=e=="top"?this.topCalcs:this.botCalcs,n=e=="top"?"topCalc":"botCalc",r,l;return a.forEach(function(h){var d=[];h.modules.columnCalcs&&h.modules.columnCalcs[n]&&(t.forEach(function(u){d.push(h.getFieldValue(u))}),l=n+"Params",r=typeof h.modules.columnCalcs[l]=="function"?h.modules.columnCalcs[l](d,t):h.modules.columnCalcs[l],h.setFieldValue(i,h.modules.columnCalcs[n](d,t,r)))}),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={},t;return this.table.options.groupBy&&this.table.modExists("groupRows")?(t=this.table.modules.groupRows.getGroups(!0),t.forEach(i=>{e[i.getKey()]=this.getGroupResults(i)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),i=e.getSubGroups(),a={},n={};return i.forEach(r=>{a[r.getKey()]=this.getGroupResults(r)}),n={top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:a},n}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}};E(Ne,"moduleName","columnCalcs"),E(Ne,"calculations",hS);let D9=Ne;class Cx extends B{constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?t.dataTreeBranchElement===!0?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):typeof t.dataTreeBranchElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?typeof t.dataTreeCollapseElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?typeof t.dataTreeExpandElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(i,a){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(i,a){return t.dataTreeStartExpanded[a]};break}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){var t;e&&(t=this.table.rowManager.getRows(),t.forEach(i=>{this.reinitializeRowChildren(i)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||(e?e.field:!1)}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach(t=>{e=e.concat(this.getTreeChildren(t,!1,!0))}),e}rowDataChanged(e,t,i){this.redrawNeeded(i)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){var t=e.column.getField();t===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],i=Array.isArray(t),a=i||!i&&typeof t=="object"&&t!==null;!a&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!a&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:a?e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0):!1,controlEl:e.modules.dataTree&&a?e.modules.dataTree.controlEl:!1,branchEl:e.modules.dataTree&&a?e.modules.dataTree.branchEl:!1,parent:e.modules.dataTree?e.modules.dataTree.parent:!1,children:a}}reinitializeRowChildren(e){var t=this.getTreeChildren(e,!1,!0);t.forEach(function(i){i.reinitialize(!0)})}layoutRow(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],i=t.getElement(),a=e.modules.dataTree;a.branchEl&&(a.branchEl.parentNode&&a.branchEl.parentNode.removeChild(a.branchEl),a.branchEl=!1),a.controlEl&&(a.controlEl.parentNode&&a.controlEl.parentNode.removeChild(a.controlEl),a.controlEl=!1),this.generateControlElement(e,i),e.getElement().classList.add("tabulator-tree-level-"+a.index),a.index&&(this.branchEl?(a.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(a.branchEl,i.firstChild),this.table.rtl?a.branchEl.style.marginRight=(a.branchEl.offsetWidth+a.branchEl.style.marginLeft)*(a.index-1)+a.index*this.indent+"px":a.branchEl.style.marginLeft=(a.branchEl.offsetWidth+a.branchEl.style.marginRight)*(a.index-1)+a.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+a.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+a.index*this.indent+"px")}generateControlElement(e,t){var i=e.modules.dataTree,a=i.controlEl;t=t||e.getCells()[0].getElement(),i.children!==!1&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",n=>{n.stopPropagation(),this.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",n=>{n.stopPropagation(),this.expandRow(e)})),i.controlEl.addEventListener("mousedown",n=>{n.stopPropagation()}),a&&a.parentNode===t?a.parentNode.replaceChild(i.controlEl,a):t.insertBefore(i.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach((i,a)=>{var n,r;t.push(i),i instanceof ae&&(i.create(),n=i.modules.dataTree,!n.index&&n.children!==!1&&(r=this.getChildren(i,!1,!0),r.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var a=e.modules.dataTree,n=[],r=[];return a.children!==!1&&(a.open||t)&&(Array.isArray(a.children)||(a.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?n=this.table.modules.filter.filter(a.children):n=a.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(n,i),n.forEach(l=>{r.push(l);var h=this.getChildren(l,!1,!0);h.forEach(d=>{r.push(d)})})),r}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(a=>{var n=new ae(a||{},this.table.rowManager);n.create(),n.modules.dataTree.index=e.modules.dataTree.index+1,n.modules.dataTree.parent=e,n.modules.dataTree.children&&(n.modules.dataTree.open=this.startOpen(n.getComponent(),n.modules.dataTree.index)),t.push(n)}),t}expandRow(e,t){var i=e.modules.dataTree;i.children!==!1&&(i.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return e.modules.dataTree.parent?e.modules.dataTree.parent.getComponent():!1}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,i=[],a;return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?a=this.table.modules.filter.filter(t.children):a=t.children,a.forEach(n=>{n instanceof ae&&i.push(n)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof ae&&i.wipe()})}rowDelete(e){var t=e.modules.dataTree.parent,i;t&&(i=this.findChildIndex(e,t),i!==!1&&t.data[this.field].splice(i,1),t.data[this.field].length||delete t.data[this.field],this.initializeRow(t),this.layoutRow(t)),this.refreshData(!0)}addTreeChildRow(e,t,i,a){var n=!1;typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),typeof a<"u"&&(n=this.findChildIndex(a,e),n!==!1&&e.data[this.field].splice(i?n:n+1,0,t)),n===!1&&(i?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var i=!1;return typeof e=="object"?e instanceof ae?i=e.data:e instanceof Z7?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(a=>a instanceof ae?a.element===e:!1),i&&(i=i.data)):e===null&&(i=!1):typeof e>"u"?i=!1:i=t.data[this.field].find(a=>a.data[this.table.options.index]==e),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),i==-1&&(i=!1)),i}getTreeChildren(e,t,i){var a=e.modules.dataTree,n=[];return a&&a.children&&(Array.isArray(a.children)||(a.children=this.generateChildren(e)),a.children.forEach(r=>{r instanceof ae&&(n.push(t?r.getComponent():r),i&&this.getTreeChildren(r,t,i).forEach(l=>{n.push(l)}))})),n}getChildField(){return this.field}redrawNeeded(e){return(this.field?typeof e[this.field]<"u":!1)||(this.elementField?typeof e[this.elementField]<"u":!1)}}E(Cx,"moduleName","dataTree");function cS(o,e={},t){var i=e.delimiter?e.delimiter:",",a=[],n=[];o.forEach(r=>{var l=[];switch(r.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":r.columns.forEach((h,d)=>{h&&h.depth===1&&(n[d]=typeof h.value>"u"||h.value===null?"":'"'+String(h.value).split('"').join('""')+'"')});break;case"row":r.columns.forEach(h=>{if(h){switch(typeof h.value){case"object":h.value=h.value!==null?JSON.stringify(h.value):"";break;case"undefined":h.value="";break}l.push('"'+String(h.value).split('"').join('""')+'"')}}),a.push(l.join(i));break}}),n.length&&a.unshift(n.join(i)),a=a.join(`
|
|
4
|
+
`),e.bom&&(a="\uFEFF"+a),t(a,"text/csv")}function dS(o,e,t){var i=[];o.forEach(a=>{var n={};switch(a.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":a.columns.forEach(r=>{r&&(n[r.component.getTitleDownload()||r.component.getField()]=r.value)}),i.push(n);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function uS(o,e={},t){var i=[],a=[],n={},r=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},l=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},h=e.jsPDF||{},d=e.title?e.title:"",u,p;h.orientation||(h.orientation=e.orientation||"landscape"),h.unit||(h.unit="pt"),o.forEach(f=>{switch(f.type){case"header":i.push(y(f));break;case"group":a.push(y(f,r));break;case"calc":a.push(y(f,l));break;case"row":a.push(y(f));break}});function y(f,g){var k=[];return f.columns.forEach(v=>{var m;if(v){switch(typeof v.value){case"object":v.value=v.value!==null?JSON.stringify(v.value):"";break;case"undefined":v.value="";break}m={content:v.value,colSpan:v.width,rowSpan:v.height},g&&(m.styles=g),k.push(m)}}),k}u=this.dependencyRegistry.lookup("jspdf","jsPDF"),p=new u(h),e.autoTable&&(typeof e.autoTable=="function"?n=e.autoTable(p)||{}:n=e.autoTable),d&&(n.didDrawPage=function(f){p.text(d,40,30)}),n.head=i,n.body=a,p.autoTable(n),e.documentProcessing&&e.documentProcessing(p),t(p.output("arraybuffer"),"application/pdf")}function pS(o,e,t){var i=this,a=e.sheetName||"Sheet1",n=this.dependencyRegistry.lookup("XLSX"),r=n.utils.book_new(),l=new ie(this),h="compress"in e?e.compress:!0,d=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:h},u;d.type="binary",r.SheetNames=[],r.Sheets={};function p(){var g=[],k=[],v={},m={s:{c:0,r:0},e:{c:o[0]?o[0].columns.reduce((w,M)=>w+(M&&M.width?M.width:1),0):0,r:o.length}};return o.forEach((w,M)=>{var C=[];w.columns.forEach(function(S,L){S?(C.push(!(S.value instanceof Date)&&typeof S.value=="object"?JSON.stringify(S.value):S.value),(S.width>1||S.height>-1)&&(S.height>1||S.width>1)&&k.push({s:{r:M,c:L},e:{r:M+S.height-1,c:L+S.width-1}})):C.push("")}),g.push(C)}),n.utils.sheet_add_aoa(v,g),v["!ref"]=n.utils.encode_range(m),k.length&&(v["!merges"]=k),v}if(e.sheetOnly){t(p());return}if(e.sheets)for(var y in e.sheets)e.sheets[y]===!0?(r.SheetNames.push(y),r.Sheets[y]=p()):(r.SheetNames.push(y),l.commsSend(e.sheets[y],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(g){r.Sheets[y]=g}}));else r.SheetNames.push(a),r.Sheets[a]=p();e.documentProcessing&&(r=e.documentProcessing(r));function f(g){for(var k=new ArrayBuffer(g.length),v=new Uint8Array(k),m=0;m!=g.length;++m)v[m]=g.charCodeAt(m)&255;return k}u=n.write(r,d),t(f(u),"application/octet-stream")}function yS(o,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(o),"text/html")}function fS(o,e,t){const i=[];o.forEach(a=>{const n={};switch(a.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":a.columns.forEach(r=>{r&&(n[r.component.getTitleDownload()||r.component.getField()]=r.value)}),i.push(JSON.stringify(n));break}}),t(i.join(`
|
|
5
|
+
`),"application/x-ndjson")}var mS={csv:cS,json:dS,jsonLines:fS,pdf:uS,xlsx:pS,html:yS},Ve;let gS=(Ve=class extends B{constructor(e){super(e),this.registerTableOption("downloadEncoder",function(t,i){return new Blob([t],{type:i})}),this.registerTableOption("downloadConfig",{}),this.registerTableOption("downloadRowRange","active"),this.registerColumnOption("download"),this.registerColumnOption("titleDownload")}initialize(){this.deprecatedOptionsCheck(),this.registerTableFunction("download",this.download.bind(this)),this.registerTableFunction("downloadToTab",this.downloadToTab.bind(this))}deprecatedOptionsCheck(){}downloadToTab(e,t,i,a){this.download(e,t,i,a,!0)}download(e,t,i,a,n){var r=!1;function l(d,u){n?n===!0?this.triggerDownload(d,u,e,t,!0):n(d):this.triggerDownload(d,u,e,t)}if(typeof e=="function"?r=e:Ve.downloaders[e]?r=Ve.downloaders[e]:console.warn("Download Error - No such download type found: ",e),r){var h=this.generateExportList(a);r.call(this.table,h,i||{},l.bind(this))}}generateExportList(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),i=this.table.options.groupHeaderDownload;return i&&!Array.isArray(i)&&(i=[i]),t.forEach(a=>{var n;a.type==="group"&&(n=a.columns[0],i&&i[a.indent]&&(n.value=i[a.indent](n.value,a.component._group.getRowCount(),a.component._group.getData(),a.component)))}),t}triggerDownload(e,t,i,a,n){var r=document.createElement("a"),l=this.table.options.downloadEncoder(e,t);l&&(n?window.open(window.URL.createObjectURL(l)):(a=a||"Tabulator."+(typeof i=="function"?"txt":i),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(l,a):(r.setAttribute("href",window.URL.createObjectURL(l)),r.setAttribute("download",a),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r))),this.dispatchExternal("downloadComplete"))}commsReceived(e,t,i){switch(t){case"intercept":this.download(i.type,"",i.options,i.active,i.intercept);break}}},E(Ve,"moduleName","download"),E(Ve,"downloaders",mS),Ve);function X7(o,e){var t=e.mask,i=typeof e.maskLetterChar<"u"?e.maskLetterChar:"A",a=typeof e.maskNumberChar<"u"?e.maskNumberChar:"9",n=typeof e.maskWildcardChar<"u"?e.maskWildcardChar:"*";function r(l){var h=t[l];typeof h<"u"&&h!==n&&h!==i&&h!==a&&(o.value=o.value+""+h,r(l+1))}o.addEventListener("keydown",l=>{var h=o.value.length,d=l.key;if(l.keyCode>46&&!l.ctrlKey&&!l.metaKey){if(h>=t.length)return l.preventDefault(),l.stopPropagation(),!1;switch(t[h]){case i:if(d.toUpperCase()==d.toLowerCase())return l.preventDefault(),l.stopPropagation(),!1;break;case a:if(isNaN(d))return l.preventDefault(),l.stopPropagation(),!1;break;case n:break;default:if(d!==t[h])return l.preventDefault(),l.stopPropagation(),!1}}}),o.addEventListener("keyup",l=>{l.keyCode>46&&e.maskAutoFill&&r(o.value.length)}),o.placeholder||(o.placeholder=t),e.maskAutoFill&&r(o.value.length)}function kS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input");if(r.setAttribute("type",a.search?"search":"text"),r.style.padding="4px",r.style.width="100%",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let h in a.elementAttributes)h.charAt(0)=="+"?(h=h.slice(1),r.setAttribute(h,r.getAttribute(h)+a.elementAttributes["+"+h])):r.setAttribute(h,a.elementAttributes[h]);r.value=typeof n<"u"?n:"",e(function(){o.getType()==="cell"&&(r.focus({preventScroll:!0}),r.style.height="100%",a.selectContents&&r.select())});function l(h){(n===null||typeof n>"u")&&r.value!==""||r.value!==n?t(r.value)&&(n=r.value):i()}return r.addEventListener("change",l),r.addEventListener("blur",l),r.addEventListener("keydown",function(h){switch(h.keyCode){case 13:l();break;case 27:i();break;case 35:case 36:h.stopPropagation();break}}),a.mask&&X7(r,a),r}function vS(o,e,t,i,a){var n=o.getValue(),r=a.verticalNavigation||"hybrid",l=String(n!==null&&typeof n<"u"?n:""),h=document.createElement("textarea"),d=0;if(h.style.display="block",h.style.padding="2px",h.style.height="100%",h.style.width="100%",h.style.boxSizing="border-box",h.style.whiteSpace="pre-wrap",h.style.resize="none",a.elementAttributes&&typeof a.elementAttributes=="object")for(let p in a.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),h.setAttribute(p,h.getAttribute(p)+a.elementAttributes["+"+p])):h.setAttribute(p,a.elementAttributes[p]);h.value=l,e(function(){o.getType()==="cell"&&(h.focus({preventScroll:!0}),h.style.height="100%",h.scrollHeight,h.style.height=h.scrollHeight+"px",o.getRow().normalizeHeight(),a.selectContents&&h.select())});function u(p){(n===null||typeof n>"u")&&h.value!==""||h.value!==n?(t(h.value)&&(n=h.value),setTimeout(function(){o.getRow().normalizeHeight()},300)):i()}return h.addEventListener("change",u),h.addEventListener("blur",u),h.addEventListener("keyup",function(){h.style.height="";var p=h.scrollHeight;h.style.height=p+"px",p!=d&&(d=p,o.getRow().normalizeHeight())}),h.addEventListener("keydown",function(p){switch(p.keyCode){case 13:p.shiftKey&&a.shiftEnterSubmit&&u();break;case 27:i();break;case 38:(r=="editor"||r=="hybrid"&&h.selectionStart)&&(p.stopImmediatePropagation(),p.stopPropagation());break;case 40:(r=="editor"||r=="hybrid"&&h.selectionStart!==h.value.length)&&(p.stopImmediatePropagation(),p.stopPropagation());break;case 35:case 36:p.stopPropagation();break}}),a.mask&&X7(h,a),h}function bS(o,e,t,i,a){var n=o.getValue(),r=a.verticalNavigation||"editor",l=document.createElement("input");if(l.setAttribute("type","number"),typeof a.max<"u"&&l.setAttribute("max",a.max),typeof a.min<"u"&&l.setAttribute("min",a.min),typeof a.step<"u"&&l.setAttribute("step",a.step),l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let u in a.elementAttributes)u.charAt(0)=="+"?(u=u.slice(1),l.setAttribute(u,l.getAttribute(u)+a.elementAttributes["+"+u])):l.setAttribute(u,a.elementAttributes[u]);l.value=n;var h=function(u){d()};e(function(){o.getType()==="cell"&&(l.removeEventListener("blur",h),l.focus({preventScroll:!0}),l.style.height="100%",l.addEventListener("blur",h),a.selectContents&&l.select())});function d(){var u=l.value;!isNaN(u)&&u!==""&&(u=Number(u)),u!==n?t(u)&&(n=u):i()}return l.addEventListener("keydown",function(u){switch(u.keyCode){case 13:d();break;case 27:i();break;case 38:case 40:r=="editor"&&(u.stopImmediatePropagation(),u.stopPropagation());break;case 35:case 36:u.stopPropagation();break}}),a.mask&&X7(l,a),l}function wS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input");if(r.setAttribute("type","range"),typeof a.max<"u"&&r.setAttribute("max",a.max),typeof a.min<"u"&&r.setAttribute("min",a.min),typeof a.step<"u"&&r.setAttribute("step",a.step),r.style.padding="4px",r.style.width="100%",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let h in a.elementAttributes)h.charAt(0)=="+"?(h=h.slice(1),r.setAttribute(h,r.getAttribute(h)+a.elementAttributes["+"+h])):r.setAttribute(h,a.elementAttributes[h]);r.value=n,e(function(){o.getType()==="cell"&&(r.focus({preventScroll:!0}),r.style.height="100%")});function l(){var h=r.value;!isNaN(h)&&h!==""&&(h=Number(h)),h!=n?t(h)&&(n=h):i()}return r.addEventListener("blur",function(h){l()}),r.addEventListener("keydown",function(h){switch(h.keyCode){case 13:l();break;case 27:i();break}}),r}function MS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?window.DateTime||luxon.DateTime:null,h=o.getValue(),d=document.createElement("input");function u(y){var f;return l.isDateTime(y)?f=y:n==="iso"?f=l.fromISO(String(y)):f=l.fromFormat(String(y),n),f.toFormat("yyyy-MM-dd")}if(d.type="date",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",a.max&&d.setAttribute("max",n?u(a.max):a.max),a.min&&d.setAttribute("min",n?u(a.min):a.min),a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),d.setAttribute(y,d.getAttribute(y)+a.elementAttributes["+"+y])):d.setAttribute(y,a.elementAttributes[y]);h=typeof h<"u"?h:"",n&&(l?h=u(h):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=h,e(function(){o.getType()==="cell"&&(d.focus({preventScroll:!0}),d.style.height="100%",a.selectContents&&d.select())});function p(){var y=d.value,f;if((h===null||typeof h>"u")&&y!==""||y!==h){if(y&&n)switch(f=l.fromFormat(String(y),"yyyy-MM-dd"),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(h=d.value)}else i()}return d.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==d)&&p()}),d.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),d}function CS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?window.DateTime||luxon.DateTime:null,h,d=o.getValue(),u=document.createElement("input");if(u.type="time",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),u.setAttribute(y,u.getAttribute(y)+a.elementAttributes["+"+y])):u.setAttribute(y,a.elementAttributes[y]);d=typeof d<"u"?d:"",n&&(l?(l.isDateTime(d)?h=d:n==="iso"?h=l.fromISO(String(d)):h=l.fromFormat(String(d),n),d=h.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=d,e(function(){o.getType()=="cell"&&(u.focus({preventScroll:!0}),u.style.height="100%",a.selectContents&&u.select())});function p(){var y=u.value,f;if((d===null||typeof d>"u")&&y!==""||y!==d){if(y&&n)switch(f=l.fromFormat(String(y),"hh:mm"),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(d=u.value)}else i()}return u.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==u)&&p()}),u.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),u}function xS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"):null,h,d=o.getValue(),u=document.createElement("input");if(u.type="datetime-local",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),u.setAttribute(y,u.getAttribute(y)+a.elementAttributes["+"+y])):u.setAttribute(y,a.elementAttributes[y]);d=typeof d<"u"?d:"",n&&(l?(l.isDateTime(d)?h=d:n==="iso"?h=l.fromISO(String(d)):h=l.fromFormat(String(d),n),d=h.toFormat("yyyy-MM-dd")+"T"+h.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=d,e(function(){o.getType()==="cell"&&(u.focus({preventScroll:!0}),u.style.height="100%",a.selectContents&&u.select())});function p(){var y=u.value,f;if((d===null||typeof d>"u")&&y!==""||y!==d){if(y&&n)switch(f=l.fromISO(String(y)),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(d=u.value)}else i()}return u.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==u)&&p()}),u.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),u}let LS=class{constructor(e,t,i,a,n,r){this.edit=e,this.table=e.table,this.cell=t,this.params=this._initializeParams(r),this.data=[],this.displayItems=[],this.currentItems=[],this.focusedItem=null,this.input=this._createInputElement(),this.listEl=this._createListElement(),this.initialValues=null,this.isFilter=t.getType()==="header",this.filterTimeout=null,this.filtered=!1,this.typing=!1,this.values=[],this.popup=null,this.listIteration=0,this.lastAction="",this.filterTerm="",this.blurable=!0,this.actions={success:a,cancel:n},this._deprecatedOptionsCheck(),this._initializeValue(),i(this._onRendered.bind(this))}_deprecatedOptionsCheck(){}_initializeValue(){var e=this.cell.getValue();typeof e>"u"&&typeof this.params.defaultValue<"u"&&(e=this.params.defaultValue),this.initialValues=this.params.multiselect?e:[e],this.isFilter&&(this.input.value=this.initialValues?this.initialValues.join(","):"",this.headerFilterInitialListGen())}_onRendered(){var e=this.cell.getElement();function t(i){i.stopPropagation()}this.isFilter||(this.input.style.height="100%",this.input.focus({preventScroll:!0})),e.addEventListener("click",t),setTimeout(()=>{e.removeEventListener("click",t)},1e3),this.input.addEventListener("mousedown",this._preventPopupBlur.bind(this))}_createListElement(){var e=document.createElement("div");return e.classList.add("tabulator-edit-list"),e.addEventListener("mousedown",this._preventBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e}_setListWidth(){var e=this.isFilter?this.input:this.cell.getElement();this.listEl.style.minWidth=e.offsetWidth+"px",this.params.maxWidth&&(this.params.maxWidth===!0?this.listEl.style.maxWidth=e.offsetWidth+"px":typeof this.params.maxWidth=="number"?this.listEl.style.maxWidth=this.params.maxWidth+"px":this.listEl.style.maxWidth=this.params.maxWidth)}_createInputElement(){var e=this.params.elementAttributes,t=document.createElement("input");if(t.setAttribute("type",this.params.clearable?"search":"text"),t.style.padding="4px",t.style.width="100%",t.style.boxSizing="border-box",this.params.autocomplete||(t.style.cursor="default",t.style.caretColor="transparent"),e&&typeof e=="object")for(let i in e)i.charAt(0)=="+"?(i=i.slice(1),t.setAttribute(i,t.getAttribute(i)+e["+"+i])):t.setAttribute(i,e[i]);return this.params.mask&&X7(t,this.params),this._bindInputEvents(t),t}_initializeParams(e){var t=["values","valuesURL","valuesLookup"],i;return e=Object.assign({},e),e.verticalNavigation=e.verticalNavigation||"editor",e.placeholderLoading=typeof e.placeholderLoading>"u"?"Searching ...":e.placeholderLoading,e.placeholderEmpty=typeof e.placeholderEmpty>"u"?"No Results Found":e.placeholderEmpty,e.filterDelay=typeof e.filterDelay>"u"?300:e.filterDelay,e.emptyValue=Object.keys(e).includes("emptyValue")?e.emptyValue:"",i=Object.keys(e).filter(a=>t.includes(a)).length,i?i>1&&console.warn("list editor config error - only one of the values, valuesURL, or valuesLookup options can be set on the same editor"):console.warn("list editor config error - either the values, valuesURL, or valuesLookup option must be set"),e.autocomplete?e.multiselect&&(e.multiselect=!1,console.warn("list editor config error - multiselect option is not available when autocomplete is enabled")):(e.freetext&&(e.freetext=!1,console.warn("list editor config error - freetext option is only available when autocomplete is enabled")),e.filterFunc&&(e.filterFunc=!1,console.warn("list editor config error - filterFunc option is only available when autocomplete is enabled")),e.filterRemote&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option is only available when autocomplete is enabled")),e.mask&&(e.mask=!1,console.warn("list editor config error - mask option is only available when autocomplete is enabled")),e.allowEmpty&&(e.allowEmpty=!1,console.warn("list editor config error - allowEmpty option is only available when autocomplete is enabled")),e.listOnEmpty&&(e.listOnEmpty=!1,console.warn("list editor config error - listOnEmpty option is only available when autocomplete is enabled"))),e.filterRemote&&!(typeof e.valuesLookup=="function"||e.valuesURL)&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option should only be used when values list is populated from a remote source")),e}_bindInputEvents(e){e.addEventListener("focus",this._inputFocus.bind(this)),e.addEventListener("click",this._inputClick.bind(this)),e.addEventListener("blur",this._inputBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e.addEventListener("search",this._inputSearch.bind(this)),this.params.autocomplete&&e.addEventListener("keyup",this._inputKeyUp.bind(this))}_inputFocus(e){this.rebuildOptionsList()}_filter(){this.params.filterRemote?(clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout(()=>{this.rebuildOptionsList()},this.params.filterDelay)):this._filterList()}_inputClick(e){e.stopPropagation()}_inputBlur(e){this.blurable&&(this.popup?this.popup.hide():this._resolveValue(!0))}_inputSearch(){this._clearChoices()}_inputKeyDown(e){switch(e.keyCode){case 38:this._keyUp(e);break;case 40:this._keyDown(e);break;case 37:case 39:this._keySide(e);break;case 13:this._keyEnter();break;case 27:this._keyEsc();break;case 36:case 35:this._keyHomeEnd(e);break;case 9:this._keyTab(e);break;default:this._keySelectLetter(e)}}_inputKeyUp(e){switch(e.keyCode){case 38:case 37:case 39:case 40:case 13:case 27:break;default:this._keyAutoCompLetter(e)}}_preventPopupBlur(){this.popup&&this.popup.blockHide(),setTimeout(()=>{this.popup&&this.popup.restoreHide()},10)}_preventBlur(){this.blurable=!1,setTimeout(()=>{this.blurable=!0},10)}_keyTab(e){this.params.autocomplete&&this.lastAction==="typing"?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem,!0)}_keyUp(e){var t=this.displayItems.indexOf(this.focusedItem);(this.params.verticalNavigation=="editor"||this.params.verticalNavigation=="hybrid"&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t>0&&this._focusItem(this.displayItems[t-1]))}_keyDown(e){var t=this.displayItems.indexOf(this.focusedItem);(this.params.verticalNavigation=="editor"||this.params.verticalNavigation=="hybrid"&&t<this.displayItems.length-1)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t<this.displayItems.length-1&&(t==-1?this._focusItem(this.displayItems[0]):this._focusItem(this.displayItems[t+1])))}_keySide(e){this.params.autocomplete||(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}_keyEnter(e){this.params.autocomplete&&this.lastAction==="typing"?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem)}_keyEsc(e){this._cancel()}_keyHomeEnd(e){this.params.autocomplete&&e.stopImmediatePropagation()}_keySelectLetter(e){this.params.autocomplete||(e.preventDefault(),e.keyCode>=38&&e.keyCode<=90&&this._scrollToValue(e.keyCode))}_keyAutoCompLetter(e){this._filter(),this.lastAction="typing",this.typing=!0}_scrollToValue(e){clearTimeout(this.filterTimeout);var t=String.fromCharCode(e).toLowerCase();this.filterTerm+=t.toLowerCase();var i=this.displayItems.find(a=>typeof a.label<"u"&&a.label.toLowerCase().startsWith(this.filterTerm));i&&this._focusItem(i),this.filterTimeout=setTimeout(()=>{this.filterTerm=""},800)}_focusItem(e){this.lastAction="focus",this.focusedItem&&this.focusedItem.element&&this.focusedItem.element.classList.remove("focused"),this.focusedItem=e,e&&e.element&&(e.element.classList.add("focused"),e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}headerFilterInitialListGen(){this._generateOptions(!0)}rebuildOptionsList(){this._generateOptions().then(this._sortOptions.bind(this)).then(this._buildList.bind(this)).then(this._showList.bind(this)).catch(e=>{Number.isInteger(e)||console.error("List generation error",e)})}_filterList(){this._buildList(this._filterOptions()),this._showList()}_generateOptions(e){var t=[],i=++this.listIteration;return this.filtered=!1,this.params.values?t=this.params.values:this.params.valuesURL?t=this._ajaxRequest(this.params.valuesURL,this.input.value):typeof this.params.valuesLookup=="function"?t=this.params.valuesLookup(this.cell,this.input.value):this.params.valuesLookup&&(t=this._uniqueColumnValues(this.params.valuesLookupField)),t instanceof Promise?(e||this._addPlaceholder(this.params.placeholderLoading),t.then().then(a=>this.listIteration===i?this._parseList(a):Promise.reject(i))):Promise.resolve(this._parseList(t))}_addPlaceholder(e){var t=document.createElement("div");typeof e=="function"&&(e=e(this.cell.getComponent(),this.listEl)),e&&(this._clearList(),e instanceof HTMLElement?t=e:(t.classList.add("tabulator-edit-list-placeholder"),t.innerHTML=e),this.listEl.appendChild(t),this._showList())}_ajaxRequest(e,t){var i=this.params.filterRemote?{term:t}:{};return e=vx(e,{},i),fetch(e).then(a=>a.ok?a.json().catch(n=>(console.warn("List Ajax Load Error - Invalid JSON returned",n),Promise.reject(n))):(console.error("List Ajax Load Error - Connection Error: "+a.status,a.statusText),Promise.reject(a))).catch(a=>(console.error("List Ajax Load Error - Connection Error: ",a),Promise.reject(a)))}_uniqueColumnValues(e){var t={},i=this.table.getData(this.params.valuesLookup),a;return e?a=this.table.columnManager.getColumnByField(e):a=this.cell.getColumn()._getSelf(),a?i.forEach(n=>{var r=a.getFieldValue(n);this._emptyValueCheck(r)||(this.params.multiselect&&Array.isArray(r)?r.forEach(l=>{this._emptyValueCheck(l)||(t[l]=!0)}):t[r]=!0)}):(console.warn("unable to find matching column to create select lookup list:",e),t=[]),Object.keys(t)}_emptyValueCheck(e){return e===null||typeof e>"u"||e===""}_parseList(e){var t=[];return Array.isArray(e)||(e=Object.entries(e).map(([i,a])=>({label:a,value:i}))),e.forEach(i=>{typeof i!="object"&&(i={label:i,value:i}),this._parseListItem(i,t,0)}),!this.currentItems.length&&this.params.freetext&&(this.input.value=this.initialValues,this.typing=!0,this.lastAction="typing"),this.data=t,t}_parseListItem(e,t,i){var a={};e.options?a=this._parseListGroup(e,i+1):(a={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,selected:!1,visible:!0,level:i,original:e},this.initialValues&&this.initialValues.indexOf(e.value)>-1&&this._chooseItem(a,!0)),t.push(a)}_parseListGroup(e,t){var i={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,visible:!0,level:t,options:[],original:e};return e.options.forEach(a=>{this._parseListItem(a,i.options,t)}),i}_sortOptions(e){var t;return this.params.sort&&(t=typeof this.params.sort=="function"?this.params.sort:this._defaultSortFunction.bind(this),this._sortGroup(t,e)),e}_sortGroup(e,t){t.sort((i,a)=>e(i.label,a.label,i.value,a.value,i.original,a.original)),t.forEach(i=>{i.group&&this._sortGroup(e,i.options)})}_defaultSortFunction(e,t){var i,a,n,r,l=0,h,d=/(\d+)|(\D+)/g,u=/\d/,p=0;if(this.params.sort==="desc"&&([e,t]=[t,e]),!e&&e!==0)p=!t&&t!==0?0:-1;else if(!t&&t!==0)p=1;else{if(isFinite(e)&&isFinite(t))return e-t;if(i=String(e).toLowerCase(),a=String(t).toLowerCase(),i===a)return 0;if(!(u.test(i)&&u.test(a)))return i>a?1:-1;for(i=i.match(d),a=a.match(d),h=i.length>a.length?a.length:i.length;l<h;)if(n=i[l],r=a[l++],n!==r)return isFinite(n)&&isFinite(r)?(n.charAt(0)==="0"&&(n="."+n),r.charAt(0)==="0"&&(r="."+r),n-r):n>r?1:-1;return i.length>a.length}return p}_filterOptions(){var e=this.params.filterFunc||this._defaultFilterFunc,t=this.input.value;return t?(this.filtered=!0,this.data.forEach(i=>{this._filterItem(e,t,i)})):this.filtered=!1,this.data}_filterItem(e,t,i){var a=!1;return i.group?(i.options.forEach(n=>{this._filterItem(e,t,n)&&(a=!0)}),i.visible=a):i.visible=e(t,i.label,i.value,i.original),i.visible}_defaultFilterFunc(e,t,i,a){return e=String(e).toLowerCase(),t!==null&&typeof t<"u"&&(String(t).toLowerCase().indexOf(e)>-1||String(i).toLowerCase().indexOf(e)>-1)}_clearList(){for(;this.listEl.firstChild;)this.listEl.removeChild(this.listEl.firstChild);this.displayItems=[]}_buildList(e){this._clearList(),e.forEach(t=>{this._buildItem(t)}),this.displayItems.length||this._addPlaceholder(this.params.placeholderEmpty)}_buildItem(e){var t=e.element,i;if(!this.filtered||e.visible){if(!t){if(t=document.createElement("div"),t.tabIndex=0,i=this.params.itemFormatter?this.params.itemFormatter(e.label,e.value,e.original,t):e.label,i instanceof HTMLElement?t.appendChild(i):t.innerHTML=i,e.group?t.classList.add("tabulator-edit-list-group"):t.classList.add("tabulator-edit-list-item"),t.classList.add("tabulator-edit-list-group-level-"+e.level),e.elementAttributes&&typeof e.elementAttributes=="object")for(let a in e.elementAttributes)a.charAt(0)=="+"?(a=a.slice(1),t.setAttribute(a,this.input.getAttribute(a)+e.elementAttributes["+"+a])):t.setAttribute(a,e.elementAttributes[a]);e.group?t.addEventListener("click",this._groupClick.bind(this,e)):t.addEventListener("click",this._itemClick.bind(this,e)),t.addEventListener("mousedown",this._preventBlur.bind(this)),e.element=t}this._styleItem(e),this.listEl.appendChild(t),e.group?e.options.forEach(a=>{this._buildItem(a)}):this.displayItems.push(e)}}_showList(){var e=this.popup&&this.popup.isVisible();if(this.input.parentNode){if(this.params.autocomplete&&this.input.value===""&&!this.params.listOnEmpty){this.popup&&this.popup.hide(!0);return}this._setListWidth(),this.popup||(this.popup=this.edit.popup(this.listEl)),this.popup.show(this.cell.getElement(),"bottom"),e||setTimeout(()=>{this.popup.hideOnBlur(this._resolveValue.bind(this,!0))},10)}}_styleItem(e){e&&e.element&&(e.selected?e.element.classList.add("active"):e.element.classList.remove("active"))}_itemClick(e,t){t.stopPropagation(),this._chooseItem(e)}_groupClick(e,t){t.stopPropagation()}_cancel(){this.popup.hide(!0),this.actions.cancel()}_clearChoices(){this.typing=!0,this.currentItems.forEach(e=>{e.selected=!1,this._styleItem(e)}),this.currentItems=[],this.focusedItem=null}_chooseItem(e,t){var i;this.typing=!1,this.params.multiselect?(i=this.currentItems.indexOf(e),i>-1?(this.currentItems.splice(i,1),e.selected=!1):(this.currentItems.push(e),e.selected=!0),this.input.value=this.currentItems.map(a=>a.label).join(","),this._styleItem(e)):(this.currentItems=[e],e.selected=!0,this.input.value=e.label,this._styleItem(e),t||this._resolveValue()),this._focusItem(e)}_resolveValue(e){var t,i;if(this.popup&&this.popup.hide(!0),this.params.multiselect)t=this.currentItems.map(a=>a.value);else if(e&&this.params.autocomplete&&this.typing)if(this.params.freetext||this.params.allowEmpty&&this.input.value==="")t=this.input.value;else{this.actions.cancel();return}else this.currentItems[0]?t=this.currentItems[0].value:(i=Array.isArray(this.initialValues)?this.initialValues[0]:this.initialValues,i===null||typeof i>"u"||i===""?t=i:t=this.params.emptyValue);t===""&&(t=this.params.emptyValue),this.actions.success(t),this.isFilter&&(this.initialValues=t&&!Array.isArray(t)?[t]:t,this.currentItems=[])}};function ES(o,e,t,i,a){var n=new LS(this,o,e,t,i,a);return n.input}function SS(o,e,t,i,a){var n=this,r=o.getElement(),l=o.getValue(),h=r.getElementsByTagName("svg").length||5,d=r.getElementsByTagName("svg")[0]?r.getElementsByTagName("svg")[0].getAttribute("width"):14,u=[],p=document.createElement("div"),y=document.createElementNS("http://www.w3.org/2000/svg","svg");function f(m){u.forEach(function(w,M){M<m?(n.table.browser=="ie"?w.setAttribute("class","tabulator-star-active"):w.classList.replace("tabulator-star-inactive","tabulator-star-active"),w.innerHTML='<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>'):(n.table.browser=="ie"?w.setAttribute("class","tabulator-star-inactive"):w.classList.replace("tabulator-star-active","tabulator-star-inactive"),w.innerHTML='<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>')})}function g(m){var w=document.createElement("span"),M=y.cloneNode(!0);u.push(M),w.addEventListener("mouseenter",function(C){C.stopPropagation(),C.stopImmediatePropagation(),f(m)}),w.addEventListener("mousemove",function(C){C.stopPropagation(),C.stopImmediatePropagation()}),w.addEventListener("click",function(C){C.stopPropagation(),C.stopImmediatePropagation(),t(m),r.blur()}),w.appendChild(M),p.appendChild(w)}function k(m){l=m,f(m)}if(r.style.whiteSpace="nowrap",r.style.overflow="hidden",r.style.textOverflow="ellipsis",p.style.verticalAlign="middle",p.style.display="inline-block",p.style.padding="4px",y.setAttribute("width",d),y.setAttribute("height",d),y.setAttribute("viewBox","0 0 512 512"),y.setAttribute("xml:space","preserve"),y.style.padding="0 1px",a.elementAttributes&&typeof a.elementAttributes=="object")for(let m in a.elementAttributes)m.charAt(0)=="+"?(m=m.slice(1),p.setAttribute(m,p.getAttribute(m)+a.elementAttributes["+"+m])):p.setAttribute(m,a.elementAttributes[m]);for(var v=1;v<=h;v++)g(v);return l=Math.min(parseInt(l),h),f(l),p.addEventListener("mousemove",function(m){f(0)}),p.addEventListener("click",function(m){t(0)}),r.addEventListener("blur",function(m){i()}),r.addEventListener("keydown",function(m){switch(m.keyCode){case 39:k(l+1);break;case 37:k(l-1);break;case 13:t(l);break;case 27:i();break}}),p}function IS(o,e,t,i,a){var n=o.getElement(),r=typeof a.max>"u"?n.getElementsByTagName("div")[0]&&n.getElementsByTagName("div")[0].getAttribute("max")||100:a.max,l=typeof a.min>"u"?n.getElementsByTagName("div")[0]&&n.getElementsByTagName("div")[0].getAttribute("min")||0:a.min,h=(r-l)/100,d=o.getValue()||0,u=document.createElement("div"),p=document.createElement("div"),y,f;function g(){var k=window.getComputedStyle(n,null),v=h*Math.round(p.offsetWidth/((n.clientWidth-parseInt(k.getPropertyValue("padding-left"))-parseInt(k.getPropertyValue("padding-right")))/100))+l;t(v),n.setAttribute("aria-valuenow",v),n.setAttribute("aria-label",d)}if(u.style.position="absolute",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.width="5px",u.classList.add("tabulator-progress-handle"),p.style.display="inline-block",p.style.position="relative",p.style.height="100%",p.style.backgroundColor="#488CE9",p.style.maxWidth="100%",p.style.minWidth="0%",a.elementAttributes&&typeof a.elementAttributes=="object")for(let k in a.elementAttributes)k.charAt(0)=="+"?(k=k.slice(1),p.setAttribute(k,p.getAttribute(k)+a.elementAttributes["+"+k])):p.setAttribute(k,a.elementAttributes[k]);return n.style.padding="4px 4px",d=Math.min(parseFloat(d),r),d=Math.max(parseFloat(d),l),d=Math.round((d-l)/h),p.style.width=d+"%",n.setAttribute("aria-valuemin",l),n.setAttribute("aria-valuemax",r),p.appendChild(u),u.addEventListener("mousedown",function(k){y=k.screenX,f=p.offsetWidth}),u.addEventListener("mouseover",function(){u.style.cursor="ew-resize"}),n.addEventListener("mousemove",function(k){y&&(p.style.width=f+k.screenX-y+"px")}),n.addEventListener("mouseup",function(k){y&&(k.stopPropagation(),k.stopImmediatePropagation(),y=!1,f=!1,g())}),n.addEventListener("keydown",function(k){switch(k.keyCode){case 39:k.preventDefault(),p.style.width=p.clientWidth+n.clientWidth/100+"px";break;case 37:k.preventDefault(),p.style.width=p.clientWidth-n.clientWidth/100+"px";break;case 9:case 13:g();break;case 27:i();break}}),n.addEventListener("blur",function(){i()}),p}function TS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input"),l=a.tristate,h=typeof a.indeterminateValue>"u"?null:a.indeterminateValue,d=!1,u=Object.keys(a).includes("trueValue"),p=Object.keys(a).includes("falseValue");if(r.setAttribute("type","checkbox"),r.style.marginTop="5px",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let f in a.elementAttributes)f.charAt(0)=="+"?(f=f.slice(1),r.setAttribute(f,r.getAttribute(f)+a.elementAttributes["+"+f])):r.setAttribute(f,a.elementAttributes[f]);r.value=n,l&&(typeof n>"u"||n===h||n==="")&&(d=!0,r.indeterminate=!0),this.table.browser!="firefox"&&this.table.browser!="safari"&&e(function(){o.getType()==="cell"&&r.focus({preventScroll:!0})}),r.checked=u?n===a.trueValue:n===!0||n==="true"||n==="True"||n===1;function y(f){var g=r.checked;return u&&g?g=a.trueValue:p&&!g&&(g=a.falseValue),l?f?d?h:g:r.checked&&!d?(r.checked=!1,r.indeterminate=!0,d=!0,h):(d=!1,g):g}return r.addEventListener("change",function(f){t(y())}),r.addEventListener("blur",function(f){t(y(!0))}),r.addEventListener("keydown",function(f){f.keyCode==13&&t(y()),f.keyCode==27&&i()}),r}function DS(o,e,t,i,a){var n=o._getSelf().column,r,l,h;function d(u){var p=u.getValue(),y="input";switch(typeof p){case"number":y="number";break;case"boolean":y="tickCross";break;case"string":p.includes(`
|
|
6
|
+
`)&&(y="textarea");break}return y}return r=a.editorLookup?a.editorLookup(o):d(o),a.paramsLookup&&(h=typeof a.paramsLookup=="function"?a.paramsLookup(r,o):a.paramsLookup[r]),l=this.table.modules.edit.lookupEditor(r,n),l.call(this,o,e,t,i,h||{})}var zS={input:kS,textarea:vS,number:bS,range:wS,date:MS,time:CS,datetime:xS,list:ES,star:SS,progress:IS,tickCross:TS,adaptable:DS};const mn=class mn extends B{constructor(e){super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.convertEmptyValues=!1,this.editors=mn.editors,this.registerTableOption("editTriggerEvent","focus"),this.registerTableOption("editorEmptyValue"),this.registerTableOption("editorEmptyValueFunc",this.emptyValueCheck.bind(this)),this.registerColumnOption("editable"),this.registerColumnOption("editor"),this.registerColumnOption("editorParams"),this.registerColumnOption("editorEmptyValue"),this.registerColumnOption("editorEmptyValueFunc"),this.registerColumnOption("cellEditing"),this.registerColumnOption("cellEdited"),this.registerColumnOption("cellEditCancelled"),this.registerTableFunction("getEditedCells",this.getEditedCells.bind(this)),this.registerTableFunction("clearCellEdited",this.clearCellEdited.bind(this)),this.registerTableFunction("navigatePrev",this.navigatePrev.bind(this)),this.registerTableFunction("navigateNext",this.navigateNext.bind(this)),this.registerTableFunction("navigateLeft",this.navigateLeft.bind(this)),this.registerTableFunction("navigateRight",this.navigateRight.bind(this)),this.registerTableFunction("navigateUp",this.navigateUp.bind(this)),this.registerTableFunction("navigateDown",this.navigateDown.bind(this)),this.registerComponentFunction("cell","isEdited",this.cellIsEdited.bind(this)),this.registerComponentFunction("cell","clearEdited",this.clearEdited.bind(this)),this.registerComponentFunction("cell","edit",this.editCell.bind(this)),this.registerComponentFunction("cell","cancelEdit",this.cellCancelEdit.bind(this)),this.registerComponentFunction("cell","navigatePrev",this.navigatePrev.bind(this)),this.registerComponentFunction("cell","navigateNext",this.navigateNext.bind(this)),this.registerComponentFunction("cell","navigateLeft",this.navigateLeft.bind(this)),this.registerComponentFunction("cell","navigateRight",this.navigateRight.bind(this)),this.registerComponentFunction("cell","navigateUp",this.navigateUp.bind(this)),this.registerComponentFunction("cell","navigateDown",this.navigateDown.bind(this))}initialize(){this.subscribe("cell-init",this.bindEditor.bind(this)),this.subscribe("cell-delete",this.clearEdited.bind(this)),this.subscribe("cell-value-changed",this.updateCellClass.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("column-delete",this.columnDeleteCheck.bind(this)),this.subscribe("row-deleting",this.rowDeleteCheck.bind(this)),this.subscribe("row-layout",this.rowEditableCheck.bind(this)),this.subscribe("data-refreshing",this.cancelEdit.bind(this)),this.subscribe("clipboard-paste",this.pasteBlocker.bind(this)),this.subscribe("keybinding-nav-prev",this.navigatePrev.bind(this,void 0)),this.subscribe("keybinding-nav-next",this.keybindingNavigateNext.bind(this)),this.subscribe("keybinding-nav-up",this.navigateUp.bind(this,void 0)),this.subscribe("keybinding-nav-down",this.navigateDown.bind(this,void 0)),Object.keys(this.table.options).includes("editorEmptyValue")&&(this.convertEmptyValues=!0)}pasteBlocker(e){if(this.currentCell)return!0}keybindingNavigateNext(e){var t=this.currentCell,i=this.options("tabEndNewRow");t&&(this.navigateNext(t,e)||i&&(t.getElement().firstChild.blur(),this.invalidEdit||(i===!0?i=this.table.addRow({}):typeof i=="function"?i=this.table.addRow(i(t.row.getComponent())):i=this.table.addRow(Object.assign({},i)),i.then(()=>{setTimeout(()=>{t.getComponent().navigateNext()})}))))}cellIsEdited(e){return!!e.modules.edit&&e.modules.edit.edited}cellCancelEdit(e){e===this.currentCell?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}updateCellClass(e){this.allowEdit(e)?e.getElement().classList.add("tabulator-editable"):e.getElement().classList.remove("tabulator-editable")}clearCellEdited(e){e||(e=this.table.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.table.modules.edit.clearEdited(t._getSelf())})}navigatePrev(e=this.currentCell,t){var i,a;if(e){if(t&&t.preventDefault(),i=this.navigateLeft(),i)return!0;if(a=this.table.rowManager.prevDisplayRow(e.row,!0),a&&(i=this.findPrevEditableCell(a,a.cells.length),i))return i.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var i,a;if(e){if(t&&t.preventDefault(),i=this.navigateRight(),i)return!0;if(a=this.table.rowManager.nextDisplayRow(e.row,!0),a&&(i=this.findNextEditableCell(a,-1),i))return i.getComponent().edit(),!0}return!1}navigateLeft(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.findPrevEditableCell(e.row,i),a)?(a.getComponent().edit(),!0):!1}navigateRight(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.findNextEditableCell(e.row,i),a)?(a.getComponent().edit(),!0):!1}navigateUp(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.table.rowManager.prevDisplayRow(e.row,!0),a)?(a.cells[i].getComponent().edit(),!0):!1}navigateDown(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.table.rowManager.nextDisplayRow(e.row,!0),a)?(a.cells[i].getComponent().edit(),!0):!1}findNextEditableCell(e,t){var i=!1;if(t<e.cells.length-1)for(var a=t+1;a<e.cells.length;a++){let n=e.cells[a];if(n.column.modules.edit&&G.elVisible(n.getElement())&&this.allowEdit(n)){i=n;break}}return i}findPrevEditableCell(e,t){var i=!1;if(t>0)for(var a=t-1;a>=0;a--){let n=e.cells[a];if(n.column.modules.edit&&G.elVisible(n.getElement())&&this.allowEdit(n)){i=n;break}}return i}initializeColumnCheck(e){typeof e.definition.editor<"u"&&this.initializeColumn(e)}columnDeleteCheck(e){this.currentCell&&this.currentCell.column===e&&this.cancelEdit()}rowDeleteCheck(e){this.currentCell&&this.currentCell.row===e&&this.cancelEdit()}rowEditableCheck(e){e.getCells().forEach(t=>{t.column.modules.edit&&typeof t.column.modules.edit.check=="function"&&this.updateCellClass(t)})}initializeColumn(e){var t=Object.keys(e.definition).includes("editorEmptyValue"),i={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{},convertEmptyValues:t,editorEmptyValue:e.definition.editorEmptyValue,editorEmptyValueFunc:e.definition.editorEmptyValueFunc};i.editor=this.lookupEditor(e.definition.editor,e),i.editor&&(e.modules.edit=i)}lookupEditor(e,t){var i;switch(typeof e){case"string":this.editors[e]?i=this.editors[e]:console.warn("Editor Error - No such editor found: ",e);break;case"function":i=e;break;case"boolean":e===!0&&(typeof t.definition.formatter!="function"?this.editors[t.definition.formatter]?i=this.editors[t.definition.formatter]:i=this.editors.input:console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",t.definition.formatter));break}return i}getCurrentCell(){return this.currentCell?this.currentCell.getComponent():!1}clearEditor(e){var t=this.currentCell,i;if(this.invalidEdit=!1,t){for(this.currentCell=!1,i=t.getElement(),this.dispatch("edit-editor-clear",t,e),i.classList.remove("tabulator-editing");i.firstChild;)i.removeChild(i.firstChild);t.row.getElement().classList.remove("tabulator-editing"),t.table.element.classList.remove("tabulator-editing")}}cancelEdit(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),(e.column.definition.editor=="textarea"||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.definition.cellEditCancelled&&e.column.definition.cellEditCancelled.call(this.table,t),this.dispatch("edit-cancelled",e),this.dispatchExternal("cellEditCancelled",t)}}bindEditor(e){if(e.column.modules.edit){var t=this,i=e.getElement(!0);this.updateCellClass(e),i.setAttribute("tabindex",0),i.addEventListener("mousedown",function(a){a.button===2?a.preventDefault():t.mouseClick=!0}),this.options("editTriggerEvent")==="dblclick"&&i.addEventListener("dblclick",function(a){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,a,!1))}),(this.options("editTriggerEvent")==="focus"||this.options("editTriggerEvent")==="click")&&i.addEventListener("click",function(a){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,a,!1))}),this.options("editTriggerEvent")==="focus"&&i.addEventListener("focus",function(a){t.recursionBlock||t.edit(e,a,!1)})}}focusCellNoEvent(e,t){this.recursionBlock=!0,t&&this.table.browser==="ie"||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1}editCell(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)}focusScrollAdjust(e){if(this.table.rowManager.getRenderMode()=="virtual"){var t=this.table.rowManager.element.scrollTop,i=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,a=e.row.getElement();a.offsetTop<t?this.table.rowManager.element.scrollTop-=t-a.offsetTop:a.offsetTop+a.offsetHeight>i&&(this.table.rowManager.element.scrollTop+=a.offsetTop+a.offsetHeight-i);var n=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,l=e.getElement();this.table.modExists("frozenColumns")&&(n+=parseInt(this.table.modules.frozenColumns.leftMargin||0),r-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),this.table.options.renderHorizontal==="virtual"&&(n-=parseInt(this.table.columnManager.renderer.vDomPadLeft),r-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),l.offsetLeft<n?this.table.rowManager.element.scrollLeft-=n-l.offsetLeft:l.offsetLeft+l.offsetWidth>r&&(this.table.rowManager.element.scrollLeft+=l.offsetLeft+l.offsetWidth-r)}}allowEdit(e){var t=!!e.column.modules.edit;if(e.column.modules.edit)switch(typeof e.column.modules.edit.check){case"function":e.row.initialized&&(t=e.column.modules.edit.check(e.getComponent()));break;case"string":t=!!e.row.data[e.column.modules.edit.check];break;case"boolean":t=e.column.modules.edit.check;break}return t}edit(e,t,i){var a=this,n=!0,r=function(){},l=e.getElement(),h=!1,d,u,p;if(this.currentCell){!this.invalidEdit&&this.currentCell!==e&&this.cancelEdit();return}function y(m){if(a.currentCell===e&&!h){var w=a.chain("edit-success",[e,m],!0,!0);return w===!0||a.table.options.validationMode==="highlight"?(h=!0,a.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,a.editedCells.indexOf(e)==-1&&a.editedCells.push(e),m=a.transformEmptyValues(m,e),e.setValue(m,!0),w===!0):(h=!0,a.invalidEdit=!0,a.focusCellNoEvent(e,!0),r(),setTimeout(()=>{h=!1},10),!1)}}function f(){a.currentCell===e&&!h&&a.cancelEdit()}function g(m){r=m}if(e.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(l),!1;if(t&&t.stopPropagation(),n=this.allowEdit(e),n||i){if(a.cancelEdit(),a.currentCell=e,this.focusScrollAdjust(e),u=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,u)),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,u),this.dispatch("cell-editing",e),this.dispatchExternal("cellEditing",u),p=typeof e.column.modules.edit.params=="function"?e.column.modules.edit.params(u):e.column.modules.edit.params,d=e.column.modules.edit.editor.call(a,u,g,y,f,p),this.currentCell&&d!==!1)if(d instanceof Node){for(l.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-editing"),e.table.element.classList.add("tabulator-editing");l.firstChild;)l.removeChild(l.firstChild);l.appendChild(d),r();for(var k=l.children,v=0;v<k.length;v++)k[v].addEventListener("click",function(m){m.stopPropagation()})}else return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",d),this.blur(l),!1;else return this.blur(l),!1;return!0}else return this.mouseClick=!1,this.blur(l),!1}emptyValueCheck(e){return e===""||e===null||typeof e>"u"}transformEmptyValues(e,t){var i=t.column.modules.edit,a=i.convertEmptyValues||this.convertEmptyValues,n;return a&&(n=i.editorEmptyValueFunc||this.options("editorEmptyValueFunc"),n&&n(e)&&(e=i.convertEmptyValues?i.editorEmptyValue:this.options("editorEmptyValue"))),e}blur(e){this.confirm("edit-blur",[e])||e.blur()}getEditedCells(){var e=[];return this.editedCells.forEach(t=>{e.push(t.getComponent())}),e}clearEdited(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,this.dispatch("edit-edited-clear",e)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)}};E(mn,"moduleName","edit"),E(mn,"editors",zS);let z9=mn;class PC{constructor(e,t,i,a){this.type=e,this.columns=t,this.component=i||!1,this.indent=a||0}}class d9{constructor(e,t,i,a,n){this.value=e,this.component=t||!1,this.width=i,this.height=a,this.depth=n}}var RS={},HS={visible:function(){return this.rowManager.getVisibleRows(!1,!0)},all:function(){return this.rowManager.rows},selected:function(){return this.modules.selectRow.selectedRows},active:function(){return this.options.pagination?this.rowManager.getDisplayRows(this.rowManager.displayRows.length-2):this.rowManager.getDisplayRows()}};const _e=class _e extends B{constructor(e){super(e),this.config={},this.cloneTableStyle=!0,this.colVisProp="",this.colVisPropAttach="",this.registerTableOption("htmlOutputConfig",!1),this.registerColumnOption("htmlOutput"),this.registerColumnOption("titleHtmlOutput")}initialize(){this.registerTableFunction("getHtml",this.getHtml.bind(this))}generateExportList(e,t,i,a){var n,r,l,h;return this.cloneTableStyle=t,this.config=e||{},this.colVisProp=a,this.colVisPropAttach=this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1),h=_e.columnLookups[i],h&&(l=h.call(this.table),l=l.filter(d=>this.columnVisCheck(d))),n=this.config.columnHeaders!==!1?this.headersToExportRows(this.generateColumnGroupHeaders(l)):[],l&&(l=l.map(d=>d.getComponent())),r=this.bodyToExportRows(this.rowLookup(i),l),n.concat(r)}generateTable(e,t,i,a){var n=this.generateExportList(e,t,i,a);return this.generateTableElement(n)}rowLookup(e){var t=[],i;return typeof e=="function"?e.call(this.table).forEach(a=>{a=this.table.rowManager.findRow(a),a&&t.push(a)}):(i=_e.rowLookups[e]||_e.rowLookups.active,t=i.call(this.table)),Object.assign([],t)}generateColumnGroupHeaders(e){var t=[];return e||(e=this.config.columnGroups!==!1?this.table.columnManager.columns:this.table.columnManager.columnsByIndex),e.forEach(i=>{var a=this.processColumnGroup(i);a&&t.push(a)}),t}processColumnGroup(e){var t=e.columns,i=0,a=e.definition["title"+this.colVisPropAttach]||e.definition.title,n={title:a,column:e,depth:1};if(t.length){if(n.subGroups=[],n.width=0,t.forEach(r=>{var l=this.processColumnGroup(r);l&&(n.width+=l.width,n.subGroups.push(l),l.depth>i&&(i=l.depth))}),n.depth+=i,!n.width)return!1}else if(this.columnVisCheck(e))n.width=1;else return!1;return n}columnVisCheck(e){var t=e.definition[this.colVisProp];return this.config.rowHeaders===!1&&e.isRowHeader?!1:(typeof t=="function"&&(t=t.call(this.table,e.getComponent())),t===!1||t===!0?t:e.visible&&e.field)}headersToExportRows(e){var t=[],i=0,a=[];function n(r,l){var h=i-l;if(typeof t[l]>"u"&&(t[l]=[]),r.height=r.subGroups?1:h-r.depth+1,t[l].push(r),r.height>1)for(let d=1;d<r.height;d++)typeof t[l+d]>"u"&&(t[l+d]=[]),t[l+d].push(!1);if(r.width>1)for(let d=1;d<r.width;d++)t[l].push(!1);r.subGroups&&r.subGroups.forEach(function(d){n(d,l+1)})}return e.forEach(function(r){r.depth>i&&(i=r.depth)}),e.forEach(function(r){n(r,0)}),t.forEach(r=>{var l=[];r.forEach(h=>{if(h){let d=typeof h.title>"u"?"":h.title;l.push(new d9(d,h.column.getComponent(),h.width,h.height,h.depth))}else l.push(null)}),a.push(new PC("header",l))}),a}bodyToExportRows(e,t=[]){var i=[];return t.length===0&&this.table.columnManager.columnsByIndex.forEach(a=>{this.columnVisCheck(a)&&t.push(a.getComponent())}),this.config.columnCalcs!==!1&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(a=>{switch(a.type){case"group":return this.config.rowGroups!==!1;case"calc":return this.config.columnCalcs!==!1;case"row":return!(this.table.options.dataTree&&this.config.dataTree===!1&&a.modules.dataTree.parent)}return!0}),e.forEach((a,n)=>{var r=a.getData(this.colVisProp),l=[],h=0;switch(a.type){case"group":h=a.level,l.push(new d9(a.key,a.getComponent(),t.length,1));break;case"calc":case"row":t.forEach(d=>{l.push(new d9(d._column.getFieldValue(r),d,1,1))}),this.table.options.dataTree&&this.config.dataTree!==!1&&(h=a.modules.dataTree.index);break}i.push(new PC(a.type,l,a.getComponent(),h))}),i}generateTableElement(e){var t=document.createElement("table"),i=document.createElement("thead"),a=document.createElement("tbody"),n=this.lookupTableStyles(),r=this.table.options["rowFormatter"+this.colVisPropAttach],l={};return l.rowFormatter=r!==null?r:this.table.options.rowFormatter,this.table.options.dataTree&&this.config.dataTree!==!1&&this.table.modExists("columnCalcs")&&(l.treeElementField=this.table.modules.dataTree.elementField),l.groupHeader=this.table.options["groupHeader"+this.colVisPropAttach],l.groupHeader&&!Array.isArray(l.groupHeader)&&(l.groupHeader=[l.groupHeader]),t.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),i,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach((h,d)=>{let u;switch(h.type){case"header":i.appendChild(this.generateHeaderElement(h,l,n));break;case"group":a.appendChild(this.generateGroupElement(h,l,n));break;case"calc":a.appendChild(this.generateCalcElement(h,l,n));break;case"row":u=this.generateRowElement(h,l,n),this.mapElementStyles(d%2&&n.evenRow?n.evenRow:n.oddRow,u,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a.appendChild(u);break}}),i.innerHTML&&t.appendChild(i),t.appendChild(a),this.mapElementStyles(this.table.element,t,["border-top","border-left","border-right","border-bottom"]),t}lookupTableStyles(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.styleRowHeader=e.firstRow.getElementsByClassName("tabulator-row-header")[0],e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e}generateHeaderElement(e,t,i){var a=document.createElement("tr");return e.columns.forEach(n=>{if(n){var r=document.createElement("th"),l=n.component._column.definition.cssClass?n.component._column.definition.cssClass.split(" "):[];r.colSpan=n.width,r.rowSpan=n.height,r.innerHTML=n.value,this.cloneTableStyle&&(r.style.boxSizing="border-box"),l.forEach(function(h){r.classList.add(h)}),this.mapElementStyles(n.component.getElement(),r,["text-align","border-left","border-right","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(n.component._column.contentElement,r,["padding-top","padding-left","padding-right","padding-bottom"]),n.component._column.visible?this.mapElementStyles(n.component.getElement(),r,["width"]):n.component._column.definition.width&&(r.style.width=n.component._column.definition.width+"px"),n.component._column.parent&&n.component._column.parent.isGroup?this.mapElementStyles(n.component._column.parent.groupElement,r,["border-top"]):this.mapElementStyles(n.component.getElement(),r,["border-top"]),n.component._column.isGroup?this.mapElementStyles(n.component.getElement(),r,["border-bottom"]):this.mapElementStyles(this.table.columnManager.getElement(),r,["border-bottom"]),a.appendChild(r)}}),a}generateGroupElement(e,t,i){var a=document.createElement("tr"),n=document.createElement("td"),r=e.columns[0];return a.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):t.groupHeader!==!1&&(r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)),n.colSpan=r.width,n.innerHTML=r.value,a.classList.add("tabulator-print-table-group"),a.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&a.classList.add("tabulator-group-visible"),this.mapElementStyles(i.firstGroup,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(i.firstGroup,n,["padding-top","padding-left","padding-right","padding-bottom"]),a.appendChild(n),a}generateCalcElement(e,t,i){var a=this.generateRowElement(e,t,i);return a.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(i.calcRow,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a}generateRowElement(e,t,i){var a=document.createElement("tr");if(a.classList.add("tabulator-print-table-row"),e.columns.forEach((n,r)=>{if(n){var l=document.createElement("td"),h=n.component._column,d=this.table,u=d.columnManager.findColumnIndex(h),p=n.value,y,f,g={modules:{},getValue:function(){return p},getField:function(){return h.definition.field},getElement:function(){return l},getType:function(){return"cell"},getColumn:function(){return h.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getTable:function(){return d},getComponent:function(){return g},column:h},k=h.definition.cssClass?h.definition.cssClass.split(" "):[];if(k.forEach(function(v){l.classList.add(v)}),this.table.modExists("format")&&this.config.formatCells!==!1)p=this.table.modules.format.formatExportValue(g,this.colVisProp);else switch(typeof p){case"object":p=p!==null?JSON.stringify(p):"";break;case"undefined":p="";break}p instanceof Node?l.appendChild(p):l.innerHTML=p,f=["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","text-align"],h.isRowHeader?(y=i.styleRowHeader,f.push("background-color")):y=i.styleCells&&i.styleCells[u]?i.styleCells[u]:i.firstCell,y&&(this.mapElementStyles(y,l,f),h.definition.align&&(l.style.textAlign=h.definition.align)),this.table.options.dataTree&&this.config.dataTree!==!1&&(t.treeElementField&&t.treeElementField==h.field||!t.treeElementField&&r==0)&&(e.component._row.modules.dataTree.controlEl&&l.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),l.firstChild),e.component._row.modules.dataTree.branchEl&&l.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),l.firstChild)),a.appendChild(l),g.modules.format&&g.modules.format.renderedCallback&&g.modules.format.renderedCallback()}}),t.rowFormatter&&e.type==="row"&&this.config.formatCells!==!1){let n=Object.assign(e.component);n.getElement=function(){return a},t.rowFormatter(e.component)}return a}generateHTMLTable(e){var t=document.createElement("div");return t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,i,a){var n=this.generateExportList(i||this.table.options.htmlOutputConfig,t,e,a||"htmlOutput");return this.generateHTMLTable(n)}mapElementStyles(e,t,i){if(this.cloneTableStyle&&e&&t){var a={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var n=window.getComputedStyle(e);i.forEach(function(r){t.style[a[r]]||(t.style[a[r]]=n.getPropertyValue(r))})}}}};E(_e,"moduleName","export"),E(_e,"columnLookups",RS),E(_e,"rowLookups",HS);let R9=_e;var AS={"=":function(o,e,t,i){return e==o},"<":function(o,e,t,i){return e<o},"<=":function(o,e,t,i){return e<=o},">":function(o,e,t,i){return e>o},">=":function(o,e,t,i){return e>=o},"!=":function(o,e,t,i){return e!=o},regex:function(o,e,t,i){return typeof o=="string"&&(o=new RegExp(o)),o.test(e)},like:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().indexOf(o.toLowerCase())>-1:!1},keywords:function(o,e,t,i){var a=o.toLowerCase().split(typeof i.separator>"u"?" ":i.separator),n=String(e===null||typeof e>"u"?"":e).toLowerCase(),r=[];return a.forEach(l=>{n.includes(l)&&r.push(!0)}),i.matchAll?r.length===a.length:!!r.length},starts:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().startsWith(o.toLowerCase()):!1},ends:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().endsWith(o.toLowerCase()):!1},in:function(o,e,t,i){return Array.isArray(o)?o.length?o.indexOf(e)>-1:!0:(console.warn("Filter Error - filter value is not an array:",o),!1)}};const He=class He extends B{constructor(e){super(e),this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1,this.tableInitialized=!1,this.registerTableOption("filterMode","local"),this.registerTableOption("initialFilter",!1),this.registerTableOption("initialHeaderFilter",!1),this.registerTableOption("headerFilterLiveFilterDelay",300),this.registerTableOption("placeholderHeaderFilter",!1),this.registerColumnOption("headerFilter"),this.registerColumnOption("headerFilterPlaceholder"),this.registerColumnOption("headerFilterParams"),this.registerColumnOption("headerFilterEmptyCheck"),this.registerColumnOption("headerFilterFunc"),this.registerColumnOption("headerFilterFuncParams"),this.registerColumnOption("headerFilterLiveFilter"),this.registerTableFunction("searchRows",this.searchRows.bind(this)),this.registerTableFunction("searchData",this.searchData.bind(this)),this.registerTableFunction("setFilter",this.userSetFilter.bind(this)),this.registerTableFunction("refreshFilter",this.userRefreshFilter.bind(this)),this.registerTableFunction("addFilter",this.userAddFilter.bind(this)),this.registerTableFunction("getFilters",this.getFilters.bind(this)),this.registerTableFunction("setHeaderFilterFocus",this.userSetHeaderFilterFocus.bind(this)),this.registerTableFunction("getHeaderFilterValue",this.userGetHeaderFilterValue.bind(this)),this.registerTableFunction("setHeaderFilterValue",this.userSetHeaderFilterValue.bind(this)),this.registerTableFunction("getHeaderFilters",this.getHeaderFilters.bind(this)),this.registerTableFunction("removeFilter",this.userRemoveFilter.bind(this)),this.registerTableFunction("clearFilter",this.userClearFilter.bind(this)),this.registerTableFunction("clearHeaderFilter",this.userClearHeaderFilter.bind(this)),this.registerComponentFunction("column","headerFilterFocus",this.setHeaderFilterFocus.bind(this)),this.registerComponentFunction("column","reloadHeaderFilter",this.reloadHeaderFilter.bind(this)),this.registerComponentFunction("column","getHeaderFilterValue",this.getHeaderFilterValue.bind(this)),this.registerComponentFunction("column","setHeaderFilterValue",this.setHeaderFilterValue.bind(this))}initialize(){this.subscribe("column-init",this.initializeColumnHeaderFilter.bind(this)),this.subscribe("column-width-fit-before",this.hideHeaderFilterElements.bind(this)),this.subscribe("column-width-fit-after",this.showHeaderFilterElements.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.subscribe("placeholder",this.generatePlaceholder.bind(this)),this.table.options.filterMode==="remote"&&this.subscribe("data-params",this.remoteFilterParams.bind(this)),this.registerDataHandler(this.filter.bind(this),10)}tableBuilt(){this.table.options.initialFilter&&this.setFilter(this.table.options.initialFilter),this.table.options.initialHeaderFilter&&this.table.options.initialHeaderFilter.forEach(e=>{var t=this.table.columnManager.findColumn(e.field);if(t)this.setHeaderFilterValue(t,e.value);else return console.warn("Column Filter Error - No matching column found:",e.field),!1}),this.tableInitialized=!0}remoteFilterParams(e,t,i,a){return a.filter=this.getFilters(!0,!0),a}generatePlaceholder(e){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,i,a){this.setFilter(e,t,i,a),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(e,t,i,a){this.addFilter(e,t,i,a),this.refreshFilter()}userSetHeaderFilterFocus(e){var t=this.table.columnManager.findColumn(e);if(t)this.setHeaderFilterFocus(t);else return console.warn("Column Filter Focus Error - No matching column found:",e),!1}userGetHeaderFilterValue(e){var t=this.table.columnManager.findColumn(e);if(t)return this.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}userSetHeaderFilterValue(e,t){var i=this.table.columnManager.findColumn(e);if(i)this.setHeaderFilterValue(i,t);else return console.warn("Column Filter Error - No matching column found:",e),!1}userRemoveFilter(e,t,i){this.removeFilter(e,t,i),this.refreshFilter()}userClearFilter(e){this.clearFilter(e),this.refreshFilter()}userClearHeaderFilter(){this.clearHeaderFilter(),this.refreshFilter()}searchRows(e,t,i){return this.search("rows",e,t,i)}searchData(e,t,i){return this.search("data",e,t,i)}initializeColumnHeaderFilter(e){var t=e.definition;t.headerFilter&&this.initializeColumn(e)}initializeColumn(e,t){var i=this,a=e.getField();function n(r){var l=e.modules.filter.tagType=="input"&&e.modules.filter.attrType=="text"||e.modules.filter.tagType=="textarea"?"partial":"match",h="",d="",u;if(typeof e.modules.filter.prevSuccess>"u"||e.modules.filter.prevSuccess!==r){if(e.modules.filter.prevSuccess=r,e.modules.filter.emptyFunc(r))delete i.headerFilters[a];else{switch(e.modules.filter.value=r,typeof e.definition.headerFilterFunc){case"string":He.filters[e.definition.headerFilterFunc]?(h=e.definition.headerFilterFunc,u=function(p){var y=e.definition.headerFilterFuncParams||{},f=e.getFieldValue(p);return y=typeof y=="function"?y(r,f,p):y,He.filters[e.definition.headerFilterFunc](r,f,p,y)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":u=function(p){var y=e.definition.headerFilterFuncParams||{},f=e.getFieldValue(p);return y=typeof y=="function"?y(r,f,p):y,e.definition.headerFilterFunc(r,f,p,y)},h=u;break}if(!u)switch(l){case"partial":u=function(p){var y=e.getFieldValue(p);return typeof y<"u"&&y!==null?String(y).toLowerCase().indexOf(String(r).toLowerCase())>-1:!1},h="like";break;default:u=function(p){return e.getFieldValue(p)==r},h="="}i.headerFilters[a]={value:r,func:u,type:h}}e.modules.filter.value=r,d=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==d&&(i.prevHeaderFilterChangeCheck=d,i.trackChanges(),i.refreshFilter())}return!0}e.modules.filter={success:n,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,i){var a=this,n=e.modules.filter.success,r=e.getField(),l,h,d,u,p,y,f,g;e.modules.filter.value=t;function k(){}function v(m){g=m}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),r){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(m){return!m&&m!==0},l=document.createElement("div"),l.classList.add("tabulator-header-filter"),typeof e.definition.headerFilter){case"string":a.table.modules.edit.editors[e.definition.headerFilter]?(h=a.table.modules.edit.editors[e.definition.headerFilter],(e.definition.headerFilter==="tick"||e.definition.headerFilter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(m){return m!==!0&&m!==!1})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":h=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?h=e.modules.edit.editor:e.definition.formatter&&a.table.modules.edit.editors[e.definition.formatter]?(h=a.table.modules.edit.editors[e.definition.formatter],(e.definition.formatter==="tick"||e.definition.formatter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(m){return m!==!0&&m!==!1})):h=a.table.modules.edit.editors.input;break}if(h){if(u={getValue:function(){return typeof t<"u"?t:""},getField:function(){return e.definition.field},getElement:function(){return l},getColumn:function(){return e.getComponent()},getTable:()=>this.table,getType:()=>"header",getRow:function(){return{normalizeHeight:function(){}}}},f=e.definition.headerFilterParams||{},f=typeof f=="function"?f.call(a.table,u):f,d=h.call(this.table.modules.edit,u,v,n,k,f),!d){console.warn("Filter Error - Cannot add filter to "+r+" column, editor returned a value of false");return}if(!(d instanceof Node)){console.warn("Filter Error - Cannot add filter to "+r+" column, editor should return an instance of Node, the editor returned:",d);return}a.langBind("headerFilters|columns|"+e.definition.field,function(m){d.setAttribute("placeholder",typeof m<"u"&&m?m:e.definition.headerFilterPlaceholder||a.langText("headerFilters|default"))}),d.addEventListener("click",function(m){m.stopPropagation(),d.focus()}),d.addEventListener("focus",m=>{var w=this.table.columnManager.contentsElement.scrollLeft,M=this.table.rowManager.element.scrollLeft;w!==M&&(this.table.rowManager.scrollHorizontal(w),this.table.columnManager.scrollHorizontal(w))}),p=!1,y=function(m){p&&clearTimeout(p),p=setTimeout(function(){n(d.value)},a.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=d,e.modules.filter.attrType=d.hasAttribute("type")?d.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=d.tagName.toLowerCase(),e.definition.headerFilterLiveFilter!==!1&&(e.definition.headerFilter==="autocomplete"||e.definition.headerFilter==="tickCross"||(e.definition.editor==="autocomplete"||e.definition.editor==="tickCross")&&e.definition.headerFilter===!0||(d.addEventListener("keyup",y),d.addEventListener("search",y),e.modules.filter.attrType=="number"&&d.addEventListener("change",function(m){n(d.value)}),e.modules.filter.attrType=="text"&&this.table.browser!=="ie"&&d.setAttribute("type","search")),(e.modules.filter.tagType=="input"||e.modules.filter.tagType=="select"||e.modules.filter.tagType=="textarea")&&d.addEventListener("mousedown",function(m){m.stopPropagation()})),l.appendChild(d),e.contentElement.appendChild(l),i||a.headerFilterColumns.push(e),g&&g()}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)}hideHeaderFilterElements(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})}showHeaderFilterElements(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})}setHeaderFilterFocus(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())}getHeaderFilterValue(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())}setHeaderFilterValue(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}reloadHeaderFilter(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}refreshFilter(){this.tableInitialized&&(this.table.options.filterMode==="remote"?this.reloadData(null,!1,!1):this.refreshData(!0))}trackChanges(){this.changed=!0,this.dispatch("filter-changed")}hasChanged(){var e=this.changed;return this.changed=!1,e}setFilter(e,t,i,a){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:i,params:a}]),this.addFilter(e)}addFilter(e,t,i,a){var n=!1;Array.isArray(e)||(e=[{field:e,type:t,value:i,params:a}]),e.forEach(r=>{r=this.findFilter(r),r&&(this.filterList.push(r),n=!0)}),n&&this.trackChanges()}findFilter(e){var t;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return typeof e.field=="function"?i=function(a){return e.field(a,e.type||{})}:He.filters[e.type]?(t=this.table.columnManager.getColumnByField(e.field),t?i=function(a){return He.filters[e.type](e.value,t.getFieldValue(a),a,e.params||{})}:i=function(a){return He.filters[e.type](e.value,a[e.field],a,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=i,e.func?e:!1}findSubFilters(e){var t=[];return e.forEach(i=>{i=this.findFilter(i),i&&t.push(i)}),t.length?t:!1}getFilters(e,t){var i=[];return e&&(i=this.getHeaderFilters()),t&&i.forEach(function(a){typeof a.type=="function"&&(a.type="function")}),i=i.concat(this.filtersToArray(this.filterList,t)),i}filtersToArray(e,t){var i=[];return e.forEach(a=>{var n;Array.isArray(a)?i.push(this.filtersToArray(a,t)):(n={field:a.field,type:a.type,value:a.value},t&&typeof n.type=="function"&&(n.type="function"),i.push(n))}),i}getHeaderFilters(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e}removeFilter(e,t,i){Array.isArray(e)||(e=[{field:e,type:t,value:i}]),e.forEach(a=>{var n=-1;typeof a.field=="object"?n=this.filterList.findIndex(r=>a===r):n=this.filterList.findIndex(r=>a.field===r.field&&a.type===r.type&&a.value===r.value),n>-1?this.filterList.splice(n,1):console.warn("Filter Error - No matching filter type found, ignoring: ",a.type)}),this.trackChanges()}clearFilter(e){this.filterList=[],e&&this.clearHeaderFilter(),this.trackChanges()}clearHeaderFilter(){this.headerFilters={},this.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(e=>{typeof e.modules.filter.value<"u"&&delete e.modules.filter.value,e.modules.filter.prevSuccess=void 0,this.reloadHeaderFilter(e)}),this.trackChanges()}search(e,t,i,a){var n=[],r=[];return Array.isArray(t)||(t=[{field:t,type:i,value:a}]),t.forEach(l=>{l=this.findFilter(l),l&&r.push(l)}),this.table.rowManager.rows.forEach(l=>{var h=!0;r.forEach(d=>{this.filterRecurse(d,l.getData())||(h=!1)}),h&&n.push(e==="data"?l.getData("data"):l.getComponent())}),n}filter(e,t){var i=[],a=[];return this.subscribedExternal("dataFiltering")&&this.dispatchExternal("dataFiltering",this.getFilters(!0)),this.table.options.filterMode!=="remote"&&(this.filterList.length||Object.keys(this.headerFilters).length)?e.forEach(n=>{this.filterRow(n)&&i.push(n)}):i=e.slice(0),this.subscribedExternal("dataFiltered")&&(i.forEach(n=>{a.push(n.getComponent())}),this.dispatchExternal("dataFiltered",this.getFilters(!0),a)),i}filterRow(e,t){var i=!0,a=e.getData();this.filterList.forEach(r=>{this.filterRecurse(r,a)||(i=!1)});for(var n in this.headerFilters)this.headerFilters[n].func(a)||(i=!1);return i}filterRecurse(e,t){var i=!1;return Array.isArray(e)?e.forEach(a=>{this.filterRecurse(a,t)&&(i=!0)}):i=e.func(t),i}};E(He,"moduleName","filter"),E(He,"filters",AS);let H9=He;function VS(o,e,t){return this.emptyToSpace(this.sanitizeHTML(o.getValue()))}function PS(o,e,t){return o.getValue()}function qS(o,e,t){return o.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(o.getValue()))}function BS(o,e,t){var i=parseFloat(o.getValue()),a="",n,r,l,h,d,u=e.decimal||".",p=e.thousand||",",y=e.negativeSign||"-",f=e.symbol||"",g=!!e.symbolAfter,k=typeof e.precision<"u"?e.precision:2;if(isNaN(i))return this.emptyToSpace(this.sanitizeHTML(o.getValue()));if(i<0&&(i=Math.abs(i),a=y),n=k!==!1?i.toFixed(k):i,n=String(n).split("."),r=n[0],l=n.length>1?u+n[1]:"",e.thousand!==!1)for(h=/(\d+)(\d{3})/;h.test(r);)r=r.replace(h,"$1"+p+"$2");return d=r+l,a===!0?(d="("+d+")",g?d+f:f+d):g?a+d+f:a+f+d}function FS(o,e,t){var i=o.getValue(),a=e.urlPrefix||"",n=e.download,r=i,l=document.createElement("a"),h;function d(u,p){var y=u.shift(),f=p[y];return u.length&&typeof f=="object"?d(u,f):f}if(e.labelField&&(h=o.getData(),r=d(e.labelField.split(this.table.options.nestedFieldSeparator),h)),e.label)switch(typeof e.label){case"string":r=e.label;break;case"function":r=e.label(o);break}if(r){if(e.urlField&&(h=o.getData(),i=G.retrieveNestedData(this.table.options.nestedFieldSeparator,e.urlField,h)),e.url)switch(typeof e.url){case"string":i=e.url;break;case"function":i=e.url(o);break}return l.setAttribute("href",a+i),e.target&&l.setAttribute("target",e.target),e.download&&(typeof n=="function"?n=n(o):n=n===!0?"":n,l.setAttribute("download",n)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(r)),l}else return" "}function OS(o,e,t){var i=document.createElement("img"),a=o.getValue();switch(e.urlPrefix&&(a=e.urlPrefix+o.getValue()),e.urlSuffix&&(a=a+e.urlSuffix),i.setAttribute("src",a),typeof e.height){case"number":i.style.height=e.height+"px";break;case"string":i.style.height=e.height;break}switch(typeof e.width){case"number":i.style.width=e.width+"px";break;case"string":i.style.width=e.width;break}return i.addEventListener("load",function(){o.getRow().normalizeHeight()}),i}function jS(o,e,t){var i=o.getValue(),a=o.getElement(),n=e.allowEmpty,r=e.allowTruthy,l=Object.keys(e).includes("trueValue"),h=typeof e.tickElement<"u"?e.tickElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',d=typeof e.crossElement<"u"?e.crossElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';return l&&i===e.trueValue||!l&&(r&&i||i===!0||i==="true"||i==="True"||i===1||i==="1")?(a.setAttribute("aria-checked",!0),h||""):n&&(i==="null"||i===""||i===null||typeof i>"u")?(a.setAttribute("aria-checked","mixed"),""):(a.setAttribute("aria-checked",!1),d||"")}function NS(o,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),a=e.inputFormat||"yyyy-MM-dd HH:mm:ss",n=e.outputFormat||"dd/MM/yyyy HH:mm:ss",r=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",l=o.getValue();if(typeof i<"u"){var h;return i.isDateTime(l)?h=l:a==="iso"?h=i.fromISO(String(l)):h=i.fromFormat(String(l),a),h.isValid?(e.timezone&&(h=h.setZone(e.timezone)),h.toFormat(n)):r===!0||!l?l:typeof r=="function"?r(l):r}else console.error("Format Error - 'datetime' formatter is dependant on luxon.js")}function _S(o,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),a=e.inputFormat||"yyyy-MM-dd HH:mm:ss",n=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",r=typeof e.suffix<"u"?e.suffix:!1,l=typeof e.unit<"u"?e.unit:"days",h=typeof e.humanize<"u"?e.humanize:!1,d=typeof e.date<"u"?e.date:i.now(),u=o.getValue();if(typeof i<"u"){var p;return i.isDateTime(u)?p=u:a==="iso"?p=i.fromISO(String(u)):p=i.fromFormat(String(u),a),p.isValid?h?p.diff(d,l).toHuman()+(r?" "+r:""):parseInt(p.diff(d,l)[l])+(r?" "+r:""):n===!0?u:typeof n=="function"?n(u):n}else console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")}function WS(o,e,t){var i=o.getValue();return typeof e[i]>"u"?(console.warn("Missing display value for "+i),i):e[i]}function US(o,e,t){var i=o.getValue(),a=o.getElement(),n=e&&e.stars?e.stars:5,r=document.createElement("span"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),h='<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>',d='<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>';r.style.verticalAlign="middle",l.setAttribute("width","14"),l.setAttribute("height","14"),l.setAttribute("viewBox","0 0 512 512"),l.setAttribute("xml:space","preserve"),l.style.padding="0 1px",i=i&&!isNaN(i)?parseInt(i):0,i=Math.max(0,Math.min(i,n));for(var u=1;u<=n;u++){var p=l.cloneNode(!0);p.innerHTML=u<=i?h:d,r.appendChild(p)}return a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",a.setAttribute("aria-label",i),r}function $S(o,e,t){var i=this.sanitizeHTML(o.getValue())||0,a=document.createElement("span"),n=e&&e.max?e.max:100,r=e&&e.min?e.min:0,l=e&&typeof e.color<"u"?e.color:["red","orange","green"],h="#666666",d,u;if(!(isNaN(i)||typeof o.getValue()>"u")){switch(a.classList.add("tabulator-traffic-light"),u=parseFloat(i)<=n?parseFloat(i):n,u=parseFloat(u)>=r?parseFloat(u):r,d=(n-r)/100,u=Math.round((u-r)/d),typeof l){case"string":h=l;break;case"function":h=l(i);break;case"object":if(Array.isArray(l)){var p=100/l.length,y=Math.floor(u/p);y=Math.min(y,l.length-1),y=Math.max(y,0),h=l[y];break}}return a.style.backgroundColor=h,a}}function GS(o,e={},t){var i=this.sanitizeHTML(o.getValue())||0,a=o.getElement(),n=e.max?e.max:100,r=e.min?e.min:0,l=e.legendAlign?e.legendAlign:"center",h,d,u,p,y;switch(d=parseFloat(i)<=n?parseFloat(i):n,d=parseFloat(d)>=r?parseFloat(d):r,h=(n-r)/100,d=Math.round((d-r)/h),typeof e.color){case"string":u=e.color;break;case"function":u=e.color(i);break;case"object":if(Array.isArray(e.color)){let v=100/e.color.length,m=Math.floor(d/v);m=Math.min(m,e.color.length-1),m=Math.max(m,0),u=e.color[m];break}default:u="#2DC214"}switch(typeof e.legend){case"string":p=e.legend;break;case"function":p=e.legend(i);break;case"boolean":p=i;break;default:p=!1}switch(typeof e.legendColor){case"string":y=e.legendColor;break;case"function":y=e.legendColor(i);break;case"object":if(Array.isArray(e.legendColor)){let v=100/e.legendColor.length,m=Math.floor(d/v);m=Math.min(m,e.legendColor.length-1),m=Math.max(m,0),y=e.legendColor[m]}break;default:y="#000"}a.style.minWidth="30px",a.style.position="relative",a.setAttribute("aria-label",d);var f=document.createElement("div");f.style.display="inline-block",f.style.width=d+"%",f.style.backgroundColor=u,f.style.height="100%",f.setAttribute("data-max",n),f.setAttribute("data-min",r);var g=document.createElement("div");if(g.style.position="relative",g.style.width="100%",g.style.height="100%",p){var k=document.createElement("div");k.style.position="absolute",k.style.top=0,k.style.left=0,k.style.textAlign=l,k.style.width="100%",k.style.color=y,k.innerHTML=p}return t(function(){if(!(o instanceof bx)){var v=document.createElement("div");v.style.position="absolute",v.style.top="4px",v.style.bottom="4px",v.style.left="4px",v.style.right="4px",a.appendChild(v),a=v}a.appendChild(g),g.appendChild(f),p&&g.appendChild(k)}),""}function YS(o,e,t){return o.getElement().style.backgroundColor=this.sanitizeHTML(o.getValue()),""}function ZS(o,e,t){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>'}function XS(o,e,t){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>'}function KS(o,e,t){var i=o.getValue(),a=e.size||15,n=a+"px",r,l,h=e.hasOwnProperty("onValue")?e.onValue:!0,d=e.hasOwnProperty("offValue")?e.offValue:!1,u=e.onTruthy?i:i===h;return r=document.createElement("div"),r.classList.add("tabulator-toggle"),u?(r.classList.add("tabulator-toggle-on"),r.style.flexDirection="row-reverse",e.onColor&&(r.style.background=e.onColor)):e.offColor&&(r.style.background=e.offColor),r.style.width=2.5*a+"px",r.style.borderRadius=n,e.clickable&&r.addEventListener("click",p=>{o.setValue(u?d:h)}),l=document.createElement("div"),l.classList.add("tabulator-toggle-switch"),l.style.height=n,l.style.width=n,l.style.borderRadius=n,r.appendChild(l),r}function JS(o,e,t){var i=document.createElement("span"),a=o.getRow(),n=o.getTable();return a.watchPosition(r=>{e.relativeToPage&&(r+=n.modules.page.getPageSize()*(n.modules.page.getPage()-1)),i.innerText=r}),i}function QS(o,e,t){return o.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>"}function eI(o,e,t){var i,a,n;function r(l){var h=l.getValue(),d="plaintext";switch(typeof h){case"boolean":d="tickCross";break;case"string":h.includes(`
|
|
7
|
+
`)&&(d="textarea");break}return d}return i=e.formatterLookup?e.formatterLookup(o):r(o),e.paramsLookup&&(n=typeof e.paramsLookup=="function"?e.paramsLookup(i,o):e.paramsLookup[i]),a=this.table.modules.format.lookupFormatter(i),a.call(this,o,n||{},t)}function tI(o,e,t){var i=e.delimiter||",",a=o.getValue(),n=this.table,r;return e.valueMap&&(typeof e.valueMap=="string"?r=function(l){return l.map(h=>G.retrieveNestedData(n.options.nestedFieldSeparator,e.valueMap,h))}:r=e.valueMap),Array.isArray(a)?(r&&(a=r(a)),a.join(i)):a}function iI(o,e,t){var i=e.indent||" ",a=typeof e.multiline>"u"?!0:e.multiline,n=e.replacer||null,r=o.getValue();return a&&(o.getElement().style.whiteSpace="pre-wrap"),JSON.stringify(r,n,i)}var aI={plaintext:VS,html:PS,textarea:qS,money:BS,link:FS,image:OS,tickCross:jS,datetime:NS,datetimediff:_S,lookup:WS,star:US,traffic:$S,progress:GS,color:YS,buttonTick:ZS,buttonCross:XS,toggle:KS,rownum:JS,handle:QS,adaptable:eI,array:tI,json:iI};const We=class We extends B{constructor(e){super(e),this.registerColumnOption("formatter"),this.registerColumnOption("formatterParams"),this.registerColumnOption("formatterPrint"),this.registerColumnOption("formatterPrintParams"),this.registerColumnOption("formatterClipboard"),this.registerColumnOption("formatterClipboardParams"),this.registerColumnOption("formatterHtmlOutput"),this.registerColumnOption("formatterHtmlOutputParams"),this.registerColumnOption("titleFormatter"),this.registerColumnOption("titleFormatterParams")}initialize(){this.subscribe("cell-format",this.formatValue.bind(this)),this.subscribe("cell-rendered",this.cellRendered.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-format",this.formatHeader.bind(this))}initializeColumn(e){e.modules.format=this.lookupTypeFormatter(e,""),typeof e.definition.formatterPrint<"u"&&(e.modules.format.print=this.lookupTypeFormatter(e,"Print")),typeof e.definition.formatterClipboard<"u"&&(e.modules.format.clipboard=this.lookupTypeFormatter(e,"Clipboard")),typeof e.definition.formatterHtmlOutput<"u"&&(e.modules.format.htmlOutput=this.lookupTypeFormatter(e,"HtmlOutput"))}lookupTypeFormatter(e,t){var i={params:e.definition["formatter"+t+"Params"]||{}},a=e.definition["formatter"+t];return i.formatter=this.lookupFormatter(a),i}lookupFormatter(e){var t;switch(typeof e){case"string":We.formatters[e]?t=We.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),t=We.formatters.plaintext);break;case"function":t=e;break;default:t=We.formatters.plaintext;break}return t}cellRendered(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)}formatHeader(e,t,i){var a,n,r,l;return e.definition.titleFormatter?(a=this.lookupFormatter(e.definition.titleFormatter),r=h=>{e.titleFormatterRendered=h},l={getValue:function(){return t},getElement:function(){return i},getType:function(){return"header"},getColumn:function(){return e.getComponent()},getTable:()=>this.table},n=e.definition.titleFormatterParams||{},n=typeof n=="function"?n():n,a.call(this,l,n,r)):t}formatValue(e){var t=e.getComponent(),i=typeof e.column.modules.format.params=="function"?e.column.modules.format.params(t):e.column.modules.format.params;function a(n){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=n,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,i,a)}formatExportValue(e,t){var i=e.column.modules.format[t],a;if(i){let n=function(r){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=r,e.modules.format.rendered=!1};return a=typeof i.params=="function"?i.params(e.getComponent()):i.params,i.formatter.call(this,e.getComponent(),a,n)}else return this.formatValue(e)}sanitizeHTML(e){if(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=/]/g,function(i){return t[i]})}else return e}emptyToSpace(e){return e===null||typeof e>"u"||e===""?" ":e}};E(We,"moduleName","format"),E(We,"formatters",aI);let A9=We;class xx extends B{constructor(e){super(e),this.leftColumns=[],this.rightColumns=[],this.initializationMode="left",this.active=!1,this.blocked=!0,this.registerColumnOption("frozen")}reset(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.active=!1}initialize(){this.subscribe("cell-layout",this.layoutCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-width",this.layout.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("table-layout",this.layout.bind(this)),this.subscribe("columns-loading",this.reset.bind(this)),this.subscribe("column-add",this.reinitializeColumns.bind(this)),this.subscribe("column-deleted",this.reinitializeColumns.bind(this)),this.subscribe("column-hide",this.reinitializeColumns.bind(this)),this.subscribe("column-show",this.reinitializeColumns.bind(this)),this.subscribe("columns-loaded",this.reinitializeColumns.bind(this)),this.subscribe("table-redraw",this.layout.bind(this)),this.subscribe("layout-refreshing",this.blockLayout.bind(this)),this.subscribe("layout-refreshed",this.unblockLayout.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this))}blockLayout(){this.blocked=!0}unblockLayout(){this.blocked=!1}layoutCell(e){this.layoutElement(e.element,e.column)}reinitializeColumns(){this.reset(),this.table.columnManager.columnsByIndex.forEach(e=>{this.initializeColumn(e)}),this.layout()}initializeColumn(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,this.initializationMode=="left"?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")}frozenCheck(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen}layoutCalcRows(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow),this.table.modExists("groupRows")&&this.layoutGroupCalcs(this.table.modules.groupRows.getGroups()))}layoutGroupCalcs(e){e.forEach(t=>{t.calcs.top&&this.layoutRow(t.calcs.top),t.calcs.bottom&&this.layoutRow(t.calcs.bottom),t.groupList&&t.groupList.length&&this.layoutGroupCalcs(t.groupList)})}layoutColumnPosition(e){var t=[],i=0,a=0;this.leftColumns.forEach((n,r)=>{if(n.modules.frozen.marginValue=i,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(i+=n.getWidth()),r==this.leftColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup){var l=this.getColGroupParentElement(n);t.includes(l)||(this.layoutElement(l,n),t.push(l)),l.classList.toggle("tabulator-frozen-left",n.modules.frozen.edge&&n.modules.frozen.position==="left"),l.classList.toggle("tabulator-frozen-right",n.modules.frozen.edge&&n.modules.frozen.position==="right")}else this.layoutElement(n.getElement(),n);e&&n.cells.forEach(h=>{this.layoutElement(h.getElement(!0),n)})}),this.rightColumns.forEach((n,r)=>{n.modules.frozen.marginValue=a,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(a+=n.getWidth()),r==this.rightColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup?this.layoutElement(this.getColGroupParentElement(n),n):this.layoutElement(n.getElement(),n),e&&n.cells.forEach(l=>{this.layoutElement(l.getElement(!0),n)})})}getColGroupParentElement(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()}layout(){this.active&&!this.blocked&&(this.layoutColumnPosition(),this.reinitializeRows(),this.layoutCalcRows())}reinitializeRows(){var e=this.table.rowManager.getVisibleRows(!0),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));t.forEach(i=>{i.deinitialize()}),e.forEach(i=>{i.type==="row"&&this.layoutRow(i)})}layoutRow(e){this.table.options.layout==="fitDataFill"&&this.rightColumns.length&&(this.table.rowManager.getTableElement().style.minWidth="calc(100% - "+this.rightMargin+")"),this.leftColumns.forEach(t=>{var i=e.getCell(t);i&&this.layoutElement(i.getElement(!0),t)}),this.rightColumns.forEach(t=>{var i=e.getCell(t);i&&this.layoutElement(i.getElement(!0),t)})}layoutElement(e,t){var i;t.modules.frozen&&e&&(e.style.position="sticky",this.table.rtl?i=t.modules.frozen.position==="left"?"right":"left":i=t.modules.frozen.position,e.style[i]=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),e.classList.toggle("tabulator-frozen-left",t.modules.frozen.edge&&t.modules.frozen.position==="left"),e.classList.toggle("tabulator-frozen-right",t.modules.frozen.edge&&t.modules.frozen.position==="right"))}adjustForScrollbar(e){this.rightColumns.length&&(this.table.columnManager.getContentsElement().style.width="calc(100% - "+e+"px)")}getFrozenColumns(){return this.leftColumns.concat(this.rightColumns)}_calcSpace(e,t){var i=0;for(let a=0;a<t;a++)e[a].visible&&(i+=e[a].getWidth());return i}}E(xx,"moduleName","frozenColumns");class Lx extends B{constructor(e){super(e),this.topElement=document.createElement("div"),this.rows=[],this.registerComponentFunction("row","freeze",this.freezeRow.bind(this)),this.registerComponentFunction("row","unfreeze",this.unfreezeRow.bind(this)),this.registerComponentFunction("row","isFrozen",this.isRowFrozen.bind(this)),this.registerTableOption("frozenRowsField","id"),this.registerTableOption("frozenRows",!1)}initialize(){var e=document.createDocumentFragment();this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-holder"),e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.subscribe("row-deleting",this.detachRow.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),10),this.table.options.frozenRows&&(this.subscribe("data-processed",this.initializeRows.bind(this)),this.subscribe("row-added",this.initializeRow.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this))),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}initializeRows(){this.table.rowManager.getRows().forEach(e=>{this.initializeRow(e)})}initializeRow(e){var t=this.table.options.frozenRows,i=typeof t;i==="number"?e.getPosition()&&e.getPosition()+this.rows.length<=t&&this.freezeRow(e):i==="function"?t.call(this.table,e.getComponent())&&this.freezeRow(e):Array.isArray(t)&&t.includes(e.data[this.options("frozenRowsField")])&&this.freezeRow(e)}isRowFrozen(e){var t=this.rows.indexOf(e);return t>-1}isFrozen(){return!!this.rows.length}visibleRows(e,t){return this.rows.forEach(i=>{t.push(i)}),t}getRows(e){var t=e.slice(0);return this.rows.forEach(function(i){var a=t.indexOf(i);a>-1&&t.splice(a,1)}),t}freezeRow(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.rows.push(e),this.refreshData(!1,"display"),this.table.rowManager.adjustTableSize(),this.styleRows())}unfreezeRow(e){e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.refreshData(!1,"display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")}detachRow(e){var t=this.rows.indexOf(e);if(t>-1){var i=e.getElement();i.parentNode&&i.parentNode.removeChild(i),this.rows.splice(t,1)}}styleRows(e){this.rows.forEach((t,i)=>{this.table.rowManager.styleRow(t,i)})}}E(Lx,"moduleName","frozenRows");class oI{constructor(e){return this._group=e,this.type="GroupComponent",new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._group.groupManager.table.componentFunctionBinder.handle("group",t._group,i)}})}getKey(){return this._group.key}getField(){return this._group.field}getElement(){return this._group.element}getRows(){return this._group.getRows(!0)}getSubGroups(){return this._group.getSubGroups(!0)}getParentGroup(){return this._group.parent?this._group.parent.getComponent():!1}isVisible(){return this._group.visible}show(){this._group.show()}hide(){this._group.hide()}toggle(){this._group.toggleVisibility()}scrollTo(e,t){return this._group.groupManager.table.rowManager.scrollToRow(this._group,e,t)}_getSelf(){return this._group}getTable(){return this._group.groupManager.table}}let Hn=class Ex{constructor(e,t,i,a,n,r,l){this.groupManager=e,this.parent=t,this.key=a,this.level=i,this.field=n,this.hasSubGroups=i<e.groupIDLookups.length-1,this.addRow=this.hasSubGroups?this._addRowToGroup:this._addRow,this.type="group",this.old=l,this.rows=[],this.groups=[],this.groupList=[],this.generator=r,this.element=!1,this.elementContents=!1,this.height=0,this.outerHeight=0,this.initialized=!1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!1,this.visible=l?l.visible:typeof e.startOpen[i]<"u"?e.startOpen[i]:e.startOpen[0],this.component=null,this.createElements(),this.addBindings(),this.createValueGroups()}wipe(e){e||(this.groupList.length?this.groupList.forEach(function(t){t.wipe()}):this.rows.forEach(t=>{t.modules&&delete t.modules.group})),this.element=!1,this.arrowElement=!1,this.elementContents=!1}createElements(){var e=document.createElement("div");e.classList.add("tabulator-arrow"),this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-group-toggle"),this.arrowElement.appendChild(e),this.groupManager.table.options.movableRows!==!1&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)}createValueGroups(){var e=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[e]&&this.groupManager.allowedValues[e].forEach(t=>{this._createGroup(t,e)})}addBindings(){var e;this.groupManager.table.options.groupToggleElement&&(e=this.groupManager.table.options.groupToggleElement=="arrow"?this.arrowElement:this.element,e.addEventListener("click",t=>{this.groupManager.table.options.groupToggleElement==="arrow"&&(t.stopPropagation(),t.stopImmediatePropagation()),setTimeout(()=>{this.toggleVisibility()})}))}_createGroup(e,t){var i=t+"_"+e,a=new Ex(this.groupManager,this,t,e,this.groupManager.groupIDLookups[t].field,this.groupManager.headerGenerator[t]||this.groupManager.headerGenerator[0],this.old?this.old.groups[i]:!1);this.groups[i]=a,this.groupList.push(a)}_addRowToGroup(e){var t=this.level+1;if(this.hasSubGroups){var i=this.groupManager.groupIDLookups[t].func(e.getData()),a=t+"_"+i;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]?this.groups[a]&&this.groups[a].addRow(e):(this.groups[a]||this._createGroup(i,t),this.groups[a].addRow(e))}}_addRow(e){this.rows.push(e),e.modules.group=this}insertRow(e,t,i){var a=this.conformRowData({});e.updateData(a);var n=this.rows.indexOf(t);n>-1?i?this.rows.splice(n+1,0,e):this.rows.splice(n,0,e):i?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)}scrollHeader(e){this.arrowElement&&(this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)}))}getRowIndex(e){}conformRowData(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e}removeRow(e){var t=this.rows.indexOf(e),i=e.getElement();t>-1&&this.rows.splice(t,1),!this.groupManager.table.options.groupValues&&!this.rows.length?(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0)):(i.parentNode&&i.parentNode.removeChild(i),this.groupManager.blockRedraw||(this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)))}removeGroup(e){var t=e.level+"_"+e.key,i;this.groups[t]&&(delete this.groups[t],i=this.groupList.indexOf(e),i>-1&&this.groupList.splice(i,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))}getHeadersAndRows(){var e=[];return e.push(this),this._visSet(),this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.visible?this.groupList.length?this.groupList.forEach(function(t){e=e.concat(t.getHeadersAndRows())}):(this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),e=e.concat(this.rows),this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))):!this.groupList.length&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&(this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))),e}getData(e,t){var i=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(a=>{i.push(a.getData(t||"data"))}),i}getRowCount(){var e=0;return this.groupList.length?this.groupList.forEach(t=>{e+=t.getRowCount()}):e=this.rows.length,e}toggleVisibility(){this.visible?this.hide():this.show()}hide(){this.visible=!1,this.groupManager.table.rowManager.getRenderMode()=="basic"&&!this.groupManager.table.options.pagination?(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(e=>{var t=e.getHeadersAndRows();t.forEach(i=>{i.detachElement()})}):this.rows.forEach(e=>{var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.updateGroupRows(!0)):this.groupManager.updateGroupRows(!0),this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!1)}show(){if(this.visible=!0,this.groupManager.table.rowManager.getRenderMode()=="basic"&&!this.groupManager.table.options.pagination){this.element.classList.add("tabulator-group-visible");var e=this.generateElement();this.groupList.length?this.groupList.forEach(t=>{var i=t.getHeadersAndRows();i.forEach(a=>{var n=a.getElement();e.parentNode.insertBefore(n,e.nextSibling),a.initialize(),e=n})}):this.rows.forEach(t=>{var i=t.getElement();e.parentNode.insertBefore(i,e.nextSibling),t.initialize(),e=i}),this.groupManager.updateGroupRows(!0)}else this.groupManager.updateGroupRows(!0);this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!0)}_visSet(){var e=[];typeof this.visible=="function"&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))}getRowGroup(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(i){var a=i.getRowGroup(e);a&&(t=a)}):this.rows.find(function(i){return i===e})&&(t=this),t}getSubGroups(e){var t=[];return this.groupList.forEach(function(i){t.push(e?i.getComponent():i)}),t}getRows(e,t){var i=[];return t&&this.groupList.length?this.groupList.forEach(a=>{i=i.concat(a.getRows(e,t))}):this.rows.forEach(function(a){i.push(e?a.getComponent():a)}),i}generateGroupHeaderContents(){var e=[],t=this.getRows(!1,!0);for(t.forEach(function(i){e.push(i.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);typeof this.elementContents=="string"?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)}getPath(e=[]){return e.unshift(this.key),this.parent&&this.parent.getPath(e),e}getElement(){return this.elementContents?this.element:this.generateElement()}generateElement(){this.addBindings=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;e<this.element.childNodes.length;++e)this.element.childNodes[e].parentNode.removeChild(this.element.childNodes[e]);return this.generateGroupHeaderContents(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}normalizeHeight(){this.setHeight(this.element.clientHeight)}initialize(e){(!this.initialized||e)&&(this.normalizeHeight(),this.initialized=!0)}reinitialize(){this.initialized=!1,this.height=0,G.elVisible(this.element)&&this.initialize(!0)}setHeight(e){this.height!=e&&(this.height=e,this.outerHeight=this.element.offsetHeight)}getHeight(){return this.outerHeight}getGroup(){return this}reinitializeHeight(){}calcHeight(){}setCellHeight(){}clearCellHeight(){}deinitializeHeight(){}rendered(){}getComponent(){return this.component||(this.component=new oI(this)),this.component}};class Sx extends B{constructor(e){super(e),this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayHandler=this.getRows.bind(this),this.blockRedraw=!1,this.registerTableOption("groupBy",!1),this.registerTableOption("groupStartOpen",!0),this.registerTableOption("groupValues",!1),this.registerTableOption("groupUpdateOnCellEdit",!1),this.registerTableOption("groupHeader",!1),this.registerTableOption("groupHeaderPrint",null),this.registerTableOption("groupHeaderClipboard",null),this.registerTableOption("groupHeaderHtmlOutput",null),this.registerTableOption("groupHeaderDownload",null),this.registerTableOption("groupToggleElement","arrow"),this.registerTableOption("groupClosedShowCalcs",!1),this.registerTableFunction("setGroupBy",this.setGroupBy.bind(this)),this.registerTableFunction("setGroupValues",this.setGroupValues.bind(this)),this.registerTableFunction("setGroupStartOpen",this.setGroupStartOpen.bind(this)),this.registerTableFunction("setGroupHeader",this.setGroupHeader.bind(this)),this.registerTableFunction("getGroups",this.userGetGroups.bind(this)),this.registerTableFunction("getGroupedData",this.userGetGroupedData.bind(this)),this.registerComponentFunction("row","getGroup",this.rowGetGroup.bind(this))}initialize(){this.subscribe("table-destroy",this._blockRedrawing.bind(this)),this.subscribe("rows-wipe",this._blockRedrawing.bind(this)),this.subscribe("rows-wiped",this._restore_redrawing.bind(this)),this.table.options.groupBy&&(this.table.options.groupUpdateOnCellEdit&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("row-data-changed",this.reassignRowToGroup.bind(this),0)),this.subscribe("table-built",this.configureGroupSetup.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHeaders.bind(this)),this.subscribe("rows-wipe",this.wipe.bind(this)),this.subscribe("rows-added",this.rowsUpdated.bind(this)),this.subscribe("row-moving",this.rowMoving.bind(this)),this.subscribe("row-adding-index",this.rowAddingIndex.bind(this)),this.subscribe("rows-sample",this.rowSample.bind(this)),this.subscribe("render-virtual-fill",this.virtualRenderFill.bind(this)),this.registerDisplayHandler(this.displayHandler,20),this.initialized=!0)}_blockRedrawing(){this.blockRedraw=!0}_restore_redrawing(){this.blockRedraw=!1}configureGroupSetup(){if(this.table.options.groupBy){var e=this.table.options.groupBy,t=this.table.options.groupStartOpen,i=this.table.options.groupHeader;if(this.allowedValues=this.table.options.groupValues,Array.isArray(e)&&Array.isArray(i)&&e.length>i.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),this.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],this.langBind("groups|item",(n,r)=>{this.headerGenerator[0]=(l,h,d)=>(typeof l>"u"?"":l)+"<span>("+h+" "+(h===1?n:r.groups.items)+")</span>"}),this.groupIDLookups=[],e)this.table.modExists("columnCalcs")&&this.table.options.columnCalcs!="table"&&this.table.options.columnCalcs!="both"&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&this.table.options.columnCalcs!="group"){var a=this.table.columnManager.getRealColumns();a.forEach(n=>{n.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),n.definition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(e)||(e=[e]),e.forEach((n,r)=>{var l,h;typeof n=="function"?l=n:(h=this.table.columnManager.getColumnByField(n),h?l=function(d){return h.getFieldValue(d)}:l=function(d){return d[n]}),this.groupIDLookups.push({field:typeof n=="function"?!1:n,func:l,values:this.allowedValues?this.allowedValues[r]:!1})}),t&&(Array.isArray(t)||(t=[t]),t.forEach(n=>{}),this.startOpen=t),i&&(this.headerGenerator=Array.isArray(i)?i:[i])}else this.groupList=[],this.groups={}}rowSample(e,t){if(this.table.options.groupBy){var i=this.getGroups(!1)[0];t.push(i.getRows(!1)[0])}return t}virtualRenderFill(){var e=this.table.rowManager.tableElement,t=this.table.rowManager.getVisibleRows();if(this.table.options.groupBy)t=t.filter(i=>i.type!=="group"),e.style.minWidth=t.length?"":this.table.columnManager.getWidth()+"px";else return t}rowAddingIndex(e,t,i){if(this.table.options.groupBy){this.assignRowToGroup(e);var a=e.modules.group.rows;return a.length>1&&(!t||t&&a.indexOf(t)==-1?i?a[0]!==e&&(t=a[0],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):a[a.length-1]!==e&&(t=a[a.length-1],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)),t}}trackChanges(){this.dispatch("group-changed")}setGroupBy(e){this.table.options.groupBy=e,this.initialized||this.initialize(),this.configureGroupSetup(),!e&&this.table.modExists("columnCalcs")&&this.table.options.columnCalcs===!0&&this.table.modules.columnCalcs.reinitializeCalcs(),this.refreshData(),this.trackChanges()}setGroupValues(e){this.table.options.groupValues=e,this.configureGroupSetup(),this.refreshData(),this.trackChanges()}setGroupStartOpen(e){this.table.options.groupStartOpen=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}setGroupHeader(e){this.table.options.groupHeader=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}userGetGroups(e){return this.getGroups(!0)}userGetGroupedData(){return this.table.options.groupBy?this.getGroupedData():this.getData()}rowGetGroup(e){return e.modules.group?e.modules.group.getComponent():!1}rowMoving(e,t,i){if(this.table.options.groupBy){!i&&t instanceof Hn&&(t=this.table.rowManager.prevDisplayRow(e)||t);var a=t instanceof Hn?t:t.modules.group,n=e instanceof Hn?e:e.modules.group;a===n?this.table.rowManager.moveRowInArray(a.rows,e,t,i):(n&&n.removeRow(e),a.insertRow(e,t,i))}}rowDeleting(e){this.table.options.groupBy&&e.modules.group&&e.modules.group.removeRow(e)}rowsUpdated(e){this.table.options.groupBy&&this.updateGroupRows(!0)}cellUpdated(e){this.table.options.groupBy&&this.reassignRowToGroup(e.row)}getRows(e){return this.table.options.groupBy&&this.groupIDLookups.length?(this.dispatchExternal("dataGrouping"),this.generateGroups(e),this.subscribedExternal("dataGrouped")&&this.dispatchExternal("dataGrouped",this.getGroups(!0)),this.updateGroupRows()):e.slice(0)}getGroups(e){var t=[];return this.groupList.forEach(function(i){t.push(e?i.getComponent():i)}),t}getChildGroups(e){var t=[];return e||(e=this),e.groupList.forEach(i=>{i.groupList.length?t=t.concat(this.getChildGroups(i)):t.push(i)}),t}wipe(){this.table.options.groupBy&&(this.groupList.forEach(function(e){e.wipe()}),this.groupList=[],this.groups={})}pullGroupListData(e){var t=[];return e.forEach(i=>{var a={};a.level=0,a.rowCount=0,a.headerContent="";var n=[];i.hasSubGroups?(n=this.pullGroupListData(i.groupList),a.level=i.level,a.rowCount=n.length-i.groupList.length,a.headerContent=i.generator(i.key,a.rowCount,i.rows,i),t.push(a),t=t.concat(n)):(a.level=i.level,a.headerContent=i.generator(i.key,i.rows.length,i.rows,i),a.rowCount=i.getRows().length,t.push(a),i.getRows().forEach(r=>{t.push(r.getData("data"))}))}),t}getGroupedData(){return this.pullGroupListData(this.groupList)}getRowGroup(e){var t=!1;return this.options("dataTree")&&(e=this.table.modules.dataTree.getTreeParentRoot(e)),this.groupList.forEach(i=>{var a=i.getRowGroup(e);a&&(t=a)}),t}countGroups(){return this.groupList.length}generateGroups(e){var t=this.groups;this.groups={},this.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(i=>{this.createGroup(i,0,t)}),e.forEach(i=>{this.assignRowToExistingGroup(i,t)})):e.forEach(i=>{this.assignRowToGroup(i,t)}),Object.values(t).forEach(i=>{i.wipe(!0)})}createGroup(e,t,i){var a=t+"_"+e,n;i=i||[],n=new Hn(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],i[a]),this.groups[a]=n,this.groupList.push(n)}assignRowToExistingGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),a="0_"+i;this.groups[a]&&this.groups[a].addRow(e)}assignRowToGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),a=!this.groups["0_"+i];return a&&this.createGroup(i,0,t),this.groups["0_"+i].addRow(e),!a}reassignRowToGroup(e){if(e.type==="row"){var t=e.modules.group,i=t.getPath(),a=this.getExpectedPath(e),n;n=i.length==a.length&&i.every((r,l)=>r===a[l]),n||(t.removeRow(e),this.assignRowToGroup(e,this.groups),this.refreshData(!0))}}getExpectedPath(e){var t=[],i=e.getData();return this.groupIDLookups.forEach(a=>{t.push(a.func(i))}),t}updateGroupRows(e){var t=[];return this.blockRedraw||(this.groupList.forEach(i=>{t=t.concat(i.getHeadersAndRows())}),e&&this.refreshData(!0)),t}scrollHeaders(e){this.table.options.groupBy&&(this.table.options.renderHorizontal==="virtual"&&(e-=this.table.columnManager.renderer.vDomPadLeft),e=e+"px",this.groupList.forEach(t=>{t.scrollHeader(e)}))}removeGroup(e){var t=e.level+"_"+e.key,i;this.groups[t]&&(delete this.groups[t],i=this.groupList.indexOf(e),i>-1&&this.groupList.splice(i,1))}checkBasicModeGroupHeaderWidth(){var e=this.table.rowManager.tableElement,t=!0;this.table.rowManager.getDisplayRows().forEach((i,a)=>{this.table.rowManager.styleRow(i,a),e.appendChild(i.getElement()),i.initialize(!0),i.type!=="group"&&(t=!1)}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}}E(Sx,"moduleName","groupRows");var nI={cellEdit:function(o){o.component.setValueProcessData(o.data.oldValue),o.component.cellRendered()},rowAdd:function(o){o.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowDelete:function(o){var e=this.table.rowManager.addRowActual(o.data.data,o.data.pos,o.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(o.component,e),this.table.rowManager.checkPlaceholder()},rowMove:function(o){var e=o.data.posFrom-o.data.posTo>0;this.table.rowManager.moveRowActual(o.component,this.table.rowManager.getRowFromPosition(o.data.posFrom),e),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},sI={cellEdit:function(o){o.component.setValueProcessData(o.data.newValue),o.component.cellRendered()},rowAdd:function(o){var e=this.table.rowManager.addRowActual(o.data.data,o.data.pos,o.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(o.component,e),this.table.rowManager.checkPlaceholder()},rowDelete:function(o){o.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowMove:function(o){this.table.rowManager.moveRowActual(o.component,this.table.rowManager.getRowFromPosition(o.data.posTo),o.data.after),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},rI={undo:["ctrl + 90","meta + 90"],redo:["ctrl + 89","meta + 89"]},lI={undo:function(o){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(o.preventDefault(),this.table.modules.history.undo()))},redo:function(o){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(o.preventDefault(),this.table.modules.history.redo()))}},hI={keybindings:{bindings:rI,actions:lI}},Le;let cI=(Le=class extends B{constructor(e){super(e),this.history=[],this.index=-1,this.registerTableOption("history",!1)}initialize(){this.table.options.history&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("cell-delete",this.clearComponentHistory.bind(this)),this.subscribe("row-delete",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clear.bind(this)),this.subscribe("row-added",this.rowAdded.bind(this)),this.subscribe("row-move",this.rowMoved.bind(this))),this.registerTableFunction("undo",this.undo.bind(this)),this.registerTableFunction("redo",this.redo.bind(this)),this.registerTableFunction("getHistoryUndoSize",this.getHistoryUndoSize.bind(this)),this.registerTableFunction("getHistoryRedoSize",this.getHistoryRedoSize.bind(this)),this.registerTableFunction("clearHistory",this.clear.bind(this))}rowMoved(e,t,i){this.action("rowMove",e,{posFrom:e.getPosition(),posTo:t.getPosition(),to:t,after:i})}rowAdded(e,t,i,a){this.action("rowAdd",e,{data:t,pos:i,index:a})}rowDeleted(e){var t,i;this.table.options.groupBy?(i=e.getComponent().getGroup()._getSelf().rows,t=i.indexOf(e),t&&(t=i[t-1])):(t=e.table.rowManager.getRowIndex(e),t&&(t=e.table.rowManager.rows[t-1])),this.action("rowDelete",e,{data:e.getData(),pos:!t,index:t})}cellUpdated(e){this.action("cellEdit",e,{oldValue:e.oldValue,newValue:e.value})}clear(){this.history=[],this.index=-1}action(e,t,i){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:i}),this.index++}getHistoryUndoSize(){return this.index+1}getHistoryRedoSize(){return this.history.length-(this.index+1)}clearComponentHistory(e){var t=this.history.findIndex(function(i){return i.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))}undo(){if(this.index>-1){let e=this.history[this.index];return Le.undoers[e.type].call(this,e),this.index--,this.dispatchExternal("historyUndo",e.type,e.component.getComponent(),e.data),!0}else return console.warn(this.options("history")?"History Undo Error - No more history to undo":"History module not enabled"),!1}redo(){if(this.history.length-1>this.index){this.index++;let e=this.history[this.index];return Le.redoers[e.type].call(this,e),this.dispatchExternal("historyRedo",e.type,e.component.getComponent(),e.data),!0}else return console.warn(this.options("history")?"History Redo Error - No more history to redo":"History module not enabled"),!1}_rebindRow(e,t){this.history.forEach(function(i){if(i.component instanceof ae)i.component===e&&(i.component=t);else if(i.component instanceof wn&&i.component.row===e){var a=i.component.column.getField();a&&(i.component=t.getCell(a))}})}},E(Le,"moduleName","history"),E(Le,"moduleExtensions",hI),E(Le,"undoers",nI),E(Le,"redoers",sI),Le);class Ix extends B{constructor(e){super(e),this.fieldIndex=[],this.hasIndex=!1}initialize(){this.tableElementCheck()}tableElementCheck(){this.table.originalElement&&this.table.originalElement.tagName==="TABLE"&&(this.table.originalElement.childNodes.length?this.parseTable():console.warn("Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."))}parseTable(){var e=this.table.originalElement,t=this.table.options,i=e.getElementsByTagName("th"),a=e.getElementsByTagName("tbody")[0],n=[];this.hasIndex=!1,this.dispatchExternal("htmlImporting"),a=a?a.getElementsByTagName("tr"):[],this._extractOptions(e,t),i.length?this._extractHeaders(i,a):this._generateBlankHeaders(i,a);for(var r=0;r<a.length;r++){var l=a[r],h=l.getElementsByTagName("td"),d={};this.hasIndex||(d[t.index]=r);for(var u=0;u<h.length;u++){var p=h[u];typeof this.fieldIndex[u]<"u"&&(d[this.fieldIndex[u]]=p.innerHTML)}n.push(d)}t.data=n,this.dispatchExternal("htmlImported")}_extractOptions(e,t,i){var a=e.attributes,n=Object.keys(i||t),r={};n.forEach(u=>{r[u.toLowerCase()]=u});for(var l in a){var h=a[l],d;h&&typeof h=="object"&&h.name&&h.name.indexOf("tabulator-")===0&&(d=h.name.replace("tabulator-",""),typeof r[d]<"u"&&(t[r[d]]=this._attribValue(h.value)))}}_attribValue(e){return e==="true"?!0:e==="false"?!1:e}_findCol(e){var t=this.table.options.columns.find(i=>i.title===e);return t||!1}_extractHeaders(e,t){for(var i=0;i<e.length;i++){var a=e[i],n=!1,r=this._findCol(a.textContent),l;r?n=!0:r={title:a.textContent.trim()},r.field||(r.field=a.textContent.trim().toLowerCase().replaceAll(" ","_")),l=a.getAttribute("width"),l&&!r.width&&(r.width=l),this._extractOptions(a,r,this.table.columnManager.optionsList.registeredDefaults),this.fieldIndex[i]=r.field,r.field==this.table.options.index&&(this.hasIndex=!0),n||this.table.options.columns.push(r)}}_generateBlankHeaders(e,t){for(var i=0;i<e.length;i++){var a=e[i],n={title:"",field:"col"+i};this.fieldIndex[i]=n.field;var r=a.getAttribute("width");r&&(n.width=r),this.table.options.columns.push(n)}}}E(Ix,"moduleName","htmlTableImport");function dI(o){var e=[],t=0,i=0,a=!1;for(let n=0;n<o.length;n++){let r=o[n],l=o[n+1];if(e[t]||(e[t]=[]),e[t][i]||(e[t][i]=""),r=='"'&&a&&l=='"'){e[t][i]+=r,n++;continue}if(r=='"'){a=!a;continue}if(r==","&&!a){i++;continue}if(r=="\r"&&l==`
|
|
8
8
|
`&&!a){i=0,t++,n++;continue}if((r=="\r"||r==`
|
|
9
|
-
`)&&!a){i=0,t++;continue}e[t][i]+=r}return e}function uI(o){try{return JSON.parse(o)}catch(e){return console.warn("JSON Import Error - File contents is invalid JSON",e),Promise.reject()}}function pI(o){return o}function yI(o){var e=this.dependencyRegistry.lookup("XLSX"),t=e.read(o),i=t.Sheets[t.SheetNames[0]];return e.utils.sheet_to_json(i,{header:1})}var fI={csv:dI,json:uI,array:pI,xlsx:yI},Ge;let mI=(Ge=class extends q{constructor(e){super(e),this.registerTableOption("importFormat"),this.registerTableOption("importReader","text"),this.registerTableOption("importHeaderTransform"),this.registerTableOption("importValueTransform"),this.registerTableOption("importDataValidator"),this.registerTableOption("importFileValidator")}initialize(){this.registerTableFunction("import",this.importFromFile.bind(this)),this.table.options.importFormat&&(this.subscribe("data-loading",this.loadDataCheck.bind(this),10),this.subscribe("data-load",this.loadData.bind(this),10))}loadDataCheck(e){return this.table.options.importFormat&&(typeof e=="string"||Array.isArray(e)&&e.length&&Array.isArray(e))}loadData(e,t,i,a,n){return this.importData(this.lookupImporter(),e).then(this.structureData.bind(this)).catch(r=>(console.error("Import Error:",r||"Unable to import data"),Promise.reject(r)))}lookupImporter(e){var t;return e||(e=this.table.options.importFormat),typeof e=="string"?t=Ge.importers[e]:t=e,t||console.error("Import Error - Importer not found:",e),t}importFromFile(e,t,i){var a=this.lookupImporter(e);if(a)return this.pickFile(t,i).then(this.importData.bind(this,a)).then(this.structureData.bind(this)).then(this.mutateData.bind(this)).then(this.validateData.bind(this)).then(this.setData.bind(this)).catch(n=>(this.dispatch("import-error",n),this.dispatchExternal("importError",n),console.error("Import Error:",n||"Unable to import file"),this.table.dataLoader.alertError(),setTimeout(()=>{this.table.dataLoader.clearAlert()},3e3),Promise.reject(n)))}pickFile(e,t){return new Promise((i,a)=>{var n=document.createElement("input");n.type="file",n.accept=e,n.addEventListener("change",r=>{var l=n.files[0],h=new FileReader,d=this.validateFile(l);if(d===!0){switch(this.dispatch("import-importing",n.files),this.dispatchExternal("importImporting",n.files),t||this.table.options.importReader){case"buffer":h.readAsArrayBuffer(l);break;case"binary":h.readAsBinaryString(l);break;case"url":h.readAsDataURL(l);break;case"text":default:h.readAsText(l)}h.onload=u=>{i(h.result)},h.onerror=u=>{console.warn("File Load Error - Unable to read file"),a(u)}}else a(d)}),this.dispatch("import-choose"),this.dispatchExternal("importChoose"),n.click()})}importData(e,t){var i;return this.table.dataLoader.alertLoader(),new Promise((a,n)=>{setTimeout(()=>{i=e.call(this.table,t),i instanceof Promise||i?a(i):n()},10)})}structureData(e){var t=[];return Array.isArray(e)&&e.length&&Array.isArray(e[0])?(this.table.options.autoColumns?t=this.structureArrayToObject(e):t=this.structureArrayToColumns(e),t):e}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"import"))}):t=e,t}transformHeader(e){var t=[];if(this.table.options.importHeaderTransform)e.forEach(i=>{t.push(this.table.options.importHeaderTransform.call(this.table,i,e))});else return e;return t}transformData(e){var t=[];if(this.table.options.importValueTransform)e.forEach(i=>{t.push(this.table.options.importValueTransform.call(this.table,i,e))});else return e;return t}structureArrayToObject(e){var t=this.transformHeader(e.shift()),i=e.map(a=>{var n={};return a=this.transformData(a),t.forEach((r,l)=>{n[r]=a[l]}),n});return i}structureArrayToColumns(e){var t=[],i=this.transformHeader(e[0]),a=this.table.getColumns();return a[0]&&i[0]&&a[0].getDefinition().title===i[0]&&e.shift(),e.forEach(n=>{var r={};n=this.transformData(n),n.forEach((l,h)=>{var d=a[h];d&&(r[d.getField()]=l)}),t.push(r)}),t}validateFile(e){return this.table.options.importFileValidator?this.table.options.importFileValidator.call(this.table,e):!0}validateData(e){var t;return this.table.options.importDataValidator?(t=this.table.options.importDataValidator.call(this.table,e),t===!0?e:Promise.reject(t)):e}setData(e){return this.dispatch("import-imported",e),this.dispatchExternal("importImported",e),this.table.dataLoader.clearAlert(),this.table.setData(e)}},E(Ge,"moduleName","import"),E(Ge,"importers",fI),Ge);class Tx extends q{constructor(e){super(e),this.eventMap={rowClick:"row-click",rowDblClick:"row-dblclick",rowContext:"row-contextmenu",rowMouseEnter:"row-mouseenter",rowMouseLeave:"row-mouseleave",rowMouseOver:"row-mouseover",rowMouseOut:"row-mouseout",rowMouseMove:"row-mousemove",rowMouseDown:"row-mousedown",rowMouseUp:"row-mouseup",rowTap:"row",rowDblTap:"row",rowTapHold:"row",cellClick:"cell-click",cellDblClick:"cell-dblclick",cellContext:"cell-contextmenu",cellMouseEnter:"cell-mouseenter",cellMouseLeave:"cell-mouseleave",cellMouseOver:"cell-mouseover",cellMouseOut:"cell-mouseout",cellMouseMove:"cell-mousemove",cellMouseDown:"cell-mousedown",cellMouseUp:"cell-mouseup",cellTap:"cell",cellDblTap:"cell",cellTapHold:"cell",headerClick:"column-click",headerDblClick:"column-dblclick",headerContext:"column-contextmenu",headerMouseEnter:"column-mouseenter",headerMouseLeave:"column-mouseleave",headerMouseOver:"column-mouseover",headerMouseOut:"column-mouseout",headerMouseMove:"column-mousemove",headerMouseDown:"column-mousedown",headerMouseUp:"column-mouseup",headerTap:"column",headerDblTap:"column",headerTapHold:"column",groupClick:"group-click",groupDblClick:"group-dblclick",groupContext:"group-contextmenu",groupMouseEnter:"group-mouseenter",groupMouseLeave:"group-mouseleave",groupMouseOver:"group-mouseover",groupMouseOut:"group-mouseout",groupMouseMove:"group-mousemove",groupMouseDown:"group-mousedown",groupMouseUp:"group-mouseup",groupTap:"group",groupDblTap:"group",groupTapHold:"group"},this.subscribers={},this.touchSubscribers={},this.columnSubscribers={},this.touchWatchers={row:{tap:null,tapDbl:null,tapHold:null},cell:{tap:null,tapDbl:null,tapHold:null},column:{tap:null,tapDbl:null,tapHold:null},group:{tap:null,tapDbl:null,tapHold:null}},this.registerColumnOption("headerClick"),this.registerColumnOption("headerDblClick"),this.registerColumnOption("headerContext"),this.registerColumnOption("headerMouseEnter"),this.registerColumnOption("headerMouseLeave"),this.registerColumnOption("headerMouseOver"),this.registerColumnOption("headerMouseOut"),this.registerColumnOption("headerMouseMove"),this.registerColumnOption("headerMouseDown"),this.registerColumnOption("headerMouseUp"),this.registerColumnOption("headerTap"),this.registerColumnOption("headerDblTap"),this.registerColumnOption("headerTapHold"),this.registerColumnOption("cellClick"),this.registerColumnOption("cellDblClick"),this.registerColumnOption("cellContext"),this.registerColumnOption("cellMouseEnter"),this.registerColumnOption("cellMouseLeave"),this.registerColumnOption("cellMouseOver"),this.registerColumnOption("cellMouseOut"),this.registerColumnOption("cellMouseMove"),this.registerColumnOption("cellMouseDown"),this.registerColumnOption("cellMouseUp"),this.registerColumnOption("cellTap"),this.registerColumnOption("cellDblTap"),this.registerColumnOption("cellTapHold")}initialize(){this.initializeExternalEvents(),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("cell-dblclick",this.cellContentsSelectionFixer.bind(this)),this.subscribe("scroll-horizontal",this.clearTouchWatchers.bind(this)),this.subscribe("scroll-vertical",this.clearTouchWatchers.bind(this))}clearTouchWatchers(){var e=Object.values(this.touchWatchers);e.forEach(t=>{for(let i in t)t[i]=null})}cellContentsSelectionFixer(e,t){var i;if(!(this.table.modExists("edit")&&this.table.modules.edit.currentCell===t)){e.preventDefault();try{document.selection?(i=document.body.createTextRange(),i.moveToElementText(t.getElement()),i.select()):window.getSelection&&(i=document.createRange(),i.selectNode(t.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(i))}catch{}}}initializeExternalEvents(){for(let e in this.eventMap)this.subscriptionChangeExternal(e,this.subscriptionChanged.bind(this,e))}subscriptionChanged(e,t){t?this.subscribers[e]||(this.eventMap[e].includes("-")?(this.subscribers[e]=this.handle.bind(this,e),this.subscribe(this.eventMap[e],this.subscribers[e])):this.subscribeTouchEvents(e)):this.eventMap[e].includes("-")?this.subscribers[e]&&!this.columnSubscribers[e]&&!this.subscribedExternal(e)&&(this.unsubscribe(this.eventMap[e],this.subscribers[e]),delete this.subscribers[e]):this.unsubscribeTouchEvents(e)}subscribeTouchEvents(e){var t=this.eventMap[e];this.touchSubscribers[t+"-touchstart"]||(this.touchSubscribers[t+"-touchstart"]=this.handleTouch.bind(this,t,"start"),this.touchSubscribers[t+"-touchend"]=this.handleTouch.bind(this,t,"end"),this.subscribe(t+"-touchstart",this.touchSubscribers[t+"-touchstart"]),this.subscribe(t+"-touchend",this.touchSubscribers[t+"-touchend"])),this.subscribers[e]=!0}unsubscribeTouchEvents(e){var t=!0,i=this.eventMap[e];if(this.subscribers[e]&&!this.subscribedExternal(e)){delete this.subscribers[e];for(let a in this.eventMap)this.eventMap[a]===i&&this.subscribers[a]&&(t=!1);t&&(this.unsubscribe(i+"-touchstart",this.touchSubscribers[i+"-touchstart"]),this.unsubscribe(i+"-touchend",this.touchSubscribers[i+"-touchend"]),delete this.touchSubscribers[i+"-touchstart"],delete this.touchSubscribers[i+"-touchend"])}}initializeColumn(e){var t=e.definition;for(let i in this.eventMap)t[i]&&(this.subscriptionChanged(i,!0),this.columnSubscribers[i]||(this.columnSubscribers[i]=[]),this.columnSubscribers[i].push(e))}handle(e,t,i){this.dispatchEvent(e,t,i)}handleTouch(e,t,i,a){var n=this.touchWatchers[e];switch(e==="column"&&(e="header"),t){case"start":n.tap=!0,clearTimeout(n.tapHold),n.tapHold=setTimeout(()=>{clearTimeout(n.tapHold),n.tapHold=null,n.tap=null,clearTimeout(n.tapDbl),n.tapDbl=null,this.dispatchEvent(e+"TapHold",i,a)},1e3);break;case"end":n.tap&&(n.tap=null,this.dispatchEvent(e+"Tap",i,a)),n.tapDbl?(clearTimeout(n.tapDbl),n.tapDbl=null,this.dispatchEvent(e+"DblTap",i,a)):n.tapDbl=setTimeout(()=>{clearTimeout(n.tapDbl),n.tapDbl=null},300),clearTimeout(n.tapHold),n.tapHold=null;break}}dispatchEvent(e,t,i){var a=i.getComponent(),n;this.columnSubscribers[e]&&(i instanceof wn?n=i.column.definition[e]:i instanceof No&&(n=i.definition[e]),n&&n(t,a)),this.dispatchExternal(e,t,a)}}E(Tx,"moduleName","interaction");var gI={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,navLeft:37,navRight:39,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35},kI={keyBlock:function(o){o.stopPropagation(),o.preventDefault()},scrollPageUp:function(o){var e=this.table.rowManager,t=e.scrollTop-e.element.clientHeight;o.preventDefault(),e.displayRowsCount&&(t>=0?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(o){var e=this.table.rowManager,t=e.scrollTop+e.element.clientHeight,i=e.element.scrollHeight;o.preventDefault(),e.displayRowsCount&&(t<=i?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(o){var e=this.table.rowManager;o.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(o){var e=this.table.rowManager;o.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1]),this.table.element.focus()},navPrev:function(o){this.dispatch("keybinding-nav-prev",o)},navNext:function(o){this.dispatch("keybinding-nav-next",o)},navLeft:function(o){this.dispatch("keybinding-nav-left",o)},navRight:function(o){this.dispatch("keybinding-nav-right",o)},navUp:function(o){this.dispatch("keybinding-nav-up",o)},navDown:function(o){this.dispatch("keybinding-nav-down",o)}};const Ue=class Ue extends q{constructor(e){super(e),this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1,this.registerTableOption("keybindings",{}),this.registerTableOption("tabEndNewRow",!1)}initialize(){var e=this.table.options.keybindings,t={};this.watchKeys={},this.pressedKeys=[],e!==!1&&(Object.assign(t,Ue.bindings),Object.assign(t,e),this.mapBindings(t),this.bindEvents()),this.subscribe("table-destroy",this.clearBindings.bind(this))}mapBindings(e){for(let t in e)Ue.actions[t]?e[t]&&(typeof e[t]!="object"&&(e[t]=[e[t]]),e[t].forEach(i=>{var a=Array.isArray(i)?i:[i];a.forEach(n=>{this.mapBinding(t,n)})})):console.warn("Key Binding Error - no such action:",t)}mapBinding(e,t){var i={action:Ue.actions[e],keys:[],ctrl:!1,shift:!1,meta:!1},a=t.toString().toLowerCase().split(" ").join("").split("+");a.forEach(n=>{switch(n){case"ctrl":i.ctrl=!0;break;case"shift":i.shift=!0;break;case"meta":i.meta=!0;break;default:n=isNaN(n)?n.toUpperCase().charCodeAt(0):parseInt(n),i.keys.push(n),this.watchKeys[n]||(this.watchKeys[n]=[]),this.watchKeys[n].push(i)}})}bindEvents(){var e=this;this.keyupBinding=function(t){var i=t.keyCode,a=e.watchKeys[i];a&&(e.pressedKeys.push(i),a.forEach(function(n){e.checkBinding(t,n)}))},this.keydownBinding=function(t){var i=t.keyCode,a=e.watchKeys[i];if(a){var n=e.pressedKeys.indexOf(i);n>-1&&e.pressedKeys.splice(n,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)}clearBindings(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)}checkBinding(e,t){var i=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta?(t.keys.forEach(a=>{var n=this.pressedKeys.indexOf(a);n==-1&&(i=!1)}),i&&t.action.call(this,e),!0):!1}};E(Ue,"moduleName","keybindings"),E(Ue,"bindings",gI),E(Ue,"actions",kI);let V9=Ue;var x9;let vI=(x9=class extends q{constructor(e){super(e),this.menuContainer=null,this.nestedMenuBlock=!1,this.currentComponent=null,this.rootPopup=null,this.columnSubscribers={},this.registerTableOption("rowContextMenu",!1),this.registerTableOption("rowClickMenu",!1),this.registerTableOption("rowDblClickMenu",!1),this.registerTableOption("groupContextMenu",!1),this.registerTableOption("groupClickMenu",!1),this.registerTableOption("groupDblClickMenu",!1),this.registerColumnOption("headerContextMenu"),this.registerColumnOption("headerClickMenu"),this.registerColumnOption("headerDblClickMenu"),this.registerColumnOption("headerMenu"),this.registerColumnOption("headerMenuIcon"),this.registerColumnOption("contextMenu"),this.registerColumnOption("clickMenu"),this.registerColumnOption("dblClickMenu")}initialize(){this.deprecatedOptionsCheck(),this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeRowWatchers(){this.table.options.rowContextMenu&&(this.subscribe("row-contextmenu",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu)),this.table.on("rowTapHold",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu))),this.table.options.rowClickMenu&&this.subscribe("row-click",this.loadMenuEvent.bind(this,this.table.options.rowClickMenu)),this.table.options.rowDblClickMenu&&this.subscribe("row-dblclick",this.loadMenuEvent.bind(this,this.table.options.rowDblClickMenu))}initializeGroupWatchers(){this.table.options.groupContextMenu&&(this.subscribe("group-contextmenu",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu)),this.table.on("groupTapHold",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu))),this.table.options.groupClickMenu&&this.subscribe("group-click",this.loadMenuEvent.bind(this,this.table.options.groupClickMenu)),this.table.options.groupDblClickMenu&&this.subscribe("group-dblclick",this.loadMenuEvent.bind(this,this.table.options.groupDblClickMenu))}initializeColumn(e){var t=e.definition;t.headerContextMenu&&!this.columnSubscribers.headerContextMenu&&(this.columnSubscribers.headerContextMenu=this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextMenu),this.table.on("headerTapHold",this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"))),t.headerClickMenu&&!this.columnSubscribers.headerClickMenu&&(this.columnSubscribers.headerClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerClickMenu"),this.subscribe("column-click",this.columnSubscribers.headerClickMenu)),t.headerDblClickMenu&&!this.columnSubscribers.headerDblClickMenu&&(this.columnSubscribers.headerDblClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerDblClickMenu"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickMenu)),t.headerMenu&&this.initializeColumnHeaderMenu(e),t.contextMenu&&!this.columnSubscribers.contextMenu&&(this.columnSubscribers.contextMenu=this.loadMenuTableCellEvent.bind(this,"contextMenu"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextMenu),this.table.on("cellTapHold",this.loadMenuTableCellEvent.bind(this,"contextMenu"))),t.clickMenu&&!this.columnSubscribers.clickMenu&&(this.columnSubscribers.clickMenu=this.loadMenuTableCellEvent.bind(this,"clickMenu"),this.subscribe("cell-click",this.columnSubscribers.clickMenu)),t.dblClickMenu&&!this.columnSubscribers.dblClickMenu&&(this.columnSubscribers.dblClickMenu=this.loadMenuTableCellEvent.bind(this,"dblClickMenu"),this.subscribe("cell-dblclick",this.columnSubscribers.dblClickMenu))}initializeColumnHeaderMenu(e){var t=e.definition.headerMenuIcon,i;i=document.createElement("span"),i.classList.add("tabulator-header-popup-button"),t?(typeof t=="function"&&(t=t(e.getComponent())),t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t):i.innerHTML="⋮",i.addEventListener("click",a=>{a.stopPropagation(),a.preventDefault(),this.loadMenuEvent(e.definition.headerMenu,a,e)}),e.titleElement.insertBefore(i,e.titleElement.firstChild)}loadMenuTableCellEvent(e,t,i){i._cell&&(i=i._cell),i.column.definition[e]&&this.loadMenuEvent(i.column.definition[e],t,i)}loadMenuTableColumnEvent(e,t,i){i._column&&(i=i._column),i.definition[e]&&this.loadMenuEvent(i.definition[e],t,i)}loadMenuEvent(e,t,i){i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent()):e,this.loadMenu(t,i,e)}loadMenu(e,t,i,a,n){var r=!(e instanceof MouseEvent),l=document.createElement("div"),h;if(l.classList.add("tabulator-menu"),r||e.preventDefault(),!(!i||!i.length)){if(a)h=n.child(l);else{if(this.nestedMenuBlock){if(this.rootPopup)return}else this.nestedMenuBlock=setTimeout(()=>{this.nestedMenuBlock=!1},100);this.rootPopup&&this.rootPopup.hide(),this.rootPopup=h=this.popup(l)}i.forEach(d=>{var u=document.createElement("div"),p=d.label,y=d.disabled;d.separator?u.classList.add("tabulator-menu-separator"):(u.classList.add("tabulator-menu-item"),typeof p=="function"&&(p=p.call(this.table,t.getComponent())),p instanceof Node?u.appendChild(p):u.innerHTML=p,typeof y=="function"&&(y=y.call(this.table,t.getComponent())),y?(u.classList.add("tabulator-menu-item-disabled"),u.addEventListener("click",f=>{f.stopPropagation()})):d.menu&&d.menu.length?u.addEventListener("click",f=>{f.stopPropagation(),this.loadMenu(f,t,d.menu,u,h)}):d.action&&u.addEventListener("click",f=>{d.action(f,t.getComponent())}),d.menu&&d.menu.length&&u.classList.add("tabulator-menu-item-submenu")),l.appendChild(u)}),l.addEventListener("click",d=>{this.rootPopup&&this.rootPopup.hide()}),h.show(a||e),h===this.rootPopup&&(this.rootPopup.hideOnBlur(()=>{this.rootPopup=null,this.currentComponent&&(this.dispatch("menu-closed",i,h),this.dispatchExternal("menuClosed",this.currentComponent.getComponent()),this.currentComponent=null)}),this.currentComponent=t,this.dispatch("menu-opened",i,h),this.dispatchExternal("menuOpened",t.getComponent()))}}},E(x9,"moduleName","menu"),x9);class Dx extends q{constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.registerTableOption("movableColumns",!1)}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e}initialize(){this.table.options.movableColumns&&(this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("alert-show",this.abortMove.bind(this)))}abortMove(){clearTimeout(this.checkTimeout)}initializeColumn(e){var t=this,i={},a;!e.modules.frozen&&!e.isGroup&&!e.isRowHeader&&(a=e.getElement(),i.mousemove=(function(n){e.parent===t.moving.parent&&((t.touchMove?n.touches[0].pageX:n.pageX)-G.elOffset(a).left+t.table.columnManager.contentsElement.scrollLeft>e.getWidth()/2?(t.toCol!==e||!t.toColAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a.nextSibling),t.moveColumn(e,!0)):(t.toCol!==e||t.toColAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a),t.moveColumn(e,!1)))}).bind(t),a.addEventListener("mousedown",function(n){t.touchMove=!1,n.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e)},t.checkPeriod))}),a.addEventListener("mouseup",function(n){n.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),t.bindTouchEvents(e)),e.modules.moveColumn=i}bindTouchEvents(e){var t=e.getElement(),i=!1,a,n,r,l,h,d;t.addEventListener("touchstart",u=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,a=e.nextColumn(),r=a?a.getWidth()/2:0,n=e.prevColumn(),l=n?n.getWidth()/2:0,h=0,d=0,i=!1,this.startMove(u,e)},this.checkPeriod)},{passive:!0}),t.addEventListener("touchmove",u=>{var p,y;this.moving&&(this.moveHover(u),i||(i=u.touches[0].pageX),p=u.touches[0].pageX-i,p>0?a&&p-h>r&&(y=a,y!==e&&(i=u.touches[0].pageX,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement().nextSibling),this.moveColumn(y,!0))):n&&-p-d>l&&(y=n,y!==e&&(i=u.touches[0].pageX,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement()),this.moveColumn(y,!1))),y&&(a=y.nextColumn(),h=r,r=a?a.getWidth()/2:0,n=y.prevColumn(),d=l,l=n?n.getWidth()/2:0))},{passive:!0}),t.addEventListener("touchend",u=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(u)})}startMove(e,t){var i=t.getElement(),a=this.table.columnManager.getContentsElement(),n=this.table.columnManager.getHeadersElement();this.table.modules.selectRange&&this.table.modules.selectRange.columnSelection&&this.table.modules.selectRange.mousedown&&this.table.modules.selectRange.selecting==="column"||(this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-G.elOffset(i).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",i.parentNode.insertBefore(this.placeholderElement,i),i.parentNode.removeChild(i),this.hoverElement=i.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),a.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom=a.clientHeight-n.offsetHeight+"px",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e),this.dispatch("column-moving",e,this.moving))}_bindMouseMove(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})}_unbindMouseMove(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})}moveColumn(e,t){var i=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(a,n){var r=a.getElement(!0);r.parentNode&&i[n]&&r.parentNode.insertBefore(i[n].getElement(),r.nextSibling)}):e.getCells().forEach(function(a,n){var r=a.getElement(!0);r.parentNode&&i[n]&&r.parentNode.insertBefore(i[n].getElement(),r)})}endMove(e){(e.which===1||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))}moveHover(e){var t=this.table.columnManager.getContentsElement(),i=t.scrollLeft,a=(this.touchMove?e.touches[0].pageX:e.pageX)-G.elOffset(t).left+i,n;this.hoverElement.style.left=a-this.startX+"px",a-i<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{n=Math.max(0,i-5),this.table.rowManager.getElement().scrollLeft=n,this.autoScrollTimeout=!1},1))),i+t.clientWidth-a<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{n=Math.min(t.clientWidth,i+5),this.table.rowManager.getElement().scrollLeft=n,this.autoScrollTimeout=!1},1)))}}E(Dx,"moduleName","moveColumn");var bI={delete:function(o,e,t){o.delete()}},wI={insert:function(o,e,t){return this.table.addRow(o.getData(),void 0,e),!0},add:function(o,e,t){return this.table.addRow(o.getData()),!0},update:function(o,e,t){return e?(e.update(o.getData()),!0):!1},replace:function(o,e,t){return e?(this.table.addRow(o.getData(),void 0,e),e.delete(),!0):!1}};const qo=class qo extends q{constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connectionSelectorsTables=!1,this.connectionSelectorsElements=!1,this.connectionElements=[],this.connections=[],this.connectedTable=!1,this.connectedRow=!1,this.registerTableOption("movableRows",!1),this.registerTableOption("movableRowsConnectedTables",!1),this.registerTableOption("movableRowsConnectedElements",!1),this.registerTableOption("movableRowsSender",!1),this.registerTableOption("movableRowsReceiver","insert"),this.registerColumnOption("rowHandle")}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-row"),e.classList.add("tabulator-row-placeholder"),e}initialize(){this.table.options.movableRows&&(this.connectionSelectorsTables=this.table.options.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.movableRowsConnectedElements,this.connection=this.connectionSelectorsTables||this.connectionSelectorsElements,this.subscribe("cell-init",this.initializeCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)))}initializeGroupHeader(e){var t=this,i={};i.mouseup=(function(a){t.tableRowDrop(a,e)}).bind(t),i.mousemove=(function(a){var n;a.pageY-G.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(n=e.getElement(),n.parentNode.insertBefore(t.placeholderElement,n.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(n=e.getElement(),n.previousSibling&&(n.parentNode.insertBefore(t.placeholderElement,n),t.moveRow(e,!1)))}).bind(t),e.modules.moveRow=i}initializeRow(e){var t=this,i={},a;i.mouseup=(function(n){t.tableRowDrop(n,e)}).bind(t),i.mousemove=(function(n){var r=e.getElement();n.pageY-G.elOffset(r).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r),t.moveRow(e,!1))}).bind(t),this.hasHandle||(a=e.getElement(),a.addEventListener("mousedown",function(n){n.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e)},t.checkPeriod))}),a.addEventListener("mouseup",function(n){n.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=i}initializeColumn(e){e.definition.rowHandle&&this.table.options.movableRows!==!1&&(this.hasHandle=!0)}initializeCell(e){if(e.column.definition.rowHandle&&this.table.options.movableRows!==!1){var t=this,i=e.getElement(!0);i.addEventListener("mousedown",function(a){a.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(a,e.row)},t.checkPeriod))}),i.addEventListener("mouseup",function(a){a.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,i)}}bindTouchEvents(e,t){var i=!1,a,n,r,l,h,d;t.addEventListener("touchstart",u=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,a=e.nextRow(),r=a?a.getHeight()/2:0,n=e.prevRow(),l=n?n.getHeight()/2:0,h=0,d=0,i=!1,this.startMove(u,e)},this.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",u=>{var p,y;this.moving&&(u.preventDefault(),this.moveHover(u),i||(i=u.touches[0].pageY),p=u.touches[0].pageY-i,p>0?a&&p-h>r&&(y=a,y!==e&&(i=u.touches[0].pageY,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement().nextSibling),this.moveRow(y,!0))):n&&-p-d>l&&(y=n,y!==e&&(i=u.touches[0].pageY,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement()),this.moveRow(y,!1))),y&&(a=y.nextRow(),h=r,r=a?a.getHeight()/2:0,n=y.prevRow(),d=l,l=n?n.getHeight()/2:0))}),t.addEventListener("touchend",u=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(u),this.touchMove=!1)})}_bindMouseMove(){this.table.rowManager.getDisplayRows().forEach(e=>{(e.type==="row"||e.type==="group")&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})}_unbindMouseMove(){this.table.rowManager.getDisplayRows().forEach(e=>{(e.type==="row"||e.type==="group")&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})}startMove(e,t){var i=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(i.parentNode.insertBefore(this.placeholderElement,i),i.parentNode.removeChild(i)),this.hoverElement=i.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.dispatchExternal("rowMoving",t.getComponent()),this.moveHover(e)}setStartPosition(e,t){var i=this.touchMove?e.touches[0].pageX:e.pageX,a=this.touchMove?e.touches[0].pageY:e.pageY,n,r;n=t.getElement(),this.connection?(r=n.getBoundingClientRect(),this.startX=r.left-i+window.pageXOffset,this.startY=r.top-a+window.pageYOffset):this.startY=a-n.getBoundingClientRect().top}endMove(e){(!e||e.which===1||this.touchMove)&&(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow?this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter):this.dispatchExternal("rowMoveCancelled",this.moving.getComponent()),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))}moveRow(e,t){this.toRow=e,this.toRowAfter=t}moveHover(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)}moveHoverTable(e){var t=this.table.rowManager.getElement(),i=t.scrollTop,a=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+i;this.hoverElement.style.top=Math.min(a-this.startY,this.table.rowManager.element.scrollHeight-this.hoverElement.offsetHeight)+"px"}moveHoverConnections(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"}elementRowDrop(e,t,i){this.dispatchExternal("movableRowsElementDrop",e,t,i?i.getComponent():!1)}connectToTables(e){var t;this.connectionSelectorsTables&&(t=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStart",t),this.commsSend(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(i=>{typeof i=="string"?this.connectionElements=this.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(i))):this.connectionElements.push(i)}),this.connectionElements.forEach(i=>{var a=n=>{this.elementRowDrop(n,i,this.moving)};i.addEventListener("mouseup",a),i.tabulatorElementDropEvent=a,i.classList.add("tabulator-movingrow-receiving")}))}disconnectFromTables(){var e;this.connectionSelectorsTables&&(e=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStop",e),this.commsSend(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(t=>{t.classList.remove("tabulator-movingrow-receiving"),t.removeEventListener("mouseup",t.tabulatorElementDropEvent),delete t.tabulatorElementDropEvent})}connect(e,t){return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(i=>{i.type==="row"&&i.modules.moveRow&&i.modules.moveRow.mouseup&&i.getElement().addEventListener("mouseup",i.modules.moveRow.mouseup)}),this.tableRowDropEvent=this.tableRowDrop.bind(this),this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStart",t,e),!0)}disconnect(e){e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(t=>{t.type==="row"&&t.modules.moveRow&&t.modules.moveRow.mouseup&&t.getElement().removeEventListener("mouseup",t.modules.moveRow.mouseup)}),this.table.element.removeEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStop",e)):console.warn("Move Row Error - trying to disconnect from non connected table")}dropComplete(e,t,i){var a=!1;if(i){switch(typeof this.table.options.movableRowsSender){case"string":a=qo.senders[this.table.options.movableRowsSender];break;case"function":a=this.table.options.movableRowsSender;break}a?a.call(this,this.moving?this.moving.getComponent():void 0,t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.dispatchExternal("movableRowsSent",this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.dispatchExternal("movableRowsSentFailed",this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()}tableRowDrop(e,t){var i=!1,a=!1;switch(e.stopImmediatePropagation(),typeof this.table.options.movableRowsReceiver){case"string":i=qo.receivers[this.table.options.movableRowsReceiver];break;case"function":i=this.table.options.movableRowsReceiver;break}i?a=i.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),a?this.dispatchExternal("movableRowsReceived",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.dispatchExternal("movableRowsReceivedFailed",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.commsSend(this.connectedTable,"moveRow","dropcomplete",{row:t,success:a})}commsReceived(e,t,i){switch(t){case"connect":return this.connect(e,i.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,i.row,i.success)}}};E(qo,"moduleName","moveRow"),E(qo,"senders",bI),E(qo,"receivers",wI);let P9=qo;var MI={};const Xo=class Xo extends q{constructor(e){super(e),this.allowedTypes=["","data","edit","clipboard","import"],this.enabled=!0,this.registerColumnOption("mutator"),this.registerColumnOption("mutatorParams"),this.registerColumnOption("mutatorData"),this.registerColumnOption("mutatorDataParams"),this.registerColumnOption("mutatorEdit"),this.registerColumnOption("mutatorEditParams"),this.registerColumnOption("mutatorClipboard"),this.registerColumnOption("mutatorClipboardParams"),this.registerColumnOption("mutatorImport"),this.registerColumnOption("mutatorImportParams"),this.registerColumnOption("mutateLink")}initialize(){this.subscribe("cell-value-changing",this.transformCell.bind(this)),this.subscribe("cell-value-changed",this.mutateLink.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-init-before",this.rowDataChanged.bind(this)),this.subscribe("row-data-changing",this.rowDataChanged.bind(this))}rowDataChanged(e,t,i){return this.transformRow(t,"data",i)}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(a=>{var n="mutator"+(a.charAt(0).toUpperCase()+a.slice(1)),r;e.definition[n]&&(r=this.lookupMutator(e.definition[n]),r&&(t=!0,i[n]={mutator:r,params:e.definition[n+"Params"]||{}}))}),t&&(e.modules.mutate=i)}lookupMutator(e){var t=!1;switch(typeof e){case"string":Xo.mutators[e]?t=Xo.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t,i){var a="mutator"+(t.charAt(0).toUpperCase()+t.slice(1)),n;return this.enabled&&this.table.columnManager.traverse(r=>{var l,h,d;r.modules.mutate&&(l=r.modules.mutate[a]||r.modules.mutate.mutator||!1,l&&(n=r.getFieldValue(typeof i<"u"?i:e),(t=="data"&&!i||typeof n<"u")&&(d=r.getComponent(),h=typeof l.params=="function"?l.params(n,e,t,d):l.params,r.setFieldValue(e,l.mutator(n,e,t,h,d)))))}),e}transformCell(e,t){if(e.column.modules.mutate){var i=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,a={};if(i)return a=Object.assign(a,e.row.getData()),e.column.setFieldValue(a,t),i.mutator(t,a,"edit",i.params,e.getComponent())}return t}mutateLink(e){var t=e.column.definition.mutateLink;t&&(Array.isArray(t)||(t=[t]),t.forEach(i=>{var a=e.row.getCell(i);a&&a.setValue(a.getValue(),!0,!0)}))}enable(){this.enabled=!0}disable(){this.enabled=!1}};E(Xo,"moduleName","mutator"),E(Xo,"mutators",MI);let q9=Xo;function CI(o,e,t,i,a){var n=document.createElement("span"),r=document.createElement("span"),l=document.createElement("span"),h=document.createElement("span"),d=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",p=>{r.innerHTML=p}),this.table.modules.localize.langBind("pagination|counter|of",p=>{h.innerHTML=p}),this.table.modules.localize.langBind("pagination|counter|rows",p=>{u.innerHTML=p}),i?(l.innerHTML=" "+e+"-"+Math.min(e+o-1,i)+" ",d.innerHTML=" "+i+" ",n.appendChild(r),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(u)):(l.innerHTML=" 0 ",n.appendChild(r),n.appendChild(l),n.appendChild(u)),n}function xI(o,e,t,i,a){var n=document.createElement("span"),r=document.createElement("span"),l=document.createElement("span"),h=document.createElement("span"),d=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",p=>{r.innerHTML=p}),l.innerHTML=" "+t+" ",this.table.modules.localize.langBind("pagination|counter|of",p=>{h.innerHTML=p}),d.innerHTML=" "+a+" ",this.table.modules.localize.langBind("pagination|counter|pages",p=>{u.innerHTML=p}),n.appendChild(r),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(u),n}var LI={rows:CI,pages:xI};const gn=class gn extends q{constructor(e){super(e),this.mode="local",this.progressiveLoad=!1,this.element=null,this.pageCounterElement=null,this.pageCounter=null,this.size=0,this.page=1,this.count=5,this.max=1,this.remoteRowCountEstimate=null,this.initialLoad=!0,this.dataChanging=!1,this.pageSizes=[],this.registerTableOption("pagination",!1),this.registerTableOption("paginationMode","local"),this.registerTableOption("paginationSize",!1),this.registerTableOption("paginationInitialPage",1),this.registerTableOption("paginationCounter",!1),this.registerTableOption("paginationCounterElement",!1),this.registerTableOption("paginationButtonCount",5),this.registerTableOption("paginationSizeSelector",!1),this.registerTableOption("paginationElement",!1),this.registerTableOption("paginationAddRow","page"),this.registerTableOption("paginationOutOfRange",!1),this.registerTableOption("progressiveLoad",!1),this.registerTableOption("progressiveLoadDelay",0),this.registerTableOption("progressiveLoadScrollMargin",0),this.registerTableFunction("setMaxPage",this.setMaxPage.bind(this)),this.registerTableFunction("setPage",this.setPage.bind(this)),this.registerTableFunction("setPageToRow",this.userSetPageToRow.bind(this)),this.registerTableFunction("setPageSize",this.userSetPageSize.bind(this)),this.registerTableFunction("getPageSize",this.getPageSize.bind(this)),this.registerTableFunction("previousPage",this.previousPage.bind(this)),this.registerTableFunction("nextPage",this.nextPage.bind(this)),this.registerTableFunction("getPage",this.getPage.bind(this)),this.registerTableFunction("getPageMax",this.getPageMax.bind(this)),this.registerComponentFunction("row","pageTo",this.setPageToRow.bind(this))}initialize(){this.table.options.pagination?(this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("footer-redraw",this.footerRedraw.bind(this)),this.table.options.paginationAddRow=="page"&&this.subscribe("row-adding-position",this.rowAddingPosition.bind(this)),this.table.options.paginationMode==="remote"&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this))),this.table.options.progressiveLoad&&console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time"),this.registerDisplayHandler(this.restOnRenderBefore.bind(this),40),this.registerDisplayHandler(this.getRows.bind(this),50),this.createElements(),this.initializePageCounter(),this.initializePaginator()):this.table.options.progressiveLoad&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.initializeProgressive(this.table.options.progressiveLoad),this.table.options.progressiveLoad==="scroll"&&this.subscribe("scroll-vertical",this.scrollVertical.bind(this)))}rowAddingPosition(e,t){var i=this.table.rowManager,a=i.getDisplayRows(),n;return t?a.length?n=a[0]:i.activeRows.length&&(n=i.activeRows[i.activeRows.length-1],t=!1):a.length&&(n=a[a.length-1],t=!(a.length<this.size)),{index:n,top:t}}calculatePageSizes(){var e,t;this.table.options.paginationSize?this.size=this.table.options.paginationSize:(e=document.createElement("div"),e.classList.add("tabulator-row"),e.style.visibility="hidden",t=document.createElement("div"),t.classList.add("tabulator-cell"),t.innerHTML="Page Row Test",e.appendChild(t),this.table.rowManager.getTableElement().appendChild(e),this.size=Math.floor(this.table.rowManager.getElement().clientHeight/e.offsetHeight),this.table.rowManager.getTableElement().removeChild(e)),this.dispatchExternal("pageSizeChanged",this.size),this.generatePageSizeSelectList()}initialLoadComplete(){this.initialLoad=!1}remotePageParams(e,t,i,a){return this.initialLoad||(this.progressiveLoad&&!i||!this.progressiveLoad&&!this.dataChanging)&&this.reset(!0),a.page=this.page,this.size&&(a.size=this.size),a}userSetPageToRow(e){return this.table.options.pagination&&(e=this.table.rowManager.findRow(e),e)?this.setPageToRow(e):Promise.reject()}userSetPageSize(e){return this.table.options.pagination?(this.setPageSize(e),this.setPage(1)):!1}scrollVertical(e,t){var i,a,n;!t&&!this.table.dataLoader.loading&&(i=this.table.rowManager.getElement(),a=i.scrollHeight-i.clientHeight-e,n=this.table.options.progressiveLoadScrollMargin||i.clientHeight*2,a<n&&this.nextPage().catch(()=>{}))}restOnRenderBefore(e,t){return t||this.mode==="local"&&this.reset(),e}rowsUpdated(){this.refreshData(!0,"all")}createElements(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))}generatePageSizeSelectList(){var e=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))e=this.table.options.paginationSizeSelector,this.pageSizes=e,this.pageSizes.indexOf(this.size)==-1&&e.unshift(this.size);else if(this.pageSizes.indexOf(this.size)==-1){e=[];for(let t=1;t<5;t++)e.push(this.size*t);this.pageSizes=e}else e=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);e.forEach(t=>{var i=document.createElement("option");i.value=t,t===!0?this.langBind("pagination|all",function(a){i.innerHTML=a}):i.innerHTML=t,this.pageSizeSelect.appendChild(i)}),this.pageSizeSelect.value=this.size}}initializePageCounter(){var e=this.table.options.paginationCounter,t=null;e&&(typeof e=="function"?t=e:t=gn.pageCounters[e],t?(this.pageCounter=t,this.pageCounterElement=document.createElement("span"),this.pageCounterElement.classList.add("tabulator-page-counter")):console.warn("Pagination Error - No such page counter found: ",e))}initializePaginator(e){var t,i;e||(this.langBind("pagination|first",a=>{this.firstBut.innerHTML=a}),this.langBind("pagination|first_title",a=>{this.firstBut.setAttribute("aria-label",a),this.firstBut.setAttribute("title",a)}),this.langBind("pagination|prev",a=>{this.prevBut.innerHTML=a}),this.langBind("pagination|prev_title",a=>{this.prevBut.setAttribute("aria-label",a),this.prevBut.setAttribute("title",a)}),this.langBind("pagination|next",a=>{this.nextBut.innerHTML=a}),this.langBind("pagination|next_title",a=>{this.nextBut.setAttribute("aria-label",a),this.nextBut.setAttribute("title",a)}),this.langBind("pagination|last",a=>{this.lastBut.innerHTML=a}),this.langBind("pagination|last_title",a=>{this.lastBut.setAttribute("aria-label",a),this.lastBut.setAttribute("title",a)}),this.firstBut.addEventListener("click",()=>{this.setPage(1)}),this.prevBut.addEventListener("click",()=>{this.previousPage()}),this.nextBut.addEventListener("click",()=>{this.nextPage()}),this.lastBut.addEventListener("click",()=>{this.setPage(this.max)}),this.table.options.paginationElement&&(this.element=this.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),this.langBind("pagination|page_size",a=>{this.pageSizeSelect.setAttribute("aria-label",a),this.pageSizeSelect.setAttribute("title",a),t.innerHTML=a}),this.element.appendChild(t),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.addEventListener("change",a=>{this.setPageSize(this.pageSizeSelect.value=="true"?!0:this.pageSizeSelect.value),this.setPage(1)})),this.element.appendChild(this.firstBut),this.element.appendChild(this.prevBut),this.element.appendChild(this.pagesElement),this.element.appendChild(this.nextBut),this.element.appendChild(this.lastBut),this.table.options.paginationElement||(this.table.options.paginationCounter&&(this.table.options.paginationCounterElement?this.table.options.paginationCounterElement instanceof HTMLElement?this.table.options.paginationCounterElement.appendChild(this.pageCounterElement):typeof this.table.options.paginationCounterElement=="string"&&(i=document.querySelector(this.table.options.paginationCounterElement),i?i.appendChild(this.pageCounterElement):console.warn("Pagination Error - Unable to find element matching paginationCounterElement selector:",this.table.options.paginationCounterElement)):this.footerAppend(this.pageCounterElement)),this.footerAppend(this.element)),this.page=this.table.options.paginationInitialPage,this.count=this.table.options.paginationButtonCount),this.mode=this.table.options.paginationMode}initializeProgressive(e){this.initializePaginator(!0),this.mode="progressive_"+e,this.progressiveLoad=!0}trackChanges(){this.dispatch("page-changed")}setMaxRows(e){e?this.max=this.size===!0?1:Math.ceil(e/this.size):this.max=1,this.page>this.max&&(this.page=this.max)}reset(e){this.initialLoad||(this.mode=="local"||e)&&(this.page=1,this.trackChanges())}setMaxPage(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())}setPage(e){switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return e=parseInt(e),e>0&&e<=this.max||this.mode!=="local"?(this.page=e,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Requested page is out of range of 1 - "+this.max+":",e),Promise.reject())}setPageToRow(e){var t=this.displayRows(-1),i=t.indexOf(e);if(i>-1){var a=this.size===!0?1:Math.ceil((i+1)/this.size);return this.setPage(a)}else return console.warn("Pagination Error - Requested row is not visible"),Promise.reject()}setPageSize(e){e!==!0&&(e=parseInt(e)),e>0&&(this.size=e,this.dispatchExternal("pageSizeChanged",e)),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.trackChanges()}_setPageCounter(e,t,i){var a;if(this.pageCounter)switch(this.mode==="remote"&&(t=this.size,i=(this.page-1)*this.size+1,e=this.remoteRowCountEstimate),a=this.pageCounter.call(this,t,i,this.page,e,this.max),typeof a){case"object":if(a instanceof Node){for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.pageCounterElement.firstChild);this.pageCounterElement.appendChild(a)}else this.pageCounterElement.innerHTML="",a!=null&&console.warn("Page Counter Error - Page Counter has returned a type of object, the only valid page counter object return is an instance of Node, the page counter returned:",a);break;case"undefined":this.pageCounterElement.innerHTML="";break;default:this.pageCounterElement.innerHTML=a}}_setPageButtons(){let e=Math.floor((this.count-1)/2),t=Math.ceil((this.count-1)/2),i=this.max-this.page+e+1<this.count?this.max-this.count+1:Math.max(this.page-e,1),a=this.page<=t?Math.min(this.count,this.max):Math.min(this.page+t,this.max);for(;this.pagesElement.firstChild;)this.pagesElement.removeChild(this.pagesElement.firstChild);this.page==1?(this.firstBut.disabled=!0,this.prevBut.disabled=!0):(this.firstBut.disabled=!1,this.prevBut.disabled=!1),this.page==this.max?(this.lastBut.disabled=!0,this.nextBut.disabled=!0):(this.lastBut.disabled=!1,this.nextBut.disabled=!1);for(let n=i;n<=a;n++)n>0&&n<=this.max&&this.pagesElement.appendChild(this._generatePageButton(n));this.footerRedraw()}_generatePageButton(e){var t=document.createElement("button");return t.classList.add("tabulator-page"),e==this.page&&t.classList.add("active"),t.setAttribute("type","button"),t.setAttribute("role","button"),this.langBind("pagination|page_title",i=>{t.setAttribute("aria-label",i+" "+e),t.setAttribute("title",i+" "+e)}),t.setAttribute("data-page",e),t.textContent=e,t.addEventListener("click",i=>{this.setPage(e)}),t}previousPage(){return this.page>1?(this.page--,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Previous page would be less than page 1:",0),Promise.reject())}nextPage(){return this.page<this.max?(this.page++,this.trackChanges(),this.trigger()):(this.progressiveLoad||console.warn("Pagination Error - Next page would be greater than maximum page of "+this.max+":",this.max+1),Promise.reject())}getPage(){return this.page}getPageMax(){return this.max}getPageSize(e){return this.size}getMode(){return this.mode}getRows(e){var t=0,i,a,n,r,l=e.filter(h=>h.type==="row");if(this.mode=="local"){i=[],this.setMaxRows(e.length),this.size===!0?(a=0,n=e.length):(a=this.size*(this.page-1),n=a+parseInt(this.size)),this._setPageButtons();for(let h=a;h<n;h++){let d=e[h];d&&(i.push(d),d.type==="row"&&(r||(r=d),t++))}return this._setPageCounter(l.length,t,r?l.indexOf(r)+1:0),i}else return this._setPageButtons(),this._setPageCounter(l.length),e.slice(0)}trigger(){var e;switch(this.mode){case"local":return e=this.table.rowManager.scrollLeft,this.refreshData(),this.table.rowManager.scrollHorizontal(e),this.dispatchExternal("pageLoaded",this.getPage()),Promise.resolve();case"remote":return this.dataChanging=!0,this.reloadData(null).finally(()=>{this.dataChanging=!1});case"progressive_load":case"progressive_scroll":return this.reloadData(null,!0);default:return console.warn("Pagination Error - no such pagination mode:",this.mode),Promise.reject()}}_parseRemoteData(e){var t,i;if(typeof e.last_page>"u"&&console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").last_page||"last_page")+"' property"),e.data)if(this.max=parseInt(e.last_page)||1,this.remoteRowCountEstimate=typeof e.last_row<"u"?e.last_row:e.last_page*this.size-(this.page==e.last_page?this.size-e.data.length:0),this.progressiveLoad){switch(this.mode){case"progressive_load":this.page==1?this.table.rowManager.setData(e.data,!1,this.page==1):this.table.rowManager.addRows(e.data),this.page<this.max&&setTimeout(()=>{this.nextPage()},this.table.options.progressiveLoadDelay);break;case"progressive_scroll":e=this.page===1?e.data:this.table.rowManager.getData().concat(e.data),this.table.rowManager.setData(e,this.page!==1,this.page==1),t=this.table.options.progressiveLoadScrollMargin||this.table.rowManager.element.clientHeight*2,this.table.rowManager.element.scrollHeight<=this.table.rowManager.element.clientHeight+t&&this.page<this.max&&setTimeout(()=>{this.nextPage()});break}return!1}else{if(this.page>this.max&&(console.warn("Remote Pagination Error - Server returned last page value lower than the current page"),i=this.options("paginationOutOfRange"),i))return this.setPage(typeof i=="function"?i.call(this,this.page,this.max):i);this.dispatchExternal("pageLoaded",this.getPage())}else console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").data||"data")+"' property");return e.data}footerRedraw(){var e=this.table.footerManager.containerElement;Math.ceil(e.clientWidth)-e.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(e.clientWidth)-e.scrollWidth<0&&(this.pagesElement.style.display="none"))}};E(gn,"moduleName","page"),E(gn,"pageCounters",LI);let B9=gn;var EI={local:function(o,e){var t=localStorage.getItem(o+"-"+e);return t?JSON.parse(t):!1},cookie:function(o,e){var t=document.cookie,i=o+"-"+e,a=t.indexOf(i+"="),n,r;return a>-1&&(t=t.slice(a),n=t.indexOf(";"),n>-1&&(t=t.slice(0,n)),r=t.replace(i+"=","")),r?JSON.parse(r):!1}},SI={local:function(o,e,t){localStorage.setItem(o+"-"+e,JSON.stringify(t))},cookie:function(o,e,t){var i=new Date;i.setDate(i.getDate()+1e4),document.cookie=o+"-"+e+"="+JSON.stringify(t)+"; expires="+i.toUTCString()}};const le=class le extends q{constructor(e){super(e),this.mode="",this.id="",this.defWatcherBlock=!1,this.config={},this.readFunc=!1,this.writeFunc=!1,this.registerTableOption("persistence",!1),this.registerTableOption("persistenceID",""),this.registerTableOption("persistenceMode",!0),this.registerTableOption("persistenceReaderFunc",!1),this.registerTableOption("persistenceWriterFunc",!1)}localStorageTest(){var e="_tabulator_test";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}initialize(){if(this.table.options.persistence){var e=this.table.options.persistenceMode,t=this.table.options.persistenceID,i;this.mode=e!==!0?e:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc?typeof this.table.options.persistenceReaderFunc=="function"?this.readFunc=this.table.options.persistenceReaderFunc:le.readers[this.table.options.persistenceReaderFunc]?this.readFunc=le.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):le.readers[this.mode]?this.readFunc=le.readers[this.mode]:console.warn("Persistence Read Error - invalid reader set",this.mode),this.table.options.persistenceWriterFunc?typeof this.table.options.persistenceWriterFunc=="function"?this.writeFunc=this.table.options.persistenceWriterFunc:le.writers[this.table.options.persistenceWriterFunc]?this.writeFunc=le.writers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):le.writers[this.mode]?this.writeFunc=le.writers[this.mode]:console.warn("Persistence Write Error - invalid writer set",this.mode),this.id="tabulator-"+(t||this.table.element.getAttribute("id")||""),this.config={sort:this.table.options.persistence===!0||this.table.options.persistence.sort,filter:this.table.options.persistence===!0||this.table.options.persistence.filter,headerFilter:this.table.options.persistence===!0||this.table.options.persistence.headerFilter,group:this.table.options.persistence===!0||this.table.options.persistence.group,page:this.table.options.persistence===!0||this.table.options.persistence.page,columns:this.table.options.persistence===!0?["title","width","visible"]:this.table.options.persistence.columns},this.config.page&&(i=this.retrieveData("page"),i&&(typeof i.paginationSize<"u"&&(this.config.page===!0||this.config.page.size)&&(this.table.options.paginationSize=i.paginationSize),typeof i.paginationInitialPage<"u"&&(this.config.page===!0||this.config.page.page)&&(this.table.options.paginationInitialPage=i.paginationInitialPage))),this.config.group&&(i=this.retrieveData("group"),i&&(typeof i.groupBy<"u"&&(this.config.group===!0||this.config.group.groupBy)&&(this.table.options.groupBy=i.groupBy),typeof i.groupStartOpen<"u"&&(this.config.group===!0||this.config.group.groupStartOpen)&&(this.table.options.groupStartOpen=i.groupStartOpen),typeof i.groupHeader<"u"&&(this.config.group===!0||this.config.group.groupHeader)&&(this.table.options.groupHeader=i.groupHeader))),this.config.columns&&(this.table.options.columns=this.load("columns",this.table.options.columns),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-show",this.save.bind(this,"columns")),this.subscribe("column-hide",this.save.bind(this,"columns")),this.subscribe("column-moved",this.save.bind(this,"columns"))),this.subscribe("table-built",this.tableBuilt.bind(this),0),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("filter-changed",this.eventSave.bind(this,"filter")),this.subscribe("filter-changed",this.eventSave.bind(this,"headerFilter")),this.subscribe("sort-changed",this.eventSave.bind(this,"sort")),this.subscribe("group-changed",this.eventSave.bind(this,"group")),this.subscribe("page-changed",this.eventSave.bind(this,"page")),this.subscribe("column-resized",this.eventSave.bind(this,"columns")),this.subscribe("column-width",this.eventSave.bind(this,"columns")),this.subscribe("layout-refreshed",this.eventSave.bind(this,"columns"))}this.registerTableFunction("getColumnLayout",this.getColumnLayout.bind(this)),this.registerTableFunction("setColumnLayout",this.setColumnLayout.bind(this))}eventSave(e){this.config[e]&&this.save(e)}tableBuilt(){var e,t,i;this.config.sort&&(e=this.load("sort"),e&&(this.table.options.initialSort=e)),this.config.filter&&(t=this.load("filter"),t&&(this.table.options.initialFilter=t)),this.config.headerFilter&&(i=this.load("headerFilter"),i&&(this.table.options.initialHeaderFilter=i))}tableRedraw(e){e&&this.config.columns&&this.save("columns")}getColumnLayout(){return this.parseColumns(this.table.columnManager.getColumns())}setColumnLayout(e){return this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns,e,!0)),!0}initializeColumn(e){var t,i;this.config.columns&&(this.defWatcherBlock=!0,t=e.getDefinition(),i=this.config.columns===!0?Object.keys(t):this.config.columns,i.forEach(a=>{var n=Object.getOwnPropertyDescriptor(t,a),r=t[a];n&&Object.defineProperty(t,a,{set:l=>{r=l,this.defWatcherBlock||this.save("columns"),n.set&&n.set(l)},get:()=>(n.get&&n.get(),r)})}),this.defWatcherBlock=!1)}load(e,t){var i=this.retrieveData(e);return t&&(i=i?this.mergeDefinition(t,i):t),i}retrieveData(e){return this.readFunc?this.readFunc(this.id,e):!1}mergeDefinition(e,t,i){var a=[];return t=t||[],t.forEach((n,r)=>{var l=this._findColumn(e,n),h;l&&(i?h=Object.keys(n):this.config.columns===!0||this.config.columns==null?(h=Object.keys(l),h.push("width")):h=this.config.columns,h.forEach(d=>{d!=="columns"&&typeof n[d]<"u"&&(l[d]=n[d])}),l.columns&&(l.columns=this.mergeDefinition(l.columns,n.columns)),a.push(l))}),e.forEach((n,r)=>{var l=this._findColumn(t,n);l||(a.length>r?a.splice(r,0,n):a.push(n))}),a}_findColumn(e,t){var i=t.columns?"group":t.field?"field":"object";return e.find(function(a){switch(i){case"group":return a.title===t.title&&a.columns.length===t.columns.length;case"field":return a.field===t.field;case"object":return a===t}})}save(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"headerFilter":t=this.table.modules.filter.getHeaderFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)}validateSorters(e){return e.forEach(function(t){t.column=t.field,delete t.field}),e}getGroupConfig(){var e={};return this.config.group&&((this.config.group===!0||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(this.config.group===!0||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(this.config.group===!0||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e}getPageConfig(){var e={};return this.config.page&&((this.config.page===!0||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(this.config.page===!0||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e}parseColumns(e){var t=[],i=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(a=>{var n={},r=a.getDefinition(),l;a.isGroup?(n.title=r.title,n.columns=this.parseColumns(a.getColumns())):(n.field=a.getField(),this.config.columns===!0||this.config.columns==null?(l=Object.keys(r),l.push("width"),l.push("visible")):l=this.config.columns,l.forEach(h=>{switch(h){case"width":n.width=a.getWidth();break;case"visible":n.visible=a.visible;break;default:typeof r[h]!="function"&&i.indexOf(h)===-1&&(n[h]=r[h])}})),t.push(n)}),t}};E(le,"moduleName","persistence"),E(le,"moduleInitOrder",-10),E(le,"readers",EI),E(le,"writers",SI);let F9=le;var L9;let II=(L9=class extends q{constructor(e){super(e),this.columnSubscribers={},this.registerTableOption("rowContextPopup",!1),this.registerTableOption("rowClickPopup",!1),this.registerTableOption("rowDblClickPopup",!1),this.registerTableOption("groupContextPopup",!1),this.registerTableOption("groupClickPopup",!1),this.registerTableOption("groupDblClickPopup",!1),this.registerColumnOption("headerContextPopup"),this.registerColumnOption("headerClickPopup"),this.registerColumnOption("headerDblClickPopup"),this.registerColumnOption("headerPopup"),this.registerColumnOption("headerPopupIcon"),this.registerColumnOption("contextPopup"),this.registerColumnOption("clickPopup"),this.registerColumnOption("dblClickPopup"),this.registerComponentFunction("cell","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("column","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("row","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("group","popup",this._componentPopupCall.bind(this))}initialize(){this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}_componentPopupCall(e,t,i){this.loadPopupEvent(t,null,e,i)}initializeRowWatchers(){this.table.options.rowContextPopup&&(this.subscribe("row-contextmenu",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup)),this.table.on("rowTapHold",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup))),this.table.options.rowClickPopup&&this.subscribe("row-click",this.loadPopupEvent.bind(this,this.table.options.rowClickPopup)),this.table.options.rowDblClickPopup&&this.subscribe("row-dblclick",this.loadPopupEvent.bind(this,this.table.options.rowDblClickPopup))}initializeGroupWatchers(){this.table.options.groupContextPopup&&(this.subscribe("group-contextmenu",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup)),this.table.on("groupTapHold",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup))),this.table.options.groupClickPopup&&this.subscribe("group-click",this.loadPopupEvent.bind(this,this.table.options.groupClickPopup)),this.table.options.groupDblClickPopup&&this.subscribe("group-dblclick",this.loadPopupEvent.bind(this,this.table.options.groupDblClickPopup))}initializeColumn(e){var t=e.definition;t.headerContextPopup&&!this.columnSubscribers.headerContextPopup&&(this.columnSubscribers.headerContextPopup=this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextPopup),this.table.on("headerTapHold",this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"))),t.headerClickPopup&&!this.columnSubscribers.headerClickPopup&&(this.columnSubscribers.headerClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerClickPopup"),this.subscribe("column-click",this.columnSubscribers.headerClickPopup)),t.headerDblClickPopup&&!this.columnSubscribers.headerDblClickPopup&&(this.columnSubscribers.headerDblClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerDblClickPopup"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickPopup)),t.headerPopup&&this.initializeColumnHeaderPopup(e),t.contextPopup&&!this.columnSubscribers.contextPopup&&(this.columnSubscribers.contextPopup=this.loadPopupTableCellEvent.bind(this,"contextPopup"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextPopup),this.table.on("cellTapHold",this.loadPopupTableCellEvent.bind(this,"contextPopup"))),t.clickPopup&&!this.columnSubscribers.clickPopup&&(this.columnSubscribers.clickPopup=this.loadPopupTableCellEvent.bind(this,"clickPopup"),this.subscribe("cell-click",this.columnSubscribers.clickPopup)),t.dblClickPopup&&!this.columnSubscribers.dblClickPopup&&(this.columnSubscribers.dblClickPopup=this.loadPopupTableCellEvent.bind(this,"dblClickPopup"),this.subscribe("cell-click",this.columnSubscribers.dblClickPopup))}initializeColumnHeaderPopup(e){var t=e.definition.headerPopupIcon,i;i=document.createElement("span"),i.classList.add("tabulator-header-popup-button"),t?(typeof t=="function"&&(t=t(e.getComponent())),t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t):i.innerHTML="⋮",i.addEventListener("click",a=>{a.stopPropagation(),a.preventDefault(),this.loadPopupEvent(e.definition.headerPopup,a,e)}),e.titleElement.insertBefore(i,e.titleElement.firstChild)}loadPopupTableCellEvent(e,t,i){i._cell&&(i=i._cell),i.column.definition[e]&&this.loadPopupEvent(i.column.definition[e],t,i)}loadPopupTableColumnEvent(e,t,i){i._column&&(i=i._column),i.definition[e]&&this.loadPopupEvent(i.definition[e],t,i)}loadPopupEvent(e,t,i,a){var n;function r(l){n=l}i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent(),r):e,this.loadPopup(t,i,e,n,a)}loadPopup(e,t,i,a,n){var r=!(e instanceof MouseEvent),l,h;i instanceof HTMLElement?l=i:(l=document.createElement("div"),l.innerHTML=i),l.classList.add("tabulator-popup"),l.addEventListener("click",d=>{d.stopPropagation()}),r||e.preventDefault(),h=this.popup(l),typeof a=="function"&&h.renderCallback(a),e?h.show(e):h.show(t.getElement(),n||"center"),h.hideOnBlur(()=>{this.dispatchExternal("popupClosed",t.getComponent())}),this.dispatchExternal("popupOpened",t.getComponent())}},E(L9,"moduleName","popup"),L9);class zx extends q{constructor(e){super(e),this.element=!1,this.manualBlock=!1,this.beforeprintEventHandler=null,this.afterprintEventHandler=null,this.registerTableOption("printAsHtml",!1),this.registerTableOption("printFormatter",!1),this.registerTableOption("printHeader",!1),this.registerTableOption("printFooter",!1),this.registerTableOption("printStyled",!0),this.registerTableOption("printRowRange","visible"),this.registerTableOption("printConfig",{}),this.registerColumnOption("print"),this.registerColumnOption("titlePrint")}initialize(){this.table.options.printAsHtml&&(this.beforeprintEventHandler=this.replaceTable.bind(this),this.afterprintEventHandler=this.cleanup.bind(this),window.addEventListener("beforeprint",this.beforeprintEventHandler),window.addEventListener("afterprint",this.afterprintEventHandler),this.subscribe("table-destroy",this.destroy.bind(this))),this.registerTableFunction("print",this.printFullscreen.bind(this))}destroy(){this.table.options.printAsHtml&&(window.removeEventListener("beforeprint",this.beforeprintEventHandler),window.removeEventListener("afterprint",this.afterprintEventHandler))}replaceTable(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.generateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))}cleanup(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")}printFullscreen(e,t,i){var a=window.scrollX,n=window.scrollY,r=document.createElement("div"),l=document.createElement("div"),h=this.table.modules.export.generateTable(typeof i<"u"?i:this.table.options.printConfig,typeof t<"u"?t:this.table.options.printStyled,e||this.table.options.printRowRange,"print"),d,u;this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(r.classList.add("tabulator-print-header"),d=typeof this.table.options.printHeader=="function"?this.table.options.printHeader.call(this.table):this.table.options.printHeader,typeof d=="string"?r.innerHTML=d:r.appendChild(d),this.element.appendChild(r)),this.element.appendChild(h),this.table.options.printFooter&&(l.classList.add("tabulator-print-footer"),u=typeof this.table.options.printFooter=="function"?this.table.options.printFooter.call(this.table):this.table.options.printFooter,typeof u=="string"?l.innerHTML=u:l.appendChild(u),this.element.appendChild(l)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,h),window.print(),this.cleanup(),window.scrollTo(a,n),this.manualBlock=!1}}E(zx,"moduleName","print");class Rx extends q{constructor(e){super(e),this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0,this.registerTableOption("reactiveData",!1)}initialize(){this.table.options.reactiveData&&(this.subscribe("cell-value-save-before",this.block.bind(this,"cellsave")),this.subscribe("cell-value-save-after",this.unblock.bind(this,"cellsave")),this.subscribe("row-data-save-before",this.block.bind(this,"rowsave")),this.subscribe("row-data-save-after",this.unblock.bind(this,"rowsave")),this.subscribe("row-data-init-after",this.watchRow.bind(this)),this.subscribe("data-processing",this.watchData.bind(this)),this.subscribe("table-destroy",this.unwatchData.bind(this)))}watchData(e){var t=this,i;this.currentVersion++,i=this.currentVersion,this.unwatchData(),this.data=e,this.origFuncs.push=e.push,Object.defineProperty(this.data,"push",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n;return!t.blocked&&i===t.currentVersion&&(t.block("data-push"),a.forEach(r=>{t.table.rowManager.addRowActual(r,!1)}),n=t.origFuncs.push.apply(e,arguments),t.unblock("data-push")),n}}),this.origFuncs.unshift=e.unshift,Object.defineProperty(this.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n;return!t.blocked&&i===t.currentVersion&&(t.block("data-unshift"),a.forEach(r=>{t.table.rowManager.addRowActual(r,!0)}),n=t.origFuncs.unshift.apply(e,arguments),t.unblock("data-unshift")),n}}),this.origFuncs.shift=e.shift,Object.defineProperty(this.data,"shift",{enumerable:!1,configurable:!0,value:function(){var a,n;return!t.blocked&&i===t.currentVersion&&(t.block("data-shift"),t.data.length&&(a=t.table.rowManager.getRowFromDataObject(t.data[0]),a&&a.deleteActual()),n=t.origFuncs.shift.call(e),t.unblock("data-shift")),n}}),this.origFuncs.pop=e.pop,Object.defineProperty(this.data,"pop",{enumerable:!1,configurable:!0,value:function(){var a,n;return!t.blocked&&i===t.currentVersion&&(t.block("data-pop"),t.data.length&&(a=t.table.rowManager.getRowFromDataObject(t.data[t.data.length-1]),a&&a.deleteActual()),n=t.origFuncs.pop.call(e),t.unblock("data-pop")),n}}),this.origFuncs.splice=e.splice,Object.defineProperty(this.data,"splice",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n=a[0]<0?e.length+a[0]:a[0],r=a[1],l=a[2]?a.slice(2):!1,h,d;if(!t.blocked&&i===t.currentVersion){if(t.block("data-splice"),l&&(h=e[n]?t.table.rowManager.getRowFromDataObject(e[n]):!1,h?l.forEach(p=>{t.table.rowManager.addRowActual(p,!0,h,!0)}):(l=l.slice().reverse(),l.forEach(p=>{t.table.rowManager.addRowActual(p,!0,!1,!0)}))),r!==0){var u=e.slice(n,typeof a[1]>"u"?a[1]:n+r);u.forEach((p,y)=>{var f=t.table.rowManager.getRowFromDataObject(p);f&&f.deleteActual(y!==u.length-1)})}(l||r!==0)&&t.table.rowManager.reRenderInPosition(),d=t.origFuncs.splice.apply(e,arguments),t.unblock("data-splice")}return d}})}unwatchData(){if(this.data!==!1)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})}watchRow(e){var t=e.getData();for(var i in t)this.watchKey(e,t,i);this.table.options.dataTree&&this.watchTreeChildren(e)}watchTreeChildren(e){var t=this,i=e.getData()[this.table.options.dataTreeChildField],a={};i&&(a.push=i.push,Object.defineProperty(i,"push",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-push");var n=a.push.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-push")}return n}}),a.unshift=i.unshift,Object.defineProperty(i,"unshift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-unshift");var n=a.unshift.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-unshift")}return n}}),a.shift=i.shift,Object.defineProperty(i,"shift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-shift");var n=a.shift.call(i);this.rebuildTree(e),t.unblock("tree-shift")}return n}}),a.pop=i.pop,Object.defineProperty(i,"pop",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-pop");var n=a.pop.call(i);this.rebuildTree(e),t.unblock("tree-pop")}return n}}),a.splice=i.splice,Object.defineProperty(i,"splice",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-splice");var n=a.splice.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-splice")}return n}}))}rebuildTree(e){this.table.modules.dataTree.initializeRow(e),this.table.modules.dataTree.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)}watchKey(e,t,i){var a=this,n=Object.getOwnPropertyDescriptor(t,i),r=t[i],l=this.currentVersion;Object.defineProperty(t,i,{set:h=>{if(r=h,!a.blocked&&l===a.currentVersion){a.block("key");var d={};d[i]=h,e.updateData(d),a.unblock("key")}n.set&&n.set(h)},get:()=>(n.get&&n.get(),r)})}unwatchRow(e){var t=e.getData();for(var i in t)Object.defineProperty(t,i,{value:t[i]})}block(e){this.blocked||(this.blocked=e)}unblock(e){this.blocked===e&&(this.blocked=!1)}}E(Rx,"moduleName","reactiveData");class Hx extends q{constructor(e){super(e),this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.latestX=!1,this.handle=null,this.initialNextColumn=null,this.nextColumn=null,this.initialized=!1,this.registerColumnOption("resizable",!0),this.registerTableOption("resizableColumnFit",!1),this.registerTableOption("resizableColumnGuide",!1)}initialize(){this.subscribe("column-rendered",this.layoutColumnHeader.bind(this))}initializeEventWatchers(){this.initialized||(this.subscribe("cell-rendered",this.layoutCellHandles.bind(this)),this.subscribe("cell-delete",this.deInitializeComponent.bind(this)),this.subscribe("cell-height",this.resizeHandle.bind(this)),this.subscribe("column-moved",this.columnLayoutUpdated.bind(this)),this.subscribe("column-hide",this.deInitializeColumn.bind(this)),this.subscribe("column-show",this.columnLayoutUpdated.bind(this)),this.subscribe("column-width",this.columnWidthUpdated.bind(this)),this.subscribe("column-delete",this.deInitializeComponent.bind(this)),this.subscribe("column-height",this.resizeHandle.bind(this)),this.initialized=!0)}layoutCellHandles(e){e.row.type==="row"&&(this.deInitializeComponent(e),this.initializeColumn("cell",e,e.column,e.element))}layoutColumnHeader(e){e.definition.resizable&&(this.initializeEventWatchers(),this.deInitializeComponent(e),this.initializeColumn("header",e,e,e.element))}columnLayoutUpdated(e){var t=e.prevColumn();this.reinitializeColumn(e),t&&this.reinitializeColumn(t)}columnWidthUpdated(e){e.modules.frozen&&(this.table.modules.frozenColumns.leftColumns.includes(e)?this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.reinitializeColumn(t)}):this.table.modules.frozenColumns.rightColumns.includes(e)&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.reinitializeColumn(t)}))}frozenColumnOffset(e){var t=!1;return e.modules.frozen&&(t=e.modules.frozen.marginValue,e.modules.frozen.position==="left"?t+=e.getWidth()-3:t&&(t-=3)),t!==!1?t+"px":!1}reinitializeColumn(e){var t=this.frozenColumnOffset(e);e.cells.forEach(i=>{i.modules.resize&&i.modules.resize.handleEl&&(t&&(i.modules.resize.handleEl.style[e.modules.frozen.position]=t,i.modules.resize.handleEl.style["z-index"]=11),i.element.after(i.modules.resize.handleEl))}),e.modules.resize&&e.modules.resize.handleEl&&(t&&(e.modules.resize.handleEl.style[e.modules.frozen.position]=t),e.element.after(e.modules.resize.handleEl))}initializeColumn(e,t,i,a){var n=this,r=!1,l=i.definition.resizable,h={},d=i.getLastColumn();if(e==="header"&&(r=i.definition.formatter=="textarea"||i.definition.variableHeight,h={variableHeight:r}),(l===!0||l==e)&&this._checkResizability(d)){var u=document.createElement("span");u.className="tabulator-col-resize-handle",u.addEventListener("click",function(y){y.stopPropagation()});var p=function(y){n.startColumn=i,n.initialNextColumn=n.nextColumn=d.nextColumn(),n._mouseDown(y,d,u)};u.addEventListener("mousedown",p),u.addEventListener("touchstart",p,{passive:!0}),u.addEventListener("dblclick",y=>{var f=d.getWidth();y.stopPropagation(),d.reinitializeWidth(!0),f!==d.getWidth()&&(n.dispatch("column-resized",d),n.dispatchExternal("columnResized",d.getComponent()))}),i.modules.frozen&&(u.style.position="sticky",u.style[i.modules.frozen.position]=this.frozenColumnOffset(i)),h.handleEl=u,a.parentNode&&i.visible&&a.after(u)}t.modules.resize=h}deInitializeColumn(e){this.deInitializeComponent(e),e.cells.forEach(t=>{this.deInitializeComponent(t)})}deInitializeComponent(e){var t;e.modules.resize&&(t=e.modules.resize.handleEl,t&&t.parentElement&&t.parentElement.removeChild(t))}resizeHandle(e,t){e.modules.resize&&e.modules.resize.handleEl&&(e.modules.resize.handleEl.style.height=t)}resize(e,t){var i=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,a=i-this.startX,n=i-this.latestX,r,l;if(this.latestX=i,this.table.rtl&&(a=-a,n=-n),r=t.width==t.minWidth||t.width==t.maxWidth,t.setWidth(this.startWidth+a),l=t.width==t.minWidth||t.width==t.maxWidth,n<0&&(this.nextColumn=this.initialNextColumn),this.table.options.resizableColumnFit&&this.nextColumn&&!(r&&l)){let h=this.nextColumn.getWidth();n>0&&h<=this.nextColumn.minWidth&&(this.nextColumn=this.nextColumn.nextColumn()),this.nextColumn&&this.nextColumn.setWidth(this.nextColumn.getWidth()-n)}this.table.columnManager.rerenderColumns(!0),!this.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}calcGuidePosition(e,t,i){var a=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,n=i.getBoundingClientRect().x-this.table.element.getBoundingClientRect().x,r=this.table.element.getBoundingClientRect().x,l=t.element.getBoundingClientRect().left-r,h=a-this.startX,d=Math.max(n+h,l+t.minWidth);return t.maxWidth&&(d=Math.min(d,l+t.maxWidth)),d}_checkResizability(e){return e.definition.resizable}_mouseDown(e,t,i){var a=this,n;this.dispatchExternal("columnResizing",t.getComponent()),a.table.options.resizableColumnGuide&&(n=document.createElement("span"),n.classList.add("tabulator-col-resize-guide"),a.table.element.appendChild(n),setTimeout(()=>{n.style.left=a.calcGuidePosition(e,t,i)+"px"})),a.table.element.classList.add("tabulator-block-select");function r(h){a.table.options.resizableColumnGuide?n.style.left=a.calcGuidePosition(h,t,i)+"px":a.resize(h,t)}function l(h){a.table.options.resizableColumnGuide&&(a.resize(h,t),n.remove()),a.startColumn.modules.edit&&(a.startColumn.modules.edit.blocked=!1),a.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",l),document.body.removeEventListener("mousemove",r),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",l),a.table.element.classList.remove("tabulator-block-select"),a.startWidth!==t.getWidth()&&(a.table.columnManager.verticalAlignHeaders(),a.dispatch("column-resized",t),a.dispatchExternal("columnResized",t.getComponent()))}e.stopPropagation(),a.startColumn.modules.edit&&(a.startColumn.modules.edit.blocked=!0),a.startX=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,a.latestX=a.startX,a.startWidth=t.getWidth(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",r,{passive:!0}),i.addEventListener("touchend",l)}}E(Hx,"moduleName","resizeColumns");class Ax extends q{constructor(e){super(e),this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null,this.registerTableOption("resizableRows",!1),this.registerTableOption("resizableRowGuide",!1)}initialize(){this.table.options.resizableRows&&this.subscribe("row-layout-after",this.initializeRow.bind(this))}initializeRow(e){var t=this,i=e.getElement(),a=document.createElement("div");a.className="tabulator-row-resize-handle";var n=document.createElement("div");n.className="tabulator-row-resize-handle prev",a.addEventListener("click",function(h){h.stopPropagation()});var r=function(h){t.startRow=e,t._mouseDown(h,e,a)};a.addEventListener("mousedown",r),a.addEventListener("touchstart",r,{passive:!0}),n.addEventListener("click",function(h){h.stopPropagation()});var l=function(h){var d=t.table.rowManager.prevDisplayRow(e);d&&(t.startRow=d,t._mouseDown(h,d,n))};n.addEventListener("mousedown",l),n.addEventListener("touchstart",l,{passive:!0}),i.appendChild(a),i.appendChild(n)}resize(e,t){t.setHeight(this.startHeight+((typeof e.screenY>"u"?e.touches[0].screenY:e.screenY)-this.startY))}calcGuidePosition(e,t,i){var a=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,n=i.getBoundingClientRect().y-this.table.element.getBoundingClientRect().y,r=this.table.element.getBoundingClientRect().y,l=t.element.getBoundingClientRect().top-r,h=a-this.startY;return Math.max(n+h,l)}_mouseDown(e,t,i){var a=this,n;a.dispatchExternal("rowResizing",t.getComponent()),a.table.options.resizableRowGuide&&(n=document.createElement("span"),n.classList.add("tabulator-row-resize-guide"),a.table.element.appendChild(n),setTimeout(()=>{n.style.top=a.calcGuidePosition(e,t,i)+"px"})),a.table.element.classList.add("tabulator-block-select");function r(h){a.table.options.resizableRowGuide?n.style.top=a.calcGuidePosition(h,t,i)+"px":a.resize(h,t)}function l(h){a.table.options.resizableRowGuide&&(a.resize(h,t),n.remove()),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",r),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",l),a.table.element.classList.remove("tabulator-block-select"),a.dispatchExternal("rowResized",t.getComponent())}e.stopPropagation(),a.startY=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,a.startHeight=t.getHeight(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",r,{passive:!0}),i.addEventListener("touchend",l)}}E(Ax,"moduleName","resizeRows");class Vx extends q{constructor(e){super(e),this.binding=!1,this.visibilityObserver=!1,this.resizeObserver=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1,this.visible=!1,this.initialized=!1,this.initialRedraw=!1,this.registerTableOption("autoResize",!0)}initialize(){if(this.table.options.autoResize){var e=this.table,t;this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),typeof IntersectionObserver<"u"&&typeof ResizeObserver<"u"&&e.rowManager.getRenderMode()==="virtual"?(this.initializeVisibilityObserver(),this.autoResize=!0,this.resizeObserver=new ResizeObserver(i=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var a=Math.floor(i[0].contentRect.height),n=Math.floor(i[0].contentRect.width);(this.tableHeight!=a||this.tableWidth!=n)&&(this.tableHeight=a,this.tableWidth=n,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),this.redrawTable())}}),this.resizeObserver.observe(e.element),t=window.getComputedStyle(e.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(i=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var a=Math.floor(i[0].contentRect.height),n=Math.floor(i[0].contentRect.width);(this.containerHeight!=a||this.containerWidth!=n)&&(this.containerHeight=a,this.containerWidth=n,this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth),this.redrawTable()}}),this.containerObserver.observe(this.table.element.parentNode)),this.subscribe("table-resize",this.tableResized.bind(this))):(this.binding=function(){(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell))&&(e.columnManager.rerenderColumns(!0),e.redraw())},window.addEventListener("resize",this.binding)),this.subscribe("table-destroy",this.clearBindings.bind(this))}}initializeVisibilityObserver(){this.visibilityObserver=new IntersectionObserver(e=>{this.visible=e[0].isIntersecting,this.initialized?this.visible&&(this.redrawTable(this.initialRedraw),this.initialRedraw=!1):(this.initialized=!0,this.initialRedraw=!this.visible)}),this.visibilityObserver.observe(this.table.element)}redrawTable(e){this.initialized&&this.visible&&(this.table.columnManager.rerenderColumns(!0),this.table.redraw(e))}tableResized(){this.table.rowManager.redraw()}clearBindings(){this.binding&&window.removeEventListener("resize",this.binding),this.resizeObserver&&this.resizeObserver.unobserve(this.table.element),this.visibilityObserver&&this.visibilityObserver.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)}}E(Vx,"moduleName","resizeTable");function TI(o,e,t){var i=document.createElement("div"),a=o.getRow()._row.modules.responsiveLayout;i.classList.add("tabulator-responsive-collapse-toggle"),i.innerHTML=`<svg class='tabulator-responsive-collapse-toggle-open' viewbox="0 0 24 24">
|
|
9
|
+
`)&&!a){i=0,t++;continue}e[t][i]+=r}return e}function uI(o){try{return JSON.parse(o)}catch(e){return console.warn("JSON Import Error - File contents is invalid JSON",e),Promise.reject()}}function pI(o){return o}function yI(o){var e=this.dependencyRegistry.lookup("XLSX"),t=e.read(o),i=t.Sheets[t.SheetNames[0]];return e.utils.sheet_to_json(i,{header:1})}var fI={csv:dI,json:uI,array:pI,xlsx:yI},$e;let mI=($e=class extends B{constructor(e){super(e),this.registerTableOption("importFormat"),this.registerTableOption("importReader","text"),this.registerTableOption("importHeaderTransform"),this.registerTableOption("importValueTransform"),this.registerTableOption("importDataValidator"),this.registerTableOption("importFileValidator")}initialize(){this.registerTableFunction("import",this.importFromFile.bind(this)),this.table.options.importFormat&&(this.subscribe("data-loading",this.loadDataCheck.bind(this),10),this.subscribe("data-load",this.loadData.bind(this),10))}loadDataCheck(e){return this.table.options.importFormat&&(typeof e=="string"||Array.isArray(e)&&e.length&&Array.isArray(e))}loadData(e,t,i,a,n){return this.importData(this.lookupImporter(),e).then(this.structureData.bind(this)).catch(r=>(console.error("Import Error:",r||"Unable to import data"),Promise.reject(r)))}lookupImporter(e){var t;return e||(e=this.table.options.importFormat),typeof e=="string"?t=$e.importers[e]:t=e,t||console.error("Import Error - Importer not found:",e),t}importFromFile(e,t,i){var a=this.lookupImporter(e);if(a)return this.pickFile(t,i).then(this.importData.bind(this,a)).then(this.structureData.bind(this)).then(this.mutateData.bind(this)).then(this.validateData.bind(this)).then(this.setData.bind(this)).catch(n=>(this.dispatch("import-error",n),this.dispatchExternal("importError",n),console.error("Import Error:",n||"Unable to import file"),this.table.dataLoader.alertError(),setTimeout(()=>{this.table.dataLoader.clearAlert()},3e3),Promise.reject(n)))}pickFile(e,t){return new Promise((i,a)=>{var n=document.createElement("input");n.type="file",n.accept=e,n.addEventListener("change",r=>{var l=n.files[0],h=new FileReader,d=this.validateFile(l);if(d===!0){switch(this.dispatch("import-importing",n.files),this.dispatchExternal("importImporting",n.files),t||this.table.options.importReader){case"buffer":h.readAsArrayBuffer(l);break;case"binary":h.readAsBinaryString(l);break;case"url":h.readAsDataURL(l);break;case"text":default:h.readAsText(l)}h.onload=u=>{i(h.result)},h.onerror=u=>{console.warn("File Load Error - Unable to read file"),a(u)}}else a(d)}),this.dispatch("import-choose"),this.dispatchExternal("importChoose"),n.click()})}importData(e,t){var i;return this.table.dataLoader.alertLoader(),new Promise((a,n)=>{setTimeout(()=>{i=e.call(this.table,t),i instanceof Promise||i?a(i):n()},10)})}structureData(e){var t=[];return Array.isArray(e)&&e.length&&Array.isArray(e[0])?(this.table.options.autoColumns?t=this.structureArrayToObject(e):t=this.structureArrayToColumns(e),t):e}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"import"))}):t=e,t}transformHeader(e){var t=[];if(this.table.options.importHeaderTransform)e.forEach(i=>{t.push(this.table.options.importHeaderTransform.call(this.table,i,e))});else return e;return t}transformData(e){var t=[];if(this.table.options.importValueTransform)e.forEach(i=>{t.push(this.table.options.importValueTransform.call(this.table,i,e))});else return e;return t}structureArrayToObject(e){var t=this.transformHeader(e.shift()),i=e.map(a=>{var n={};return a=this.transformData(a),t.forEach((r,l)=>{n[r]=a[l]}),n});return i}structureArrayToColumns(e){var t=[],i=this.transformHeader(e[0]),a=this.table.getColumns();return a[0]&&i[0]&&a[0].getDefinition().title===i[0]&&e.shift(),e.forEach(n=>{var r={};n=this.transformData(n),n.forEach((l,h)=>{var d=a[h];d&&(r[d.getField()]=l)}),t.push(r)}),t}validateFile(e){return this.table.options.importFileValidator?this.table.options.importFileValidator.call(this.table,e):!0}validateData(e){var t;return this.table.options.importDataValidator?(t=this.table.options.importDataValidator.call(this.table,e),t===!0?e:Promise.reject(t)):e}setData(e){return this.dispatch("import-imported",e),this.dispatchExternal("importImported",e),this.table.dataLoader.clearAlert(),this.table.setData(e)}},E($e,"moduleName","import"),E($e,"importers",fI),$e);class Tx extends B{constructor(e){super(e),this.eventMap={rowClick:"row-click",rowDblClick:"row-dblclick",rowContext:"row-contextmenu",rowMouseEnter:"row-mouseenter",rowMouseLeave:"row-mouseleave",rowMouseOver:"row-mouseover",rowMouseOut:"row-mouseout",rowMouseMove:"row-mousemove",rowMouseDown:"row-mousedown",rowMouseUp:"row-mouseup",rowTap:"row",rowDblTap:"row",rowTapHold:"row",cellClick:"cell-click",cellDblClick:"cell-dblclick",cellContext:"cell-contextmenu",cellMouseEnter:"cell-mouseenter",cellMouseLeave:"cell-mouseleave",cellMouseOver:"cell-mouseover",cellMouseOut:"cell-mouseout",cellMouseMove:"cell-mousemove",cellMouseDown:"cell-mousedown",cellMouseUp:"cell-mouseup",cellTap:"cell",cellDblTap:"cell",cellTapHold:"cell",headerClick:"column-click",headerDblClick:"column-dblclick",headerContext:"column-contextmenu",headerMouseEnter:"column-mouseenter",headerMouseLeave:"column-mouseleave",headerMouseOver:"column-mouseover",headerMouseOut:"column-mouseout",headerMouseMove:"column-mousemove",headerMouseDown:"column-mousedown",headerMouseUp:"column-mouseup",headerTap:"column",headerDblTap:"column",headerTapHold:"column",groupClick:"group-click",groupDblClick:"group-dblclick",groupContext:"group-contextmenu",groupMouseEnter:"group-mouseenter",groupMouseLeave:"group-mouseleave",groupMouseOver:"group-mouseover",groupMouseOut:"group-mouseout",groupMouseMove:"group-mousemove",groupMouseDown:"group-mousedown",groupMouseUp:"group-mouseup",groupTap:"group",groupDblTap:"group",groupTapHold:"group"},this.subscribers={},this.touchSubscribers={},this.columnSubscribers={},this.touchWatchers={row:{tap:null,tapDbl:null,tapHold:null},cell:{tap:null,tapDbl:null,tapHold:null},column:{tap:null,tapDbl:null,tapHold:null},group:{tap:null,tapDbl:null,tapHold:null}},this.registerColumnOption("headerClick"),this.registerColumnOption("headerDblClick"),this.registerColumnOption("headerContext"),this.registerColumnOption("headerMouseEnter"),this.registerColumnOption("headerMouseLeave"),this.registerColumnOption("headerMouseOver"),this.registerColumnOption("headerMouseOut"),this.registerColumnOption("headerMouseMove"),this.registerColumnOption("headerMouseDown"),this.registerColumnOption("headerMouseUp"),this.registerColumnOption("headerTap"),this.registerColumnOption("headerDblTap"),this.registerColumnOption("headerTapHold"),this.registerColumnOption("cellClick"),this.registerColumnOption("cellDblClick"),this.registerColumnOption("cellContext"),this.registerColumnOption("cellMouseEnter"),this.registerColumnOption("cellMouseLeave"),this.registerColumnOption("cellMouseOver"),this.registerColumnOption("cellMouseOut"),this.registerColumnOption("cellMouseMove"),this.registerColumnOption("cellMouseDown"),this.registerColumnOption("cellMouseUp"),this.registerColumnOption("cellTap"),this.registerColumnOption("cellDblTap"),this.registerColumnOption("cellTapHold")}initialize(){this.initializeExternalEvents(),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("cell-dblclick",this.cellContentsSelectionFixer.bind(this)),this.subscribe("scroll-horizontal",this.clearTouchWatchers.bind(this)),this.subscribe("scroll-vertical",this.clearTouchWatchers.bind(this))}clearTouchWatchers(){var e=Object.values(this.touchWatchers);e.forEach(t=>{for(let i in t)t[i]=null})}cellContentsSelectionFixer(e,t){var i;if(!(this.table.modExists("edit")&&this.table.modules.edit.currentCell===t)){e.preventDefault();try{document.selection?(i=document.body.createTextRange(),i.moveToElementText(t.getElement()),i.select()):window.getSelection&&(i=document.createRange(),i.selectNode(t.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(i))}catch{}}}initializeExternalEvents(){for(let e in this.eventMap)this.subscriptionChangeExternal(e,this.subscriptionChanged.bind(this,e))}subscriptionChanged(e,t){t?this.subscribers[e]||(this.eventMap[e].includes("-")?(this.subscribers[e]=this.handle.bind(this,e),this.subscribe(this.eventMap[e],this.subscribers[e])):this.subscribeTouchEvents(e)):this.eventMap[e].includes("-")?this.subscribers[e]&&!this.columnSubscribers[e]&&!this.subscribedExternal(e)&&(this.unsubscribe(this.eventMap[e],this.subscribers[e]),delete this.subscribers[e]):this.unsubscribeTouchEvents(e)}subscribeTouchEvents(e){var t=this.eventMap[e];this.touchSubscribers[t+"-touchstart"]||(this.touchSubscribers[t+"-touchstart"]=this.handleTouch.bind(this,t,"start"),this.touchSubscribers[t+"-touchend"]=this.handleTouch.bind(this,t,"end"),this.subscribe(t+"-touchstart",this.touchSubscribers[t+"-touchstart"]),this.subscribe(t+"-touchend",this.touchSubscribers[t+"-touchend"])),this.subscribers[e]=!0}unsubscribeTouchEvents(e){var t=!0,i=this.eventMap[e];if(this.subscribers[e]&&!this.subscribedExternal(e)){delete this.subscribers[e];for(let a in this.eventMap)this.eventMap[a]===i&&this.subscribers[a]&&(t=!1);t&&(this.unsubscribe(i+"-touchstart",this.touchSubscribers[i+"-touchstart"]),this.unsubscribe(i+"-touchend",this.touchSubscribers[i+"-touchend"]),delete this.touchSubscribers[i+"-touchstart"],delete this.touchSubscribers[i+"-touchend"])}}initializeColumn(e){var t=e.definition;for(let i in this.eventMap)t[i]&&(this.subscriptionChanged(i,!0),this.columnSubscribers[i]||(this.columnSubscribers[i]=[]),this.columnSubscribers[i].push(e))}handle(e,t,i){this.dispatchEvent(e,t,i)}handleTouch(e,t,i,a){var n=this.touchWatchers[e];switch(e==="column"&&(e="header"),t){case"start":n.tap=!0,clearTimeout(n.tapHold),n.tapHold=setTimeout(()=>{clearTimeout(n.tapHold),n.tapHold=null,n.tap=null,clearTimeout(n.tapDbl),n.tapDbl=null,this.dispatchEvent(e+"TapHold",i,a)},1e3);break;case"end":n.tap&&(n.tap=null,this.dispatchEvent(e+"Tap",i,a)),n.tapDbl?(clearTimeout(n.tapDbl),n.tapDbl=null,this.dispatchEvent(e+"DblTap",i,a)):n.tapDbl=setTimeout(()=>{clearTimeout(n.tapDbl),n.tapDbl=null},300),clearTimeout(n.tapHold),n.tapHold=null;break}}dispatchEvent(e,t,i){var a=i.getComponent(),n;this.columnSubscribers[e]&&(i instanceof wn?n=i.column.definition[e]:i instanceof No&&(n=i.definition[e]),n&&n(t,a)),this.dispatchExternal(e,t,a)}}E(Tx,"moduleName","interaction");var gI={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,navLeft:37,navRight:39,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35},kI={keyBlock:function(o){o.stopPropagation(),o.preventDefault()},scrollPageUp:function(o){var e=this.table.rowManager,t=e.scrollTop-e.element.clientHeight;o.preventDefault(),e.displayRowsCount&&(t>=0?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(o){var e=this.table.rowManager,t=e.scrollTop+e.element.clientHeight,i=e.element.scrollHeight;o.preventDefault(),e.displayRowsCount&&(t<=i?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(o){var e=this.table.rowManager;o.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(o){var e=this.table.rowManager;o.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1]),this.table.element.focus()},navPrev:function(o){this.dispatch("keybinding-nav-prev",o)},navNext:function(o){this.dispatch("keybinding-nav-next",o)},navLeft:function(o){this.dispatch("keybinding-nav-left",o)},navRight:function(o){this.dispatch("keybinding-nav-right",o)},navUp:function(o){this.dispatch("keybinding-nav-up",o)},navDown:function(o){this.dispatch("keybinding-nav-down",o)}};const Ue=class Ue extends B{constructor(e){super(e),this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1,this.registerTableOption("keybindings",{}),this.registerTableOption("tabEndNewRow",!1)}initialize(){var e=this.table.options.keybindings,t={};this.watchKeys={},this.pressedKeys=[],e!==!1&&(Object.assign(t,Ue.bindings),Object.assign(t,e),this.mapBindings(t),this.bindEvents()),this.subscribe("table-destroy",this.clearBindings.bind(this))}mapBindings(e){for(let t in e)Ue.actions[t]?e[t]&&(typeof e[t]!="object"&&(e[t]=[e[t]]),e[t].forEach(i=>{var a=Array.isArray(i)?i:[i];a.forEach(n=>{this.mapBinding(t,n)})})):console.warn("Key Binding Error - no such action:",t)}mapBinding(e,t){var i={action:Ue.actions[e],keys:[],ctrl:!1,shift:!1,meta:!1},a=t.toString().toLowerCase().split(" ").join("").split("+");a.forEach(n=>{switch(n){case"ctrl":i.ctrl=!0;break;case"shift":i.shift=!0;break;case"meta":i.meta=!0;break;default:n=isNaN(n)?n.toUpperCase().charCodeAt(0):parseInt(n),i.keys.push(n),this.watchKeys[n]||(this.watchKeys[n]=[]),this.watchKeys[n].push(i)}})}bindEvents(){var e=this;this.keyupBinding=function(t){var i=t.keyCode,a=e.watchKeys[i];a&&(e.pressedKeys.push(i),a.forEach(function(n){e.checkBinding(t,n)}))},this.keydownBinding=function(t){var i=t.keyCode,a=e.watchKeys[i];if(a){var n=e.pressedKeys.indexOf(i);n>-1&&e.pressedKeys.splice(n,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)}clearBindings(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)}checkBinding(e,t){var i=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta?(t.keys.forEach(a=>{var n=this.pressedKeys.indexOf(a);n==-1&&(i=!1)}),i&&t.action.call(this,e),!0):!1}};E(Ue,"moduleName","keybindings"),E(Ue,"bindings",gI),E(Ue,"actions",kI);let V9=Ue;var x9;let vI=(x9=class extends B{constructor(e){super(e),this.menuContainer=null,this.nestedMenuBlock=!1,this.currentComponent=null,this.rootPopup=null,this.columnSubscribers={},this.registerTableOption("rowContextMenu",!1),this.registerTableOption("rowClickMenu",!1),this.registerTableOption("rowDblClickMenu",!1),this.registerTableOption("groupContextMenu",!1),this.registerTableOption("groupClickMenu",!1),this.registerTableOption("groupDblClickMenu",!1),this.registerColumnOption("headerContextMenu"),this.registerColumnOption("headerClickMenu"),this.registerColumnOption("headerDblClickMenu"),this.registerColumnOption("headerMenu"),this.registerColumnOption("headerMenuIcon"),this.registerColumnOption("contextMenu"),this.registerColumnOption("clickMenu"),this.registerColumnOption("dblClickMenu")}initialize(){this.deprecatedOptionsCheck(),this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeRowWatchers(){this.table.options.rowContextMenu&&(this.subscribe("row-contextmenu",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu)),this.table.on("rowTapHold",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu))),this.table.options.rowClickMenu&&this.subscribe("row-click",this.loadMenuEvent.bind(this,this.table.options.rowClickMenu)),this.table.options.rowDblClickMenu&&this.subscribe("row-dblclick",this.loadMenuEvent.bind(this,this.table.options.rowDblClickMenu))}initializeGroupWatchers(){this.table.options.groupContextMenu&&(this.subscribe("group-contextmenu",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu)),this.table.on("groupTapHold",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu))),this.table.options.groupClickMenu&&this.subscribe("group-click",this.loadMenuEvent.bind(this,this.table.options.groupClickMenu)),this.table.options.groupDblClickMenu&&this.subscribe("group-dblclick",this.loadMenuEvent.bind(this,this.table.options.groupDblClickMenu))}initializeColumn(e){var t=e.definition;t.headerContextMenu&&!this.columnSubscribers.headerContextMenu&&(this.columnSubscribers.headerContextMenu=this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextMenu),this.table.on("headerTapHold",this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"))),t.headerClickMenu&&!this.columnSubscribers.headerClickMenu&&(this.columnSubscribers.headerClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerClickMenu"),this.subscribe("column-click",this.columnSubscribers.headerClickMenu)),t.headerDblClickMenu&&!this.columnSubscribers.headerDblClickMenu&&(this.columnSubscribers.headerDblClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerDblClickMenu"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickMenu)),t.headerMenu&&this.initializeColumnHeaderMenu(e),t.contextMenu&&!this.columnSubscribers.contextMenu&&(this.columnSubscribers.contextMenu=this.loadMenuTableCellEvent.bind(this,"contextMenu"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextMenu),this.table.on("cellTapHold",this.loadMenuTableCellEvent.bind(this,"contextMenu"))),t.clickMenu&&!this.columnSubscribers.clickMenu&&(this.columnSubscribers.clickMenu=this.loadMenuTableCellEvent.bind(this,"clickMenu"),this.subscribe("cell-click",this.columnSubscribers.clickMenu)),t.dblClickMenu&&!this.columnSubscribers.dblClickMenu&&(this.columnSubscribers.dblClickMenu=this.loadMenuTableCellEvent.bind(this,"dblClickMenu"),this.subscribe("cell-dblclick",this.columnSubscribers.dblClickMenu))}initializeColumnHeaderMenu(e){var t=e.definition.headerMenuIcon,i;i=document.createElement("span"),i.classList.add("tabulator-header-popup-button"),t?(typeof t=="function"&&(t=t(e.getComponent())),t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t):i.innerHTML="⋮",i.addEventListener("click",a=>{a.stopPropagation(),a.preventDefault(),this.loadMenuEvent(e.definition.headerMenu,a,e)}),e.titleElement.insertBefore(i,e.titleElement.firstChild)}loadMenuTableCellEvent(e,t,i){i._cell&&(i=i._cell),i.column.definition[e]&&this.loadMenuEvent(i.column.definition[e],t,i)}loadMenuTableColumnEvent(e,t,i){i._column&&(i=i._column),i.definition[e]&&this.loadMenuEvent(i.definition[e],t,i)}loadMenuEvent(e,t,i){i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent()):e,this.loadMenu(t,i,e)}loadMenu(e,t,i,a,n){var r=!(e instanceof MouseEvent),l=document.createElement("div"),h;if(l.classList.add("tabulator-menu"),r||e.preventDefault(),!(!i||!i.length)){if(a)h=n.child(l);else{if(this.nestedMenuBlock){if(this.rootPopup)return}else this.nestedMenuBlock=setTimeout(()=>{this.nestedMenuBlock=!1},100);this.rootPopup&&this.rootPopup.hide(),this.rootPopup=h=this.popup(l)}i.forEach(d=>{var u=document.createElement("div"),p=d.label,y=d.disabled;d.separator?u.classList.add("tabulator-menu-separator"):(u.classList.add("tabulator-menu-item"),typeof p=="function"&&(p=p.call(this.table,t.getComponent())),p instanceof Node?u.appendChild(p):u.innerHTML=p,typeof y=="function"&&(y=y.call(this.table,t.getComponent())),y?(u.classList.add("tabulator-menu-item-disabled"),u.addEventListener("click",f=>{f.stopPropagation()})):d.menu&&d.menu.length?u.addEventListener("click",f=>{f.stopPropagation(),this.loadMenu(f,t,d.menu,u,h)}):d.action&&u.addEventListener("click",f=>{d.action(f,t.getComponent())}),d.menu&&d.menu.length&&u.classList.add("tabulator-menu-item-submenu")),l.appendChild(u)}),l.addEventListener("click",d=>{this.rootPopup&&this.rootPopup.hide()}),h.show(a||e),h===this.rootPopup&&(this.rootPopup.hideOnBlur(()=>{this.rootPopup=null,this.currentComponent&&(this.dispatch("menu-closed",i,h),this.dispatchExternal("menuClosed",this.currentComponent.getComponent()),this.currentComponent=null)}),this.currentComponent=t,this.dispatch("menu-opened",i,h),this.dispatchExternal("menuOpened",t.getComponent()))}}},E(x9,"moduleName","menu"),x9);class Dx extends B{constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.registerTableOption("movableColumns",!1)}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e}initialize(){this.table.options.movableColumns&&(this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("alert-show",this.abortMove.bind(this)))}abortMove(){clearTimeout(this.checkTimeout)}initializeColumn(e){var t=this,i={},a;!e.modules.frozen&&!e.isGroup&&!e.isRowHeader&&(a=e.getElement(),i.mousemove=(function(n){e.parent===t.moving.parent&&((t.touchMove?n.touches[0].pageX:n.pageX)-G.elOffset(a).left+t.table.columnManager.contentsElement.scrollLeft>e.getWidth()/2?(t.toCol!==e||!t.toColAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a.nextSibling),t.moveColumn(e,!0)):(t.toCol!==e||t.toColAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a),t.moveColumn(e,!1)))}).bind(t),a.addEventListener("mousedown",function(n){t.touchMove=!1,n.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e)},t.checkPeriod))}),a.addEventListener("mouseup",function(n){n.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),t.bindTouchEvents(e)),e.modules.moveColumn=i}bindTouchEvents(e){var t=e.getElement(),i=!1,a,n,r,l,h,d;t.addEventListener("touchstart",u=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,a=e.nextColumn(),r=a?a.getWidth()/2:0,n=e.prevColumn(),l=n?n.getWidth()/2:0,h=0,d=0,i=!1,this.startMove(u,e)},this.checkPeriod)},{passive:!0}),t.addEventListener("touchmove",u=>{var p,y;this.moving&&(this.moveHover(u),i||(i=u.touches[0].pageX),p=u.touches[0].pageX-i,p>0?a&&p-h>r&&(y=a,y!==e&&(i=u.touches[0].pageX,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement().nextSibling),this.moveColumn(y,!0))):n&&-p-d>l&&(y=n,y!==e&&(i=u.touches[0].pageX,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement()),this.moveColumn(y,!1))),y&&(a=y.nextColumn(),h=r,r=a?a.getWidth()/2:0,n=y.prevColumn(),d=l,l=n?n.getWidth()/2:0))},{passive:!0}),t.addEventListener("touchend",u=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(u)})}startMove(e,t){var i=t.getElement(),a=this.table.columnManager.getContentsElement(),n=this.table.columnManager.getHeadersElement();this.table.modules.selectRange&&this.table.modules.selectRange.columnSelection&&this.table.modules.selectRange.mousedown&&this.table.modules.selectRange.selecting==="column"||(this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-G.elOffset(i).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",i.parentNode.insertBefore(this.placeholderElement,i),i.parentNode.removeChild(i),this.hoverElement=i.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),a.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom=a.clientHeight-n.offsetHeight+"px",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e),this.dispatch("column-moving",e,this.moving))}_bindMouseMove(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})}_unbindMouseMove(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})}moveColumn(e,t){var i=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(a,n){var r=a.getElement(!0);r.parentNode&&i[n]&&r.parentNode.insertBefore(i[n].getElement(),r.nextSibling)}):e.getCells().forEach(function(a,n){var r=a.getElement(!0);r.parentNode&&i[n]&&r.parentNode.insertBefore(i[n].getElement(),r)})}endMove(e){(e.which===1||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))}moveHover(e){var t=this.table.columnManager.getContentsElement(),i=t.scrollLeft,a=(this.touchMove?e.touches[0].pageX:e.pageX)-G.elOffset(t).left+i,n;this.hoverElement.style.left=a-this.startX+"px",a-i<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{n=Math.max(0,i-5),this.table.rowManager.getElement().scrollLeft=n,this.autoScrollTimeout=!1},1))),i+t.clientWidth-a<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{n=Math.min(t.clientWidth,i+5),this.table.rowManager.getElement().scrollLeft=n,this.autoScrollTimeout=!1},1)))}}E(Dx,"moduleName","moveColumn");var bI={delete:function(o,e,t){o.delete()}},wI={insert:function(o,e,t){return this.table.addRow(o.getData(),void 0,e),!0},add:function(o,e,t){return this.table.addRow(o.getData()),!0},update:function(o,e,t){return e?(e.update(o.getData()),!0):!1},replace:function(o,e,t){return e?(this.table.addRow(o.getData(),void 0,e),e.delete(),!0):!1}};const qo=class qo extends B{constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connectionSelectorsTables=!1,this.connectionSelectorsElements=!1,this.connectionElements=[],this.connections=[],this.connectedTable=!1,this.connectedRow=!1,this.registerTableOption("movableRows",!1),this.registerTableOption("movableRowsConnectedTables",!1),this.registerTableOption("movableRowsConnectedElements",!1),this.registerTableOption("movableRowsSender",!1),this.registerTableOption("movableRowsReceiver","insert"),this.registerColumnOption("rowHandle")}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-row"),e.classList.add("tabulator-row-placeholder"),e}initialize(){this.table.options.movableRows&&(this.connectionSelectorsTables=this.table.options.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.movableRowsConnectedElements,this.connection=this.connectionSelectorsTables||this.connectionSelectorsElements,this.subscribe("cell-init",this.initializeCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)))}initializeGroupHeader(e){var t=this,i={};i.mouseup=(function(a){t.tableRowDrop(a,e)}).bind(t),i.mousemove=(function(a){var n;a.pageY-G.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(n=e.getElement(),n.parentNode.insertBefore(t.placeholderElement,n.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(n=e.getElement(),n.previousSibling&&(n.parentNode.insertBefore(t.placeholderElement,n),t.moveRow(e,!1)))}).bind(t),e.modules.moveRow=i}initializeRow(e){var t=this,i={},a;i.mouseup=(function(n){t.tableRowDrop(n,e)}).bind(t),i.mousemove=(function(n){var r=e.getElement();n.pageY-G.elOffset(r).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r),t.moveRow(e,!1))}).bind(t),this.hasHandle||(a=e.getElement(),a.addEventListener("mousedown",function(n){n.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e)},t.checkPeriod))}),a.addEventListener("mouseup",function(n){n.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=i}initializeColumn(e){e.definition.rowHandle&&this.table.options.movableRows!==!1&&(this.hasHandle=!0)}initializeCell(e){if(e.column.definition.rowHandle&&this.table.options.movableRows!==!1){var t=this,i=e.getElement(!0);i.addEventListener("mousedown",function(a){a.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(a,e.row)},t.checkPeriod))}),i.addEventListener("mouseup",function(a){a.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,i)}}bindTouchEvents(e,t){var i=!1,a,n,r,l,h,d;t.addEventListener("touchstart",u=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,a=e.nextRow(),r=a?a.getHeight()/2:0,n=e.prevRow(),l=n?n.getHeight()/2:0,h=0,d=0,i=!1,this.startMove(u,e)},this.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",u=>{var p,y;this.moving&&(u.preventDefault(),this.moveHover(u),i||(i=u.touches[0].pageY),p=u.touches[0].pageY-i,p>0?a&&p-h>r&&(y=a,y!==e&&(i=u.touches[0].pageY,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement().nextSibling),this.moveRow(y,!0))):n&&-p-d>l&&(y=n,y!==e&&(i=u.touches[0].pageY,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement()),this.moveRow(y,!1))),y&&(a=y.nextRow(),h=r,r=a?a.getHeight()/2:0,n=y.prevRow(),d=l,l=n?n.getHeight()/2:0))}),t.addEventListener("touchend",u=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(u),this.touchMove=!1)})}_bindMouseMove(){this.table.rowManager.getDisplayRows().forEach(e=>{(e.type==="row"||e.type==="group")&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})}_unbindMouseMove(){this.table.rowManager.getDisplayRows().forEach(e=>{(e.type==="row"||e.type==="group")&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})}startMove(e,t){var i=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(i.parentNode.insertBefore(this.placeholderElement,i),i.parentNode.removeChild(i)),this.hoverElement=i.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.dispatchExternal("rowMoving",t.getComponent()),this.moveHover(e)}setStartPosition(e,t){var i=this.touchMove?e.touches[0].pageX:e.pageX,a=this.touchMove?e.touches[0].pageY:e.pageY,n,r;n=t.getElement(),this.connection?(r=n.getBoundingClientRect(),this.startX=r.left-i+window.pageXOffset,this.startY=r.top-a+window.pageYOffset):this.startY=a-n.getBoundingClientRect().top}endMove(e){(!e||e.which===1||this.touchMove)&&(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow?this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter):this.dispatchExternal("rowMoveCancelled",this.moving.getComponent()),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))}moveRow(e,t){this.toRow=e,this.toRowAfter=t}moveHover(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)}moveHoverTable(e){var t=this.table.rowManager.getElement(),i=t.scrollTop,a=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+i;this.hoverElement.style.top=Math.min(a-this.startY,this.table.rowManager.element.scrollHeight-this.hoverElement.offsetHeight)+"px"}moveHoverConnections(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"}elementRowDrop(e,t,i){this.dispatchExternal("movableRowsElementDrop",e,t,i?i.getComponent():!1)}connectToTables(e){var t;this.connectionSelectorsTables&&(t=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStart",t),this.commsSend(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(i=>{typeof i=="string"?this.connectionElements=this.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(i))):this.connectionElements.push(i)}),this.connectionElements.forEach(i=>{var a=n=>{this.elementRowDrop(n,i,this.moving)};i.addEventListener("mouseup",a),i.tabulatorElementDropEvent=a,i.classList.add("tabulator-movingrow-receiving")}))}disconnectFromTables(){var e;this.connectionSelectorsTables&&(e=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStop",e),this.commsSend(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(t=>{t.classList.remove("tabulator-movingrow-receiving"),t.removeEventListener("mouseup",t.tabulatorElementDropEvent),delete t.tabulatorElementDropEvent})}connect(e,t){return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(i=>{i.type==="row"&&i.modules.moveRow&&i.modules.moveRow.mouseup&&i.getElement().addEventListener("mouseup",i.modules.moveRow.mouseup)}),this.tableRowDropEvent=this.tableRowDrop.bind(this),this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStart",t,e),!0)}disconnect(e){e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(t=>{t.type==="row"&&t.modules.moveRow&&t.modules.moveRow.mouseup&&t.getElement().removeEventListener("mouseup",t.modules.moveRow.mouseup)}),this.table.element.removeEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStop",e)):console.warn("Move Row Error - trying to disconnect from non connected table")}dropComplete(e,t,i){var a=!1;if(i){switch(typeof this.table.options.movableRowsSender){case"string":a=qo.senders[this.table.options.movableRowsSender];break;case"function":a=this.table.options.movableRowsSender;break}a?a.call(this,this.moving?this.moving.getComponent():void 0,t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.dispatchExternal("movableRowsSent",this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.dispatchExternal("movableRowsSentFailed",this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()}tableRowDrop(e,t){var i=!1,a=!1;switch(e.stopImmediatePropagation(),typeof this.table.options.movableRowsReceiver){case"string":i=qo.receivers[this.table.options.movableRowsReceiver];break;case"function":i=this.table.options.movableRowsReceiver;break}i?a=i.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),a?this.dispatchExternal("movableRowsReceived",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.dispatchExternal("movableRowsReceivedFailed",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.commsSend(this.connectedTable,"moveRow","dropcomplete",{row:t,success:a})}commsReceived(e,t,i){switch(t){case"connect":return this.connect(e,i.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,i.row,i.success)}}};E(qo,"moduleName","moveRow"),E(qo,"senders",bI),E(qo,"receivers",wI);let P9=qo;var MI={};const Xo=class Xo extends B{constructor(e){super(e),this.allowedTypes=["","data","edit","clipboard","import"],this.enabled=!0,this.registerColumnOption("mutator"),this.registerColumnOption("mutatorParams"),this.registerColumnOption("mutatorData"),this.registerColumnOption("mutatorDataParams"),this.registerColumnOption("mutatorEdit"),this.registerColumnOption("mutatorEditParams"),this.registerColumnOption("mutatorClipboard"),this.registerColumnOption("mutatorClipboardParams"),this.registerColumnOption("mutatorImport"),this.registerColumnOption("mutatorImportParams"),this.registerColumnOption("mutateLink")}initialize(){this.subscribe("cell-value-changing",this.transformCell.bind(this)),this.subscribe("cell-value-changed",this.mutateLink.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-init-before",this.rowDataChanged.bind(this)),this.subscribe("row-data-changing",this.rowDataChanged.bind(this))}rowDataChanged(e,t,i){return this.transformRow(t,"data",i)}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(a=>{var n="mutator"+(a.charAt(0).toUpperCase()+a.slice(1)),r;e.definition[n]&&(r=this.lookupMutator(e.definition[n]),r&&(t=!0,i[n]={mutator:r,params:e.definition[n+"Params"]||{}}))}),t&&(e.modules.mutate=i)}lookupMutator(e){var t=!1;switch(typeof e){case"string":Xo.mutators[e]?t=Xo.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t,i){var a="mutator"+(t.charAt(0).toUpperCase()+t.slice(1)),n;return this.enabled&&this.table.columnManager.traverse(r=>{var l,h,d;r.modules.mutate&&(l=r.modules.mutate[a]||r.modules.mutate.mutator||!1,l&&(n=r.getFieldValue(typeof i<"u"?i:e),(t=="data"&&!i||typeof n<"u")&&(d=r.getComponent(),h=typeof l.params=="function"?l.params(n,e,t,d):l.params,r.setFieldValue(e,l.mutator(n,e,t,h,d)))))}),e}transformCell(e,t){if(e.column.modules.mutate){var i=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,a={};if(i)return a=Object.assign(a,e.row.getData()),e.column.setFieldValue(a,t),i.mutator(t,a,"edit",i.params,e.getComponent())}return t}mutateLink(e){var t=e.column.definition.mutateLink;t&&(Array.isArray(t)||(t=[t]),t.forEach(i=>{var a=e.row.getCell(i);a&&a.setValue(a.getValue(),!0,!0)}))}enable(){this.enabled=!0}disable(){this.enabled=!1}};E(Xo,"moduleName","mutator"),E(Xo,"mutators",MI);let q9=Xo;function CI(o,e,t,i,a){var n=document.createElement("span"),r=document.createElement("span"),l=document.createElement("span"),h=document.createElement("span"),d=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",p=>{r.innerHTML=p}),this.table.modules.localize.langBind("pagination|counter|of",p=>{h.innerHTML=p}),this.table.modules.localize.langBind("pagination|counter|rows",p=>{u.innerHTML=p}),i?(l.innerHTML=" "+e+"-"+Math.min(e+o-1,i)+" ",d.innerHTML=" "+i+" ",n.appendChild(r),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(u)):(l.innerHTML=" 0 ",n.appendChild(r),n.appendChild(l),n.appendChild(u)),n}function xI(o,e,t,i,a){var n=document.createElement("span"),r=document.createElement("span"),l=document.createElement("span"),h=document.createElement("span"),d=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",p=>{r.innerHTML=p}),l.innerHTML=" "+t+" ",this.table.modules.localize.langBind("pagination|counter|of",p=>{h.innerHTML=p}),d.innerHTML=" "+a+" ",this.table.modules.localize.langBind("pagination|counter|pages",p=>{u.innerHTML=p}),n.appendChild(r),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(u),n}var LI={rows:CI,pages:xI};const gn=class gn extends B{constructor(e){super(e),this.mode="local",this.progressiveLoad=!1,this.element=null,this.pageCounterElement=null,this.pageCounter=null,this.size=0,this.page=1,this.count=5,this.max=1,this.remoteRowCountEstimate=null,this.initialLoad=!0,this.dataChanging=!1,this.pageSizes=[],this.registerTableOption("pagination",!1),this.registerTableOption("paginationMode","local"),this.registerTableOption("paginationSize",!1),this.registerTableOption("paginationInitialPage",1),this.registerTableOption("paginationCounter",!1),this.registerTableOption("paginationCounterElement",!1),this.registerTableOption("paginationButtonCount",5),this.registerTableOption("paginationSizeSelector",!1),this.registerTableOption("paginationElement",!1),this.registerTableOption("paginationAddRow","page"),this.registerTableOption("paginationOutOfRange",!1),this.registerTableOption("progressiveLoad",!1),this.registerTableOption("progressiveLoadDelay",0),this.registerTableOption("progressiveLoadScrollMargin",0),this.registerTableFunction("setMaxPage",this.setMaxPage.bind(this)),this.registerTableFunction("setPage",this.setPage.bind(this)),this.registerTableFunction("setPageToRow",this.userSetPageToRow.bind(this)),this.registerTableFunction("setPageSize",this.userSetPageSize.bind(this)),this.registerTableFunction("getPageSize",this.getPageSize.bind(this)),this.registerTableFunction("previousPage",this.previousPage.bind(this)),this.registerTableFunction("nextPage",this.nextPage.bind(this)),this.registerTableFunction("getPage",this.getPage.bind(this)),this.registerTableFunction("getPageMax",this.getPageMax.bind(this)),this.registerComponentFunction("row","pageTo",this.setPageToRow.bind(this))}initialize(){this.table.options.pagination?(this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("footer-redraw",this.footerRedraw.bind(this)),this.table.options.paginationAddRow=="page"&&this.subscribe("row-adding-position",this.rowAddingPosition.bind(this)),this.table.options.paginationMode==="remote"&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this))),this.table.options.progressiveLoad&&console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time"),this.registerDisplayHandler(this.restOnRenderBefore.bind(this),40),this.registerDisplayHandler(this.getRows.bind(this),50),this.createElements(),this.initializePageCounter(),this.initializePaginator()):this.table.options.progressiveLoad&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.initializeProgressive(this.table.options.progressiveLoad),this.table.options.progressiveLoad==="scroll"&&this.subscribe("scroll-vertical",this.scrollVertical.bind(this)))}rowAddingPosition(e,t){var i=this.table.rowManager,a=i.getDisplayRows(),n;return t?a.length?n=a[0]:i.activeRows.length&&(n=i.activeRows[i.activeRows.length-1],t=!1):a.length&&(n=a[a.length-1],t=!(a.length<this.size)),{index:n,top:t}}calculatePageSizes(){var e,t;this.table.options.paginationSize?this.size=this.table.options.paginationSize:(e=document.createElement("div"),e.classList.add("tabulator-row"),e.style.visibility="hidden",t=document.createElement("div"),t.classList.add("tabulator-cell"),t.innerHTML="Page Row Test",e.appendChild(t),this.table.rowManager.getTableElement().appendChild(e),this.size=Math.floor(this.table.rowManager.getElement().clientHeight/e.offsetHeight),this.table.rowManager.getTableElement().removeChild(e)),this.dispatchExternal("pageSizeChanged",this.size),this.generatePageSizeSelectList()}initialLoadComplete(){this.initialLoad=!1}remotePageParams(e,t,i,a){return this.initialLoad||(this.progressiveLoad&&!i||!this.progressiveLoad&&!this.dataChanging)&&this.reset(!0),a.page=this.page,this.size&&(a.size=this.size),a}userSetPageToRow(e){return this.table.options.pagination&&(e=this.table.rowManager.findRow(e),e)?this.setPageToRow(e):Promise.reject()}userSetPageSize(e){return this.table.options.pagination?(this.setPageSize(e),this.setPage(1)):!1}scrollVertical(e,t){var i,a,n;!t&&!this.table.dataLoader.loading&&(i=this.table.rowManager.getElement(),a=i.scrollHeight-i.clientHeight-e,n=this.table.options.progressiveLoadScrollMargin||i.clientHeight*2,a<n&&this.nextPage().catch(()=>{}))}restOnRenderBefore(e,t){return t||this.mode==="local"&&this.reset(),e}rowsUpdated(){this.refreshData(!0,"all")}createElements(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))}generatePageSizeSelectList(){var e=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))e=this.table.options.paginationSizeSelector,this.pageSizes=e,this.pageSizes.indexOf(this.size)==-1&&e.unshift(this.size);else if(this.pageSizes.indexOf(this.size)==-1){e=[];for(let t=1;t<5;t++)e.push(this.size*t);this.pageSizes=e}else e=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);e.forEach(t=>{var i=document.createElement("option");i.value=t,t===!0?this.langBind("pagination|all",function(a){i.innerHTML=a}):i.innerHTML=t,this.pageSizeSelect.appendChild(i)}),this.pageSizeSelect.value=this.size}}initializePageCounter(){var e=this.table.options.paginationCounter,t=null;e&&(typeof e=="function"?t=e:t=gn.pageCounters[e],t?(this.pageCounter=t,this.pageCounterElement=document.createElement("span"),this.pageCounterElement.classList.add("tabulator-page-counter")):console.warn("Pagination Error - No such page counter found: ",e))}initializePaginator(e){var t,i;e||(this.langBind("pagination|first",a=>{this.firstBut.innerHTML=a}),this.langBind("pagination|first_title",a=>{this.firstBut.setAttribute("aria-label",a),this.firstBut.setAttribute("title",a)}),this.langBind("pagination|prev",a=>{this.prevBut.innerHTML=a}),this.langBind("pagination|prev_title",a=>{this.prevBut.setAttribute("aria-label",a),this.prevBut.setAttribute("title",a)}),this.langBind("pagination|next",a=>{this.nextBut.innerHTML=a}),this.langBind("pagination|next_title",a=>{this.nextBut.setAttribute("aria-label",a),this.nextBut.setAttribute("title",a)}),this.langBind("pagination|last",a=>{this.lastBut.innerHTML=a}),this.langBind("pagination|last_title",a=>{this.lastBut.setAttribute("aria-label",a),this.lastBut.setAttribute("title",a)}),this.firstBut.addEventListener("click",()=>{this.setPage(1)}),this.prevBut.addEventListener("click",()=>{this.previousPage()}),this.nextBut.addEventListener("click",()=>{this.nextPage()}),this.lastBut.addEventListener("click",()=>{this.setPage(this.max)}),this.table.options.paginationElement&&(this.element=this.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),this.langBind("pagination|page_size",a=>{this.pageSizeSelect.setAttribute("aria-label",a),this.pageSizeSelect.setAttribute("title",a),t.innerHTML=a}),this.element.appendChild(t),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.addEventListener("change",a=>{this.setPageSize(this.pageSizeSelect.value=="true"?!0:this.pageSizeSelect.value),this.setPage(1)})),this.element.appendChild(this.firstBut),this.element.appendChild(this.prevBut),this.element.appendChild(this.pagesElement),this.element.appendChild(this.nextBut),this.element.appendChild(this.lastBut),this.table.options.paginationElement||(this.table.options.paginationCounter&&(this.table.options.paginationCounterElement?this.table.options.paginationCounterElement instanceof HTMLElement?this.table.options.paginationCounterElement.appendChild(this.pageCounterElement):typeof this.table.options.paginationCounterElement=="string"&&(i=document.querySelector(this.table.options.paginationCounterElement),i?i.appendChild(this.pageCounterElement):console.warn("Pagination Error - Unable to find element matching paginationCounterElement selector:",this.table.options.paginationCounterElement)):this.footerAppend(this.pageCounterElement)),this.footerAppend(this.element)),this.page=this.table.options.paginationInitialPage,this.count=this.table.options.paginationButtonCount),this.mode=this.table.options.paginationMode}initializeProgressive(e){this.initializePaginator(!0),this.mode="progressive_"+e,this.progressiveLoad=!0}trackChanges(){this.dispatch("page-changed")}setMaxRows(e){e?this.max=this.size===!0?1:Math.ceil(e/this.size):this.max=1,this.page>this.max&&(this.page=this.max)}reset(e){this.initialLoad||(this.mode=="local"||e)&&(this.page=1,this.trackChanges())}setMaxPage(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())}setPage(e){switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return e=parseInt(e),e>0&&e<=this.max||this.mode!=="local"?(this.page=e,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Requested page is out of range of 1 - "+this.max+":",e),Promise.reject())}setPageToRow(e){var t=this.displayRows(-1),i=t.indexOf(e);if(i>-1){var a=this.size===!0?1:Math.ceil((i+1)/this.size);return this.setPage(a)}else return console.warn("Pagination Error - Requested row is not visible"),Promise.reject()}setPageSize(e){e!==!0&&(e=parseInt(e)),e>0&&(this.size=e,this.dispatchExternal("pageSizeChanged",e)),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.trackChanges()}_setPageCounter(e,t,i){var a;if(this.pageCounter)switch(this.mode==="remote"&&(t=this.size,i=(this.page-1)*this.size+1,e=this.remoteRowCountEstimate),a=this.pageCounter.call(this,t,i,this.page,e,this.max),typeof a){case"object":if(a instanceof Node){for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.pageCounterElement.firstChild);this.pageCounterElement.appendChild(a)}else this.pageCounterElement.innerHTML="",a!=null&&console.warn("Page Counter Error - Page Counter has returned a type of object, the only valid page counter object return is an instance of Node, the page counter returned:",a);break;case"undefined":this.pageCounterElement.innerHTML="";break;default:this.pageCounterElement.innerHTML=a}}_setPageButtons(){let e=Math.floor((this.count-1)/2),t=Math.ceil((this.count-1)/2),i=this.max-this.page+e+1<this.count?this.max-this.count+1:Math.max(this.page-e,1),a=this.page<=t?Math.min(this.count,this.max):Math.min(this.page+t,this.max);for(;this.pagesElement.firstChild;)this.pagesElement.removeChild(this.pagesElement.firstChild);this.page==1?(this.firstBut.disabled=!0,this.prevBut.disabled=!0):(this.firstBut.disabled=!1,this.prevBut.disabled=!1),this.page==this.max?(this.lastBut.disabled=!0,this.nextBut.disabled=!0):(this.lastBut.disabled=!1,this.nextBut.disabled=!1);for(let n=i;n<=a;n++)n>0&&n<=this.max&&this.pagesElement.appendChild(this._generatePageButton(n));this.footerRedraw()}_generatePageButton(e){var t=document.createElement("button");return t.classList.add("tabulator-page"),e==this.page&&t.classList.add("active"),t.setAttribute("type","button"),t.setAttribute("role","button"),this.langBind("pagination|page_title",i=>{t.setAttribute("aria-label",i+" "+e),t.setAttribute("title",i+" "+e)}),t.setAttribute("data-page",e),t.textContent=e,t.addEventListener("click",i=>{this.setPage(e)}),t}previousPage(){return this.page>1?(this.page--,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Previous page would be less than page 1:",0),Promise.reject())}nextPage(){return this.page<this.max?(this.page++,this.trackChanges(),this.trigger()):(this.progressiveLoad||console.warn("Pagination Error - Next page would be greater than maximum page of "+this.max+":",this.max+1),Promise.reject())}getPage(){return this.page}getPageMax(){return this.max}getPageSize(e){return this.size}getMode(){return this.mode}getRows(e){var t=0,i,a,n,r,l=e.filter(h=>h.type==="row");if(this.mode=="local"){i=[],this.setMaxRows(e.length),this.size===!0?(a=0,n=e.length):(a=this.size*(this.page-1),n=a+parseInt(this.size)),this._setPageButtons();for(let h=a;h<n;h++){let d=e[h];d&&(i.push(d),d.type==="row"&&(r||(r=d),t++))}return this._setPageCounter(l.length,t,r?l.indexOf(r)+1:0),i}else return this._setPageButtons(),this._setPageCounter(l.length),e.slice(0)}trigger(){var e;switch(this.mode){case"local":return e=this.table.rowManager.scrollLeft,this.refreshData(),this.table.rowManager.scrollHorizontal(e),this.dispatchExternal("pageLoaded",this.getPage()),Promise.resolve();case"remote":return this.dataChanging=!0,this.reloadData(null).finally(()=>{this.dataChanging=!1});case"progressive_load":case"progressive_scroll":return this.reloadData(null,!0);default:return console.warn("Pagination Error - no such pagination mode:",this.mode),Promise.reject()}}_parseRemoteData(e){var t,i;if(typeof e.last_page>"u"&&console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").last_page||"last_page")+"' property"),e.data)if(this.max=parseInt(e.last_page)||1,this.remoteRowCountEstimate=typeof e.last_row<"u"?e.last_row:e.last_page*this.size-(this.page==e.last_page?this.size-e.data.length:0),this.progressiveLoad){switch(this.mode){case"progressive_load":this.page==1?this.table.rowManager.setData(e.data,!1,this.page==1):this.table.rowManager.addRows(e.data),this.page<this.max&&setTimeout(()=>{this.nextPage()},this.table.options.progressiveLoadDelay);break;case"progressive_scroll":e=this.page===1?e.data:this.table.rowManager.getData().concat(e.data),this.table.rowManager.setData(e,this.page!==1,this.page==1),t=this.table.options.progressiveLoadScrollMargin||this.table.rowManager.element.clientHeight*2,this.table.rowManager.element.scrollHeight<=this.table.rowManager.element.clientHeight+t&&this.page<this.max&&setTimeout(()=>{this.nextPage()});break}return!1}else{if(this.page>this.max&&(console.warn("Remote Pagination Error - Server returned last page value lower than the current page"),i=this.options("paginationOutOfRange"),i))return this.setPage(typeof i=="function"?i.call(this,this.page,this.max):i);this.dispatchExternal("pageLoaded",this.getPage())}else console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").data||"data")+"' property");return e.data}footerRedraw(){var e=this.table.footerManager.containerElement;Math.ceil(e.clientWidth)-e.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(e.clientWidth)-e.scrollWidth<0&&(this.pagesElement.style.display="none"))}};E(gn,"moduleName","page"),E(gn,"pageCounters",LI);let B9=gn;var EI={local:function(o,e){var t=localStorage.getItem(o+"-"+e);return t?JSON.parse(t):!1},cookie:function(o,e){var t=document.cookie,i=o+"-"+e,a=t.indexOf(i+"="),n,r;return a>-1&&(t=t.slice(a),n=t.indexOf(";"),n>-1&&(t=t.slice(0,n)),r=t.replace(i+"=","")),r?JSON.parse(r):!1}},SI={local:function(o,e,t){localStorage.setItem(o+"-"+e,JSON.stringify(t))},cookie:function(o,e,t){var i=new Date;i.setDate(i.getDate()+1e4),document.cookie=o+"-"+e+"="+JSON.stringify(t)+"; expires="+i.toUTCString()}};const le=class le extends B{constructor(e){super(e),this.mode="",this.id="",this.defWatcherBlock=!1,this.config={},this.readFunc=!1,this.writeFunc=!1,this.registerTableOption("persistence",!1),this.registerTableOption("persistenceID",""),this.registerTableOption("persistenceMode",!0),this.registerTableOption("persistenceReaderFunc",!1),this.registerTableOption("persistenceWriterFunc",!1)}localStorageTest(){var e="_tabulator_test";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}initialize(){if(this.table.options.persistence){var e=this.table.options.persistenceMode,t=this.table.options.persistenceID,i;this.mode=e!==!0?e:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc?typeof this.table.options.persistenceReaderFunc=="function"?this.readFunc=this.table.options.persistenceReaderFunc:le.readers[this.table.options.persistenceReaderFunc]?this.readFunc=le.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):le.readers[this.mode]?this.readFunc=le.readers[this.mode]:console.warn("Persistence Read Error - invalid reader set",this.mode),this.table.options.persistenceWriterFunc?typeof this.table.options.persistenceWriterFunc=="function"?this.writeFunc=this.table.options.persistenceWriterFunc:le.writers[this.table.options.persistenceWriterFunc]?this.writeFunc=le.writers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):le.writers[this.mode]?this.writeFunc=le.writers[this.mode]:console.warn("Persistence Write Error - invalid writer set",this.mode),this.id="tabulator-"+(t||this.table.element.getAttribute("id")||""),this.config={sort:this.table.options.persistence===!0||this.table.options.persistence.sort,filter:this.table.options.persistence===!0||this.table.options.persistence.filter,headerFilter:this.table.options.persistence===!0||this.table.options.persistence.headerFilter,group:this.table.options.persistence===!0||this.table.options.persistence.group,page:this.table.options.persistence===!0||this.table.options.persistence.page,columns:this.table.options.persistence===!0?["title","width","visible"]:this.table.options.persistence.columns},this.config.page&&(i=this.retrieveData("page"),i&&(typeof i.paginationSize<"u"&&(this.config.page===!0||this.config.page.size)&&(this.table.options.paginationSize=i.paginationSize),typeof i.paginationInitialPage<"u"&&(this.config.page===!0||this.config.page.page)&&(this.table.options.paginationInitialPage=i.paginationInitialPage))),this.config.group&&(i=this.retrieveData("group"),i&&(typeof i.groupBy<"u"&&(this.config.group===!0||this.config.group.groupBy)&&(this.table.options.groupBy=i.groupBy),typeof i.groupStartOpen<"u"&&(this.config.group===!0||this.config.group.groupStartOpen)&&(this.table.options.groupStartOpen=i.groupStartOpen),typeof i.groupHeader<"u"&&(this.config.group===!0||this.config.group.groupHeader)&&(this.table.options.groupHeader=i.groupHeader))),this.config.columns&&(this.table.options.columns=this.load("columns",this.table.options.columns),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-show",this.save.bind(this,"columns")),this.subscribe("column-hide",this.save.bind(this,"columns")),this.subscribe("column-moved",this.save.bind(this,"columns"))),this.subscribe("table-built",this.tableBuilt.bind(this),0),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("filter-changed",this.eventSave.bind(this,"filter")),this.subscribe("filter-changed",this.eventSave.bind(this,"headerFilter")),this.subscribe("sort-changed",this.eventSave.bind(this,"sort")),this.subscribe("group-changed",this.eventSave.bind(this,"group")),this.subscribe("page-changed",this.eventSave.bind(this,"page")),this.subscribe("column-resized",this.eventSave.bind(this,"columns")),this.subscribe("column-width",this.eventSave.bind(this,"columns")),this.subscribe("layout-refreshed",this.eventSave.bind(this,"columns"))}this.registerTableFunction("getColumnLayout",this.getColumnLayout.bind(this)),this.registerTableFunction("setColumnLayout",this.setColumnLayout.bind(this))}eventSave(e){this.config[e]&&this.save(e)}tableBuilt(){var e,t,i;this.config.sort&&(e=this.load("sort"),e&&(this.table.options.initialSort=e)),this.config.filter&&(t=this.load("filter"),t&&(this.table.options.initialFilter=t)),this.config.headerFilter&&(i=this.load("headerFilter"),i&&(this.table.options.initialHeaderFilter=i))}tableRedraw(e){e&&this.config.columns&&this.save("columns")}getColumnLayout(){return this.parseColumns(this.table.columnManager.getColumns())}setColumnLayout(e){return this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns,e,!0)),!0}initializeColumn(e){var t,i;this.config.columns&&(this.defWatcherBlock=!0,t=e.getDefinition(),i=this.config.columns===!0?Object.keys(t):this.config.columns,i.forEach(a=>{var n=Object.getOwnPropertyDescriptor(t,a),r=t[a];n&&Object.defineProperty(t,a,{set:l=>{r=l,this.defWatcherBlock||this.save("columns"),n.set&&n.set(l)},get:()=>(n.get&&n.get(),r)})}),this.defWatcherBlock=!1)}load(e,t){var i=this.retrieveData(e);return t&&(i=i?this.mergeDefinition(t,i):t),i}retrieveData(e){return this.readFunc?this.readFunc(this.id,e):!1}mergeDefinition(e,t,i){var a=[];return t=t||[],t.forEach((n,r)=>{var l=this._findColumn(e,n),h;l&&(i?h=Object.keys(n):this.config.columns===!0||this.config.columns==null?(h=Object.keys(l),h.push("width")):h=this.config.columns,h.forEach(d=>{d!=="columns"&&typeof n[d]<"u"&&(l[d]=n[d])}),l.columns&&(l.columns=this.mergeDefinition(l.columns,n.columns)),a.push(l))}),e.forEach((n,r)=>{var l=this._findColumn(t,n);l||(a.length>r?a.splice(r,0,n):a.push(n))}),a}_findColumn(e,t){var i=t.columns?"group":t.field?"field":"object";return e.find(function(a){switch(i){case"group":return a.title===t.title&&a.columns.length===t.columns.length;case"field":return a.field===t.field;case"object":return a===t}})}save(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"headerFilter":t=this.table.modules.filter.getHeaderFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)}validateSorters(e){return e.forEach(function(t){t.column=t.field,delete t.field}),e}getGroupConfig(){var e={};return this.config.group&&((this.config.group===!0||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(this.config.group===!0||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(this.config.group===!0||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e}getPageConfig(){var e={};return this.config.page&&((this.config.page===!0||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(this.config.page===!0||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e}parseColumns(e){var t=[],i=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(a=>{var n={},r=a.getDefinition(),l;a.isGroup?(n.title=r.title,n.columns=this.parseColumns(a.getColumns())):(n.field=a.getField(),this.config.columns===!0||this.config.columns==null?(l=Object.keys(r),l.push("width"),l.push("visible")):l=this.config.columns,l.forEach(h=>{switch(h){case"width":n.width=a.getWidth();break;case"visible":n.visible=a.visible;break;default:typeof r[h]!="function"&&i.indexOf(h)===-1&&(n[h]=r[h])}})),t.push(n)}),t}};E(le,"moduleName","persistence"),E(le,"moduleInitOrder",-10),E(le,"readers",EI),E(le,"writers",SI);let F9=le;var L9;let II=(L9=class extends B{constructor(e){super(e),this.columnSubscribers={},this.registerTableOption("rowContextPopup",!1),this.registerTableOption("rowClickPopup",!1),this.registerTableOption("rowDblClickPopup",!1),this.registerTableOption("groupContextPopup",!1),this.registerTableOption("groupClickPopup",!1),this.registerTableOption("groupDblClickPopup",!1),this.registerColumnOption("headerContextPopup"),this.registerColumnOption("headerClickPopup"),this.registerColumnOption("headerDblClickPopup"),this.registerColumnOption("headerPopup"),this.registerColumnOption("headerPopupIcon"),this.registerColumnOption("contextPopup"),this.registerColumnOption("clickPopup"),this.registerColumnOption("dblClickPopup"),this.registerComponentFunction("cell","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("column","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("row","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("group","popup",this._componentPopupCall.bind(this))}initialize(){this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}_componentPopupCall(e,t,i){this.loadPopupEvent(t,null,e,i)}initializeRowWatchers(){this.table.options.rowContextPopup&&(this.subscribe("row-contextmenu",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup)),this.table.on("rowTapHold",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup))),this.table.options.rowClickPopup&&this.subscribe("row-click",this.loadPopupEvent.bind(this,this.table.options.rowClickPopup)),this.table.options.rowDblClickPopup&&this.subscribe("row-dblclick",this.loadPopupEvent.bind(this,this.table.options.rowDblClickPopup))}initializeGroupWatchers(){this.table.options.groupContextPopup&&(this.subscribe("group-contextmenu",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup)),this.table.on("groupTapHold",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup))),this.table.options.groupClickPopup&&this.subscribe("group-click",this.loadPopupEvent.bind(this,this.table.options.groupClickPopup)),this.table.options.groupDblClickPopup&&this.subscribe("group-dblclick",this.loadPopupEvent.bind(this,this.table.options.groupDblClickPopup))}initializeColumn(e){var t=e.definition;t.headerContextPopup&&!this.columnSubscribers.headerContextPopup&&(this.columnSubscribers.headerContextPopup=this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextPopup),this.table.on("headerTapHold",this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"))),t.headerClickPopup&&!this.columnSubscribers.headerClickPopup&&(this.columnSubscribers.headerClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerClickPopup"),this.subscribe("column-click",this.columnSubscribers.headerClickPopup)),t.headerDblClickPopup&&!this.columnSubscribers.headerDblClickPopup&&(this.columnSubscribers.headerDblClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerDblClickPopup"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickPopup)),t.headerPopup&&this.initializeColumnHeaderPopup(e),t.contextPopup&&!this.columnSubscribers.contextPopup&&(this.columnSubscribers.contextPopup=this.loadPopupTableCellEvent.bind(this,"contextPopup"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextPopup),this.table.on("cellTapHold",this.loadPopupTableCellEvent.bind(this,"contextPopup"))),t.clickPopup&&!this.columnSubscribers.clickPopup&&(this.columnSubscribers.clickPopup=this.loadPopupTableCellEvent.bind(this,"clickPopup"),this.subscribe("cell-click",this.columnSubscribers.clickPopup)),t.dblClickPopup&&!this.columnSubscribers.dblClickPopup&&(this.columnSubscribers.dblClickPopup=this.loadPopupTableCellEvent.bind(this,"dblClickPopup"),this.subscribe("cell-click",this.columnSubscribers.dblClickPopup))}initializeColumnHeaderPopup(e){var t=e.definition.headerPopupIcon,i;i=document.createElement("span"),i.classList.add("tabulator-header-popup-button"),t?(typeof t=="function"&&(t=t(e.getComponent())),t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t):i.innerHTML="⋮",i.addEventListener("click",a=>{a.stopPropagation(),a.preventDefault(),this.loadPopupEvent(e.definition.headerPopup,a,e)}),e.titleElement.insertBefore(i,e.titleElement.firstChild)}loadPopupTableCellEvent(e,t,i){i._cell&&(i=i._cell),i.column.definition[e]&&this.loadPopupEvent(i.column.definition[e],t,i)}loadPopupTableColumnEvent(e,t,i){i._column&&(i=i._column),i.definition[e]&&this.loadPopupEvent(i.definition[e],t,i)}loadPopupEvent(e,t,i,a){var n;function r(l){n=l}i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent(),r):e,this.loadPopup(t,i,e,n,a)}loadPopup(e,t,i,a,n){var r=!(e instanceof MouseEvent),l,h;i instanceof HTMLElement?l=i:(l=document.createElement("div"),l.innerHTML=i),l.classList.add("tabulator-popup"),l.addEventListener("click",d=>{d.stopPropagation()}),r||e.preventDefault(),h=this.popup(l),typeof a=="function"&&h.renderCallback(a),e?h.show(e):h.show(t.getElement(),n||"center"),h.hideOnBlur(()=>{this.dispatchExternal("popupClosed",t.getComponent())}),this.dispatchExternal("popupOpened",t.getComponent())}},E(L9,"moduleName","popup"),L9);class zx extends B{constructor(e){super(e),this.element=!1,this.manualBlock=!1,this.beforeprintEventHandler=null,this.afterprintEventHandler=null,this.registerTableOption("printAsHtml",!1),this.registerTableOption("printFormatter",!1),this.registerTableOption("printHeader",!1),this.registerTableOption("printFooter",!1),this.registerTableOption("printStyled",!0),this.registerTableOption("printRowRange","visible"),this.registerTableOption("printConfig",{}),this.registerColumnOption("print"),this.registerColumnOption("titlePrint")}initialize(){this.table.options.printAsHtml&&(this.beforeprintEventHandler=this.replaceTable.bind(this),this.afterprintEventHandler=this.cleanup.bind(this),window.addEventListener("beforeprint",this.beforeprintEventHandler),window.addEventListener("afterprint",this.afterprintEventHandler),this.subscribe("table-destroy",this.destroy.bind(this))),this.registerTableFunction("print",this.printFullscreen.bind(this))}destroy(){this.table.options.printAsHtml&&(window.removeEventListener("beforeprint",this.beforeprintEventHandler),window.removeEventListener("afterprint",this.afterprintEventHandler))}replaceTable(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.generateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))}cleanup(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")}printFullscreen(e,t,i){var a=window.scrollX,n=window.scrollY,r=document.createElement("div"),l=document.createElement("div"),h=this.table.modules.export.generateTable(typeof i<"u"?i:this.table.options.printConfig,typeof t<"u"?t:this.table.options.printStyled,e||this.table.options.printRowRange,"print"),d,u;this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(r.classList.add("tabulator-print-header"),d=typeof this.table.options.printHeader=="function"?this.table.options.printHeader.call(this.table):this.table.options.printHeader,typeof d=="string"?r.innerHTML=d:r.appendChild(d),this.element.appendChild(r)),this.element.appendChild(h),this.table.options.printFooter&&(l.classList.add("tabulator-print-footer"),u=typeof this.table.options.printFooter=="function"?this.table.options.printFooter.call(this.table):this.table.options.printFooter,typeof u=="string"?l.innerHTML=u:l.appendChild(u),this.element.appendChild(l)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,h),window.print(),this.cleanup(),window.scrollTo(a,n),this.manualBlock=!1}}E(zx,"moduleName","print");class Rx extends B{constructor(e){super(e),this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0,this.registerTableOption("reactiveData",!1)}initialize(){this.table.options.reactiveData&&(this.subscribe("cell-value-save-before",this.block.bind(this,"cellsave")),this.subscribe("cell-value-save-after",this.unblock.bind(this,"cellsave")),this.subscribe("row-data-save-before",this.block.bind(this,"rowsave")),this.subscribe("row-data-save-after",this.unblock.bind(this,"rowsave")),this.subscribe("row-data-init-after",this.watchRow.bind(this)),this.subscribe("data-processing",this.watchData.bind(this)),this.subscribe("table-destroy",this.unwatchData.bind(this)))}watchData(e){var t=this,i;this.currentVersion++,i=this.currentVersion,this.unwatchData(),this.data=e,this.origFuncs.push=e.push,Object.defineProperty(this.data,"push",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n;return!t.blocked&&i===t.currentVersion&&(t.block("data-push"),a.forEach(r=>{t.table.rowManager.addRowActual(r,!1)}),n=t.origFuncs.push.apply(e,arguments),t.unblock("data-push")),n}}),this.origFuncs.unshift=e.unshift,Object.defineProperty(this.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n;return!t.blocked&&i===t.currentVersion&&(t.block("data-unshift"),a.forEach(r=>{t.table.rowManager.addRowActual(r,!0)}),n=t.origFuncs.unshift.apply(e,arguments),t.unblock("data-unshift")),n}}),this.origFuncs.shift=e.shift,Object.defineProperty(this.data,"shift",{enumerable:!1,configurable:!0,value:function(){var a,n;return!t.blocked&&i===t.currentVersion&&(t.block("data-shift"),t.data.length&&(a=t.table.rowManager.getRowFromDataObject(t.data[0]),a&&a.deleteActual()),n=t.origFuncs.shift.call(e),t.unblock("data-shift")),n}}),this.origFuncs.pop=e.pop,Object.defineProperty(this.data,"pop",{enumerable:!1,configurable:!0,value:function(){var a,n;return!t.blocked&&i===t.currentVersion&&(t.block("data-pop"),t.data.length&&(a=t.table.rowManager.getRowFromDataObject(t.data[t.data.length-1]),a&&a.deleteActual()),n=t.origFuncs.pop.call(e),t.unblock("data-pop")),n}}),this.origFuncs.splice=e.splice,Object.defineProperty(this.data,"splice",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n=a[0]<0?e.length+a[0]:a[0],r=a[1],l=a[2]?a.slice(2):!1,h,d;if(!t.blocked&&i===t.currentVersion){if(t.block("data-splice"),l&&(h=e[n]?t.table.rowManager.getRowFromDataObject(e[n]):!1,h?l.forEach(p=>{t.table.rowManager.addRowActual(p,!0,h,!0)}):(l=l.slice().reverse(),l.forEach(p=>{t.table.rowManager.addRowActual(p,!0,!1,!0)}))),r!==0){var u=e.slice(n,typeof a[1]>"u"?a[1]:n+r);u.forEach((p,y)=>{var f=t.table.rowManager.getRowFromDataObject(p);f&&f.deleteActual(y!==u.length-1)})}(l||r!==0)&&t.table.rowManager.reRenderInPosition(),d=t.origFuncs.splice.apply(e,arguments),t.unblock("data-splice")}return d}})}unwatchData(){if(this.data!==!1)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})}watchRow(e){var t=e.getData();for(var i in t)this.watchKey(e,t,i);this.table.options.dataTree&&this.watchTreeChildren(e)}watchTreeChildren(e){var t=this,i=e.getData()[this.table.options.dataTreeChildField],a={};i&&(a.push=i.push,Object.defineProperty(i,"push",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-push");var n=a.push.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-push")}return n}}),a.unshift=i.unshift,Object.defineProperty(i,"unshift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-unshift");var n=a.unshift.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-unshift")}return n}}),a.shift=i.shift,Object.defineProperty(i,"shift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-shift");var n=a.shift.call(i);this.rebuildTree(e),t.unblock("tree-shift")}return n}}),a.pop=i.pop,Object.defineProperty(i,"pop",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-pop");var n=a.pop.call(i);this.rebuildTree(e),t.unblock("tree-pop")}return n}}),a.splice=i.splice,Object.defineProperty(i,"splice",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-splice");var n=a.splice.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-splice")}return n}}))}rebuildTree(e){this.table.modules.dataTree.initializeRow(e),this.table.modules.dataTree.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)}watchKey(e,t,i){var a=this,n=Object.getOwnPropertyDescriptor(t,i),r=t[i],l=this.currentVersion;Object.defineProperty(t,i,{set:h=>{if(r=h,!a.blocked&&l===a.currentVersion){a.block("key");var d={};d[i]=h,e.updateData(d),a.unblock("key")}n.set&&n.set(h)},get:()=>(n.get&&n.get(),r)})}unwatchRow(e){var t=e.getData();for(var i in t)Object.defineProperty(t,i,{value:t[i]})}block(e){this.blocked||(this.blocked=e)}unblock(e){this.blocked===e&&(this.blocked=!1)}}E(Rx,"moduleName","reactiveData");class Hx extends B{constructor(e){super(e),this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.latestX=!1,this.handle=null,this.initialNextColumn=null,this.nextColumn=null,this.initialized=!1,this.registerColumnOption("resizable",!0),this.registerTableOption("resizableColumnFit",!1),this.registerTableOption("resizableColumnGuide",!1)}initialize(){this.subscribe("column-rendered",this.layoutColumnHeader.bind(this))}initializeEventWatchers(){this.initialized||(this.subscribe("cell-rendered",this.layoutCellHandles.bind(this)),this.subscribe("cell-delete",this.deInitializeComponent.bind(this)),this.subscribe("cell-height",this.resizeHandle.bind(this)),this.subscribe("column-moved",this.columnLayoutUpdated.bind(this)),this.subscribe("column-hide",this.deInitializeColumn.bind(this)),this.subscribe("column-show",this.columnLayoutUpdated.bind(this)),this.subscribe("column-width",this.columnWidthUpdated.bind(this)),this.subscribe("column-delete",this.deInitializeComponent.bind(this)),this.subscribe("column-height",this.resizeHandle.bind(this)),this.initialized=!0)}layoutCellHandles(e){e.row.type==="row"&&(this.deInitializeComponent(e),this.initializeColumn("cell",e,e.column,e.element))}layoutColumnHeader(e){e.definition.resizable&&(this.initializeEventWatchers(),this.deInitializeComponent(e),this.initializeColumn("header",e,e,e.element))}columnLayoutUpdated(e){var t=e.prevColumn();this.reinitializeColumn(e),t&&this.reinitializeColumn(t)}columnWidthUpdated(e){e.modules.frozen&&(this.table.modules.frozenColumns.leftColumns.includes(e)?this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.reinitializeColumn(t)}):this.table.modules.frozenColumns.rightColumns.includes(e)&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.reinitializeColumn(t)}))}frozenColumnOffset(e){var t=!1;return e.modules.frozen&&(t=e.modules.frozen.marginValue,e.modules.frozen.position==="left"?t+=e.getWidth()-3:t&&(t-=3)),t!==!1?t+"px":!1}reinitializeColumn(e){var t=this.frozenColumnOffset(e);e.cells.forEach(i=>{i.modules.resize&&i.modules.resize.handleEl&&(t&&(i.modules.resize.handleEl.style[e.modules.frozen.position]=t,i.modules.resize.handleEl.style["z-index"]=11),i.element.after(i.modules.resize.handleEl))}),e.modules.resize&&e.modules.resize.handleEl&&(t&&(e.modules.resize.handleEl.style[e.modules.frozen.position]=t),e.element.after(e.modules.resize.handleEl))}initializeColumn(e,t,i,a){var n=this,r=!1,l=i.definition.resizable,h={},d=i.getLastColumn();if(e==="header"&&(r=i.definition.formatter=="textarea"||i.definition.variableHeight,h={variableHeight:r}),(l===!0||l==e)&&this._checkResizability(d)){var u=document.createElement("span");u.className="tabulator-col-resize-handle",u.addEventListener("click",function(y){y.stopPropagation()});var p=function(y){n.startColumn=i,n.initialNextColumn=n.nextColumn=d.nextColumn(),n._mouseDown(y,d,u)};u.addEventListener("mousedown",p),u.addEventListener("touchstart",p,{passive:!0}),u.addEventListener("dblclick",y=>{var f=d.getWidth();y.stopPropagation(),d.reinitializeWidth(!0),f!==d.getWidth()&&(n.dispatch("column-resized",d),n.dispatchExternal("columnResized",d.getComponent()))}),i.modules.frozen&&(u.style.position="sticky",u.style[i.modules.frozen.position]=this.frozenColumnOffset(i)),h.handleEl=u,a.parentNode&&i.visible&&a.after(u)}t.modules.resize=h}deInitializeColumn(e){this.deInitializeComponent(e),e.cells.forEach(t=>{this.deInitializeComponent(t)})}deInitializeComponent(e){var t;e.modules.resize&&(t=e.modules.resize.handleEl,t&&t.parentElement&&t.parentElement.removeChild(t))}resizeHandle(e,t){e.modules.resize&&e.modules.resize.handleEl&&(e.modules.resize.handleEl.style.height=t)}resize(e,t){var i=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,a=i-this.startX,n=i-this.latestX,r,l;if(this.latestX=i,this.table.rtl&&(a=-a,n=-n),r=t.width==t.minWidth||t.width==t.maxWidth,t.setWidth(this.startWidth+a),l=t.width==t.minWidth||t.width==t.maxWidth,n<0&&(this.nextColumn=this.initialNextColumn),this.table.options.resizableColumnFit&&this.nextColumn&&!(r&&l)){let h=this.nextColumn.getWidth();n>0&&h<=this.nextColumn.minWidth&&(this.nextColumn=this.nextColumn.nextColumn()),this.nextColumn&&this.nextColumn.setWidth(this.nextColumn.getWidth()-n)}this.table.columnManager.rerenderColumns(!0),!this.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}calcGuidePosition(e,t,i){var a=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,n=i.getBoundingClientRect().x-this.table.element.getBoundingClientRect().x,r=this.table.element.getBoundingClientRect().x,l=t.element.getBoundingClientRect().left-r,h=a-this.startX,d=Math.max(n+h,l+t.minWidth);return t.maxWidth&&(d=Math.min(d,l+t.maxWidth)),d}_checkResizability(e){return e.definition.resizable}_mouseDown(e,t,i){var a=this,n;this.dispatchExternal("columnResizing",t.getComponent()),a.table.options.resizableColumnGuide&&(n=document.createElement("span"),n.classList.add("tabulator-col-resize-guide"),a.table.element.appendChild(n),setTimeout(()=>{n.style.left=a.calcGuidePosition(e,t,i)+"px"})),a.table.element.classList.add("tabulator-block-select");function r(h){a.table.options.resizableColumnGuide?n.style.left=a.calcGuidePosition(h,t,i)+"px":a.resize(h,t)}function l(h){a.table.options.resizableColumnGuide&&(a.resize(h,t),n.remove()),a.startColumn.modules.edit&&(a.startColumn.modules.edit.blocked=!1),a.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",l),document.body.removeEventListener("mousemove",r),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",l),a.table.element.classList.remove("tabulator-block-select"),a.startWidth!==t.getWidth()&&(a.table.columnManager.verticalAlignHeaders(),a.dispatch("column-resized",t),a.dispatchExternal("columnResized",t.getComponent()))}e.stopPropagation(),a.startColumn.modules.edit&&(a.startColumn.modules.edit.blocked=!0),a.startX=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,a.latestX=a.startX,a.startWidth=t.getWidth(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",r,{passive:!0}),i.addEventListener("touchend",l)}}E(Hx,"moduleName","resizeColumns");class Ax extends B{constructor(e){super(e),this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null,this.registerTableOption("resizableRows",!1),this.registerTableOption("resizableRowGuide",!1)}initialize(){this.table.options.resizableRows&&this.subscribe("row-layout-after",this.initializeRow.bind(this))}initializeRow(e){var t=this,i=e.getElement(),a=document.createElement("div");a.className="tabulator-row-resize-handle";var n=document.createElement("div");n.className="tabulator-row-resize-handle prev",a.addEventListener("click",function(h){h.stopPropagation()});var r=function(h){t.startRow=e,t._mouseDown(h,e,a)};a.addEventListener("mousedown",r),a.addEventListener("touchstart",r,{passive:!0}),n.addEventListener("click",function(h){h.stopPropagation()});var l=function(h){var d=t.table.rowManager.prevDisplayRow(e);d&&(t.startRow=d,t._mouseDown(h,d,n))};n.addEventListener("mousedown",l),n.addEventListener("touchstart",l,{passive:!0}),i.appendChild(a),i.appendChild(n)}resize(e,t){t.setHeight(this.startHeight+((typeof e.screenY>"u"?e.touches[0].screenY:e.screenY)-this.startY))}calcGuidePosition(e,t,i){var a=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,n=i.getBoundingClientRect().y-this.table.element.getBoundingClientRect().y,r=this.table.element.getBoundingClientRect().y,l=t.element.getBoundingClientRect().top-r,h=a-this.startY;return Math.max(n+h,l)}_mouseDown(e,t,i){var a=this,n;a.dispatchExternal("rowResizing",t.getComponent()),a.table.options.resizableRowGuide&&(n=document.createElement("span"),n.classList.add("tabulator-row-resize-guide"),a.table.element.appendChild(n),setTimeout(()=>{n.style.top=a.calcGuidePosition(e,t,i)+"px"})),a.table.element.classList.add("tabulator-block-select");function r(h){a.table.options.resizableRowGuide?n.style.top=a.calcGuidePosition(h,t,i)+"px":a.resize(h,t)}function l(h){a.table.options.resizableRowGuide&&(a.resize(h,t),n.remove()),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",r),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",l),a.table.element.classList.remove("tabulator-block-select"),a.dispatchExternal("rowResized",t.getComponent())}e.stopPropagation(),a.startY=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,a.startHeight=t.getHeight(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",r,{passive:!0}),i.addEventListener("touchend",l)}}E(Ax,"moduleName","resizeRows");class Vx extends B{constructor(e){super(e),this.binding=!1,this.visibilityObserver=!1,this.resizeObserver=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1,this.visible=!1,this.initialized=!1,this.initialRedraw=!1,this.registerTableOption("autoResize",!0)}initialize(){if(this.table.options.autoResize){var e=this.table,t;this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),typeof IntersectionObserver<"u"&&typeof ResizeObserver<"u"&&e.rowManager.getRenderMode()==="virtual"?(this.initializeVisibilityObserver(),this.autoResize=!0,this.resizeObserver=new ResizeObserver(i=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var a=Math.floor(i[0].contentRect.height),n=Math.floor(i[0].contentRect.width);(this.tableHeight!=a||this.tableWidth!=n)&&(this.tableHeight=a,this.tableWidth=n,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),this.redrawTable())}}),this.resizeObserver.observe(e.element),t=window.getComputedStyle(e.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(i=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var a=Math.floor(i[0].contentRect.height),n=Math.floor(i[0].contentRect.width);(this.containerHeight!=a||this.containerWidth!=n)&&(this.containerHeight=a,this.containerWidth=n,this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth),this.redrawTable()}}),this.containerObserver.observe(this.table.element.parentNode)),this.subscribe("table-resize",this.tableResized.bind(this))):(this.binding=function(){(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell))&&(e.columnManager.rerenderColumns(!0),e.redraw())},window.addEventListener("resize",this.binding)),this.subscribe("table-destroy",this.clearBindings.bind(this))}}initializeVisibilityObserver(){this.visibilityObserver=new IntersectionObserver(e=>{this.visible=e[0].isIntersecting,this.initialized?this.visible&&(this.redrawTable(this.initialRedraw),this.initialRedraw=!1):(this.initialized=!0,this.initialRedraw=!this.visible)}),this.visibilityObserver.observe(this.table.element)}redrawTable(e){this.initialized&&this.visible&&(this.table.columnManager.rerenderColumns(!0),this.table.redraw(e))}tableResized(){this.table.rowManager.redraw()}clearBindings(){this.binding&&window.removeEventListener("resize",this.binding),this.resizeObserver&&this.resizeObserver.unobserve(this.table.element),this.visibilityObserver&&this.visibilityObserver.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)}}E(Vx,"moduleName","resizeTable");function TI(o,e,t){var i=document.createElement("div"),a=o.getRow()._row.modules.responsiveLayout;i.classList.add("tabulator-responsive-collapse-toggle"),i.innerHTML=`<svg class='tabulator-responsive-collapse-toggle-open' viewbox="0 0 24 24">
|
|
10
10
|
<line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />
|
|
11
11
|
<line y1="7" x1="12" y2="17" x2="12" fill="none" stroke-width="3" stroke-linecap="round" />
|
|
12
12
|
</svg>
|
|
13
13
|
|
|
14
14
|
<svg class='tabulator-responsive-collapse-toggle-close' viewbox="0 0 24 24">
|
|
15
15
|
<line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />
|
|
16
|
-
</svg>`,o.getElement().classList.add("tabulator-row-handle");function n(r){var l=a.element;a.open=r,l&&(a.open?(i.classList.add("open"),l.style.display=""):(i.classList.remove("open"),l.style.display="none"))}return i.addEventListener("click",function(r){r.stopImmediatePropagation(),n(!a.open),o.getTable().rowManager.adjustTableSize()}),n(a.open),i}var DI={format:{formatters:{responsiveCollapse:TI}}};class O9 extends q{constructor(e){super(e),this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1,this.registerTableOption("responsiveLayout",!1),this.registerTableOption("responsiveLayoutCollapseStartOpen",!0),this.registerTableOption("responsiveLayoutCollapseUseFormatters",!0),this.registerTableOption("responsiveLayoutCollapseFormatter",!1),this.registerColumnOption("responsive")}initialize(){this.table.options.responsiveLayout&&(this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-show",this.updateColumnVisibility.bind(this)),this.subscribe("column-hide",this.updateColumnVisibility.bind(this)),this.subscribe("columns-loaded",this.initializeResponsivity.bind(this)),this.subscribe("column-moved",this.initializeResponsivity.bind(this)),this.subscribe("column-add",this.initializeResponsivity.bind(this)),this.subscribe("column-delete",this.initializeResponsivity.bind(this)),this.subscribe("table-redrawing",this.tableRedraw.bind(this)),this.table.options.responsiveLayout==="collapse"&&(this.subscribe("row-data-changed",this.generateCollapsedRowContent.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout",this.layoutRow.bind(this))))}tableRedraw(e){["fitColumns","fitDataStretch"].indexOf(this.layoutMode())===-1&&(e||this.update())}initializeResponsivity(){var e=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.collapseFormatter&&(this.collapseFormatter=this.collapseFormatter.bind(this.table)),this.table.columnManager.columnsByIndex.forEach((t,i)=>{t.modules.responsive&&t.modules.responsive.order&&t.modules.responsive.visible&&(t.modules.responsive.index=i,e.push(t),!t.visible&&this.mode==="collapse"&&this.hiddenColumns.push(t))}),e=e.reverse(),e=e.sort((t,i)=>{var a=i.modules.responsive.order-t.modules.responsive.order;return a||i.modules.responsive.index-t.modules.responsive.index}),this.columns=e,this.mode==="collapse"&&this.generateCollapsedContent();for(let t of this.table.columnManager.columnsByIndex)if(t.definition.formatter=="responsiveCollapse"){this.collapseHandleColumn=t;break}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())}initializeColumn(e){var t=e.getDefinition();e.modules.responsive={order:typeof t.responsive>"u"?1:t.responsive,visible:t.visible!==!1}}initializeRow(e){var t;e.type!=="calc"&&(t=document.createElement("div"),t.classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))}layoutRow(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))}updateColumnVisibility(e,t){!t&&e.modules.responsive&&(e.modules.responsive.visible=e.visible,this.initializeResponsivity())}hideColumn(e){var t=this.hiddenColumns.length;e.hide(!1,!0),this.mode==="collapse"&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())}showColumn(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),this.mode==="collapse"&&(t=this.hiddenColumns.indexOf(e),t>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())}update(){for(var e=!0;e;){let t=this.table.modules.layout.getMode()=="fitColumns"?this.table.columnManager.getFlexBaseWidth():this.table.columnManager.getWidth(),i=(this.table.options.headerVisible?this.table.columnManager.element.clientWidth:this.table.element.clientWidth)-t;if(i<0){let a=this.columns[this.index];a?(this.hideColumn(a),this.index++):e=!1}else{let a=this.columns[this.index-1];a&&i>0&&i>=a.getWidth()?(this.showColumn(a),this.index--):e=!1}this.table.rowManager.activeRowsCount||this.table.rowManager.renderEmptyScroll()}}generateCollapsedContent(){var e=this.table.rowManager.getDisplayRows();e.forEach(t=>{this.generateCollapsedRowContent(t)})}generateCollapsedRowContent(e){var t,i;if(e.modules.responsiveLayout){for(t=e.modules.responsiveLayout.element;t.firstChild;)t.removeChild(t.firstChild);i=this.collapseFormatter(this.generateCollapsedRowData(e)),i&&t.appendChild(i),e.calcHeight(!0)}}generateCollapsedRowData(e){var t=e.getData(),i=[],a;return this.hiddenColumns.forEach(n=>{var r=n.getFieldValue(t);if(n.definition.title&&n.field)if(n.modules.format&&this.table.options.responsiveLayoutCollapseUseFormatters){let l=function(h){h()};a={value:!1,data:{},getValue:function(){return r},getData:function(){return t},getType:function(){return"cell"},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return n.getComponent()},getTable:()=>this.table},i.push({field:n.field,title:n.definition.title,value:n.modules.format.formatter.call(this.table.modules.format,a,n.modules.format.params,l)})}else i.push({field:n.field,title:n.definition.title,value:r})}),i}formatCollapsedData(e){var t=document.createElement("table");return e.forEach(i=>{var a=document.createElement("tr"),n=document.createElement("td"),r=document.createElement("td"),l,h=document.createElement("strong");n.appendChild(h),this.modules.localize.bind("columns|"+i.field,function(d){h.innerHTML=d||i.title}),i.value instanceof Node?(l=document.createElement("div"),l.appendChild(i.value),r.appendChild(l)):r.innerHTML=i.value,a.appendChild(n),a.appendChild(r),t.appendChild(a)}),Object.keys(e).length?t:""}}E(O9,"moduleName","responsiveLayout"),E(O9,"moduleExtensions",DI);function zI(o,e,t){var i=document.createElement("input"),a=!1;if(i.type="checkbox",i.setAttribute("aria-label","Select Row"),this.table.modExists("selectRow",!0))if(i.addEventListener("click",r=>{r.stopPropagation()}),typeof o.getRow=="function"){var n=o.getRow();n instanceof Z7?(i.addEventListener("change",r=>{this.table.options.selectableRowsRangeMode==="click"&&a?a=!1:n.toggleSelect()}),this.table.options.selectableRowsRangeMode==="click"&&i.addEventListener("click",r=>{a=!0,this.table.modules.selectRow.handleComplexRowClick(n._row,r)}),i.checked=n.isSelected&&n.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(n,i)):i=""}else i.addEventListener("change",r=>{this.table.modules.selectRow.selectedRows.length?this.table.deselectRow():this.table.selectRow(e.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(i);return i}var RI={format:{formatters:{rowSelection:zI}}};class j9 extends q{constructor(e){super(e),this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null,this.registerTableOption("selectableRows","highlight"),this.registerTableOption("selectableRowsRangeMode","drag"),this.registerTableOption("selectableRowsRollingSelection",!0),this.registerTableOption("selectableRowsPersistence",!0),this.registerTableOption("selectableRowsCheck",function(t,i){return!0}),this.registerTableFunction("selectRow",this.selectRows.bind(this)),this.registerTableFunction("deselectRow",this.deselectRows.bind(this)),this.registerTableFunction("toggleSelectRow",this.toggleRow.bind(this)),this.registerTableFunction("getSelectedRows",this.getSelectedRows.bind(this)),this.registerTableFunction("getSelectedData",this.getSelectedData.bind(this)),this.registerComponentFunction("row","select",this.selectRows.bind(this)),this.registerComponentFunction("row","deselect",this.deselectRows.bind(this)),this.registerComponentFunction("row","toggleSelect",this.toggleRow.bind(this)),this.registerComponentFunction("row","isSelected",this.isRowSelected.bind(this))}initialize(){this.deprecatedOptionsCheck(),this.table.options.selectableRows==="highlight"&&this.table.options.selectableRange&&(this.table.options.selectableRows=!1),this.table.options.selectableRows!==!1&&(this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-deleting",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clearSelectionData.bind(this)),this.subscribe("rows-retrieve",this.rowRetrieve.bind(this)),this.table.options.selectableRows&&!this.table.options.selectableRowsPersistence&&this.subscribe("data-refreshing",this.deselectRows.bind(this)))}deprecatedOptionsCheck(){}rowRetrieve(e,t){return e==="selected"?this.selectedRows:t}rowDeleted(e){this._deselectRow(e,!0)}clearSelectionData(e){var t=this.selectedRows.length;this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],t&&e!==!0&&this._rowSelectionChanged()}initializeRow(e){var t=this,i=t.checkRowSelectability(e),a=e.getElement(),n=function(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",n)};e.modules.select={selected:!1},a.classList.toggle("tabulator-selectable",i),a.classList.toggle("tabulator-unselectable",!i),t.checkRowSelectability(e)&&t.table.options.selectableRows&&t.table.options.selectableRows!="highlight"&&(t.table.options.selectableRowsRangeMode==="click"?a.addEventListener("click",this.handleComplexRowClick.bind(this,e)):(a.addEventListener("click",function(r){(!t.table.modExists("edit")||!t.table.modules.edit.getCurrentCell())&&t.table._clearSelection(),t.selecting||t.toggleRow(e)}),a.addEventListener("mousedown",function(r){if(r.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",n),document.body.addEventListener("keyup",n),t.toggleRow(e),!1}),a.addEventListener("mouseenter",function(r){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),a.addEventListener("mouseout",function(r){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))}handleComplexRowClick(e,t){if(t.shiftKey){this.table._clearSelection(),this.lastClickedRow=this.lastClickedRow||e;var i=this.table.rowManager.getDisplayRowIndex(this.lastClickedRow),a=this.table.rowManager.getDisplayRowIndex(e),n=i<=a?i:a,r=i>=a?i:a,l=this.table.rowManager.getDisplayRows().slice(0),h=l.splice(n,r-n+1);t.ctrlKey||t.metaKey?(h.forEach(d=>{d!==this.lastClickedRow&&(this.table.options.selectableRows!==!0&&!this.isRowSelected(e)?this.selectedRows.length<this.table.options.selectableRows&&this.toggleRow(d):this.toggleRow(d))}),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.table.options.selectableRows!==!0&&h.length>this.table.options.selectableRows&&(h=h.slice(0,this.table.options.selectableRows)),this.selectRows(h)),this.table._clearSelection()}else t.ctrlKey||t.metaKey?(this.toggleRow(e),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.selectRows(e),this.lastClickedRow=e)}checkRowSelectability(e){return e&&e.type==="row"?this.table.options.selectableRowsCheck.call(this.table,e.getComponent()):!1}toggleRow(e){this.checkRowSelectability(e)&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))}selectRows(e){var t=[],i,a;switch(typeof e){case"undefined":i=this.table.rowManager.rows;break;case"number":i=this.table.rowManager.findRow(e);break;case"string":i=this.table.rowManager.findRow(e),i||(i=this.table.rowManager.getRows(e));break;default:i=e;break}Array.isArray(i)?i.length&&(i.forEach(n=>{a=this._selectRow(n,!0,!0),a&&t.push(a)}),this._rowSelectionChanged(!1,t)):i&&this._selectRow(i,!1,!0)}_selectRow(e,t,i){if(!isNaN(this.table.options.selectableRows)&&this.table.options.selectableRows!==!0&&!i&&this.selectedRows.length>=this.table.options.selectableRows)if(this.table.options.selectableRowsRollingSelection)this._deselectRow(this.selectedRows[0]);else return!1;var a=this.table.rowManager.findRow(e);if(a){if(this.selectedRows.indexOf(a)==-1)return a.getElement().classList.add("tabulator-selected"),a.modules.select||(a.modules.select={}),a.modules.select.selected=!0,a.modules.select.checkboxEl&&(a.modules.select.checkboxEl.checked=!0),this.selectedRows.push(a),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(a,!0),this.dispatchExternal("rowSelected",a.getComponent()),this._rowSelectionChanged(t,a),a}else t||console.warn("Selection Error - No such row found, ignoring selection:"+e)}isRowSelected(e){return this.selectedRows.indexOf(e)!==-1}deselectRows(e,t){var i=[],a,n;switch(typeof e){case"undefined":a=Object.assign([],this.selectedRows);break;case"number":a=this.table.rowManager.findRow(e);break;case"string":a=this.table.rowManager.findRow(e),a||(a=this.table.rowManager.getRows(e));break;default:a=e;break}Array.isArray(a)?a.length&&(a.forEach(r=>{n=this._deselectRow(r,!0,!0),n&&i.push(n)}),this._rowSelectionChanged(t,[],i)):a&&this._deselectRow(a,t,!0)}_deselectRow(e,t){var i=this,a=i.table.rowManager.findRow(e),n,r;if(a){if(n=i.selectedRows.findIndex(function(l){return l==a}),n>-1)return r=a.getElement(),r&&r.classList.remove("tabulator-selected"),a.modules.select||(a.modules.select={}),a.modules.select.selected=!1,a.modules.select.checkboxEl&&(a.modules.select.checkboxEl.checked=!1),i.selectedRows.splice(n,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(a,!1),this.dispatchExternal("rowDeselected",a.getComponent()),i._rowSelectionChanged(t,void 0,a),a}else t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)}getSelectedData(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getData())}),e}getSelectedRows(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getComponent())}),e}_rowSelectionChanged(e,t=[],i=[]){this.headerCheckboxElement&&(this.selectedRows.length===0?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||(Array.isArray(t)||(t=[t]),t=t.map(a=>a.getComponent()),Array.isArray(i)||(i=[i]),i=i.map(a=>a.getComponent()),this.dispatchExternal("rowSelectionChanged",this.getSelectedData(),this.getSelectedRows(),t,i))}registerRowSelectCheckbox(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t}registerHeaderSelectCheckbox(e){this.headerCheckboxElement=e}childRowSelection(e,t){var i=this.table.modules.dataTree.getChildren(e,!0,!0);if(t)for(let a of i)this._selectRow(a,!0);else for(let a of i)this._deselectRow(a,!0)}}E(j9,"moduleName","selectRow"),E(j9,"moduleExtensions",RI);class HI{constructor(e){return this._range=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._range.table.componentFunctionBinder.handle("range",t._range,i)}})}getElement(){return this._range.element}getData(){return this._range.getData()}getCells(){return this._range.getCells(!0,!0)}getStructuredCells(){return this._range.getStructuredCells()}getRows(){return this._range.getRows().map(e=>e.getComponent())}getColumns(){return this._range.getColumns().map(e=>e.getComponent())}getBounds(){return this._range.getBounds()}getTopEdge(){return this._range.top}getBottomEdge(){return this._range.bottom}getLeftEdge(){return this._range.left}getRightEdge(){return this._range.right}setBounds(e,t){this._range.destroyedGuard("setBounds")&&this._range.setBounds(e&&e._cell,t&&t._cell)}setStartBound(e){this._range.destroyedGuard("setStartBound")&&(this._range.setEndBound(e&&e._cell),this._range.rangeManager.layoutElement())}setEndBound(e){this._range.destroyedGuard("setEndBound")&&(this._range.setEndBound(e&&e._cell),this._range.rangeManager.layoutElement())}clearValues(){this._range.destroyedGuard("clearValues")&&this._range.clearValues()}remove(){this._range.destroyedGuard("remove")&&this._range.destroy(!0)}}class AI extends te{constructor(e,t,i,a){super(e),this.rangeManager=t,this.element=null,this.initialized=!1,this.initializing={start:!1,end:!1},this.destroyed=!1,this.top=0,this.bottom=0,this.left=0,this.right=0,this.table=e,this.start={row:0,col:0},this.end={row:0,col:0},this.rangeManager.rowHeader&&(this.left=1,this.right=1,this.start.col=1,this.end.col=1),this.initElement(),setTimeout(()=>{this.initBounds(i,a)})}initElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-range")}initBounds(e,t){this._updateMinMax(),e&&this.setBounds(e,t||e)}setStart(e,t){(this.start.row!==e||this.start.col!==t)&&(this.start.row=e,this.start.col=t,this.initializing.start=!0,this._updateMinMax())}setEnd(e,t){(this.end.row!==e||this.end.col!==t)&&(this.end.row=e,this.end.col=t,this.initializing.end=!0,this._updateMinMax())}setBounds(e,t,i){e&&this.setStartBound(e),this.setEndBound(t||e),this.rangeManager.layoutElement(i)}setStartBound(e){var t,i;e.type==="column"?this.rangeManager.columnSelection&&this.setStart(0,e.getPosition()-1):(t=e.row.position-1,i=e.column.getPosition()-1,e.column===this.rangeManager.rowHeader?this.setStart(t,1):this.setStart(t,i))}setEndBound(e){var t=this._getTableRows().length,i,a,n;e.type==="column"?this.rangeManager.columnSelection&&(this.rangeManager.selecting==="column"?this.setEnd(t-1,e.getPosition()-1):this.rangeManager.selecting==="cell"&&this.setEnd(0,e.getPosition()-1)):(i=e.row.position-1,a=e.column.getPosition()-1,n=e.column===this.rangeManager.rowHeader,this.rangeManager.selecting==="row"?this.setEnd(i,this._getTableColumns().length-1):this.rangeManager.selecting!=="row"&&n?this.setEnd(i,0):this.rangeManager.selecting==="column"?this.setEnd(t-1,a):this.setEnd(i,a))}_updateMinMax(){this.top=Math.min(this.start.row,this.end.row),this.bottom=Math.max(this.start.row,this.end.row),this.left=Math.min(this.start.col,this.end.col),this.right=Math.max(this.start.col,this.end.col),this.initialized?this.dispatchExternal("rangeChanged",this.getComponent()):this.initializing.start&&this.initializing.end&&(this.initialized=!0,this.dispatchExternal("rangeAdded",this.getComponent()))}_getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}_getTableRows(){return this.table.rowManager.getDisplayRows().filter(e=>e.type==="row")}layout(){var e=this.table.rowManager.renderer.vDomTop,t=this.table.rowManager.renderer.vDomBottom,i=this.table.columnManager.renderer.leftCol,a=this.table.columnManager.renderer.rightCol,n,r,l,h,d,u,p,y,f,g;this.table.options.renderHorizontal==="virtual"&&this.rangeManager.rowHeader&&(a+=1),e==null&&(e=0),t==null&&(t=1/0),i==null&&(i=0),a==null&&(a=1/0),this.overlaps(i,e,a,t)&&(n=Math.max(this.top,e),r=Math.min(this.bottom,t),l=Math.max(this.left,i),h=Math.min(this.right,a),d=this.rangeManager.getCell(n,l),u=this.rangeManager.getCell(r,h),p=d.getElement(),y=u.getElement(),f=d.row.getElement(),g=u.row.getElement(),this.element.classList.add("tabulator-range-active"),this.table.rtl?(this.element.style.right=f.offsetWidth-p.offsetLeft-p.offsetWidth+"px",this.element.style.width=p.offsetLeft+p.offsetWidth-y.offsetLeft+"px"):(this.element.style.left=f.offsetLeft+p.offsetLeft+"px",this.element.style.width=y.offsetLeft+y.offsetWidth-p.offsetLeft+"px"),this.element.style.top=f.offsetTop+"px",this.element.style.height=g.offsetTop+g.offsetHeight-f.offsetTop+"px")}atTopLeft(e){return e.row.position-1===this.top&&e.column.getPosition()-1===this.left}atBottomRight(e){return e.row.position-1===this.bottom&&e.column.getPosition()-1===this.right}occupies(e){return this.occupiesRow(e.row)&&this.occupiesColumn(e.column)}occupiesRow(e){return this.top<=e.position-1&&e.position-1<=this.bottom}occupiesColumn(e){return this.left<=e.getPosition()-1&&e.getPosition()-1<=this.right}overlaps(e,t,i,a){return!(this.left>i||e>this.right||this.top>a||t>this.bottom)}getData(){var e=[],t=this.getRows(),i=this.getColumns();return t.forEach(a=>{var n=a.getData(),r={};i.forEach(l=>{r[l.field]=n[l.field]}),e.push(r)}),e}getCells(e,t){var i=[],a=this.getRows(),n=this.getColumns();return e?i=a.map(r=>{var l=[];return r.getCells().forEach(h=>{n.includes(h.column)&&l.push(t?h.getComponent():h)}),l}):a.forEach(r=>{r.getCells().forEach(l=>{n.includes(l.column)&&i.push(t?l.getComponent():l)})}),i}getStructuredCells(){return this.getCells(!0,!0)}getRows(){return this._getTableRows().slice(this.top,this.bottom+1)}getColumns(){return this._getTableColumns().slice(this.left,this.right+1)}clearValues(){var e=this.getCells(),t=this.table.options.selectableRangeClearCellsValue;this.table.blockRedraw(),e.forEach(i=>{i.setValue(t)}),this.table.restoreRedraw()}getBounds(e){var t=this.getCells(!1,e),i={start:null,end:null};return t.length?(i.start=t[0],i.end=t[t.length-1]):console.warn("No bounds defined on range"),i}getComponent(){return this.component||(this.component=new HI(this)),this.component}destroy(e){this.destroyed=!0,this.element.remove(),e&&this.rangeManager.rangeRemoved(this),this.initialized&&this.dispatchExternal("rangeRemoved",this.getComponent())}destroyedGuard(e){return this.destroyed&&console.warn("You cannot call the "+e+" function on a destroyed range"),!this.destroyed}}var VI={rangeJumpUp:["ctrl + 38","meta + 38"],rangeJumpDown:["ctrl + 40","meta + 40"],rangeJumpLeft:["ctrl + 37","meta + 37"],rangeJumpRight:["ctrl + 39","meta + 39"],rangeExpandUp:"shift + 38",rangeExpandDown:"shift + 40",rangeExpandLeft:"shift + 37",rangeExpandRight:"shift + 39",rangeExpandJumpUp:["ctrl + shift + 38","meta + shift + 38"],rangeExpandJumpDown:["ctrl + shift + 40","meta + shift + 40"],rangeExpandJumpLeft:["ctrl + shift + 37","meta + shift + 37"],rangeExpandJumpRight:["ctrl + shift + 39","meta + shift + 39"]},PI={rangeJumpLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!0,!1)},rangeJumpRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!0,!1)},rangeJumpUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!0,!1)},rangeJumpDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!0,!1)},rangeExpandLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!1,!0)},rangeExpandRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!1,!0)},rangeExpandUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!1,!0)},rangeExpandDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!1,!0)},rangeExpandJumpLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!0,!0)},rangeExpandJumpRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!0,!0)},rangeExpandJumpUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!0,!0)},rangeExpandJumpDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!0,!0)}},qI={range:function(o){var e=[],t=this.table.modules.selectRange.activeRange,i=!1,a,n,r,l,h;return h=o.length,t&&(a=t.getBounds(),n=a.start,a.start===a.end&&(i=!0),n&&(e=this.table.rowManager.activeRows.slice(),r=e.indexOf(n.row),i?l=o.length:l=e.indexOf(a.end.row)-r+1,r>-1&&(this.table.blockRedraw(),e=e.slice(r,r+l),e.forEach((d,u)=>{d.updateData(o[u%h])}),this.table.restoreRedraw()))),e}},BI={range:function(o){var e=[],t=[],i=this.table.modules.selectRange.activeRange,a=!1,n,r,l,h,d;return i&&(n=i.getBounds(),r=n.start,n.start===n.end&&(a=!0),r&&(o=o.split(`
|
|
17
|
-
`),o.forEach(function(u){e.push(u.split(" "))}),e.length&&(h=this.table.columnManager.getVisibleColumnsByIndex(),d=h.indexOf(r.column),d>-1)))?(a?l=e[0].length:l=h.indexOf(n.end.column)-d+1,h=h.slice(d,d+l),e.forEach(u=>{var p={},y=u.length;h.forEach(function(f,g){p[f.field]=u[g%y]}),t.push(p)}),t):!1}},FI={range:function(){var o=this.modules.selectRange.selectedColumns();return this.columnManager.rowHeader&&o.unshift(this.columnManager.rowHeader),o}},OI={range:function(){return this.modules.selectRange.selectedRows()}},jI={keybindings:{bindings:VI,actions:PI},clipboard:{pasteActions:qI,pasteParsers:BI},export:{columnLookups:FI,rowLookups:OI}};class Wn extends q{constructor(e){super(e),this.selecting="cell",this.mousedown=!1,this.ranges=[],this.overlay=null,this.rowHeader=null,this.layoutChangeTimeout=null,this.columnSelection=!1,this.rowSelection=!1,this.maxRanges=0,this.activeRange=!1,this.blockKeydown=!1,this.keyDownEvent=this._handleKeyDown.bind(this),this.mouseUpEvent=this._handleMouseUp.bind(this),this.registerTableOption("selectableRange",!1),this.registerTableOption("selectableRangeColumns",!1),this.registerTableOption("selectableRangeRows",!1),this.registerTableOption("selectableRangeClearCells",!1),this.registerTableOption("selectableRangeClearCellsValue",void 0),this.registerTableOption("selectableRangeAutoFocus",!0),this.registerTableFunction("getRangesData",this.getRangesData.bind(this)),this.registerTableFunction("getRanges",this.getRanges.bind(this)),this.registerTableFunction("addRange",this.addRangeFromComponent.bind(this)),this.registerComponentFunction("cell","getRanges",this.cellGetRanges.bind(this)),this.registerComponentFunction("row","getRanges",this.rowGetRanges.bind(this)),this.registerComponentFunction("column","getRanges",this.colGetRanges.bind(this))}initialize(){this.options("selectableRange")&&(this.options("selectableRows")?console.warn("SelectRange functionality cannot be used in conjunction with row selection"):(this.maxRanges=this.options("selectableRange"),this.initializeTable(),this.initializeWatchers()),this.options("columns").findIndex(e=>e.frozen)>0&&console.warn("Having frozen column in arbitrary position with selectRange option may result in unpredictable behavior."),this.options("columns").filter(e=>e.frozen)>1&&console.warn("Having multiple frozen columns with selectRange option may result in unpredictable behavior."))}initializeTable(){this.overlay=document.createElement("div"),this.overlay.classList.add("tabulator-range-overlay"),this.rangeContainer=document.createElement("div"),this.rangeContainer.classList.add("tabulator-range-container"),this.activeRangeCellElement=document.createElement("div"),this.activeRangeCellElement.classList.add("tabulator-range-cell-active"),this.overlay.appendChild(this.rangeContainer),this.overlay.appendChild(this.activeRangeCellElement),this.table.rowManager.element.addEventListener("keydown",this.keyDownEvent),this.resetRanges(),this.table.rowManager.element.appendChild(this.overlay),this.table.columnManager.element.setAttribute("tabindex",0),this.table.element.classList.add("tabulator-ranges")}initializeWatchers(){this.columnSelection=this.options("selectableRangeColumns"),this.rowSelection=this.options("selectableRangeRows"),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-mousedown",this.handleColumnMouseDown.bind(this)),this.subscribe("column-mousemove",this.handleColumnMouseMove.bind(this)),this.subscribe("column-resized",this.handleColumnResized.bind(this)),this.subscribe("column-moving",this.handleColumnMoving.bind(this)),this.subscribe("column-moved",this.handleColumnMoved.bind(this)),this.subscribe("column-width",this.layoutChange.bind(this)),this.subscribe("column-height",this.layoutChange.bind(this)),this.subscribe("column-resized",this.layoutChange.bind(this)),this.subscribe("columns-loaded",this.updateHeaderColumn.bind(this)),this.subscribe("cell-height",this.layoutChange.bind(this)),this.subscribe("cell-rendered",this.renderCell.bind(this)),this.subscribe("cell-mousedown",this.handleCellMouseDown.bind(this)),this.subscribe("cell-mousemove",this.handleCellMouseMove.bind(this)),this.subscribe("cell-click",this.handleCellClick.bind(this)),this.subscribe("cell-editing",this.handleEditingCell.bind(this)),this.subscribe("page-changed",this.redraw.bind(this)),this.subscribe("scroll-vertical",this.layoutChange.bind(this)),this.subscribe("scroll-horizontal",this.layoutChange.bind(this)),this.subscribe("data-destroy",this.tableDestroyed.bind(this)),this.subscribe("data-processed",this.resetRanges.bind(this)),this.subscribe("table-layout",this.layoutElement.bind(this)),this.subscribe("table-redraw",this.redraw.bind(this)),this.subscribe("table-destroy",this.tableDestroyed.bind(this)),this.subscribe("edit-editor-clear",this.finishEditingCell.bind(this)),this.subscribe("edit-blur",this.restoreFocus.bind(this)),this.subscribe("keybinding-nav-prev",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-next",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-left",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-right",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-up",this.keyNavigate.bind(this,"up")),this.subscribe("keybinding-nav-down",this.keyNavigate.bind(this,"down")),this.subscribe("keybinding-nav-range",this.keyNavigateRange.bind(this))}initializeColumn(e){this.columnSelection&&e.definition.headerSort&&this.options("headerSortClickElement")!=="icon"&&console.warn("Using column headerSort with selectableRangeColumns option may result in unpredictable behavior. Consider using headerSortClickElement: 'icon'."),e.modules.edit}updateHeaderColumn(){var e;this.rowSelection&&(this.rowHeader=this.table.columnManager.getVisibleColumnsByIndex()[0],this.rowHeader&&(this.rowHeader.definition.cssClass=this.rowHeader.definition.cssClass+" tabulator-range-row-header",this.rowHeader.definition.headerSort&&console.warn("Using column headerSort with selectableRangeRows option may result in unpredictable behavior"),this.rowHeader.definition.editor&&console.warn("Using column editor with selectableRangeRows option may result in unpredictable behavior"))),this.table.modules.frozenColumns&&this.table.modules.frozenColumns.active&&(e=this.table.modules.frozenColumns.getFrozenColumns(),(e.length>1||e.length===1&&e[0]!==this.rowHeader)&&console.warn("Using frozen columns that are not the range header in combination with the selectRange option may result in unpredictable behavior"))}getRanges(){return this.ranges.map(e=>e.getComponent())}getRangesData(){return this.ranges.map(e=>e.getData())}addRangeFromComponent(e,t){return e=e?e._cell:null,t=t?t._cell:null,this.addRange(e,t)}cellGetRanges(e){var t=[];return e.column===this.rowHeader?t=this.ranges.filter(i=>i.occupiesRow(e.row)):t=this.ranges.filter(i=>i.occupies(e)),t.map(i=>i.getComponent())}rowGetRanges(e){var t=this.ranges.filter(i=>i.occupiesRow(e));return t.map(i=>i.getComponent())}colGetRanges(e){var t=this.ranges.filter(i=>i.occupiesColumn(e));return t.map(i=>i.getComponent())}_handleMouseUp(e){this.mousedown=!1,document.removeEventListener("mouseup",this.mouseUpEvent)}_handleKeyDown(e){if(!this.blockKeydown&&(!this.table.modules.edit||this.table.modules.edit&&!this.table.modules.edit.currentCell)){if(e.key==="Enter"){if(this.table.modules.edit&&this.table.modules.edit.currentCell)return;this.table.modules.edit.editCell(this.getActiveCell()),e.preventDefault()}(e.key==="Backspace"||e.key==="Delete")&&this.options("selectableRangeClearCells")&&this.activeRange&&this.activeRange.clearValues()}}initializeFocus(e){var t;this.restoreFocus();try{document.selection?(t=document.body.createTextRange(),t.moveToElementText(e.getElement()),t.select()):window.getSelection&&(t=document.createRange(),t.selectNode(e.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(t))}catch{}}restoreFocus(e){return this.table.rowManager.element.focus(),!0}handleColumnResized(e){var t;this.selecting!=="column"&&this.selecting!=="all"||(t=this.ranges.some(i=>i.occupiesColumn(e)),t&&this.ranges.forEach(i=>{var a=i.getColumns(!0);a.forEach(n=>{n!==e&&n.setWidth(e.width)})}))}handleColumnMoving(e,t){this.resetRanges().setBounds(t),this.overlay.style.visibility="hidden"}handleColumnMoved(e,t,i){this.activeRange.setBounds(e),this.layoutElement()}handleColumnMouseDown(e,t){e.button===2&&(this.selecting==="column"||this.selecting==="all")&&this.activeRange.occupiesColumn(t)||this.table.options.movableColumns&&this.selecting==="column"&&this.activeRange.occupiesColumn(t)||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleColumnMouseMove(e,t){t===this.rowHeader||!this.mousedown||this.selecting==="all"||this.activeRange.setBounds(!1,t,!0)}renderCell(e){var t=e.getElement(),i=this.ranges.findIndex(a=>a.occupies(e));t.classList.toggle("tabulator-range-selected",i!==-1),t.classList.toggle("tabulator-range-only-cell-selected",this.ranges.length===1&&this.ranges[0].atTopLeft(e)&&this.ranges[0].atBottomRight(e)),t.dataset.range=i}handleCellMouseDown(e,t){e.button===2&&(this.activeRange.occupies(t)||(this.selecting==="row"||this.selecting==="all")&&this.activeRange.occupiesRow(t.row))||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleCellMouseMove(e,t){!this.mousedown||this.selecting==="all"||this.activeRange.setBounds(!1,t,!0)}handleCellClick(e,t){this.initializeFocus(t)}handleEditingCell(e){this.activeRange&&this.activeRange.setBounds(e)}finishEditingCell(){this.blockKeydown=!0,this.table.rowManager.element.focus(),setTimeout(()=>{this.blockKeydown=!1},10)}keyNavigate(e,t){this.navigate(!1,!1,e),t.preventDefault()}keyNavigateRange(e,t,i,a){this.navigate(i,a,t),e.preventDefault()}navigate(e,t,i){var a=!1,n,r,l,h,d,u,p,y,f,g,k;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter(v=>v===this.activeRange?(v.setEnd(v.start.row,v.start.col),!0):(v.destroy(),!1))),n=this.activeRange,l={top:n.top,bottom:n.bottom,left:n.left,right:n.right},r=t?n.end:n.start,h=r.row,d=r.col,e)switch(i){case"left":d=this.findJumpCellLeft(n.start.row,r.col);break;case"right":d=this.findJumpCellRight(n.start.row,r.col);break;case"up":h=this.findJumpCellUp(r.row,n.start.col);break;case"down":h=this.findJumpCellDown(r.row,n.start.col);break}else{if(t&&(this.selecting==="row"&&(i==="left"||i==="right")||this.selecting==="column"&&(i==="up"||i==="down")))return;switch(i){case"left":d=Math.max(d-1,0);break;case"right":d=Math.min(d+1,this.getTableColumns().length-1);break;case"up":h=Math.max(h-1,0);break;case"down":h=Math.min(h+1,this.getTableRows().length-1);break}}if(this.rowHeader&&d===0&&(d=1),t||n.setStart(h,d),n.setEnd(h,d),t||(this.selecting="cell"),a=l.top!==n.top||l.bottom!==n.bottom||l.left!==n.left||l.right!==n.right,a)return u=this.getRowByRangePos(n.end.row),p=this.getColumnByRangePos(n.end.col),y=u.getElement().getBoundingClientRect(),g=p.getElement().getBoundingClientRect(),f=this.table.rowManager.getElement().getBoundingClientRect(),k=this.table.columnManager.getElement().getBoundingClientRect(),y.top>=f.top&&y.bottom<=f.bottom||(u.getElement().parentNode&&p.getElement().parentNode?this.autoScroll(n,u.getElement(),p.getElement()):u.getComponent().scrollTo(void 0,!1)),g.left>=k.left+this.getRowHeaderWidth()&&g.right<=k.right||(u.getElement().parentNode&&p.getElement().parentNode?this.autoScroll(n,u.getElement(),p.getElement()):p.getComponent().scrollTo(void 0,!1)),this.layoutElement(),!0}rangeRemoved(e){this.ranges=this.ranges.filter(t=>t!==e),this.activeRange===e&&(this.ranges.length?this.activeRange=this.ranges[this.ranges.length-1]:this.addRange()),this.layoutElement()}findJumpRow(e,t,i,a,n){return i&&(t=t.reverse()),this.findJumpItem(a,n,t,function(r){return r.getData()[e.getField()]})}findJumpCol(e,t,i,a,n){return i&&(t=t.reverse()),this.findJumpItem(a,n,t,function(r){return e.getData()[r.getField()]})}findJumpItem(e,t,i,a){var n;for(let r of i){let l=a(r);if(e){if(n=r,l)break}else if(t){if(n=r,l)break}else if(l)n=r;else break}return n}findJumpCellLeft(e,t){var i=this.getRowByRangePos(e),a=this.getTableColumns(),n=this.isEmpty(i.getData()[a[t].getField()]),r=a[t-1]?this.isEmpty(i.getData()[a[t-1].getField()]):!1,l=this.rowHeader?a.slice(1,t):a.slice(0,t),h=this.findJumpCol(i,l,!0,n,r);return h?h.getPosition()-1:t}findJumpCellRight(e,t){var i=this.getRowByRangePos(e),a=this.getTableColumns(),n=this.isEmpty(i.getData()[a[t].getField()]),r=a[t+1]?this.isEmpty(i.getData()[a[t+1].getField()]):!1,l=this.findJumpCol(i,a.slice(t+1,a.length),!1,n,r);return l?l.getPosition()-1:t}findJumpCellUp(e,t){var i=this.getColumnByRangePos(t),a=this.getTableRows(),n=this.isEmpty(a[e].getData()[i.getField()]),r=a[e-1]?this.isEmpty(a[e-1].getData()[i.getField()]):!1,l=this.findJumpRow(i,a.slice(0,e),!0,n,r);return l?l.position-1:e}findJumpCellDown(e,t){var i=this.getColumnByRangePos(t),a=this.getTableRows(),n=this.isEmpty(a[e].getData()[i.getField()]),r=a[e+1]?this.isEmpty(a[e+1].getData()[i.getField()]):!1,l=this.findJumpRow(i,a.slice(e+1,a.length),!1,n,r);return l?l.position-1:e}newSelection(e,t){var i;if(t.type==="column"){if(!this.columnSelection)return;if(t===this.rowHeader){i=this.resetRanges(),this.selecting="all";var a,n=this.getCell(-1,-1);this.rowHeader?a=this.getCell(0,1):a=this.getCell(0,0),i.setBounds(a,n);return}else this.selecting="column"}else t.column===this.rowHeader?this.selecting="row":this.selecting="cell";e.shiftKey?this.activeRange.setBounds(!1,t):e.ctrlKey?this.addRange().setBounds(t):this.resetRanges().setBounds(t)}autoScroll(e,t,i){var a=this.table.rowManager.element,n,r,l,h;typeof t>"u"&&(t=this.getRowByRangePos(e.end.row).getElement()),typeof i>"u"&&(i=this.getColumnByRangePos(e.end.col).getElement()),n={left:i.offsetLeft,right:i.offsetLeft+i.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight},r={left:a.scrollLeft+this.getRowHeaderWidth(),right:Math.ceil(a.scrollLeft+a.clientWidth),top:a.scrollTop,bottom:a.scrollTop+a.offsetHeight-this.table.rowManager.scrollbarWidth},l=r.left<n.left&&n.left<r.right&&r.left<n.right&&n.right<r.right,h=r.top<n.top&&n.top<r.bottom&&r.top<n.bottom&&n.bottom<r.bottom,l||(n.left<r.left?a.scrollLeft=n.left-this.getRowHeaderWidth():n.right>r.right&&(a.scrollLeft=Math.min(n.right-a.clientWidth,n.left-this.getRowHeaderWidth()))),h||(n.top<r.top?a.scrollTop=n.top:n.bottom>r.bottom&&(a.scrollTop=n.bottom-a.clientHeight))}layoutChange(){this.overlay.style.visibility="hidden",clearTimeout(this.layoutChangeTimeout),this.layoutChangeTimeout=setTimeout(this.layoutRanges.bind(this),200)}redraw(e){e&&(this.selecting="cell",this.resetRanges(),this.layoutElement())}layoutElement(e){var t;e?t=this.table.rowManager.getVisibleRows(!0):t=this.table.rowManager.getRows(),t.forEach(i=>{i.type==="row"&&(this.layoutRow(i),i.cells.forEach(a=>this.renderCell(a)))}),this.getTableColumns().forEach(i=>{this.layoutColumn(i)}),this.layoutRanges()}layoutRow(e){var t=e.getElement(),i=!1,a=this.ranges.some(n=>n.occupiesRow(e));this.selecting==="row"?i=a:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",a)}layoutColumn(e){var t=e.getElement(),i=!1,a=this.ranges.some(n=>n.occupiesColumn(e));this.selecting==="column"?i=a:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",a)}layoutRanges(){var e,t,i;this.table.initialized&&(e=this.getActiveCell(),e&&(t=e.getElement(),i=e.row.getElement(),this.table.rtl?this.activeRangeCellElement.style.right=i.offsetWidth-t.offsetLeft-t.offsetWidth+"px":this.activeRangeCellElement.style.left=i.offsetLeft+t.offsetLeft+"px",this.activeRangeCellElement.style.top=i.offsetTop+"px",this.activeRangeCellElement.style.width=t.offsetWidth+"px",this.activeRangeCellElement.style.height=i.offsetHeight+"px",this.ranges.forEach(a=>a.layout()),this.overlay.style.visibility="visible"))}getCell(e,t){var i;return t<0&&(t=this.getTableColumns().length+t,t<0)?null:(e<0&&(e=this.getTableRows().length+e),i=this.table.rowManager.getRowFromPosition(e+1),i?i.getCells(!1,!0).filter(a=>a.column.visible)[t]:null)}getActiveCell(){return this.getCell(this.activeRange.start.row,this.activeRange.start.col)}getRowByRangePos(e){return this.getTableRows()[e]}getColumnByRangePos(e){return this.getTableColumns()[e]}getTableRows(){return this.table.rowManager.getDisplayRows().filter(e=>e.type==="row")}getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}addRange(e,t){var i;return this.maxRanges!==!0&&this.ranges.length>=this.maxRanges&&this.ranges.shift().destroy(),i=new AI(this.table,this,e,t),this.activeRange=i,this.ranges.push(i),this.rangeContainer.appendChild(i.element),i}resetRanges(){var e,t,i;return this.ranges.forEach(a=>a.destroy()),this.ranges=[],e=this.addRange(),this.table.rowManager.activeRows.length&&(i=this.table.rowManager.activeRows[0].cells.filter(a=>a.column.visible),t=i[this.rowHeader?1:0],t&&(e.setBounds(t),this.options("selectableRangeAutoFocus")&&this.initializeFocus(t))),e}tableDestroyed(){document.removeEventListener("mouseup",this.mouseUpEvent),this.table.rowManager.element.removeEventListener("keydown",this.keyDownEvent)}selectedRows(e){return e?this.activeRange.getRows().map(t=>t.getComponent()):this.activeRange.getRows()}selectedColumns(e){return e?this.activeRange.getColumns().map(t=>t.getComponent()):this.activeRange.getColumns()}getRowHeaderWidth(){return this.rowHeader?this.rowHeader.getElement().offsetWidth:0}isEmpty(e){return e==null||e===""}}E(Wn,"moduleName","selectRange"),E(Wn,"moduleInitOrder",1),E(Wn,"moduleExtensions",jI);function NI(o,e,t,i,a,n,r){var l=r.alignEmptyValues,h=r.decimalSeparator,d=r.thousandSeparator,u=0;if(o=String(o),e=String(e),d&&(o=o.split(d).join(""),e=e.split(d).join("")),h&&(o=o.split(h).join("."),e=e.split(h).join(".")),o=parseFloat(o),e=parseFloat(e),isNaN(o))u=isNaN(e)?0:-1;else if(isNaN(e))u=1;else return o-e;return(l==="top"&&n==="desc"||l==="bottom"&&n==="asc")&&(u*=-1),u}function _I(o,e,t,i,a,n,r){var l=r.alignEmptyValues,h=0,d;if(!o)h=e?-1:0;else if(!e)h=1;else{switch(typeof r.locale){case"boolean":r.locale&&(d=this.langLocale());break;case"string":d=r.locale;break}return String(o).toLowerCase().localeCompare(String(e).toLowerCase(),d)}return(l==="top"&&n==="desc"||l==="bottom"&&n==="asc")&&(h*=-1),h}function aC(o,e,t,i,a,n,r){var l=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),h=r.format||"dd/MM/yyyy HH:mm:ss",d=r.alignEmptyValues,u=0;if(typeof l<"u"){if(l.isDateTime(o)||(h==="iso"?o=l.fromISO(String(o)):o=l.fromFormat(String(o),h)),l.isDateTime(e)||(h==="iso"?e=l.fromISO(String(e)):e=l.fromFormat(String(e),h)),!o.isValid)u=e.isValid?-1:0;else if(!e.isValid)u=1;else return o-e;return(d==="top"&&n==="desc"||d==="bottom"&&n==="asc")&&(u*=-1),u}else console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}function WI(o,e,t,i,a,n,r){return r.format||(r.format="dd/MM/yyyy"),aC.call(this,o,e,t,i,a,n,r)}function UI(o,e,t,i,a,n,r){return r.format||(r.format="HH:mm"),aC.call(this,o,e,t,i,a,n,r)}function GI(o,e,t,i,a,n,r){var l=o===!0||o==="true"||o==="True"||o===1?1:0,h=e===!0||e==="true"||e==="True"||e===1?1:0;return l-h}function $I(o,e,t,i,a,n,r){var l=r.type||"length",h=r.alignEmptyValues,d=0,u=this.table,p;r.valueMap&&(typeof r.valueMap=="string"?p=function(f){return f.map(g=>G.retrieveNestedData(u.options.nestedFieldSeparator,r.valueMap,g))}:p=r.valueMap);function y(f){var g;switch(p&&(f=p(f)),l){case"length":g=f.length;break;case"sum":g=f.reduce(function(k,v){return k+v});break;case"max":g=Math.max.apply(null,f);break;case"min":g=Math.min.apply(null,f);break;case"avg":g=f.reduce(function(k,v){return k+v})/f.length;break;case"string":g=f.join("");break}return g}if(!Array.isArray(o))d=Array.isArray(e)?-1:0;else if(!Array.isArray(e))d=1;else return l==="string"?String(y(o)).toLowerCase().localeCompare(String(y(e)).toLowerCase()):y(e)-y(o);return(h==="top"&&n==="desc"||h==="bottom"&&n==="asc")&&(d*=-1),d}function YI(o,e,t,i,a,n,r){var l=typeof o>"u"?0:1,h=typeof e>"u"?0:1;return l-h}function ZI(o,e,t,i,a,n,r){var l,h,d,u,p=0,y,f=/(\d+)|(\D+)/g,g=/\d/,k=r.alignEmptyValues,v=0;if(!o&&o!==0)v=!e&&e!==0?0:-1;else if(!e&&e!==0)v=1;else{if(isFinite(o)&&isFinite(e))return o-e;if(l=String(o).toLowerCase(),h=String(e).toLowerCase(),l===h)return 0;if(!(g.test(l)&&g.test(h)))return l>h?1:-1;for(l=l.match(f),h=h.match(f),y=l.length>h.length?h.length:l.length;p<y;)if(d=l[p],u=h[p++],d!==u)return isFinite(d)&&isFinite(u)?(d.charAt(0)==="0"&&(d="."+d),u.charAt(0)==="0"&&(u="."+u),d-u):d>u?1:-1;return l.length>h.length}return(k==="top"&&n==="desc"||k==="bottom"&&n==="asc")&&(v*=-1),v}var XI={number:NI,string:_I,date:WI,time:UI,datetime:aC,boolean:GI,array:$I,exists:YI,alphanum:ZI};const Bo=class Bo extends q{constructor(e){super(e),this.sortList=[],this.changed=!1,this.registerTableOption("sortMode","local"),this.registerTableOption("initialSort",!1),this.registerTableOption("columnHeaderSortMulti",!0),this.registerTableOption("sortOrderReverse",!1),this.registerTableOption("headerSortElement","<div class='tabulator-arrow'></div>"),this.registerTableOption("headerSortClickElement","header"),this.registerColumnOption("sorter"),this.registerColumnOption("sorterParams"),this.registerColumnOption("headerSort",!0),this.registerColumnOption("headerSortStartingDir"),this.registerColumnOption("headerSortTristate")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.registerDataHandler(this.sort.bind(this),20),this.registerTableFunction("setSort",this.userSetSort.bind(this)),this.registerTableFunction("getSorters",this.getSort.bind(this)),this.registerTableFunction("clearSort",this.clearSort.bind(this)),this.table.options.sortMode==="remote"&&this.subscribe("data-params",this.remoteSortParams.bind(this))}tableBuilt(){this.table.options.initialSort&&this.setSort(this.table.options.initialSort)}remoteSortParams(e,t,i,a){var n=this.getSort();return n.forEach(r=>{delete r.column}),a.sort=n,a}userSetSort(e,t){this.setSort(e,t),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(e){var t=!1,i,a;switch(typeof e.definition.sorter){case"string":Bo.sorters[e.definition.sorter]?t=Bo.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":t=e.definition.sorter;break}if(e.modules.sort={sorter:t,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:e.definition.headerSortTristate},e.definition.headerSort!==!1){switch(i=e.getElement(),i.classList.add("tabulator-sortable"),a=document.createElement("div"),a.classList.add("tabulator-col-sorter"),this.table.options.headerSortClickElement){case"icon":a.classList.add("tabulator-col-sorter-element");break;case"header":i.classList.add("tabulator-col-sorter-element");break;default:i.classList.add("tabulator-col-sorter-element");break}switch(this.table.options.headerSortElement){case"function":break;case"object":a.appendChild(this.table.options.headerSortElement);break;default:a.innerHTML=this.table.options.headerSortElement}e.titleHolderElement.appendChild(a),e.modules.sort.element=a,this.setColumnHeaderSortIcon(e,"none"),this.table.options.headerSortClickElement==="icon"&&a.addEventListener("mousedown",n=>{n.stopPropagation()}),(this.table.options.headerSortClickElement==="icon"?a:i).addEventListener("click",n=>{var r="",l=[],h=!1;if(e.modules.sort){if(e.modules.sort.tristate)e.modules.sort.dir=="none"?r=e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?r=e.modules.sort.dir=="asc"?"desc":"asc":r="none";else switch(e.modules.sort.dir){case"asc":r="desc";break;case"desc":r="asc";break;default:r=e.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(n.shiftKey||n.ctrlKey)?(l=this.getSort(),h=l.findIndex(d=>d.field===e.getField()),h>-1?(l[h].dir=r,h=l.splice(h,1)[0],r!="none"&&l.push(h)):r!="none"&&l.push({column:e,dir:r}),this.setSort(l)):r=="none"?this.clear():this.setSort(e,r),this.refreshSort()}})}}refreshSort(){this.table.options.sortMode==="remote"?this.reloadData(null,!1,!1):this.refreshData(!0)}hasChanged(){var e=this.changed;return this.changed=!1,e}getSort(){var e=this,t=[];return e.sortList.forEach(function(i){i.column&&t.push({column:i.column.getComponent(),field:i.column.getField(),dir:i.dir})}),t}setSort(e,t){var i=this,a=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(n){var r;r=i.table.columnManager.findColumn(n.column),r?(n.column=r,a.push(n),i.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",n.column)}),i.sortList=a,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(e){var t=this.table.rowManager.activeRows[0],i="string",a,n;if(t&&(t=t.getData(),a=e.getField(),a))switch(n=e.getFieldValue(t),typeof n){case"undefined":i="string";break;case"boolean":i="boolean";break;default:!isNaN(n)&&n!==""?i="number":n.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(i="alphanum");break}return Bo.sorters[i]}sort(e,t){var i=this,a=this.table.options.sortOrderReverse?i.sortList.slice().reverse():i.sortList,n=[],r=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",i.getSort()),t||i.clearColumnHeaders(),this.table.options.sortMode!=="remote"?(a.forEach(function(l,h){var d;l.column&&(d=l.column.modules.sort,d&&(d.sorter||(d.sorter=i.findSorter(l.column)),l.params=typeof d.params=="function"?d.params(l.column.getComponent(),l.dir):d.params,n.push(l)),t||i.setColumnHeader(l.column,l.dir))}),n.length&&i._sortItems(e,n)):t||a.forEach(function(l,h){i.setColumnHeader(l.column,l.dir)}),this.subscribedExternal("dataSorted")&&(e.forEach(l=>{r.push(l.getComponent())}),this.dispatchExternal("dataSorted",i.getSort(),r)),e}clearColumnHeaders(){this.table.columnManager.getRealColumns().forEach(e=>{e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"),this.setColumnHeaderSortIcon(e,"none"))})}setColumnHeader(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t==="asc"?"ascending":"descending"),this.setColumnHeaderSortIcon(e,t)}setColumnHeaderSortIcon(e,t){var i=e.modules.sort.element,a;if(e.definition.headerSort&&typeof this.table.options.headerSortElement=="function"){for(;i.firstChild;)i.removeChild(i.firstChild);a=this.table.options.headerSortElement.call(this.table,e.getComponent(),t),typeof a=="object"?i.appendChild(a):i.innerHTML=a}}_sortItems(e,t){var i=t.length-1;e.sort((a,n)=>{for(var r,l=i;l>=0;l--){let h=t[l];if(r=this._sortRow(a,n,h.column,h.dir,h.params),r!==0)break}return r})}_sortRow(e,t,i,a,n){var r,l,h=a=="asc"?e:t,d=a=="asc"?t:e;return e=i.getFieldValue(h.getData()),t=i.getFieldValue(d.getData()),e=typeof e<"u"?e:"",t=typeof t<"u"?t:"",r=h.getComponent(),l=d.getComponent(),i.modules.sort.sorter.call(this,e,t,r,l,i.getComponent(),a,n)}};E(Bo,"moduleName","sort"),E(Bo,"sorters",XI);let N9=Bo;class KI{constructor(e,t){this.columnCount=e,this.rowCount=t,this.columnString=[],this.columns=[],this.rows=[]}genColumns(e){var t=Math.max(this.columnCount,Math.max(...e.map(i=>i.length)));this.columnString=[],this.columns=[];for(let i=1;i<=t;i++)this.incrementChar(this.columnString.length-1),this.columns.push(this.columnString.join(""));return this.columns}genRows(e){var t=Math.max(this.rowCount,e.length);this.rows=[];for(let i=1;i<=t;i++)this.rows.push(i);return this.rows}incrementChar(e){let t=this.columnString[e];t?t!=="Z"?this.columnString[e]=String.fromCharCode(this.columnString[e].charCodeAt(0)+1):(this.columnString[e]="A",e?this.incrementChar(e-1):this.columnString.push("A")):this.columnString.push("A")}setRowCount(e){this.rowCount=e}setColumnCount(e){this.columnCount=e}}class Px{constructor(e){return this._sheet=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._sheet.table.componentFunctionBinder.handle("sheet",t._sheet,i)}})}getTitle(){return this._sheet.title}getKey(){return this._sheet.key}getDefinition(){return this._sheet.getDefinition()}getData(){return this._sheet.getData()}setData(e){return this._sheet.setData(e)}clear(){return this._sheet.clear()}remove(){return this._sheet.remove()}active(){return this._sheet.active()}setTitle(e){return this._sheet.setTitle(e)}setRows(e){return this._sheet.setRows(e)}setColumns(e){return this._sheet.setColumns(e)}}let qC=class extends te{constructor(e,t){super(e.table),this.spreadsheetManager=e,this.definition=t,this.title=this.definition.title||"",this.key=this.definition.key||this.definition.title,this.rowCount=this.definition.rows,this.columnCount=this.definition.columns,this.data=this.definition.data||[],this.element=null,this.isActive=!1,this.grid=new KI(this.columnCount,this.rowCount),this.defaultColumnDefinition={width:100,headerHozAlign:"center",headerSort:!1},this.columnDefinition=Object.assign(this.defaultColumnDefinition,this.options("spreadsheetColumnDefinition")),this.columnDefs=[],this.rowDefs=[],this.columnFields=[],this.columns=[],this.rows=[],this.scrollTop=null,this.scrollLeft=null,this.initialize(),this.dispatchExternal("sheetAdded",this.getComponent())}initialize(){this.initializeElement(),this.initializeColumns(),this.initializeRows()}reinitialize(){this.initializeColumns(),this.initializeRows()}initializeElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tab"),this.element.innerText=this.title,this.element.addEventListener("click",()=>{this.spreadsheetManager.loadSheet(this)})}initializeColumns(){this.grid.setColumnCount(this.columnCount),this.columnFields=this.grid.genColumns(this.data),this.columnDefs=[],this.columnFields.forEach(e=>{var t=Object.assign({},this.columnDefinition);t.field=e,t.title=e,this.columnDefs.push(t)})}initializeRows(){var e;this.grid.setRowCount(this.rowCount),e=this.grid.genRows(this.data),this.rowDefs=[],e.forEach((t,i)=>{var a={_id:t},n=this.data[i];n&&n.forEach((r,l)=>{var h=this.columnFields[l];h&&(a[h]=r)}),this.rowDefs.push(a)})}unload(){this.isActive=!1,this.scrollTop=this.table.rowManager.scrollTop,this.scrollLeft=this.table.rowManager.scrollLeft,this.data=this.getData(!0),this.element.classList.remove("tabulator-spreadsheet-tab-active")}load(){var e=!this.isActive;this.isActive=!0,this.table.blockRedraw(),this.table.setData([]),this.table.setColumns(this.columnDefs),this.table.setData(this.rowDefs),this.table.restoreRedraw(),e&&this.scrollTop!==null&&(this.table.rowManager.element.scrollLeft=this.scrollLeft,this.table.rowManager.element.scrollTop=this.scrollTop),this.element.classList.add("tabulator-spreadsheet-tab-active"),this.dispatchExternal("sheetLoaded",this.getComponent())}getComponent(){return new Px(this)}getDefinition(){return{title:this.title,key:this.key,rows:this.rowCount,columns:this.columnCount,data:this.getData()}}getData(e){var t=[],i,a,n;return this.rowDefs.forEach(r=>{var l=[];this.columnFields.forEach(h=>{l.push(r[h])}),t.push(l)}),!e&&!this.options("spreadsheetOutputFull")&&(i=t.map(r=>r.findLastIndex(l=>typeof l<"u")+1),a=Math.max(...i),n=i.findLastIndex(r=>r>0)+1,t=t.slice(0,n),t=t.map(r=>r.slice(0,a))),t}setData(e){this.data=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}clear(){this.setData([])}setTitle(e){this.title=e,this.element.innerText=e,this.dispatchExternal("sheetUpdated",this.getComponent())}setRows(e){this.rowCount=e,this.initializeRows(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}setColumns(e){this.columnCount=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}remove(){this.spreadsheetManager.removeSheet(this)}destroy(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispatchExternal("sheetRemoved",this.getComponent())}active(){this.spreadsheetManager.loadSheet(this)}};class qx extends q{constructor(e){super(e),this.sheets=[],this.element=null,this.registerTableOption("spreadsheet",!1),this.registerTableOption("spreadsheetRows",50),this.registerTableOption("spreadsheetColumns",50),this.registerTableOption("spreadsheetColumnDefinition",{}),this.registerTableOption("spreadsheetOutputFull",!1),this.registerTableOption("spreadsheetData",!1),this.registerTableOption("spreadsheetSheets",!1),this.registerTableOption("spreadsheetSheetTabs",!1),this.registerTableOption("spreadsheetSheetTabsElement",!1),this.registerTableFunction("setSheets",this.setSheets.bind(this)),this.registerTableFunction("addSheet",this.addSheet.bind(this)),this.registerTableFunction("getSheets",this.getSheets.bind(this)),this.registerTableFunction("getSheetDefinitions",this.getSheetDefinitions.bind(this)),this.registerTableFunction("setSheetData",this.setSheetData.bind(this)),this.registerTableFunction("getSheet",this.getSheet.bind(this)),this.registerTableFunction("getSheetData",this.getSheetData.bind(this)),this.registerTableFunction("clearSheet",this.clearSheet.bind(this)),this.registerTableFunction("removeSheet",this.removeSheetFunc.bind(this)),this.registerTableFunction("activeSheet",this.activeSheetFunc.bind(this))}initialize(){this.options("spreadsheet")&&(this.subscribe("table-initialized",this.tableInitialized.bind(this)),this.subscribe("data-loaded",this.loadRemoteData.bind(this)),this.table.options.index="_id",this.options("spreadsheetData")&&this.options("spreadsheetSheets")&&(console.warn("You cannot use spreadsheetData and spreadsheetSheets at the same time, ignoring spreadsheetData"),this.table.options.spreadsheetData=!1),this.compatibilityCheck(),this.options("spreadsheetSheetTabs")&&this.initializeTabset())}compatibilityCheck(){this.options("data")&&console.warn("Do not use the data option when working with spreadsheets, use either spreadsheetData or spreadsheetSheets to pass data into the table"),this.options("pagination")&&console.warn("The spreadsheet module is not compatible with the pagination module"),this.options("groupBy")&&console.warn("The spreadsheet module is not compatible with the row grouping module"),this.options("responsiveCollapse")&&console.warn("The spreadsheet module is not compatible with the responsive collapse module")}initializeTabset(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tabs");var e=this.options("spreadsheetSheetTabsElement");e&&!(e instanceof HTMLElement)&&(e=document.querySelector(e),e||console.warn("Unable to find element matching spreadsheetSheetTabsElement selector:",this.options("spreadsheetSheetTabsElement"))),e?e.appendChild(this.element):this.footerAppend(this.element)}tableInitialized(){this.sheets.length?this.loadSheet(this.sheets[0]):this.options("spreadsheetSheets")?this.loadSheets(this.options("spreadsheetSheets")):this.options("spreadsheetData")&&this.loadData(this.options("spreadsheetData"))}loadRemoteData(e,t,i){return console.log("data",e,t,i),Array.isArray(e)?(this.table.dataLoader.clearAlert(),this.dispatchExternal("dataLoaded",e),!e.length||Array.isArray(e[0])?this.loadData(e):this.loadSheets(e)):console.error(`Spreadsheet Loading Error - Unable to process remote data due to invalid data type
|
|
16
|
+
</svg>`,o.getElement().classList.add("tabulator-row-handle");function n(r){var l=a.element;a.open=r,l&&(a.open?(i.classList.add("open"),l.style.display=""):(i.classList.remove("open"),l.style.display="none"))}return i.addEventListener("click",function(r){r.stopImmediatePropagation(),n(!a.open),o.getTable().rowManager.adjustTableSize()}),n(a.open),i}var DI={format:{formatters:{responsiveCollapse:TI}}};class O9 extends B{constructor(e){super(e),this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1,this.registerTableOption("responsiveLayout",!1),this.registerTableOption("responsiveLayoutCollapseStartOpen",!0),this.registerTableOption("responsiveLayoutCollapseUseFormatters",!0),this.registerTableOption("responsiveLayoutCollapseFormatter",!1),this.registerColumnOption("responsive")}initialize(){this.table.options.responsiveLayout&&(this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-show",this.updateColumnVisibility.bind(this)),this.subscribe("column-hide",this.updateColumnVisibility.bind(this)),this.subscribe("columns-loaded",this.initializeResponsivity.bind(this)),this.subscribe("column-moved",this.initializeResponsivity.bind(this)),this.subscribe("column-add",this.initializeResponsivity.bind(this)),this.subscribe("column-delete",this.initializeResponsivity.bind(this)),this.subscribe("table-redrawing",this.tableRedraw.bind(this)),this.table.options.responsiveLayout==="collapse"&&(this.subscribe("row-data-changed",this.generateCollapsedRowContent.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout",this.layoutRow.bind(this))))}tableRedraw(e){["fitColumns","fitDataStretch"].indexOf(this.layoutMode())===-1&&(e||this.update())}initializeResponsivity(){var e=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.collapseFormatter&&(this.collapseFormatter=this.collapseFormatter.bind(this.table)),this.table.columnManager.columnsByIndex.forEach((t,i)=>{t.modules.responsive&&t.modules.responsive.order&&t.modules.responsive.visible&&(t.modules.responsive.index=i,e.push(t),!t.visible&&this.mode==="collapse"&&this.hiddenColumns.push(t))}),e=e.reverse(),e=e.sort((t,i)=>{var a=i.modules.responsive.order-t.modules.responsive.order;return a||i.modules.responsive.index-t.modules.responsive.index}),this.columns=e,this.mode==="collapse"&&this.generateCollapsedContent();for(let t of this.table.columnManager.columnsByIndex)if(t.definition.formatter=="responsiveCollapse"){this.collapseHandleColumn=t;break}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())}initializeColumn(e){var t=e.getDefinition();e.modules.responsive={order:typeof t.responsive>"u"?1:t.responsive,visible:t.visible!==!1}}initializeRow(e){var t;e.type!=="calc"&&(t=document.createElement("div"),t.classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))}layoutRow(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))}updateColumnVisibility(e,t){!t&&e.modules.responsive&&(e.modules.responsive.visible=e.visible,this.initializeResponsivity())}hideColumn(e){var t=this.hiddenColumns.length;e.hide(!1,!0),this.mode==="collapse"&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())}showColumn(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),this.mode==="collapse"&&(t=this.hiddenColumns.indexOf(e),t>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())}update(){for(var e=!0;e;){let t=this.table.modules.layout.getMode()=="fitColumns"?this.table.columnManager.getFlexBaseWidth():this.table.columnManager.getWidth(),i=(this.table.options.headerVisible?this.table.columnManager.element.clientWidth:this.table.element.clientWidth)-t;if(i<0){let a=this.columns[this.index];a?(this.hideColumn(a),this.index++):e=!1}else{let a=this.columns[this.index-1];a&&i>0&&i>=a.getWidth()?(this.showColumn(a),this.index--):e=!1}this.table.rowManager.activeRowsCount||this.table.rowManager.renderEmptyScroll()}}generateCollapsedContent(){var e=this.table.rowManager.getDisplayRows();e.forEach(t=>{this.generateCollapsedRowContent(t)})}generateCollapsedRowContent(e){var t,i;if(e.modules.responsiveLayout){for(t=e.modules.responsiveLayout.element;t.firstChild;)t.removeChild(t.firstChild);i=this.collapseFormatter(this.generateCollapsedRowData(e)),i&&t.appendChild(i),e.calcHeight(!0)}}generateCollapsedRowData(e){var t=e.getData(),i=[],a;return this.hiddenColumns.forEach(n=>{var r=n.getFieldValue(t);if(n.definition.title&&n.field)if(n.modules.format&&this.table.options.responsiveLayoutCollapseUseFormatters){let l=function(h){h()};a={value:!1,data:{},getValue:function(){return r},getData:function(){return t},getType:function(){return"cell"},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return n.getComponent()},getTable:()=>this.table},i.push({field:n.field,title:n.definition.title,value:n.modules.format.formatter.call(this.table.modules.format,a,n.modules.format.params,l)})}else i.push({field:n.field,title:n.definition.title,value:r})}),i}formatCollapsedData(e){var t=document.createElement("table");return e.forEach(i=>{var a=document.createElement("tr"),n=document.createElement("td"),r=document.createElement("td"),l,h=document.createElement("strong");n.appendChild(h),this.modules.localize.bind("columns|"+i.field,function(d){h.innerHTML=d||i.title}),i.value instanceof Node?(l=document.createElement("div"),l.appendChild(i.value),r.appendChild(l)):r.innerHTML=i.value,a.appendChild(n),a.appendChild(r),t.appendChild(a)}),Object.keys(e).length?t:""}}E(O9,"moduleName","responsiveLayout"),E(O9,"moduleExtensions",DI);function zI(o,e,t){var i=document.createElement("input"),a=!1;if(i.type="checkbox",i.setAttribute("aria-label","Select Row"),this.table.modExists("selectRow",!0))if(i.addEventListener("click",r=>{r.stopPropagation()}),typeof o.getRow=="function"){var n=o.getRow();n instanceof Z7?(i.addEventListener("change",r=>{this.table.options.selectableRowsRangeMode==="click"&&a?a=!1:n.toggleSelect()}),this.table.options.selectableRowsRangeMode==="click"&&i.addEventListener("click",r=>{a=!0,this.table.modules.selectRow.handleComplexRowClick(n._row,r)}),i.checked=n.isSelected&&n.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(n,i)):i=""}else i.addEventListener("change",r=>{this.table.modules.selectRow.selectedRows.length?this.table.deselectRow():this.table.selectRow(e.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(i);return i}var RI={format:{formatters:{rowSelection:zI}}};class j9 extends B{constructor(e){super(e),this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null,this.registerTableOption("selectableRows","highlight"),this.registerTableOption("selectableRowsRangeMode","drag"),this.registerTableOption("selectableRowsRollingSelection",!0),this.registerTableOption("selectableRowsPersistence",!0),this.registerTableOption("selectableRowsCheck",function(t,i){return!0}),this.registerTableFunction("selectRow",this.selectRows.bind(this)),this.registerTableFunction("deselectRow",this.deselectRows.bind(this)),this.registerTableFunction("toggleSelectRow",this.toggleRow.bind(this)),this.registerTableFunction("getSelectedRows",this.getSelectedRows.bind(this)),this.registerTableFunction("getSelectedData",this.getSelectedData.bind(this)),this.registerComponentFunction("row","select",this.selectRows.bind(this)),this.registerComponentFunction("row","deselect",this.deselectRows.bind(this)),this.registerComponentFunction("row","toggleSelect",this.toggleRow.bind(this)),this.registerComponentFunction("row","isSelected",this.isRowSelected.bind(this))}initialize(){this.deprecatedOptionsCheck(),this.table.options.selectableRows==="highlight"&&this.table.options.selectableRange&&(this.table.options.selectableRows=!1),this.table.options.selectableRows!==!1&&(this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-deleting",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clearSelectionData.bind(this)),this.subscribe("rows-retrieve",this.rowRetrieve.bind(this)),this.table.options.selectableRows&&!this.table.options.selectableRowsPersistence&&this.subscribe("data-refreshing",this.deselectRows.bind(this)))}deprecatedOptionsCheck(){}rowRetrieve(e,t){return e==="selected"?this.selectedRows:t}rowDeleted(e){this._deselectRow(e,!0)}clearSelectionData(e){var t=this.selectedRows.length;this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],t&&e!==!0&&this._rowSelectionChanged()}initializeRow(e){var t=this,i=t.checkRowSelectability(e),a=e.getElement(),n=function(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",n)};e.modules.select={selected:!1},a.classList.toggle("tabulator-selectable",i),a.classList.toggle("tabulator-unselectable",!i),t.checkRowSelectability(e)&&t.table.options.selectableRows&&t.table.options.selectableRows!="highlight"&&(t.table.options.selectableRowsRangeMode==="click"?a.addEventListener("click",this.handleComplexRowClick.bind(this,e)):(a.addEventListener("click",function(r){(!t.table.modExists("edit")||!t.table.modules.edit.getCurrentCell())&&t.table._clearSelection(),t.selecting||t.toggleRow(e)}),a.addEventListener("mousedown",function(r){if(r.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",n),document.body.addEventListener("keyup",n),t.toggleRow(e),!1}),a.addEventListener("mouseenter",function(r){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),a.addEventListener("mouseout",function(r){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))}handleComplexRowClick(e,t){if(t.shiftKey){this.table._clearSelection(),this.lastClickedRow=this.lastClickedRow||e;var i=this.table.rowManager.getDisplayRowIndex(this.lastClickedRow),a=this.table.rowManager.getDisplayRowIndex(e),n=i<=a?i:a,r=i>=a?i:a,l=this.table.rowManager.getDisplayRows().slice(0),h=l.splice(n,r-n+1);t.ctrlKey||t.metaKey?(h.forEach(d=>{d!==this.lastClickedRow&&(this.table.options.selectableRows!==!0&&!this.isRowSelected(e)?this.selectedRows.length<this.table.options.selectableRows&&this.toggleRow(d):this.toggleRow(d))}),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.table.options.selectableRows!==!0&&h.length>this.table.options.selectableRows&&(h=h.slice(0,this.table.options.selectableRows)),this.selectRows(h)),this.table._clearSelection()}else t.ctrlKey||t.metaKey?(this.toggleRow(e),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.selectRows(e),this.lastClickedRow=e)}checkRowSelectability(e){return e&&e.type==="row"?this.table.options.selectableRowsCheck.call(this.table,e.getComponent()):!1}toggleRow(e){this.checkRowSelectability(e)&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))}selectRows(e){var t=[],i,a;switch(typeof e){case"undefined":i=this.table.rowManager.rows;break;case"number":i=this.table.rowManager.findRow(e);break;case"string":i=this.table.rowManager.findRow(e),i||(i=this.table.rowManager.getRows(e));break;default:i=e;break}Array.isArray(i)?i.length&&(i.forEach(n=>{a=this._selectRow(n,!0,!0),a&&t.push(a)}),this._rowSelectionChanged(!1,t)):i&&this._selectRow(i,!1,!0)}_selectRow(e,t,i){if(!isNaN(this.table.options.selectableRows)&&this.table.options.selectableRows!==!0&&!i&&this.selectedRows.length>=this.table.options.selectableRows)if(this.table.options.selectableRowsRollingSelection)this._deselectRow(this.selectedRows[0]);else return!1;var a=this.table.rowManager.findRow(e);if(a){if(this.selectedRows.indexOf(a)==-1)return a.getElement().classList.add("tabulator-selected"),a.modules.select||(a.modules.select={}),a.modules.select.selected=!0,a.modules.select.checkboxEl&&(a.modules.select.checkboxEl.checked=!0),this.selectedRows.push(a),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(a,!0),this.dispatchExternal("rowSelected",a.getComponent()),this._rowSelectionChanged(t,a),a}else t||console.warn("Selection Error - No such row found, ignoring selection:"+e)}isRowSelected(e){return this.selectedRows.indexOf(e)!==-1}deselectRows(e,t){var i=[],a,n;switch(typeof e){case"undefined":a=Object.assign([],this.selectedRows);break;case"number":a=this.table.rowManager.findRow(e);break;case"string":a=this.table.rowManager.findRow(e),a||(a=this.table.rowManager.getRows(e));break;default:a=e;break}Array.isArray(a)?a.length&&(a.forEach(r=>{n=this._deselectRow(r,!0,!0),n&&i.push(n)}),this._rowSelectionChanged(t,[],i)):a&&this._deselectRow(a,t,!0)}_deselectRow(e,t){var i=this,a=i.table.rowManager.findRow(e),n,r;if(a){if(n=i.selectedRows.findIndex(function(l){return l==a}),n>-1)return r=a.getElement(),r&&r.classList.remove("tabulator-selected"),a.modules.select||(a.modules.select={}),a.modules.select.selected=!1,a.modules.select.checkboxEl&&(a.modules.select.checkboxEl.checked=!1),i.selectedRows.splice(n,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(a,!1),this.dispatchExternal("rowDeselected",a.getComponent()),i._rowSelectionChanged(t,void 0,a),a}else t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)}getSelectedData(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getData())}),e}getSelectedRows(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getComponent())}),e}_rowSelectionChanged(e,t=[],i=[]){this.headerCheckboxElement&&(this.selectedRows.length===0?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||(Array.isArray(t)||(t=[t]),t=t.map(a=>a.getComponent()),Array.isArray(i)||(i=[i]),i=i.map(a=>a.getComponent()),this.dispatchExternal("rowSelectionChanged",this.getSelectedData(),this.getSelectedRows(),t,i))}registerRowSelectCheckbox(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t}registerHeaderSelectCheckbox(e){this.headerCheckboxElement=e}childRowSelection(e,t){var i=this.table.modules.dataTree.getChildren(e,!0,!0);if(t)for(let a of i)this._selectRow(a,!0);else for(let a of i)this._deselectRow(a,!0)}}E(j9,"moduleName","selectRow"),E(j9,"moduleExtensions",RI);class HI{constructor(e){return this._range=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._range.table.componentFunctionBinder.handle("range",t._range,i)}})}getElement(){return this._range.element}getData(){return this._range.getData()}getCells(){return this._range.getCells(!0,!0)}getStructuredCells(){return this._range.getStructuredCells()}getRows(){return this._range.getRows().map(e=>e.getComponent())}getColumns(){return this._range.getColumns().map(e=>e.getComponent())}getBounds(){return this._range.getBounds()}getTopEdge(){return this._range.top}getBottomEdge(){return this._range.bottom}getLeftEdge(){return this._range.left}getRightEdge(){return this._range.right}setBounds(e,t){this._range.destroyedGuard("setBounds")&&this._range.setBounds(e&&e._cell,t&&t._cell)}setStartBound(e){this._range.destroyedGuard("setStartBound")&&(this._range.setEndBound(e&&e._cell),this._range.rangeManager.layoutElement())}setEndBound(e){this._range.destroyedGuard("setEndBound")&&(this._range.setEndBound(e&&e._cell),this._range.rangeManager.layoutElement())}clearValues(){this._range.destroyedGuard("clearValues")&&this._range.clearValues()}remove(){this._range.destroyedGuard("remove")&&this._range.destroy(!0)}}class AI extends ie{constructor(e,t,i,a){super(e),this.rangeManager=t,this.element=null,this.initialized=!1,this.initializing={start:!1,end:!1},this.destroyed=!1,this.top=0,this.bottom=0,this.left=0,this.right=0,this.table=e,this.start={row:0,col:0},this.end={row:0,col:0},this.rangeManager.rowHeader&&(this.left=1,this.right=1,this.start.col=1,this.end.col=1),this.initElement(),setTimeout(()=>{this.initBounds(i,a)})}initElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-range")}initBounds(e,t){this._updateMinMax(),e&&this.setBounds(e,t||e)}setStart(e,t){(this.start.row!==e||this.start.col!==t)&&(this.start.row=e,this.start.col=t,this.initializing.start=!0,this._updateMinMax())}setEnd(e,t){(this.end.row!==e||this.end.col!==t)&&(this.end.row=e,this.end.col=t,this.initializing.end=!0,this._updateMinMax())}setBounds(e,t,i){e&&this.setStartBound(e),this.setEndBound(t||e),this.rangeManager.layoutElement(i)}setStartBound(e){var t,i;e.type==="column"?this.rangeManager.columnSelection&&this.setStart(0,e.getPosition()-1):(t=e.row.position-1,i=e.column.getPosition()-1,e.column===this.rangeManager.rowHeader?this.setStart(t,1):this.setStart(t,i))}setEndBound(e){var t=this._getTableRows().length,i,a,n;e.type==="column"?this.rangeManager.columnSelection&&(this.rangeManager.selecting==="column"?this.setEnd(t-1,e.getPosition()-1):this.rangeManager.selecting==="cell"&&this.setEnd(0,e.getPosition()-1)):(i=e.row.position-1,a=e.column.getPosition()-1,n=e.column===this.rangeManager.rowHeader,this.rangeManager.selecting==="row"?this.setEnd(i,this._getTableColumns().length-1):this.rangeManager.selecting!=="row"&&n?this.setEnd(i,0):this.rangeManager.selecting==="column"?this.setEnd(t-1,a):this.setEnd(i,a))}_updateMinMax(){this.top=Math.min(this.start.row,this.end.row),this.bottom=Math.max(this.start.row,this.end.row),this.left=Math.min(this.start.col,this.end.col),this.right=Math.max(this.start.col,this.end.col),this.initialized?this.dispatchExternal("rangeChanged",this.getComponent()):this.initializing.start&&this.initializing.end&&(this.initialized=!0,this.dispatchExternal("rangeAdded",this.getComponent()))}_getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}_getTableRows(){return this.table.rowManager.getDisplayRows().filter(e=>e.type==="row")}layout(){var e=this.table.rowManager.renderer.vDomTop,t=this.table.rowManager.renderer.vDomBottom,i=this.table.columnManager.renderer.leftCol,a=this.table.columnManager.renderer.rightCol,n,r,l,h,d,u,p,y,f,g;this.table.options.renderHorizontal==="virtual"&&this.rangeManager.rowHeader&&(a+=1),e==null&&(e=0),t==null&&(t=1/0),i==null&&(i=0),a==null&&(a=1/0),this.overlaps(i,e,a,t)&&(n=Math.max(this.top,e),r=Math.min(this.bottom,t),l=Math.max(this.left,i),h=Math.min(this.right,a),d=this.rangeManager.getCell(n,l),u=this.rangeManager.getCell(r,h),p=d.getElement(),y=u.getElement(),f=d.row.getElement(),g=u.row.getElement(),this.element.classList.add("tabulator-range-active"),this.table.rtl?(this.element.style.right=f.offsetWidth-p.offsetLeft-p.offsetWidth+"px",this.element.style.width=p.offsetLeft+p.offsetWidth-y.offsetLeft+"px"):(this.element.style.left=f.offsetLeft+p.offsetLeft+"px",this.element.style.width=y.offsetLeft+y.offsetWidth-p.offsetLeft+"px"),this.element.style.top=f.offsetTop+"px",this.element.style.height=g.offsetTop+g.offsetHeight-f.offsetTop+"px")}atTopLeft(e){return e.row.position-1===this.top&&e.column.getPosition()-1===this.left}atBottomRight(e){return e.row.position-1===this.bottom&&e.column.getPosition()-1===this.right}occupies(e){return this.occupiesRow(e.row)&&this.occupiesColumn(e.column)}occupiesRow(e){return this.top<=e.position-1&&e.position-1<=this.bottom}occupiesColumn(e){return this.left<=e.getPosition()-1&&e.getPosition()-1<=this.right}overlaps(e,t,i,a){return!(this.left>i||e>this.right||this.top>a||t>this.bottom)}getData(){var e=[],t=this.getRows(),i=this.getColumns();return t.forEach(a=>{var n=a.getData(),r={};i.forEach(l=>{r[l.field]=n[l.field]}),e.push(r)}),e}getCells(e,t){var i=[],a=this.getRows(),n=this.getColumns();return e?i=a.map(r=>{var l=[];return r.getCells().forEach(h=>{n.includes(h.column)&&l.push(t?h.getComponent():h)}),l}):a.forEach(r=>{r.getCells().forEach(l=>{n.includes(l.column)&&i.push(t?l.getComponent():l)})}),i}getStructuredCells(){return this.getCells(!0,!0)}getRows(){return this._getTableRows().slice(this.top,this.bottom+1)}getColumns(){return this._getTableColumns().slice(this.left,this.right+1)}clearValues(){var e=this.getCells(),t=this.table.options.selectableRangeClearCellsValue;this.table.blockRedraw(),e.forEach(i=>{i.setValue(t)}),this.table.restoreRedraw()}getBounds(e){var t=this.getCells(!1,e),i={start:null,end:null};return t.length?(i.start=t[0],i.end=t[t.length-1]):console.warn("No bounds defined on range"),i}getComponent(){return this.component||(this.component=new HI(this)),this.component}destroy(e){this.destroyed=!0,this.element.remove(),e&&this.rangeManager.rangeRemoved(this),this.initialized&&this.dispatchExternal("rangeRemoved",this.getComponent())}destroyedGuard(e){return this.destroyed&&console.warn("You cannot call the "+e+" function on a destroyed range"),!this.destroyed}}var VI={rangeJumpUp:["ctrl + 38","meta + 38"],rangeJumpDown:["ctrl + 40","meta + 40"],rangeJumpLeft:["ctrl + 37","meta + 37"],rangeJumpRight:["ctrl + 39","meta + 39"],rangeExpandUp:"shift + 38",rangeExpandDown:"shift + 40",rangeExpandLeft:"shift + 37",rangeExpandRight:"shift + 39",rangeExpandJumpUp:["ctrl + shift + 38","meta + shift + 38"],rangeExpandJumpDown:["ctrl + shift + 40","meta + shift + 40"],rangeExpandJumpLeft:["ctrl + shift + 37","meta + shift + 37"],rangeExpandJumpRight:["ctrl + shift + 39","meta + shift + 39"]},PI={rangeJumpLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!0,!1)},rangeJumpRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!0,!1)},rangeJumpUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!0,!1)},rangeJumpDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!0,!1)},rangeExpandLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!1,!0)},rangeExpandRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!1,!0)},rangeExpandUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!1,!0)},rangeExpandDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!1,!0)},rangeExpandJumpLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!0,!0)},rangeExpandJumpRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!0,!0)},rangeExpandJumpUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!0,!0)},rangeExpandJumpDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!0,!0)}},qI={range:function(o){var e=[],t=this.table.modules.selectRange.activeRange,i=!1,a,n,r,l,h;return h=o.length,t&&(a=t.getBounds(),n=a.start,a.start===a.end&&(i=!0),n&&(e=this.table.rowManager.activeRows.slice(),r=e.indexOf(n.row),i?l=o.length:l=e.indexOf(a.end.row)-r+1,r>-1&&(this.table.blockRedraw(),e=e.slice(r,r+l),e.forEach((d,u)=>{d.updateData(o[u%h])}),this.table.restoreRedraw()))),e}},BI={range:function(o){var e=[],t=[],i=this.table.modules.selectRange.activeRange,a=!1,n,r,l,h,d;return i&&(n=i.getBounds(),r=n.start,n.start===n.end&&(a=!0),r&&(o=o.split(`
|
|
17
|
+
`),o.forEach(function(u){e.push(u.split(" "))}),e.length&&(h=this.table.columnManager.getVisibleColumnsByIndex(),d=h.indexOf(r.column),d>-1)))?(a?l=e[0].length:l=h.indexOf(n.end.column)-d+1,h=h.slice(d,d+l),e.forEach(u=>{var p={},y=u.length;h.forEach(function(f,g){p[f.field]=u[g%y]}),t.push(p)}),t):!1}},FI={range:function(){var o=this.modules.selectRange.selectedColumns();return this.columnManager.rowHeader&&o.unshift(this.columnManager.rowHeader),o}},OI={range:function(){return this.modules.selectRange.selectedRows()}},jI={keybindings:{bindings:VI,actions:PI},clipboard:{pasteActions:qI,pasteParsers:BI},export:{columnLookups:FI,rowLookups:OI}};class Wn extends B{constructor(e){super(e),this.selecting="cell",this.mousedown=!1,this.ranges=[],this.overlay=null,this.rowHeader=null,this.layoutChangeTimeout=null,this.columnSelection=!1,this.rowSelection=!1,this.maxRanges=0,this.activeRange=!1,this.blockKeydown=!1,this.keyDownEvent=this._handleKeyDown.bind(this),this.mouseUpEvent=this._handleMouseUp.bind(this),this.registerTableOption("selectableRange",!1),this.registerTableOption("selectableRangeColumns",!1),this.registerTableOption("selectableRangeRows",!1),this.registerTableOption("selectableRangeClearCells",!1),this.registerTableOption("selectableRangeClearCellsValue",void 0),this.registerTableOption("selectableRangeAutoFocus",!0),this.registerTableFunction("getRangesData",this.getRangesData.bind(this)),this.registerTableFunction("getRanges",this.getRanges.bind(this)),this.registerTableFunction("addRange",this.addRangeFromComponent.bind(this)),this.registerComponentFunction("cell","getRanges",this.cellGetRanges.bind(this)),this.registerComponentFunction("row","getRanges",this.rowGetRanges.bind(this)),this.registerComponentFunction("column","getRanges",this.colGetRanges.bind(this))}initialize(){this.options("selectableRange")&&(this.options("selectableRows")?console.warn("SelectRange functionality cannot be used in conjunction with row selection"):(this.maxRanges=this.options("selectableRange"),this.initializeTable(),this.initializeWatchers()),this.options("columns").findIndex(e=>e.frozen)>0&&console.warn("Having frozen column in arbitrary position with selectRange option may result in unpredictable behavior."),this.options("columns").filter(e=>e.frozen)>1&&console.warn("Having multiple frozen columns with selectRange option may result in unpredictable behavior."))}initializeTable(){this.overlay=document.createElement("div"),this.overlay.classList.add("tabulator-range-overlay"),this.rangeContainer=document.createElement("div"),this.rangeContainer.classList.add("tabulator-range-container"),this.activeRangeCellElement=document.createElement("div"),this.activeRangeCellElement.classList.add("tabulator-range-cell-active"),this.overlay.appendChild(this.rangeContainer),this.overlay.appendChild(this.activeRangeCellElement),this.table.rowManager.element.addEventListener("keydown",this.keyDownEvent),this.resetRanges(),this.table.rowManager.element.appendChild(this.overlay),this.table.columnManager.element.setAttribute("tabindex",0),this.table.element.classList.add("tabulator-ranges")}initializeWatchers(){this.columnSelection=this.options("selectableRangeColumns"),this.rowSelection=this.options("selectableRangeRows"),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-mousedown",this.handleColumnMouseDown.bind(this)),this.subscribe("column-mousemove",this.handleColumnMouseMove.bind(this)),this.subscribe("column-resized",this.handleColumnResized.bind(this)),this.subscribe("column-moving",this.handleColumnMoving.bind(this)),this.subscribe("column-moved",this.handleColumnMoved.bind(this)),this.subscribe("column-width",this.layoutChange.bind(this)),this.subscribe("column-height",this.layoutChange.bind(this)),this.subscribe("column-resized",this.layoutChange.bind(this)),this.subscribe("columns-loaded",this.updateHeaderColumn.bind(this)),this.subscribe("cell-height",this.layoutChange.bind(this)),this.subscribe("cell-rendered",this.renderCell.bind(this)),this.subscribe("cell-mousedown",this.handleCellMouseDown.bind(this)),this.subscribe("cell-mousemove",this.handleCellMouseMove.bind(this)),this.subscribe("cell-click",this.handleCellClick.bind(this)),this.subscribe("cell-editing",this.handleEditingCell.bind(this)),this.subscribe("page-changed",this.redraw.bind(this)),this.subscribe("scroll-vertical",this.layoutChange.bind(this)),this.subscribe("scroll-horizontal",this.layoutChange.bind(this)),this.subscribe("data-destroy",this.tableDestroyed.bind(this)),this.subscribe("data-processed",this.resetRanges.bind(this)),this.subscribe("table-layout",this.layoutElement.bind(this)),this.subscribe("table-redraw",this.redraw.bind(this)),this.subscribe("table-destroy",this.tableDestroyed.bind(this)),this.subscribe("edit-editor-clear",this.finishEditingCell.bind(this)),this.subscribe("edit-blur",this.restoreFocus.bind(this)),this.subscribe("keybinding-nav-prev",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-next",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-left",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-right",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-up",this.keyNavigate.bind(this,"up")),this.subscribe("keybinding-nav-down",this.keyNavigate.bind(this,"down")),this.subscribe("keybinding-nav-range",this.keyNavigateRange.bind(this))}initializeColumn(e){this.columnSelection&&e.definition.headerSort&&this.options("headerSortClickElement")!=="icon"&&console.warn("Using column headerSort with selectableRangeColumns option may result in unpredictable behavior. Consider using headerSortClickElement: 'icon'."),e.modules.edit}updateHeaderColumn(){var e;this.rowSelection&&(this.rowHeader=this.table.columnManager.getVisibleColumnsByIndex()[0],this.rowHeader&&(this.rowHeader.definition.cssClass=this.rowHeader.definition.cssClass+" tabulator-range-row-header",this.rowHeader.definition.headerSort&&console.warn("Using column headerSort with selectableRangeRows option may result in unpredictable behavior"),this.rowHeader.definition.editor&&console.warn("Using column editor with selectableRangeRows option may result in unpredictable behavior"))),this.table.modules.frozenColumns&&this.table.modules.frozenColumns.active&&(e=this.table.modules.frozenColumns.getFrozenColumns(),(e.length>1||e.length===1&&e[0]!==this.rowHeader)&&console.warn("Using frozen columns that are not the range header in combination with the selectRange option may result in unpredictable behavior"))}getRanges(){return this.ranges.map(e=>e.getComponent())}getRangesData(){return this.ranges.map(e=>e.getData())}addRangeFromComponent(e,t){return e=e?e._cell:null,t=t?t._cell:null,this.addRange(e,t)}cellGetRanges(e){var t=[];return e.column===this.rowHeader?t=this.ranges.filter(i=>i.occupiesRow(e.row)):t=this.ranges.filter(i=>i.occupies(e)),t.map(i=>i.getComponent())}rowGetRanges(e){var t=this.ranges.filter(i=>i.occupiesRow(e));return t.map(i=>i.getComponent())}colGetRanges(e){var t=this.ranges.filter(i=>i.occupiesColumn(e));return t.map(i=>i.getComponent())}_handleMouseUp(e){this.mousedown=!1,document.removeEventListener("mouseup",this.mouseUpEvent)}_handleKeyDown(e){if(!this.blockKeydown&&(!this.table.modules.edit||this.table.modules.edit&&!this.table.modules.edit.currentCell)){if(e.key==="Enter"){if(this.table.modules.edit&&this.table.modules.edit.currentCell)return;this.table.modules.edit.editCell(this.getActiveCell()),e.preventDefault()}(e.key==="Backspace"||e.key==="Delete")&&this.options("selectableRangeClearCells")&&this.activeRange&&this.activeRange.clearValues()}}initializeFocus(e){var t;this.restoreFocus();try{document.selection?(t=document.body.createTextRange(),t.moveToElementText(e.getElement()),t.select()):window.getSelection&&(t=document.createRange(),t.selectNode(e.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(t))}catch{}}restoreFocus(e){return this.table.rowManager.element.focus(),!0}handleColumnResized(e){var t;this.selecting!=="column"&&this.selecting!=="all"||(t=this.ranges.some(i=>i.occupiesColumn(e)),t&&this.ranges.forEach(i=>{var a=i.getColumns(!0);a.forEach(n=>{n!==e&&n.setWidth(e.width)})}))}handleColumnMoving(e,t){this.resetRanges().setBounds(t),this.overlay.style.visibility="hidden"}handleColumnMoved(e,t,i){this.activeRange.setBounds(e),this.layoutElement()}handleColumnMouseDown(e,t){e.button===2&&(this.selecting==="column"||this.selecting==="all")&&this.activeRange.occupiesColumn(t)||this.table.options.movableColumns&&this.selecting==="column"&&this.activeRange.occupiesColumn(t)||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleColumnMouseMove(e,t){t===this.rowHeader||!this.mousedown||this.selecting==="all"||this.activeRange.setBounds(!1,t,!0)}renderCell(e){var t=e.getElement(),i=this.ranges.findIndex(a=>a.occupies(e));t.classList.toggle("tabulator-range-selected",i!==-1),t.classList.toggle("tabulator-range-only-cell-selected",this.ranges.length===1&&this.ranges[0].atTopLeft(e)&&this.ranges[0].atBottomRight(e)),t.dataset.range=i}handleCellMouseDown(e,t){e.button===2&&(this.activeRange.occupies(t)||(this.selecting==="row"||this.selecting==="all")&&this.activeRange.occupiesRow(t.row))||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleCellMouseMove(e,t){!this.mousedown||this.selecting==="all"||this.activeRange.setBounds(!1,t,!0)}handleCellClick(e,t){this.initializeFocus(t)}handleEditingCell(e){this.activeRange&&this.activeRange.setBounds(e)}finishEditingCell(){this.blockKeydown=!0,this.table.rowManager.element.focus(),setTimeout(()=>{this.blockKeydown=!1},10)}keyNavigate(e,t){this.navigate(!1,!1,e),t.preventDefault()}keyNavigateRange(e,t,i,a){this.navigate(i,a,t),e.preventDefault()}navigate(e,t,i){var a=!1,n,r,l,h,d,u,p,y,f,g,k;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter(v=>v===this.activeRange?(v.setEnd(v.start.row,v.start.col),!0):(v.destroy(),!1))),n=this.activeRange,l={top:n.top,bottom:n.bottom,left:n.left,right:n.right},r=t?n.end:n.start,h=r.row,d=r.col,e)switch(i){case"left":d=this.findJumpCellLeft(n.start.row,r.col);break;case"right":d=this.findJumpCellRight(n.start.row,r.col);break;case"up":h=this.findJumpCellUp(r.row,n.start.col);break;case"down":h=this.findJumpCellDown(r.row,n.start.col);break}else{if(t&&(this.selecting==="row"&&(i==="left"||i==="right")||this.selecting==="column"&&(i==="up"||i==="down")))return;switch(i){case"left":d=Math.max(d-1,0);break;case"right":d=Math.min(d+1,this.getTableColumns().length-1);break;case"up":h=Math.max(h-1,0);break;case"down":h=Math.min(h+1,this.getTableRows().length-1);break}}if(this.rowHeader&&d===0&&(d=1),t||n.setStart(h,d),n.setEnd(h,d),t||(this.selecting="cell"),a=l.top!==n.top||l.bottom!==n.bottom||l.left!==n.left||l.right!==n.right,a)return u=this.getRowByRangePos(n.end.row),p=this.getColumnByRangePos(n.end.col),y=u.getElement().getBoundingClientRect(),g=p.getElement().getBoundingClientRect(),f=this.table.rowManager.getElement().getBoundingClientRect(),k=this.table.columnManager.getElement().getBoundingClientRect(),y.top>=f.top&&y.bottom<=f.bottom||(u.getElement().parentNode&&p.getElement().parentNode?this.autoScroll(n,u.getElement(),p.getElement()):u.getComponent().scrollTo(void 0,!1)),g.left>=k.left+this.getRowHeaderWidth()&&g.right<=k.right||(u.getElement().parentNode&&p.getElement().parentNode?this.autoScroll(n,u.getElement(),p.getElement()):p.getComponent().scrollTo(void 0,!1)),this.layoutElement(),!0}rangeRemoved(e){this.ranges=this.ranges.filter(t=>t!==e),this.activeRange===e&&(this.ranges.length?this.activeRange=this.ranges[this.ranges.length-1]:this.addRange()),this.layoutElement()}findJumpRow(e,t,i,a,n){return i&&(t=t.reverse()),this.findJumpItem(a,n,t,function(r){return r.getData()[e.getField()]})}findJumpCol(e,t,i,a,n){return i&&(t=t.reverse()),this.findJumpItem(a,n,t,function(r){return e.getData()[r.getField()]})}findJumpItem(e,t,i,a){var n;for(let r of i){let l=a(r);if(e){if(n=r,l)break}else if(t){if(n=r,l)break}else if(l)n=r;else break}return n}findJumpCellLeft(e,t){var i=this.getRowByRangePos(e),a=this.getTableColumns(),n=this.isEmpty(i.getData()[a[t].getField()]),r=a[t-1]?this.isEmpty(i.getData()[a[t-1].getField()]):!1,l=this.rowHeader?a.slice(1,t):a.slice(0,t),h=this.findJumpCol(i,l,!0,n,r);return h?h.getPosition()-1:t}findJumpCellRight(e,t){var i=this.getRowByRangePos(e),a=this.getTableColumns(),n=this.isEmpty(i.getData()[a[t].getField()]),r=a[t+1]?this.isEmpty(i.getData()[a[t+1].getField()]):!1,l=this.findJumpCol(i,a.slice(t+1,a.length),!1,n,r);return l?l.getPosition()-1:t}findJumpCellUp(e,t){var i=this.getColumnByRangePos(t),a=this.getTableRows(),n=this.isEmpty(a[e].getData()[i.getField()]),r=a[e-1]?this.isEmpty(a[e-1].getData()[i.getField()]):!1,l=this.findJumpRow(i,a.slice(0,e),!0,n,r);return l?l.position-1:e}findJumpCellDown(e,t){var i=this.getColumnByRangePos(t),a=this.getTableRows(),n=this.isEmpty(a[e].getData()[i.getField()]),r=a[e+1]?this.isEmpty(a[e+1].getData()[i.getField()]):!1,l=this.findJumpRow(i,a.slice(e+1,a.length),!1,n,r);return l?l.position-1:e}newSelection(e,t){var i;if(t.type==="column"){if(!this.columnSelection)return;if(t===this.rowHeader){i=this.resetRanges(),this.selecting="all";var a,n=this.getCell(-1,-1);this.rowHeader?a=this.getCell(0,1):a=this.getCell(0,0),i.setBounds(a,n);return}else this.selecting="column"}else t.column===this.rowHeader?this.selecting="row":this.selecting="cell";e.shiftKey?this.activeRange.setBounds(!1,t):e.ctrlKey?this.addRange().setBounds(t):this.resetRanges().setBounds(t)}autoScroll(e,t,i){var a=this.table.rowManager.element,n,r,l,h;typeof t>"u"&&(t=this.getRowByRangePos(e.end.row).getElement()),typeof i>"u"&&(i=this.getColumnByRangePos(e.end.col).getElement()),n={left:i.offsetLeft,right:i.offsetLeft+i.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight},r={left:a.scrollLeft+this.getRowHeaderWidth(),right:Math.ceil(a.scrollLeft+a.clientWidth),top:a.scrollTop,bottom:a.scrollTop+a.offsetHeight-this.table.rowManager.scrollbarWidth},l=r.left<n.left&&n.left<r.right&&r.left<n.right&&n.right<r.right,h=r.top<n.top&&n.top<r.bottom&&r.top<n.bottom&&n.bottom<r.bottom,l||(n.left<r.left?a.scrollLeft=n.left-this.getRowHeaderWidth():n.right>r.right&&(a.scrollLeft=Math.min(n.right-a.clientWidth,n.left-this.getRowHeaderWidth()))),h||(n.top<r.top?a.scrollTop=n.top:n.bottom>r.bottom&&(a.scrollTop=n.bottom-a.clientHeight))}layoutChange(){this.overlay.style.visibility="hidden",clearTimeout(this.layoutChangeTimeout),this.layoutChangeTimeout=setTimeout(this.layoutRanges.bind(this),200)}redraw(e){e&&(this.selecting="cell",this.resetRanges(),this.layoutElement())}layoutElement(e){var t;e?t=this.table.rowManager.getVisibleRows(!0):t=this.table.rowManager.getRows(),t.forEach(i=>{i.type==="row"&&(this.layoutRow(i),i.cells.forEach(a=>this.renderCell(a)))}),this.getTableColumns().forEach(i=>{this.layoutColumn(i)}),this.layoutRanges()}layoutRow(e){var t=e.getElement(),i=!1,a=this.ranges.some(n=>n.occupiesRow(e));this.selecting==="row"?i=a:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",a)}layoutColumn(e){var t=e.getElement(),i=!1,a=this.ranges.some(n=>n.occupiesColumn(e));this.selecting==="column"?i=a:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",a)}layoutRanges(){var e,t,i;this.table.initialized&&(e=this.getActiveCell(),e&&(t=e.getElement(),i=e.row.getElement(),this.table.rtl?this.activeRangeCellElement.style.right=i.offsetWidth-t.offsetLeft-t.offsetWidth+"px":this.activeRangeCellElement.style.left=i.offsetLeft+t.offsetLeft+"px",this.activeRangeCellElement.style.top=i.offsetTop+"px",this.activeRangeCellElement.style.width=t.offsetWidth+"px",this.activeRangeCellElement.style.height=i.offsetHeight+"px",this.ranges.forEach(a=>a.layout()),this.overlay.style.visibility="visible"))}getCell(e,t){var i;return t<0&&(t=this.getTableColumns().length+t,t<0)?null:(e<0&&(e=this.getTableRows().length+e),i=this.table.rowManager.getRowFromPosition(e+1),i?i.getCells(!1,!0).filter(a=>a.column.visible)[t]:null)}getActiveCell(){return this.getCell(this.activeRange.start.row,this.activeRange.start.col)}getRowByRangePos(e){return this.getTableRows()[e]}getColumnByRangePos(e){return this.getTableColumns()[e]}getTableRows(){return this.table.rowManager.getDisplayRows().filter(e=>e.type==="row")}getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}addRange(e,t){var i;return this.maxRanges!==!0&&this.ranges.length>=this.maxRanges&&this.ranges.shift().destroy(),i=new AI(this.table,this,e,t),this.activeRange=i,this.ranges.push(i),this.rangeContainer.appendChild(i.element),i}resetRanges(){var e,t,i;return this.ranges.forEach(a=>a.destroy()),this.ranges=[],e=this.addRange(),this.table.rowManager.activeRows.length&&(i=this.table.rowManager.activeRows[0].cells.filter(a=>a.column.visible),t=i[this.rowHeader?1:0],t&&(e.setBounds(t),this.options("selectableRangeAutoFocus")&&this.initializeFocus(t))),e}tableDestroyed(){document.removeEventListener("mouseup",this.mouseUpEvent),this.table.rowManager.element.removeEventListener("keydown",this.keyDownEvent)}selectedRows(e){return e?this.activeRange.getRows().map(t=>t.getComponent()):this.activeRange.getRows()}selectedColumns(e){return e?this.activeRange.getColumns().map(t=>t.getComponent()):this.activeRange.getColumns()}getRowHeaderWidth(){return this.rowHeader?this.rowHeader.getElement().offsetWidth:0}isEmpty(e){return e==null||e===""}}E(Wn,"moduleName","selectRange"),E(Wn,"moduleInitOrder",1),E(Wn,"moduleExtensions",jI);function NI(o,e,t,i,a,n,r){var l=r.alignEmptyValues,h=r.decimalSeparator,d=r.thousandSeparator,u=0;if(o=String(o),e=String(e),d&&(o=o.split(d).join(""),e=e.split(d).join("")),h&&(o=o.split(h).join("."),e=e.split(h).join(".")),o=parseFloat(o),e=parseFloat(e),isNaN(o))u=isNaN(e)?0:-1;else if(isNaN(e))u=1;else return o-e;return(l==="top"&&n==="desc"||l==="bottom"&&n==="asc")&&(u*=-1),u}function _I(o,e,t,i,a,n,r){var l=r.alignEmptyValues,h=0,d;if(!o)h=e?-1:0;else if(!e)h=1;else{switch(typeof r.locale){case"boolean":r.locale&&(d=this.langLocale());break;case"string":d=r.locale;break}return String(o).toLowerCase().localeCompare(String(e).toLowerCase(),d)}return(l==="top"&&n==="desc"||l==="bottom"&&n==="asc")&&(h*=-1),h}function aC(o,e,t,i,a,n,r){var l=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),h=r.format||"dd/MM/yyyy HH:mm:ss",d=r.alignEmptyValues,u=0;if(typeof l<"u"){if(l.isDateTime(o)||(h==="iso"?o=l.fromISO(String(o)):o=l.fromFormat(String(o),h)),l.isDateTime(e)||(h==="iso"?e=l.fromISO(String(e)):e=l.fromFormat(String(e),h)),!o.isValid)u=e.isValid?-1:0;else if(!e.isValid)u=1;else return o-e;return(d==="top"&&n==="desc"||d==="bottom"&&n==="asc")&&(u*=-1),u}else console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}function WI(o,e,t,i,a,n,r){return r.format||(r.format="dd/MM/yyyy"),aC.call(this,o,e,t,i,a,n,r)}function UI(o,e,t,i,a,n,r){return r.format||(r.format="HH:mm"),aC.call(this,o,e,t,i,a,n,r)}function $I(o,e,t,i,a,n,r){var l=o===!0||o==="true"||o==="True"||o===1?1:0,h=e===!0||e==="true"||e==="True"||e===1?1:0;return l-h}function GI(o,e,t,i,a,n,r){var l=r.type||"length",h=r.alignEmptyValues,d=0,u=this.table,p;r.valueMap&&(typeof r.valueMap=="string"?p=function(f){return f.map(g=>G.retrieveNestedData(u.options.nestedFieldSeparator,r.valueMap,g))}:p=r.valueMap);function y(f){var g;switch(p&&(f=p(f)),l){case"length":g=f.length;break;case"sum":g=f.reduce(function(k,v){return k+v});break;case"max":g=Math.max.apply(null,f);break;case"min":g=Math.min.apply(null,f);break;case"avg":g=f.reduce(function(k,v){return k+v})/f.length;break;case"string":g=f.join("");break}return g}if(!Array.isArray(o))d=Array.isArray(e)?-1:0;else if(!Array.isArray(e))d=1;else return l==="string"?String(y(o)).toLowerCase().localeCompare(String(y(e)).toLowerCase()):y(e)-y(o);return(h==="top"&&n==="desc"||h==="bottom"&&n==="asc")&&(d*=-1),d}function YI(o,e,t,i,a,n,r){var l=typeof o>"u"?0:1,h=typeof e>"u"?0:1;return l-h}function ZI(o,e,t,i,a,n,r){var l,h,d,u,p=0,y,f=/(\d+)|(\D+)/g,g=/\d/,k=r.alignEmptyValues,v=0;if(!o&&o!==0)v=!e&&e!==0?0:-1;else if(!e&&e!==0)v=1;else{if(isFinite(o)&&isFinite(e))return o-e;if(l=String(o).toLowerCase(),h=String(e).toLowerCase(),l===h)return 0;if(!(g.test(l)&&g.test(h)))return l>h?1:-1;for(l=l.match(f),h=h.match(f),y=l.length>h.length?h.length:l.length;p<y;)if(d=l[p],u=h[p++],d!==u)return isFinite(d)&&isFinite(u)?(d.charAt(0)==="0"&&(d="."+d),u.charAt(0)==="0"&&(u="."+u),d-u):d>u?1:-1;return l.length>h.length}return(k==="top"&&n==="desc"||k==="bottom"&&n==="asc")&&(v*=-1),v}var XI={number:NI,string:_I,date:WI,time:UI,datetime:aC,boolean:$I,array:GI,exists:YI,alphanum:ZI};const Bo=class Bo extends B{constructor(e){super(e),this.sortList=[],this.changed=!1,this.registerTableOption("sortMode","local"),this.registerTableOption("initialSort",!1),this.registerTableOption("columnHeaderSortMulti",!0),this.registerTableOption("sortOrderReverse",!1),this.registerTableOption("headerSortElement","<div class='tabulator-arrow'></div>"),this.registerTableOption("headerSortClickElement","header"),this.registerColumnOption("sorter"),this.registerColumnOption("sorterParams"),this.registerColumnOption("headerSort",!0),this.registerColumnOption("headerSortStartingDir"),this.registerColumnOption("headerSortTristate")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.registerDataHandler(this.sort.bind(this),20),this.registerTableFunction("setSort",this.userSetSort.bind(this)),this.registerTableFunction("getSorters",this.getSort.bind(this)),this.registerTableFunction("clearSort",this.clearSort.bind(this)),this.table.options.sortMode==="remote"&&this.subscribe("data-params",this.remoteSortParams.bind(this))}tableBuilt(){this.table.options.initialSort&&this.setSort(this.table.options.initialSort)}remoteSortParams(e,t,i,a){var n=this.getSort();return n.forEach(r=>{delete r.column}),a.sort=n,a}userSetSort(e,t){this.setSort(e,t),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(e){var t=!1,i,a;switch(typeof e.definition.sorter){case"string":Bo.sorters[e.definition.sorter]?t=Bo.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":t=e.definition.sorter;break}if(e.modules.sort={sorter:t,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:e.definition.headerSortTristate},e.definition.headerSort!==!1){switch(i=e.getElement(),i.classList.add("tabulator-sortable"),a=document.createElement("div"),a.classList.add("tabulator-col-sorter"),this.table.options.headerSortClickElement){case"icon":a.classList.add("tabulator-col-sorter-element");break;case"header":i.classList.add("tabulator-col-sorter-element");break;default:i.classList.add("tabulator-col-sorter-element");break}switch(this.table.options.headerSortElement){case"function":break;case"object":a.appendChild(this.table.options.headerSortElement);break;default:a.innerHTML=this.table.options.headerSortElement}e.titleHolderElement.appendChild(a),e.modules.sort.element=a,this.setColumnHeaderSortIcon(e,"none"),this.table.options.headerSortClickElement==="icon"&&a.addEventListener("mousedown",n=>{n.stopPropagation()}),(this.table.options.headerSortClickElement==="icon"?a:i).addEventListener("click",n=>{var r="",l=[],h=!1;if(e.modules.sort){if(e.modules.sort.tristate)e.modules.sort.dir=="none"?r=e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?r=e.modules.sort.dir=="asc"?"desc":"asc":r="none";else switch(e.modules.sort.dir){case"asc":r="desc";break;case"desc":r="asc";break;default:r=e.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(n.shiftKey||n.ctrlKey)?(l=this.getSort(),h=l.findIndex(d=>d.field===e.getField()),h>-1?(l[h].dir=r,h=l.splice(h,1)[0],r!="none"&&l.push(h)):r!="none"&&l.push({column:e,dir:r}),this.setSort(l)):r=="none"?this.clear():this.setSort(e,r),this.refreshSort()}})}}refreshSort(){this.table.options.sortMode==="remote"?this.reloadData(null,!1,!1):this.refreshData(!0)}hasChanged(){var e=this.changed;return this.changed=!1,e}getSort(){var e=this,t=[];return e.sortList.forEach(function(i){i.column&&t.push({column:i.column.getComponent(),field:i.column.getField(),dir:i.dir})}),t}setSort(e,t){var i=this,a=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(n){var r;r=i.table.columnManager.findColumn(n.column),r?(n.column=r,a.push(n),i.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",n.column)}),i.sortList=a,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(e){var t=this.table.rowManager.activeRows[0],i="string",a,n;if(t&&(t=t.getData(),a=e.getField(),a))switch(n=e.getFieldValue(t),typeof n){case"undefined":i="string";break;case"boolean":i="boolean";break;default:!isNaN(n)&&n!==""?i="number":n.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(i="alphanum");break}return Bo.sorters[i]}sort(e,t){var i=this,a=this.table.options.sortOrderReverse?i.sortList.slice().reverse():i.sortList,n=[],r=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",i.getSort()),t||i.clearColumnHeaders(),this.table.options.sortMode!=="remote"?(a.forEach(function(l,h){var d;l.column&&(d=l.column.modules.sort,d&&(d.sorter||(d.sorter=i.findSorter(l.column)),l.params=typeof d.params=="function"?d.params(l.column.getComponent(),l.dir):d.params,n.push(l)),t||i.setColumnHeader(l.column,l.dir))}),n.length&&i._sortItems(e,n)):t||a.forEach(function(l,h){i.setColumnHeader(l.column,l.dir)}),this.subscribedExternal("dataSorted")&&(e.forEach(l=>{r.push(l.getComponent())}),this.dispatchExternal("dataSorted",i.getSort(),r)),e}clearColumnHeaders(){this.table.columnManager.getRealColumns().forEach(e=>{e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"),this.setColumnHeaderSortIcon(e,"none"))})}setColumnHeader(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t==="asc"?"ascending":"descending"),this.setColumnHeaderSortIcon(e,t)}setColumnHeaderSortIcon(e,t){var i=e.modules.sort.element,a;if(e.definition.headerSort&&typeof this.table.options.headerSortElement=="function"){for(;i.firstChild;)i.removeChild(i.firstChild);a=this.table.options.headerSortElement.call(this.table,e.getComponent(),t),typeof a=="object"?i.appendChild(a):i.innerHTML=a}}_sortItems(e,t){var i=t.length-1;e.sort((a,n)=>{for(var r,l=i;l>=0;l--){let h=t[l];if(r=this._sortRow(a,n,h.column,h.dir,h.params),r!==0)break}return r})}_sortRow(e,t,i,a,n){var r,l,h=a=="asc"?e:t,d=a=="asc"?t:e;return e=i.getFieldValue(h.getData()),t=i.getFieldValue(d.getData()),e=typeof e<"u"?e:"",t=typeof t<"u"?t:"",r=h.getComponent(),l=d.getComponent(),i.modules.sort.sorter.call(this,e,t,r,l,i.getComponent(),a,n)}};E(Bo,"moduleName","sort"),E(Bo,"sorters",XI);let N9=Bo;class KI{constructor(e,t){this.columnCount=e,this.rowCount=t,this.columnString=[],this.columns=[],this.rows=[]}genColumns(e){var t=Math.max(this.columnCount,Math.max(...e.map(i=>i.length)));this.columnString=[],this.columns=[];for(let i=1;i<=t;i++)this.incrementChar(this.columnString.length-1),this.columns.push(this.columnString.join(""));return this.columns}genRows(e){var t=Math.max(this.rowCount,e.length);this.rows=[];for(let i=1;i<=t;i++)this.rows.push(i);return this.rows}incrementChar(e){let t=this.columnString[e];t?t!=="Z"?this.columnString[e]=String.fromCharCode(this.columnString[e].charCodeAt(0)+1):(this.columnString[e]="A",e?this.incrementChar(e-1):this.columnString.push("A")):this.columnString.push("A")}setRowCount(e){this.rowCount=e}setColumnCount(e){this.columnCount=e}}class Px{constructor(e){return this._sheet=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._sheet.table.componentFunctionBinder.handle("sheet",t._sheet,i)}})}getTitle(){return this._sheet.title}getKey(){return this._sheet.key}getDefinition(){return this._sheet.getDefinition()}getData(){return this._sheet.getData()}setData(e){return this._sheet.setData(e)}clear(){return this._sheet.clear()}remove(){return this._sheet.remove()}active(){return this._sheet.active()}setTitle(e){return this._sheet.setTitle(e)}setRows(e){return this._sheet.setRows(e)}setColumns(e){return this._sheet.setColumns(e)}}let qC=class extends ie{constructor(e,t){super(e.table),this.spreadsheetManager=e,this.definition=t,this.title=this.definition.title||"",this.key=this.definition.key||this.definition.title,this.rowCount=this.definition.rows,this.columnCount=this.definition.columns,this.data=this.definition.data||[],this.element=null,this.isActive=!1,this.grid=new KI(this.columnCount,this.rowCount),this.defaultColumnDefinition={width:100,headerHozAlign:"center",headerSort:!1},this.columnDefinition=Object.assign(this.defaultColumnDefinition,this.options("spreadsheetColumnDefinition")),this.columnDefs=[],this.rowDefs=[],this.columnFields=[],this.columns=[],this.rows=[],this.scrollTop=null,this.scrollLeft=null,this.initialize(),this.dispatchExternal("sheetAdded",this.getComponent())}initialize(){this.initializeElement(),this.initializeColumns(),this.initializeRows()}reinitialize(){this.initializeColumns(),this.initializeRows()}initializeElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tab"),this.element.innerText=this.title,this.element.addEventListener("click",()=>{this.spreadsheetManager.loadSheet(this)})}initializeColumns(){this.grid.setColumnCount(this.columnCount),this.columnFields=this.grid.genColumns(this.data),this.columnDefs=[],this.columnFields.forEach(e=>{var t=Object.assign({},this.columnDefinition);t.field=e,t.title=e,this.columnDefs.push(t)})}initializeRows(){var e;this.grid.setRowCount(this.rowCount),e=this.grid.genRows(this.data),this.rowDefs=[],e.forEach((t,i)=>{var a={_id:t},n=this.data[i];n&&n.forEach((r,l)=>{var h=this.columnFields[l];h&&(a[h]=r)}),this.rowDefs.push(a)})}unload(){this.isActive=!1,this.scrollTop=this.table.rowManager.scrollTop,this.scrollLeft=this.table.rowManager.scrollLeft,this.data=this.getData(!0),this.element.classList.remove("tabulator-spreadsheet-tab-active")}load(){var e=!this.isActive;this.isActive=!0,this.table.blockRedraw(),this.table.setData([]),this.table.setColumns(this.columnDefs),this.table.setData(this.rowDefs),this.table.restoreRedraw(),e&&this.scrollTop!==null&&(this.table.rowManager.element.scrollLeft=this.scrollLeft,this.table.rowManager.element.scrollTop=this.scrollTop),this.element.classList.add("tabulator-spreadsheet-tab-active"),this.dispatchExternal("sheetLoaded",this.getComponent())}getComponent(){return new Px(this)}getDefinition(){return{title:this.title,key:this.key,rows:this.rowCount,columns:this.columnCount,data:this.getData()}}getData(e){var t=[],i,a,n;return this.rowDefs.forEach(r=>{var l=[];this.columnFields.forEach(h=>{l.push(r[h])}),t.push(l)}),!e&&!this.options("spreadsheetOutputFull")&&(i=t.map(r=>r.findLastIndex(l=>typeof l<"u")+1),a=Math.max(...i),n=i.findLastIndex(r=>r>0)+1,t=t.slice(0,n),t=t.map(r=>r.slice(0,a))),t}setData(e){this.data=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}clear(){this.setData([])}setTitle(e){this.title=e,this.element.innerText=e,this.dispatchExternal("sheetUpdated",this.getComponent())}setRows(e){this.rowCount=e,this.initializeRows(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}setColumns(e){this.columnCount=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}remove(){this.spreadsheetManager.removeSheet(this)}destroy(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispatchExternal("sheetRemoved",this.getComponent())}active(){this.spreadsheetManager.loadSheet(this)}};class qx extends B{constructor(e){super(e),this.sheets=[],this.element=null,this.registerTableOption("spreadsheet",!1),this.registerTableOption("spreadsheetRows",50),this.registerTableOption("spreadsheetColumns",50),this.registerTableOption("spreadsheetColumnDefinition",{}),this.registerTableOption("spreadsheetOutputFull",!1),this.registerTableOption("spreadsheetData",!1),this.registerTableOption("spreadsheetSheets",!1),this.registerTableOption("spreadsheetSheetTabs",!1),this.registerTableOption("spreadsheetSheetTabsElement",!1),this.registerTableFunction("setSheets",this.setSheets.bind(this)),this.registerTableFunction("addSheet",this.addSheet.bind(this)),this.registerTableFunction("getSheets",this.getSheets.bind(this)),this.registerTableFunction("getSheetDefinitions",this.getSheetDefinitions.bind(this)),this.registerTableFunction("setSheetData",this.setSheetData.bind(this)),this.registerTableFunction("getSheet",this.getSheet.bind(this)),this.registerTableFunction("getSheetData",this.getSheetData.bind(this)),this.registerTableFunction("clearSheet",this.clearSheet.bind(this)),this.registerTableFunction("removeSheet",this.removeSheetFunc.bind(this)),this.registerTableFunction("activeSheet",this.activeSheetFunc.bind(this))}initialize(){this.options("spreadsheet")&&(this.subscribe("table-initialized",this.tableInitialized.bind(this)),this.subscribe("data-loaded",this.loadRemoteData.bind(this)),this.table.options.index="_id",this.options("spreadsheetData")&&this.options("spreadsheetSheets")&&(console.warn("You cannot use spreadsheetData and spreadsheetSheets at the same time, ignoring spreadsheetData"),this.table.options.spreadsheetData=!1),this.compatibilityCheck(),this.options("spreadsheetSheetTabs")&&this.initializeTabset())}compatibilityCheck(){this.options("data")&&console.warn("Do not use the data option when working with spreadsheets, use either spreadsheetData or spreadsheetSheets to pass data into the table"),this.options("pagination")&&console.warn("The spreadsheet module is not compatible with the pagination module"),this.options("groupBy")&&console.warn("The spreadsheet module is not compatible with the row grouping module"),this.options("responsiveCollapse")&&console.warn("The spreadsheet module is not compatible with the responsive collapse module")}initializeTabset(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tabs");var e=this.options("spreadsheetSheetTabsElement");e&&!(e instanceof HTMLElement)&&(e=document.querySelector(e),e||console.warn("Unable to find element matching spreadsheetSheetTabsElement selector:",this.options("spreadsheetSheetTabsElement"))),e?e.appendChild(this.element):this.footerAppend(this.element)}tableInitialized(){this.sheets.length?this.loadSheet(this.sheets[0]):this.options("spreadsheetSheets")?this.loadSheets(this.options("spreadsheetSheets")):this.options("spreadsheetData")&&this.loadData(this.options("spreadsheetData"))}loadRemoteData(e,t,i){return console.log("data",e,t,i),Array.isArray(e)?(this.table.dataLoader.clearAlert(),this.dispatchExternal("dataLoaded",e),!e.length||Array.isArray(e[0])?this.loadData(e):this.loadSheets(e)):console.error(`Spreadsheet Loading Error - Unable to process remote data due to invalid data type
|
|
18
18
|
Expecting: array
|
|
19
19
|
Received: `,typeof e,`
|
|
20
|
-
Data: `,e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}destroySheets(){this.sheets.forEach(e=>{e.destroy()}),this.sheets=[],this.activeSheet=null}loadSheets(e){Array.isArray(e)||(e=[]),this.destroySheets(),e.forEach(t=>{this.newSheet(t)}),this.loadSheet(this.sheets[0])}loadSheet(e){this.activeSheet!==e&&(this.activeSheet&&this.activeSheet.unload(),this.activeSheet=e,e.load())}newSheet(e={}){var t;return e.rows||(e.rows=this.options("spreadsheetRows")),e.columns||(e.columns=this.options("spreadsheetColumns")),t=new qC(this,e),this.sheets.push(t),this.element&&this.element.appendChild(t.element),t}removeSheet(e){var t=this.sheets.indexOf(e),i;this.sheets.length>1?t>-1&&(this.sheets.splice(t,1),e.destroy(),this.activeSheet===e&&(i=this.sheets[t-1]||this.sheets[0],i?this.loadSheet(i):this.activeSheet=null)):console.warn("Unable to remove sheet, at least one sheet must be active")}lookupSheet(e){return e?e instanceof qC?e:e instanceof Px?e._sheet:this.sheets.find(t=>t.key===e)||!1:this.activeSheet}setSheets(e){return this.loadSheets(e),this.getSheets()}addSheet(e){return this.newSheet(e).getComponent()}getSheetDefinitions(){return this.sheets.map(e=>e.getDefinition())}getSheets(){return this.sheets.map(e=>e.getComponent())}getSheet(e){var t=this.lookupSheet(e);return t?t.getComponent():!1}setSheetData(e,t){e&&!t&&(t=e,e=!1);var i=this.lookupSheet(e);return i?i.setData(t):!1}getSheetData(e){var t=this.lookupSheet(e);return t?t.getData():!1}clearSheet(e){var t=this.lookupSheet(e);return t?t.clear():!1}removeSheetFunc(e){var t=this.lookupSheet(e);t&&this.removeSheet(t)}activeSheetFunc(e){var t=this.lookupSheet(e);return t?this.loadSheet(t):!1}}E(qx,"moduleName","spreadsheet");class Bx extends q{constructor(e){super(e),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,this.popupInstance=null,this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"),this.registerColumnOption("headerTooltip")}initialize(){this.deprecatedOptionsCheck(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeColumn(e){e.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!0,this.subscribe("column-mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),e.definition.tooltip&&!this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(e,t,i){var a=e==="tooltip"?i.column.definition.tooltip:i.definition.headerTooltip;a&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,i,a),this.table.options.tooltipDelay))}mouseoutCheck(e,t,i){this.popupInstance||this.clearPopup()}clearPopup(e,t,i){clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstance.hide()}loadTooltip(e,t,i){var a,n,r;function l(h){n=h}typeof i=="function"&&(i=i(e,t.getComponent(),l)),i instanceof HTMLElement?a=i:(a=document.createElement("div"),i===!0&&(t instanceof wn?i=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,h=>{a.innerHTML=i=h||t.definition.title}):i=t.definition.title),a.innerHTML=i),(i||i===0||i===!1)&&(a.classList.add("tabulator-tooltip"),a.addEventListener("mousemove",h=>h.preventDefault()),this.popupInstance=this.popup(a),typeof n=="function"&&this.popupInstance.renderCallback(n),r=this.popupInstance.containerEventCoords(e),this.popupInstance.show(r.x+15,r.y+15).hideOnBlur(()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null}),this.dispatchExternal("TooltipOpened",t.getComponent()))}}E(Bx,"moduleName","tooltip");var JI={integer:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&Math.floor(e)===e)},float:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&e%1!==0)},numeric:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:!isNaN(e)},string:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:isNaN(e)},alphanumeric:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(/^[a-z0-9]+$/i);return i.test(e)},max:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)<=t},min:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)>=t},starts:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().startsWith(String(t).toLowerCase())},ends:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().endsWith(String(t).toLowerCase())},minLength:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length>=t},maxLength:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length<=t},in:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(typeof t=="string"&&(t=t.split("|")),t.indexOf(e)>-1)},regex:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(t);return i.test(e)},unique:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=!0,a=o.getData(),n=o.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(r){var l=r.getData();l!==a&&e==n.getFieldValue(l)&&(i=!1)}),i},required:function(o,e,t){return e!==""&&e!==null&&typeof e<"u"}};const kn=class kn extends q{constructor(e){super(e),this.invalidCells=[],this.registerTableOption("validationMode","blocking"),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCells",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",this.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.cellIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.cellValidate.bind(this)),this.registerComponentFunction("column","validate",this.columnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowValidate.bind(this))}initialize(){this.subscribe("cell-delete",this.clearValidation.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-success",this.editValidate.bind(this)),this.subscribe("edit-editor-clear",this.editorClear.bind(this)),this.subscribe("edit-edited-clear",this.editedClear.bind(this))}editValidate(e,t,i){var a=this.table.options.validationMode!=="manual"?this.validate(e.column.modules.validate,e,t):!0;return a!==!0&&setTimeout(()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,a)}),a}editorClear(e,t){t&&e.column.modules.validate&&this.cellValidate(e),e.getElement().classList.remove("tabulator-validation-fail")}editedClear(e){e.modules.validate&&(e.modules.validate.invalid=!1)}cellIsValid(e){return e.modules.validate&&e.modules.validate.invalid||!0}cellValidate(e){return this.validate(e.column.modules.validate,e,e.getValue())}columnValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}rowValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}userClearCellValidation(e){e||(e=this.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.clearValidation(t._getSelf())})}userValidate(e){var t=[];return this.table.rowManager.rows.forEach(i=>{i=i.getComponent();var a=i.validate();a!==!0&&(t=t.concat(a))}),t.length?t:!0}initializeColumnCheck(e){typeof e.definition.validator<"u"&&this.initializeColumn(e)}initializeColumn(e){var t=this,i=[],a;e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(n=>{a=t._extractValidator(n),a&&i.push(a)}):(a=this._extractValidator(e.definition.validator),a&&i.push(a)),e.modules.validate=i.length?i:!1)}_extractValidator(e){var t,i,a;switch(typeof e){case"string":return a=e.indexOf(":"),a>-1?(t=e.substring(0,a),i=e.substring(a+1)):t=e,this._buildValidator(t,i);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}}_buildValidator(e,t){var i=typeof e=="function"?e:kn.validators[e];return i?{type:typeof e=="function"?"function":e,func:i,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)}validate(e,t,i){var a=this,n=[],r=this.invalidCells.indexOf(t);return e&&e.forEach(l=>{l.func.call(a,t.getComponent(),i,l.params)||n.push({type:l.type,parameters:l.params})}),t.modules.validate||(t.modules.validate={}),n.length?(t.modules.validate.invalid=n,this.table.options.validationMode!=="manual"&&t.getElement().classList.add("tabulator-validation-fail"),r==-1&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)),n.length?n:!0}getInvalidCells(){var e=[];return this.invalidCells.forEach(t=>{e.push(t.getComponent())}),e}clearValidation(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))}};E(kn,"moduleName","validate"),E(kn,"validators",JI);let _9=kn;var u9=Object.freeze({__proto__:null,AccessorModule:E9,AjaxModule:T9,ClipboardModule:rS,ColumnCalcsModule:D9,DataTreeModule:Cx,DownloadModule:gS,EditModule:z9,ExportModule:R9,FilterModule:H9,FormatModule:A9,FrozenColumnsModule:xx,FrozenRowsModule:Lx,GroupRowsModule:Sx,HistoryModule:cI,HtmlTableImportModule:Ix,ImportModule:mI,InteractionModule:Tx,KeybindingsModule:V9,MenuModule:vI,MoveColumnsModule:Dx,MoveRowsModule:P9,MutatorModule:q9,PageModule:B9,PersistenceModule:F9,PopupModule:II,PrintModule:zx,ReactiveDataModule:Rx,ResizeColumnsModule:Hx,ResizeRowsModule:Ax,ResizeTableModule:Vx,ResponsiveLayoutModule:O9,SelectRangeModule:Wn,SelectRowModule:j9,SortModule:N9,SpreadsheetModule:qx,TooltipModule:Bx,ValidateModule:_9}),QI={debugEventsExternal:!1,debugEventsInternal:!1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},rowHeader:!1,data:!1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,rowHeight:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{},dependencies:{}};class Fx{constructor(e,t,i={}){this.table=e,this.msgType=t,this.registeredDefaults=Object.assign({},i)}register(e,t){this.registeredDefaults[e]=t}generate(e,t={}){var i=Object.assign({},this.registeredDefaults),a=this.table.options.debugInvalidOptions||t.debugInvalidOptions===!0;Object.assign(i,e);for(let n in t)i.hasOwnProperty(n)||(a&&console.warn("Invalid "+this.msgType+" option:",n),i[n]=t.key);for(let n in i)n in t?i[n]=t[n]:Array.isArray(i[n])?i[n]=Object.assign([],i[n]):typeof i[n]=="object"&&i[n]!==null?i[n]=Object.assign({},i[n]):typeof i[n]>"u"&&delete i[n];return i}}class K7 extends te{constructor(e){super(e),this.elementVertical=e.rowManager.element,this.elementHorizontal=e.columnManager.element,this.tableElement=e.rowManager.tableElement,this.verticalFillMode="fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(e){}renderRows(){}renderColumns(){}rerenderRows(e){e&&e()}rerenderColumns(e,t){}renderRowCells(e){}rerenderRowCells(e,t){}scrollColumns(e,t){}scrollRows(e,t){}resize(){}scrollToRow(e){}scrollToRowNearestTop(e){}visibleRows(e){return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}clear(){this.clearRows(),this.clearColumns()}render(){this.renderRows(),this.renderColumns()}rerender(e){this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(e,t,i){var a=this.rows().indexOf(e),n=e.getElement(),r=0;return new Promise((l,h)=>{if(a>-1){if(typeof i>"u"&&(i=this.table.options.scrollToRowIfVisible),!i&&G.elVisible(n)&&(r=G.elOffset(n).top-G.elOffset(this.elementVertical).top,r>0&&r<this.elementVertical.clientHeight-n.offsetHeight))return l(),!1;switch(typeof t>"u"&&(t=this.table.options.scrollToRowPosition),t==="nearest"&&(t=this.scrollToRowNearestTop(e)?"top":"bottom"),this.scrollToRow(e),t){case"middle":case"center":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop+(n.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-n.offsetTop)/2:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight/2;break;case"bottom":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop-(this.elementVertical.scrollHeight-n.offsetTop)+n.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+n.offsetHeight;break;case"top":this.elementVertical.scrollTop=n.offsetTop;break}l()}else console.warn("Scroll Error - Row not visible"),h("Scroll Error - Row not visible")})}}class eT extends K7{constructor(e){super(e)}renderRowCells(e,t){const i=document.createDocumentFragment();e.cells.forEach(a=>{i.appendChild(a.getElement())}),e.element.appendChild(i),t||e.cells.forEach(a=>{a.cellRendered()})}reinitializeColumnWidths(e){e.forEach(function(t){t.reinitializeWidth()})}}class tT extends K7{constructor(e){super(e),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,this.visibleRows=null,this.initialized=!1,this.isFitData=!1,this.columns=[]}initialize(){this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibilityCheck(){this.options("layout")=="fitDataTable"&&console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is not compatible with responsive columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction")}layoutCheck(){this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen(){this.subscribe("scroll-vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache(){this.visibleRows=null}renderColumns(e,t){this.dataChange()}scrollColumns(e,t){this.scrollLeft!=e&&(this.scrollLeft=e,this.scroll(e-(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var e=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach(t=>{if(t.visible){var i=t.getWidth();i>e&&(e=i)}}),this.windowBuffer=e*2}rerenderColumns(e,t){var i={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},a=0;e&&!this.initialized||(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach(n=>{var r={},l;n.visible&&(n.modules.frozen||(l=n.getWidth(),r.leftPos=a,r.rightPos=a+l,r.width=l,this.isFitData&&(r.fitDataCheck=n.modules.vdomHoz?n.modules.vdomHoz.fitDataCheck:!0),a+l>this.vDomScrollPosLeft&&a<this.vDomScrollPosRight?(this.leftCol==-1&&(this.leftCol=this.columns.length,this.vDomPadLeft=a),this.rightCol=this.columns.length):this.leftCol!==-1&&(this.vDomPadRight+=l),this.columns.push(n),n.modules.vdomHoz=r,a+=l))}),this.tableElement.style.paddingLeft=this.vDomPadLeft+"px",this.tableElement.style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,t||(!e||this.reinitChanged(i))&&this.reinitializeRows(),this.elementVertical.scrollLeft=this.scrollLeft)}renderRowCells(e){if(this.initialized)this.initializeRow(e);else{const t=document.createDocumentFragment();e.cells.forEach(i=>{t.appendChild(i.getElement())}),e.element.appendChild(t),e.cells.forEach(i=>{i.cellRendered()})}}rerenderRowCells(e,t){this.reinitializeRow(e,t)}reinitializeColumnWidths(e){for(let t=this.leftCol;t<=this.rightCol;t++){let i=this.columns[t];i&&i.reinitializeWidth()}}deinitialize(){this.initialized=!1}clear(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0}dataChange(){var e=!1,t,i;if(this.isFitData){if(this.table.columnManager.columnsByIndex.forEach(a=>{!a.definition.width&&a.visible&&(e=!0)}),e&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,t=this.chain("rows-sample",[1],[],()=>this.table.rowManager.getDisplayRows())[0],t)){i=t.getElement(),t.generateCells(),this.tableElement.appendChild(i);for(let a=0;a<t.cells.length;a++){let n=t.cells[a];i.appendChild(n.getElement()),n.column.reinitializeWidth()}i.parentNode.removeChild(i),this.rerenderColumns(!1,!0)}}else this.options("layout")==="fitColumns"&&(this.layoutRefresh(),this.rerenderColumns(!1,!0))}reinitChanged(e){var t=!0;return e.cols.length!==this.columns.length||e.leftCol!==this.leftCol||e.rightCol!==this.rightCol?!0:(e.cols.forEach((i,a)=>{i!==this.columns[a]&&(t=!1)}),!t)}reinitializeRows(){var e=this.getVisibleRows(),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));e.forEach(i=>{this.reinitializeRow(i,!0)}),t.forEach(i=>{i.deinitialize()})}getVisibleRows(){return this.visibleRows||(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(e){this.vDomScrollPosLeft+=e,this.vDomScrollPosRight+=e,Math.abs(e)>this.windowBuffer/2?this.rerenderColumns():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())}colPositionAdjust(e,t,i){for(let a=e;a<t;a++){let n=this.columns[a];n.modules.vdomHoz.leftPos+=i,n.modules.vdomHoz.rightPos+=i}}addColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol+1];i&&i.modules.vdomHoz.leftPos<=this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);a.getElement().insertBefore(n.getElement(),a.getCell(this.columns[this.rightCol]).getElement().nextSibling),n.cellRendered()}}),this.fitDataColActualWidthCheck(i),this.rightCol++,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.rightCol=this.rightCol)}),this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=i.getWidth()):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol-1];if(i)if(i.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){e=!0,this.getVisibleRows().forEach(n=>{if(n.type!=="group"){var r=n.getCell(i);n.getElement().insertBefore(r.getElement(),n.getCell(this.columns[this.leftCol]).getElement()),r.cellRendered()}}),this.leftCol--,this.getVisibleRows().forEach(n=>{n.type!=="group"&&(n.modules.vdomHoz.leftCol=this.leftCol)}),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=i.getWidth();let a=this.fitDataColActualWidthCheck(i);a&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+a,this.vDomPadRight-=a)}else t=!1;else t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol];i&&i.modules.vdomHoz.leftPos>this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);try{a.getElement().removeChild(n.getElement())}catch(r){console.warn("Could not removeColRight",r.message)}}}),this.vDomPadRight+=i.getWidth(),this.rightCol--,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.rightCol=this.rightCol)})):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol];i&&i.modules.vdomHoz.rightPos<this.vDomScrollPosLeft?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);try{a.getElement().removeChild(n.getElement())}catch(r){console.warn("Could not removeColLeft",r.message)}}}),this.vDomPadLeft+=i.getWidth(),this.leftCol++,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.leftCol=this.leftCol)})):t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWidthCheck(e){var t,i;return e.modules.vdomHoz.fitDataCheck&&(e.reinitializeWidth(),t=e.getWidth(),i=t-e.modules.vdomHoz.width,i&&(e.modules.vdomHoz.rightPos+=i,e.modules.vdomHoz.width=t,this.colPositionAdjust(this.columns.indexOf(e)+1,this.columns.length,i)),e.modules.vdomHoz.fitDataCheck=!1),i}initializeRow(e){if(e.type!=="group"){e.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.appendCell(e,t)});for(let t=this.leftCol;t<=this.rightCol;t++)this.appendCell(e,this.columns[t]);this.table.modules.frozenColumns&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.appendCell(e,t)})}}appendCell(e,t){if(t&&t.visible){let i=e.getCell(t);e.getElement().appendChild(i.getElement()),i.cellRendered()}}reinitializeRow(e,t){if(e.type!=="group"&&(t||!e.modules.vdomHoz||e.modules.vdomHoz.leftCol!==this.leftCol||e.modules.vdomHoz.rightCol!==this.rightCol)){for(var i=e.getElement();i.firstChild;)i.removeChild(i.firstChild);this.initializeRow(e)}}}class iT extends te{constructor(e){super(e),this.blockHozScrollEvent=!1,this.headersElement=null,this.contentsElement=null,this.rowHeader=null,this.element=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsList=new Fx(this.table,"column definition",Mx),this.redrawBlock=!1,this.redrawBlockUpdate=null,this.renderer=null}initialize(){this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.contentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderElement(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.firstChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),this.initializeScrollWheelWatcher(),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(e){this.table.rtl?this.headersElement.style.marginLeft=e+"px":this.headersElement.style.marginRight=e+"px"}initializeRenderer(){var e,t={virtual:tT,basic:eT};typeof this.table.options.renderHorizontal=="string"?e=t[this.table.options.renderHorizontal]:e=this.table.options.renderHorizontal,e?(this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize()):console.error("Unable to find matching renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var e=document.createElement("div");return e.classList.add("tabulator-headers"),e.setAttribute("role","row"),e}createHeaderContentsElement(){var e=document.createElement("div");return e.classList.add("tabulator-header-contents"),e.setAttribute("role","rowgroup"),e}createHeaderElement(){var e=document.createElement("div");return e.classList.add("tabulator-header"),e.setAttribute("role","rowgroup"),this.table.options.headerVisible||e.classList.add("tabulator-header-hidden"),e}getElement(){return this.element}getContentsElement(){return this.contentsElement}getHeadersElement(){return this.headersElement}scrollHorizontal(e){this.contentsElement.scrollLeft=e,this.scrollLeft=e,this.renderer.scrollColumns(e)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",e=>{var t;e.deltaX&&(t=this.contentsElement.scrollLeft+e.deltaX,this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))})}generateColumnsFromRowData(e){var t=[],i={},a=this.table.options.autoColumns==="full"?e:[e[0]],n=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(a.forEach(r=>{Object.keys(r).forEach((l,h)=>{let d=r[l],u;i[l]?i[l]!==!0&&typeof d<"u"&&(i[l].sorter=this.calculateSorterFromValue(d),i[l]=!0):(u={field:l,title:l,sorter:this.calculateSorterFromValue(d)},t.splice(h,0,u),i[l]=typeof d>"u"?u:!0)})}),n)switch(typeof n){case"function":this.table.options.columns=n.call(this.table,t);break;case"object":Array.isArray(n)?t.forEach(r=>{var l=n.find(h=>h.field===r.field);l&&Object.assign(r,l)}):t.forEach(r=>{n[r.field]&&Object.assign(r,n[r.field])}),this.table.options.columns=t;break}else this.table.options.columns=t;this.setColumns(this.table.options.columns)}}calculateSorterFromValue(e){var t;switch(typeof e){case"undefined":t="string";break;case"boolean":t="boolean";break;case"number":t="number";break;case"object":Array.isArray(e)?t="array":t="string";break;default:!isNaN(e)&&e!==""?t="number":e.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?t="alphanum":t="string";break}return t}setColumns(e,t){for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersElement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.dispatch("columns-loading"),this.dispatchExternal("columnsLoading"),this.table.options.rowHeader&&(this.rowHeader=new No(this.table.options.rowHeader===!0?{}:this.table.options.rowHeader,this,!0),this.columns.push(this.rowHeader),this.headersElement.appendChild(this.rowHeader.getElement()),this.rowHeader.columnRendered()),e.forEach((i,a)=>{this._addColumn(i)}),this._reIndexColumns(),this.dispatch("columns-loaded"),this.subscribedExternal("columnsLoaded")&&this.dispatchExternal("columnsLoaded",this.getComponents()),this.rerenderColumns(!1,!0),this.redraw(!0)}_addColumn(e,t,i){var a=new No(e,this),n=a.getElement(),r=i&&this.findColumnIndex(i);if(t&&this.rowHeader&&(!i||i===this.rowHeader)&&(t=!1,i=this.rowHeader,r=0),i&&r>-1){var l=i.getTopColumn(),h=this.columns.indexOf(l),d=l.getElement();t?(this.columns.splice(h,0,a),d.parentNode.insertBefore(n,d)):(this.columns.splice(h+1,0,a),d.parentNode.insertBefore(n,d.nextSibling))}else t?(this.columns.unshift(a),this.headersElement.insertBefore(a.getElement(),this.headersElement.firstChild)):(this.columns.push(a),this.headersElement.appendChild(a.getElement()));return a.columnRendered(),a}registerColumnField(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)}registerColumnPosition(e){this.columnsByIndex.push(e)}_reIndexColumns(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})}verticalAlignHeaders(){var e=0;this.redrawBlock||(this.headersElement.style.height="",this.columns.forEach(t=>{t.clearVerticalAlign()}),this.columns.forEach(t=>{var i=t.getHeight();i>e&&(e=i)}),this.headersElement.style.height=e+"px",this.columns.forEach(t=>{t.verticalAlign(this.table.options.columnHeaderVertAlign,e)}),this.table.rowManager.adjustTableSize())}findColumn(e){var t;if(typeof e=="object"){if(e instanceof No)return e;if(e instanceof wx)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return t=[],this.columns.forEach(a=>{t.push(a),t=t.concat(a.getColumns(!0))}),t.find(a=>a.element===e)||!1}else return this.columnsByField[e]||!1;return!1}getColumnByField(e){return this.columnsByField[e]}getColumnsByFieldRoot(e){var t=[];return Object.keys(this.columnsByField).forEach(i=>{var a=this.table.options.nestedFieldSeparator?i.split(this.table.options.nestedFieldSeparator)[0]:i;a===e&&t.push(this.columnsByField[i])}),t}getColumnByIndex(e){return this.columnsByIndex[e]}getFirstVisibleColumn(){var e=this.columnsByIndex.findIndex(t=>t.visible);return e>-1?this.columnsByIndex[e]:!1}getVisibleColumnsByIndex(){return this.columnsByIndex.filter(e=>e.visible)}getColumns(){return this.columns}findColumnIndex(e){return this.columnsByIndex.findIndex(t=>e===t)}getRealColumns(){return this.columnsByIndex}traverse(e){this.columnsByIndex.forEach((t,i)=>{e(t,i)})}getDefinitions(e){var t=[];return this.columnsByIndex.forEach(i=>{(!e||e&&i.visible)&&t.push(i.getDefinition())}),t}getDefinitionTree(){var e=[];return this.columns.forEach(t=>{e.push(t.getDefinition(!0))}),e}getComponents(e){var t=[],i=e?this.columns:this.columnsByIndex;return i.forEach(a=>{t.push(a.getComponent())}),t}getWidth(){var e=0;return this.columnsByIndex.forEach(t=>{t.visible&&(e+=t.getWidth())}),e}moveColumn(e,t,i){t.element.parentNode.insertBefore(e.element,t.element),i&&t.element.parentNode.insertBefore(t.element,e.element),this.moveColumnActual(e,t,i),this.verticalAlignHeaders(),this.table.rowManager.reinitialize()}moveColumnActual(e,t,i){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,i):this._moveColumnInArray(this.columns,e,t,i),this._moveColumnInArray(this.columnsByIndex,e,t,i,!0),this.rerenderColumns(!0),this.dispatch("column-moved",e,t,i),this.subscribedExternal("columnMoved")&&this.dispatchExternal("columnMoved",e.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArray(e,t,i,a,n){var r=e.indexOf(t),l,h=[];r>-1&&(e.splice(r,1),l=e.indexOf(i),l>-1?a&&(l=l+1):l=r,e.splice(l,0,t),n&&(h=this.chain("column-moving-rows",[t,i,a],null,[])||[],h=h.concat(this.table.rowManager.rows),h.forEach(function(d){if(d.cells.length){var u=d.cells.splice(r,1)[0];d.cells.splice(l,0,u)}})))}scrollToColumn(e,t,i){var a=0,n=e.getLeftOffset(),r=0,l=e.getElement();return new Promise((h,d)=>{if(typeof t>"u"&&(t=this.table.options.scrollToColumnPosition),typeof i>"u"&&(i=this.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":r=-this.element.clientWidth/2;break;case"right":r=l.clientWidth-this.headersElement.clientWidth;break}if(!i&&n>0&&n+l.offsetWidth<this.element.clientWidth)return!1;a=n+r,a=Math.max(Math.min(a,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(a),this.scrollHorizontal(a),h()}else console.warn("Scroll Error - Column not visible"),d("Scroll Error - Column not visible")})}generateCells(e){var t=[];return this.columnsByIndex.forEach(i=>{t.push(i.generateCell(e))}),t}getFlexBaseWidth(){var e=this.table.element.clientWidth,t=0;return this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(e-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(i){var a,n,r;i.visible&&(a=i.definition.width||0,n=parseInt(i.minWidth),typeof a=="string"?a.indexOf("%")>-1?r=e/100*parseInt(a):r=parseInt(a):r=a,t+=r>n?r:n)}),t}addColumn(e,t,i){return new Promise((a,n)=>{var r=this._addColumn(e,t,i);this._reIndexColumns(),this.dispatch("column-add",e,t,i),this.layoutMode()!="fitColumns"&&r.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),a(r)})}deregisterColumn(e){var t=e.getField(),i;t&&delete this.columnsByField[t],i=this.columnsByIndex.indexOf(e),i>-1&&this.columnsByIndex.splice(i,1),i=this.columns.indexOf(e),i>-1&&this.columns.splice(i,1),this.verticalAlignHeaders(),this.redraw()}rerenderColumns(e,t){this.redrawBlock?(e===!1||e===!0&&this.redrawBlockUpdate===null)&&(this.redrawBlockUpdate=e):this.renderer.rerenderColumns(e,t)}blockRedraw(){this.redrawBlock=!0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)}redraw(e){G.elVisible(this.element)&&this.verticalAlignHeaders(),e&&(this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-redrawing",e)||this.layoutRefresh(e),this.dispatch("table-redraw",e),this.table.footerManager.redraw()}}class aT extends K7{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.scrollTop=0,e.scrollLeft=0,e.style.minWidth="",e.style.minHeight="",e.style.display="",e.style.visibility=""}renderRows(){var e=this.tableElement,t=!0,i=document.createDocumentFragment(),a=this.rows();a.forEach((n,r)=>{this.styleRow(n,r),n.initialize(!1,!0),n.type!=="group"&&(t=!1),i.appendChild(n.getElement())}),e.appendChild(i),a.forEach(n=>{n.rendered(),n.heightInitialized||n.calcHeight(!0)}),a.forEach(n=>{n.heightInitialized||n.setCellHeight()}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}rerenderRows(e){this.clearRows(),e&&e(),this.renderRows(),this.rows().length||this.table.rowManager.tableEmpty()}scrollToRowNearestTop(e){var t=G.elOffset(e.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-t)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-t))}scrollToRow(e){var t=e.getElement();this.elementVertical.scrollTop=G.elOffset(t).top-G.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class oT extends K7{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop="",e.style.paddingBottom="",e.style.minHeight="",e.style.display="",e.style.visibility="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows(){this._virtualRenderFill()}rerenderRows(e){for(var t=this.elementVertical.scrollTop,i=!1,a=!1,n=this.table.rowManager.scrollLeft,r=this.rows(),l=this.vDomTop;l<=this.vDomBottom;l++)if(r[l]){var h=t-r[l].getElement().offsetTop;if(a===!1||Math.abs(h)<a)a=h,i=l;else break}r.forEach(d=>{d.deinitializeHeight()}),e&&e(),this.rows().length?this._virtualRenderFill(i===!1?this.rows.length-1:i,!0,a||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(n)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var i=e-this.vDomScrollPosTop,a=e-this.vDomScrollPosBottom,n=this.vDomWindowBuffer*2,r=this.rows();if(this.scrollTop=e,-i>n||a>n){var l=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*r.length)),this.scrollColumns(l)}else t?(i<0&&this._addTopRow(r,-i),a<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(r,-a):this.vDomScrollPosBottom=this.scrollTop)):(a>=0&&this._addBottomRow(r,a),i>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(r,i):this.vDomScrollPosTop=this.scrollTop))}resize(){this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||this.elementVertical.clientHeight}scrollToRowNearestTop(e){var t=this.rows().indexOf(e);return!(Math.abs(this.vDomTop-t)>Math.abs(this.vDomBottom-t))}scrollToRow(e){var t=this.rows().indexOf(e);t>-1&&this._virtualRenderFill(t,!0)}visibleRows(e){var t=this.elementVertical.scrollTop,i=this.elementVertical.clientHeight+t,a=!1,n=0,r=0,l=this.rows();if(e)n=this.vDomTop,r=this.vDomBottom;else for(var h=this.vDomTop;h<=this.vDomBottom;h++)if(l[h])if(a)if(i-l[h].getElement().offsetTop>=0)r=h;else break;else if(t-l[h].getElement().offsetTop>=0)n=h;else if(a=!0,i-l[h].getElement().offsetTop>=0)r=h;else break;return l.slice(n,r+1)}_virtualRenderFill(e,t,i){var a=this.tableElement,n=this.elementVertical,r=0,l=0,h=0,d=0,u=0,p=0,y=this.rows(),f=y.length,g=0,k,v,m=[],M=0,w=0,C=this.table.rowManager.fixedHeight,I=this.elementVertical.clientHeight,L=this.table.options.rowHeight,S=!0;if(e=e||0,i=i||0,!e)this.clear();else{for(;a.firstChild;)a.removeChild(a.firstChild);d=(f-e+1)*this.vDomRowHeight,d<I&&(e-=Math.ceil((I-d)/this.vDomRowHeight),e<0&&(e=0)),r=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e),e-=r}if(f&&G.elVisible(this.elementVertical)){for(this.vDomTop=e,this.vDomBottom=e-1,C||this.table.options.maxHeight?(L&&(w=I/L+this.vDomWindowBuffer/L),w=Math.max(this.vDomWindowMinTotalRows,Math.ceil(w))):w=f;(w==f||l<=I+this.vDomWindowBuffer||M<this.vDomWindowMinTotalRows)&&this.vDomBottom<f-1;){for(m=[],v=document.createDocumentFragment(),p=0;p<w&&this.vDomBottom<f-1;)g=this.vDomBottom+1,k=y[g],this.styleRow(k,g),k.initialize(!1,!0),!k.heightInitialized&&!this.table.options.rowHeight&&k.clearCellHeight(),v.appendChild(k.getElement()),m.push(k),this.vDomBottom++,p++;if(!m.length)break;a.appendChild(v),m.forEach(T=>{T.rendered(),T.heightInitialized||T.calcHeight(!0)}),m.forEach(T=>{T.heightInitialized||T.setCellHeight()}),m.forEach(T=>{h=T.getHeight(),M<r?u+=h:l+=h,h>this.vDomWindowBuffer&&(this.vDomWindowBuffer=h*2),M++}),S=this.table.rowManager.adjustTableSize(),I=this.elementVertical.clientHeight,S&&(C||this.table.options.maxHeight)&&(L=l/M,w=Math.max(this.vDomWindowMinTotalRows,Math.ceil(I/L+this.vDomWindowBuffer/L)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+i:this.scrollTop-u,this.vDomBottomPad=this.vDomBottom==f-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-l-u,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((l+u)/M),this.vDomBottomPad=this.vDomRowHeight*(f-this.vDomBottom-1),this.vDomScrollHeight=u+l+this.vDomBottomPad-I),a.style.paddingTop=this.vDomTopPad+"px",a.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+u+i-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-I:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-I),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-I),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,n.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var i=this.tableElement,a=[],n=0,r=this.vDomTop-1,l=0,h=!0;h;)if(this.vDomTop){let d=e[r],u,p;d&&l<this.vDomMaxRenderChain?(u=d.getHeight()||this.vDomRowHeight,p=d.initialized,t>=u?(this.styleRow(d,r),i.insertBefore(d.getElement(),i.firstChild),(!d.initialized||!d.heightInitialized)&&a.push(d),d.initialize(),p||(u=d.getElement().offsetHeight,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2)),t-=u,n+=u,this.vDomTop--,r--,l++):h=!1):h=!1}else h=!1;for(let d of a)d.clearCellHeight();this._quickNormalizeRowHeight(a),n&&(this.vDomTopPad-=n,this.vDomTopPad<0&&(this.vDomTopPad=r*this.vDomRowHeight),r<1&&(this.vDomTopPad=0),i.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=n)}_removeTopRow(e,t){for(var i=[],a=0,n=0,r=!0;r;){let l=e[this.vDomTop],h;l&&n<this.vDomMaxRenderChain?(h=l.getHeight()||this.vDomRowHeight,t>=h?(this.vDomTop++,t-=h,a+=h,i.push(l),n++):r=!1):r=!1}for(let l of i){let h=l.getElement();h.parentNode&&h.parentNode.removeChild(h)}a&&(this.vDomTopPad+=a,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?a:a+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var i=this.tableElement,a=[],n=0,r=this.vDomBottom+1,l=0,h=!0;h;){let d=e[r],u,p;d&&l<this.vDomMaxRenderChain?(u=d.getHeight()||this.vDomRowHeight,p=d.initialized,t>=u?(this.styleRow(d,r),i.appendChild(d.getElement()),(!d.initialized||!d.heightInitialized)&&a.push(d),d.initialize(),p||(u=d.getElement().offsetHeight,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2)),t-=u,n+=u,this.vDomBottom++,r++,l++):h=!1):h=!1}for(let d of a)d.clearCellHeight();this._quickNormalizeRowHeight(a),n&&(this.vDomBottomPad-=n,(this.vDomBottomPad<0||r==e.length-1)&&(this.vDomBottomPad=0),i.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=n)}_removeBottomRow(e,t){for(var i=[],a=0,n=0,r=!0;r;){let l=e[this.vDomBottom],h;l&&n<this.vDomMaxRenderChain?(h=l.getHeight()||this.vDomRowHeight,t>=h?(this.vDomBottom--,t-=h,a+=h,i.push(l),n++):r=!1):r=!1}for(let l of i){let h=l.getElement();h.parentNode&&h.parentNode.removeChild(h)}a&&(this.vDomBottomPad+=a,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=a)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class nT extends te{constructor(e){super(e),this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.placeholderContents=null,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRenderInPosition=!1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=null}createHolderElement(){var e=document.createElement("div");return e.classList.add("tabulator-tableholder"),e.setAttribute("tabindex",0),e}createTableElement(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e.setAttribute("role","rowgroup"),e}initializePlaceholder(){var e=this.table.options.placeholder;if(typeof e=="function"&&(e=e.call(this.table)),e=this.chain("placeholder",[e],e,e)||e,e){let t=document.createElement("div");if(t.classList.add("tabulator-placeholder"),typeof e=="string"){let i=document.createElement("div");i.classList.add("tabulator-placeholder-contents"),i.innerHTML=e,t.appendChild(i),this.placeholderContents=i}else typeof HTMLElement<"u"&&e instanceof HTMLElement?(t.appendChild(e),this.placeholderContents=e):(console.warn("Invalid placeholder provided, must be string or HTML Element",e),this.el=null);this.placeholder=t}}getElement(){return this.element}getTableElement(){return this.tableElement}initialize(){this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(this.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",()=>{var e=this.element.scrollLeft,t=this.scrollLeft>e,i=this.element.scrollTop,a=this.scrollTop>i;this.scrollLeft!=e&&(this.scrollLeft=e,this.dispatch("scroll-horizontal",e,t),this.dispatchExternal("scrollHorizontal",e,t),this._positionPlaceholder()),this.scrollTop!=i&&(this.scrollTop=i,this.renderer.scrollRows(i,a),this.dispatch("scroll-vertical",i,a),this.dispatchExternal("scrollVertical",i,a))})}findRow(e){if(typeof e=="object"){if(e instanceof ie)return e;if(e instanceof Z7)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return this.rows.find(i=>i.getElement()===e)||!1;if(e===null)return!1}else return typeof e>"u"?!1:this.rows.find(i=>i.data[this.table.options.index]==e)||!1;return!1}getRowFromDataObject(e){var t=this.rows.find(i=>i.data===e);return t||!1}getRowFromPosition(e){return this.getDisplayRows().find(t=>t.type==="row"&&t.getPosition()===e&&t.isDisplayed())}scrollToRow(e,t,i){return this.renderer.scrollToRowPosition(e,t,i)}setData(e,t,i){return new Promise((a,n)=>{t&&this.getDisplayRows().length?this.table.options.pagination?this._setDataActual(e,!0):this.reRenderInPosition(()=>{this._setDataActual(e)}):(this.table.options.autoColumns&&i&&this.table.initialized&&this.table.columnManager.generateColumnsFromRowData(e),this.resetScroll(),this._setDataActual(e)),a()})}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach((i,a)=>{if(i&&typeof i=="object"){var n=new ie(i,this);this.rows.push(n)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",i)}),this.refreshActiveData(!1,!1,t),this.dispatch("data-processed",e),this.dispatchExternal("dataProcessed",e)):console.error(`Data Loading Error - Unable to process data due to invalid data type
|
|
20
|
+
Data: `,e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}destroySheets(){this.sheets.forEach(e=>{e.destroy()}),this.sheets=[],this.activeSheet=null}loadSheets(e){Array.isArray(e)||(e=[]),this.destroySheets(),e.forEach(t=>{this.newSheet(t)}),this.loadSheet(this.sheets[0])}loadSheet(e){this.activeSheet!==e&&(this.activeSheet&&this.activeSheet.unload(),this.activeSheet=e,e.load())}newSheet(e={}){var t;return e.rows||(e.rows=this.options("spreadsheetRows")),e.columns||(e.columns=this.options("spreadsheetColumns")),t=new qC(this,e),this.sheets.push(t),this.element&&this.element.appendChild(t.element),t}removeSheet(e){var t=this.sheets.indexOf(e),i;this.sheets.length>1?t>-1&&(this.sheets.splice(t,1),e.destroy(),this.activeSheet===e&&(i=this.sheets[t-1]||this.sheets[0],i?this.loadSheet(i):this.activeSheet=null)):console.warn("Unable to remove sheet, at least one sheet must be active")}lookupSheet(e){return e?e instanceof qC?e:e instanceof Px?e._sheet:this.sheets.find(t=>t.key===e)||!1:this.activeSheet}setSheets(e){return this.loadSheets(e),this.getSheets()}addSheet(e){return this.newSheet(e).getComponent()}getSheetDefinitions(){return this.sheets.map(e=>e.getDefinition())}getSheets(){return this.sheets.map(e=>e.getComponent())}getSheet(e){var t=this.lookupSheet(e);return t?t.getComponent():!1}setSheetData(e,t){e&&!t&&(t=e,e=!1);var i=this.lookupSheet(e);return i?i.setData(t):!1}getSheetData(e){var t=this.lookupSheet(e);return t?t.getData():!1}clearSheet(e){var t=this.lookupSheet(e);return t?t.clear():!1}removeSheetFunc(e){var t=this.lookupSheet(e);t&&this.removeSheet(t)}activeSheetFunc(e){var t=this.lookupSheet(e);return t?this.loadSheet(t):!1}}E(qx,"moduleName","spreadsheet");class Bx extends B{constructor(e){super(e),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,this.popupInstance=null,this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"),this.registerColumnOption("headerTooltip")}initialize(){this.deprecatedOptionsCheck(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeColumn(e){e.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!0,this.subscribe("column-mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),e.definition.tooltip&&!this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(e,t,i){var a=e==="tooltip"?i.column.definition.tooltip:i.definition.headerTooltip;a&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,i,a),this.table.options.tooltipDelay))}mouseoutCheck(e,t,i){this.popupInstance||this.clearPopup()}clearPopup(e,t,i){clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstance.hide()}loadTooltip(e,t,i){var a,n,r;function l(h){n=h}typeof i=="function"&&(i=i(e,t.getComponent(),l)),i instanceof HTMLElement?a=i:(a=document.createElement("div"),i===!0&&(t instanceof wn?i=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,h=>{a.innerHTML=i=h||t.definition.title}):i=t.definition.title),a.innerHTML=i),(i||i===0||i===!1)&&(a.classList.add("tabulator-tooltip"),a.addEventListener("mousemove",h=>h.preventDefault()),this.popupInstance=this.popup(a),typeof n=="function"&&this.popupInstance.renderCallback(n),r=this.popupInstance.containerEventCoords(e),this.popupInstance.show(r.x+15,r.y+15).hideOnBlur(()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null}),this.dispatchExternal("TooltipOpened",t.getComponent()))}}E(Bx,"moduleName","tooltip");var JI={integer:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&Math.floor(e)===e)},float:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&e%1!==0)},numeric:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:!isNaN(e)},string:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:isNaN(e)},alphanumeric:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(/^[a-z0-9]+$/i);return i.test(e)},max:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)<=t},min:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)>=t},starts:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().startsWith(String(t).toLowerCase())},ends:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().endsWith(String(t).toLowerCase())},minLength:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length>=t},maxLength:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length<=t},in:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(typeof t=="string"&&(t=t.split("|")),t.indexOf(e)>-1)},regex:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(t);return i.test(e)},unique:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=!0,a=o.getData(),n=o.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(r){var l=r.getData();l!==a&&e==n.getFieldValue(l)&&(i=!1)}),i},required:function(o,e,t){return e!==""&&e!==null&&typeof e<"u"}};const kn=class kn extends B{constructor(e){super(e),this.invalidCells=[],this.registerTableOption("validationMode","blocking"),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCells",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",this.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.cellIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.cellValidate.bind(this)),this.registerComponentFunction("column","validate",this.columnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowValidate.bind(this))}initialize(){this.subscribe("cell-delete",this.clearValidation.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-success",this.editValidate.bind(this)),this.subscribe("edit-editor-clear",this.editorClear.bind(this)),this.subscribe("edit-edited-clear",this.editedClear.bind(this))}editValidate(e,t,i){var a=this.table.options.validationMode!=="manual"?this.validate(e.column.modules.validate,e,t):!0;return a!==!0&&setTimeout(()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,a)}),a}editorClear(e,t){t&&e.column.modules.validate&&this.cellValidate(e),e.getElement().classList.remove("tabulator-validation-fail")}editedClear(e){e.modules.validate&&(e.modules.validate.invalid=!1)}cellIsValid(e){return e.modules.validate&&e.modules.validate.invalid||!0}cellValidate(e){return this.validate(e.column.modules.validate,e,e.getValue())}columnValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}rowValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}userClearCellValidation(e){e||(e=this.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.clearValidation(t._getSelf())})}userValidate(e){var t=[];return this.table.rowManager.rows.forEach(i=>{i=i.getComponent();var a=i.validate();a!==!0&&(t=t.concat(a))}),t.length?t:!0}initializeColumnCheck(e){typeof e.definition.validator<"u"&&this.initializeColumn(e)}initializeColumn(e){var t=this,i=[],a;e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(n=>{a=t._extractValidator(n),a&&i.push(a)}):(a=this._extractValidator(e.definition.validator),a&&i.push(a)),e.modules.validate=i.length?i:!1)}_extractValidator(e){var t,i,a;switch(typeof e){case"string":return a=e.indexOf(":"),a>-1?(t=e.substring(0,a),i=e.substring(a+1)):t=e,this._buildValidator(t,i);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}}_buildValidator(e,t){var i=typeof e=="function"?e:kn.validators[e];return i?{type:typeof e=="function"?"function":e,func:i,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)}validate(e,t,i){var a=this,n=[],r=this.invalidCells.indexOf(t);return e&&e.forEach(l=>{l.func.call(a,t.getComponent(),i,l.params)||n.push({type:l.type,parameters:l.params})}),t.modules.validate||(t.modules.validate={}),n.length?(t.modules.validate.invalid=n,this.table.options.validationMode!=="manual"&&t.getElement().classList.add("tabulator-validation-fail"),r==-1&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)),n.length?n:!0}getInvalidCells(){var e=[];return this.invalidCells.forEach(t=>{e.push(t.getComponent())}),e}clearValidation(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))}};E(kn,"moduleName","validate"),E(kn,"validators",JI);let _9=kn;var u9=Object.freeze({__proto__:null,AccessorModule:E9,AjaxModule:T9,ClipboardModule:rS,ColumnCalcsModule:D9,DataTreeModule:Cx,DownloadModule:gS,EditModule:z9,ExportModule:R9,FilterModule:H9,FormatModule:A9,FrozenColumnsModule:xx,FrozenRowsModule:Lx,GroupRowsModule:Sx,HistoryModule:cI,HtmlTableImportModule:Ix,ImportModule:mI,InteractionModule:Tx,KeybindingsModule:V9,MenuModule:vI,MoveColumnsModule:Dx,MoveRowsModule:P9,MutatorModule:q9,PageModule:B9,PersistenceModule:F9,PopupModule:II,PrintModule:zx,ReactiveDataModule:Rx,ResizeColumnsModule:Hx,ResizeRowsModule:Ax,ResizeTableModule:Vx,ResponsiveLayoutModule:O9,SelectRangeModule:Wn,SelectRowModule:j9,SortModule:N9,SpreadsheetModule:qx,TooltipModule:Bx,ValidateModule:_9}),QI={debugEventsExternal:!1,debugEventsInternal:!1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},rowHeader:!1,data:!1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,rowHeight:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{},dependencies:{}};class Fx{constructor(e,t,i={}){this.table=e,this.msgType=t,this.registeredDefaults=Object.assign({},i)}register(e,t){this.registeredDefaults[e]=t}generate(e,t={}){var i=Object.assign({},this.registeredDefaults),a=this.table.options.debugInvalidOptions||t.debugInvalidOptions===!0;Object.assign(i,e);for(let n in t)i.hasOwnProperty(n)||(a&&console.warn("Invalid "+this.msgType+" option:",n),i[n]=t.key);for(let n in i)n in t?i[n]=t[n]:Array.isArray(i[n])?i[n]=Object.assign([],i[n]):typeof i[n]=="object"&&i[n]!==null?i[n]=Object.assign({},i[n]):typeof i[n]>"u"&&delete i[n];return i}}class K7 extends ie{constructor(e){super(e),this.elementVertical=e.rowManager.element,this.elementHorizontal=e.columnManager.element,this.tableElement=e.rowManager.tableElement,this.verticalFillMode="fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(e){}renderRows(){}renderColumns(){}rerenderRows(e){e&&e()}rerenderColumns(e,t){}renderRowCells(e){}rerenderRowCells(e,t){}scrollColumns(e,t){}scrollRows(e,t){}resize(){}scrollToRow(e){}scrollToRowNearestTop(e){}visibleRows(e){return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}clear(){this.clearRows(),this.clearColumns()}render(){this.renderRows(),this.renderColumns()}rerender(e){this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(e,t,i){var a=this.rows().indexOf(e),n=e.getElement(),r=0;return new Promise((l,h)=>{if(a>-1){if(typeof i>"u"&&(i=this.table.options.scrollToRowIfVisible),!i&&G.elVisible(n)&&(r=G.elOffset(n).top-G.elOffset(this.elementVertical).top,r>0&&r<this.elementVertical.clientHeight-n.offsetHeight))return l(),!1;switch(typeof t>"u"&&(t=this.table.options.scrollToRowPosition),t==="nearest"&&(t=this.scrollToRowNearestTop(e)?"top":"bottom"),this.scrollToRow(e),t){case"middle":case"center":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop+(n.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-n.offsetTop)/2:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight/2;break;case"bottom":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop-(this.elementVertical.scrollHeight-n.offsetTop)+n.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+n.offsetHeight;break;case"top":this.elementVertical.scrollTop=n.offsetTop;break}l()}else console.warn("Scroll Error - Row not visible"),h("Scroll Error - Row not visible")})}}class eT extends K7{constructor(e){super(e)}renderRowCells(e,t){const i=document.createDocumentFragment();e.cells.forEach(a=>{i.appendChild(a.getElement())}),e.element.appendChild(i),t||e.cells.forEach(a=>{a.cellRendered()})}reinitializeColumnWidths(e){e.forEach(function(t){t.reinitializeWidth()})}}class tT extends K7{constructor(e){super(e),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,this.visibleRows=null,this.initialized=!1,this.isFitData=!1,this.columns=[]}initialize(){this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibilityCheck(){this.options("layout")=="fitDataTable"&&console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is not compatible with responsive columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction")}layoutCheck(){this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen(){this.subscribe("scroll-vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache(){this.visibleRows=null}renderColumns(e,t){this.dataChange()}scrollColumns(e,t){this.scrollLeft!=e&&(this.scrollLeft=e,this.scroll(e-(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var e=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach(t=>{if(t.visible){var i=t.getWidth();i>e&&(e=i)}}),this.windowBuffer=e*2}rerenderColumns(e,t){var i={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},a=0;e&&!this.initialized||(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach(n=>{var r={},l;n.visible&&(n.modules.frozen||(l=n.getWidth(),r.leftPos=a,r.rightPos=a+l,r.width=l,this.isFitData&&(r.fitDataCheck=n.modules.vdomHoz?n.modules.vdomHoz.fitDataCheck:!0),a+l>this.vDomScrollPosLeft&&a<this.vDomScrollPosRight?(this.leftCol==-1&&(this.leftCol=this.columns.length,this.vDomPadLeft=a),this.rightCol=this.columns.length):this.leftCol!==-1&&(this.vDomPadRight+=l),this.columns.push(n),n.modules.vdomHoz=r,a+=l))}),this.tableElement.style.paddingLeft=this.vDomPadLeft+"px",this.tableElement.style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,t||(!e||this.reinitChanged(i))&&this.reinitializeRows(),this.elementVertical.scrollLeft=this.scrollLeft)}renderRowCells(e){if(this.initialized)this.initializeRow(e);else{const t=document.createDocumentFragment();e.cells.forEach(i=>{t.appendChild(i.getElement())}),e.element.appendChild(t),e.cells.forEach(i=>{i.cellRendered()})}}rerenderRowCells(e,t){this.reinitializeRow(e,t)}reinitializeColumnWidths(e){for(let t=this.leftCol;t<=this.rightCol;t++){let i=this.columns[t];i&&i.reinitializeWidth()}}deinitialize(){this.initialized=!1}clear(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0}dataChange(){var e=!1,t,i;if(this.isFitData){if(this.table.columnManager.columnsByIndex.forEach(a=>{!a.definition.width&&a.visible&&(e=!0)}),e&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,t=this.chain("rows-sample",[1],[],()=>this.table.rowManager.getDisplayRows())[0],t)){i=t.getElement(),t.generateCells(),this.tableElement.appendChild(i);for(let a=0;a<t.cells.length;a++){let n=t.cells[a];i.appendChild(n.getElement()),n.column.reinitializeWidth()}i.parentNode.removeChild(i),this.rerenderColumns(!1,!0)}}else this.options("layout")==="fitColumns"&&(this.layoutRefresh(),this.rerenderColumns(!1,!0))}reinitChanged(e){var t=!0;return e.cols.length!==this.columns.length||e.leftCol!==this.leftCol||e.rightCol!==this.rightCol?!0:(e.cols.forEach((i,a)=>{i!==this.columns[a]&&(t=!1)}),!t)}reinitializeRows(){var e=this.getVisibleRows(),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));e.forEach(i=>{this.reinitializeRow(i,!0)}),t.forEach(i=>{i.deinitialize()})}getVisibleRows(){return this.visibleRows||(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(e){this.vDomScrollPosLeft+=e,this.vDomScrollPosRight+=e,Math.abs(e)>this.windowBuffer/2?this.rerenderColumns():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())}colPositionAdjust(e,t,i){for(let a=e;a<t;a++){let n=this.columns[a];n.modules.vdomHoz.leftPos+=i,n.modules.vdomHoz.rightPos+=i}}addColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol+1];i&&i.modules.vdomHoz.leftPos<=this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);a.getElement().insertBefore(n.getElement(),a.getCell(this.columns[this.rightCol]).getElement().nextSibling),n.cellRendered()}}),this.fitDataColActualWidthCheck(i),this.rightCol++,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.rightCol=this.rightCol)}),this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=i.getWidth()):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol-1];if(i)if(i.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){e=!0,this.getVisibleRows().forEach(n=>{if(n.type!=="group"){var r=n.getCell(i);n.getElement().insertBefore(r.getElement(),n.getCell(this.columns[this.leftCol]).getElement()),r.cellRendered()}}),this.leftCol--,this.getVisibleRows().forEach(n=>{n.type!=="group"&&(n.modules.vdomHoz.leftCol=this.leftCol)}),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=i.getWidth();let a=this.fitDataColActualWidthCheck(i);a&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+a,this.vDomPadRight-=a)}else t=!1;else t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol];i&&i.modules.vdomHoz.leftPos>this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);try{a.getElement().removeChild(n.getElement())}catch(r){console.warn("Could not removeColRight",r.message)}}}),this.vDomPadRight+=i.getWidth(),this.rightCol--,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.rightCol=this.rightCol)})):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol];i&&i.modules.vdomHoz.rightPos<this.vDomScrollPosLeft?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);try{a.getElement().removeChild(n.getElement())}catch(r){console.warn("Could not removeColLeft",r.message)}}}),this.vDomPadLeft+=i.getWidth(),this.leftCol++,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.leftCol=this.leftCol)})):t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWidthCheck(e){var t,i;return e.modules.vdomHoz.fitDataCheck&&(e.reinitializeWidth(),t=e.getWidth(),i=t-e.modules.vdomHoz.width,i&&(e.modules.vdomHoz.rightPos+=i,e.modules.vdomHoz.width=t,this.colPositionAdjust(this.columns.indexOf(e)+1,this.columns.length,i)),e.modules.vdomHoz.fitDataCheck=!1),i}initializeRow(e){if(e.type!=="group"){e.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.appendCell(e,t)});for(let t=this.leftCol;t<=this.rightCol;t++)this.appendCell(e,this.columns[t]);this.table.modules.frozenColumns&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.appendCell(e,t)})}}appendCell(e,t){if(t&&t.visible){let i=e.getCell(t);e.getElement().appendChild(i.getElement()),i.cellRendered()}}reinitializeRow(e,t){if(e.type!=="group"&&(t||!e.modules.vdomHoz||e.modules.vdomHoz.leftCol!==this.leftCol||e.modules.vdomHoz.rightCol!==this.rightCol)){for(var i=e.getElement();i.firstChild;)i.removeChild(i.firstChild);this.initializeRow(e)}}}class iT extends ie{constructor(e){super(e),this.blockHozScrollEvent=!1,this.headersElement=null,this.contentsElement=null,this.rowHeader=null,this.element=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsList=new Fx(this.table,"column definition",Mx),this.redrawBlock=!1,this.redrawBlockUpdate=null,this.renderer=null}initialize(){this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.contentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderElement(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.firstChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),this.initializeScrollWheelWatcher(),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(e){this.table.rtl?this.headersElement.style.marginLeft=e+"px":this.headersElement.style.marginRight=e+"px"}initializeRenderer(){var e,t={virtual:tT,basic:eT};typeof this.table.options.renderHorizontal=="string"?e=t[this.table.options.renderHorizontal]:e=this.table.options.renderHorizontal,e?(this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize()):console.error("Unable to find matching renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var e=document.createElement("div");return e.classList.add("tabulator-headers"),e.setAttribute("role","row"),e}createHeaderContentsElement(){var e=document.createElement("div");return e.classList.add("tabulator-header-contents"),e.setAttribute("role","rowgroup"),e}createHeaderElement(){var e=document.createElement("div");return e.classList.add("tabulator-header"),e.setAttribute("role","rowgroup"),this.table.options.headerVisible||e.classList.add("tabulator-header-hidden"),e}getElement(){return this.element}getContentsElement(){return this.contentsElement}getHeadersElement(){return this.headersElement}scrollHorizontal(e){this.contentsElement.scrollLeft=e,this.scrollLeft=e,this.renderer.scrollColumns(e)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",e=>{var t;e.deltaX&&(t=this.contentsElement.scrollLeft+e.deltaX,this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))})}generateColumnsFromRowData(e){var t=[],i={},a=this.table.options.autoColumns==="full"?e:[e[0]],n=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(a.forEach(r=>{Object.keys(r).forEach((l,h)=>{let d=r[l],u;i[l]?i[l]!==!0&&typeof d<"u"&&(i[l].sorter=this.calculateSorterFromValue(d),i[l]=!0):(u={field:l,title:l,sorter:this.calculateSorterFromValue(d)},t.splice(h,0,u),i[l]=typeof d>"u"?u:!0)})}),n)switch(typeof n){case"function":this.table.options.columns=n.call(this.table,t);break;case"object":Array.isArray(n)?t.forEach(r=>{var l=n.find(h=>h.field===r.field);l&&Object.assign(r,l)}):t.forEach(r=>{n[r.field]&&Object.assign(r,n[r.field])}),this.table.options.columns=t;break}else this.table.options.columns=t;this.setColumns(this.table.options.columns)}}calculateSorterFromValue(e){var t;switch(typeof e){case"undefined":t="string";break;case"boolean":t="boolean";break;case"number":t="number";break;case"object":Array.isArray(e)?t="array":t="string";break;default:!isNaN(e)&&e!==""?t="number":e.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?t="alphanum":t="string";break}return t}setColumns(e,t){for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersElement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.dispatch("columns-loading"),this.dispatchExternal("columnsLoading"),this.table.options.rowHeader&&(this.rowHeader=new No(this.table.options.rowHeader===!0?{}:this.table.options.rowHeader,this,!0),this.columns.push(this.rowHeader),this.headersElement.appendChild(this.rowHeader.getElement()),this.rowHeader.columnRendered()),e.forEach((i,a)=>{this._addColumn(i)}),this._reIndexColumns(),this.dispatch("columns-loaded"),this.subscribedExternal("columnsLoaded")&&this.dispatchExternal("columnsLoaded",this.getComponents()),this.rerenderColumns(!1,!0),this.redraw(!0)}_addColumn(e,t,i){var a=new No(e,this),n=a.getElement(),r=i&&this.findColumnIndex(i);if(t&&this.rowHeader&&(!i||i===this.rowHeader)&&(t=!1,i=this.rowHeader,r=0),i&&r>-1){var l=i.getTopColumn(),h=this.columns.indexOf(l),d=l.getElement();t?(this.columns.splice(h,0,a),d.parentNode.insertBefore(n,d)):(this.columns.splice(h+1,0,a),d.parentNode.insertBefore(n,d.nextSibling))}else t?(this.columns.unshift(a),this.headersElement.insertBefore(a.getElement(),this.headersElement.firstChild)):(this.columns.push(a),this.headersElement.appendChild(a.getElement()));return a.columnRendered(),a}registerColumnField(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)}registerColumnPosition(e){this.columnsByIndex.push(e)}_reIndexColumns(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})}verticalAlignHeaders(){var e=0;this.redrawBlock||(this.headersElement.style.height="",this.columns.forEach(t=>{t.clearVerticalAlign()}),this.columns.forEach(t=>{var i=t.getHeight();i>e&&(e=i)}),this.headersElement.style.height=e+"px",this.columns.forEach(t=>{t.verticalAlign(this.table.options.columnHeaderVertAlign,e)}),this.table.rowManager.adjustTableSize())}findColumn(e){var t;if(typeof e=="object"){if(e instanceof No)return e;if(e instanceof wx)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return t=[],this.columns.forEach(a=>{t.push(a),t=t.concat(a.getColumns(!0))}),t.find(a=>a.element===e)||!1}else return this.columnsByField[e]||!1;return!1}getColumnByField(e){return this.columnsByField[e]}getColumnsByFieldRoot(e){var t=[];return Object.keys(this.columnsByField).forEach(i=>{var a=this.table.options.nestedFieldSeparator?i.split(this.table.options.nestedFieldSeparator)[0]:i;a===e&&t.push(this.columnsByField[i])}),t}getColumnByIndex(e){return this.columnsByIndex[e]}getFirstVisibleColumn(){var e=this.columnsByIndex.findIndex(t=>t.visible);return e>-1?this.columnsByIndex[e]:!1}getVisibleColumnsByIndex(){return this.columnsByIndex.filter(e=>e.visible)}getColumns(){return this.columns}findColumnIndex(e){return this.columnsByIndex.findIndex(t=>e===t)}getRealColumns(){return this.columnsByIndex}traverse(e){this.columnsByIndex.forEach((t,i)=>{e(t,i)})}getDefinitions(e){var t=[];return this.columnsByIndex.forEach(i=>{(!e||e&&i.visible)&&t.push(i.getDefinition())}),t}getDefinitionTree(){var e=[];return this.columns.forEach(t=>{e.push(t.getDefinition(!0))}),e}getComponents(e){var t=[],i=e?this.columns:this.columnsByIndex;return i.forEach(a=>{t.push(a.getComponent())}),t}getWidth(){var e=0;return this.columnsByIndex.forEach(t=>{t.visible&&(e+=t.getWidth())}),e}moveColumn(e,t,i){t.element.parentNode.insertBefore(e.element,t.element),i&&t.element.parentNode.insertBefore(t.element,e.element),this.moveColumnActual(e,t,i),this.verticalAlignHeaders(),this.table.rowManager.reinitialize()}moveColumnActual(e,t,i){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,i):this._moveColumnInArray(this.columns,e,t,i),this._moveColumnInArray(this.columnsByIndex,e,t,i,!0),this.rerenderColumns(!0),this.dispatch("column-moved",e,t,i),this.subscribedExternal("columnMoved")&&this.dispatchExternal("columnMoved",e.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArray(e,t,i,a,n){var r=e.indexOf(t),l,h=[];r>-1&&(e.splice(r,1),l=e.indexOf(i),l>-1?a&&(l=l+1):l=r,e.splice(l,0,t),n&&(h=this.chain("column-moving-rows",[t,i,a],null,[])||[],h=h.concat(this.table.rowManager.rows),h.forEach(function(d){if(d.cells.length){var u=d.cells.splice(r,1)[0];d.cells.splice(l,0,u)}})))}scrollToColumn(e,t,i){var a=0,n=e.getLeftOffset(),r=0,l=e.getElement();return new Promise((h,d)=>{if(typeof t>"u"&&(t=this.table.options.scrollToColumnPosition),typeof i>"u"&&(i=this.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":r=-this.element.clientWidth/2;break;case"right":r=l.clientWidth-this.headersElement.clientWidth;break}if(!i&&n>0&&n+l.offsetWidth<this.element.clientWidth)return!1;a=n+r,a=Math.max(Math.min(a,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(a),this.scrollHorizontal(a),h()}else console.warn("Scroll Error - Column not visible"),d("Scroll Error - Column not visible")})}generateCells(e){var t=[];return this.columnsByIndex.forEach(i=>{t.push(i.generateCell(e))}),t}getFlexBaseWidth(){var e=this.table.element.clientWidth,t=0;return this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(e-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(i){var a,n,r;i.visible&&(a=i.definition.width||0,n=parseInt(i.minWidth),typeof a=="string"?a.indexOf("%")>-1?r=e/100*parseInt(a):r=parseInt(a):r=a,t+=r>n?r:n)}),t}addColumn(e,t,i){return new Promise((a,n)=>{var r=this._addColumn(e,t,i);this._reIndexColumns(),this.dispatch("column-add",e,t,i),this.layoutMode()!="fitColumns"&&r.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),a(r)})}deregisterColumn(e){var t=e.getField(),i;t&&delete this.columnsByField[t],i=this.columnsByIndex.indexOf(e),i>-1&&this.columnsByIndex.splice(i,1),i=this.columns.indexOf(e),i>-1&&this.columns.splice(i,1),this.verticalAlignHeaders(),this.redraw()}rerenderColumns(e,t){this.redrawBlock?(e===!1||e===!0&&this.redrawBlockUpdate===null)&&(this.redrawBlockUpdate=e):this.renderer.rerenderColumns(e,t)}blockRedraw(){this.redrawBlock=!0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)}redraw(e){G.elVisible(this.element)&&this.verticalAlignHeaders(),e&&(this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-redrawing",e)||this.layoutRefresh(e),this.dispatch("table-redraw",e),this.table.footerManager.redraw()}}class aT extends K7{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.scrollTop=0,e.scrollLeft=0,e.style.minWidth="",e.style.minHeight="",e.style.display="",e.style.visibility=""}renderRows(){var e=this.tableElement,t=!0,i=document.createDocumentFragment(),a=this.rows();a.forEach((n,r)=>{this.styleRow(n,r),n.initialize(!1,!0),n.type!=="group"&&(t=!1),i.appendChild(n.getElement())}),e.appendChild(i),a.forEach(n=>{n.rendered(),n.heightInitialized||n.calcHeight(!0)}),a.forEach(n=>{n.heightInitialized||n.setCellHeight()}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}rerenderRows(e){this.clearRows(),e&&e(),this.renderRows(),this.rows().length||this.table.rowManager.tableEmpty()}scrollToRowNearestTop(e){var t=G.elOffset(e.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-t)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-t))}scrollToRow(e){var t=e.getElement();this.elementVertical.scrollTop=G.elOffset(t).top-G.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class oT extends K7{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop="",e.style.paddingBottom="",e.style.minHeight="",e.style.display="",e.style.visibility="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows(){this._virtualRenderFill()}rerenderRows(e){for(var t=this.elementVertical.scrollTop,i=!1,a=!1,n=this.table.rowManager.scrollLeft,r=this.rows(),l=this.vDomTop;l<=this.vDomBottom;l++)if(r[l]){var h=t-r[l].getElement().offsetTop;if(a===!1||Math.abs(h)<a)a=h,i=l;else break}r.forEach(d=>{d.deinitializeHeight()}),e&&e(),this.rows().length?this._virtualRenderFill(i===!1?this.rows.length-1:i,!0,a||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(n)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var i=e-this.vDomScrollPosTop,a=e-this.vDomScrollPosBottom,n=this.vDomWindowBuffer*2,r=this.rows();if(this.scrollTop=e,-i>n||a>n){var l=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*r.length)),this.scrollColumns(l)}else t?(i<0&&this._addTopRow(r,-i),a<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(r,-a):this.vDomScrollPosBottom=this.scrollTop)):(a>=0&&this._addBottomRow(r,a),i>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(r,i):this.vDomScrollPosTop=this.scrollTop))}resize(){this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||this.elementVertical.clientHeight}scrollToRowNearestTop(e){var t=this.rows().indexOf(e);return!(Math.abs(this.vDomTop-t)>Math.abs(this.vDomBottom-t))}scrollToRow(e){var t=this.rows().indexOf(e);t>-1&&this._virtualRenderFill(t,!0)}visibleRows(e){var t=this.elementVertical.scrollTop,i=this.elementVertical.clientHeight+t,a=!1,n=0,r=0,l=this.rows();if(e)n=this.vDomTop,r=this.vDomBottom;else for(var h=this.vDomTop;h<=this.vDomBottom;h++)if(l[h])if(a)if(i-l[h].getElement().offsetTop>=0)r=h;else break;else if(t-l[h].getElement().offsetTop>=0)n=h;else if(a=!0,i-l[h].getElement().offsetTop>=0)r=h;else break;return l.slice(n,r+1)}_virtualRenderFill(e,t,i){var a=this.tableElement,n=this.elementVertical,r=0,l=0,h=0,d=0,u=0,p=0,y=this.rows(),f=y.length,g=0,k,v,m=[],w=0,M=0,C=this.table.rowManager.fixedHeight,S=this.elementVertical.clientHeight,L=this.table.options.rowHeight,H=!0;if(e=e||0,i=i||0,!e)this.clear();else{for(;a.firstChild;)a.removeChild(a.firstChild);d=(f-e+1)*this.vDomRowHeight,d<S&&(e-=Math.ceil((S-d)/this.vDomRowHeight),e<0&&(e=0)),r=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e),e-=r}if(f&&G.elVisible(this.elementVertical)){for(this.vDomTop=e,this.vDomBottom=e-1,C||this.table.options.maxHeight?(L&&(M=S/L+this.vDomWindowBuffer/L),M=Math.max(this.vDomWindowMinTotalRows,Math.ceil(M))):M=f;(M==f||l<=S+this.vDomWindowBuffer||w<this.vDomWindowMinTotalRows)&&this.vDomBottom<f-1;){for(m=[],v=document.createDocumentFragment(),p=0;p<M&&this.vDomBottom<f-1;)g=this.vDomBottom+1,k=y[g],this.styleRow(k,g),k.initialize(!1,!0),!k.heightInitialized&&!this.table.options.rowHeight&&k.clearCellHeight(),v.appendChild(k.getElement()),m.push(k),this.vDomBottom++,p++;if(!m.length)break;a.appendChild(v),m.forEach(I=>{I.rendered(),I.heightInitialized||I.calcHeight(!0)}),m.forEach(I=>{I.heightInitialized||I.setCellHeight()}),m.forEach(I=>{h=I.getHeight(),w<r?u+=h:l+=h,h>this.vDomWindowBuffer&&(this.vDomWindowBuffer=h*2),w++}),H=this.table.rowManager.adjustTableSize(),S=this.elementVertical.clientHeight,H&&(C||this.table.options.maxHeight)&&(L=l/w,M=Math.max(this.vDomWindowMinTotalRows,Math.ceil(S/L+this.vDomWindowBuffer/L)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+i:this.scrollTop-u,this.vDomBottomPad=this.vDomBottom==f-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-l-u,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((l+u)/w),this.vDomBottomPad=this.vDomRowHeight*(f-this.vDomBottom-1),this.vDomScrollHeight=u+l+this.vDomBottomPad-S),a.style.paddingTop=this.vDomTopPad+"px",a.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+u+i-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-S:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-S),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-S),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,n.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var i=this.tableElement,a=[],n=0,r=this.vDomTop-1,l=0,h=!0;h;)if(this.vDomTop){let d=e[r],u,p;d&&l<this.vDomMaxRenderChain?(u=d.getHeight()||this.vDomRowHeight,p=d.initialized,t>=u?(this.styleRow(d,r),i.insertBefore(d.getElement(),i.firstChild),(!d.initialized||!d.heightInitialized)&&a.push(d),d.initialize(),p||(u=d.getElement().offsetHeight,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2)),t-=u,n+=u,this.vDomTop--,r--,l++):h=!1):h=!1}else h=!1;for(let d of a)d.clearCellHeight();this._quickNormalizeRowHeight(a),n&&(this.vDomTopPad-=n,this.vDomTopPad<0&&(this.vDomTopPad=r*this.vDomRowHeight),r<1&&(this.vDomTopPad=0),i.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=n)}_removeTopRow(e,t){for(var i=[],a=0,n=0,r=!0;r;){let l=e[this.vDomTop],h;l&&n<this.vDomMaxRenderChain?(h=l.getHeight()||this.vDomRowHeight,t>=h?(this.vDomTop++,t-=h,a+=h,i.push(l),n++):r=!1):r=!1}for(let l of i){let h=l.getElement();h.parentNode&&h.parentNode.removeChild(h)}a&&(this.vDomTopPad+=a,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?a:a+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var i=this.tableElement,a=[],n=0,r=this.vDomBottom+1,l=0,h=!0;h;){let d=e[r],u,p;d&&l<this.vDomMaxRenderChain?(u=d.getHeight()||this.vDomRowHeight,p=d.initialized,t>=u?(this.styleRow(d,r),i.appendChild(d.getElement()),(!d.initialized||!d.heightInitialized)&&a.push(d),d.initialize(),p||(u=d.getElement().offsetHeight,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2)),t-=u,n+=u,this.vDomBottom++,r++,l++):h=!1):h=!1}for(let d of a)d.clearCellHeight();this._quickNormalizeRowHeight(a),n&&(this.vDomBottomPad-=n,(this.vDomBottomPad<0||r==e.length-1)&&(this.vDomBottomPad=0),i.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=n)}_removeBottomRow(e,t){for(var i=[],a=0,n=0,r=!0;r;){let l=e[this.vDomBottom],h;l&&n<this.vDomMaxRenderChain?(h=l.getHeight()||this.vDomRowHeight,t>=h?(this.vDomBottom--,t-=h,a+=h,i.push(l),n++):r=!1):r=!1}for(let l of i){let h=l.getElement();h.parentNode&&h.parentNode.removeChild(h)}a&&(this.vDomBottomPad+=a,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=a)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class nT extends ie{constructor(e){super(e),this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.placeholderContents=null,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRenderInPosition=!1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=null}createHolderElement(){var e=document.createElement("div");return e.classList.add("tabulator-tableholder"),e.setAttribute("tabindex",0),e}createTableElement(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e.setAttribute("role","rowgroup"),e}initializePlaceholder(){var e=this.table.options.placeholder;if(typeof e=="function"&&(e=e.call(this.table)),e=this.chain("placeholder",[e],e,e)||e,e){let t=document.createElement("div");if(t.classList.add("tabulator-placeholder"),typeof e=="string"){let i=document.createElement("div");i.classList.add("tabulator-placeholder-contents"),i.innerHTML=e,t.appendChild(i),this.placeholderContents=i}else typeof HTMLElement<"u"&&e instanceof HTMLElement?(t.appendChild(e),this.placeholderContents=e):(console.warn("Invalid placeholder provided, must be string or HTML Element",e),this.el=null);this.placeholder=t}}getElement(){return this.element}getTableElement(){return this.tableElement}initialize(){this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(this.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",()=>{var e=this.element.scrollLeft,t=this.scrollLeft>e,i=this.element.scrollTop,a=this.scrollTop>i;this.scrollLeft!=e&&(this.scrollLeft=e,this.dispatch("scroll-horizontal",e,t),this.dispatchExternal("scrollHorizontal",e,t),this._positionPlaceholder()),this.scrollTop!=i&&(this.scrollTop=i,this.renderer.scrollRows(i,a),this.dispatch("scroll-vertical",i,a),this.dispatchExternal("scrollVertical",i,a))})}findRow(e){if(typeof e=="object"){if(e instanceof ae)return e;if(e instanceof Z7)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return this.rows.find(i=>i.getElement()===e)||!1;if(e===null)return!1}else return typeof e>"u"?!1:this.rows.find(i=>i.data[this.table.options.index]==e)||!1;return!1}getRowFromDataObject(e){var t=this.rows.find(i=>i.data===e);return t||!1}getRowFromPosition(e){return this.getDisplayRows().find(t=>t.type==="row"&&t.getPosition()===e&&t.isDisplayed())}scrollToRow(e,t,i){return this.renderer.scrollToRowPosition(e,t,i)}setData(e,t,i){return new Promise((a,n)=>{t&&this.getDisplayRows().length?this.table.options.pagination?this._setDataActual(e,!0):this.reRenderInPosition(()=>{this._setDataActual(e)}):(this.table.options.autoColumns&&i&&this.table.initialized&&this.table.columnManager.generateColumnsFromRowData(e),this.resetScroll(),this._setDataActual(e)),a()})}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach((i,a)=>{if(i&&typeof i=="object"){var n=new ae(i,this);this.rows.push(n)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",i)}),this.refreshActiveData(!1,!1,t),this.dispatch("data-processed",e),this.dispatchExternal("dataProcessed",e)):console.error(`Data Loading Error - Unable to process data due to invalid data type
|
|
21
21
|
Expecting: array
|
|
22
22
|
Received: `,typeof e,`
|
|
23
|
-
Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach(e=>{e.wipe()}),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var i=this.rows.indexOf(e),a=this.activeRows.indexOf(e);a>-1&&this.activeRows.splice(a,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(n=>{var r=n.indexOf(e);r>-1&&n.splice(r,1)}),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,i,a){var n=this.addRowActual(e,t,i,a);return n}addRows(e,t,i,a){var n=[];return new Promise((r,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((h,d)=>{var u=this.addRow(h,t,i,!0);n.push(u),this.dispatch("row-added",u,h,t,i)}),this.refreshActiveData(a?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),r(n)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,a){var n=e instanceof ie?e:new ie(e||{},this),r=this.findAddRowPos(t),l=-1,h,d;return i||(d=this.chain("row-adding-position",[n,r],null,{index:i,top:r}),i=d.index,r=d.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[n,i,r],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(h=this.activeRows.indexOf(i),this.displayRowIterator(function(u){var p=u.indexOf(i);p>-1&&u.splice(r?p:p+1,0,n)}),h>-1&&this.activeRows.splice(r?h:h+1,0,n),this.rows.splice(r?l:l+1,0,n)):r?(this.displayRowIterator(function(u){u.unshift(n)}),this.activeRows.unshift(n),this.rows.unshift(n)):(this.displayRowIterator(function(u){u.push(n)}),this.activeRows.push(n),this.rows.push(n)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",n.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),a||this.reRenderInPosition(),n}moveRow(e,t,i){this.dispatch("row-move",e,t,i),this.moveRowActual(e,t,i),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,i),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,i){this.moveRowInArray(this.rows,e,t,i),this.moveRowInArray(this.activeRows,e,t,i),this.displayRowIterator(a=>{this.moveRowInArray(a,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,a){var n,r,l,h;if(t!==i&&(n=e.indexOf(t),n>-1&&(e.splice(n,1),r=e.indexOf(i),r>-1?a?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(n,0,t)),e===this.getDisplayRows())){l=n<r?n:r,h=r>n?r:n+1;for(let d=l;d<=h;d++)e[d]&&this.styleRow(e[d],d)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1?t:!1}nextDisplayRow(e,t){var i=this.getDisplayRowIndex(e),a=!1;return i!==!1&&i<this.displayRowsCount-1&&(a=this.getDisplayRows()[i+1]),a&&(!(a instanceof ie)||a.type!="row")?this.nextDisplayRow(a,t):a}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),a=!1;return i&&(a=this.getDisplayRows()[i-1]),t&&a&&(!(a instanceof ie)||a.type!="row")?this.prevDisplayRow(a,t):a}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],a=this.getRows(e);return a.forEach(function(n){n.type=="row"&&i.push(n.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(a){t.push(a.getComponent())}),t}getDataCount(e){var t=this.getRows(e);return t.length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){typeof t<"u"?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort((i,a)=>i.priority-a.priority)):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){typeof t<"u"?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort((i,a)=>i.priority-a.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var a=this.table,n="",r=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(r=this.dataPipeline.findIndex(h=>h.handler===e),r>-1)n="dataPipeline",t&&(r==this.dataPipeline.length-1?n="display":r++);else if(r=this.displayPipeline.findIndex(h=>h.handler===e),r>-1)n="displayPipeline",t&&(r==this.displayPipeline.length-1?n="end":r++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else n=e||"all",r=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===n&&r<this.redrawBlockRestoreConfig.index||l.indexOf(n)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:n,index:r});return}else G.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,n,r,i)):(this.refreshPipelines(e,n,r,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),a.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,n,r,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,a){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let n=i;n<this.dataPipeline.length;n++){let r=this.dataPipeline[n].handler(this.activeRowsPipeline[n].slice(0));this.activeRowsPipeline[n+1]=r||this.activeRowsPipeline[n].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let n=i;n<this.displayPipeline.length;n++){let r=this.displayPipeline[n].handler((n?this.getDisplayRows(n-1):this.activeRows).slice(0),a);this.setDisplayRows(r||this.getDisplayRows(n-1).slice(0),n)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach(i=>{i.type==="row"&&(i.setPosition(t),t++)})}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return typeof e>"u"?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var i=Object.assign([],this.renderer.visibleRows(!t));return e&&(i=this.chain("rows-visible",[t],i,i)),i}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:oT,basic:aT};typeof this.table.options.renderVertical=="string"?e=t[this.table.options.renderVertical]:e=this.table.options.renderVertical,e?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),(this.table.element.clientHeight||this.table.options.height)&&!(this.table.options.minHeight&&this.table.options.maxHeight)?this.fixedHeight=!0:this.fixedHeight=!1):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach(function(t){t.normalizeHeight(e)})}adjustTableSize(){let e=this.element.clientHeight,t,i=!1;if(this.renderer.verticalFillMode==="fill"){let a=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const n="calc(100% - "+a+"px)";this.element.style.minHeight=t||"calc(100% - "+a+"px)",this.element.style.height=n,this.element.style.maxHeight=n}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-a+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),!this.fixedHeight&&e!=this.element.clientHeight&&(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),i}reinitialize(){this.rows.forEach(function(e){e.reinitialize(!0)})}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,this.table.browser==="ie"){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class sT extends te{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){if(this.table.options.footerElement)switch(typeof this.table.options.footerElement){case"string":this.table.options.footerElement[0]==="<"?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement;break}}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){(!this.element.firstChild||e)&&(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class rT extends te{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach(t=>{e[t]={handler:null,components:[]}}),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach(e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)}),this.pseudoTracking=!0}pseudoMouseEnter(e,t,i){this.pseudoTrackers[e].target!==i&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=i,this.dispatch(e+"-mouseenter",t,i))}pseudoMouseLeave(e,t){var i=Object.keys(this.pseudoTrackers),a={row:["cell"],cell:["row"]};i=i.filter(n=>{var r=a[e];return n!==e&&(!r||r&&!r.includes(n))}),i.forEach(n=>{var r=this.pseudoTrackers[n].target;this.pseudoTrackers[n].target&&(this.dispatch(n+"-mouseleave",t,r),this.pseudoTrackers[n].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let a of e){let n=i+"-"+a;this.subscriptionChange(n,this.subscriptionChanged.bind(this,i,a))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var a=this.listeners[t].components,n=a.indexOf(e),r=!1;i?n===-1&&(a.push(e),r=!0):this.subscribed(e+"-"+t)||n>-1&&(a.splice(n,1),r=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),r&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var i=t.composedPath&&t.composedPath()||t.path,a=this.findTargets(i);a=this.bindComponents(e,a),this.triggerEvents(e,t,a),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(a).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let a of e){let n=a.classList?[...a.classList]:[];if(n.filter(h=>this.abortClasses.includes(h)).length)break;let l=n.filter(h=>i.includes(h));for(let h of l)t[this.componentMap[h]]||(t[this.componentMap[h]]=a)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),a=this.listeners[e],n={},r={},l={};for(let h of i){let d,u=t[h],p=this.previousTargets[h];if(p&&p.target===u)d=p.component;else switch(h){case"row":case"group":(a.components.includes("row")||a.components.includes("cell")||a.components.includes("group"))&&(d=this.table.rowManager.getVisibleRows(!0).find(f=>f.getElement()===u),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[h]=!1));break;case"column":a.components.includes("column")&&(d=this.table.columnManager.findColumn(u));break;case"cell":a.components.includes("cell")&&(n.row instanceof ie?d=n.row.findCell(u):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));break}d&&(n[h]=d,l[h]={target:u,component:d})}return this.previousTargets=l,Object.keys(t).forEach(h=>{let d=n[h];r[h]=d}),r}triggerEvents(e,t,i){var a=this.listeners[e];for(let n in i)i[n]&&a.components.includes(n)&&this.dispatch(n+"-"+e,t,i[n])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class lT{constructor(e){this.table=e,this.bindings={}}bind(e,t,i){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,i):this.bindings[e][t]=i}handle(e,t,i){if(this.bindings[e]&&this.bindings[e][i]&&typeof this.bindings[e][i].bind=="function")return this.bindings[e][i].bind(null,t);i!=="then"&&typeof i=="string"&&!i.startsWith("_")&&this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+i+" function, have you checked that you have the correct Tabulator module installed?")}}class hT extends te{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,a,n,r){var l=++this.requestOrder;if(this.table.destroyed)return Promise.resolve();if(this.dispatchExternal("dataLoading",e),e&&(e.indexOf("{")==0||e.indexOf("[")==0)&&(e=JSON.parse(e)),this.confirm("data-loading",[e,t,i,n])){this.loading=!0,n||this.alertLoader(),t=this.chain("data-params",[e,i,n],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var h=this.chain("data-load",[e,t,i,n],!1,Promise.resolve([]));return h.then(d=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(d)&&typeof d=="object"&&(d=this.mapParams(d,this.objectInvert(this.table.options.dataReceiveParams)));var u=this.chain("data-loaded",[d],null,d);l==this.requestOrder?(this.clearAlert(),u!==!1&&(this.dispatchExternal("dataLoaded",u),this.table.rowManager.setData(u,a,typeof r>"u"?!a:r))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}}).catch(d=>{console.error("Data Load Error: ",d),this.dispatchExternal("dataLoadError",d),n||this.alertError(),setTimeout(()=>{this.clearAlert()},this.table.options.dataLoaderErrorTimeout)}).finally(()=>{this.loading=!1})}else return this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,a,typeof r>"u"?!a:r),Promise.resolve()}mapParams(e,t){var i={};for(let a in e)i[t.hasOwnProperty(a)?t[a]:a]=e[a];return i}objectInvert(e){var t={};for(let i in e)t[e[i]]=i;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){var e=typeof this.table.options.dataLoader=="function"?this.table.options.dataLoader():this.table.options.dataLoader;e&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class cT{constructor(e,t,i){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=i?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=i}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e])if(t)if(i=this.events[e].findIndex(a=>a===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}else delete this.events[e];else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(a=>{a(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((a,n)=>{let r=a.apply(this.table,e);n||(i=r)}),i}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class dT{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,i=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:i}),this.events[e].sort((a,n)=>a.priority-n.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(a=>a.callback===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}}else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,i,a){var n=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((r,l)=>{n=r.callback.apply(this,t.concat([n]))}),n):typeof a=="function"?a():a}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((a,n)=>{a.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(a=>{a(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach(i=>{i.callback.apply(this,e)})}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class uT extends te{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var a="";return typeof this.options(e)<"u"?(a="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(a=a+", Please use the %c"+t+"%c option instead",this._warnUser(a,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(a,"font-weight: bold;","font-weight: normal;"),!1):!0}checkMsg(e,t){return typeof this.options(e)<"u"?(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1):!0}msg(e){this._warnUser(e)}}class pT extends te{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,i){if(Array.isArray(e)){for(const n of e){var a=this.lookup(n,t,!0);if(a)break}if(a)return a;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var a;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(a=this.lookupKey(e,i),a)return this.props[e]||(this.props[e]={}),this.props[e][t]=a[t]||a,this.props[e][t]}lookupKey(e,t){var i;return this.deps[e]?i=this.deps[e]:window[e]?(this.deps[e]=window[e],i=this.deps[e]):t||this.error(e),i}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function yT(o,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(o),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function BC(o,e){o.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function fT(o,e){var t=0,i=this.table.rowManager.element.clientWidth,a=0,n=!1;o.forEach((r,l)=>{r.widthFixed||r.reinitializeWidth(),(this.table.options.responsiveLayout?r.modules.responsive.visible:r.visible)&&(n=r),r.visible&&(t+=r.getWidth())}),n?(a=i-t+n.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(n.setWidth(0),this.table.modules.responsiveLayout.update()),a>0?n.setWidth(a):n.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function mT(o,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,a=0,n=0,r=0,l=[],h=[],d=0,u=0,p=0;function y(g){var k;return typeof g=="string"?g.indexOf("%")>-1?k=t/100*parseInt(g):k=parseInt(g):k=g,k}function f(g,k,v,m){var M=[],w=0,C=0,I=0,L=n,S=0,T=0,R=[];function O(P){return v*(P.column.definition.widthGrow||1)}function Z(P){return y(P.width)-v*(P.column.definition.widthShrink||0)}return g.forEach(function(P,oe){var de=m?Z(P):O(P);P.column.minWidth>=de?M.push(P):P.column.maxWidth&&P.column.maxWidth<de?(P.width=P.column.maxWidth,k-=P.column.maxWidth,L-=m?P.column.definition.widthShrink||1:P.column.definition.widthGrow||1,L&&(v=Math.floor(k/L))):(R.push(P),T+=m?P.column.definition.widthShrink||1:P.column.definition.widthGrow||1)}),M.length?(M.forEach(function(P){w+=m?P.width-P.column.minWidth:P.column.minWidth,P.width=P.column.minWidth}),C=k-w,I=T?Math.floor(C/T):C,S=f(R,C,I,m)):(S=T?k-Math.floor(k/T)*T:k,R.forEach(function(P){P.width=m?Z(P):O(P)})),S}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),o.forEach(function(g){var k,v,m;g.visible&&(k=g.definition.width,v=parseInt(g.minWidth),k?(m=y(k),i+=m>v?m:v,g.definition.widthShrink&&(h.push({column:g,width:m>v?m:v}),d+=g.definition.widthShrink)):(l.push({column:g,width:0}),n+=g.definition.widthGrow||1))}),a=t-i,r=Math.floor(a/n),p=f(l,a,r,!1),l.length&&p>0&&(l[l.length-1].width+=p),l.forEach(function(g){a-=g.width}),u=Math.abs(p)+a,u>0&&d&&(p=f(h,u,Math.floor(u/d),!0)),p&&h.length&&(h[h.length-1].width-=p),l.forEach(function(g){g.column.setWidth(g.width)}),h.forEach(function(g){g.column.setWidth(g.width)})}var gT={fitData:yT,fitDataFill:BC,fitDataTable:BC,fitDataStretch:fT,fitColumns:mT};const Ko=class Ko extends q{constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;Ko.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find(i=>i.definition.variableHeight||i.definition.formatter==="textarea");this.dispatch("layout-refreshing"),Ko.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}};E(Ko,"moduleName","layout"),E(Ko,"modes",gT);let W9=Ko;var kT={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};const vn=class vn extends q{constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=G.deepClone(vn.langs),this.table.options.columnDefaults.headerFilterPlaceholder!==!1&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let i in t)e[i]&&typeof e[i]=="object"?this._setLangProp(e[i],t[i]):e[i]=t[i]}setLocale(e){e=e||"default";function t(i,a){for(var n in i)typeof i[n]=="object"?(a[n]||(a[n]={}),t(i[n],a[n])):a[n]=i[n]}if(e===!0&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let i=e.split("-")[0];this.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=G.deepClone(this.langList.default||{}),e!="default"&&t(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var i=t?e+"|"+t:e,a=i.split("|"),n=this._getLangElement(a,this.locale);return n||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(a){var n;i&&(n=i[a],typeof n<"u"?i=n:i=!1)}),i}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach(t=>{t(this.getText(e),this.lang)})}};E(vn,"moduleName","localize"),E(vn,"langs",kT);let U9=vn;class Ox extends q{constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[],i;return i=this.table.constructor.registry.lookupTable(e),i.forEach(a=>{this.table!==a&&t.push(a)}),t}send(e,t,i,a){var n=this.getConnections(e);n.forEach(r=>{r.tableComms(this.table.element,t,i,a)}),!n.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,a){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,a);console.warn("Inter-table Comms Error - no such module:",t)}}E(Ox,"moduleName","comms");var vT=Object.freeze({__proto__:null,CommsModule:Ox,LayoutModule:W9,LocalizeModule:U9});const fe=class fe{static findTable(e){var t=fe.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}};E(fe,"registry",{tables:[],register(e){fe.registry.tables.push(e)},deregister(e){var t=fe.registry.tables.indexOf(e);t>-1&&fe.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],a,n;if(typeof e=="string"){if(a=document.querySelectorAll(e),a.length)for(var r=0;r<a.length;r++)n=fe.registry.matchElement(a[r]),n&&i.push(n)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof fe?(n=fe.registry.matchElement(e),n&&i.push(n)):Array.isArray(e)?e.forEach(function(l){i=i.concat(fe.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return fe.registry.tables.find(function(t){return e instanceof fe?t===e:t.element===e})}});let G9=fe;const _=class _ extends G9{constructor(){super()}static initializeModuleBinder(e){_.modulesRegistered||(_.modulesRegistered=!0,_._registerModules(vT,!0),e&&_._registerModules(e))}static _extendModule(e,t,i){if(_.moduleBindings[e]){var a=_.moduleBindings[e][t];if(a)if(typeof i=="object")for(let n in i)a[n]=i[n];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var i=Object.values(e);t&&i.forEach(a=>{a.prototype.moduleCore=!0}),_._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{_._registerModuleBinding(t),_._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?_.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let i in t){let a=t[i];if(_.moduleBindings[i])for(let n in a)_._extendModule(i,n,a[n]);else{_.moduleExtensions[i]||(_.moduleExtensions[i]={});for(let n in a)_.moduleExtensions[i][n]||(_.moduleExtensions[i][n]={}),Object.assign(_.moduleExtensions[i][n],a[n])}}_._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=_.moduleExtensions[e.moduleName];if(t)for(let i in t)_._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var a in _.moduleBindings){let n=_.moduleBindings[a],r=new n(this);this.modules[a]=r,n.prototype.moduleCore?this.modulesCore.push(r):n.moduleInitOrder?n.moduleInitOrder<0?e.push(r):t.push(r):i.push(r)}e.sort((n,r)=>n.moduleInitOrder>r.moduleInitOrder?1:-1),t.sort((n,r)=>n.moduleInitOrder>r.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}};E(_,"moduleBindings",{}),E(_,"moduleExtensions",{}),E(_,"modulesRegistered",!1),E(_,"defaultModules",!1);let $9=_;class bT extends te{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),typeof e=="function"&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}const Ae=class Ae extends $9{static extendModule(){Ae.initializeModuleBinder(),Ae._extendModule(...arguments)}static registerModule(){Ae.initializeModuleBinder(),Ae._registerModule(...arguments)}constructor(e,t,i){super(),Ae.initializeModuleBinder(i),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new lT(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new uT(this),this.optionsList=new Fx(this,"table constructor"),this.dependencyRegistry=new pT(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout(()=>{this._create()})),this.constructor.registry.register(this)}initializeElement(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?(this.element=e,!0):typeof e=="string"?(this.element=document.querySelector(e),this.element?!0:(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new iT(this),this.rowManager=new nT(this),this.footerManager=new sT(this),this.dataLoader=new hT(this),this.alertManager=new bT(this),this._bindModules(),this.options=this.optionsList.generate(Ae.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new cT(this,this.options,this.options.debugEventsExternal),this.eventBus=new dT(this.options.debugEventsInternal),this.interactionMonitor=new rT(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally(()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")})}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if(e.direction!=="rtl")break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e=this.element,t=this.options,i;if(e.tagName==="TABLE"){this.originalElement=this.element,i=document.createElement("div");var a=e.attributes;for(var n in a)typeof a[n]=="object"&&i.setAttribute(a[n].name,a[n].value);e.parentNode.replaceChild(i,e),this.element=e=i}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);t.height&&(t.height=isNaN(t.height)?t.height:t.height+"px",e.style.height=t.height),t.minHeight!==!1&&(t.minHeight=isNaN(t.minHeight)?t.minHeight:t.minHeight+"px",e.style.minHeight=t.minHeight),t.maxHeight!==!1&&(t.maxHeight=isNaN(t.maxHeight)?t.maxHeight:t.maxHeight+"px",e.style.maxHeight=t.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach(i=>{i.initialize()}),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach(i=>{i.initialize()}),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally(()=>{this.columnManager.verticalAlignHeaders()})}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var i,a;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
|
|
23
|
+
Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach(e=>{e.wipe()}),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var i=this.rows.indexOf(e),a=this.activeRows.indexOf(e);a>-1&&this.activeRows.splice(a,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(n=>{var r=n.indexOf(e);r>-1&&n.splice(r,1)}),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,i,a){var n=this.addRowActual(e,t,i,a);return n}addRows(e,t,i,a){var n=[];return new Promise((r,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((h,d)=>{var u=this.addRow(h,t,i,!0);n.push(u),this.dispatch("row-added",u,h,t,i)}),this.refreshActiveData(a?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),r(n)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,a){var n=e instanceof ae?e:new ae(e||{},this),r=this.findAddRowPos(t),l=-1,h,d;return i||(d=this.chain("row-adding-position",[n,r],null,{index:i,top:r}),i=d.index,r=d.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[n,i,r],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(h=this.activeRows.indexOf(i),this.displayRowIterator(function(u){var p=u.indexOf(i);p>-1&&u.splice(r?p:p+1,0,n)}),h>-1&&this.activeRows.splice(r?h:h+1,0,n),this.rows.splice(r?l:l+1,0,n)):r?(this.displayRowIterator(function(u){u.unshift(n)}),this.activeRows.unshift(n),this.rows.unshift(n)):(this.displayRowIterator(function(u){u.push(n)}),this.activeRows.push(n),this.rows.push(n)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",n.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),a||this.reRenderInPosition(),n}moveRow(e,t,i){this.dispatch("row-move",e,t,i),this.moveRowActual(e,t,i),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,i),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,i){this.moveRowInArray(this.rows,e,t,i),this.moveRowInArray(this.activeRows,e,t,i),this.displayRowIterator(a=>{this.moveRowInArray(a,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,a){var n,r,l,h;if(t!==i&&(n=e.indexOf(t),n>-1&&(e.splice(n,1),r=e.indexOf(i),r>-1?a?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(n,0,t)),e===this.getDisplayRows())){l=n<r?n:r,h=r>n?r:n+1;for(let d=l;d<=h;d++)e[d]&&this.styleRow(e[d],d)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1?t:!1}nextDisplayRow(e,t){var i=this.getDisplayRowIndex(e),a=!1;return i!==!1&&i<this.displayRowsCount-1&&(a=this.getDisplayRows()[i+1]),a&&(!(a instanceof ae)||a.type!="row")?this.nextDisplayRow(a,t):a}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),a=!1;return i&&(a=this.getDisplayRows()[i-1]),t&&a&&(!(a instanceof ae)||a.type!="row")?this.prevDisplayRow(a,t):a}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],a=this.getRows(e);return a.forEach(function(n){n.type=="row"&&i.push(n.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(a){t.push(a.getComponent())}),t}getDataCount(e){var t=this.getRows(e);return t.length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){typeof t<"u"?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort((i,a)=>i.priority-a.priority)):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){typeof t<"u"?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort((i,a)=>i.priority-a.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var a=this.table,n="",r=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(r=this.dataPipeline.findIndex(h=>h.handler===e),r>-1)n="dataPipeline",t&&(r==this.dataPipeline.length-1?n="display":r++);else if(r=this.displayPipeline.findIndex(h=>h.handler===e),r>-1)n="displayPipeline",t&&(r==this.displayPipeline.length-1?n="end":r++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else n=e||"all",r=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===n&&r<this.redrawBlockRestoreConfig.index||l.indexOf(n)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:n,index:r});return}else G.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,n,r,i)):(this.refreshPipelines(e,n,r,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),a.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,n,r,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,a){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let n=i;n<this.dataPipeline.length;n++){let r=this.dataPipeline[n].handler(this.activeRowsPipeline[n].slice(0));this.activeRowsPipeline[n+1]=r||this.activeRowsPipeline[n].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let n=i;n<this.displayPipeline.length;n++){let r=this.displayPipeline[n].handler((n?this.getDisplayRows(n-1):this.activeRows).slice(0),a);this.setDisplayRows(r||this.getDisplayRows(n-1).slice(0),n)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach(i=>{i.type==="row"&&(i.setPosition(t),t++)})}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return typeof e>"u"?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var i=Object.assign([],this.renderer.visibleRows(!t));return e&&(i=this.chain("rows-visible",[t],i,i)),i}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:oT,basic:aT};typeof this.table.options.renderVertical=="string"?e=t[this.table.options.renderVertical]:e=this.table.options.renderVertical,e?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),(this.table.element.clientHeight||this.table.options.height)&&!(this.table.options.minHeight&&this.table.options.maxHeight)?this.fixedHeight=!0:this.fixedHeight=!1):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach(function(t){t.normalizeHeight(e)})}adjustTableSize(){let e=this.element.clientHeight,t,i=!1;if(this.renderer.verticalFillMode==="fill"){let a=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const n="calc(100% - "+a+"px)";this.element.style.minHeight=t||"calc(100% - "+a+"px)",this.element.style.height=n,this.element.style.maxHeight=n}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-a+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),!this.fixedHeight&&e!=this.element.clientHeight&&(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),i}reinitialize(){this.rows.forEach(function(e){e.reinitialize(!0)})}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,this.table.browser==="ie"){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class sT extends ie{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){if(this.table.options.footerElement)switch(typeof this.table.options.footerElement){case"string":this.table.options.footerElement[0]==="<"?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement;break}}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){(!this.element.firstChild||e)&&(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class rT extends ie{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach(t=>{e[t]={handler:null,components:[]}}),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach(e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)}),this.pseudoTracking=!0}pseudoMouseEnter(e,t,i){this.pseudoTrackers[e].target!==i&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=i,this.dispatch(e+"-mouseenter",t,i))}pseudoMouseLeave(e,t){var i=Object.keys(this.pseudoTrackers),a={row:["cell"],cell:["row"]};i=i.filter(n=>{var r=a[e];return n!==e&&(!r||r&&!r.includes(n))}),i.forEach(n=>{var r=this.pseudoTrackers[n].target;this.pseudoTrackers[n].target&&(this.dispatch(n+"-mouseleave",t,r),this.pseudoTrackers[n].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let a of e){let n=i+"-"+a;this.subscriptionChange(n,this.subscriptionChanged.bind(this,i,a))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var a=this.listeners[t].components,n=a.indexOf(e),r=!1;i?n===-1&&(a.push(e),r=!0):this.subscribed(e+"-"+t)||n>-1&&(a.splice(n,1),r=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),r&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var i=t.composedPath&&t.composedPath()||t.path,a=this.findTargets(i);a=this.bindComponents(e,a),this.triggerEvents(e,t,a),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(a).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let a of e){let n=a.classList?[...a.classList]:[];if(n.filter(h=>this.abortClasses.includes(h)).length)break;let l=n.filter(h=>i.includes(h));for(let h of l)t[this.componentMap[h]]||(t[this.componentMap[h]]=a)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),a=this.listeners[e],n={},r={},l={};for(let h of i){let d,u=t[h],p=this.previousTargets[h];if(p&&p.target===u)d=p.component;else switch(h){case"row":case"group":(a.components.includes("row")||a.components.includes("cell")||a.components.includes("group"))&&(d=this.table.rowManager.getVisibleRows(!0).find(f=>f.getElement()===u),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[h]=!1));break;case"column":a.components.includes("column")&&(d=this.table.columnManager.findColumn(u));break;case"cell":a.components.includes("cell")&&(n.row instanceof ae?d=n.row.findCell(u):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));break}d&&(n[h]=d,l[h]={target:u,component:d})}return this.previousTargets=l,Object.keys(t).forEach(h=>{let d=n[h];r[h]=d}),r}triggerEvents(e,t,i){var a=this.listeners[e];for(let n in i)i[n]&&a.components.includes(n)&&this.dispatch(n+"-"+e,t,i[n])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class lT{constructor(e){this.table=e,this.bindings={}}bind(e,t,i){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,i):this.bindings[e][t]=i}handle(e,t,i){if(this.bindings[e]&&this.bindings[e][i]&&typeof this.bindings[e][i].bind=="function")return this.bindings[e][i].bind(null,t);i!=="then"&&typeof i=="string"&&!i.startsWith("_")&&this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+i+" function, have you checked that you have the correct Tabulator module installed?")}}class hT extends ie{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,a,n,r){var l=++this.requestOrder;if(this.table.destroyed)return Promise.resolve();if(this.dispatchExternal("dataLoading",e),e&&(e.indexOf("{")==0||e.indexOf("[")==0)&&(e=JSON.parse(e)),this.confirm("data-loading",[e,t,i,n])){this.loading=!0,n||this.alertLoader(),t=this.chain("data-params",[e,i,n],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var h=this.chain("data-load",[e,t,i,n],!1,Promise.resolve([]));return h.then(d=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(d)&&typeof d=="object"&&(d=this.mapParams(d,this.objectInvert(this.table.options.dataReceiveParams)));var u=this.chain("data-loaded",[d],null,d);l==this.requestOrder?(this.clearAlert(),u!==!1&&(this.dispatchExternal("dataLoaded",u),this.table.rowManager.setData(u,a,typeof r>"u"?!a:r))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}}).catch(d=>{console.error("Data Load Error: ",d),this.dispatchExternal("dataLoadError",d),n||this.alertError(),setTimeout(()=>{this.clearAlert()},this.table.options.dataLoaderErrorTimeout)}).finally(()=>{this.loading=!1})}else return this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,a,typeof r>"u"?!a:r),Promise.resolve()}mapParams(e,t){var i={};for(let a in e)i[t.hasOwnProperty(a)?t[a]:a]=e[a];return i}objectInvert(e){var t={};for(let i in e)t[e[i]]=i;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){var e=typeof this.table.options.dataLoader=="function"?this.table.options.dataLoader():this.table.options.dataLoader;e&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class cT{constructor(e,t,i){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=i?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=i}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e])if(t)if(i=this.events[e].findIndex(a=>a===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}else delete this.events[e];else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(a=>{a(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((a,n)=>{let r=a.apply(this.table,e);n||(i=r)}),i}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class dT{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,i=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:i}),this.events[e].sort((a,n)=>a.priority-n.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(a=>a.callback===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}}else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,i,a){var n=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((r,l)=>{n=r.callback.apply(this,t.concat([n]))}),n):typeof a=="function"?a():a}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((a,n)=>{a.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(a=>{a(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach(i=>{i.callback.apply(this,e)})}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class uT extends ie{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var a="";return typeof this.options(e)<"u"?(a="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(a=a+", Please use the %c"+t+"%c option instead",this._warnUser(a,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(a,"font-weight: bold;","font-weight: normal;"),!1):!0}checkMsg(e,t){return typeof this.options(e)<"u"?(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1):!0}msg(e){this._warnUser(e)}}class pT extends ie{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,i){if(Array.isArray(e)){for(const n of e){var a=this.lookup(n,t,!0);if(a)break}if(a)return a;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var a;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(a=this.lookupKey(e,i),a)return this.props[e]||(this.props[e]={}),this.props[e][t]=a[t]||a,this.props[e][t]}lookupKey(e,t){var i;return this.deps[e]?i=this.deps[e]:window[e]?(this.deps[e]=window[e],i=this.deps[e]):t||this.error(e),i}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function yT(o,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(o),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function BC(o,e){o.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function fT(o,e){var t=0,i=this.table.rowManager.element.clientWidth,a=0,n=!1;o.forEach((r,l)=>{r.widthFixed||r.reinitializeWidth(),(this.table.options.responsiveLayout?r.modules.responsive.visible:r.visible)&&(n=r),r.visible&&(t+=r.getWidth())}),n?(a=i-t+n.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(n.setWidth(0),this.table.modules.responsiveLayout.update()),a>0?n.setWidth(a):n.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function mT(o,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,a=0,n=0,r=0,l=[],h=[],d=0,u=0,p=0;function y(g){var k;return typeof g=="string"?g.indexOf("%")>-1?k=t/100*parseInt(g):k=parseInt(g):k=g,k}function f(g,k,v,m){var w=[],M=0,C=0,S=0,L=n,H=0,I=0,z=[];function R(P){return v*(P.column.definition.widthGrow||1)}function j(P){return y(P.width)-v*(P.column.definition.widthShrink||0)}return g.forEach(function(P,Ee){var ee=m?j(P):R(P);P.column.minWidth>=ee?w.push(P):P.column.maxWidth&&P.column.maxWidth<ee?(P.width=P.column.maxWidth,k-=P.column.maxWidth,L-=m?P.column.definition.widthShrink||1:P.column.definition.widthGrow||1,L&&(v=Math.floor(k/L))):(z.push(P),I+=m?P.column.definition.widthShrink||1:P.column.definition.widthGrow||1)}),w.length?(w.forEach(function(P){M+=m?P.width-P.column.minWidth:P.column.minWidth,P.width=P.column.minWidth}),C=k-M,S=I?Math.floor(C/I):C,H=f(z,C,S,m)):(H=I?k-Math.floor(k/I)*I:k,z.forEach(function(P){P.width=m?j(P):R(P)})),H}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),o.forEach(function(g){var k,v,m;g.visible&&(k=g.definition.width,v=parseInt(g.minWidth),k?(m=y(k),i+=m>v?m:v,g.definition.widthShrink&&(h.push({column:g,width:m>v?m:v}),d+=g.definition.widthShrink)):(l.push({column:g,width:0}),n+=g.definition.widthGrow||1))}),a=t-i,r=Math.floor(a/n),p=f(l,a,r,!1),l.length&&p>0&&(l[l.length-1].width+=p),l.forEach(function(g){a-=g.width}),u=Math.abs(p)+a,u>0&&d&&(p=f(h,u,Math.floor(u/d),!0)),p&&h.length&&(h[h.length-1].width-=p),l.forEach(function(g){g.column.setWidth(g.width)}),h.forEach(function(g){g.column.setWidth(g.width)})}var gT={fitData:yT,fitDataFill:BC,fitDataTable:BC,fitDataStretch:fT,fitColumns:mT};const Ko=class Ko extends B{constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;Ko.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find(i=>i.definition.variableHeight||i.definition.formatter==="textarea");this.dispatch("layout-refreshing"),Ko.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}};E(Ko,"moduleName","layout"),E(Ko,"modes",gT);let W9=Ko;var kT={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};const vn=class vn extends B{constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=G.deepClone(vn.langs),this.table.options.columnDefaults.headerFilterPlaceholder!==!1&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let i in t)e[i]&&typeof e[i]=="object"?this._setLangProp(e[i],t[i]):e[i]=t[i]}setLocale(e){e=e||"default";function t(i,a){for(var n in i)typeof i[n]=="object"?(a[n]||(a[n]={}),t(i[n],a[n])):a[n]=i[n]}if(e===!0&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let i=e.split("-")[0];this.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=G.deepClone(this.langList.default||{}),e!="default"&&t(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var i=t?e+"|"+t:e,a=i.split("|"),n=this._getLangElement(a,this.locale);return n||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(a){var n;i&&(n=i[a],typeof n<"u"?i=n:i=!1)}),i}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach(t=>{t(this.getText(e),this.lang)})}};E(vn,"moduleName","localize"),E(vn,"langs",kT);let U9=vn;class Ox extends B{constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[],i;return i=this.table.constructor.registry.lookupTable(e),i.forEach(a=>{this.table!==a&&t.push(a)}),t}send(e,t,i,a){var n=this.getConnections(e);n.forEach(r=>{r.tableComms(this.table.element,t,i,a)}),!n.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,a){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,a);console.warn("Inter-table Comms Error - no such module:",t)}}E(Ox,"moduleName","comms");var vT=Object.freeze({__proto__:null,CommsModule:Ox,LayoutModule:W9,LocalizeModule:U9});const ye=class ye{static findTable(e){var t=ye.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}};E(ye,"registry",{tables:[],register(e){ye.registry.tables.push(e)},deregister(e){var t=ye.registry.tables.indexOf(e);t>-1&&ye.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],a,n;if(typeof e=="string"){if(a=document.querySelectorAll(e),a.length)for(var r=0;r<a.length;r++)n=ye.registry.matchElement(a[r]),n&&i.push(n)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof ye?(n=ye.registry.matchElement(e),n&&i.push(n)):Array.isArray(e)?e.forEach(function(l){i=i.concat(ye.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return ye.registry.tables.find(function(t){return e instanceof ye?t===e:t.element===e})}});let $9=ye;const U=class U extends $9{constructor(){super()}static initializeModuleBinder(e){U.modulesRegistered||(U.modulesRegistered=!0,U._registerModules(vT,!0),e&&U._registerModules(e))}static _extendModule(e,t,i){if(U.moduleBindings[e]){var a=U.moduleBindings[e][t];if(a)if(typeof i=="object")for(let n in i)a[n]=i[n];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var i=Object.values(e);t&&i.forEach(a=>{a.prototype.moduleCore=!0}),U._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{U._registerModuleBinding(t),U._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?U.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let i in t){let a=t[i];if(U.moduleBindings[i])for(let n in a)U._extendModule(i,n,a[n]);else{U.moduleExtensions[i]||(U.moduleExtensions[i]={});for(let n in a)U.moduleExtensions[i][n]||(U.moduleExtensions[i][n]={}),Object.assign(U.moduleExtensions[i][n],a[n])}}U._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=U.moduleExtensions[e.moduleName];if(t)for(let i in t)U._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var a in U.moduleBindings){let n=U.moduleBindings[a],r=new n(this);this.modules[a]=r,n.prototype.moduleCore?this.modulesCore.push(r):n.moduleInitOrder?n.moduleInitOrder<0?e.push(r):t.push(r):i.push(r)}e.sort((n,r)=>n.moduleInitOrder>r.moduleInitOrder?1:-1),t.sort((n,r)=>n.moduleInitOrder>r.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}};E(U,"moduleBindings",{}),E(U,"moduleExtensions",{}),E(U,"modulesRegistered",!1),E(U,"defaultModules",!1);let G9=U;class bT extends ie{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),typeof e=="function"&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}const Ae=class Ae extends G9{static extendModule(){Ae.initializeModuleBinder(),Ae._extendModule(...arguments)}static registerModule(){Ae.initializeModuleBinder(),Ae._registerModule(...arguments)}constructor(e,t,i){super(),Ae.initializeModuleBinder(i),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new lT(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new uT(this),this.optionsList=new Fx(this,"table constructor"),this.dependencyRegistry=new pT(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout(()=>{this._create()})),this.constructor.registry.register(this)}initializeElement(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?(this.element=e,!0):typeof e=="string"?(this.element=document.querySelector(e),this.element?!0:(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new iT(this),this.rowManager=new nT(this),this.footerManager=new sT(this),this.dataLoader=new hT(this),this.alertManager=new bT(this),this._bindModules(),this.options=this.optionsList.generate(Ae.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new cT(this,this.options,this.options.debugEventsExternal),this.eventBus=new dT(this.options.debugEventsInternal),this.interactionMonitor=new rT(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally(()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")})}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if(e.direction!=="rtl")break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e=this.element,t=this.options,i;if(e.tagName==="TABLE"){this.originalElement=this.element,i=document.createElement("div");var a=e.attributes;for(var n in a)typeof a[n]=="object"&&i.setAttribute(a[n].name,a[n].value);e.parentNode.replaceChild(i,e),this.element=e=i}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);t.height&&(t.height=isNaN(t.height)?t.height:t.height+"px",e.style.height=t.height),t.minHeight!==!1&&(t.minHeight=isNaN(t.minHeight)?t.minHeight:t.minHeight+"px",e.style.minHeight=t.minHeight),t.maxHeight!==!1&&(t.maxHeight=isNaN(t.maxHeight)?t.maxHeight:t.maxHeight+"px",e.style.maxHeight=t.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach(i=>{i.initialize()}),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach(i=>{i.initialize()}),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally(()=>{this.columnManager.verticalAlignHeaders()})}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var i,a;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
|
|
24
24
|
`),a=i[0]=="Error"?i[2]:i[1],a[0]==" "?e=a.trim().split(" ")[1].split(".")[1]:e=a.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,i){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,i,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,i){return this.initGuard(),this.dataLoader.load(e,t,i,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise((i,a)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(n=>{var r=this.rowManager.findRow(n[this.options.index]);r?(t++,r.updateData(n).then(()=>{t--,t||i()}).catch(l=>{a("Update Error - Unable to update row",n,l)})):a("Update Error - Unable to find row",n)}):(console.warn("Update Error - No data provided"),a("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((a,n)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(r=>{var l=[];r.forEach(function(h){l.push(h.getComponent())}),a(l)}):(console.warn("Update Error - No data provided"),n("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((a,n)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(r=>{var l=this.rowManager.findRow(r[this.options.index]);i++,l?l.updateData(r).then(()=>{i--,t.push(l.getComponent()),i||a(t)}):this.rowManager.addRows(r).then(h=>{i--,t.push(h[0].getComponent()),i||a(t)})}):(console.warn("Update Error - No data provided"),n("Update Error - No data provided"))})}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let i of e){let a=this.rowManager.findRow(i,!0);if(a)t.push(a);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,a)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(a)?1:-1),t.forEach(i=>{i.delete()}),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,i){return this.initGuard(),typeof e=="string"&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,i,!0).then(a=>a[0].getComponent())}updateOrAddRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>i.getComponent()):this.rowManager.addRows(t).then(a=>a[0].getComponent())}updateRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>Promise.resolve(i.getComponent())):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,i){var a=this.rowManager.findRow(e);return a?this.rowManager.scrollToRow(a,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var a=this.rowManager.findRow(e);this.initGuard(),a?a.moveToRow(t,i):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.show();else return console.warn("Column Show Error - No matching column found:",e),!1}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.hide();else return console.warn("Column Hide Error - No matching column found:",e),!1}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.visible?t.hide():t.show();else return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1}addColumn(e,t,i){var a=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,a).then(n=>n.getComponent())}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var i=this.columnManager.findColumn(e);return this.initGuard(),i?i.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,i){var a=this.columnManager.findColumn(e),n=this.columnManager.findColumn(t);this.initGuard(),a?n?this.columnManager.moveColumn(a,n,i):console.warn("Move Error - No matching column found:",n):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((a,n)=>{var r=this.columnManager.findColumn(e);return r?this.columnManager.scrollToColumn(r,t,i):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))})}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){var e=Array.from(arguments);e.shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return this.modules[e]?!0:(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}};E(Ae,"defaultOptions",QI);let Y9=Ae;var pn=Y9;class wT extends pn{static extendModule(){pn.initializeModuleBinder(u9),pn._extendModule(...arguments)}static registerModule(){pn.initializeModuleBinder(u9),pn._registerModule(...arguments)}constructor(e,t,i){super(e,t,u9)}}var MT=wT;/**
|
|
25
25
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
26
26
|
*
|
|
@@ -51,12 +51,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const
|
|
54
|
+
*/const $n=s("a-arrow-up",[["path",{d:"M3.5 13h6",key:"p1my2r"}],["path",{d:"m2 16 4.5-9 4.5 9",key:"ndf0b3"}],["path",{d:"M18 16V7",key:"ty0viw"}],["path",{d:"m14 11 4-4 4 4",key:"1pu57t"}]]);/**
|
|
55
55
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
58
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const
|
|
59
|
+
*/const Gn=s("a-large-small",[["path",{d:"M21 14h-5",key:"1vh23k"}],["path",{d:"M16 16v-3.5a2.5 2.5 0 0 1 5 0V16",key:"1wh10o"}],["path",{d:"M4.5 13h6",key:"dfilno"}],["path",{d:"m3 16 4.5-9 4.5 9",key:"2dxa0e"}]]);/**
|
|
60
60
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
61
61
|
*
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
@@ -336,12 +336,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
336
336
|
*
|
|
337
337
|
* This source code is licensed under the ISC license.
|
|
338
338
|
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
-
*/const
|
|
339
|
+
*/const $s=s("arrow-big-down",[["path",{d:"M15 6v6h4l-7 7-7-7h4V6h6z",key:"1thax2"}]]);/**
|
|
340
340
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
341
341
|
*
|
|
342
342
|
* This source code is licensed under the ISC license.
|
|
343
343
|
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
-
*/const
|
|
344
|
+
*/const Gs=s("arrow-big-left-dash",[["path",{d:"M19 15V9",key:"1hci5f"}],["path",{d:"M15 15h-3v4l-7-7 7-7v4h3v6z",key:"16tjna"}]]);/**
|
|
345
345
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
346
346
|
*
|
|
347
347
|
* This source code is licensed under the ISC license.
|
|
@@ -646,12 +646,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
646
646
|
*
|
|
647
647
|
* This source code is licensed under the ISC license.
|
|
648
648
|
* See the LICENSE file in the root directory of this source tree.
|
|
649
|
-
*/const
|
|
649
|
+
*/const $r=s("badge-percent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]);/**
|
|
650
650
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
651
651
|
*
|
|
652
652
|
* This source code is licensed under the ISC license.
|
|
653
653
|
* See the LICENSE file in the root directory of this source tree.
|
|
654
|
-
*/const
|
|
654
|
+
*/const Gr=s("badge-plus",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"8",y2:"16",key:"10p56q"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
|
|
655
655
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
656
656
|
*
|
|
657
657
|
* This source code is licensed under the ISC license.
|
|
@@ -926,12 +926,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
926
926
|
*
|
|
927
927
|
* This source code is licensed under the ISC license.
|
|
928
928
|
* See the LICENSE file in the root directory of this source tree.
|
|
929
|
-
*/const
|
|
929
|
+
*/const $l=s("bluetooth-off",[["path",{d:"m17 17-5 5V12l-5 5",key:"v5aci6"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M14.5 9.5 17 7l-5-5v4.5",key:"1kddfz"}]]);/**
|
|
930
930
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
931
931
|
*
|
|
932
932
|
* This source code is licensed under the ISC license.
|
|
933
933
|
* See the LICENSE file in the root directory of this source tree.
|
|
934
|
-
*/const
|
|
934
|
+
*/const Gl=s("bluetooth-searching",[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}],["path",{d:"M20.83 14.83a4 4 0 0 0 0-5.66",key:"k8tn1j"}],["path",{d:"M18 12h.01",key:"yjnet6"}]]);/**
|
|
935
935
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
936
936
|
*
|
|
937
937
|
* This source code is licensed under the ISC license.
|
|
@@ -1206,12 +1206,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
1206
1206
|
*
|
|
1207
1207
|
* This source code is licensed under the ISC license.
|
|
1208
1208
|
* See the LICENSE file in the root directory of this source tree.
|
|
1209
|
-
*/const
|
|
1209
|
+
*/const $1=s("brush",[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]]);/**
|
|
1210
1210
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
1211
1211
|
*
|
|
1212
1212
|
* This source code is licensed under the ISC license.
|
|
1213
1213
|
* See the LICENSE file in the root directory of this source tree.
|
|
1214
|
-
*/const
|
|
1214
|
+
*/const G1=s("bubbles",[["path",{d:"M7.2 14.8a2 2 0 0 1 2 2",key:"1tw9gg"}],["circle",{cx:"18.5",cy:"8.5",r:"3.5",key:"1wadoa"}],["circle",{cx:"7.5",cy:"16.5",r:"5.5",key:"6mdt3g"}],["circle",{cx:"7.5",cy:"4.5",r:"2.5",key:"637s54"}]]);/**
|
|
1215
1215
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
1216
1216
|
*
|
|
1217
1217
|
* This source code is licensed under the ISC license.
|
|
@@ -1481,7 +1481,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
1481
1481
|
*
|
|
1482
1482
|
* This source code is licensed under the ISC license.
|
|
1483
1483
|
* See the LICENSE file in the root directory of this source tree.
|
|
1484
|
-
*/const
|
|
1484
|
+
*/const $h=s("cctv",[["path",{d:"M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97",key:"ir91b5"}],["path",{d:"M17.106 9.053a1 1 0 0 1 .447 1.341l-3.106 6.211a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.92 2.92 0 0 1 3.92-1.3z",key:"jlp8i1"}],["path",{d:"M2 19h3.76a2 2 0 0 0 1.8-1.1L9 15",key:"19bib8"}],["path",{d:"M2 21v-4",key:"l40lih"}],["path",{d:"M7 9h.01",key:"19b3jx"}]]);/**
|
|
1485
1485
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
1486
1486
|
*
|
|
1487
1487
|
* This source code is licensed under the ISC license.
|
|
@@ -1496,7 +1496,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
1496
1496
|
*
|
|
1497
1497
|
* This source code is licensed under the ISC license.
|
|
1498
1498
|
* See the LICENSE file in the root directory of this source tree.
|
|
1499
|
-
*/const
|
|
1499
|
+
*/const Gh=s("chart-bar-decreasing",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11h8",key:"1feolt"}],["path",{d:"M7 16h3",key:"ur6vzw"}],["path",{d:"M7 6h12",key:"sz5b0d"}]]);/**
|
|
1500
1500
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
1501
1501
|
*
|
|
1502
1502
|
* This source code is licensed under the ISC license.
|
|
@@ -1841,12 +1841,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
1841
1841
|
*
|
|
1842
1842
|
* This source code is licensed under the ISC license.
|
|
1843
1843
|
* See the LICENSE file in the root directory of this source tree.
|
|
1844
|
-
*/const
|
|
1844
|
+
*/const $t=s("circle-gauge",[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]]);/**
|
|
1845
1845
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
1846
1846
|
*
|
|
1847
1847
|
* This source code is licensed under the ISC license.
|
|
1848
1848
|
* See the LICENSE file in the root directory of this source tree.
|
|
1849
|
-
*/const
|
|
1849
|
+
*/const Gt=s("circle-help",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
1850
1850
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
1851
1851
|
*
|
|
1852
1852
|
* This source code is licensed under the ISC license.
|
|
@@ -1971,7 +1971,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
1971
1971
|
*
|
|
1972
1972
|
* This source code is licensed under the ISC license.
|
|
1973
1973
|
* See the LICENSE file in the root directory of this source tree.
|
|
1974
|
-
*/const
|
|
1974
|
+
*/const $c=s("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]);/**
|
|
1975
1975
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
1976
1976
|
*
|
|
1977
1977
|
* This source code is licensed under the ISC license.
|
|
@@ -1986,7 +1986,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
1986
1986
|
*
|
|
1987
1987
|
* This source code is licensed under the ISC license.
|
|
1988
1988
|
* See the LICENSE file in the root directory of this source tree.
|
|
1989
|
-
*/const
|
|
1989
|
+
*/const Gc=s("clipboard-plus",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M9 14h6",key:"159ibu"}],["path",{d:"M12 17v-6",key:"1y8rbf"}]]);/**
|
|
1990
1990
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
1991
1991
|
*
|
|
1992
1992
|
* This source code is licensed under the ISC license.
|
|
@@ -2236,7 +2236,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
2236
2236
|
*
|
|
2237
2237
|
* This source code is licensed under the ISC license.
|
|
2238
2238
|
* See the LICENSE file in the root directory of this source tree.
|
|
2239
|
-
*/const
|
|
2239
|
+
*/const Ie=s("columns-3-cog",[["path",{d:"M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5",key:"1g2yzs"}],["path",{d:"m14.3 19.6 1-.4",key:"11sv9r"}],["path",{d:"M15 3v7.5",key:"7lm50a"}],["path",{d:"m15.2 16.9-.9-.3",key:"1t7mvx"}],["path",{d:"m16.6 21.7.3-.9",key:"1j67ps"}],["path",{d:"m16.8 15.3-.4-1",key:"1ei7r6"}],["path",{d:"m19.1 15.2.3-.9",key:"18r7jp"}],["path",{d:"m19.6 21.7-.4-1",key:"z2vh2"}],["path",{d:"m20.7 16.8 1-.4",key:"19m87a"}],["path",{d:"m21.7 19.4-.9-.3",key:"1qgwi9"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]]);/**
|
|
2240
2240
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
2241
2241
|
*
|
|
2242
2242
|
* This source code is licensed under the ISC license.
|
|
@@ -2281,12 +2281,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
2281
2281
|
*
|
|
2282
2282
|
* This source code is licensed under the ISC license.
|
|
2283
2283
|
* See the LICENSE file in the root directory of this source tree.
|
|
2284
|
-
*/const
|
|
2284
|
+
*/const $d=s("construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]);/**
|
|
2285
2285
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
2286
2286
|
*
|
|
2287
2287
|
* This source code is licensed under the ISC license.
|
|
2288
2288
|
* See the LICENSE file in the root directory of this source tree.
|
|
2289
|
-
*/const
|
|
2289
|
+
*/const Gd=s("cone",[["path",{d:"m20.9 18.55-8-15.98a1 1 0 0 0-1.8 0l-8 15.98",key:"53pte7"}],["ellipse",{cx:"12",cy:"19",rx:"9",ry:"3",key:"1ji25f"}]]);/**
|
|
2290
2290
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
2291
2291
|
*
|
|
2292
2292
|
* This source code is licensed under the ISC license.
|
|
@@ -2561,12 +2561,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
2561
2561
|
*
|
|
2562
2562
|
* This source code is licensed under the ISC license.
|
|
2563
2563
|
* See the LICENSE file in the root directory of this source tree.
|
|
2564
|
-
*/const
|
|
2564
|
+
*/const $2=s("diff",[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
|
|
2565
2565
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
2566
2566
|
*
|
|
2567
2567
|
* This source code is licensed under the ISC license.
|
|
2568
2568
|
* See the LICENSE file in the root directory of this source tree.
|
|
2569
|
-
*/const
|
|
2569
|
+
*/const G2=s("disc-2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]);/**
|
|
2570
2570
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
2571
2571
|
*
|
|
2572
2572
|
* This source code is licensed under the ISC license.
|
|
@@ -2846,12 +2846,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
2846
2846
|
*
|
|
2847
2847
|
* This source code is licensed under the ISC license.
|
|
2848
2848
|
* See the LICENSE file in the root directory of this source tree.
|
|
2849
|
-
*/const
|
|
2849
|
+
*/const $u=s("file-audio-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"3",cy:"17",r:"1",key:"vo6nti"}],["path",{d:"M2 17v-3a4 4 0 0 1 8 0v3",key:"1ggdre"}],["circle",{cx:"9",cy:"17",r:"1",key:"bc1fq4"}]]);/**
|
|
2850
2850
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
2851
2851
|
*
|
|
2852
2852
|
* This source code is licensed under the ISC license.
|
|
2853
2853
|
* See the LICENSE file in the root directory of this source tree.
|
|
2854
|
-
*/const
|
|
2854
|
+
*/const Gu=s("file-audio",[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]]);/**
|
|
2855
2855
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
2856
2856
|
*
|
|
2857
2857
|
* This source code is licensed under the ISC license.
|
|
@@ -3156,12 +3156,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
3156
3156
|
*
|
|
3157
3157
|
* This source code is licensed under the ISC license.
|
|
3158
3158
|
* See the LICENSE file in the root directory of this source tree.
|
|
3159
|
-
*/const
|
|
3159
|
+
*/const $0=s("fish-off",[["path",{d:"M18 12.47v.03m0-.5v.47m-.475 5.056A6.744 6.744 0 0 1 15 18c-3.56 0-7.56-2.53-8.5-6 .348-1.28 1.114-2.433 2.121-3.38m3.444-2.088A8.802 8.802 0 0 1 15 6c3.56 0 6.06 2.54 7 6-.309 1.14-.786 2.177-1.413 3.058",key:"1j1hse"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33m7.48-4.372A9.77 9.77 0 0 1 16 6.07m0 11.86a9.77 9.77 0 0 1-1.728-3.618",key:"1q46z8"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98M8.53 3h5.27a2 2 0 0 1 1.98 1.67l.23 1.4M2 2l20 20",key:"1407gh"}]]);/**
|
|
3160
3160
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
3161
3161
|
*
|
|
3162
3162
|
* This source code is licensed under the ISC license.
|
|
3163
3163
|
* See the LICENSE file in the root directory of this source tree.
|
|
3164
|
-
*/const
|
|
3164
|
+
*/const G0=s("fish-symbol",[["path",{d:"M2 16s9-15 20-4C11 23 2 8 2 8",key:"h4oh4o"}]]);/**
|
|
3165
3165
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
3166
3166
|
*
|
|
3167
3167
|
* This source code is licensed under the ISC license.
|
|
@@ -3436,12 +3436,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
3436
3436
|
*
|
|
3437
3437
|
* This source code is licensed under the ISC license.
|
|
3438
3438
|
* See the LICENSE file in the root directory of this source tree.
|
|
3439
|
-
*/const
|
|
3439
|
+
*/const $p=s("frame",[["line",{x1:"22",x2:"2",y1:"6",y2:"6",key:"15w7dq"}],["line",{x1:"22",x2:"2",y1:"18",y2:"18",key:"1ip48p"}],["line",{x1:"6",x2:"6",y1:"2",y2:"22",key:"a2lnyx"}],["line",{x1:"18",x2:"18",y1:"2",y2:"22",key:"8vb6jd"}]]);/**
|
|
3440
3440
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
3441
3441
|
*
|
|
3442
3442
|
* This source code is licensed under the ISC license.
|
|
3443
3443
|
* See the LICENSE file in the root directory of this source tree.
|
|
3444
|
-
*/const
|
|
3444
|
+
*/const Gp=s("forward",[["path",{d:"m15 17 5-5-5-5",key:"nf172w"}],["path",{d:"M4 18v-2a4 4 0 0 1 4-4h12",key:"jmiej9"}]]);/**
|
|
3445
3445
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
3446
3446
|
*
|
|
3447
3447
|
* This source code is licensed under the ISC license.
|
|
@@ -3691,7 +3691,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
3691
3691
|
*
|
|
3692
3692
|
* This source code is licensed under the ISC license.
|
|
3693
3693
|
* See the LICENSE file in the root directory of this source tree.
|
|
3694
|
-
*/const
|
|
3694
|
+
*/const Te=s("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
3695
3695
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
3696
3696
|
*
|
|
3697
3697
|
* This source code is licensed under the ISC license.
|
|
@@ -3751,12 +3751,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
3751
3751
|
*
|
|
3752
3752
|
* This source code is licensed under the ISC license.
|
|
3753
3753
|
* See the LICENSE file in the root directory of this source tree.
|
|
3754
|
-
*/const
|
|
3754
|
+
*/const $y=s("hand-metal",[["path",{d:"M18 12.5V10a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4",key:"wc6myp"}],["path",{d:"M14 11V9a2 2 0 1 0-4 0v2",key:"94qvcw"}],["path",{d:"M10 10.5V5a2 2 0 1 0-4 0v9",key:"m1ah89"}],["path",{d:"m7 15-1.76-1.76a2 2 0 0 0-2.83 2.82l3.6 3.6C7.5 21.14 9.2 22 12 22h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v5",key:"t1skq1"}]]);/**
|
|
3755
3755
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
3756
3756
|
*
|
|
3757
3757
|
* This source code is licensed under the ISC license.
|
|
3758
3758
|
* See the LICENSE file in the root directory of this source tree.
|
|
3759
|
-
*/const
|
|
3759
|
+
*/const Gy=s("hand-platter",[["path",{d:"M12 3V2",key:"ar7q03"}],["path",{d:"m15.4 17.4 3.2-2.8a2 2 0 1 1 2.8 2.9l-3.6 3.3c-.7.8-1.7 1.2-2.8 1.2h-4c-1.1 0-2.1-.4-2.8-1.2l-1.302-1.464A1 1 0 0 0 6.151 19H5",key:"n2g93r"}],["path",{d:"M2 14h12a2 2 0 0 1 0 4h-2",key:"1o2jem"}],["path",{d:"M4 10h16",key:"img6z1"}],["path",{d:"M5 10a7 7 0 0 1 14 0",key:"1ega1o"}],["path",{d:"M5 14v6a1 1 0 0 1-1 1H2",key:"1hescx"}]]);/**
|
|
3760
3760
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
3761
3761
|
*
|
|
3762
3762
|
* This source code is licensed under the ISC license.
|
|
@@ -4041,12 +4041,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
4041
4041
|
*
|
|
4042
4042
|
* This source code is licensed under the ISC license.
|
|
4043
4043
|
* See the LICENSE file in the root directory of this source tree.
|
|
4044
|
-
*/const
|
|
4044
|
+
*/const $f=s("infinity",[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]]);/**
|
|
4045
4045
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4046
4046
|
*
|
|
4047
4047
|
* This source code is licensed under the ISC license.
|
|
4048
4048
|
* See the LICENSE file in the root directory of this source tree.
|
|
4049
|
-
*/const
|
|
4049
|
+
*/const Gf=s("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
4050
4050
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4051
4051
|
*
|
|
4052
4052
|
* This source code is licensed under the ISC license.
|
|
@@ -4321,12 +4321,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
4321
4321
|
*
|
|
4322
4322
|
* This source code is licensed under the ISC license.
|
|
4323
4323
|
* See the LICENSE file in the root directory of this source tree.
|
|
4324
|
-
*/const
|
|
4324
|
+
*/const $m=s("list-end",[["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M10 18H3",key:"13769t"}],["path",{d:"M21 6v10a2 2 0 0 1-2 2h-5",key:"ilrcs8"}],["path",{d:"m16 16-2 2 2 2",key:"kkc6pm"}]]);/**
|
|
4325
4325
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4326
4326
|
*
|
|
4327
4327
|
* This source code is licensed under the ISC license.
|
|
4328
4328
|
* See the LICENSE file in the root directory of this source tree.
|
|
4329
|
-
*/const
|
|
4329
|
+
*/const Gm=s("list-filter-plus",[["path",{d:"M10 18h4",key:"1ulq68"}],["path",{d:"M11 6H3",key:"1u26ik"}],["path",{d:"M15 6h6",key:"1jlkvy"}],["path",{d:"M18 9V3",key:"xwwp7m"}],["path",{d:"M7 12h8",key:"7a1bxv"}]]);/**
|
|
4330
4330
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4331
4331
|
*
|
|
4332
4332
|
* This source code is licensed under the ISC license.
|
|
@@ -4436,7 +4436,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
4436
4436
|
*
|
|
4437
4437
|
* This source code is licensed under the ISC license.
|
|
4438
4438
|
* See the LICENSE file in the root directory of this source tree.
|
|
4439
|
-
*/const
|
|
4439
|
+
*/const $i=s("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/**
|
|
4440
4440
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4441
4441
|
*
|
|
4442
4442
|
* This source code is licensed under the ISC license.
|
|
@@ -4606,12 +4606,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
4606
4606
|
*
|
|
4607
4607
|
* This source code is licensed under the ISC license.
|
|
4608
4608
|
* See the LICENSE file in the root directory of this source tree.
|
|
4609
|
-
*/const
|
|
4609
|
+
*/const $g=s("mars",[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"m21 3-6.75 6.75",key:"pv0uzu"}],["circle",{cx:"10",cy:"14",r:"6",key:"1qwbdc"}]]);/**
|
|
4610
4610
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4611
4611
|
*
|
|
4612
4612
|
* This source code is licensed under the ISC license.
|
|
4613
4613
|
* See the LICENSE file in the root directory of this source tree.
|
|
4614
|
-
*/const
|
|
4614
|
+
*/const Gg=s("martini",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]]);/**
|
|
4615
4615
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4616
4616
|
*
|
|
4617
4617
|
* This source code is licensed under the ISC license.
|
|
@@ -4806,7 +4806,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
4806
4806
|
*
|
|
4807
4807
|
* This source code is licensed under the ISC license.
|
|
4808
4808
|
* See the LICENSE file in the root directory of this source tree.
|
|
4809
|
-
*/const
|
|
4809
|
+
*/const Gi=s("mic-vocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]]);/**
|
|
4810
4810
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4811
4811
|
*
|
|
4812
4812
|
* This source code is licensed under the ISC license.
|
|
@@ -4881,12 +4881,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
4881
4881
|
*
|
|
4882
4882
|
* This source code is licensed under the ISC license.
|
|
4883
4883
|
* See the LICENSE file in the root directory of this source tree.
|
|
4884
|
-
*/const
|
|
4884
|
+
*/const $k=s("monitor-off",[["path",{d:"M17 17H4a2 2 0 0 1-2-2V5c0-1.5 1-2 1-2",key:"k0q8oc"}],["path",{d:"M22 15V5a2 2 0 0 0-2-2H9",key:"cp1ac0"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
4885
4885
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4886
4886
|
*
|
|
4887
4887
|
* This source code is licensed under the ISC license.
|
|
4888
4888
|
* See the LICENSE file in the root directory of this source tree.
|
|
4889
|
-
*/const
|
|
4889
|
+
*/const Gk=s("monitor-pause",[["path",{d:"M10 13V7",key:"1u13u9"}],["path",{d:"M14 13V7",key:"1vj9om"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/**
|
|
4890
4890
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
4891
4891
|
*
|
|
4892
4892
|
* This source code is licensed under the ISC license.
|
|
@@ -5171,12 +5171,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
5171
5171
|
*
|
|
5172
5172
|
* This source code is licensed under the ISC license.
|
|
5173
5173
|
* See the LICENSE file in the root directory of this source tree.
|
|
5174
|
-
*/const
|
|
5174
|
+
*/const $3=s("omega",[["path",{d:"M3 20h4.5a.5.5 0 0 0 .5-.5v-.282a.52.52 0 0 0-.247-.437 8 8 0 1 1 8.494-.001.52.52 0 0 0-.247.438v.282a.5.5 0 0 0 .5.5H21",key:"1x94xo"}]]);/**
|
|
5175
5175
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
5176
5176
|
*
|
|
5177
5177
|
* This source code is licensed under the ISC license.
|
|
5178
5178
|
* See the LICENSE file in the root directory of this source tree.
|
|
5179
|
-
*/const
|
|
5179
|
+
*/const G3=s("option",[["path",{d:"M3 3h6l6 18h6",key:"ph9rgk"}],["path",{d:"M14 3h7",key:"16f0ms"}]]);/**
|
|
5180
5180
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
5181
5181
|
*
|
|
5182
5182
|
* This source code is licensed under the ISC license.
|
|
@@ -5496,12 +5496,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
5496
5496
|
*
|
|
5497
5497
|
* This source code is licensed under the ISC license.
|
|
5498
5498
|
* See the LICENSE file in the root directory of this source tree.
|
|
5499
|
-
*/const
|
|
5499
|
+
*/const $4=s("pickaxe",[["path",{d:"M14.531 12.469 6.619 20.38a1 1 0 1 1-3-3l7.912-7.912",key:"we99rg"}],["path",{d:"M15.686 4.314A12.5 12.5 0 0 0 5.461 2.958 1 1 0 0 0 5.58 4.71a22 22 0 0 1 6.318 3.393",key:"1w6hck"}],["path",{d:"M17.7 3.7a1 1 0 0 0-1.4 0l-4.6 4.6a1 1 0 0 0 0 1.4l2.6 2.6a1 1 0 0 0 1.4 0l4.6-4.6a1 1 0 0 0 0-1.4z",key:"15hgfx"}],["path",{d:"M19.686 8.314a12.501 12.501 0 0 1 1.356 10.225 1 1 0 0 1-1.751-.119 22 22 0 0 0-3.393-6.319",key:"452b4h"}]]);/**
|
|
5500
5500
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
5501
5501
|
*
|
|
5502
5502
|
* This source code is licensed under the ISC license.
|
|
5503
5503
|
* See the LICENSE file in the root directory of this source tree.
|
|
5504
|
-
*/const
|
|
5504
|
+
*/const G4=s("picture-in-picture-2",[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]]);/**
|
|
5505
5505
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
5506
5506
|
*
|
|
5507
5507
|
* This source code is licensed under the ISC license.
|
|
@@ -5771,12 +5771,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
5771
5771
|
*
|
|
5772
5772
|
* This source code is licensed under the ISC license.
|
|
5773
5773
|
* See the LICENSE file in the root directory of this source tree.
|
|
5774
|
-
*/const
|
|
5774
|
+
*/const $v=s("receipt-indian-rupee",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 7h8",key:"i86dvs"}],["path",{d:"M12 17.5 8 15h1a4 4 0 0 0 0-8",key:"grpkl4"}],["path",{d:"M8 11h8",key:"vwpz6n"}]]);/**
|
|
5775
5775
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
5776
5776
|
*
|
|
5777
5777
|
* This source code is licensed under the ISC license.
|
|
5778
5778
|
* See the LICENSE file in the root directory of this source tree.
|
|
5779
|
-
*/const
|
|
5779
|
+
*/const Gv=s("receipt-russian-ruble",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 15h5",key:"vxg57a"}],["path",{d:"M8 11h5a2 2 0 1 0 0-4h-3v10",key:"1usi5u"}]]);/**
|
|
5780
5780
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
5781
5781
|
*
|
|
5782
5782
|
* This source code is licensed under the ISC license.
|
|
@@ -6066,12 +6066,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
6066
6066
|
*
|
|
6067
6067
|
* This source code is licensed under the ISC license.
|
|
6068
6068
|
* See the LICENSE file in the root directory of this source tree.
|
|
6069
|
-
*/const
|
|
6069
|
+
*/const $5=s("scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
|
|
6070
6070
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6071
6071
|
*
|
|
6072
6072
|
* This source code is licensed under the ISC license.
|
|
6073
6073
|
* See the LICENSE file in the root directory of this source tree.
|
|
6074
|
-
*/const
|
|
6074
|
+
*/const G5=s("scaling",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M14 15H9v-5",key:"pi4jk9"}],["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M21 3 9 15",key:"15kdhq"}]]);/**
|
|
6075
6075
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6076
6076
|
*
|
|
6077
6077
|
* This source code is licensed under the ISC license.
|
|
@@ -6346,12 +6346,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
6346
6346
|
*
|
|
6347
6347
|
* This source code is licensed under the ISC license.
|
|
6348
6348
|
* See the LICENSE file in the root directory of this source tree.
|
|
6349
|
-
*/const
|
|
6349
|
+
*/const $b=s("shopping-basket",[["path",{d:"m15 11-1 9",key:"5wnq3a"}],["path",{d:"m19 11-4-7",key:"cnml18"}],["path",{d:"M2 11h20",key:"3eubbj"}],["path",{d:"m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4",key:"yiazzp"}],["path",{d:"M4.5 15.5h15",key:"13mye1"}],["path",{d:"m5 11 4-7",key:"116ra9"}],["path",{d:"m9 11 1 9",key:"1ojof7"}]]);/**
|
|
6350
6350
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6351
6351
|
*
|
|
6352
6352
|
* This source code is licensed under the ISC license.
|
|
6353
6353
|
* See the LICENSE file in the root directory of this source tree.
|
|
6354
|
-
*/const
|
|
6354
|
+
*/const Gb=s("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
|
|
6355
6355
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6356
6356
|
*
|
|
6357
6357
|
* This source code is licensed under the ISC license.
|
|
@@ -6666,7 +6666,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
6666
6666
|
*
|
|
6667
6667
|
* This source code is licensed under the ISC license.
|
|
6668
6668
|
* See the LICENSE file in the root directory of this source tree.
|
|
6669
|
-
*/const
|
|
6669
|
+
*/const De=s("square-chart-gantt",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]]);/**
|
|
6670
6670
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6671
6671
|
*
|
|
6672
6672
|
* This source code is licensed under the ISC license.
|
|
@@ -6751,12 +6751,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
6751
6751
|
*
|
|
6752
6752
|
* This source code is licensed under the ISC license.
|
|
6753
6753
|
* See the LICENSE file in the root directory of this source tree.
|
|
6754
|
-
*/const
|
|
6754
|
+
*/const $a=s("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]);/**
|
|
6755
6755
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6756
6756
|
*
|
|
6757
6757
|
* This source code is licensed under the ISC license.
|
|
6758
6758
|
* See the LICENSE file in the root directory of this source tree.
|
|
6759
|
-
*/const
|
|
6759
|
+
*/const Ga=s("square-function",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]]);/**
|
|
6760
6760
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6761
6761
|
*
|
|
6762
6762
|
* This source code is licensed under the ISC license.
|
|
@@ -6801,7 +6801,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
6801
6801
|
*
|
|
6802
6802
|
* This source code is licensed under the ISC license.
|
|
6803
6803
|
* See the LICENSE file in the root directory of this source tree.
|
|
6804
|
-
*/const
|
|
6804
|
+
*/const ue=s("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
|
|
6805
6805
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6806
6806
|
*
|
|
6807
6807
|
* This source code is licensed under the ISC license.
|
|
@@ -6876,7 +6876,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
6876
6876
|
*
|
|
6877
6877
|
* This source code is licensed under the ISC license.
|
|
6878
6878
|
* See the LICENSE file in the root directory of this source tree.
|
|
6879
|
-
*/const
|
|
6879
|
+
*/const $w=s("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]);/**
|
|
6880
6880
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6881
6881
|
*
|
|
6882
6882
|
* This source code is licensed under the ISC license.
|
|
@@ -6901,7 +6901,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
6901
6901
|
*
|
|
6902
6902
|
* This source code is licensed under the ISC license.
|
|
6903
6903
|
* See the LICENSE file in the root directory of this source tree.
|
|
6904
|
-
*/const
|
|
6904
|
+
*/const Gw=s("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
6905
6905
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
6906
6906
|
*
|
|
6907
6907
|
* This source code is licensed under the ISC license.
|
|
@@ -7166,12 +7166,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
7166
7166
|
*
|
|
7167
7167
|
* This source code is licensed under the ISC license.
|
|
7168
7168
|
* See the LICENSE file in the root directory of this source tree.
|
|
7169
|
-
*/const
|
|
7169
|
+
*/const $6=s("tangent",[["circle",{cx:"17",cy:"4",r:"2",key:"y5j2s2"}],["path",{d:"M15.59 5.41 5.41 15.59",key:"l0vprr"}],["circle",{cx:"4",cy:"17",r:"2",key:"9p4efm"}],["path",{d:"M12 22s-4-9-1.5-11.5S22 12 22 12",key:"1twk4o"}]]);/**
|
|
7170
7170
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
7171
7171
|
*
|
|
7172
7172
|
* This source code is licensed under the ISC license.
|
|
7173
7173
|
* See the LICENSE file in the root directory of this source tree.
|
|
7174
|
-
*/const
|
|
7174
|
+
*/const G6=s("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
|
|
7175
7175
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
7176
7176
|
*
|
|
7177
7177
|
* This source code is licensed under the ISC license.
|
|
@@ -7456,7 +7456,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
7456
7456
|
*
|
|
7457
7457
|
* This source code is licensed under the ISC license.
|
|
7458
7458
|
* See the LICENSE file in the root directory of this source tree.
|
|
7459
|
-
*/const
|
|
7459
|
+
*/const $8=s("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);/**
|
|
7460
7460
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
7461
7461
|
*
|
|
7462
7462
|
* This source code is licensed under the ISC license.
|
|
@@ -7466,7 +7466,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
7466
7466
|
*
|
|
7467
7467
|
* This source code is licensed under the ISC license.
|
|
7468
7468
|
* See the LICENSE file in the root directory of this source tree.
|
|
7469
|
-
*/const
|
|
7469
|
+
*/const G8=s("triangle-dashed",[["path",{d:"M10.17 4.193a2 2 0 0 1 3.666.013",key:"pltmmw"}],["path",{d:"M14 21h2",key:"v4qezv"}],["path",{d:"m15.874 7.743 1 1.732",key:"10m0iw"}],["path",{d:"m18.849 12.952 1 1.732",key:"zadnam"}],["path",{d:"M21.824 18.18a2 2 0 0 1-1.835 2.824",key:"fvwuk4"}],["path",{d:"M4.024 21a2 2 0 0 1-1.839-2.839",key:"1e1kah"}],["path",{d:"m5.136 12.952-1 1.732",key:"1u4ldi"}],["path",{d:"M8 21h2",key:"i9zjee"}],["path",{d:"m8.102 7.743-1 1.732",key:"1zzo4u"}]]);/**
|
|
7470
7470
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
7471
7471
|
*
|
|
7472
7472
|
* This source code is licensed under the ISC license.
|
|
@@ -7786,12 +7786,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
7786
7786
|
*
|
|
7787
7787
|
* This source code is licensed under the ISC license.
|
|
7788
7788
|
* See the LICENSE file in the root directory of this source tree.
|
|
7789
|
-
*/const
|
|
7789
|
+
*/const $M=s("volleyball",[["path",{d:"M11.1 7.1a16.55 16.55 0 0 1 10.9 4",key:"2880wi"}],["path",{d:"M12 12a12.6 12.6 0 0 1-8.7 5",key:"113sja"}],["path",{d:"M16.8 13.6a16.55 16.55 0 0 1-9 7.5",key:"1qmsgl"}],["path",{d:"M20.7 17a12.8 12.8 0 0 0-8.7-5 13.3 13.3 0 0 1 0-10",key:"1bmeqp"}],["path",{d:"M6.3 3.8a16.55 16.55 0 0 0 1.9 11.5",key:"iekzv9"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
7790
7790
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
7791
7791
|
*
|
|
7792
7792
|
* This source code is licensed under the ISC license.
|
|
7793
7793
|
* See the LICENSE file in the root directory of this source tree.
|
|
7794
|
-
*/const
|
|
7794
|
+
*/const GM=s("volume-1",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}]]);/**
|
|
7795
7795
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
7796
7796
|
*
|
|
7797
7797
|
* This source code is licensed under the ISC license.
|
|
@@ -8016,14 +8016,14 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
8016
8016
|
*
|
|
8017
8017
|
* This source code is licensed under the ISC license.
|
|
8018
8018
|
* See the LICENSE file in the root directory of this source tree.
|
|
8019
|
-
*/const ET=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Un,AArrowUp:Gn,ALargeSmall:$n,Accessibility:Yn,Activity:Zn,AirVent:Kn,Airplay:Xn,AlarmClock:Qn,AlarmClockCheck:tt,AlarmClockMinus:it,AlarmClockOff:Jn,AlarmClockPlus:at,AlarmSmoke:es,Album:ts,AlignCenter:os,AlignCenterHorizontal:is,AlignCenterVertical:as,AlignEndHorizontal:ns,AlignEndVertical:ss,AlignHorizontalDistributeCenter:rs,AlignHorizontalDistributeEnd:ls,AlignHorizontalDistributeStart:hs,AlignHorizontalJustifyCenter:cs,AlignHorizontalJustifyEnd:ds,AlignHorizontalJustifyStart:us,AlignHorizontalSpaceAround:ps,AlignHorizontalSpaceBetween:ys,AlignJustify:fs,AlignLeft:ms,AlignRight:ks,AlignStartHorizontal:gs,AlignStartVertical:vs,AlignVerticalDistributeCenter:bs,AlignVerticalDistributeEnd:ws,AlignVerticalDistributeStart:Ms,AlignVerticalJustifyCenter:Cs,AlignVerticalJustifyEnd:xs,AlignVerticalJustifyStart:Ls,AlignVerticalSpaceAround:Es,AlignVerticalSpaceBetween:Ss,Ambulance:Is,Ampersand:Ts,Ampersands:Ds,Amphora:zs,Anchor:Hs,Angry:Rs,Annoyed:As,Antenna:Vs,Anvil:Ps,Aperture:qs,AppWindow:Fs,AppWindowMac:Bs,Apple:Os,Archive:_s,ArchiveRestore:js,ArchiveX:Ns,Armchair:Us,ArrowBigDown:Gs,ArrowBigDownDash:Ws,ArrowBigLeft:Ys,ArrowBigLeftDash:$s,ArrowBigRight:Xs,ArrowBigRightDash:Zs,ArrowBigUp:Js,ArrowBigUpDash:Ks,ArrowDown:lr,ArrowDown01:Qs,ArrowDown10:er,ArrowDownAZ:ot,ArrowDownFromLine:tr,ArrowDownLeft:ir,ArrowDownNarrowWide:ar,ArrowDownRight:or,ArrowDownToDot:nr,ArrowDownToLine:rr,ArrowDownUp:sr,ArrowDownWideNarrow:nt,ArrowDownZA:st,ArrowLeft:ur,ArrowLeftFromLine:hr,ArrowLeftRight:cr,ArrowLeftToLine:dr,ArrowRight:mr,ArrowRightFromLine:pr,ArrowRightLeft:yr,ArrowRightToLine:fr,ArrowUp:Er,ArrowUp01:gr,ArrowUp10:vr,ArrowUpAZ:rt,ArrowUpDown:kr,ArrowUpFromDot:br,ArrowUpFromLine:wr,ArrowUpLeft:Mr,ArrowUpNarrowWide:lt,ArrowUpRight:Cr,ArrowUpToLine:xr,ArrowUpWideNarrow:Lr,ArrowUpZA:ht,ArrowsUpFromLine:Sr,Asterisk:Ir,AtSign:Tr,Atom:Dr,AudioLines:zr,AudioWaveform:Rr,Award:Hr,Axe:Ar,Axis3d:ct,Baby:Vr,Backpack:Pr,Badge:Jr,BadgeAlert:qr,BadgeCent:Br,BadgeCheck:dt,BadgeDollarSign:Fr,BadgeEuro:Or,BadgeHelp:jr,BadgeIndianRupee:Nr,BadgeInfo:_r,BadgeJapaneseYen:Wr,BadgeMinus:Ur,BadgePercent:Gr,BadgePlus:$r,BadgePoundSterling:Yr,BadgeRussianRuble:Zr,BadgeSwissFranc:Xr,BadgeX:Kr,BaggageClaim:Qr,Ban:el,Banana:tl,Bandage:il,Banknote:sl,BanknoteArrowDown:al,BanknoteArrowUp:ol,BanknoteX:nl,Barcode:rl,Baseline:ll,Bath:hl,Battery:ml,BatteryCharging:cl,BatteryFull:dl,BatteryLow:ul,BatteryMedium:pl,BatteryPlus:yl,BatteryWarning:fl,Beaker:gl,Bean:vl,BeanOff:kl,Bed:Ml,BedDouble:bl,BedSingle:wl,Beef:xl,Beer:Ll,BeerOff:Cl,Bell:Rl,BellDot:El,BellElectric:Sl,BellMinus:Il,BellOff:Tl,BellPlus:Dl,BellRing:zl,BetweenHorizontalEnd:ut,BetweenHorizontalStart:pt,BetweenVerticalEnd:Hl,BetweenVerticalStart:Al,BicepsFlexed:Vl,Bike:Pl,Binary:ql,Binoculars:Bl,Biohazard:Fl,Bird:Ol,Bitcoin:jl,Blend:Nl,Blinds:_l,Blocks:Wl,Bluetooth:Yl,BluetoothConnected:Ul,BluetoothOff:Gl,BluetoothSearching:$l,Bold:Zl,Bolt:Xl,Bomb:Kl,Bone:Jl,Book:w1,BookA:Ql,BookAudio:e1,BookCheck:t1,BookCopy:i1,BookDashed:yt,BookDown:o1,BookHeadphones:a1,BookHeart:n1,BookImage:s1,BookKey:r1,BookLock:l1,BookMarked:h1,BookMinus:c1,BookOpen:p1,BookOpenCheck:u1,BookOpenText:d1,BookPlus:y1,BookText:f1,BookType:m1,BookUp:k1,BookUp2:g1,BookUser:v1,BookX:b1,Bookmark:E1,BookmarkCheck:M1,BookmarkMinus:C1,BookmarkPlus:x1,BookmarkX:L1,BoomBox:S1,Bot:D1,BotMessageSquare:I1,BotOff:T1,BowArrow:z1,Box:R1,Boxes:H1,Braces:ft,Brackets:A1,Brain:q1,BrainCircuit:V1,BrainCog:P1,BrickWall:F1,BrickWallFire:B1,Briefcase:_1,BriefcaseBusiness:O1,BriefcaseConveyorBelt:j1,BriefcaseMedical:N1,BringToFront:W1,Brush:G1,BrushCleaning:U1,Bubbles:$1,Bug:X1,BugOff:Y1,BugPlay:Z1,Building:J1,Building2:K1,Bus:eh,BusFront:Q1,Cable:ih,CableCar:th,Cake:oh,CakeSlice:ah,Calculator:nh,Calendar:Eh,Calendar1:sh,CalendarArrowDown:rh,CalendarArrowUp:lh,CalendarCheck:ch,CalendarCheck2:hh,CalendarClock:dh,CalendarCog:uh,CalendarDays:ph,CalendarFold:yh,CalendarHeart:fh,CalendarMinus:gh,CalendarMinus2:mh,CalendarOff:kh,CalendarPlus:bh,CalendarPlus2:vh,CalendarRange:wh,CalendarSearch:Mh,CalendarSync:Ch,CalendarX:Lh,CalendarX2:xh,Camera:Ih,CameraOff:Sh,Candy:zh,CandyCane:Th,CandyOff:Dh,Cannabis:Rh,Captions:mt,CaptionsOff:Hh,Car:Ph,CarFront:Ah,CarTaxiFront:Vh,Caravan:qh,Carrot:Bh,CaseLower:Fh,CaseSensitive:Oh,CaseUpper:jh,CassetteTape:Nh,Cast:_h,Castle:Wh,Cat:Uh,Cctv:Gh,ChartArea:gt,ChartBar:vt,ChartBarBig:kt,ChartBarDecreasing:$h,ChartBarIncreasing:Yh,ChartBarStacked:Zh,ChartCandlestick:bt,ChartColumn:Ct,ChartColumnBig:wt,ChartColumnDecreasing:Xh,ChartColumnIncreasing:Mt,ChartColumnStacked:Kh,ChartGantt:Jh,ChartLine:xt,ChartNetwork:Qh,ChartNoAxesColumn:Et,ChartNoAxesColumnDecreasing:ec,ChartNoAxesColumnIncreasing:Lt,ChartNoAxesCombined:tc,ChartNoAxesGantt:St,ChartPie:It,ChartScatter:Tt,ChartSpline:ic,Check:nc,CheckCheck:ac,CheckLine:oc,ChefHat:sc,Cherry:rc,ChevronDown:lc,ChevronFirst:hc,ChevronLast:dc,ChevronLeft:cc,ChevronRight:uc,ChevronUp:pc,ChevronsDown:fc,ChevronsDownUp:yc,ChevronsLeft:kc,ChevronsLeftRight:gc,ChevronsLeftRightEllipsis:mc,ChevronsRight:bc,ChevronsRightLeft:vc,ChevronsUp:Mc,ChevronsUpDown:wc,Chrome:Cc,Church:xc,Cigarette:Ec,CigaretteOff:Lc,Circle:Bc,CircleAlert:zt,CircleArrowDown:Dt,CircleArrowLeft:Rt,CircleArrowOutDownLeft:Ht,CircleArrowOutDownRight:At,CircleArrowOutUpLeft:Vt,CircleArrowOutUpRight:Pt,CircleArrowRight:qt,CircleArrowUp:Bt,CircleCheck:Ot,CircleCheckBig:Ft,CircleChevronDown:jt,CircleChevronLeft:Nt,CircleChevronRight:_t,CircleChevronUp:Wt,CircleDashed:Sc,CircleDivide:Ut,CircleDollarSign:Ic,CircleDot:Dc,CircleDotDashed:Tc,CircleEllipsis:zc,CircleEqual:Rc,CircleFadingArrowUp:Hc,CircleFadingPlus:Ac,CircleGauge:Gt,CircleHelp:$t,CircleMinus:Yt,CircleOff:Vc,CircleParking:Xt,CircleParkingOff:Zt,CirclePause:Kt,CirclePercent:Jt,CirclePlay:Qt,CirclePlus:ei,CirclePower:ti,CircleSlash:Pc,CircleSlash2:ii,CircleSmall:qc,CircleStop:ai,CircleUser:ni,CircleUserRound:oi,CircleX:si,CircuitBoard:Fc,Citrus:Oc,Clapperboard:jc,Clipboard:Xc,ClipboardCheck:Nc,ClipboardCopy:_c,ClipboardList:Wc,ClipboardMinus:Uc,ClipboardPaste:Gc,ClipboardPen:li,ClipboardPenLine:ri,ClipboardPlus:$c,ClipboardType:Yc,ClipboardX:Zc,Clock:yd,Clock1:Kc,Clock10:Jc,Clock11:Qc,Clock12:ed,Clock2:td,Clock3:id,Clock4:ad,Clock5:od,Clock6:nd,Clock7:sd,Clock8:rd,Clock9:ld,ClockAlert:hd,ClockArrowDown:cd,ClockArrowUp:dd,ClockFading:ud,ClockPlus:pd,Cloud:Td,CloudAlert:fd,CloudCog:md,CloudDownload:hi,CloudDrizzle:gd,CloudFog:vd,CloudHail:kd,CloudLightning:bd,CloudMoon:Md,CloudMoonRain:wd,CloudOff:Cd,CloudRain:Ld,CloudRainWind:xd,CloudSnow:Ed,CloudSun:Id,CloudSunRain:Sd,CloudUpload:ci,Cloudy:Dd,Clover:zd,Club:Rd,Code:Hd,CodeXml:di,Codepen:Ad,Codesandbox:Vd,Coffee:Pd,Cog:qd,Coins:Bd,Columns2:ui,Columns3:pi,Columns3Cog:Se,Columns4:Fd,Combine:jd,Command:Od,Compass:Nd,Component:_d,Computer:Wd,ConciergeBell:Ud,Cone:$d,Construction:Gd,Contact:Yd,ContactRound:yi,Container:Zd,Contrast:Xd,Cookie:Kd,CookingPot:Jd,Copy:o2,CopyCheck:e2,CopyMinus:Qd,CopyPlus:t2,CopySlash:i2,CopyX:a2,Copyleft:n2,Copyright:s2,CornerDownLeft:r2,CornerDownRight:l2,CornerLeftDown:h2,CornerLeftUp:c2,CornerRightDown:d2,CornerRightUp:u2,CornerUpLeft:p2,CornerUpRight:y2,Cpu:f2,CreativeCommons:m2,CreditCard:g2,Croissant:k2,Crop:v2,Cross:b2,Crosshair:w2,Crown:M2,Cuboid:C2,CupSoda:x2,Currency:L2,Cylinder:E2,Dam:S2,Database:D2,DatabaseBackup:I2,DatabaseZap:T2,DecimalsArrowLeft:z2,DecimalsArrowRight:R2,Delete:H2,Dessert:V2,Diameter:A2,Diamond:B2,DiamondMinus:P2,DiamondPercent:fi,DiamondPlus:q2,Dice1:F2,Dice2:O2,Dice3:j2,Dice4:N2,Dice5:_2,Dice6:W2,Dices:U2,Diff:G2,Disc:X2,Disc2:$2,Disc3:Y2,DiscAlbum:Z2,Divide:K2,Dna:J2,DnaOff:Q2,Dock:eu,Dog:tu,DollarSign:iu,Donut:au,DoorClosed:nu,DoorClosedLocked:ou,DoorOpen:su,Dot:ru,Download:lu,DraftingCompass:hu,Drama:cu,Dribbble:du,Drill:uu,Droplet:yu,DropletOff:pu,Droplets:fu,Drum:mu,Drumstick:gu,Dumbbell:ku,Ear:bu,EarOff:vu,Earth:mi,EarthLock:Mu,Eclipse:wu,Egg:Lu,EggFried:Cu,EggOff:xu,Ellipsis:ki,EllipsisVertical:gi,Equal:Iu,EqualApproximately:Eu,EqualNot:Su,Eraser:Tu,EthernetPort:Du,Euro:zu,Expand:Ru,ExternalLink:Hu,Eye:Pu,EyeClosed:Au,EyeOff:Vu,Facebook:qu,Factory:Bu,Fan:Fu,FastForward:Ou,Feather:ju,Fence:Wu,FerrisWheel:Nu,Figma:_u,File:j0,FileArchive:Uu,FileAudio:$u,FileAudio2:Gu,FileAxis3d:vi,FileBadge:Zu,FileBadge2:Yu,FileBox:Xu,FileChartColumn:wi,FileChartColumnIncreasing:bi,FileChartLine:Mi,FileChartPie:Ci,FileCheck:Ju,FileCheck2:Ku,FileClock:Qu,FileCode:t0,FileCode2:e0,FileCog:xi,FileDiff:i0,FileDigit:a0,FileDown:o0,FileHeart:n0,FileImage:s0,FileInput:r0,FileJson:h0,FileJson2:l0,FileKey:d0,FileKey2:c0,FileLock:p0,FileLock2:u0,FileMinus:y0,FileMinus2:f0,FileMusic:m0,FileOutput:g0,FilePen:Ei,FilePenLine:Li,FilePlus:b0,FilePlus2:k0,FileQuestion:v0,FileScan:w0,FileSearch:C0,FileSearch2:M0,FileSliders:x0,FileSpreadsheet:L0,FileStack:E0,FileSymlink:S0,FileTerminal:I0,FileText:T0,FileType:z0,FileType2:D0,FileUp:R0,FileUser:H0,FileVideo:V0,FileVideo2:A0,FileVolume:B0,FileVolume2:P0,FileWarning:q0,FileX:O0,FileX2:F0,Files:_0,Film:N0,Fingerprint:W0,FireExtinguisher:U0,Fish:Y0,FishOff:G0,FishSymbol:$0,Flag:J0,FlagOff:Z0,FlagTriangleLeft:X0,FlagTriangleRight:K0,Flame:ep,FlameKindling:Q0,Flashlight:ap,FlashlightOff:tp,FlaskConical:op,FlaskConicalOff:ip,FlaskRound:np,FlipHorizontal:rp,FlipHorizontal2:sp,FlipVertical:lp,FlipVertical2:hp,Flower:dp,Flower2:cp,Focus:up,FoldHorizontal:pp,FoldVertical:yp,Folder:Np,FolderArchive:fp,FolderCheck:mp,FolderClock:kp,FolderClosed:gp,FolderCode:vp,FolderCog:Si,FolderDot:bp,FolderDown:wp,FolderGit:Cp,FolderGit2:Mp,FolderHeart:xp,FolderInput:Lp,FolderKanban:Ep,FolderKey:Sp,FolderLock:Ip,FolderMinus:Dp,FolderOpen:zp,FolderOpenDot:Tp,FolderOutput:Hp,FolderPen:Ii,FolderPlus:Rp,FolderRoot:Ap,FolderSearch:Pp,FolderSearch2:Vp,FolderSymlink:Bp,FolderSync:qp,FolderTree:Fp,FolderUp:Op,FolderX:jp,Folders:_p,Footprints:Wp,Forklift:Up,Forward:$p,Frame:Gp,Framer:Yp,Frown:Zp,Fuel:Kp,Fullscreen:Xp,Funnel:Di,FunnelPlus:Jp,FunnelX:Ti,GalleryHorizontal:ty,GalleryHorizontalEnd:Qp,GalleryThumbnails:ey,GalleryVertical:ay,GalleryVerticalEnd:iy,Gamepad:oy,Gamepad2:ny,Gauge:sy,Gavel:ry,Gem:ly,Ghost:hy,Gift:cy,GitBranch:uy,GitBranchPlus:dy,GitCommitHorizontal:zi,GitCommitVertical:py,GitCompare:fy,GitCompareArrows:yy,GitFork:my,GitGraph:gy,GitMerge:ky,GitPullRequest:xy,GitPullRequestArrow:vy,GitPullRequestClosed:by,GitPullRequestCreate:Cy,GitPullRequestCreateArrow:wy,GitPullRequestDraft:My,Github:Ly,Gitlab:Ey,GlassWater:Sy,Glasses:Iy,Globe:zy,GlobeLock:Ty,Goal:Dy,Gpu:Ry,Grab:Hy,GraduationCap:Ay,Grape:Vy,Grid2x2:Vi,Grid2x2Check:Ri,Grid2x2Plus:Hi,Grid2x2X:Ai,Grid3x3:Ie,Grip:By,GripHorizontal:Py,GripVertical:qy,Group:Fy,Guitar:Oy,Ham:jy,Hamburger:Ny,Hammer:_y,Hand:Yy,HandCoins:Wy,HandHeart:Uy,HandHelping:Pi,HandMetal:Gy,HandPlatter:$y,Handshake:Xy,HardDrive:Jy,HardDriveDownload:Zy,HardDriveUpload:Ky,HardHat:Qy,Hash:ef,Haze:tf,HdmiPort:af,Heading:cf,Heading1:of,Heading2:nf,Heading3:sf,Heading4:hf,Heading5:rf,Heading6:lf,HeadphoneOff:df,Headphones:uf,Headset:pf,Heart:vf,HeartCrack:yf,HeartHandshake:ff,HeartMinus:mf,HeartOff:gf,HeartPlus:kf,HeartPulse:bf,Heater:wf,Hexagon:Mf,Highlighter:Cf,History:xf,Hop:Ef,HopOff:Lf,Hospital:Sf,Hotel:If,Hourglass:Tf,House:qi,HousePlug:Df,HousePlus:zf,HouseWifi:Rf,IceCreamBowl:Bi,IceCreamCone:Fi,IdCard:Hf,Image:jf,ImageDown:Af,ImageMinus:Vf,ImageOff:qf,ImagePlay:Pf,ImagePlus:Bf,ImageUp:Of,ImageUpscale:Ff,Images:Nf,Import:Wf,Inbox:_f,IndentDecrease:Oi,IndentIncrease:ji,IndianRupee:Uf,Infinity:Gf,Info:$f,InspectionPanel:Xf,Instagram:Yf,Italic:Zf,IterationCcw:Kf,IterationCw:Jf,JapaneseYen:Qf,Joystick:em,Kanban:tm,Key:om,KeyRound:am,KeySquare:im,Keyboard:rm,KeyboardMusic:nm,KeyboardOff:sm,Lamp:pm,LampCeiling:lm,LampDesk:cm,LampFloor:hm,LampWallDown:dm,LampWallUp:um,LandPlot:ym,Landmark:fm,Languages:mm,Laptop:km,LaptopMinimal:Ni,LaptopMinimalCheck:gm,Lasso:vm,LassoSelect:wm,Laugh:bm,Layers:_i,Layers2:Mm,LayoutDashboard:Cm,LayoutGrid:xm,LayoutList:Lm,LayoutPanelLeft:Em,LayoutPanelTop:Sm,LayoutTemplate:Im,Leaf:Tm,LeafyGreen:zm,Lectern:Dm,LetterText:Rm,Library:Am,LibraryBig:Hm,LifeBuoy:Vm,Ligature:Pm,Lightbulb:Bm,LightbulbOff:qm,Link:jm,Link2:Om,Link2Off:Fm,Linkedin:Nm,List:ng,ListCheck:_m,ListChecks:Wm,ListCollapse:Um,ListEnd:Gm,ListFilter:Zm,ListFilterPlus:$m,ListMinus:Ym,ListMusic:Xm,ListOrdered:Km,ListPlus:Jm,ListRestart:Qm,ListStart:eg,ListTodo:tg,ListTree:ig,ListVideo:ag,ListX:og,Loader:rg,LoaderCircle:Wi,LoaderPinwheel:sg,Locate:cg,LocateFixed:lg,LocateOff:hg,LocationEdit:dg,Lock:pg,LockKeyhole:ug,LockKeyholeOpen:Ui,LockOpen:Gi,LogIn:yg,LogOut:fg,Logs:mg,Lollipop:gg,Luggage:kg,Magnet:vg,Mail:Ig,MailCheck:bg,MailMinus:wg,MailOpen:Mg,MailPlus:Cg,MailQuestion:xg,MailSearch:Lg,MailWarning:Eg,MailX:Sg,Mailbox:Tg,Mails:Dg,Map:Wg,MapPin:jg,MapPinCheck:Rg,MapPinCheckInside:zg,MapPinHouse:Hg,MapPinMinus:Vg,MapPinMinusInside:Ag,MapPinOff:Pg,MapPinPlus:Bg,MapPinPlusInside:qg,MapPinX:Fg,MapPinXInside:Og,MapPinned:Ng,MapPlus:_g,Mars:Gg,MarsStroke:Ug,Martini:$g,Maximize:Yg,Maximize2:Zg,Medal:Xg,Megaphone:Jg,MegaphoneOff:Kg,Meh:Qg,MemoryStick:tk,Menu:ek,Merge:ik,MessageCircle:pk,MessageCircleCode:ak,MessageCircleDashed:ok,MessageCircleHeart:nk,MessageCircleMore:sk,MessageCircleOff:rk,MessageCirclePlus:lk,MessageCircleQuestion:hk,MessageCircleReply:ck,MessageCircleWarning:dk,MessageCircleX:uk,MessageSquare:Tk,MessageSquareCode:yk,MessageSquareDashed:fk,MessageSquareDiff:mk,MessageSquareDot:gk,MessageSquareHeart:kk,MessageSquareLock:vk,MessageSquareMore:bk,MessageSquareOff:wk,MessageSquarePlus:Mk,MessageSquareQuote:Ck,MessageSquareReply:xk,MessageSquareShare:Lk,MessageSquareText:Ek,MessageSquareWarning:Sk,MessageSquareX:Ik,MessagesSquare:Dk,Mic:Rk,MicOff:zk,MicVocal:$i,Microchip:Hk,Microscope:Ak,Microwave:Vk,Milestone:Pk,Milk:Bk,MilkOff:qk,Minimize:Ok,Minimize2:Fk,Minus:jk,Monitor:e3,MonitorCheck:Nk,MonitorCog:Wk,MonitorDot:_k,MonitorDown:Uk,MonitorOff:Gk,MonitorPause:$k,MonitorPlay:Yk,MonitorSmartphone:Zk,MonitorSpeaker:Kk,MonitorStop:Xk,MonitorUp:Jk,MonitorX:Qk,Moon:i3,MoonStar:t3,Mountain:o3,MountainSnow:a3,Mouse:u3,MouseOff:n3,MousePointer:h3,MousePointer2:s3,MousePointerBan:r3,MousePointerClick:l3,Move:C3,Move3d:Yi,MoveDiagonal:d3,MoveDiagonal2:c3,MoveDown:f3,MoveDownLeft:p3,MoveDownRight:y3,MoveHorizontal:g3,MoveLeft:m3,MoveRight:k3,MoveUp:w3,MoveUpLeft:v3,MoveUpRight:b3,MoveVertical:M3,Music:S3,Music2:x3,Music3:L3,Music4:E3,Navigation:z3,Navigation2:T3,Navigation2Off:I3,NavigationOff:D3,Network:R3,Newspaper:H3,Nfc:A3,NonBinary:V3,Notebook:F3,NotebookPen:P3,NotebookTabs:q3,NotebookText:B3,NotepadText:j3,NotepadTextDashed:O3,Nut:_3,NutOff:N3,Octagon:U3,OctagonAlert:Zi,OctagonMinus:W3,OctagonPause:Ki,OctagonX:Xi,Omega:G3,Option:$3,Orbit:Z3,Origami:Y3,Package:a4,Package2:X3,PackageCheck:K3,PackageMinus:J3,PackageOpen:Q3,PackagePlus:e4,PackageSearch:t4,PackageX:i4,PaintBucket:o4,PaintRoller:n4,Paintbrush:s4,PaintbrushVertical:Ji,Palette:r4,Panda:l4,PanelBottom:d4,PanelBottomClose:h4,PanelBottomDashed:Qi,PanelBottomOpen:c4,PanelLeft:aa,PanelLeftClose:ea,PanelLeftDashed:ta,PanelLeftOpen:ia,PanelRight:f4,PanelRightClose:u4,PanelRightDashed:oa,PanelRightOpen:p4,PanelTop:g4,PanelTopClose:y4,PanelTopDashed:na,PanelTopOpen:m4,PanelsLeftBottom:k4,PanelsRightBottom:v4,PanelsTopLeft:sa,Paperclip:b4,Parentheses:w4,ParkingMeter:M4,PartyPopper:C4,Pause:x4,PawPrint:L4,PcCase:E4,Pen:la,PenLine:ra,PenOff:S4,PenTool:I4,Pencil:R4,PencilLine:D4,PencilOff:T4,PencilRuler:z4,Pentagon:H4,Percent:A4,PersonStanding:V4,PhilippinePeso:q4,Phone:_4,PhoneCall:P4,PhoneForwarded:B4,PhoneIncoming:F4,PhoneMissed:O4,PhoneOff:j4,PhoneOutgoing:N4,Pi:W4,Piano:U4,Pickaxe:G4,PictureInPicture:Y4,PictureInPicture2:$4,PiggyBank:Z4,Pilcrow:J4,PilcrowLeft:X4,PilcrowRight:K4,Pill:ev,PillBottle:Q4,Pin:iv,PinOff:tv,Pipette:av,Pizza:ov,Plane:rv,PlaneLanding:nv,PlaneTakeoff:sv,Play:lv,Plug:cv,Plug2:hv,PlugZap:ha,Plus:dv,Pocket:uv,PocketKnife:pv,Podcast:yv,Pointer:mv,PointerOff:fv,Popcorn:gv,Popsicle:kv,PoundSterling:vv,Power:wv,PowerOff:bv,Presentation:Mv,Printer:xv,PrinterCheck:Cv,Projector:Lv,Proportions:Ev,Puzzle:Sv,Pyramid:Iv,QrCode:Tv,Quote:zv,Rabbit:Dv,Radar:Rv,Radiation:Hv,Radical:Av,Radio:qv,RadioReceiver:Vv,RadioTower:Pv,Radius:Bv,RailSymbol:Fv,Rainbow:Ov,Rat:jv,Ratio:Nv,Receipt:Kv,ReceiptCent:_v,ReceiptEuro:Wv,ReceiptIndianRupee:Gv,ReceiptJapaneseYen:Uv,ReceiptPoundSterling:Yv,ReceiptRussianRuble:$v,ReceiptSwissFranc:Zv,ReceiptText:Xv,RectangleEllipsis:ca,RectangleGoggles:Jv,RectangleHorizontal:Qv,RectangleVertical:e5,Recycle:t5,Redo:o5,Redo2:i5,RedoDot:a5,RefreshCcw:s5,RefreshCcwDot:n5,RefreshCw:l5,RefreshCwOff:r5,Refrigerator:c5,Regex:h5,RemoveFormatting:d5,Repeat:y5,Repeat1:u5,Repeat2:p5,Replace:m5,ReplaceAll:f5,Reply:k5,ReplyAll:g5,Rewind:v5,Ribbon:b5,Rocket:w5,RockingChair:M5,RollerCoaster:C5,Rotate3d:da,RotateCcw:E5,RotateCcwKey:x5,RotateCcwSquare:L5,RotateCw:I5,RotateCwSquare:S5,Route:z5,RouteOff:T5,Router:D5,Rows2:ua,Rows3:pa,Rows4:R5,Rss:H5,Ruler:V5,RulerDimensionLine:A5,RussianRuble:P5,Sailboat:q5,Salad:B5,Sandwich:F5,Satellite:j5,SatelliteDish:O5,SaudiRiyal:N5,Save:U5,SaveAll:_5,SaveOff:W5,Scale:G5,Scale3d:ya,Scaling:$5,Scan:tb,ScanBarcode:Y5,ScanEye:X5,ScanFace:Z5,ScanHeart:K5,ScanLine:Q5,ScanQrCode:J5,ScanSearch:eb,ScanText:ib,School:ab,Scissors:nb,ScissorsLineDashed:ob,ScreenShare:rb,ScreenShareOff:sb,Scroll:hb,ScrollText:lb,Search:yb,SearchCheck:cb,SearchCode:db,SearchSlash:ub,SearchX:pb,Section:fb,Send:kb,SendHorizontal:fa,SendToBack:mb,SeparatorHorizontal:gb,SeparatorVertical:bb,Server:Cb,ServerCog:vb,ServerCrash:wb,ServerOff:Mb,Settings:Lb,Settings2:xb,Shapes:Eb,Share:Ib,Share2:Sb,Sheet:Tb,Shell:Db,Shield:jb,ShieldAlert:zb,ShieldBan:Rb,ShieldCheck:Hb,ShieldEllipsis:Ab,ShieldHalf:Vb,ShieldMinus:Pb,ShieldOff:qb,ShieldPlus:Bb,ShieldQuestion:Fb,ShieldUser:Ob,ShieldX:ma,Ship:Nb,ShipWheel:Wb,Shirt:_b,ShoppingBag:Ub,ShoppingBasket:Gb,ShoppingCart:$b,Shovel:Yb,ShowerHead:Zb,Shredder:Xb,Shrimp:Kb,Shrink:Jb,Shrub:Qb,Shuffle:ew,Sigma:tw,Signal:sw,SignalHigh:iw,SignalLow:aw,SignalMedium:ow,SignalZero:nw,Signature:rw,Signpost:hw,SignpostBig:lw,Siren:cw,SkipBack:dw,SkipForward:uw,Skull:pw,Slack:yw,Slash:fw,Slice:gw,SlidersHorizontal:mw,SlidersVertical:ga,Smartphone:bw,SmartphoneCharging:kw,SmartphoneNfc:vw,Smile:Mw,SmilePlus:ww,Snail:Cw,Snowflake:xw,SoapDispenserDroplet:Lw,Sofa:Ew,Soup:Sw,Space:Iw,Spade:Tw,Sparkle:Dw,Sparkles:ka,Speaker:zw,Speech:Rw,SpellCheck:Aw,SpellCheck2:Hw,Spline:Pw,SplinePointer:Vw,Split:Bw,SprayCan:qw,Sprout:Fw,Square:$w,SquareActivity:va,SquareArrowDown:Ma,SquareArrowDownLeft:ba,SquareArrowDownRight:wa,SquareArrowLeft:Ca,SquareArrowOutDownLeft:xa,SquareArrowOutDownRight:La,SquareArrowOutUpLeft:Ea,SquareArrowOutUpRight:Sa,SquareArrowRight:Ia,SquareArrowUp:za,SquareArrowUpLeft:Da,SquareArrowUpRight:Ta,SquareAsterisk:Ra,SquareBottomDashedScissors:Ha,SquareChartGantt:Te,SquareCheck:Va,SquareCheckBig:Aa,SquareChevronDown:Pa,SquareChevronLeft:qa,SquareChevronRight:Ba,SquareChevronUp:Fa,SquareCode:Oa,SquareDashed:_a,SquareDashedBottom:jw,SquareDashedBottomCode:Ow,SquareDashedKanban:ja,SquareDashedMousePointer:Na,SquareDashedTopSolid:Nw,SquareDivide:Wa,SquareDot:Ua,SquareEqual:Ga,SquareFunction:$a,SquareKanban:Ya,SquareLibrary:Za,SquareM:Xa,SquareMenu:Ka,SquareMinus:Ja,SquareMousePointer:Qa,SquareParking:to,SquareParkingOff:eo,SquarePen:pe,SquarePercent:io,SquarePi:ao,SquarePilcrow:oo,SquarePlay:no,SquarePlus:so,SquarePower:ro,SquareRadical:_w,SquareRoundCorner:Ww,SquareScissors:lo,SquareSigma:ho,SquareSlash:uo,SquareSplitHorizontal:co,SquareSplitVertical:po,SquareSquare:Uw,SquareStack:Gw,SquareTerminal:yo,SquareUser:mo,SquareUserRound:fo,SquareX:go,SquaresExclude:Zw,SquaresIntersect:Yw,SquaresSubtract:Xw,SquaresUnite:Kw,Squircle:Jw,Squirrel:Qw,Stamp:e6,Star:a6,StarHalf:t6,StarOff:i6,StepBack:o6,StepForward:n6,Stethoscope:s6,Sticker:r6,StickyNote:l6,Store:h6,StretchHorizontal:c6,StretchVertical:d6,Strikethrough:u6,Subscript:p6,Sun:k6,SunDim:f6,SunMedium:y6,SunMoon:m6,SunSnow:g6,Sunrise:v6,Sunset:b6,Superscript:w6,SwatchBook:M6,SwissFranc:C6,SwitchCamera:x6,Sword:L6,Swords:E6,Syringe:S6,Table:V6,Table2:I6,TableCellsMerge:T6,TableCellsSplit:D6,TableColumnsSplit:z6,TableOfContents:R6,TableProperties:H6,TableRowsSplit:A6,Tablet:q6,TabletSmartphone:P6,Tablets:B6,Tag:F6,Tags:O6,Tally1:j6,Tally2:N6,Tally3:_6,Tally4:W6,Tally5:U6,Tangent:G6,Target:$6,Telescope:Y6,Tent:X6,TentTree:Z6,Terminal:K6,TestTube:J6,TestTubeDiagonal:ko,TestTubes:Q6,Text:o8,TextCursor:t8,TextCursorInput:e8,TextQuote:i8,TextSearch:a8,TextSelect:vo,Theater:n8,Thermometer:l8,ThermometerSnowflake:s8,ThermometerSun:r8,ThumbsDown:h8,ThumbsUp:c8,Ticket:g8,TicketCheck:d8,TicketMinus:u8,TicketPercent:p8,TicketPlus:y8,TicketSlash:f8,TicketX:m8,Tickets:b8,TicketsPlane:k8,Timer:M8,TimerOff:v8,TimerReset:w8,ToggleLeft:C8,ToggleRight:x8,Toilet:L8,Tornado:E8,Torus:S8,Touchpad:T8,TouchpadOff:I8,TowerControl:D8,ToyBrick:z8,Tractor:R8,TrafficCone:H8,TrainFront:V8,TrainFrontTunnel:A8,TrainTrack:P8,TramFront:bo,Transgender:q8,Trash:F8,Trash2:B8,TreeDeciduous:O8,TreePalm:wo,TreePine:j8,Trees:N8,Trello:_8,TrendingDown:W8,TrendingUp:G8,TrendingUpDown:U8,Triangle:Z8,TriangleAlert:Mo,TriangleDashed:$8,TriangleRight:Y8,Trophy:X8,Truck:K8,TruckElectric:J8,Turtle:Q8,Tv:tM,TvMinimal:Co,TvMinimalPlay:eM,Twitch:iM,Twitter:aM,Type:nM,TypeOutline:oM,Umbrella:rM,UmbrellaOff:sM,Underline:lM,Undo:dM,Undo2:cM,UndoDot:hM,UnfoldHorizontal:uM,UnfoldVertical:pM,Ungroup:yM,University:xo,Unlink:mM,Unlink2:fM,Unplug:gM,Upload:kM,Usb:vM,User:DM,UserCheck:bM,UserCog:wM,UserLock:MM,UserMinus:CM,UserPen:xM,UserPlus:LM,UserRound:Do,UserRoundCheck:Lo,UserRoundCog:Eo,UserRoundMinus:So,UserRoundPen:EM,UserRoundPlus:Io,UserRoundSearch:SM,UserRoundX:To,UserSearch:IM,UserX:TM,Users:zM,UsersRound:zo,Utensils:Ho,UtensilsCrossed:Ro,UtilityPole:RM,Variable:HM,Vault:AM,Vegan:VM,VenetianMask:PM,Venus:BM,VenusAndMars:qM,Vibrate:OM,VibrateOff:FM,Video:_M,VideoOff:jM,Videotape:NM,View:WM,Voicemail:UM,Volleyball:GM,Volume:XM,Volume1:$M,Volume2:YM,VolumeOff:ZM,VolumeX:KM,Vote:JM,Wallet:e7,WalletCards:QM,WalletMinimal:Ao,Wallpaper:t7,Wand:i7,WandSparkles:Vo,Warehouse:a7,WashingMachine:o7,Watch:n7,Waves:r7,WavesLadder:s7,Waypoints:l7,Webcam:h7,Webhook:c7,WebhookOff:d7,Weight:u7,Wheat:p7,WheatOff:y7,WholeWord:m7,Wifi:b7,WifiHigh:f7,WifiLow:g7,WifiOff:k7,WifiPen:v7,WifiZero:w7,Wind:C7,WindArrowDown:M7,Wine:L7,WineOff:x7,Workflow:E7,Worm:S7,WrapText:I7,Wrench:T7,X:D7,Youtube:z7,Zap:H7,ZapOff:R7,ZoomIn:A7,ZoomOut:V7},Symbol.toStringTag,{value:"Module"}));/**
|
|
8019
|
+
*/const ET=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Un,AArrowUp:$n,ALargeSmall:Gn,Accessibility:Yn,Activity:Zn,AirVent:Kn,Airplay:Xn,AlarmClock:Qn,AlarmClockCheck:tt,AlarmClockMinus:it,AlarmClockOff:Jn,AlarmClockPlus:at,AlarmSmoke:es,Album:ts,AlignCenter:os,AlignCenterHorizontal:is,AlignCenterVertical:as,AlignEndHorizontal:ns,AlignEndVertical:ss,AlignHorizontalDistributeCenter:rs,AlignHorizontalDistributeEnd:ls,AlignHorizontalDistributeStart:hs,AlignHorizontalJustifyCenter:cs,AlignHorizontalJustifyEnd:ds,AlignHorizontalJustifyStart:us,AlignHorizontalSpaceAround:ps,AlignHorizontalSpaceBetween:ys,AlignJustify:fs,AlignLeft:ms,AlignRight:ks,AlignStartHorizontal:gs,AlignStartVertical:vs,AlignVerticalDistributeCenter:bs,AlignVerticalDistributeEnd:ws,AlignVerticalDistributeStart:Ms,AlignVerticalJustifyCenter:Cs,AlignVerticalJustifyEnd:xs,AlignVerticalJustifyStart:Ls,AlignVerticalSpaceAround:Es,AlignVerticalSpaceBetween:Ss,Ambulance:Is,Ampersand:Ts,Ampersands:Ds,Amphora:zs,Anchor:Hs,Angry:Rs,Annoyed:As,Antenna:Vs,Anvil:Ps,Aperture:qs,AppWindow:Fs,AppWindowMac:Bs,Apple:Os,Archive:_s,ArchiveRestore:js,ArchiveX:Ns,Armchair:Us,ArrowBigDown:$s,ArrowBigDownDash:Ws,ArrowBigLeft:Ys,ArrowBigLeftDash:Gs,ArrowBigRight:Xs,ArrowBigRightDash:Zs,ArrowBigUp:Js,ArrowBigUpDash:Ks,ArrowDown:lr,ArrowDown01:Qs,ArrowDown10:er,ArrowDownAZ:ot,ArrowDownFromLine:tr,ArrowDownLeft:ir,ArrowDownNarrowWide:ar,ArrowDownRight:or,ArrowDownToDot:nr,ArrowDownToLine:rr,ArrowDownUp:sr,ArrowDownWideNarrow:nt,ArrowDownZA:st,ArrowLeft:ur,ArrowLeftFromLine:hr,ArrowLeftRight:cr,ArrowLeftToLine:dr,ArrowRight:mr,ArrowRightFromLine:pr,ArrowRightLeft:yr,ArrowRightToLine:fr,ArrowUp:Er,ArrowUp01:gr,ArrowUp10:vr,ArrowUpAZ:rt,ArrowUpDown:kr,ArrowUpFromDot:br,ArrowUpFromLine:wr,ArrowUpLeft:Mr,ArrowUpNarrowWide:lt,ArrowUpRight:Cr,ArrowUpToLine:xr,ArrowUpWideNarrow:Lr,ArrowUpZA:ht,ArrowsUpFromLine:Sr,Asterisk:Ir,AtSign:Tr,Atom:Dr,AudioLines:zr,AudioWaveform:Rr,Award:Hr,Axe:Ar,Axis3d:ct,Baby:Vr,Backpack:Pr,Badge:Jr,BadgeAlert:qr,BadgeCent:Br,BadgeCheck:dt,BadgeDollarSign:Fr,BadgeEuro:Or,BadgeHelp:jr,BadgeIndianRupee:Nr,BadgeInfo:_r,BadgeJapaneseYen:Wr,BadgeMinus:Ur,BadgePercent:$r,BadgePlus:Gr,BadgePoundSterling:Yr,BadgeRussianRuble:Zr,BadgeSwissFranc:Xr,BadgeX:Kr,BaggageClaim:Qr,Ban:el,Banana:tl,Bandage:il,Banknote:sl,BanknoteArrowDown:al,BanknoteArrowUp:ol,BanknoteX:nl,Barcode:rl,Baseline:ll,Bath:hl,Battery:ml,BatteryCharging:cl,BatteryFull:dl,BatteryLow:ul,BatteryMedium:pl,BatteryPlus:yl,BatteryWarning:fl,Beaker:gl,Bean:vl,BeanOff:kl,Bed:Ml,BedDouble:bl,BedSingle:wl,Beef:xl,Beer:Ll,BeerOff:Cl,Bell:Rl,BellDot:El,BellElectric:Sl,BellMinus:Il,BellOff:Tl,BellPlus:Dl,BellRing:zl,BetweenHorizontalEnd:ut,BetweenHorizontalStart:pt,BetweenVerticalEnd:Hl,BetweenVerticalStart:Al,BicepsFlexed:Vl,Bike:Pl,Binary:ql,Binoculars:Bl,Biohazard:Fl,Bird:Ol,Bitcoin:jl,Blend:Nl,Blinds:_l,Blocks:Wl,Bluetooth:Yl,BluetoothConnected:Ul,BluetoothOff:$l,BluetoothSearching:Gl,Bold:Zl,Bolt:Xl,Bomb:Kl,Bone:Jl,Book:w1,BookA:Ql,BookAudio:e1,BookCheck:t1,BookCopy:i1,BookDashed:yt,BookDown:o1,BookHeadphones:a1,BookHeart:n1,BookImage:s1,BookKey:r1,BookLock:l1,BookMarked:h1,BookMinus:c1,BookOpen:p1,BookOpenCheck:u1,BookOpenText:d1,BookPlus:y1,BookText:f1,BookType:m1,BookUp:k1,BookUp2:g1,BookUser:v1,BookX:b1,Bookmark:E1,BookmarkCheck:M1,BookmarkMinus:C1,BookmarkPlus:x1,BookmarkX:L1,BoomBox:S1,Bot:D1,BotMessageSquare:I1,BotOff:T1,BowArrow:z1,Box:R1,Boxes:H1,Braces:ft,Brackets:A1,Brain:q1,BrainCircuit:V1,BrainCog:P1,BrickWall:F1,BrickWallFire:B1,Briefcase:_1,BriefcaseBusiness:O1,BriefcaseConveyorBelt:j1,BriefcaseMedical:N1,BringToFront:W1,Brush:$1,BrushCleaning:U1,Bubbles:G1,Bug:X1,BugOff:Y1,BugPlay:Z1,Building:J1,Building2:K1,Bus:eh,BusFront:Q1,Cable:ih,CableCar:th,Cake:oh,CakeSlice:ah,Calculator:nh,Calendar:Eh,Calendar1:sh,CalendarArrowDown:rh,CalendarArrowUp:lh,CalendarCheck:ch,CalendarCheck2:hh,CalendarClock:dh,CalendarCog:uh,CalendarDays:ph,CalendarFold:yh,CalendarHeart:fh,CalendarMinus:gh,CalendarMinus2:mh,CalendarOff:kh,CalendarPlus:bh,CalendarPlus2:vh,CalendarRange:wh,CalendarSearch:Mh,CalendarSync:Ch,CalendarX:Lh,CalendarX2:xh,Camera:Ih,CameraOff:Sh,Candy:zh,CandyCane:Th,CandyOff:Dh,Cannabis:Rh,Captions:mt,CaptionsOff:Hh,Car:Ph,CarFront:Ah,CarTaxiFront:Vh,Caravan:qh,Carrot:Bh,CaseLower:Fh,CaseSensitive:Oh,CaseUpper:jh,CassetteTape:Nh,Cast:_h,Castle:Wh,Cat:Uh,Cctv:$h,ChartArea:gt,ChartBar:vt,ChartBarBig:kt,ChartBarDecreasing:Gh,ChartBarIncreasing:Yh,ChartBarStacked:Zh,ChartCandlestick:bt,ChartColumn:Ct,ChartColumnBig:wt,ChartColumnDecreasing:Xh,ChartColumnIncreasing:Mt,ChartColumnStacked:Kh,ChartGantt:Jh,ChartLine:xt,ChartNetwork:Qh,ChartNoAxesColumn:Et,ChartNoAxesColumnDecreasing:ec,ChartNoAxesColumnIncreasing:Lt,ChartNoAxesCombined:tc,ChartNoAxesGantt:St,ChartPie:It,ChartScatter:Tt,ChartSpline:ic,Check:nc,CheckCheck:ac,CheckLine:oc,ChefHat:sc,Cherry:rc,ChevronDown:lc,ChevronFirst:hc,ChevronLast:dc,ChevronLeft:cc,ChevronRight:uc,ChevronUp:pc,ChevronsDown:fc,ChevronsDownUp:yc,ChevronsLeft:kc,ChevronsLeftRight:gc,ChevronsLeftRightEllipsis:mc,ChevronsRight:bc,ChevronsRightLeft:vc,ChevronsUp:Mc,ChevronsUpDown:wc,Chrome:Cc,Church:xc,Cigarette:Ec,CigaretteOff:Lc,Circle:Bc,CircleAlert:zt,CircleArrowDown:Dt,CircleArrowLeft:Rt,CircleArrowOutDownLeft:Ht,CircleArrowOutDownRight:At,CircleArrowOutUpLeft:Vt,CircleArrowOutUpRight:Pt,CircleArrowRight:qt,CircleArrowUp:Bt,CircleCheck:Ot,CircleCheckBig:Ft,CircleChevronDown:jt,CircleChevronLeft:Nt,CircleChevronRight:_t,CircleChevronUp:Wt,CircleDashed:Sc,CircleDivide:Ut,CircleDollarSign:Ic,CircleDot:Dc,CircleDotDashed:Tc,CircleEllipsis:zc,CircleEqual:Rc,CircleFadingArrowUp:Hc,CircleFadingPlus:Ac,CircleGauge:$t,CircleHelp:Gt,CircleMinus:Yt,CircleOff:Vc,CircleParking:Xt,CircleParkingOff:Zt,CirclePause:Kt,CirclePercent:Jt,CirclePlay:Qt,CirclePlus:ei,CirclePower:ti,CircleSlash:Pc,CircleSlash2:ii,CircleSmall:qc,CircleStop:ai,CircleUser:ni,CircleUserRound:oi,CircleX:si,CircuitBoard:Fc,Citrus:Oc,Clapperboard:jc,Clipboard:Xc,ClipboardCheck:Nc,ClipboardCopy:_c,ClipboardList:Wc,ClipboardMinus:Uc,ClipboardPaste:$c,ClipboardPen:li,ClipboardPenLine:ri,ClipboardPlus:Gc,ClipboardType:Yc,ClipboardX:Zc,Clock:yd,Clock1:Kc,Clock10:Jc,Clock11:Qc,Clock12:ed,Clock2:td,Clock3:id,Clock4:ad,Clock5:od,Clock6:nd,Clock7:sd,Clock8:rd,Clock9:ld,ClockAlert:hd,ClockArrowDown:cd,ClockArrowUp:dd,ClockFading:ud,ClockPlus:pd,Cloud:Td,CloudAlert:fd,CloudCog:md,CloudDownload:hi,CloudDrizzle:gd,CloudFog:vd,CloudHail:kd,CloudLightning:bd,CloudMoon:Md,CloudMoonRain:wd,CloudOff:Cd,CloudRain:Ld,CloudRainWind:xd,CloudSnow:Ed,CloudSun:Id,CloudSunRain:Sd,CloudUpload:ci,Cloudy:Dd,Clover:zd,Club:Rd,Code:Hd,CodeXml:di,Codepen:Ad,Codesandbox:Vd,Coffee:Pd,Cog:qd,Coins:Bd,Columns2:ui,Columns3:pi,Columns3Cog:Ie,Columns4:Fd,Combine:jd,Command:Od,Compass:Nd,Component:_d,Computer:Wd,ConciergeBell:Ud,Cone:Gd,Construction:$d,Contact:Yd,ContactRound:yi,Container:Zd,Contrast:Xd,Cookie:Kd,CookingPot:Jd,Copy:o2,CopyCheck:e2,CopyMinus:Qd,CopyPlus:t2,CopySlash:i2,CopyX:a2,Copyleft:n2,Copyright:s2,CornerDownLeft:r2,CornerDownRight:l2,CornerLeftDown:h2,CornerLeftUp:c2,CornerRightDown:d2,CornerRightUp:u2,CornerUpLeft:p2,CornerUpRight:y2,Cpu:f2,CreativeCommons:m2,CreditCard:g2,Croissant:k2,Crop:v2,Cross:b2,Crosshair:w2,Crown:M2,Cuboid:C2,CupSoda:x2,Currency:L2,Cylinder:E2,Dam:S2,Database:D2,DatabaseBackup:I2,DatabaseZap:T2,DecimalsArrowLeft:z2,DecimalsArrowRight:R2,Delete:H2,Dessert:V2,Diameter:A2,Diamond:B2,DiamondMinus:P2,DiamondPercent:fi,DiamondPlus:q2,Dice1:F2,Dice2:O2,Dice3:j2,Dice4:N2,Dice5:_2,Dice6:W2,Dices:U2,Diff:$2,Disc:X2,Disc2:G2,Disc3:Y2,DiscAlbum:Z2,Divide:K2,Dna:J2,DnaOff:Q2,Dock:eu,Dog:tu,DollarSign:iu,Donut:au,DoorClosed:nu,DoorClosedLocked:ou,DoorOpen:su,Dot:ru,Download:lu,DraftingCompass:hu,Drama:cu,Dribbble:du,Drill:uu,Droplet:yu,DropletOff:pu,Droplets:fu,Drum:mu,Drumstick:gu,Dumbbell:ku,Ear:bu,EarOff:vu,Earth:mi,EarthLock:Mu,Eclipse:wu,Egg:Lu,EggFried:Cu,EggOff:xu,Ellipsis:ki,EllipsisVertical:gi,Equal:Iu,EqualApproximately:Eu,EqualNot:Su,Eraser:Tu,EthernetPort:Du,Euro:zu,Expand:Ru,ExternalLink:Hu,Eye:Pu,EyeClosed:Au,EyeOff:Vu,Facebook:qu,Factory:Bu,Fan:Fu,FastForward:Ou,Feather:ju,Fence:Wu,FerrisWheel:Nu,Figma:_u,File:j0,FileArchive:Uu,FileAudio:Gu,FileAudio2:$u,FileAxis3d:vi,FileBadge:Zu,FileBadge2:Yu,FileBox:Xu,FileChartColumn:wi,FileChartColumnIncreasing:bi,FileChartLine:Mi,FileChartPie:Ci,FileCheck:Ju,FileCheck2:Ku,FileClock:Qu,FileCode:t0,FileCode2:e0,FileCog:xi,FileDiff:i0,FileDigit:a0,FileDown:o0,FileHeart:n0,FileImage:s0,FileInput:r0,FileJson:h0,FileJson2:l0,FileKey:d0,FileKey2:c0,FileLock:p0,FileLock2:u0,FileMinus:y0,FileMinus2:f0,FileMusic:m0,FileOutput:g0,FilePen:Ei,FilePenLine:Li,FilePlus:b0,FilePlus2:k0,FileQuestion:v0,FileScan:w0,FileSearch:C0,FileSearch2:M0,FileSliders:x0,FileSpreadsheet:L0,FileStack:E0,FileSymlink:S0,FileTerminal:I0,FileText:T0,FileType:z0,FileType2:D0,FileUp:R0,FileUser:H0,FileVideo:V0,FileVideo2:A0,FileVolume:B0,FileVolume2:P0,FileWarning:q0,FileX:O0,FileX2:F0,Files:_0,Film:N0,Fingerprint:W0,FireExtinguisher:U0,Fish:Y0,FishOff:$0,FishSymbol:G0,Flag:J0,FlagOff:Z0,FlagTriangleLeft:X0,FlagTriangleRight:K0,Flame:ep,FlameKindling:Q0,Flashlight:ap,FlashlightOff:tp,FlaskConical:op,FlaskConicalOff:ip,FlaskRound:np,FlipHorizontal:rp,FlipHorizontal2:sp,FlipVertical:lp,FlipVertical2:hp,Flower:dp,Flower2:cp,Focus:up,FoldHorizontal:pp,FoldVertical:yp,Folder:Np,FolderArchive:fp,FolderCheck:mp,FolderClock:kp,FolderClosed:gp,FolderCode:vp,FolderCog:Si,FolderDot:bp,FolderDown:wp,FolderGit:Cp,FolderGit2:Mp,FolderHeart:xp,FolderInput:Lp,FolderKanban:Ep,FolderKey:Sp,FolderLock:Ip,FolderMinus:Dp,FolderOpen:zp,FolderOpenDot:Tp,FolderOutput:Hp,FolderPen:Ii,FolderPlus:Rp,FolderRoot:Ap,FolderSearch:Pp,FolderSearch2:Vp,FolderSymlink:Bp,FolderSync:qp,FolderTree:Fp,FolderUp:Op,FolderX:jp,Folders:_p,Footprints:Wp,Forklift:Up,Forward:Gp,Frame:$p,Framer:Yp,Frown:Zp,Fuel:Kp,Fullscreen:Xp,Funnel:Di,FunnelPlus:Jp,FunnelX:Ti,GalleryHorizontal:ty,GalleryHorizontalEnd:Qp,GalleryThumbnails:ey,GalleryVertical:ay,GalleryVerticalEnd:iy,Gamepad:oy,Gamepad2:ny,Gauge:sy,Gavel:ry,Gem:ly,Ghost:hy,Gift:cy,GitBranch:uy,GitBranchPlus:dy,GitCommitHorizontal:zi,GitCommitVertical:py,GitCompare:fy,GitCompareArrows:yy,GitFork:my,GitGraph:gy,GitMerge:ky,GitPullRequest:xy,GitPullRequestArrow:vy,GitPullRequestClosed:by,GitPullRequestCreate:Cy,GitPullRequestCreateArrow:wy,GitPullRequestDraft:My,Github:Ly,Gitlab:Ey,GlassWater:Sy,Glasses:Iy,Globe:zy,GlobeLock:Ty,Goal:Dy,Gpu:Ry,Grab:Hy,GraduationCap:Ay,Grape:Vy,Grid2x2:Vi,Grid2x2Check:Ri,Grid2x2Plus:Hi,Grid2x2X:Ai,Grid3x3:Te,Grip:By,GripHorizontal:Py,GripVertical:qy,Group:Fy,Guitar:Oy,Ham:jy,Hamburger:Ny,Hammer:_y,Hand:Yy,HandCoins:Wy,HandHeart:Uy,HandHelping:Pi,HandMetal:$y,HandPlatter:Gy,Handshake:Xy,HardDrive:Jy,HardDriveDownload:Zy,HardDriveUpload:Ky,HardHat:Qy,Hash:ef,Haze:tf,HdmiPort:af,Heading:cf,Heading1:of,Heading2:nf,Heading3:sf,Heading4:hf,Heading5:rf,Heading6:lf,HeadphoneOff:df,Headphones:uf,Headset:pf,Heart:vf,HeartCrack:yf,HeartHandshake:ff,HeartMinus:mf,HeartOff:gf,HeartPlus:kf,HeartPulse:bf,Heater:wf,Hexagon:Mf,Highlighter:Cf,History:xf,Hop:Ef,HopOff:Lf,Hospital:Sf,Hotel:If,Hourglass:Tf,House:qi,HousePlug:Df,HousePlus:zf,HouseWifi:Rf,IceCreamBowl:Bi,IceCreamCone:Fi,IdCard:Hf,Image:jf,ImageDown:Af,ImageMinus:Vf,ImageOff:qf,ImagePlay:Pf,ImagePlus:Bf,ImageUp:Of,ImageUpscale:Ff,Images:Nf,Import:Wf,Inbox:_f,IndentDecrease:Oi,IndentIncrease:ji,IndianRupee:Uf,Infinity:$f,Info:Gf,InspectionPanel:Xf,Instagram:Yf,Italic:Zf,IterationCcw:Kf,IterationCw:Jf,JapaneseYen:Qf,Joystick:em,Kanban:tm,Key:om,KeyRound:am,KeySquare:im,Keyboard:rm,KeyboardMusic:nm,KeyboardOff:sm,Lamp:pm,LampCeiling:lm,LampDesk:cm,LampFloor:hm,LampWallDown:dm,LampWallUp:um,LandPlot:ym,Landmark:fm,Languages:mm,Laptop:km,LaptopMinimal:Ni,LaptopMinimalCheck:gm,Lasso:vm,LassoSelect:wm,Laugh:bm,Layers:_i,Layers2:Mm,LayoutDashboard:Cm,LayoutGrid:xm,LayoutList:Lm,LayoutPanelLeft:Em,LayoutPanelTop:Sm,LayoutTemplate:Im,Leaf:Tm,LeafyGreen:zm,Lectern:Dm,LetterText:Rm,Library:Am,LibraryBig:Hm,LifeBuoy:Vm,Ligature:Pm,Lightbulb:Bm,LightbulbOff:qm,Link:jm,Link2:Om,Link2Off:Fm,Linkedin:Nm,List:ng,ListCheck:_m,ListChecks:Wm,ListCollapse:Um,ListEnd:$m,ListFilter:Zm,ListFilterPlus:Gm,ListMinus:Ym,ListMusic:Xm,ListOrdered:Km,ListPlus:Jm,ListRestart:Qm,ListStart:eg,ListTodo:tg,ListTree:ig,ListVideo:ag,ListX:og,Loader:rg,LoaderCircle:Wi,LoaderPinwheel:sg,Locate:cg,LocateFixed:lg,LocateOff:hg,LocationEdit:dg,Lock:pg,LockKeyhole:ug,LockKeyholeOpen:Ui,LockOpen:$i,LogIn:yg,LogOut:fg,Logs:mg,Lollipop:gg,Luggage:kg,Magnet:vg,Mail:Ig,MailCheck:bg,MailMinus:wg,MailOpen:Mg,MailPlus:Cg,MailQuestion:xg,MailSearch:Lg,MailWarning:Eg,MailX:Sg,Mailbox:Tg,Mails:Dg,Map:Wg,MapPin:jg,MapPinCheck:Rg,MapPinCheckInside:zg,MapPinHouse:Hg,MapPinMinus:Vg,MapPinMinusInside:Ag,MapPinOff:Pg,MapPinPlus:Bg,MapPinPlusInside:qg,MapPinX:Fg,MapPinXInside:Og,MapPinned:Ng,MapPlus:_g,Mars:$g,MarsStroke:Ug,Martini:Gg,Maximize:Yg,Maximize2:Zg,Medal:Xg,Megaphone:Jg,MegaphoneOff:Kg,Meh:Qg,MemoryStick:tk,Menu:ek,Merge:ik,MessageCircle:pk,MessageCircleCode:ak,MessageCircleDashed:ok,MessageCircleHeart:nk,MessageCircleMore:sk,MessageCircleOff:rk,MessageCirclePlus:lk,MessageCircleQuestion:hk,MessageCircleReply:ck,MessageCircleWarning:dk,MessageCircleX:uk,MessageSquare:Tk,MessageSquareCode:yk,MessageSquareDashed:fk,MessageSquareDiff:mk,MessageSquareDot:gk,MessageSquareHeart:kk,MessageSquareLock:vk,MessageSquareMore:bk,MessageSquareOff:wk,MessageSquarePlus:Mk,MessageSquareQuote:Ck,MessageSquareReply:xk,MessageSquareShare:Lk,MessageSquareText:Ek,MessageSquareWarning:Sk,MessageSquareX:Ik,MessagesSquare:Dk,Mic:Rk,MicOff:zk,MicVocal:Gi,Microchip:Hk,Microscope:Ak,Microwave:Vk,Milestone:Pk,Milk:Bk,MilkOff:qk,Minimize:Ok,Minimize2:Fk,Minus:jk,Monitor:e3,MonitorCheck:Nk,MonitorCog:Wk,MonitorDot:_k,MonitorDown:Uk,MonitorOff:$k,MonitorPause:Gk,MonitorPlay:Yk,MonitorSmartphone:Zk,MonitorSpeaker:Kk,MonitorStop:Xk,MonitorUp:Jk,MonitorX:Qk,Moon:i3,MoonStar:t3,Mountain:o3,MountainSnow:a3,Mouse:u3,MouseOff:n3,MousePointer:h3,MousePointer2:s3,MousePointerBan:r3,MousePointerClick:l3,Move:C3,Move3d:Yi,MoveDiagonal:d3,MoveDiagonal2:c3,MoveDown:f3,MoveDownLeft:p3,MoveDownRight:y3,MoveHorizontal:g3,MoveLeft:m3,MoveRight:k3,MoveUp:w3,MoveUpLeft:v3,MoveUpRight:b3,MoveVertical:M3,Music:S3,Music2:x3,Music3:L3,Music4:E3,Navigation:z3,Navigation2:T3,Navigation2Off:I3,NavigationOff:D3,Network:R3,Newspaper:H3,Nfc:A3,NonBinary:V3,Notebook:F3,NotebookPen:P3,NotebookTabs:q3,NotebookText:B3,NotepadText:j3,NotepadTextDashed:O3,Nut:_3,NutOff:N3,Octagon:U3,OctagonAlert:Zi,OctagonMinus:W3,OctagonPause:Ki,OctagonX:Xi,Omega:$3,Option:G3,Orbit:Z3,Origami:Y3,Package:a4,Package2:X3,PackageCheck:K3,PackageMinus:J3,PackageOpen:Q3,PackagePlus:e4,PackageSearch:t4,PackageX:i4,PaintBucket:o4,PaintRoller:n4,Paintbrush:s4,PaintbrushVertical:Ji,Palette:r4,Panda:l4,PanelBottom:d4,PanelBottomClose:h4,PanelBottomDashed:Qi,PanelBottomOpen:c4,PanelLeft:aa,PanelLeftClose:ea,PanelLeftDashed:ta,PanelLeftOpen:ia,PanelRight:f4,PanelRightClose:u4,PanelRightDashed:oa,PanelRightOpen:p4,PanelTop:g4,PanelTopClose:y4,PanelTopDashed:na,PanelTopOpen:m4,PanelsLeftBottom:k4,PanelsRightBottom:v4,PanelsTopLeft:sa,Paperclip:b4,Parentheses:w4,ParkingMeter:M4,PartyPopper:C4,Pause:x4,PawPrint:L4,PcCase:E4,Pen:la,PenLine:ra,PenOff:S4,PenTool:I4,Pencil:R4,PencilLine:D4,PencilOff:T4,PencilRuler:z4,Pentagon:H4,Percent:A4,PersonStanding:V4,PhilippinePeso:q4,Phone:_4,PhoneCall:P4,PhoneForwarded:B4,PhoneIncoming:F4,PhoneMissed:O4,PhoneOff:j4,PhoneOutgoing:N4,Pi:W4,Piano:U4,Pickaxe:$4,PictureInPicture:Y4,PictureInPicture2:G4,PiggyBank:Z4,Pilcrow:J4,PilcrowLeft:X4,PilcrowRight:K4,Pill:ev,PillBottle:Q4,Pin:iv,PinOff:tv,Pipette:av,Pizza:ov,Plane:rv,PlaneLanding:nv,PlaneTakeoff:sv,Play:lv,Plug:cv,Plug2:hv,PlugZap:ha,Plus:dv,Pocket:uv,PocketKnife:pv,Podcast:yv,Pointer:mv,PointerOff:fv,Popcorn:gv,Popsicle:kv,PoundSterling:vv,Power:wv,PowerOff:bv,Presentation:Mv,Printer:xv,PrinterCheck:Cv,Projector:Lv,Proportions:Ev,Puzzle:Sv,Pyramid:Iv,QrCode:Tv,Quote:zv,Rabbit:Dv,Radar:Rv,Radiation:Hv,Radical:Av,Radio:qv,RadioReceiver:Vv,RadioTower:Pv,Radius:Bv,RailSymbol:Fv,Rainbow:Ov,Rat:jv,Ratio:Nv,Receipt:Kv,ReceiptCent:_v,ReceiptEuro:Wv,ReceiptIndianRupee:$v,ReceiptJapaneseYen:Uv,ReceiptPoundSterling:Yv,ReceiptRussianRuble:Gv,ReceiptSwissFranc:Zv,ReceiptText:Xv,RectangleEllipsis:ca,RectangleGoggles:Jv,RectangleHorizontal:Qv,RectangleVertical:e5,Recycle:t5,Redo:o5,Redo2:i5,RedoDot:a5,RefreshCcw:s5,RefreshCcwDot:n5,RefreshCw:l5,RefreshCwOff:r5,Refrigerator:c5,Regex:h5,RemoveFormatting:d5,Repeat:y5,Repeat1:u5,Repeat2:p5,Replace:m5,ReplaceAll:f5,Reply:k5,ReplyAll:g5,Rewind:v5,Ribbon:b5,Rocket:w5,RockingChair:M5,RollerCoaster:C5,Rotate3d:da,RotateCcw:E5,RotateCcwKey:x5,RotateCcwSquare:L5,RotateCw:I5,RotateCwSquare:S5,Route:z5,RouteOff:T5,Router:D5,Rows2:ua,Rows3:pa,Rows4:R5,Rss:H5,Ruler:V5,RulerDimensionLine:A5,RussianRuble:P5,Sailboat:q5,Salad:B5,Sandwich:F5,Satellite:j5,SatelliteDish:O5,SaudiRiyal:N5,Save:U5,SaveAll:_5,SaveOff:W5,Scale:$5,Scale3d:ya,Scaling:G5,Scan:tb,ScanBarcode:Y5,ScanEye:X5,ScanFace:Z5,ScanHeart:K5,ScanLine:Q5,ScanQrCode:J5,ScanSearch:eb,ScanText:ib,School:ab,Scissors:nb,ScissorsLineDashed:ob,ScreenShare:rb,ScreenShareOff:sb,Scroll:hb,ScrollText:lb,Search:yb,SearchCheck:cb,SearchCode:db,SearchSlash:ub,SearchX:pb,Section:fb,Send:kb,SendHorizontal:fa,SendToBack:mb,SeparatorHorizontal:gb,SeparatorVertical:bb,Server:Cb,ServerCog:vb,ServerCrash:wb,ServerOff:Mb,Settings:Lb,Settings2:xb,Shapes:Eb,Share:Ib,Share2:Sb,Sheet:Tb,Shell:Db,Shield:jb,ShieldAlert:zb,ShieldBan:Rb,ShieldCheck:Hb,ShieldEllipsis:Ab,ShieldHalf:Vb,ShieldMinus:Pb,ShieldOff:qb,ShieldPlus:Bb,ShieldQuestion:Fb,ShieldUser:Ob,ShieldX:ma,Ship:Nb,ShipWheel:Wb,Shirt:_b,ShoppingBag:Ub,ShoppingBasket:$b,ShoppingCart:Gb,Shovel:Yb,ShowerHead:Zb,Shredder:Xb,Shrimp:Kb,Shrink:Jb,Shrub:Qb,Shuffle:ew,Sigma:tw,Signal:sw,SignalHigh:iw,SignalLow:aw,SignalMedium:ow,SignalZero:nw,Signature:rw,Signpost:hw,SignpostBig:lw,Siren:cw,SkipBack:dw,SkipForward:uw,Skull:pw,Slack:yw,Slash:fw,Slice:gw,SlidersHorizontal:mw,SlidersVertical:ga,Smartphone:bw,SmartphoneCharging:kw,SmartphoneNfc:vw,Smile:Mw,SmilePlus:ww,Snail:Cw,Snowflake:xw,SoapDispenserDroplet:Lw,Sofa:Ew,Soup:Sw,Space:Iw,Spade:Tw,Sparkle:Dw,Sparkles:ka,Speaker:zw,Speech:Rw,SpellCheck:Aw,SpellCheck2:Hw,Spline:Pw,SplinePointer:Vw,Split:Bw,SprayCan:qw,Sprout:Fw,Square:Gw,SquareActivity:va,SquareArrowDown:Ma,SquareArrowDownLeft:ba,SquareArrowDownRight:wa,SquareArrowLeft:Ca,SquareArrowOutDownLeft:xa,SquareArrowOutDownRight:La,SquareArrowOutUpLeft:Ea,SquareArrowOutUpRight:Sa,SquareArrowRight:Ia,SquareArrowUp:za,SquareArrowUpLeft:Da,SquareArrowUpRight:Ta,SquareAsterisk:Ra,SquareBottomDashedScissors:Ha,SquareChartGantt:De,SquareCheck:Va,SquareCheckBig:Aa,SquareChevronDown:Pa,SquareChevronLeft:qa,SquareChevronRight:Ba,SquareChevronUp:Fa,SquareCode:Oa,SquareDashed:_a,SquareDashedBottom:jw,SquareDashedBottomCode:Ow,SquareDashedKanban:ja,SquareDashedMousePointer:Na,SquareDashedTopSolid:Nw,SquareDivide:Wa,SquareDot:Ua,SquareEqual:$a,SquareFunction:Ga,SquareKanban:Ya,SquareLibrary:Za,SquareM:Xa,SquareMenu:Ka,SquareMinus:Ja,SquareMousePointer:Qa,SquareParking:to,SquareParkingOff:eo,SquarePen:ue,SquarePercent:io,SquarePi:ao,SquarePilcrow:oo,SquarePlay:no,SquarePlus:so,SquarePower:ro,SquareRadical:_w,SquareRoundCorner:Ww,SquareScissors:lo,SquareSigma:ho,SquareSlash:uo,SquareSplitHorizontal:co,SquareSplitVertical:po,SquareSquare:Uw,SquareStack:$w,SquareTerminal:yo,SquareUser:mo,SquareUserRound:fo,SquareX:go,SquaresExclude:Zw,SquaresIntersect:Yw,SquaresSubtract:Xw,SquaresUnite:Kw,Squircle:Jw,Squirrel:Qw,Stamp:e6,Star:a6,StarHalf:t6,StarOff:i6,StepBack:o6,StepForward:n6,Stethoscope:s6,Sticker:r6,StickyNote:l6,Store:h6,StretchHorizontal:c6,StretchVertical:d6,Strikethrough:u6,Subscript:p6,Sun:k6,SunDim:f6,SunMedium:y6,SunMoon:m6,SunSnow:g6,Sunrise:v6,Sunset:b6,Superscript:w6,SwatchBook:M6,SwissFranc:C6,SwitchCamera:x6,Sword:L6,Swords:E6,Syringe:S6,Table:V6,Table2:I6,TableCellsMerge:T6,TableCellsSplit:D6,TableColumnsSplit:z6,TableOfContents:R6,TableProperties:H6,TableRowsSplit:A6,Tablet:q6,TabletSmartphone:P6,Tablets:B6,Tag:F6,Tags:O6,Tally1:j6,Tally2:N6,Tally3:_6,Tally4:W6,Tally5:U6,Tangent:$6,Target:G6,Telescope:Y6,Tent:X6,TentTree:Z6,Terminal:K6,TestTube:J6,TestTubeDiagonal:ko,TestTubes:Q6,Text:o8,TextCursor:t8,TextCursorInput:e8,TextQuote:i8,TextSearch:a8,TextSelect:vo,Theater:n8,Thermometer:l8,ThermometerSnowflake:s8,ThermometerSun:r8,ThumbsDown:h8,ThumbsUp:c8,Ticket:g8,TicketCheck:d8,TicketMinus:u8,TicketPercent:p8,TicketPlus:y8,TicketSlash:f8,TicketX:m8,Tickets:b8,TicketsPlane:k8,Timer:M8,TimerOff:v8,TimerReset:w8,ToggleLeft:C8,ToggleRight:x8,Toilet:L8,Tornado:E8,Torus:S8,Touchpad:T8,TouchpadOff:I8,TowerControl:D8,ToyBrick:z8,Tractor:R8,TrafficCone:H8,TrainFront:V8,TrainFrontTunnel:A8,TrainTrack:P8,TramFront:bo,Transgender:q8,Trash:F8,Trash2:B8,TreeDeciduous:O8,TreePalm:wo,TreePine:j8,Trees:N8,Trello:_8,TrendingDown:W8,TrendingUp:$8,TrendingUpDown:U8,Triangle:Z8,TriangleAlert:Mo,TriangleDashed:G8,TriangleRight:Y8,Trophy:X8,Truck:K8,TruckElectric:J8,Turtle:Q8,Tv:tM,TvMinimal:Co,TvMinimalPlay:eM,Twitch:iM,Twitter:aM,Type:nM,TypeOutline:oM,Umbrella:rM,UmbrellaOff:sM,Underline:lM,Undo:dM,Undo2:cM,UndoDot:hM,UnfoldHorizontal:uM,UnfoldVertical:pM,Ungroup:yM,University:xo,Unlink:mM,Unlink2:fM,Unplug:gM,Upload:kM,Usb:vM,User:DM,UserCheck:bM,UserCog:wM,UserLock:MM,UserMinus:CM,UserPen:xM,UserPlus:LM,UserRound:Do,UserRoundCheck:Lo,UserRoundCog:Eo,UserRoundMinus:So,UserRoundPen:EM,UserRoundPlus:Io,UserRoundSearch:SM,UserRoundX:To,UserSearch:IM,UserX:TM,Users:zM,UsersRound:zo,Utensils:Ho,UtensilsCrossed:Ro,UtilityPole:RM,Variable:HM,Vault:AM,Vegan:VM,VenetianMask:PM,Venus:BM,VenusAndMars:qM,Vibrate:OM,VibrateOff:FM,Video:_M,VideoOff:jM,Videotape:NM,View:WM,Voicemail:UM,Volleyball:$M,Volume:XM,Volume1:GM,Volume2:YM,VolumeOff:ZM,VolumeX:KM,Vote:JM,Wallet:e7,WalletCards:QM,WalletMinimal:Ao,Wallpaper:t7,Wand:i7,WandSparkles:Vo,Warehouse:a7,WashingMachine:o7,Watch:n7,Waves:r7,WavesLadder:s7,Waypoints:l7,Webcam:h7,Webhook:c7,WebhookOff:d7,Weight:u7,Wheat:p7,WheatOff:y7,WholeWord:m7,Wifi:b7,WifiHigh:f7,WifiLow:g7,WifiOff:k7,WifiPen:v7,WifiZero:w7,Wind:C7,WindArrowDown:M7,Wine:L7,WineOff:x7,Workflow:E7,Worm:S7,WrapText:I7,Wrench:T7,X:D7,Youtube:z7,Zap:H7,ZapOff:R7,ZoomIn:A7,ZoomOut:V7},Symbol.toStringTag,{value:"Module"}));/**
|
|
8020
8020
|
* @license lucide-vue-next v0.511.0 - ISC
|
|
8021
8021
|
*
|
|
8022
8022
|
* This source code is licensed under the ISC license.
|
|
8023
8023
|
* See the LICENSE file in the root directory of this source tree.
|
|
8024
|
-
*/const ST=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Un,AArrowDownIcon:Un,AArrowUp:Gn,AArrowUpIcon:Gn,ALargeSmall:$n,ALargeSmallIcon:$n,Accessibility:Yn,AccessibilityIcon:Yn,Activity:Zn,ActivityIcon:Zn,ActivitySquare:va,ActivitySquareIcon:va,AirVent:Kn,AirVentIcon:Kn,Airplay:Xn,AirplayIcon:Xn,AlarmCheck:tt,AlarmCheckIcon:tt,AlarmClock:Qn,AlarmClockCheck:tt,AlarmClockCheckIcon:tt,AlarmClockIcon:Qn,AlarmClockMinus:it,AlarmClockMinusIcon:it,AlarmClockOff:Jn,AlarmClockOffIcon:Jn,AlarmClockPlus:at,AlarmClockPlusIcon:at,AlarmMinus:it,AlarmMinusIcon:it,AlarmPlus:at,AlarmPlusIcon:at,AlarmSmoke:es,AlarmSmokeIcon:es,Album:ts,AlbumIcon:ts,AlertCircle:zt,AlertCircleIcon:zt,AlertOctagon:Zi,AlertOctagonIcon:Zi,AlertTriangle:Mo,AlertTriangleIcon:Mo,AlignCenter:os,AlignCenterHorizontal:is,AlignCenterHorizontalIcon:is,AlignCenterIcon:os,AlignCenterVertical:as,AlignCenterVerticalIcon:as,AlignEndHorizontal:ns,AlignEndHorizontalIcon:ns,AlignEndVertical:ss,AlignEndVerticalIcon:ss,AlignHorizontalDistributeCenter:rs,AlignHorizontalDistributeCenterIcon:rs,AlignHorizontalDistributeEnd:ls,AlignHorizontalDistributeEndIcon:ls,AlignHorizontalDistributeStart:hs,AlignHorizontalDistributeStartIcon:hs,AlignHorizontalJustifyCenter:cs,AlignHorizontalJustifyCenterIcon:cs,AlignHorizontalJustifyEnd:ds,AlignHorizontalJustifyEndIcon:ds,AlignHorizontalJustifyStart:us,AlignHorizontalJustifyStartIcon:us,AlignHorizontalSpaceAround:ps,AlignHorizontalSpaceAroundIcon:ps,AlignHorizontalSpaceBetween:ys,AlignHorizontalSpaceBetweenIcon:ys,AlignJustify:fs,AlignJustifyIcon:fs,AlignLeft:ms,AlignLeftIcon:ms,AlignRight:ks,AlignRightIcon:ks,AlignStartHorizontal:gs,AlignStartHorizontalIcon:gs,AlignStartVertical:vs,AlignStartVerticalIcon:vs,AlignVerticalDistributeCenter:bs,AlignVerticalDistributeCenterIcon:bs,AlignVerticalDistributeEnd:ws,AlignVerticalDistributeEndIcon:ws,AlignVerticalDistributeStart:Ms,AlignVerticalDistributeStartIcon:Ms,AlignVerticalJustifyCenter:Cs,AlignVerticalJustifyCenterIcon:Cs,AlignVerticalJustifyEnd:xs,AlignVerticalJustifyEndIcon:xs,AlignVerticalJustifyStart:Ls,AlignVerticalJustifyStartIcon:Ls,AlignVerticalSpaceAround:Es,AlignVerticalSpaceAroundIcon:Es,AlignVerticalSpaceBetween:Ss,AlignVerticalSpaceBetweenIcon:Ss,Ambulance:Is,AmbulanceIcon:Is,Ampersand:Ts,AmpersandIcon:Ts,Ampersands:Ds,AmpersandsIcon:Ds,Amphora:zs,AmphoraIcon:zs,Anchor:Hs,AnchorIcon:Hs,Angry:Rs,AngryIcon:Rs,Annoyed:As,AnnoyedIcon:As,Antenna:Vs,AntennaIcon:Vs,Anvil:Ps,AnvilIcon:Ps,Aperture:qs,ApertureIcon:qs,AppWindow:Fs,AppWindowIcon:Fs,AppWindowMac:Bs,AppWindowMacIcon:Bs,Apple:Os,AppleIcon:Os,Archive:_s,ArchiveIcon:_s,ArchiveRestore:js,ArchiveRestoreIcon:js,ArchiveX:Ns,ArchiveXIcon:Ns,AreaChart:gt,AreaChartIcon:gt,Armchair:Us,ArmchairIcon:Us,ArrowBigDown:Gs,ArrowBigDownDash:Ws,ArrowBigDownDashIcon:Ws,ArrowBigDownIcon:Gs,ArrowBigLeft:Ys,ArrowBigLeftDash:$s,ArrowBigLeftDashIcon:$s,ArrowBigLeftIcon:Ys,ArrowBigRight:Xs,ArrowBigRightDash:Zs,ArrowBigRightDashIcon:Zs,ArrowBigRightIcon:Xs,ArrowBigUp:Js,ArrowBigUpDash:Ks,ArrowBigUpDashIcon:Ks,ArrowBigUpIcon:Js,ArrowDown:lr,ArrowDown01:Qs,ArrowDown01Icon:Qs,ArrowDown10:er,ArrowDown10Icon:er,ArrowDownAZ:ot,ArrowDownAZIcon:ot,ArrowDownAz:ot,ArrowDownAzIcon:ot,ArrowDownCircle:Dt,ArrowDownCircleIcon:Dt,ArrowDownFromLine:tr,ArrowDownFromLineIcon:tr,ArrowDownIcon:lr,ArrowDownLeft:ir,ArrowDownLeftFromCircle:Ht,ArrowDownLeftFromCircleIcon:Ht,ArrowDownLeftFromSquare:xa,ArrowDownLeftFromSquareIcon:xa,ArrowDownLeftIcon:ir,ArrowDownLeftSquare:ba,ArrowDownLeftSquareIcon:ba,ArrowDownNarrowWide:ar,ArrowDownNarrowWideIcon:ar,ArrowDownRight:or,ArrowDownRightFromCircle:At,ArrowDownRightFromCircleIcon:At,ArrowDownRightFromSquare:La,ArrowDownRightFromSquareIcon:La,ArrowDownRightIcon:or,ArrowDownRightSquare:wa,ArrowDownRightSquareIcon:wa,ArrowDownSquare:Ma,ArrowDownSquareIcon:Ma,ArrowDownToDot:nr,ArrowDownToDotIcon:nr,ArrowDownToLine:rr,ArrowDownToLineIcon:rr,ArrowDownUp:sr,ArrowDownUpIcon:sr,ArrowDownWideNarrow:nt,ArrowDownWideNarrowIcon:nt,ArrowDownZA:st,ArrowDownZAIcon:st,ArrowDownZa:st,ArrowDownZaIcon:st,ArrowLeft:ur,ArrowLeftCircle:Rt,ArrowLeftCircleIcon:Rt,ArrowLeftFromLine:hr,ArrowLeftFromLineIcon:hr,ArrowLeftIcon:ur,ArrowLeftRight:cr,ArrowLeftRightIcon:cr,ArrowLeftSquare:Ca,ArrowLeftSquareIcon:Ca,ArrowLeftToLine:dr,ArrowLeftToLineIcon:dr,ArrowRight:mr,ArrowRightCircle:qt,ArrowRightCircleIcon:qt,ArrowRightFromLine:pr,ArrowRightFromLineIcon:pr,ArrowRightIcon:mr,ArrowRightLeft:yr,ArrowRightLeftIcon:yr,ArrowRightSquare:Ia,ArrowRightSquareIcon:Ia,ArrowRightToLine:fr,ArrowRightToLineIcon:fr,ArrowUp:Er,ArrowUp01:gr,ArrowUp01Icon:gr,ArrowUp10:vr,ArrowUp10Icon:vr,ArrowUpAZ:rt,ArrowUpAZIcon:rt,ArrowUpAz:rt,ArrowUpAzIcon:rt,ArrowUpCircle:Bt,ArrowUpCircleIcon:Bt,ArrowUpDown:kr,ArrowUpDownIcon:kr,ArrowUpFromDot:br,ArrowUpFromDotIcon:br,ArrowUpFromLine:wr,ArrowUpFromLineIcon:wr,ArrowUpIcon:Er,ArrowUpLeft:Mr,ArrowUpLeftFromCircle:Vt,ArrowUpLeftFromCircleIcon:Vt,ArrowUpLeftFromSquare:Ea,ArrowUpLeftFromSquareIcon:Ea,ArrowUpLeftIcon:Mr,ArrowUpLeftSquare:Da,ArrowUpLeftSquareIcon:Da,ArrowUpNarrowWide:lt,ArrowUpNarrowWideIcon:lt,ArrowUpRight:Cr,ArrowUpRightFromCircle:Pt,ArrowUpRightFromCircleIcon:Pt,ArrowUpRightFromSquare:Sa,ArrowUpRightFromSquareIcon:Sa,ArrowUpRightIcon:Cr,ArrowUpRightSquare:Ta,ArrowUpRightSquareIcon:Ta,ArrowUpSquare:za,ArrowUpSquareIcon:za,ArrowUpToLine:xr,ArrowUpToLineIcon:xr,ArrowUpWideNarrow:Lr,ArrowUpWideNarrowIcon:Lr,ArrowUpZA:ht,ArrowUpZAIcon:ht,ArrowUpZa:ht,ArrowUpZaIcon:ht,ArrowsUpFromLine:Sr,ArrowsUpFromLineIcon:Sr,Asterisk:Ir,AsteriskIcon:Ir,AsteriskSquare:Ra,AsteriskSquareIcon:Ra,AtSign:Tr,AtSignIcon:Tr,Atom:Dr,AtomIcon:Dr,AudioLines:zr,AudioLinesIcon:zr,AudioWaveform:Rr,AudioWaveformIcon:Rr,Award:Hr,AwardIcon:Hr,Axe:Ar,AxeIcon:Ar,Axis3D:ct,Axis3DIcon:ct,Axis3d:ct,Axis3dIcon:ct,Baby:Vr,BabyIcon:Vr,Backpack:Pr,BackpackIcon:Pr,Badge:Jr,BadgeAlert:qr,BadgeAlertIcon:qr,BadgeCent:Br,BadgeCentIcon:Br,BadgeCheck:dt,BadgeCheckIcon:dt,BadgeDollarSign:Fr,BadgeDollarSignIcon:Fr,BadgeEuro:Or,BadgeEuroIcon:Or,BadgeHelp:jr,BadgeHelpIcon:jr,BadgeIcon:Jr,BadgeIndianRupee:Nr,BadgeIndianRupeeIcon:Nr,BadgeInfo:_r,BadgeInfoIcon:_r,BadgeJapaneseYen:Wr,BadgeJapaneseYenIcon:Wr,BadgeMinus:Ur,BadgeMinusIcon:Ur,BadgePercent:Gr,BadgePercentIcon:Gr,BadgePlus:$r,BadgePlusIcon:$r,BadgePoundSterling:Yr,BadgePoundSterlingIcon:Yr,BadgeRussianRuble:Zr,BadgeRussianRubleIcon:Zr,BadgeSwissFranc:Xr,BadgeSwissFrancIcon:Xr,BadgeX:Kr,BadgeXIcon:Kr,BaggageClaim:Qr,BaggageClaimIcon:Qr,Ban:el,BanIcon:el,Banana:tl,BananaIcon:tl,Bandage:il,BandageIcon:il,Banknote:sl,BanknoteArrowDown:al,BanknoteArrowDownIcon:al,BanknoteArrowUp:ol,BanknoteArrowUpIcon:ol,BanknoteIcon:sl,BanknoteX:nl,BanknoteXIcon:nl,BarChart:Lt,BarChart2:Et,BarChart2Icon:Et,BarChart3:Ct,BarChart3Icon:Ct,BarChart4:Mt,BarChart4Icon:Mt,BarChartBig:wt,BarChartBigIcon:wt,BarChartHorizontal:vt,BarChartHorizontalBig:kt,BarChartHorizontalBigIcon:kt,BarChartHorizontalIcon:vt,BarChartIcon:Lt,Barcode:rl,BarcodeIcon:rl,Baseline:ll,BaselineIcon:ll,Bath:hl,BathIcon:hl,Battery:ml,BatteryCharging:cl,BatteryChargingIcon:cl,BatteryFull:dl,BatteryFullIcon:dl,BatteryIcon:ml,BatteryLow:ul,BatteryLowIcon:ul,BatteryMedium:pl,BatteryMediumIcon:pl,BatteryPlus:yl,BatteryPlusIcon:yl,BatteryWarning:fl,BatteryWarningIcon:fl,Beaker:gl,BeakerIcon:gl,Bean:vl,BeanIcon:vl,BeanOff:kl,BeanOffIcon:kl,Bed:Ml,BedDouble:bl,BedDoubleIcon:bl,BedIcon:Ml,BedSingle:wl,BedSingleIcon:wl,Beef:xl,BeefIcon:xl,Beer:Ll,BeerIcon:Ll,BeerOff:Cl,BeerOffIcon:Cl,Bell:Rl,BellDot:El,BellDotIcon:El,BellElectric:Sl,BellElectricIcon:Sl,BellIcon:Rl,BellMinus:Il,BellMinusIcon:Il,BellOff:Tl,BellOffIcon:Tl,BellPlus:Dl,BellPlusIcon:Dl,BellRing:zl,BellRingIcon:zl,BetweenHorizonalEnd:ut,BetweenHorizonalEndIcon:ut,BetweenHorizonalStart:pt,BetweenHorizonalStartIcon:pt,BetweenHorizontalEnd:ut,BetweenHorizontalEndIcon:ut,BetweenHorizontalStart:pt,BetweenHorizontalStartIcon:pt,BetweenVerticalEnd:Hl,BetweenVerticalEndIcon:Hl,BetweenVerticalStart:Al,BetweenVerticalStartIcon:Al,BicepsFlexed:Vl,BicepsFlexedIcon:Vl,Bike:Pl,BikeIcon:Pl,Binary:ql,BinaryIcon:ql,Binoculars:Bl,BinocularsIcon:Bl,Biohazard:Fl,BiohazardIcon:Fl,Bird:Ol,BirdIcon:Ol,Bitcoin:jl,BitcoinIcon:jl,Blend:Nl,BlendIcon:Nl,Blinds:_l,BlindsIcon:_l,Blocks:Wl,BlocksIcon:Wl,Bluetooth:Yl,BluetoothConnected:Ul,BluetoothConnectedIcon:Ul,BluetoothIcon:Yl,BluetoothOff:Gl,BluetoothOffIcon:Gl,BluetoothSearching:$l,BluetoothSearchingIcon:$l,Bold:Zl,BoldIcon:Zl,Bolt:Xl,BoltIcon:Xl,Bomb:Kl,BombIcon:Kl,Bone:Jl,BoneIcon:Jl,Book:w1,BookA:Ql,BookAIcon:Ql,BookAudio:e1,BookAudioIcon:e1,BookCheck:t1,BookCheckIcon:t1,BookCopy:i1,BookCopyIcon:i1,BookDashed:yt,BookDashedIcon:yt,BookDown:o1,BookDownIcon:o1,BookHeadphones:a1,BookHeadphonesIcon:a1,BookHeart:n1,BookHeartIcon:n1,BookIcon:w1,BookImage:s1,BookImageIcon:s1,BookKey:r1,BookKeyIcon:r1,BookLock:l1,BookLockIcon:l1,BookMarked:h1,BookMarkedIcon:h1,BookMinus:c1,BookMinusIcon:c1,BookOpen:p1,BookOpenCheck:u1,BookOpenCheckIcon:u1,BookOpenIcon:p1,BookOpenText:d1,BookOpenTextIcon:d1,BookPlus:y1,BookPlusIcon:y1,BookTemplate:yt,BookTemplateIcon:yt,BookText:f1,BookTextIcon:f1,BookType:m1,BookTypeIcon:m1,BookUp:k1,BookUp2:g1,BookUp2Icon:g1,BookUpIcon:k1,BookUser:v1,BookUserIcon:v1,BookX:b1,BookXIcon:b1,Bookmark:E1,BookmarkCheck:M1,BookmarkCheckIcon:M1,BookmarkIcon:E1,BookmarkMinus:C1,BookmarkMinusIcon:C1,BookmarkPlus:x1,BookmarkPlusIcon:x1,BookmarkX:L1,BookmarkXIcon:L1,BoomBox:S1,BoomBoxIcon:S1,Bot:D1,BotIcon:D1,BotMessageSquare:I1,BotMessageSquareIcon:I1,BotOff:T1,BotOffIcon:T1,BowArrow:z1,BowArrowIcon:z1,Box:R1,BoxIcon:R1,BoxSelect:_a,BoxSelectIcon:_a,Boxes:H1,BoxesIcon:H1,Braces:ft,BracesIcon:ft,Brackets:A1,BracketsIcon:A1,Brain:q1,BrainCircuit:V1,BrainCircuitIcon:V1,BrainCog:P1,BrainCogIcon:P1,BrainIcon:q1,BrickWall:F1,BrickWallFire:B1,BrickWallFireIcon:B1,BrickWallIcon:F1,Briefcase:_1,BriefcaseBusiness:O1,BriefcaseBusinessIcon:O1,BriefcaseConveyorBelt:j1,BriefcaseConveyorBeltIcon:j1,BriefcaseIcon:_1,BriefcaseMedical:N1,BriefcaseMedicalIcon:N1,BringToFront:W1,BringToFrontIcon:W1,Brush:G1,BrushCleaning:U1,BrushCleaningIcon:U1,BrushIcon:G1,Bubbles:$1,BubblesIcon:$1,Bug:X1,BugIcon:X1,BugOff:Y1,BugOffIcon:Y1,BugPlay:Z1,BugPlayIcon:Z1,Building:J1,Building2:K1,Building2Icon:K1,BuildingIcon:J1,Bus:eh,BusFront:Q1,BusFrontIcon:Q1,BusIcon:eh,Cable:ih,CableCar:th,CableCarIcon:th,CableIcon:ih,Cake:oh,CakeIcon:oh,CakeSlice:ah,CakeSliceIcon:ah,Calculator:nh,CalculatorIcon:nh,Calendar:Eh,Calendar1:sh,Calendar1Icon:sh,CalendarArrowDown:rh,CalendarArrowDownIcon:rh,CalendarArrowUp:lh,CalendarArrowUpIcon:lh,CalendarCheck:ch,CalendarCheck2:hh,CalendarCheck2Icon:hh,CalendarCheckIcon:ch,CalendarClock:dh,CalendarClockIcon:dh,CalendarCog:uh,CalendarCogIcon:uh,CalendarDays:ph,CalendarDaysIcon:ph,CalendarFold:yh,CalendarFoldIcon:yh,CalendarHeart:fh,CalendarHeartIcon:fh,CalendarIcon:Eh,CalendarMinus:gh,CalendarMinus2:mh,CalendarMinus2Icon:mh,CalendarMinusIcon:gh,CalendarOff:kh,CalendarOffIcon:kh,CalendarPlus:bh,CalendarPlus2:vh,CalendarPlus2Icon:vh,CalendarPlusIcon:bh,CalendarRange:wh,CalendarRangeIcon:wh,CalendarSearch:Mh,CalendarSearchIcon:Mh,CalendarSync:Ch,CalendarSyncIcon:Ch,CalendarX:Lh,CalendarX2:xh,CalendarX2Icon:xh,CalendarXIcon:Lh,Camera:Ih,CameraIcon:Ih,CameraOff:Sh,CameraOffIcon:Sh,CandlestickChart:bt,CandlestickChartIcon:bt,Candy:zh,CandyCane:Th,CandyCaneIcon:Th,CandyIcon:zh,CandyOff:Dh,CandyOffIcon:Dh,Cannabis:Rh,CannabisIcon:Rh,Captions:mt,CaptionsIcon:mt,CaptionsOff:Hh,CaptionsOffIcon:Hh,Car:Ph,CarFront:Ah,CarFrontIcon:Ah,CarIcon:Ph,CarTaxiFront:Vh,CarTaxiFrontIcon:Vh,Caravan:qh,CaravanIcon:qh,Carrot:Bh,CarrotIcon:Bh,CaseLower:Fh,CaseLowerIcon:Fh,CaseSensitive:Oh,CaseSensitiveIcon:Oh,CaseUpper:jh,CaseUpperIcon:jh,CassetteTape:Nh,CassetteTapeIcon:Nh,Cast:_h,CastIcon:_h,Castle:Wh,CastleIcon:Wh,Cat:Uh,CatIcon:Uh,Cctv:Gh,CctvIcon:Gh,ChartArea:gt,ChartAreaIcon:gt,ChartBar:vt,ChartBarBig:kt,ChartBarBigIcon:kt,ChartBarDecreasing:$h,ChartBarDecreasingIcon:$h,ChartBarIcon:vt,ChartBarIncreasing:Yh,ChartBarIncreasingIcon:Yh,ChartBarStacked:Zh,ChartBarStackedIcon:Zh,ChartCandlestick:bt,ChartCandlestickIcon:bt,ChartColumn:Ct,ChartColumnBig:wt,ChartColumnBigIcon:wt,ChartColumnDecreasing:Xh,ChartColumnDecreasingIcon:Xh,ChartColumnIcon:Ct,ChartColumnIncreasing:Mt,ChartColumnIncreasingIcon:Mt,ChartColumnStacked:Kh,ChartColumnStackedIcon:Kh,ChartGantt:Jh,ChartGanttIcon:Jh,ChartLine:xt,ChartLineIcon:xt,ChartNetwork:Qh,ChartNetworkIcon:Qh,ChartNoAxesColumn:Et,ChartNoAxesColumnDecreasing:ec,ChartNoAxesColumnDecreasingIcon:ec,ChartNoAxesColumnIcon:Et,ChartNoAxesColumnIncreasing:Lt,ChartNoAxesColumnIncreasingIcon:Lt,ChartNoAxesCombined:tc,ChartNoAxesCombinedIcon:tc,ChartNoAxesGantt:St,ChartNoAxesGanttIcon:St,ChartPie:It,ChartPieIcon:It,ChartScatter:Tt,ChartScatterIcon:Tt,ChartSpline:ic,ChartSplineIcon:ic,Check:nc,CheckCheck:ac,CheckCheckIcon:ac,CheckCircle:Ft,CheckCircle2:Ot,CheckCircle2Icon:Ot,CheckCircleIcon:Ft,CheckIcon:nc,CheckLine:oc,CheckLineIcon:oc,CheckSquare:Aa,CheckSquare2:Va,CheckSquare2Icon:Va,CheckSquareIcon:Aa,ChefHat:sc,ChefHatIcon:sc,Cherry:rc,CherryIcon:rc,ChevronDown:lc,ChevronDownCircle:jt,ChevronDownCircleIcon:jt,ChevronDownIcon:lc,ChevronDownSquare:Pa,ChevronDownSquareIcon:Pa,ChevronFirst:hc,ChevronFirstIcon:hc,ChevronLast:dc,ChevronLastIcon:dc,ChevronLeft:cc,ChevronLeftCircle:Nt,ChevronLeftCircleIcon:Nt,ChevronLeftIcon:cc,ChevronLeftSquare:qa,ChevronLeftSquareIcon:qa,ChevronRight:uc,ChevronRightCircle:_t,ChevronRightCircleIcon:_t,ChevronRightIcon:uc,ChevronRightSquare:Ba,ChevronRightSquareIcon:Ba,ChevronUp:pc,ChevronUpCircle:Wt,ChevronUpCircleIcon:Wt,ChevronUpIcon:pc,ChevronUpSquare:Fa,ChevronUpSquareIcon:Fa,ChevronsDown:fc,ChevronsDownIcon:fc,ChevronsDownUp:yc,ChevronsDownUpIcon:yc,ChevronsLeft:kc,ChevronsLeftIcon:kc,ChevronsLeftRight:gc,ChevronsLeftRightEllipsis:mc,ChevronsLeftRightEllipsisIcon:mc,ChevronsLeftRightIcon:gc,ChevronsRight:bc,ChevronsRightIcon:bc,ChevronsRightLeft:vc,ChevronsRightLeftIcon:vc,ChevronsUp:Mc,ChevronsUpDown:wc,ChevronsUpDownIcon:wc,ChevronsUpIcon:Mc,Chrome:Cc,ChromeIcon:Cc,Church:xc,ChurchIcon:xc,Cigarette:Ec,CigaretteIcon:Ec,CigaretteOff:Lc,CigaretteOffIcon:Lc,Circle:Bc,CircleAlert:zt,CircleAlertIcon:zt,CircleArrowDown:Dt,CircleArrowDownIcon:Dt,CircleArrowLeft:Rt,CircleArrowLeftIcon:Rt,CircleArrowOutDownLeft:Ht,CircleArrowOutDownLeftIcon:Ht,CircleArrowOutDownRight:At,CircleArrowOutDownRightIcon:At,CircleArrowOutUpLeft:Vt,CircleArrowOutUpLeftIcon:Vt,CircleArrowOutUpRight:Pt,CircleArrowOutUpRightIcon:Pt,CircleArrowRight:qt,CircleArrowRightIcon:qt,CircleArrowUp:Bt,CircleArrowUpIcon:Bt,CircleCheck:Ot,CircleCheckBig:Ft,CircleCheckBigIcon:Ft,CircleCheckIcon:Ot,CircleChevronDown:jt,CircleChevronDownIcon:jt,CircleChevronLeft:Nt,CircleChevronLeftIcon:Nt,CircleChevronRight:_t,CircleChevronRightIcon:_t,CircleChevronUp:Wt,CircleChevronUpIcon:Wt,CircleDashed:Sc,CircleDashedIcon:Sc,CircleDivide:Ut,CircleDivideIcon:Ut,CircleDollarSign:Ic,CircleDollarSignIcon:Ic,CircleDot:Dc,CircleDotDashed:Tc,CircleDotDashedIcon:Tc,CircleDotIcon:Dc,CircleEllipsis:zc,CircleEllipsisIcon:zc,CircleEqual:Rc,CircleEqualIcon:Rc,CircleFadingArrowUp:Hc,CircleFadingArrowUpIcon:Hc,CircleFadingPlus:Ac,CircleFadingPlusIcon:Ac,CircleGauge:Gt,CircleGaugeIcon:Gt,CircleHelp:$t,CircleHelpIcon:$t,CircleIcon:Bc,CircleMinus:Yt,CircleMinusIcon:Yt,CircleOff:Vc,CircleOffIcon:Vc,CircleParking:Xt,CircleParkingIcon:Xt,CircleParkingOff:Zt,CircleParkingOffIcon:Zt,CirclePause:Kt,CirclePauseIcon:Kt,CirclePercent:Jt,CirclePercentIcon:Jt,CirclePlay:Qt,CirclePlayIcon:Qt,CirclePlus:ei,CirclePlusIcon:ei,CirclePower:ti,CirclePowerIcon:ti,CircleSlash:Pc,CircleSlash2:ii,CircleSlash2Icon:ii,CircleSlashIcon:Pc,CircleSlashed:ii,CircleSlashedIcon:ii,CircleSmall:qc,CircleSmallIcon:qc,CircleStop:ai,CircleStopIcon:ai,CircleUser:ni,CircleUserIcon:ni,CircleUserRound:oi,CircleUserRoundIcon:oi,CircleX:si,CircleXIcon:si,CircuitBoard:Fc,CircuitBoardIcon:Fc,Citrus:Oc,CitrusIcon:Oc,Clapperboard:jc,ClapperboardIcon:jc,Clipboard:Xc,ClipboardCheck:Nc,ClipboardCheckIcon:Nc,ClipboardCopy:_c,ClipboardCopyIcon:_c,ClipboardEdit:li,ClipboardEditIcon:li,ClipboardIcon:Xc,ClipboardList:Wc,ClipboardListIcon:Wc,ClipboardMinus:Uc,ClipboardMinusIcon:Uc,ClipboardPaste:Gc,ClipboardPasteIcon:Gc,ClipboardPen:li,ClipboardPenIcon:li,ClipboardPenLine:ri,ClipboardPenLineIcon:ri,ClipboardPlus:$c,ClipboardPlusIcon:$c,ClipboardSignature:ri,ClipboardSignatureIcon:ri,ClipboardType:Yc,ClipboardTypeIcon:Yc,ClipboardX:Zc,ClipboardXIcon:Zc,Clock:yd,Clock1:Kc,Clock10:Jc,Clock10Icon:Jc,Clock11:Qc,Clock11Icon:Qc,Clock12:ed,Clock12Icon:ed,Clock1Icon:Kc,Clock2:td,Clock2Icon:td,Clock3:id,Clock3Icon:id,Clock4:ad,Clock4Icon:ad,Clock5:od,Clock5Icon:od,Clock6:nd,Clock6Icon:nd,Clock7:sd,Clock7Icon:sd,Clock8:rd,Clock8Icon:rd,Clock9:ld,Clock9Icon:ld,ClockAlert:hd,ClockAlertIcon:hd,ClockArrowDown:cd,ClockArrowDownIcon:cd,ClockArrowUp:dd,ClockArrowUpIcon:dd,ClockFading:ud,ClockFadingIcon:ud,ClockIcon:yd,ClockPlus:pd,ClockPlusIcon:pd,Cloud:Td,CloudAlert:fd,CloudAlertIcon:fd,CloudCog:md,CloudCogIcon:md,CloudDownload:hi,CloudDownloadIcon:hi,CloudDrizzle:gd,CloudDrizzleIcon:gd,CloudFog:vd,CloudFogIcon:vd,CloudHail:kd,CloudHailIcon:kd,CloudIcon:Td,CloudLightning:bd,CloudLightningIcon:bd,CloudMoon:Md,CloudMoonIcon:Md,CloudMoonRain:wd,CloudMoonRainIcon:wd,CloudOff:Cd,CloudOffIcon:Cd,CloudRain:Ld,CloudRainIcon:Ld,CloudRainWind:xd,CloudRainWindIcon:xd,CloudSnow:Ed,CloudSnowIcon:Ed,CloudSun:Id,CloudSunIcon:Id,CloudSunRain:Sd,CloudSunRainIcon:Sd,CloudUpload:ci,CloudUploadIcon:ci,Cloudy:Dd,CloudyIcon:Dd,Clover:zd,CloverIcon:zd,Club:Rd,ClubIcon:Rd,Code:Hd,Code2:di,Code2Icon:di,CodeIcon:Hd,CodeSquare:Oa,CodeSquareIcon:Oa,CodeXml:di,CodeXmlIcon:di,Codepen:Ad,CodepenIcon:Ad,Codesandbox:Vd,CodesandboxIcon:Vd,Coffee:Pd,CoffeeIcon:Pd,Cog:qd,CogIcon:qd,Coins:Bd,CoinsIcon:Bd,Columns:ui,Columns2:ui,Columns2Icon:ui,Columns3:pi,Columns3Cog:Se,Columns3CogIcon:Se,Columns3Icon:pi,Columns4:Fd,Columns4Icon:Fd,ColumnsIcon:ui,ColumnsSettings:Se,ColumnsSettingsIcon:Se,Combine:jd,CombineIcon:jd,Command:Od,CommandIcon:Od,Compass:Nd,CompassIcon:Nd,Component:_d,ComponentIcon:_d,Computer:Wd,ComputerIcon:Wd,ConciergeBell:Ud,ConciergeBellIcon:Ud,Cone:$d,ConeIcon:$d,Construction:Gd,ConstructionIcon:Gd,Contact:Yd,Contact2:yi,Contact2Icon:yi,ContactIcon:Yd,ContactRound:yi,ContactRoundIcon:yi,Container:Zd,ContainerIcon:Zd,Contrast:Xd,ContrastIcon:Xd,Cookie:Kd,CookieIcon:Kd,CookingPot:Jd,CookingPotIcon:Jd,Copy:o2,CopyCheck:e2,CopyCheckIcon:e2,CopyIcon:o2,CopyMinus:Qd,CopyMinusIcon:Qd,CopyPlus:t2,CopyPlusIcon:t2,CopySlash:i2,CopySlashIcon:i2,CopyX:a2,CopyXIcon:a2,Copyleft:n2,CopyleftIcon:n2,Copyright:s2,CopyrightIcon:s2,CornerDownLeft:r2,CornerDownLeftIcon:r2,CornerDownRight:l2,CornerDownRightIcon:l2,CornerLeftDown:h2,CornerLeftDownIcon:h2,CornerLeftUp:c2,CornerLeftUpIcon:c2,CornerRightDown:d2,CornerRightDownIcon:d2,CornerRightUp:u2,CornerRightUpIcon:u2,CornerUpLeft:p2,CornerUpLeftIcon:p2,CornerUpRight:y2,CornerUpRightIcon:y2,Cpu:f2,CpuIcon:f2,CreativeCommons:m2,CreativeCommonsIcon:m2,CreditCard:g2,CreditCardIcon:g2,Croissant:k2,CroissantIcon:k2,Crop:v2,CropIcon:v2,Cross:b2,CrossIcon:b2,Crosshair:w2,CrosshairIcon:w2,Crown:M2,CrownIcon:M2,Cuboid:C2,CuboidIcon:C2,CupSoda:x2,CupSodaIcon:x2,CurlyBraces:ft,CurlyBracesIcon:ft,Currency:L2,CurrencyIcon:L2,Cylinder:E2,CylinderIcon:E2,Dam:S2,DamIcon:S2,Database:D2,DatabaseBackup:I2,DatabaseBackupIcon:I2,DatabaseIcon:D2,DatabaseZap:T2,DatabaseZapIcon:T2,DecimalsArrowLeft:z2,DecimalsArrowLeftIcon:z2,DecimalsArrowRight:R2,DecimalsArrowRightIcon:R2,Delete:H2,DeleteIcon:H2,Dessert:V2,DessertIcon:V2,Diameter:A2,DiameterIcon:A2,Diamond:B2,DiamondIcon:B2,DiamondMinus:P2,DiamondMinusIcon:P2,DiamondPercent:fi,DiamondPercentIcon:fi,DiamondPlus:q2,DiamondPlusIcon:q2,Dice1:F2,Dice1Icon:F2,Dice2:O2,Dice2Icon:O2,Dice3:j2,Dice3Icon:j2,Dice4:N2,Dice4Icon:N2,Dice5:_2,Dice5Icon:_2,Dice6:W2,Dice6Icon:W2,Dices:U2,DicesIcon:U2,Diff:G2,DiffIcon:G2,Disc:X2,Disc2:$2,Disc2Icon:$2,Disc3:Y2,Disc3Icon:Y2,DiscAlbum:Z2,DiscAlbumIcon:Z2,DiscIcon:X2,Divide:K2,DivideCircle:Ut,DivideCircleIcon:Ut,DivideIcon:K2,DivideSquare:Wa,DivideSquareIcon:Wa,Dna:J2,DnaIcon:J2,DnaOff:Q2,DnaOffIcon:Q2,Dock:eu,DockIcon:eu,Dog:tu,DogIcon:tu,DollarSign:iu,DollarSignIcon:iu,Donut:au,DonutIcon:au,DoorClosed:nu,DoorClosedIcon:nu,DoorClosedLocked:ou,DoorClosedLockedIcon:ou,DoorOpen:su,DoorOpenIcon:su,Dot:ru,DotIcon:ru,DotSquare:Ua,DotSquareIcon:Ua,Download:lu,DownloadCloud:hi,DownloadCloudIcon:hi,DownloadIcon:lu,DraftingCompass:hu,DraftingCompassIcon:hu,Drama:cu,DramaIcon:cu,Dribbble:du,DribbbleIcon:du,Drill:uu,DrillIcon:uu,Droplet:yu,DropletIcon:yu,DropletOff:pu,DropletOffIcon:pu,Droplets:fu,DropletsIcon:fu,Drum:mu,DrumIcon:mu,Drumstick:gu,DrumstickIcon:gu,Dumbbell:ku,DumbbellIcon:ku,Ear:bu,EarIcon:bu,EarOff:vu,EarOffIcon:vu,Earth:mi,EarthIcon:mi,EarthLock:Mu,EarthLockIcon:Mu,Eclipse:wu,EclipseIcon:wu,Edit:pe,Edit2:la,Edit2Icon:la,Edit3:ra,Edit3Icon:ra,EditIcon:pe,Egg:Lu,EggFried:Cu,EggFriedIcon:Cu,EggIcon:Lu,EggOff:xu,EggOffIcon:xu,Ellipsis:ki,EllipsisIcon:ki,EllipsisVertical:gi,EllipsisVerticalIcon:gi,Equal:Iu,EqualApproximately:Eu,EqualApproximatelyIcon:Eu,EqualIcon:Iu,EqualNot:Su,EqualNotIcon:Su,EqualSquare:Ga,EqualSquareIcon:Ga,Eraser:Tu,EraserIcon:Tu,EthernetPort:Du,EthernetPortIcon:Du,Euro:zu,EuroIcon:zu,Expand:Ru,ExpandIcon:Ru,ExternalLink:Hu,ExternalLinkIcon:Hu,Eye:Pu,EyeClosed:Au,EyeClosedIcon:Au,EyeIcon:Pu,EyeOff:Vu,EyeOffIcon:Vu,Facebook:qu,FacebookIcon:qu,Factory:Bu,FactoryIcon:Bu,Fan:Fu,FanIcon:Fu,FastForward:Ou,FastForwardIcon:Ou,Feather:ju,FeatherIcon:ju,Fence:Wu,FenceIcon:Wu,FerrisWheel:Nu,FerrisWheelIcon:Nu,Figma:_u,FigmaIcon:_u,File:j0,FileArchive:Uu,FileArchiveIcon:Uu,FileAudio:$u,FileAudio2:Gu,FileAudio2Icon:Gu,FileAudioIcon:$u,FileAxis3D:vi,FileAxis3DIcon:vi,FileAxis3d:vi,FileAxis3dIcon:vi,FileBadge:Zu,FileBadge2:Yu,FileBadge2Icon:Yu,FileBadgeIcon:Zu,FileBarChart:bi,FileBarChart2:wi,FileBarChart2Icon:wi,FileBarChartIcon:bi,FileBox:Xu,FileBoxIcon:Xu,FileChartColumn:wi,FileChartColumnIcon:wi,FileChartColumnIncreasing:bi,FileChartColumnIncreasingIcon:bi,FileChartLine:Mi,FileChartLineIcon:Mi,FileChartPie:Ci,FileChartPieIcon:Ci,FileCheck:Ju,FileCheck2:Ku,FileCheck2Icon:Ku,FileCheckIcon:Ju,FileClock:Qu,FileClockIcon:Qu,FileCode:t0,FileCode2:e0,FileCode2Icon:e0,FileCodeIcon:t0,FileCog:xi,FileCog2:xi,FileCog2Icon:xi,FileCogIcon:xi,FileDiff:i0,FileDiffIcon:i0,FileDigit:a0,FileDigitIcon:a0,FileDown:o0,FileDownIcon:o0,FileEdit:Ei,FileEditIcon:Ei,FileHeart:n0,FileHeartIcon:n0,FileIcon:j0,FileImage:s0,FileImageIcon:s0,FileInput:r0,FileInputIcon:r0,FileJson:h0,FileJson2:l0,FileJson2Icon:l0,FileJsonIcon:h0,FileKey:d0,FileKey2:c0,FileKey2Icon:c0,FileKeyIcon:d0,FileLineChart:Mi,FileLineChartIcon:Mi,FileLock:p0,FileLock2:u0,FileLock2Icon:u0,FileLockIcon:p0,FileMinus:y0,FileMinus2:f0,FileMinus2Icon:f0,FileMinusIcon:y0,FileMusic:m0,FileMusicIcon:m0,FileOutput:g0,FileOutputIcon:g0,FilePen:Ei,FilePenIcon:Ei,FilePenLine:Li,FilePenLineIcon:Li,FilePieChart:Ci,FilePieChartIcon:Ci,FilePlus:b0,FilePlus2:k0,FilePlus2Icon:k0,FilePlusIcon:b0,FileQuestion:v0,FileQuestionIcon:v0,FileScan:w0,FileScanIcon:w0,FileSearch:C0,FileSearch2:M0,FileSearch2Icon:M0,FileSearchIcon:C0,FileSignature:Li,FileSignatureIcon:Li,FileSliders:x0,FileSlidersIcon:x0,FileSpreadsheet:L0,FileSpreadsheetIcon:L0,FileStack:E0,FileStackIcon:E0,FileSymlink:S0,FileSymlinkIcon:S0,FileTerminal:I0,FileTerminalIcon:I0,FileText:T0,FileTextIcon:T0,FileType:z0,FileType2:D0,FileType2Icon:D0,FileTypeIcon:z0,FileUp:R0,FileUpIcon:R0,FileUser:H0,FileUserIcon:H0,FileVideo:V0,FileVideo2:A0,FileVideo2Icon:A0,FileVideoIcon:V0,FileVolume:B0,FileVolume2:P0,FileVolume2Icon:P0,FileVolumeIcon:B0,FileWarning:q0,FileWarningIcon:q0,FileX:O0,FileX2:F0,FileX2Icon:F0,FileXIcon:O0,Files:_0,FilesIcon:_0,Film:N0,FilmIcon:N0,Filter:Di,FilterIcon:Di,FilterX:Ti,FilterXIcon:Ti,Fingerprint:W0,FingerprintIcon:W0,FireExtinguisher:U0,FireExtinguisherIcon:U0,Fish:Y0,FishIcon:Y0,FishOff:G0,FishOffIcon:G0,FishSymbol:$0,FishSymbolIcon:$0,Flag:J0,FlagIcon:J0,FlagOff:Z0,FlagOffIcon:Z0,FlagTriangleLeft:X0,FlagTriangleLeftIcon:X0,FlagTriangleRight:K0,FlagTriangleRightIcon:K0,Flame:ep,FlameIcon:ep,FlameKindling:Q0,FlameKindlingIcon:Q0,Flashlight:ap,FlashlightIcon:ap,FlashlightOff:tp,FlashlightOffIcon:tp,FlaskConical:op,FlaskConicalIcon:op,FlaskConicalOff:ip,FlaskConicalOffIcon:ip,FlaskRound:np,FlaskRoundIcon:np,FlipHorizontal:rp,FlipHorizontal2:sp,FlipHorizontal2Icon:sp,FlipHorizontalIcon:rp,FlipVertical:lp,FlipVertical2:hp,FlipVertical2Icon:hp,FlipVerticalIcon:lp,Flower:dp,Flower2:cp,Flower2Icon:cp,FlowerIcon:dp,Focus:up,FocusIcon:up,FoldHorizontal:pp,FoldHorizontalIcon:pp,FoldVertical:yp,FoldVerticalIcon:yp,Folder:Np,FolderArchive:fp,FolderArchiveIcon:fp,FolderCheck:mp,FolderCheckIcon:mp,FolderClock:kp,FolderClockIcon:kp,FolderClosed:gp,FolderClosedIcon:gp,FolderCode:vp,FolderCodeIcon:vp,FolderCog:Si,FolderCog2:Si,FolderCog2Icon:Si,FolderCogIcon:Si,FolderDot:bp,FolderDotIcon:bp,FolderDown:wp,FolderDownIcon:wp,FolderEdit:Ii,FolderEditIcon:Ii,FolderGit:Cp,FolderGit2:Mp,FolderGit2Icon:Mp,FolderGitIcon:Cp,FolderHeart:xp,FolderHeartIcon:xp,FolderIcon:Np,FolderInput:Lp,FolderInputIcon:Lp,FolderKanban:Ep,FolderKanbanIcon:Ep,FolderKey:Sp,FolderKeyIcon:Sp,FolderLock:Ip,FolderLockIcon:Ip,FolderMinus:Dp,FolderMinusIcon:Dp,FolderOpen:zp,FolderOpenDot:Tp,FolderOpenDotIcon:Tp,FolderOpenIcon:zp,FolderOutput:Hp,FolderOutputIcon:Hp,FolderPen:Ii,FolderPenIcon:Ii,FolderPlus:Rp,FolderPlusIcon:Rp,FolderRoot:Ap,FolderRootIcon:Ap,FolderSearch:Pp,FolderSearch2:Vp,FolderSearch2Icon:Vp,FolderSearchIcon:Pp,FolderSymlink:Bp,FolderSymlinkIcon:Bp,FolderSync:qp,FolderSyncIcon:qp,FolderTree:Fp,FolderTreeIcon:Fp,FolderUp:Op,FolderUpIcon:Op,FolderX:jp,FolderXIcon:jp,Folders:_p,FoldersIcon:_p,Footprints:Wp,FootprintsIcon:Wp,ForkKnife:Ho,ForkKnifeCrossed:Ro,ForkKnifeCrossedIcon:Ro,ForkKnifeIcon:Ho,Forklift:Up,ForkliftIcon:Up,FormInput:ca,FormInputIcon:ca,Forward:$p,ForwardIcon:$p,Frame:Gp,FrameIcon:Gp,Framer:Yp,FramerIcon:Yp,Frown:Zp,FrownIcon:Zp,Fuel:Kp,FuelIcon:Kp,Fullscreen:Xp,FullscreenIcon:Xp,FunctionSquare:$a,FunctionSquareIcon:$a,Funnel:Di,FunnelIcon:Di,FunnelPlus:Jp,FunnelPlusIcon:Jp,FunnelX:Ti,FunnelXIcon:Ti,GalleryHorizontal:ty,GalleryHorizontalEnd:Qp,GalleryHorizontalEndIcon:Qp,GalleryHorizontalIcon:ty,GalleryThumbnails:ey,GalleryThumbnailsIcon:ey,GalleryVertical:ay,GalleryVerticalEnd:iy,GalleryVerticalEndIcon:iy,GalleryVerticalIcon:ay,Gamepad:oy,Gamepad2:ny,Gamepad2Icon:ny,GamepadIcon:oy,GanttChart:St,GanttChartIcon:St,GanttChartSquare:Te,GanttChartSquareIcon:Te,Gauge:sy,GaugeCircle:Gt,GaugeCircleIcon:Gt,GaugeIcon:sy,Gavel:ry,GavelIcon:ry,Gem:ly,GemIcon:ly,Ghost:hy,GhostIcon:hy,Gift:cy,GiftIcon:cy,GitBranch:uy,GitBranchIcon:uy,GitBranchPlus:dy,GitBranchPlusIcon:dy,GitCommit:zi,GitCommitHorizontal:zi,GitCommitHorizontalIcon:zi,GitCommitIcon:zi,GitCommitVertical:py,GitCommitVerticalIcon:py,GitCompare:fy,GitCompareArrows:yy,GitCompareArrowsIcon:yy,GitCompareIcon:fy,GitFork:my,GitForkIcon:my,GitGraph:gy,GitGraphIcon:gy,GitMerge:ky,GitMergeIcon:ky,GitPullRequest:xy,GitPullRequestArrow:vy,GitPullRequestArrowIcon:vy,GitPullRequestClosed:by,GitPullRequestClosedIcon:by,GitPullRequestCreate:Cy,GitPullRequestCreateArrow:wy,GitPullRequestCreateArrowIcon:wy,GitPullRequestCreateIcon:Cy,GitPullRequestDraft:My,GitPullRequestDraftIcon:My,GitPullRequestIcon:xy,Github:Ly,GithubIcon:Ly,Gitlab:Ey,GitlabIcon:Ey,GlassWater:Sy,GlassWaterIcon:Sy,Glasses:Iy,GlassesIcon:Iy,Globe:zy,Globe2:mi,Globe2Icon:mi,GlobeIcon:zy,GlobeLock:Ty,GlobeLockIcon:Ty,Goal:Dy,GoalIcon:Dy,Gpu:Ry,GpuIcon:Ry,Grab:Hy,GrabIcon:Hy,GraduationCap:Ay,GraduationCapIcon:Ay,Grape:Vy,GrapeIcon:Vy,Grid:Ie,Grid2X2:Vi,Grid2X2Check:Ri,Grid2X2CheckIcon:Ri,Grid2X2Icon:Vi,Grid2X2Plus:Hi,Grid2X2PlusIcon:Hi,Grid2X2X:Ai,Grid2X2XIcon:Ai,Grid2x2:Vi,Grid2x2Check:Ri,Grid2x2CheckIcon:Ri,Grid2x2Icon:Vi,Grid2x2Plus:Hi,Grid2x2PlusIcon:Hi,Grid2x2X:Ai,Grid2x2XIcon:Ai,Grid3X3:Ie,Grid3X3Icon:Ie,Grid3x3:Ie,Grid3x3Icon:Ie,GridIcon:Ie,Grip:By,GripHorizontal:Py,GripHorizontalIcon:Py,GripIcon:By,GripVertical:qy,GripVerticalIcon:qy,Group:Fy,GroupIcon:Fy,Guitar:Oy,GuitarIcon:Oy,Ham:jy,HamIcon:jy,Hamburger:Ny,HamburgerIcon:Ny,Hammer:_y,HammerIcon:_y,Hand:Yy,HandCoins:Wy,HandCoinsIcon:Wy,HandHeart:Uy,HandHeartIcon:Uy,HandHelping:Pi,HandHelpingIcon:Pi,HandIcon:Yy,HandMetal:Gy,HandMetalIcon:Gy,HandPlatter:$y,HandPlatterIcon:$y,Handshake:Xy,HandshakeIcon:Xy,HardDrive:Jy,HardDriveDownload:Zy,HardDriveDownloadIcon:Zy,HardDriveIcon:Jy,HardDriveUpload:Ky,HardDriveUploadIcon:Ky,HardHat:Qy,HardHatIcon:Qy,Hash:ef,HashIcon:ef,Haze:tf,HazeIcon:tf,HdmiPort:af,HdmiPortIcon:af,Heading:cf,Heading1:of,Heading1Icon:of,Heading2:nf,Heading2Icon:nf,Heading3:sf,Heading3Icon:sf,Heading4:hf,Heading4Icon:hf,Heading5:rf,Heading5Icon:rf,Heading6:lf,Heading6Icon:lf,HeadingIcon:cf,HeadphoneOff:df,HeadphoneOffIcon:df,Headphones:uf,HeadphonesIcon:uf,Headset:pf,HeadsetIcon:pf,Heart:vf,HeartCrack:yf,HeartCrackIcon:yf,HeartHandshake:ff,HeartHandshakeIcon:ff,HeartIcon:vf,HeartMinus:mf,HeartMinusIcon:mf,HeartOff:gf,HeartOffIcon:gf,HeartPlus:kf,HeartPlusIcon:kf,HeartPulse:bf,HeartPulseIcon:bf,Heater:wf,HeaterIcon:wf,HelpCircle:$t,HelpCircleIcon:$t,HelpingHand:Pi,HelpingHandIcon:Pi,Hexagon:Mf,HexagonIcon:Mf,Highlighter:Cf,HighlighterIcon:Cf,History:xf,HistoryIcon:xf,Home:qi,HomeIcon:qi,Hop:Ef,HopIcon:Ef,HopOff:Lf,HopOffIcon:Lf,Hospital:Sf,HospitalIcon:Sf,Hotel:If,HotelIcon:If,Hourglass:Tf,HourglassIcon:Tf,House:qi,HouseIcon:qi,HousePlug:Df,HousePlugIcon:Df,HousePlus:zf,HousePlusIcon:zf,HouseWifi:Rf,HouseWifiIcon:Rf,IceCream:Fi,IceCream2:Bi,IceCream2Icon:Bi,IceCreamBowl:Bi,IceCreamBowlIcon:Bi,IceCreamCone:Fi,IceCreamConeIcon:Fi,IceCreamIcon:Fi,Icon:jx,IdCard:Hf,IdCardIcon:Hf,Image:jf,ImageDown:Af,ImageDownIcon:Af,ImageIcon:jf,ImageMinus:Vf,ImageMinusIcon:Vf,ImageOff:qf,ImageOffIcon:qf,ImagePlay:Pf,ImagePlayIcon:Pf,ImagePlus:Bf,ImagePlusIcon:Bf,ImageUp:Of,ImageUpIcon:Of,ImageUpscale:Ff,ImageUpscaleIcon:Ff,Images:Nf,ImagesIcon:Nf,Import:Wf,ImportIcon:Wf,Inbox:_f,InboxIcon:_f,Indent:ji,IndentDecrease:Oi,IndentDecreaseIcon:Oi,IndentIcon:ji,IndentIncrease:ji,IndentIncreaseIcon:ji,IndianRupee:Uf,IndianRupeeIcon:Uf,Infinity:Gf,InfinityIcon:Gf,Info:$f,InfoIcon:$f,Inspect:Qa,InspectIcon:Qa,InspectionPanel:Xf,InspectionPanelIcon:Xf,Instagram:Yf,InstagramIcon:Yf,Italic:Zf,ItalicIcon:Zf,IterationCcw:Kf,IterationCcwIcon:Kf,IterationCw:Jf,IterationCwIcon:Jf,JapaneseYen:Qf,JapaneseYenIcon:Qf,Joystick:em,JoystickIcon:em,Kanban:tm,KanbanIcon:tm,KanbanSquare:Ya,KanbanSquareDashed:ja,KanbanSquareDashedIcon:ja,KanbanSquareIcon:Ya,Key:om,KeyIcon:om,KeyRound:am,KeyRoundIcon:am,KeySquare:im,KeySquareIcon:im,Keyboard:rm,KeyboardIcon:rm,KeyboardMusic:nm,KeyboardMusicIcon:nm,KeyboardOff:sm,KeyboardOffIcon:sm,Lamp:pm,LampCeiling:lm,LampCeilingIcon:lm,LampDesk:cm,LampDeskIcon:cm,LampFloor:hm,LampFloorIcon:hm,LampIcon:pm,LampWallDown:dm,LampWallDownIcon:dm,LampWallUp:um,LampWallUpIcon:um,LandPlot:ym,LandPlotIcon:ym,Landmark:fm,LandmarkIcon:fm,Languages:mm,LanguagesIcon:mm,Laptop:km,Laptop2:Ni,Laptop2Icon:Ni,LaptopIcon:km,LaptopMinimal:Ni,LaptopMinimalCheck:gm,LaptopMinimalCheckIcon:gm,LaptopMinimalIcon:Ni,Lasso:vm,LassoIcon:vm,LassoSelect:wm,LassoSelectIcon:wm,Laugh:bm,LaughIcon:bm,Layers:_i,Layers2:Mm,Layers2Icon:Mm,Layers3:_i,Layers3Icon:_i,LayersIcon:_i,Layout:sa,LayoutDashboard:Cm,LayoutDashboardIcon:Cm,LayoutGrid:xm,LayoutGridIcon:xm,LayoutIcon:sa,LayoutList:Lm,LayoutListIcon:Lm,LayoutPanelLeft:Em,LayoutPanelLeftIcon:Em,LayoutPanelTop:Sm,LayoutPanelTopIcon:Sm,LayoutTemplate:Im,LayoutTemplateIcon:Im,Leaf:Tm,LeafIcon:Tm,LeafyGreen:zm,LeafyGreenIcon:zm,Lectern:Dm,LecternIcon:Dm,LetterText:Rm,LetterTextIcon:Rm,Library:Am,LibraryBig:Hm,LibraryBigIcon:Hm,LibraryIcon:Am,LibrarySquare:Za,LibrarySquareIcon:Za,LifeBuoy:Vm,LifeBuoyIcon:Vm,Ligature:Pm,LigatureIcon:Pm,Lightbulb:Bm,LightbulbIcon:Bm,LightbulbOff:qm,LightbulbOffIcon:qm,LineChart:xt,LineChartIcon:xt,Link:jm,Link2:Om,Link2Icon:Om,Link2Off:Fm,Link2OffIcon:Fm,LinkIcon:jm,Linkedin:Nm,LinkedinIcon:Nm,List:ng,ListCheck:_m,ListCheckIcon:_m,ListChecks:Wm,ListChecksIcon:Wm,ListCollapse:Um,ListCollapseIcon:Um,ListEnd:Gm,ListEndIcon:Gm,ListFilter:Zm,ListFilterIcon:Zm,ListFilterPlus:$m,ListFilterPlusIcon:$m,ListIcon:ng,ListMinus:Ym,ListMinusIcon:Ym,ListMusic:Xm,ListMusicIcon:Xm,ListOrdered:Km,ListOrderedIcon:Km,ListPlus:Jm,ListPlusIcon:Jm,ListRestart:Qm,ListRestartIcon:Qm,ListStart:eg,ListStartIcon:eg,ListTodo:tg,ListTodoIcon:tg,ListTree:ig,ListTreeIcon:ig,ListVideo:ag,ListVideoIcon:ag,ListX:og,ListXIcon:og,Loader:rg,Loader2:Wi,Loader2Icon:Wi,LoaderCircle:Wi,LoaderCircleIcon:Wi,LoaderIcon:rg,LoaderPinwheel:sg,LoaderPinwheelIcon:sg,Locate:cg,LocateFixed:lg,LocateFixedIcon:lg,LocateIcon:cg,LocateOff:hg,LocateOffIcon:hg,LocationEdit:dg,LocationEditIcon:dg,Lock:pg,LockIcon:pg,LockKeyhole:ug,LockKeyholeIcon:ug,LockKeyholeOpen:Ui,LockKeyholeOpenIcon:Ui,LockOpen:Gi,LockOpenIcon:Gi,LogIn:yg,LogInIcon:yg,LogOut:fg,LogOutIcon:fg,Logs:mg,LogsIcon:mg,Lollipop:gg,LollipopIcon:gg,LucideAArrowDown:Un,LucideAArrowUp:Gn,LucideALargeSmall:$n,LucideAccessibility:Yn,LucideActivity:Zn,LucideActivitySquare:va,LucideAirVent:Kn,LucideAirplay:Xn,LucideAlarmCheck:tt,LucideAlarmClock:Qn,LucideAlarmClockCheck:tt,LucideAlarmClockMinus:it,LucideAlarmClockOff:Jn,LucideAlarmClockPlus:at,LucideAlarmMinus:it,LucideAlarmPlus:at,LucideAlarmSmoke:es,LucideAlbum:ts,LucideAlertCircle:zt,LucideAlertOctagon:Zi,LucideAlertTriangle:Mo,LucideAlignCenter:os,LucideAlignCenterHorizontal:is,LucideAlignCenterVertical:as,LucideAlignEndHorizontal:ns,LucideAlignEndVertical:ss,LucideAlignHorizontalDistributeCenter:rs,LucideAlignHorizontalDistributeEnd:ls,LucideAlignHorizontalDistributeStart:hs,LucideAlignHorizontalJustifyCenter:cs,LucideAlignHorizontalJustifyEnd:ds,LucideAlignHorizontalJustifyStart:us,LucideAlignHorizontalSpaceAround:ps,LucideAlignHorizontalSpaceBetween:ys,LucideAlignJustify:fs,LucideAlignLeft:ms,LucideAlignRight:ks,LucideAlignStartHorizontal:gs,LucideAlignStartVertical:vs,LucideAlignVerticalDistributeCenter:bs,LucideAlignVerticalDistributeEnd:ws,LucideAlignVerticalDistributeStart:Ms,LucideAlignVerticalJustifyCenter:Cs,LucideAlignVerticalJustifyEnd:xs,LucideAlignVerticalJustifyStart:Ls,LucideAlignVerticalSpaceAround:Es,LucideAlignVerticalSpaceBetween:Ss,LucideAmbulance:Is,LucideAmpersand:Ts,LucideAmpersands:Ds,LucideAmphora:zs,LucideAnchor:Hs,LucideAngry:Rs,LucideAnnoyed:As,LucideAntenna:Vs,LucideAnvil:Ps,LucideAperture:qs,LucideAppWindow:Fs,LucideAppWindowMac:Bs,LucideApple:Os,LucideArchive:_s,LucideArchiveRestore:js,LucideArchiveX:Ns,LucideAreaChart:gt,LucideArmchair:Us,LucideArrowBigDown:Gs,LucideArrowBigDownDash:Ws,LucideArrowBigLeft:Ys,LucideArrowBigLeftDash:$s,LucideArrowBigRight:Xs,LucideArrowBigRightDash:Zs,LucideArrowBigUp:Js,LucideArrowBigUpDash:Ks,LucideArrowDown:lr,LucideArrowDown01:Qs,LucideArrowDown10:er,LucideArrowDownAZ:ot,LucideArrowDownAz:ot,LucideArrowDownCircle:Dt,LucideArrowDownFromLine:tr,LucideArrowDownLeft:ir,LucideArrowDownLeftFromCircle:Ht,LucideArrowDownLeftFromSquare:xa,LucideArrowDownLeftSquare:ba,LucideArrowDownNarrowWide:ar,LucideArrowDownRight:or,LucideArrowDownRightFromCircle:At,LucideArrowDownRightFromSquare:La,LucideArrowDownRightSquare:wa,LucideArrowDownSquare:Ma,LucideArrowDownToDot:nr,LucideArrowDownToLine:rr,LucideArrowDownUp:sr,LucideArrowDownWideNarrow:nt,LucideArrowDownZA:st,LucideArrowDownZa:st,LucideArrowLeft:ur,LucideArrowLeftCircle:Rt,LucideArrowLeftFromLine:hr,LucideArrowLeftRight:cr,LucideArrowLeftSquare:Ca,LucideArrowLeftToLine:dr,LucideArrowRight:mr,LucideArrowRightCircle:qt,LucideArrowRightFromLine:pr,LucideArrowRightLeft:yr,LucideArrowRightSquare:Ia,LucideArrowRightToLine:fr,LucideArrowUp:Er,LucideArrowUp01:gr,LucideArrowUp10:vr,LucideArrowUpAZ:rt,LucideArrowUpAz:rt,LucideArrowUpCircle:Bt,LucideArrowUpDown:kr,LucideArrowUpFromDot:br,LucideArrowUpFromLine:wr,LucideArrowUpLeft:Mr,LucideArrowUpLeftFromCircle:Vt,LucideArrowUpLeftFromSquare:Ea,LucideArrowUpLeftSquare:Da,LucideArrowUpNarrowWide:lt,LucideArrowUpRight:Cr,LucideArrowUpRightFromCircle:Pt,LucideArrowUpRightFromSquare:Sa,LucideArrowUpRightSquare:Ta,LucideArrowUpSquare:za,LucideArrowUpToLine:xr,LucideArrowUpWideNarrow:Lr,LucideArrowUpZA:ht,LucideArrowUpZa:ht,LucideArrowsUpFromLine:Sr,LucideAsterisk:Ir,LucideAsteriskSquare:Ra,LucideAtSign:Tr,LucideAtom:Dr,LucideAudioLines:zr,LucideAudioWaveform:Rr,LucideAward:Hr,LucideAxe:Ar,LucideAxis3D:ct,LucideAxis3d:ct,LucideBaby:Vr,LucideBackpack:Pr,LucideBadge:Jr,LucideBadgeAlert:qr,LucideBadgeCent:Br,LucideBadgeCheck:dt,LucideBadgeDollarSign:Fr,LucideBadgeEuro:Or,LucideBadgeHelp:jr,LucideBadgeIndianRupee:Nr,LucideBadgeInfo:_r,LucideBadgeJapaneseYen:Wr,LucideBadgeMinus:Ur,LucideBadgePercent:Gr,LucideBadgePlus:$r,LucideBadgePoundSterling:Yr,LucideBadgeRussianRuble:Zr,LucideBadgeSwissFranc:Xr,LucideBadgeX:Kr,LucideBaggageClaim:Qr,LucideBan:el,LucideBanana:tl,LucideBandage:il,LucideBanknote:sl,LucideBanknoteArrowDown:al,LucideBanknoteArrowUp:ol,LucideBanknoteX:nl,LucideBarChart:Lt,LucideBarChart2:Et,LucideBarChart3:Ct,LucideBarChart4:Mt,LucideBarChartBig:wt,LucideBarChartHorizontal:vt,LucideBarChartHorizontalBig:kt,LucideBarcode:rl,LucideBaseline:ll,LucideBath:hl,LucideBattery:ml,LucideBatteryCharging:cl,LucideBatteryFull:dl,LucideBatteryLow:ul,LucideBatteryMedium:pl,LucideBatteryPlus:yl,LucideBatteryWarning:fl,LucideBeaker:gl,LucideBean:vl,LucideBeanOff:kl,LucideBed:Ml,LucideBedDouble:bl,LucideBedSingle:wl,LucideBeef:xl,LucideBeer:Ll,LucideBeerOff:Cl,LucideBell:Rl,LucideBellDot:El,LucideBellElectric:Sl,LucideBellMinus:Il,LucideBellOff:Tl,LucideBellPlus:Dl,LucideBellRing:zl,LucideBetweenHorizonalEnd:ut,LucideBetweenHorizonalStart:pt,LucideBetweenHorizontalEnd:ut,LucideBetweenHorizontalStart:pt,LucideBetweenVerticalEnd:Hl,LucideBetweenVerticalStart:Al,LucideBicepsFlexed:Vl,LucideBike:Pl,LucideBinary:ql,LucideBinoculars:Bl,LucideBiohazard:Fl,LucideBird:Ol,LucideBitcoin:jl,LucideBlend:Nl,LucideBlinds:_l,LucideBlocks:Wl,LucideBluetooth:Yl,LucideBluetoothConnected:Ul,LucideBluetoothOff:Gl,LucideBluetoothSearching:$l,LucideBold:Zl,LucideBolt:Xl,LucideBomb:Kl,LucideBone:Jl,LucideBook:w1,LucideBookA:Ql,LucideBookAudio:e1,LucideBookCheck:t1,LucideBookCopy:i1,LucideBookDashed:yt,LucideBookDown:o1,LucideBookHeadphones:a1,LucideBookHeart:n1,LucideBookImage:s1,LucideBookKey:r1,LucideBookLock:l1,LucideBookMarked:h1,LucideBookMinus:c1,LucideBookOpen:p1,LucideBookOpenCheck:u1,LucideBookOpenText:d1,LucideBookPlus:y1,LucideBookTemplate:yt,LucideBookText:f1,LucideBookType:m1,LucideBookUp:k1,LucideBookUp2:g1,LucideBookUser:v1,LucideBookX:b1,LucideBookmark:E1,LucideBookmarkCheck:M1,LucideBookmarkMinus:C1,LucideBookmarkPlus:x1,LucideBookmarkX:L1,LucideBoomBox:S1,LucideBot:D1,LucideBotMessageSquare:I1,LucideBotOff:T1,LucideBowArrow:z1,LucideBox:R1,LucideBoxSelect:_a,LucideBoxes:H1,LucideBraces:ft,LucideBrackets:A1,LucideBrain:q1,LucideBrainCircuit:V1,LucideBrainCog:P1,LucideBrickWall:F1,LucideBrickWallFire:B1,LucideBriefcase:_1,LucideBriefcaseBusiness:O1,LucideBriefcaseConveyorBelt:j1,LucideBriefcaseMedical:N1,LucideBringToFront:W1,LucideBrush:G1,LucideBrushCleaning:U1,LucideBubbles:$1,LucideBug:X1,LucideBugOff:Y1,LucideBugPlay:Z1,LucideBuilding:J1,LucideBuilding2:K1,LucideBus:eh,LucideBusFront:Q1,LucideCable:ih,LucideCableCar:th,LucideCake:oh,LucideCakeSlice:ah,LucideCalculator:nh,LucideCalendar:Eh,LucideCalendar1:sh,LucideCalendarArrowDown:rh,LucideCalendarArrowUp:lh,LucideCalendarCheck:ch,LucideCalendarCheck2:hh,LucideCalendarClock:dh,LucideCalendarCog:uh,LucideCalendarDays:ph,LucideCalendarFold:yh,LucideCalendarHeart:fh,LucideCalendarMinus:gh,LucideCalendarMinus2:mh,LucideCalendarOff:kh,LucideCalendarPlus:bh,LucideCalendarPlus2:vh,LucideCalendarRange:wh,LucideCalendarSearch:Mh,LucideCalendarSync:Ch,LucideCalendarX:Lh,LucideCalendarX2:xh,LucideCamera:Ih,LucideCameraOff:Sh,LucideCandlestickChart:bt,LucideCandy:zh,LucideCandyCane:Th,LucideCandyOff:Dh,LucideCannabis:Rh,LucideCaptions:mt,LucideCaptionsOff:Hh,LucideCar:Ph,LucideCarFront:Ah,LucideCarTaxiFront:Vh,LucideCaravan:qh,LucideCarrot:Bh,LucideCaseLower:Fh,LucideCaseSensitive:Oh,LucideCaseUpper:jh,LucideCassetteTape:Nh,LucideCast:_h,LucideCastle:Wh,LucideCat:Uh,LucideCctv:Gh,LucideChartArea:gt,LucideChartBar:vt,LucideChartBarBig:kt,LucideChartBarDecreasing:$h,LucideChartBarIncreasing:Yh,LucideChartBarStacked:Zh,LucideChartCandlestick:bt,LucideChartColumn:Ct,LucideChartColumnBig:wt,LucideChartColumnDecreasing:Xh,LucideChartColumnIncreasing:Mt,LucideChartColumnStacked:Kh,LucideChartGantt:Jh,LucideChartLine:xt,LucideChartNetwork:Qh,LucideChartNoAxesColumn:Et,LucideChartNoAxesColumnDecreasing:ec,LucideChartNoAxesColumnIncreasing:Lt,LucideChartNoAxesCombined:tc,LucideChartNoAxesGantt:St,LucideChartPie:It,LucideChartScatter:Tt,LucideChartSpline:ic,LucideCheck:nc,LucideCheckCheck:ac,LucideCheckCircle:Ft,LucideCheckCircle2:Ot,LucideCheckLine:oc,LucideCheckSquare:Aa,LucideCheckSquare2:Va,LucideChefHat:sc,LucideCherry:rc,LucideChevronDown:lc,LucideChevronDownCircle:jt,LucideChevronDownSquare:Pa,LucideChevronFirst:hc,LucideChevronLast:dc,LucideChevronLeft:cc,LucideChevronLeftCircle:Nt,LucideChevronLeftSquare:qa,LucideChevronRight:uc,LucideChevronRightCircle:_t,LucideChevronRightSquare:Ba,LucideChevronUp:pc,LucideChevronUpCircle:Wt,LucideChevronUpSquare:Fa,LucideChevronsDown:fc,LucideChevronsDownUp:yc,LucideChevronsLeft:kc,LucideChevronsLeftRight:gc,LucideChevronsLeftRightEllipsis:mc,LucideChevronsRight:bc,LucideChevronsRightLeft:vc,LucideChevronsUp:Mc,LucideChevronsUpDown:wc,LucideChrome:Cc,LucideChurch:xc,LucideCigarette:Ec,LucideCigaretteOff:Lc,LucideCircle:Bc,LucideCircleAlert:zt,LucideCircleArrowDown:Dt,LucideCircleArrowLeft:Rt,LucideCircleArrowOutDownLeft:Ht,LucideCircleArrowOutDownRight:At,LucideCircleArrowOutUpLeft:Vt,LucideCircleArrowOutUpRight:Pt,LucideCircleArrowRight:qt,LucideCircleArrowUp:Bt,LucideCircleCheck:Ot,LucideCircleCheckBig:Ft,LucideCircleChevronDown:jt,LucideCircleChevronLeft:Nt,LucideCircleChevronRight:_t,LucideCircleChevronUp:Wt,LucideCircleDashed:Sc,LucideCircleDivide:Ut,LucideCircleDollarSign:Ic,LucideCircleDot:Dc,LucideCircleDotDashed:Tc,LucideCircleEllipsis:zc,LucideCircleEqual:Rc,LucideCircleFadingArrowUp:Hc,LucideCircleFadingPlus:Ac,LucideCircleGauge:Gt,LucideCircleHelp:$t,LucideCircleMinus:Yt,LucideCircleOff:Vc,LucideCircleParking:Xt,LucideCircleParkingOff:Zt,LucideCirclePause:Kt,LucideCirclePercent:Jt,LucideCirclePlay:Qt,LucideCirclePlus:ei,LucideCirclePower:ti,LucideCircleSlash:Pc,LucideCircleSlash2:ii,LucideCircleSlashed:ii,LucideCircleSmall:qc,LucideCircleStop:ai,LucideCircleUser:ni,LucideCircleUserRound:oi,LucideCircleX:si,LucideCircuitBoard:Fc,LucideCitrus:Oc,LucideClapperboard:jc,LucideClipboard:Xc,LucideClipboardCheck:Nc,LucideClipboardCopy:_c,LucideClipboardEdit:li,LucideClipboardList:Wc,LucideClipboardMinus:Uc,LucideClipboardPaste:Gc,LucideClipboardPen:li,LucideClipboardPenLine:ri,LucideClipboardPlus:$c,LucideClipboardSignature:ri,LucideClipboardType:Yc,LucideClipboardX:Zc,LucideClock:yd,LucideClock1:Kc,LucideClock10:Jc,LucideClock11:Qc,LucideClock12:ed,LucideClock2:td,LucideClock3:id,LucideClock4:ad,LucideClock5:od,LucideClock6:nd,LucideClock7:sd,LucideClock8:rd,LucideClock9:ld,LucideClockAlert:hd,LucideClockArrowDown:cd,LucideClockArrowUp:dd,LucideClockFading:ud,LucideClockPlus:pd,LucideCloud:Td,LucideCloudAlert:fd,LucideCloudCog:md,LucideCloudDownload:hi,LucideCloudDrizzle:gd,LucideCloudFog:vd,LucideCloudHail:kd,LucideCloudLightning:bd,LucideCloudMoon:Md,LucideCloudMoonRain:wd,LucideCloudOff:Cd,LucideCloudRain:Ld,LucideCloudRainWind:xd,LucideCloudSnow:Ed,LucideCloudSun:Id,LucideCloudSunRain:Sd,LucideCloudUpload:ci,LucideCloudy:Dd,LucideClover:zd,LucideClub:Rd,LucideCode:Hd,LucideCode2:di,LucideCodeSquare:Oa,LucideCodeXml:di,LucideCodepen:Ad,LucideCodesandbox:Vd,LucideCoffee:Pd,LucideCog:qd,LucideCoins:Bd,LucideColumns:ui,LucideColumns2:ui,LucideColumns3:pi,LucideColumns3Cog:Se,LucideColumns4:Fd,LucideColumnsSettings:Se,LucideCombine:jd,LucideCommand:Od,LucideCompass:Nd,LucideComponent:_d,LucideComputer:Wd,LucideConciergeBell:Ud,LucideCone:$d,LucideConstruction:Gd,LucideContact:Yd,LucideContact2:yi,LucideContactRound:yi,LucideContainer:Zd,LucideContrast:Xd,LucideCookie:Kd,LucideCookingPot:Jd,LucideCopy:o2,LucideCopyCheck:e2,LucideCopyMinus:Qd,LucideCopyPlus:t2,LucideCopySlash:i2,LucideCopyX:a2,LucideCopyleft:n2,LucideCopyright:s2,LucideCornerDownLeft:r2,LucideCornerDownRight:l2,LucideCornerLeftDown:h2,LucideCornerLeftUp:c2,LucideCornerRightDown:d2,LucideCornerRightUp:u2,LucideCornerUpLeft:p2,LucideCornerUpRight:y2,LucideCpu:f2,LucideCreativeCommons:m2,LucideCreditCard:g2,LucideCroissant:k2,LucideCrop:v2,LucideCross:b2,LucideCrosshair:w2,LucideCrown:M2,LucideCuboid:C2,LucideCupSoda:x2,LucideCurlyBraces:ft,LucideCurrency:L2,LucideCylinder:E2,LucideDam:S2,LucideDatabase:D2,LucideDatabaseBackup:I2,LucideDatabaseZap:T2,LucideDecimalsArrowLeft:z2,LucideDecimalsArrowRight:R2,LucideDelete:H2,LucideDessert:V2,LucideDiameter:A2,LucideDiamond:B2,LucideDiamondMinus:P2,LucideDiamondPercent:fi,LucideDiamondPlus:q2,LucideDice1:F2,LucideDice2:O2,LucideDice3:j2,LucideDice4:N2,LucideDice5:_2,LucideDice6:W2,LucideDices:U2,LucideDiff:G2,LucideDisc:X2,LucideDisc2:$2,LucideDisc3:Y2,LucideDiscAlbum:Z2,LucideDivide:K2,LucideDivideCircle:Ut,LucideDivideSquare:Wa,LucideDna:J2,LucideDnaOff:Q2,LucideDock:eu,LucideDog:tu,LucideDollarSign:iu,LucideDonut:au,LucideDoorClosed:nu,LucideDoorClosedLocked:ou,LucideDoorOpen:su,LucideDot:ru,LucideDotSquare:Ua,LucideDownload:lu,LucideDownloadCloud:hi,LucideDraftingCompass:hu,LucideDrama:cu,LucideDribbble:du,LucideDrill:uu,LucideDroplet:yu,LucideDropletOff:pu,LucideDroplets:fu,LucideDrum:mu,LucideDrumstick:gu,LucideDumbbell:ku,LucideEar:bu,LucideEarOff:vu,LucideEarth:mi,LucideEarthLock:Mu,LucideEclipse:wu,LucideEdit:pe,LucideEdit2:la,LucideEdit3:ra,LucideEgg:Lu,LucideEggFried:Cu,LucideEggOff:xu,LucideEllipsis:ki,LucideEllipsisVertical:gi,LucideEqual:Iu,LucideEqualApproximately:Eu,LucideEqualNot:Su,LucideEqualSquare:Ga,LucideEraser:Tu,LucideEthernetPort:Du,LucideEuro:zu,LucideExpand:Ru,LucideExternalLink:Hu,LucideEye:Pu,LucideEyeClosed:Au,LucideEyeOff:Vu,LucideFacebook:qu,LucideFactory:Bu,LucideFan:Fu,LucideFastForward:Ou,LucideFeather:ju,LucideFence:Wu,LucideFerrisWheel:Nu,LucideFigma:_u,LucideFile:j0,LucideFileArchive:Uu,LucideFileAudio:$u,LucideFileAudio2:Gu,LucideFileAxis3D:vi,LucideFileAxis3d:vi,LucideFileBadge:Zu,LucideFileBadge2:Yu,LucideFileBarChart:bi,LucideFileBarChart2:wi,LucideFileBox:Xu,LucideFileChartColumn:wi,LucideFileChartColumnIncreasing:bi,LucideFileChartLine:Mi,LucideFileChartPie:Ci,LucideFileCheck:Ju,LucideFileCheck2:Ku,LucideFileClock:Qu,LucideFileCode:t0,LucideFileCode2:e0,LucideFileCog:xi,LucideFileCog2:xi,LucideFileDiff:i0,LucideFileDigit:a0,LucideFileDown:o0,LucideFileEdit:Ei,LucideFileHeart:n0,LucideFileImage:s0,LucideFileInput:r0,LucideFileJson:h0,LucideFileJson2:l0,LucideFileKey:d0,LucideFileKey2:c0,LucideFileLineChart:Mi,LucideFileLock:p0,LucideFileLock2:u0,LucideFileMinus:y0,LucideFileMinus2:f0,LucideFileMusic:m0,LucideFileOutput:g0,LucideFilePen:Ei,LucideFilePenLine:Li,LucideFilePieChart:Ci,LucideFilePlus:b0,LucideFilePlus2:k0,LucideFileQuestion:v0,LucideFileScan:w0,LucideFileSearch:C0,LucideFileSearch2:M0,LucideFileSignature:Li,LucideFileSliders:x0,LucideFileSpreadsheet:L0,LucideFileStack:E0,LucideFileSymlink:S0,LucideFileTerminal:I0,LucideFileText:T0,LucideFileType:z0,LucideFileType2:D0,LucideFileUp:R0,LucideFileUser:H0,LucideFileVideo:V0,LucideFileVideo2:A0,LucideFileVolume:B0,LucideFileVolume2:P0,LucideFileWarning:q0,LucideFileX:O0,LucideFileX2:F0,LucideFiles:_0,LucideFilm:N0,LucideFilter:Di,LucideFilterX:Ti,LucideFingerprint:W0,LucideFireExtinguisher:U0,LucideFish:Y0,LucideFishOff:G0,LucideFishSymbol:$0,LucideFlag:J0,LucideFlagOff:Z0,LucideFlagTriangleLeft:X0,LucideFlagTriangleRight:K0,LucideFlame:ep,LucideFlameKindling:Q0,LucideFlashlight:ap,LucideFlashlightOff:tp,LucideFlaskConical:op,LucideFlaskConicalOff:ip,LucideFlaskRound:np,LucideFlipHorizontal:rp,LucideFlipHorizontal2:sp,LucideFlipVertical:lp,LucideFlipVertical2:hp,LucideFlower:dp,LucideFlower2:cp,LucideFocus:up,LucideFoldHorizontal:pp,LucideFoldVertical:yp,LucideFolder:Np,LucideFolderArchive:fp,LucideFolderCheck:mp,LucideFolderClock:kp,LucideFolderClosed:gp,LucideFolderCode:vp,LucideFolderCog:Si,LucideFolderCog2:Si,LucideFolderDot:bp,LucideFolderDown:wp,LucideFolderEdit:Ii,LucideFolderGit:Cp,LucideFolderGit2:Mp,LucideFolderHeart:xp,LucideFolderInput:Lp,LucideFolderKanban:Ep,LucideFolderKey:Sp,LucideFolderLock:Ip,LucideFolderMinus:Dp,LucideFolderOpen:zp,LucideFolderOpenDot:Tp,LucideFolderOutput:Hp,LucideFolderPen:Ii,LucideFolderPlus:Rp,LucideFolderRoot:Ap,LucideFolderSearch:Pp,LucideFolderSearch2:Vp,LucideFolderSymlink:Bp,LucideFolderSync:qp,LucideFolderTree:Fp,LucideFolderUp:Op,LucideFolderX:jp,LucideFolders:_p,LucideFootprints:Wp,LucideForkKnife:Ho,LucideForkKnifeCrossed:Ro,LucideForklift:Up,LucideFormInput:ca,LucideForward:$p,LucideFrame:Gp,LucideFramer:Yp,LucideFrown:Zp,LucideFuel:Kp,LucideFullscreen:Xp,LucideFunctionSquare:$a,LucideFunnel:Di,LucideFunnelPlus:Jp,LucideFunnelX:Ti,LucideGalleryHorizontal:ty,LucideGalleryHorizontalEnd:Qp,LucideGalleryThumbnails:ey,LucideGalleryVertical:ay,LucideGalleryVerticalEnd:iy,LucideGamepad:oy,LucideGamepad2:ny,LucideGanttChart:St,LucideGanttChartSquare:Te,LucideGauge:sy,LucideGaugeCircle:Gt,LucideGavel:ry,LucideGem:ly,LucideGhost:hy,LucideGift:cy,LucideGitBranch:uy,LucideGitBranchPlus:dy,LucideGitCommit:zi,LucideGitCommitHorizontal:zi,LucideGitCommitVertical:py,LucideGitCompare:fy,LucideGitCompareArrows:yy,LucideGitFork:my,LucideGitGraph:gy,LucideGitMerge:ky,LucideGitPullRequest:xy,LucideGitPullRequestArrow:vy,LucideGitPullRequestClosed:by,LucideGitPullRequestCreate:Cy,LucideGitPullRequestCreateArrow:wy,LucideGitPullRequestDraft:My,LucideGithub:Ly,LucideGitlab:Ey,LucideGlassWater:Sy,LucideGlasses:Iy,LucideGlobe:zy,LucideGlobe2:mi,LucideGlobeLock:Ty,LucideGoal:Dy,LucideGpu:Ry,LucideGrab:Hy,LucideGraduationCap:Ay,LucideGrape:Vy,LucideGrid:Ie,LucideGrid2X2:Vi,LucideGrid2X2Check:Ri,LucideGrid2X2Plus:Hi,LucideGrid2X2X:Ai,LucideGrid2x2:Vi,LucideGrid2x2Check:Ri,LucideGrid2x2Plus:Hi,LucideGrid2x2X:Ai,LucideGrid3X3:Ie,LucideGrid3x3:Ie,LucideGrip:By,LucideGripHorizontal:Py,LucideGripVertical:qy,LucideGroup:Fy,LucideGuitar:Oy,LucideHam:jy,LucideHamburger:Ny,LucideHammer:_y,LucideHand:Yy,LucideHandCoins:Wy,LucideHandHeart:Uy,LucideHandHelping:Pi,LucideHandMetal:Gy,LucideHandPlatter:$y,LucideHandshake:Xy,LucideHardDrive:Jy,LucideHardDriveDownload:Zy,LucideHardDriveUpload:Ky,LucideHardHat:Qy,LucideHash:ef,LucideHaze:tf,LucideHdmiPort:af,LucideHeading:cf,LucideHeading1:of,LucideHeading2:nf,LucideHeading3:sf,LucideHeading4:hf,LucideHeading5:rf,LucideHeading6:lf,LucideHeadphoneOff:df,LucideHeadphones:uf,LucideHeadset:pf,LucideHeart:vf,LucideHeartCrack:yf,LucideHeartHandshake:ff,LucideHeartMinus:mf,LucideHeartOff:gf,LucideHeartPlus:kf,LucideHeartPulse:bf,LucideHeater:wf,LucideHelpCircle:$t,LucideHelpingHand:Pi,LucideHexagon:Mf,LucideHighlighter:Cf,LucideHistory:xf,LucideHome:qi,LucideHop:Ef,LucideHopOff:Lf,LucideHospital:Sf,LucideHotel:If,LucideHourglass:Tf,LucideHouse:qi,LucideHousePlug:Df,LucideHousePlus:zf,LucideHouseWifi:Rf,LucideIceCream:Fi,LucideIceCream2:Bi,LucideIceCreamBowl:Bi,LucideIceCreamCone:Fi,LucideIdCard:Hf,LucideImage:jf,LucideImageDown:Af,LucideImageMinus:Vf,LucideImageOff:qf,LucideImagePlay:Pf,LucideImagePlus:Bf,LucideImageUp:Of,LucideImageUpscale:Ff,LucideImages:Nf,LucideImport:Wf,LucideInbox:_f,LucideIndent:ji,LucideIndentDecrease:Oi,LucideIndentIncrease:ji,LucideIndianRupee:Uf,LucideInfinity:Gf,LucideInfo:$f,LucideInspect:Qa,LucideInspectionPanel:Xf,LucideInstagram:Yf,LucideItalic:Zf,LucideIterationCcw:Kf,LucideIterationCw:Jf,LucideJapaneseYen:Qf,LucideJoystick:em,LucideKanban:tm,LucideKanbanSquare:Ya,LucideKanbanSquareDashed:ja,LucideKey:om,LucideKeyRound:am,LucideKeySquare:im,LucideKeyboard:rm,LucideKeyboardMusic:nm,LucideKeyboardOff:sm,LucideLamp:pm,LucideLampCeiling:lm,LucideLampDesk:cm,LucideLampFloor:hm,LucideLampWallDown:dm,LucideLampWallUp:um,LucideLandPlot:ym,LucideLandmark:fm,LucideLanguages:mm,LucideLaptop:km,LucideLaptop2:Ni,LucideLaptopMinimal:Ni,LucideLaptopMinimalCheck:gm,LucideLasso:vm,LucideLassoSelect:wm,LucideLaugh:bm,LucideLayers:_i,LucideLayers2:Mm,LucideLayers3:_i,LucideLayout:sa,LucideLayoutDashboard:Cm,LucideLayoutGrid:xm,LucideLayoutList:Lm,LucideLayoutPanelLeft:Em,LucideLayoutPanelTop:Sm,LucideLayoutTemplate:Im,LucideLeaf:Tm,LucideLeafyGreen:zm,LucideLectern:Dm,LucideLetterText:Rm,LucideLibrary:Am,LucideLibraryBig:Hm,LucideLibrarySquare:Za,LucideLifeBuoy:Vm,LucideLigature:Pm,LucideLightbulb:Bm,LucideLightbulbOff:qm,LucideLineChart:xt,LucideLink:jm,LucideLink2:Om,LucideLink2Off:Fm,LucideLinkedin:Nm,LucideList:ng,LucideListCheck:_m,LucideListChecks:Wm,LucideListCollapse:Um,LucideListEnd:Gm,LucideListFilter:Zm,LucideListFilterPlus:$m,LucideListMinus:Ym,LucideListMusic:Xm,LucideListOrdered:Km,LucideListPlus:Jm,LucideListRestart:Qm,LucideListStart:eg,LucideListTodo:tg,LucideListTree:ig,LucideListVideo:ag,LucideListX:og,LucideLoader:rg,LucideLoader2:Wi,LucideLoaderCircle:Wi,LucideLoaderPinwheel:sg,LucideLocate:cg,LucideLocateFixed:lg,LucideLocateOff:hg,LucideLocationEdit:dg,LucideLock:pg,LucideLockKeyhole:ug,LucideLockKeyholeOpen:Ui,LucideLockOpen:Gi,LucideLogIn:yg,LucideLogOut:fg,LucideLogs:mg,LucideLollipop:gg,LucideLuggage:kg,LucideMSquare:Xa,LucideMagnet:vg,LucideMail:Ig,LucideMailCheck:bg,LucideMailMinus:wg,LucideMailOpen:Mg,LucideMailPlus:Cg,LucideMailQuestion:xg,LucideMailSearch:Lg,LucideMailWarning:Eg,LucideMailX:Sg,LucideMailbox:Tg,LucideMails:Dg,LucideMap:Wg,LucideMapPin:jg,LucideMapPinCheck:Rg,LucideMapPinCheckInside:zg,LucideMapPinHouse:Hg,LucideMapPinMinus:Vg,LucideMapPinMinusInside:Ag,LucideMapPinOff:Pg,LucideMapPinPlus:Bg,LucideMapPinPlusInside:qg,LucideMapPinX:Fg,LucideMapPinXInside:Og,LucideMapPinned:Ng,LucideMapPlus:_g,LucideMars:Gg,LucideMarsStroke:Ug,LucideMartini:$g,LucideMaximize:Yg,LucideMaximize2:Zg,LucideMedal:Xg,LucideMegaphone:Jg,LucideMegaphoneOff:Kg,LucideMeh:Qg,LucideMemoryStick:tk,LucideMenu:ek,LucideMenuSquare:Ka,LucideMerge:ik,LucideMessageCircle:pk,LucideMessageCircleCode:ak,LucideMessageCircleDashed:ok,LucideMessageCircleHeart:nk,LucideMessageCircleMore:sk,LucideMessageCircleOff:rk,LucideMessageCirclePlus:lk,LucideMessageCircleQuestion:hk,LucideMessageCircleReply:ck,LucideMessageCircleWarning:dk,LucideMessageCircleX:uk,LucideMessageSquare:Tk,LucideMessageSquareCode:yk,LucideMessageSquareDashed:fk,LucideMessageSquareDiff:mk,LucideMessageSquareDot:gk,LucideMessageSquareHeart:kk,LucideMessageSquareLock:vk,LucideMessageSquareMore:bk,LucideMessageSquareOff:wk,LucideMessageSquarePlus:Mk,LucideMessageSquareQuote:Ck,LucideMessageSquareReply:xk,LucideMessageSquareShare:Lk,LucideMessageSquareText:Ek,LucideMessageSquareWarning:Sk,LucideMessageSquareX:Ik,LucideMessagesSquare:Dk,LucideMic:Rk,LucideMic2:$i,LucideMicOff:zk,LucideMicVocal:$i,LucideMicrochip:Hk,LucideMicroscope:Ak,LucideMicrowave:Vk,LucideMilestone:Pk,LucideMilk:Bk,LucideMilkOff:qk,LucideMinimize:Ok,LucideMinimize2:Fk,LucideMinus:jk,LucideMinusCircle:Yt,LucideMinusSquare:Ja,LucideMonitor:e3,LucideMonitorCheck:Nk,LucideMonitorCog:Wk,LucideMonitorDot:_k,LucideMonitorDown:Uk,LucideMonitorOff:Gk,LucideMonitorPause:$k,LucideMonitorPlay:Yk,LucideMonitorSmartphone:Zk,LucideMonitorSpeaker:Kk,LucideMonitorStop:Xk,LucideMonitorUp:Jk,LucideMonitorX:Qk,LucideMoon:i3,LucideMoonStar:t3,LucideMoreHorizontal:ki,LucideMoreVertical:gi,LucideMountain:o3,LucideMountainSnow:a3,LucideMouse:u3,LucideMouseOff:n3,LucideMousePointer:h3,LucideMousePointer2:s3,LucideMousePointerBan:r3,LucideMousePointerClick:l3,LucideMousePointerSquareDashed:Na,LucideMove:C3,LucideMove3D:Yi,LucideMove3d:Yi,LucideMoveDiagonal:d3,LucideMoveDiagonal2:c3,LucideMoveDown:f3,LucideMoveDownLeft:p3,LucideMoveDownRight:y3,LucideMoveHorizontal:g3,LucideMoveLeft:m3,LucideMoveRight:k3,LucideMoveUp:w3,LucideMoveUpLeft:v3,LucideMoveUpRight:b3,LucideMoveVertical:M3,LucideMusic:S3,LucideMusic2:x3,LucideMusic3:L3,LucideMusic4:E3,LucideNavigation:z3,LucideNavigation2:T3,LucideNavigation2Off:I3,LucideNavigationOff:D3,LucideNetwork:R3,LucideNewspaper:H3,LucideNfc:A3,LucideNonBinary:V3,LucideNotebook:F3,LucideNotebookPen:P3,LucideNotebookTabs:q3,LucideNotebookText:B3,LucideNotepadText:j3,LucideNotepadTextDashed:O3,LucideNut:_3,LucideNutOff:N3,LucideOctagon:U3,LucideOctagonAlert:Zi,LucideOctagonMinus:W3,LucideOctagonPause:Ki,LucideOctagonX:Xi,LucideOmega:G3,LucideOption:$3,LucideOrbit:Z3,LucideOrigami:Y3,LucideOutdent:Oi,LucidePackage:a4,LucidePackage2:X3,LucidePackageCheck:K3,LucidePackageMinus:J3,LucidePackageOpen:Q3,LucidePackagePlus:e4,LucidePackageSearch:t4,LucidePackageX:i4,LucidePaintBucket:o4,LucidePaintRoller:n4,LucidePaintbrush:s4,LucidePaintbrush2:Ji,LucidePaintbrushVertical:Ji,LucidePalette:r4,LucidePalmtree:wo,LucidePanda:l4,LucidePanelBottom:d4,LucidePanelBottomClose:h4,LucidePanelBottomDashed:Qi,LucidePanelBottomInactive:Qi,LucidePanelBottomOpen:c4,LucidePanelLeft:aa,LucidePanelLeftClose:ea,LucidePanelLeftDashed:ta,LucidePanelLeftInactive:ta,LucidePanelLeftOpen:ia,LucidePanelRight:f4,LucidePanelRightClose:u4,LucidePanelRightDashed:oa,LucidePanelRightInactive:oa,LucidePanelRightOpen:p4,LucidePanelTop:g4,LucidePanelTopClose:y4,LucidePanelTopDashed:na,LucidePanelTopInactive:na,LucidePanelTopOpen:m4,LucidePanelsLeftBottom:k4,LucidePanelsLeftRight:pi,LucidePanelsRightBottom:v4,LucidePanelsTopBottom:pa,LucidePanelsTopLeft:sa,LucidePaperclip:b4,LucideParentheses:w4,LucideParkingCircle:Xt,LucideParkingCircleOff:Zt,LucideParkingMeter:M4,LucideParkingSquare:to,LucideParkingSquareOff:eo,LucidePartyPopper:C4,LucidePause:x4,LucidePauseCircle:Kt,LucidePauseOctagon:Ki,LucidePawPrint:L4,LucidePcCase:E4,LucidePen:la,LucidePenBox:pe,LucidePenLine:ra,LucidePenOff:S4,LucidePenSquare:pe,LucidePenTool:I4,LucidePencil:R4,LucidePencilLine:D4,LucidePencilOff:T4,LucidePencilRuler:z4,LucidePentagon:H4,LucidePercent:A4,LucidePercentCircle:Jt,LucidePercentDiamond:fi,LucidePercentSquare:io,LucidePersonStanding:V4,LucidePhilippinePeso:q4,LucidePhone:_4,LucidePhoneCall:P4,LucidePhoneForwarded:B4,LucidePhoneIncoming:F4,LucidePhoneMissed:O4,LucidePhoneOff:j4,LucidePhoneOutgoing:N4,LucidePi:W4,LucidePiSquare:ao,LucidePiano:U4,LucidePickaxe:G4,LucidePictureInPicture:Y4,LucidePictureInPicture2:$4,LucidePieChart:It,LucidePiggyBank:Z4,LucidePilcrow:J4,LucidePilcrowLeft:X4,LucidePilcrowRight:K4,LucidePilcrowSquare:oo,LucidePill:ev,LucidePillBottle:Q4,LucidePin:iv,LucidePinOff:tv,LucidePipette:av,LucidePizza:ov,LucidePlane:rv,LucidePlaneLanding:nv,LucidePlaneTakeoff:sv,LucidePlay:lv,LucidePlayCircle:Qt,LucidePlaySquare:no,LucidePlug:cv,LucidePlug2:hv,LucidePlugZap:ha,LucidePlugZap2:ha,LucidePlus:dv,LucidePlusCircle:ei,LucidePlusSquare:so,LucidePocket:uv,LucidePocketKnife:pv,LucidePodcast:yv,LucidePointer:mv,LucidePointerOff:fv,LucidePopcorn:gv,LucidePopsicle:kv,LucidePoundSterling:vv,LucidePower:wv,LucidePowerCircle:ti,LucidePowerOff:bv,LucidePowerSquare:ro,LucidePresentation:Mv,LucidePrinter:xv,LucidePrinterCheck:Cv,LucideProjector:Lv,LucideProportions:Ev,LucidePuzzle:Sv,LucidePyramid:Iv,LucideQrCode:Tv,LucideQuote:zv,LucideRabbit:Dv,LucideRadar:Rv,LucideRadiation:Hv,LucideRadical:Av,LucideRadio:qv,LucideRadioReceiver:Vv,LucideRadioTower:Pv,LucideRadius:Bv,LucideRailSymbol:Fv,LucideRainbow:Ov,LucideRat:jv,LucideRatio:Nv,LucideReceipt:Kv,LucideReceiptCent:_v,LucideReceiptEuro:Wv,LucideReceiptIndianRupee:Gv,LucideReceiptJapaneseYen:Uv,LucideReceiptPoundSterling:Yv,LucideReceiptRussianRuble:$v,LucideReceiptSwissFranc:Zv,LucideReceiptText:Xv,LucideRectangleEllipsis:ca,LucideRectangleGoggles:Jv,LucideRectangleHorizontal:Qv,LucideRectangleVertical:e5,LucideRecycle:t5,LucideRedo:o5,LucideRedo2:i5,LucideRedoDot:a5,LucideRefreshCcw:s5,LucideRefreshCcwDot:n5,LucideRefreshCw:l5,LucideRefreshCwOff:r5,LucideRefrigerator:c5,LucideRegex:h5,LucideRemoveFormatting:d5,LucideRepeat:y5,LucideRepeat1:u5,LucideRepeat2:p5,LucideReplace:m5,LucideReplaceAll:f5,LucideReply:k5,LucideReplyAll:g5,LucideRewind:v5,LucideRibbon:b5,LucideRocket:w5,LucideRockingChair:M5,LucideRollerCoaster:C5,LucideRotate3D:da,LucideRotate3d:da,LucideRotateCcw:E5,LucideRotateCcwKey:x5,LucideRotateCcwSquare:L5,LucideRotateCw:I5,LucideRotateCwSquare:S5,LucideRoute:z5,LucideRouteOff:T5,LucideRouter:D5,LucideRows:ua,LucideRows2:ua,LucideRows3:pa,LucideRows4:R5,LucideRss:H5,LucideRuler:V5,LucideRulerDimensionLine:A5,LucideRussianRuble:P5,LucideSailboat:q5,LucideSalad:B5,LucideSandwich:F5,LucideSatellite:j5,LucideSatelliteDish:O5,LucideSaudiRiyal:N5,LucideSave:U5,LucideSaveAll:_5,LucideSaveOff:W5,LucideScale:G5,LucideScale3D:ya,LucideScale3d:ya,LucideScaling:$5,LucideScan:tb,LucideScanBarcode:Y5,LucideScanEye:X5,LucideScanFace:Z5,LucideScanHeart:K5,LucideScanLine:Q5,LucideScanQrCode:J5,LucideScanSearch:eb,LucideScanText:ib,LucideScatterChart:Tt,LucideSchool:ab,LucideSchool2:xo,LucideScissors:nb,LucideScissorsLineDashed:ob,LucideScissorsSquare:lo,LucideScissorsSquareDashedBottom:Ha,LucideScreenShare:rb,LucideScreenShareOff:sb,LucideScroll:hb,LucideScrollText:lb,LucideSearch:yb,LucideSearchCheck:cb,LucideSearchCode:db,LucideSearchSlash:ub,LucideSearchX:pb,LucideSection:fb,LucideSend:kb,LucideSendHorizonal:fa,LucideSendHorizontal:fa,LucideSendToBack:mb,LucideSeparatorHorizontal:gb,LucideSeparatorVertical:bb,LucideServer:Cb,LucideServerCog:vb,LucideServerCrash:wb,LucideServerOff:Mb,LucideSettings:Lb,LucideSettings2:xb,LucideShapes:Eb,LucideShare:Ib,LucideShare2:Sb,LucideSheet:Tb,LucideShell:Db,LucideShield:jb,LucideShieldAlert:zb,LucideShieldBan:Rb,LucideShieldCheck:Hb,LucideShieldClose:ma,LucideShieldEllipsis:Ab,LucideShieldHalf:Vb,LucideShieldMinus:Pb,LucideShieldOff:qb,LucideShieldPlus:Bb,LucideShieldQuestion:Fb,LucideShieldUser:Ob,LucideShieldX:ma,LucideShip:Nb,LucideShipWheel:Wb,LucideShirt:_b,LucideShoppingBag:Ub,LucideShoppingBasket:Gb,LucideShoppingCart:$b,LucideShovel:Yb,LucideShowerHead:Zb,LucideShredder:Xb,LucideShrimp:Kb,LucideShrink:Jb,LucideShrub:Qb,LucideShuffle:ew,LucideSidebar:aa,LucideSidebarClose:ea,LucideSidebarOpen:ia,LucideSigma:tw,LucideSigmaSquare:ho,LucideSignal:sw,LucideSignalHigh:iw,LucideSignalLow:aw,LucideSignalMedium:ow,LucideSignalZero:nw,LucideSignature:rw,LucideSignpost:hw,LucideSignpostBig:lw,LucideSiren:cw,LucideSkipBack:dw,LucideSkipForward:uw,LucideSkull:pw,LucideSlack:yw,LucideSlash:fw,LucideSlashSquare:uo,LucideSlice:gw,LucideSliders:ga,LucideSlidersHorizontal:mw,LucideSlidersVertical:ga,LucideSmartphone:bw,LucideSmartphoneCharging:kw,LucideSmartphoneNfc:vw,LucideSmile:Mw,LucideSmilePlus:ww,LucideSnail:Cw,LucideSnowflake:xw,LucideSoapDispenserDroplet:Lw,LucideSofa:Ew,LucideSortAsc:lt,LucideSortDesc:nt,LucideSoup:Sw,LucideSpace:Iw,LucideSpade:Tw,LucideSparkle:Dw,LucideSparkles:ka,LucideSpeaker:zw,LucideSpeech:Rw,LucideSpellCheck:Aw,LucideSpellCheck2:Hw,LucideSpline:Pw,LucideSplinePointer:Vw,LucideSplit:Bw,LucideSplitSquareHorizontal:co,LucideSplitSquareVertical:po,LucideSprayCan:qw,LucideSprout:Fw,LucideSquare:$w,LucideSquareActivity:va,LucideSquareArrowDown:Ma,LucideSquareArrowDownLeft:ba,LucideSquareArrowDownRight:wa,LucideSquareArrowLeft:Ca,LucideSquareArrowOutDownLeft:xa,LucideSquareArrowOutDownRight:La,LucideSquareArrowOutUpLeft:Ea,LucideSquareArrowOutUpRight:Sa,LucideSquareArrowRight:Ia,LucideSquareArrowUp:za,LucideSquareArrowUpLeft:Da,LucideSquareArrowUpRight:Ta,LucideSquareAsterisk:Ra,LucideSquareBottomDashedScissors:Ha,LucideSquareChartGantt:Te,LucideSquareCheck:Va,LucideSquareCheckBig:Aa,LucideSquareChevronDown:Pa,LucideSquareChevronLeft:qa,LucideSquareChevronRight:Ba,LucideSquareChevronUp:Fa,LucideSquareCode:Oa,LucideSquareDashed:_a,LucideSquareDashedBottom:jw,LucideSquareDashedBottomCode:Ow,LucideSquareDashedKanban:ja,LucideSquareDashedMousePointer:Na,LucideSquareDashedTopSolid:Nw,LucideSquareDivide:Wa,LucideSquareDot:Ua,LucideSquareEqual:Ga,LucideSquareFunction:$a,LucideSquareGanttChart:Te,LucideSquareKanban:Ya,LucideSquareLibrary:Za,LucideSquareM:Xa,LucideSquareMenu:Ka,LucideSquareMinus:Ja,LucideSquareMousePointer:Qa,LucideSquareParking:to,LucideSquareParkingOff:eo,LucideSquarePen:pe,LucideSquarePercent:io,LucideSquarePi:ao,LucideSquarePilcrow:oo,LucideSquarePlay:no,LucideSquarePlus:so,LucideSquarePower:ro,LucideSquareRadical:_w,LucideSquareRoundCorner:Ww,LucideSquareScissors:lo,LucideSquareSigma:ho,LucideSquareSlash:uo,LucideSquareSplitHorizontal:co,LucideSquareSplitVertical:po,LucideSquareSquare:Uw,LucideSquareStack:Gw,LucideSquareTerminal:yo,LucideSquareUser:mo,LucideSquareUserRound:fo,LucideSquareX:go,LucideSquaresExclude:Zw,LucideSquaresIntersect:Yw,LucideSquaresSubtract:Xw,LucideSquaresUnite:Kw,LucideSquircle:Jw,LucideSquirrel:Qw,LucideStamp:e6,LucideStar:a6,LucideStarHalf:t6,LucideStarOff:i6,LucideStars:ka,LucideStepBack:o6,LucideStepForward:n6,LucideStethoscope:s6,LucideSticker:r6,LucideStickyNote:l6,LucideStopCircle:ai,LucideStore:h6,LucideStretchHorizontal:c6,LucideStretchVertical:d6,LucideStrikethrough:u6,LucideSubscript:p6,LucideSubtitles:mt,LucideSun:k6,LucideSunDim:f6,LucideSunMedium:y6,LucideSunMoon:m6,LucideSunSnow:g6,LucideSunrise:v6,LucideSunset:b6,LucideSuperscript:w6,LucideSwatchBook:M6,LucideSwissFranc:C6,LucideSwitchCamera:x6,LucideSword:L6,LucideSwords:E6,LucideSyringe:S6,LucideTable:V6,LucideTable2:I6,LucideTableCellsMerge:T6,LucideTableCellsSplit:D6,LucideTableColumnsSplit:z6,LucideTableConfig:Se,LucideTableOfContents:R6,LucideTableProperties:H6,LucideTableRowsSplit:A6,LucideTablet:q6,LucideTabletSmartphone:P6,LucideTablets:B6,LucideTag:F6,LucideTags:O6,LucideTally1:j6,LucideTally2:N6,LucideTally3:_6,LucideTally4:W6,LucideTally5:U6,LucideTangent:G6,LucideTarget:$6,LucideTelescope:Y6,LucideTent:X6,LucideTentTree:Z6,LucideTerminal:K6,LucideTerminalSquare:yo,LucideTestTube:J6,LucideTestTube2:ko,LucideTestTubeDiagonal:ko,LucideTestTubes:Q6,LucideText:o8,LucideTextCursor:t8,LucideTextCursorInput:e8,LucideTextQuote:i8,LucideTextSearch:a8,LucideTextSelect:vo,LucideTextSelection:vo,LucideTheater:n8,LucideThermometer:l8,LucideThermometerSnowflake:s8,LucideThermometerSun:r8,LucideThumbsDown:h8,LucideThumbsUp:c8,LucideTicket:g8,LucideTicketCheck:d8,LucideTicketMinus:u8,LucideTicketPercent:p8,LucideTicketPlus:y8,LucideTicketSlash:f8,LucideTicketX:m8,LucideTickets:b8,LucideTicketsPlane:k8,LucideTimer:M8,LucideTimerOff:v8,LucideTimerReset:w8,LucideToggleLeft:C8,LucideToggleRight:x8,LucideToilet:L8,LucideTornado:E8,LucideTorus:S8,LucideTouchpad:T8,LucideTouchpadOff:I8,LucideTowerControl:D8,LucideToyBrick:z8,LucideTractor:R8,LucideTrafficCone:H8,LucideTrain:bo,LucideTrainFront:V8,LucideTrainFrontTunnel:A8,LucideTrainTrack:P8,LucideTramFront:bo,LucideTransgender:q8,LucideTrash:F8,LucideTrash2:B8,LucideTreeDeciduous:O8,LucideTreePalm:wo,LucideTreePine:j8,LucideTrees:N8,LucideTrello:_8,LucideTrendingDown:W8,LucideTrendingUp:G8,LucideTrendingUpDown:U8,LucideTriangle:Z8,LucideTriangleAlert:Mo,LucideTriangleDashed:$8,LucideTriangleRight:Y8,LucideTrophy:X8,LucideTruck:K8,LucideTruckElectric:J8,LucideTurtle:Q8,LucideTv:tM,LucideTv2:Co,LucideTvMinimal:Co,LucideTvMinimalPlay:eM,LucideTwitch:iM,LucideTwitter:aM,LucideType:nM,LucideTypeOutline:oM,LucideUmbrella:rM,LucideUmbrellaOff:sM,LucideUnderline:lM,LucideUndo:dM,LucideUndo2:cM,LucideUndoDot:hM,LucideUnfoldHorizontal:uM,LucideUnfoldVertical:pM,LucideUngroup:yM,LucideUniversity:xo,LucideUnlink:mM,LucideUnlink2:fM,LucideUnlock:Gi,LucideUnlockKeyhole:Ui,LucideUnplug:gM,LucideUpload:kM,LucideUploadCloud:ci,LucideUsb:vM,LucideUser:DM,LucideUser2:Do,LucideUserCheck:bM,LucideUserCheck2:Lo,LucideUserCircle:ni,LucideUserCircle2:oi,LucideUserCog:wM,LucideUserCog2:Eo,LucideUserLock:MM,LucideUserMinus:CM,LucideUserMinus2:So,LucideUserPen:xM,LucideUserPlus:LM,LucideUserPlus2:Io,LucideUserRound:Do,LucideUserRoundCheck:Lo,LucideUserRoundCog:Eo,LucideUserRoundMinus:So,LucideUserRoundPen:EM,LucideUserRoundPlus:Io,LucideUserRoundSearch:SM,LucideUserRoundX:To,LucideUserSearch:IM,LucideUserSquare:mo,LucideUserSquare2:fo,LucideUserX:TM,LucideUserX2:To,LucideUsers:zM,LucideUsers2:zo,LucideUsersRound:zo,LucideUtensils:Ho,LucideUtensilsCrossed:Ro,LucideUtilityPole:RM,LucideVariable:HM,LucideVault:AM,LucideVegan:VM,LucideVenetianMask:PM,LucideVenus:BM,LucideVenusAndMars:qM,LucideVerified:dt,LucideVibrate:OM,LucideVibrateOff:FM,LucideVideo:_M,LucideVideoOff:jM,LucideVideotape:NM,LucideView:WM,LucideVoicemail:UM,LucideVolleyball:GM,LucideVolume:XM,LucideVolume1:$M,LucideVolume2:YM,LucideVolumeOff:ZM,LucideVolumeX:KM,LucideVote:JM,LucideWallet:e7,LucideWallet2:Ao,LucideWalletCards:QM,LucideWalletMinimal:Ao,LucideWallpaper:t7,LucideWand:i7,LucideWand2:Vo,LucideWandSparkles:Vo,LucideWarehouse:a7,LucideWashingMachine:o7,LucideWatch:n7,LucideWaves:r7,LucideWavesLadder:s7,LucideWaypoints:l7,LucideWebcam:h7,LucideWebhook:c7,LucideWebhookOff:d7,LucideWeight:u7,LucideWheat:p7,LucideWheatOff:y7,LucideWholeWord:m7,LucideWifi:b7,LucideWifiHigh:f7,LucideWifiLow:g7,LucideWifiOff:k7,LucideWifiPen:v7,LucideWifiZero:w7,LucideWind:C7,LucideWindArrowDown:M7,LucideWine:L7,LucideWineOff:x7,LucideWorkflow:E7,LucideWorm:S7,LucideWrapText:I7,LucideWrench:T7,LucideX:D7,LucideXCircle:si,LucideXOctagon:Xi,LucideXSquare:go,LucideYoutube:z7,LucideZap:H7,LucideZapOff:R7,LucideZoomIn:A7,LucideZoomOut:V7,Luggage:kg,LuggageIcon:kg,MSquare:Xa,MSquareIcon:Xa,Magnet:vg,MagnetIcon:vg,Mail:Ig,MailCheck:bg,MailCheckIcon:bg,MailIcon:Ig,MailMinus:wg,MailMinusIcon:wg,MailOpen:Mg,MailOpenIcon:Mg,MailPlus:Cg,MailPlusIcon:Cg,MailQuestion:xg,MailQuestionIcon:xg,MailSearch:Lg,MailSearchIcon:Lg,MailWarning:Eg,MailWarningIcon:Eg,MailX:Sg,MailXIcon:Sg,Mailbox:Tg,MailboxIcon:Tg,Mails:Dg,MailsIcon:Dg,Map:Wg,MapIcon:Wg,MapPin:jg,MapPinCheck:Rg,MapPinCheckIcon:Rg,MapPinCheckInside:zg,MapPinCheckInsideIcon:zg,MapPinHouse:Hg,MapPinHouseIcon:Hg,MapPinIcon:jg,MapPinMinus:Vg,MapPinMinusIcon:Vg,MapPinMinusInside:Ag,MapPinMinusInsideIcon:Ag,MapPinOff:Pg,MapPinOffIcon:Pg,MapPinPlus:Bg,MapPinPlusIcon:Bg,MapPinPlusInside:qg,MapPinPlusInsideIcon:qg,MapPinX:Fg,MapPinXIcon:Fg,MapPinXInside:Og,MapPinXInsideIcon:Og,MapPinned:Ng,MapPinnedIcon:Ng,MapPlus:_g,MapPlusIcon:_g,Mars:Gg,MarsIcon:Gg,MarsStroke:Ug,MarsStrokeIcon:Ug,Martini:$g,MartiniIcon:$g,Maximize:Yg,Maximize2:Zg,Maximize2Icon:Zg,MaximizeIcon:Yg,Medal:Xg,MedalIcon:Xg,Megaphone:Jg,MegaphoneIcon:Jg,MegaphoneOff:Kg,MegaphoneOffIcon:Kg,Meh:Qg,MehIcon:Qg,MemoryStick:tk,MemoryStickIcon:tk,Menu:ek,MenuIcon:ek,MenuSquare:Ka,MenuSquareIcon:Ka,Merge:ik,MergeIcon:ik,MessageCircle:pk,MessageCircleCode:ak,MessageCircleCodeIcon:ak,MessageCircleDashed:ok,MessageCircleDashedIcon:ok,MessageCircleHeart:nk,MessageCircleHeartIcon:nk,MessageCircleIcon:pk,MessageCircleMore:sk,MessageCircleMoreIcon:sk,MessageCircleOff:rk,MessageCircleOffIcon:rk,MessageCirclePlus:lk,MessageCirclePlusIcon:lk,MessageCircleQuestion:hk,MessageCircleQuestionIcon:hk,MessageCircleReply:ck,MessageCircleReplyIcon:ck,MessageCircleWarning:dk,MessageCircleWarningIcon:dk,MessageCircleX:uk,MessageCircleXIcon:uk,MessageSquare:Tk,MessageSquareCode:yk,MessageSquareCodeIcon:yk,MessageSquareDashed:fk,MessageSquareDashedIcon:fk,MessageSquareDiff:mk,MessageSquareDiffIcon:mk,MessageSquareDot:gk,MessageSquareDotIcon:gk,MessageSquareHeart:kk,MessageSquareHeartIcon:kk,MessageSquareIcon:Tk,MessageSquareLock:vk,MessageSquareLockIcon:vk,MessageSquareMore:bk,MessageSquareMoreIcon:bk,MessageSquareOff:wk,MessageSquareOffIcon:wk,MessageSquarePlus:Mk,MessageSquarePlusIcon:Mk,MessageSquareQuote:Ck,MessageSquareQuoteIcon:Ck,MessageSquareReply:xk,MessageSquareReplyIcon:xk,MessageSquareShare:Lk,MessageSquareShareIcon:Lk,MessageSquareText:Ek,MessageSquareTextIcon:Ek,MessageSquareWarning:Sk,MessageSquareWarningIcon:Sk,MessageSquareX:Ik,MessageSquareXIcon:Ik,MessagesSquare:Dk,MessagesSquareIcon:Dk,Mic:Rk,Mic2:$i,Mic2Icon:$i,MicIcon:Rk,MicOff:zk,MicOffIcon:zk,MicVocal:$i,MicVocalIcon:$i,Microchip:Hk,MicrochipIcon:Hk,Microscope:Ak,MicroscopeIcon:Ak,Microwave:Vk,MicrowaveIcon:Vk,Milestone:Pk,MilestoneIcon:Pk,Milk:Bk,MilkIcon:Bk,MilkOff:qk,MilkOffIcon:qk,Minimize:Ok,Minimize2:Fk,Minimize2Icon:Fk,MinimizeIcon:Ok,Minus:jk,MinusCircle:Yt,MinusCircleIcon:Yt,MinusIcon:jk,MinusSquare:Ja,MinusSquareIcon:Ja,Monitor:e3,MonitorCheck:Nk,MonitorCheckIcon:Nk,MonitorCog:Wk,MonitorCogIcon:Wk,MonitorDot:_k,MonitorDotIcon:_k,MonitorDown:Uk,MonitorDownIcon:Uk,MonitorIcon:e3,MonitorOff:Gk,MonitorOffIcon:Gk,MonitorPause:$k,MonitorPauseIcon:$k,MonitorPlay:Yk,MonitorPlayIcon:Yk,MonitorSmartphone:Zk,MonitorSmartphoneIcon:Zk,MonitorSpeaker:Kk,MonitorSpeakerIcon:Kk,MonitorStop:Xk,MonitorStopIcon:Xk,MonitorUp:Jk,MonitorUpIcon:Jk,MonitorX:Qk,MonitorXIcon:Qk,Moon:i3,MoonIcon:i3,MoonStar:t3,MoonStarIcon:t3,MoreHorizontal:ki,MoreHorizontalIcon:ki,MoreVertical:gi,MoreVerticalIcon:gi,Mountain:o3,MountainIcon:o3,MountainSnow:a3,MountainSnowIcon:a3,Mouse:u3,MouseIcon:u3,MouseOff:n3,MouseOffIcon:n3,MousePointer:h3,MousePointer2:s3,MousePointer2Icon:s3,MousePointerBan:r3,MousePointerBanIcon:r3,MousePointerClick:l3,MousePointerClickIcon:l3,MousePointerIcon:h3,MousePointerSquareDashed:Na,MousePointerSquareDashedIcon:Na,Move:C3,Move3D:Yi,Move3DIcon:Yi,Move3d:Yi,Move3dIcon:Yi,MoveDiagonal:d3,MoveDiagonal2:c3,MoveDiagonal2Icon:c3,MoveDiagonalIcon:d3,MoveDown:f3,MoveDownIcon:f3,MoveDownLeft:p3,MoveDownLeftIcon:p3,MoveDownRight:y3,MoveDownRightIcon:y3,MoveHorizontal:g3,MoveHorizontalIcon:g3,MoveIcon:C3,MoveLeft:m3,MoveLeftIcon:m3,MoveRight:k3,MoveRightIcon:k3,MoveUp:w3,MoveUpIcon:w3,MoveUpLeft:v3,MoveUpLeftIcon:v3,MoveUpRight:b3,MoveUpRightIcon:b3,MoveVertical:M3,MoveVerticalIcon:M3,Music:S3,Music2:x3,Music2Icon:x3,Music3:L3,Music3Icon:L3,Music4:E3,Music4Icon:E3,MusicIcon:S3,Navigation:z3,Navigation2:T3,Navigation2Icon:T3,Navigation2Off:I3,Navigation2OffIcon:I3,NavigationIcon:z3,NavigationOff:D3,NavigationOffIcon:D3,Network:R3,NetworkIcon:R3,Newspaper:H3,NewspaperIcon:H3,Nfc:A3,NfcIcon:A3,NonBinary:V3,NonBinaryIcon:V3,Notebook:F3,NotebookIcon:F3,NotebookPen:P3,NotebookPenIcon:P3,NotebookTabs:q3,NotebookTabsIcon:q3,NotebookText:B3,NotebookTextIcon:B3,NotepadText:j3,NotepadTextDashed:O3,NotepadTextDashedIcon:O3,NotepadTextIcon:j3,Nut:_3,NutIcon:_3,NutOff:N3,NutOffIcon:N3,Octagon:U3,OctagonAlert:Zi,OctagonAlertIcon:Zi,OctagonIcon:U3,OctagonMinus:W3,OctagonMinusIcon:W3,OctagonPause:Ki,OctagonPauseIcon:Ki,OctagonX:Xi,OctagonXIcon:Xi,Omega:G3,OmegaIcon:G3,Option:$3,OptionIcon:$3,Orbit:Z3,OrbitIcon:Z3,Origami:Y3,OrigamiIcon:Y3,Outdent:Oi,OutdentIcon:Oi,Package:a4,Package2:X3,Package2Icon:X3,PackageCheck:K3,PackageCheckIcon:K3,PackageIcon:a4,PackageMinus:J3,PackageMinusIcon:J3,PackageOpen:Q3,PackageOpenIcon:Q3,PackagePlus:e4,PackagePlusIcon:e4,PackageSearch:t4,PackageSearchIcon:t4,PackageX:i4,PackageXIcon:i4,PaintBucket:o4,PaintBucketIcon:o4,PaintRoller:n4,PaintRollerIcon:n4,Paintbrush:s4,Paintbrush2:Ji,Paintbrush2Icon:Ji,PaintbrushIcon:s4,PaintbrushVertical:Ji,PaintbrushVerticalIcon:Ji,Palette:r4,PaletteIcon:r4,Palmtree:wo,PalmtreeIcon:wo,Panda:l4,PandaIcon:l4,PanelBottom:d4,PanelBottomClose:h4,PanelBottomCloseIcon:h4,PanelBottomDashed:Qi,PanelBottomDashedIcon:Qi,PanelBottomIcon:d4,PanelBottomInactive:Qi,PanelBottomInactiveIcon:Qi,PanelBottomOpen:c4,PanelBottomOpenIcon:c4,PanelLeft:aa,PanelLeftClose:ea,PanelLeftCloseIcon:ea,PanelLeftDashed:ta,PanelLeftDashedIcon:ta,PanelLeftIcon:aa,PanelLeftInactive:ta,PanelLeftInactiveIcon:ta,PanelLeftOpen:ia,PanelLeftOpenIcon:ia,PanelRight:f4,PanelRightClose:u4,PanelRightCloseIcon:u4,PanelRightDashed:oa,PanelRightDashedIcon:oa,PanelRightIcon:f4,PanelRightInactive:oa,PanelRightInactiveIcon:oa,PanelRightOpen:p4,PanelRightOpenIcon:p4,PanelTop:g4,PanelTopClose:y4,PanelTopCloseIcon:y4,PanelTopDashed:na,PanelTopDashedIcon:na,PanelTopIcon:g4,PanelTopInactive:na,PanelTopInactiveIcon:na,PanelTopOpen:m4,PanelTopOpenIcon:m4,PanelsLeftBottom:k4,PanelsLeftBottomIcon:k4,PanelsLeftRight:pi,PanelsLeftRightIcon:pi,PanelsRightBottom:v4,PanelsRightBottomIcon:v4,PanelsTopBottom:pa,PanelsTopBottomIcon:pa,PanelsTopLeft:sa,PanelsTopLeftIcon:sa,Paperclip:b4,PaperclipIcon:b4,Parentheses:w4,ParenthesesIcon:w4,ParkingCircle:Xt,ParkingCircleIcon:Xt,ParkingCircleOff:Zt,ParkingCircleOffIcon:Zt,ParkingMeter:M4,ParkingMeterIcon:M4,ParkingSquare:to,ParkingSquareIcon:to,ParkingSquareOff:eo,ParkingSquareOffIcon:eo,PartyPopper:C4,PartyPopperIcon:C4,Pause:x4,PauseCircle:Kt,PauseCircleIcon:Kt,PauseIcon:x4,PauseOctagon:Ki,PauseOctagonIcon:Ki,PawPrint:L4,PawPrintIcon:L4,PcCase:E4,PcCaseIcon:E4,Pen:la,PenBox:pe,PenBoxIcon:pe,PenIcon:la,PenLine:ra,PenLineIcon:ra,PenOff:S4,PenOffIcon:S4,PenSquare:pe,PenSquareIcon:pe,PenTool:I4,PenToolIcon:I4,Pencil:R4,PencilIcon:R4,PencilLine:D4,PencilLineIcon:D4,PencilOff:T4,PencilOffIcon:T4,PencilRuler:z4,PencilRulerIcon:z4,Pentagon:H4,PentagonIcon:H4,Percent:A4,PercentCircle:Jt,PercentCircleIcon:Jt,PercentDiamond:fi,PercentDiamondIcon:fi,PercentIcon:A4,PercentSquare:io,PercentSquareIcon:io,PersonStanding:V4,PersonStandingIcon:V4,PhilippinePeso:q4,PhilippinePesoIcon:q4,Phone:_4,PhoneCall:P4,PhoneCallIcon:P4,PhoneForwarded:B4,PhoneForwardedIcon:B4,PhoneIcon:_4,PhoneIncoming:F4,PhoneIncomingIcon:F4,PhoneMissed:O4,PhoneMissedIcon:O4,PhoneOff:j4,PhoneOffIcon:j4,PhoneOutgoing:N4,PhoneOutgoingIcon:N4,Pi:W4,PiIcon:W4,PiSquare:ao,PiSquareIcon:ao,Piano:U4,PianoIcon:U4,Pickaxe:G4,PickaxeIcon:G4,PictureInPicture:Y4,PictureInPicture2:$4,PictureInPicture2Icon:$4,PictureInPictureIcon:Y4,PieChart:It,PieChartIcon:It,PiggyBank:Z4,PiggyBankIcon:Z4,Pilcrow:J4,PilcrowIcon:J4,PilcrowLeft:X4,PilcrowLeftIcon:X4,PilcrowRight:K4,PilcrowRightIcon:K4,PilcrowSquare:oo,PilcrowSquareIcon:oo,Pill:ev,PillBottle:Q4,PillBottleIcon:Q4,PillIcon:ev,Pin:iv,PinIcon:iv,PinOff:tv,PinOffIcon:tv,Pipette:av,PipetteIcon:av,Pizza:ov,PizzaIcon:ov,Plane:rv,PlaneIcon:rv,PlaneLanding:nv,PlaneLandingIcon:nv,PlaneTakeoff:sv,PlaneTakeoffIcon:sv,Play:lv,PlayCircle:Qt,PlayCircleIcon:Qt,PlayIcon:lv,PlaySquare:no,PlaySquareIcon:no,Plug:cv,Plug2:hv,Plug2Icon:hv,PlugIcon:cv,PlugZap:ha,PlugZap2:ha,PlugZap2Icon:ha,PlugZapIcon:ha,Plus:dv,PlusCircle:ei,PlusCircleIcon:ei,PlusIcon:dv,PlusSquare:so,PlusSquareIcon:so,Pocket:uv,PocketIcon:uv,PocketKnife:pv,PocketKnifeIcon:pv,Podcast:yv,PodcastIcon:yv,Pointer:mv,PointerIcon:mv,PointerOff:fv,PointerOffIcon:fv,Popcorn:gv,PopcornIcon:gv,Popsicle:kv,PopsicleIcon:kv,PoundSterling:vv,PoundSterlingIcon:vv,Power:wv,PowerCircle:ti,PowerCircleIcon:ti,PowerIcon:wv,PowerOff:bv,PowerOffIcon:bv,PowerSquare:ro,PowerSquareIcon:ro,Presentation:Mv,PresentationIcon:Mv,Printer:xv,PrinterCheck:Cv,PrinterCheckIcon:Cv,PrinterIcon:xv,Projector:Lv,ProjectorIcon:Lv,Proportions:Ev,ProportionsIcon:Ev,Puzzle:Sv,PuzzleIcon:Sv,Pyramid:Iv,PyramidIcon:Iv,QrCode:Tv,QrCodeIcon:Tv,Quote:zv,QuoteIcon:zv,Rabbit:Dv,RabbitIcon:Dv,Radar:Rv,RadarIcon:Rv,Radiation:Hv,RadiationIcon:Hv,Radical:Av,RadicalIcon:Av,Radio:qv,RadioIcon:qv,RadioReceiver:Vv,RadioReceiverIcon:Vv,RadioTower:Pv,RadioTowerIcon:Pv,Radius:Bv,RadiusIcon:Bv,RailSymbol:Fv,RailSymbolIcon:Fv,Rainbow:Ov,RainbowIcon:Ov,Rat:jv,RatIcon:jv,Ratio:Nv,RatioIcon:Nv,Receipt:Kv,ReceiptCent:_v,ReceiptCentIcon:_v,ReceiptEuro:Wv,ReceiptEuroIcon:Wv,ReceiptIcon:Kv,ReceiptIndianRupee:Gv,ReceiptIndianRupeeIcon:Gv,ReceiptJapaneseYen:Uv,ReceiptJapaneseYenIcon:Uv,ReceiptPoundSterling:Yv,ReceiptPoundSterlingIcon:Yv,ReceiptRussianRuble:$v,ReceiptRussianRubleIcon:$v,ReceiptSwissFranc:Zv,ReceiptSwissFrancIcon:Zv,ReceiptText:Xv,ReceiptTextIcon:Xv,RectangleEllipsis:ca,RectangleEllipsisIcon:ca,RectangleGoggles:Jv,RectangleGogglesIcon:Jv,RectangleHorizontal:Qv,RectangleHorizontalIcon:Qv,RectangleVertical:e5,RectangleVerticalIcon:e5,Recycle:t5,RecycleIcon:t5,Redo:o5,Redo2:i5,Redo2Icon:i5,RedoDot:a5,RedoDotIcon:a5,RedoIcon:o5,RefreshCcw:s5,RefreshCcwDot:n5,RefreshCcwDotIcon:n5,RefreshCcwIcon:s5,RefreshCw:l5,RefreshCwIcon:l5,RefreshCwOff:r5,RefreshCwOffIcon:r5,Refrigerator:c5,RefrigeratorIcon:c5,Regex:h5,RegexIcon:h5,RemoveFormatting:d5,RemoveFormattingIcon:d5,Repeat:y5,Repeat1:u5,Repeat1Icon:u5,Repeat2:p5,Repeat2Icon:p5,RepeatIcon:y5,Replace:m5,ReplaceAll:f5,ReplaceAllIcon:f5,ReplaceIcon:m5,Reply:k5,ReplyAll:g5,ReplyAllIcon:g5,ReplyIcon:k5,Rewind:v5,RewindIcon:v5,Ribbon:b5,RibbonIcon:b5,Rocket:w5,RocketIcon:w5,RockingChair:M5,RockingChairIcon:M5,RollerCoaster:C5,RollerCoasterIcon:C5,Rotate3D:da,Rotate3DIcon:da,Rotate3d:da,Rotate3dIcon:da,RotateCcw:E5,RotateCcwIcon:E5,RotateCcwKey:x5,RotateCcwKeyIcon:x5,RotateCcwSquare:L5,RotateCcwSquareIcon:L5,RotateCw:I5,RotateCwIcon:I5,RotateCwSquare:S5,RotateCwSquareIcon:S5,Route:z5,RouteIcon:z5,RouteOff:T5,RouteOffIcon:T5,Router:D5,RouterIcon:D5,Rows:ua,Rows2:ua,Rows2Icon:ua,Rows3:pa,Rows3Icon:pa,Rows4:R5,Rows4Icon:R5,RowsIcon:ua,Rss:H5,RssIcon:H5,Ruler:V5,RulerDimensionLine:A5,RulerDimensionLineIcon:A5,RulerIcon:V5,RussianRuble:P5,RussianRubleIcon:P5,Sailboat:q5,SailboatIcon:q5,Salad:B5,SaladIcon:B5,Sandwich:F5,SandwichIcon:F5,Satellite:j5,SatelliteDish:O5,SatelliteDishIcon:O5,SatelliteIcon:j5,SaudiRiyal:N5,SaudiRiyalIcon:N5,Save:U5,SaveAll:_5,SaveAllIcon:_5,SaveIcon:U5,SaveOff:W5,SaveOffIcon:W5,Scale:G5,Scale3D:ya,Scale3DIcon:ya,Scale3d:ya,Scale3dIcon:ya,ScaleIcon:G5,Scaling:$5,ScalingIcon:$5,Scan:tb,ScanBarcode:Y5,ScanBarcodeIcon:Y5,ScanEye:X5,ScanEyeIcon:X5,ScanFace:Z5,ScanFaceIcon:Z5,ScanHeart:K5,ScanHeartIcon:K5,ScanIcon:tb,ScanLine:Q5,ScanLineIcon:Q5,ScanQrCode:J5,ScanQrCodeIcon:J5,ScanSearch:eb,ScanSearchIcon:eb,ScanText:ib,ScanTextIcon:ib,ScatterChart:Tt,ScatterChartIcon:Tt,School:ab,School2:xo,School2Icon:xo,SchoolIcon:ab,Scissors:nb,ScissorsIcon:nb,ScissorsLineDashed:ob,ScissorsLineDashedIcon:ob,ScissorsSquare:lo,ScissorsSquareDashedBottom:Ha,ScissorsSquareDashedBottomIcon:Ha,ScissorsSquareIcon:lo,ScreenShare:rb,ScreenShareIcon:rb,ScreenShareOff:sb,ScreenShareOffIcon:sb,Scroll:hb,ScrollIcon:hb,ScrollText:lb,ScrollTextIcon:lb,Search:yb,SearchCheck:cb,SearchCheckIcon:cb,SearchCode:db,SearchCodeIcon:db,SearchIcon:yb,SearchSlash:ub,SearchSlashIcon:ub,SearchX:pb,SearchXIcon:pb,Section:fb,SectionIcon:fb,Send:kb,SendHorizonal:fa,SendHorizonalIcon:fa,SendHorizontal:fa,SendHorizontalIcon:fa,SendIcon:kb,SendToBack:mb,SendToBackIcon:mb,SeparatorHorizontal:gb,SeparatorHorizontalIcon:gb,SeparatorVertical:bb,SeparatorVerticalIcon:bb,Server:Cb,ServerCog:vb,ServerCogIcon:vb,ServerCrash:wb,ServerCrashIcon:wb,ServerIcon:Cb,ServerOff:Mb,ServerOffIcon:Mb,Settings:Lb,Settings2:xb,Settings2Icon:xb,SettingsIcon:Lb,Shapes:Eb,ShapesIcon:Eb,Share:Ib,Share2:Sb,Share2Icon:Sb,ShareIcon:Ib,Sheet:Tb,SheetIcon:Tb,Shell:Db,ShellIcon:Db,Shield:jb,ShieldAlert:zb,ShieldAlertIcon:zb,ShieldBan:Rb,ShieldBanIcon:Rb,ShieldCheck:Hb,ShieldCheckIcon:Hb,ShieldClose:ma,ShieldCloseIcon:ma,ShieldEllipsis:Ab,ShieldEllipsisIcon:Ab,ShieldHalf:Vb,ShieldHalfIcon:Vb,ShieldIcon:jb,ShieldMinus:Pb,ShieldMinusIcon:Pb,ShieldOff:qb,ShieldOffIcon:qb,ShieldPlus:Bb,ShieldPlusIcon:Bb,ShieldQuestion:Fb,ShieldQuestionIcon:Fb,ShieldUser:Ob,ShieldUserIcon:Ob,ShieldX:ma,ShieldXIcon:ma,Ship:Nb,ShipIcon:Nb,ShipWheel:Wb,ShipWheelIcon:Wb,Shirt:_b,ShirtIcon:_b,ShoppingBag:Ub,ShoppingBagIcon:Ub,ShoppingBasket:Gb,ShoppingBasketIcon:Gb,ShoppingCart:$b,ShoppingCartIcon:$b,Shovel:Yb,ShovelIcon:Yb,ShowerHead:Zb,ShowerHeadIcon:Zb,Shredder:Xb,ShredderIcon:Xb,Shrimp:Kb,ShrimpIcon:Kb,Shrink:Jb,ShrinkIcon:Jb,Shrub:Qb,ShrubIcon:Qb,Shuffle:ew,ShuffleIcon:ew,Sidebar:aa,SidebarClose:ea,SidebarCloseIcon:ea,SidebarIcon:aa,SidebarOpen:ia,SidebarOpenIcon:ia,Sigma:tw,SigmaIcon:tw,SigmaSquare:ho,SigmaSquareIcon:ho,Signal:sw,SignalHigh:iw,SignalHighIcon:iw,SignalIcon:sw,SignalLow:aw,SignalLowIcon:aw,SignalMedium:ow,SignalMediumIcon:ow,SignalZero:nw,SignalZeroIcon:nw,Signature:rw,SignatureIcon:rw,Signpost:hw,SignpostBig:lw,SignpostBigIcon:lw,SignpostIcon:hw,Siren:cw,SirenIcon:cw,SkipBack:dw,SkipBackIcon:dw,SkipForward:uw,SkipForwardIcon:uw,Skull:pw,SkullIcon:pw,Slack:yw,SlackIcon:yw,Slash:fw,SlashIcon:fw,SlashSquare:uo,SlashSquareIcon:uo,Slice:gw,SliceIcon:gw,Sliders:ga,SlidersHorizontal:mw,SlidersHorizontalIcon:mw,SlidersIcon:ga,SlidersVertical:ga,SlidersVerticalIcon:ga,Smartphone:bw,SmartphoneCharging:kw,SmartphoneChargingIcon:kw,SmartphoneIcon:bw,SmartphoneNfc:vw,SmartphoneNfcIcon:vw,Smile:Mw,SmileIcon:Mw,SmilePlus:ww,SmilePlusIcon:ww,Snail:Cw,SnailIcon:Cw,Snowflake:xw,SnowflakeIcon:xw,SoapDispenserDroplet:Lw,SoapDispenserDropletIcon:Lw,Sofa:Ew,SofaIcon:Ew,SortAsc:lt,SortAscIcon:lt,SortDesc:nt,SortDescIcon:nt,Soup:Sw,SoupIcon:Sw,Space:Iw,SpaceIcon:Iw,Spade:Tw,SpadeIcon:Tw,Sparkle:Dw,SparkleIcon:Dw,Sparkles:ka,SparklesIcon:ka,Speaker:zw,SpeakerIcon:zw,Speech:Rw,SpeechIcon:Rw,SpellCheck:Aw,SpellCheck2:Hw,SpellCheck2Icon:Hw,SpellCheckIcon:Aw,Spline:Pw,SplineIcon:Pw,SplinePointer:Vw,SplinePointerIcon:Vw,Split:Bw,SplitIcon:Bw,SplitSquareHorizontal:co,SplitSquareHorizontalIcon:co,SplitSquareVertical:po,SplitSquareVerticalIcon:po,SprayCan:qw,SprayCanIcon:qw,Sprout:Fw,SproutIcon:Fw,Square:$w,SquareActivity:va,SquareActivityIcon:va,SquareArrowDown:Ma,SquareArrowDownIcon:Ma,SquareArrowDownLeft:ba,SquareArrowDownLeftIcon:ba,SquareArrowDownRight:wa,SquareArrowDownRightIcon:wa,SquareArrowLeft:Ca,SquareArrowLeftIcon:Ca,SquareArrowOutDownLeft:xa,SquareArrowOutDownLeftIcon:xa,SquareArrowOutDownRight:La,SquareArrowOutDownRightIcon:La,SquareArrowOutUpLeft:Ea,SquareArrowOutUpLeftIcon:Ea,SquareArrowOutUpRight:Sa,SquareArrowOutUpRightIcon:Sa,SquareArrowRight:Ia,SquareArrowRightIcon:Ia,SquareArrowUp:za,SquareArrowUpIcon:za,SquareArrowUpLeft:Da,SquareArrowUpLeftIcon:Da,SquareArrowUpRight:Ta,SquareArrowUpRightIcon:Ta,SquareAsterisk:Ra,SquareAsteriskIcon:Ra,SquareBottomDashedScissors:Ha,SquareBottomDashedScissorsIcon:Ha,SquareChartGantt:Te,SquareChartGanttIcon:Te,SquareCheck:Va,SquareCheckBig:Aa,SquareCheckBigIcon:Aa,SquareCheckIcon:Va,SquareChevronDown:Pa,SquareChevronDownIcon:Pa,SquareChevronLeft:qa,SquareChevronLeftIcon:qa,SquareChevronRight:Ba,SquareChevronRightIcon:Ba,SquareChevronUp:Fa,SquareChevronUpIcon:Fa,SquareCode:Oa,SquareCodeIcon:Oa,SquareDashed:_a,SquareDashedBottom:jw,SquareDashedBottomCode:Ow,SquareDashedBottomCodeIcon:Ow,SquareDashedBottomIcon:jw,SquareDashedIcon:_a,SquareDashedKanban:ja,SquareDashedKanbanIcon:ja,SquareDashedMousePointer:Na,SquareDashedMousePointerIcon:Na,SquareDashedTopSolid:Nw,SquareDashedTopSolidIcon:Nw,SquareDivide:Wa,SquareDivideIcon:Wa,SquareDot:Ua,SquareDotIcon:Ua,SquareEqual:Ga,SquareEqualIcon:Ga,SquareFunction:$a,SquareFunctionIcon:$a,SquareGanttChart:Te,SquareGanttChartIcon:Te,SquareIcon:$w,SquareKanban:Ya,SquareKanbanIcon:Ya,SquareLibrary:Za,SquareLibraryIcon:Za,SquareM:Xa,SquareMIcon:Xa,SquareMenu:Ka,SquareMenuIcon:Ka,SquareMinus:Ja,SquareMinusIcon:Ja,SquareMousePointer:Qa,SquareMousePointerIcon:Qa,SquareParking:to,SquareParkingIcon:to,SquareParkingOff:eo,SquareParkingOffIcon:eo,SquarePen:pe,SquarePenIcon:pe,SquarePercent:io,SquarePercentIcon:io,SquarePi:ao,SquarePiIcon:ao,SquarePilcrow:oo,SquarePilcrowIcon:oo,SquarePlay:no,SquarePlayIcon:no,SquarePlus:so,SquarePlusIcon:so,SquarePower:ro,SquarePowerIcon:ro,SquareRadical:_w,SquareRadicalIcon:_w,SquareRoundCorner:Ww,SquareRoundCornerIcon:Ww,SquareScissors:lo,SquareScissorsIcon:lo,SquareSigma:ho,SquareSigmaIcon:ho,SquareSlash:uo,SquareSlashIcon:uo,SquareSplitHorizontal:co,SquareSplitHorizontalIcon:co,SquareSplitVertical:po,SquareSplitVerticalIcon:po,SquareSquare:Uw,SquareSquareIcon:Uw,SquareStack:Gw,SquareStackIcon:Gw,SquareTerminal:yo,SquareTerminalIcon:yo,SquareUser:mo,SquareUserIcon:mo,SquareUserRound:fo,SquareUserRoundIcon:fo,SquareX:go,SquareXIcon:go,SquaresExclude:Zw,SquaresExcludeIcon:Zw,SquaresIntersect:Yw,SquaresIntersectIcon:Yw,SquaresSubtract:Xw,SquaresSubtractIcon:Xw,SquaresUnite:Kw,SquaresUniteIcon:Kw,Squircle:Jw,SquircleIcon:Jw,Squirrel:Qw,SquirrelIcon:Qw,Stamp:e6,StampIcon:e6,Star:a6,StarHalf:t6,StarHalfIcon:t6,StarIcon:a6,StarOff:i6,StarOffIcon:i6,Stars:ka,StarsIcon:ka,StepBack:o6,StepBackIcon:o6,StepForward:n6,StepForwardIcon:n6,Stethoscope:s6,StethoscopeIcon:s6,Sticker:r6,StickerIcon:r6,StickyNote:l6,StickyNoteIcon:l6,StopCircle:ai,StopCircleIcon:ai,Store:h6,StoreIcon:h6,StretchHorizontal:c6,StretchHorizontalIcon:c6,StretchVertical:d6,StretchVerticalIcon:d6,Strikethrough:u6,StrikethroughIcon:u6,Subscript:p6,SubscriptIcon:p6,Subtitles:mt,SubtitlesIcon:mt,Sun:k6,SunDim:f6,SunDimIcon:f6,SunIcon:k6,SunMedium:y6,SunMediumIcon:y6,SunMoon:m6,SunMoonIcon:m6,SunSnow:g6,SunSnowIcon:g6,Sunrise:v6,SunriseIcon:v6,Sunset:b6,SunsetIcon:b6,Superscript:w6,SuperscriptIcon:w6,SwatchBook:M6,SwatchBookIcon:M6,SwissFranc:C6,SwissFrancIcon:C6,SwitchCamera:x6,SwitchCameraIcon:x6,Sword:L6,SwordIcon:L6,Swords:E6,SwordsIcon:E6,Syringe:S6,SyringeIcon:S6,Table:V6,Table2:I6,Table2Icon:I6,TableCellsMerge:T6,TableCellsMergeIcon:T6,TableCellsSplit:D6,TableCellsSplitIcon:D6,TableColumnsSplit:z6,TableColumnsSplitIcon:z6,TableConfig:Se,TableConfigIcon:Se,TableIcon:V6,TableOfContents:R6,TableOfContentsIcon:R6,TableProperties:H6,TablePropertiesIcon:H6,TableRowsSplit:A6,TableRowsSplitIcon:A6,Tablet:q6,TabletIcon:q6,TabletSmartphone:P6,TabletSmartphoneIcon:P6,Tablets:B6,TabletsIcon:B6,Tag:F6,TagIcon:F6,Tags:O6,TagsIcon:O6,Tally1:j6,Tally1Icon:j6,Tally2:N6,Tally2Icon:N6,Tally3:_6,Tally3Icon:_6,Tally4:W6,Tally4Icon:W6,Tally5:U6,Tally5Icon:U6,Tangent:G6,TangentIcon:G6,Target:$6,TargetIcon:$6,Telescope:Y6,TelescopeIcon:Y6,Tent:X6,TentIcon:X6,TentTree:Z6,TentTreeIcon:Z6,Terminal:K6,TerminalIcon:K6,TerminalSquare:yo,TerminalSquareIcon:yo,TestTube:J6,TestTube2:ko,TestTube2Icon:ko,TestTubeDiagonal:ko,TestTubeDiagonalIcon:ko,TestTubeIcon:J6,TestTubes:Q6,TestTubesIcon:Q6,Text:o8,TextCursor:t8,TextCursorIcon:t8,TextCursorInput:e8,TextCursorInputIcon:e8,TextIcon:o8,TextQuote:i8,TextQuoteIcon:i8,TextSearch:a8,TextSearchIcon:a8,TextSelect:vo,TextSelectIcon:vo,TextSelection:vo,TextSelectionIcon:vo,Theater:n8,TheaterIcon:n8,Thermometer:l8,ThermometerIcon:l8,ThermometerSnowflake:s8,ThermometerSnowflakeIcon:s8,ThermometerSun:r8,ThermometerSunIcon:r8,ThumbsDown:h8,ThumbsDownIcon:h8,ThumbsUp:c8,ThumbsUpIcon:c8,Ticket:g8,TicketCheck:d8,TicketCheckIcon:d8,TicketIcon:g8,TicketMinus:u8,TicketMinusIcon:u8,TicketPercent:p8,TicketPercentIcon:p8,TicketPlus:y8,TicketPlusIcon:y8,TicketSlash:f8,TicketSlashIcon:f8,TicketX:m8,TicketXIcon:m8,Tickets:b8,TicketsIcon:b8,TicketsPlane:k8,TicketsPlaneIcon:k8,Timer:M8,TimerIcon:M8,TimerOff:v8,TimerOffIcon:v8,TimerReset:w8,TimerResetIcon:w8,ToggleLeft:C8,ToggleLeftIcon:C8,ToggleRight:x8,ToggleRightIcon:x8,Toilet:L8,ToiletIcon:L8,Tornado:E8,TornadoIcon:E8,Torus:S8,TorusIcon:S8,Touchpad:T8,TouchpadIcon:T8,TouchpadOff:I8,TouchpadOffIcon:I8,TowerControl:D8,TowerControlIcon:D8,ToyBrick:z8,ToyBrickIcon:z8,Tractor:R8,TractorIcon:R8,TrafficCone:H8,TrafficConeIcon:H8,Train:bo,TrainFront:V8,TrainFrontIcon:V8,TrainFrontTunnel:A8,TrainFrontTunnelIcon:A8,TrainIcon:bo,TrainTrack:P8,TrainTrackIcon:P8,TramFront:bo,TramFrontIcon:bo,Transgender:q8,TransgenderIcon:q8,Trash:F8,Trash2:B8,Trash2Icon:B8,TrashIcon:F8,TreeDeciduous:O8,TreeDeciduousIcon:O8,TreePalm:wo,TreePalmIcon:wo,TreePine:j8,TreePineIcon:j8,Trees:N8,TreesIcon:N8,Trello:_8,TrelloIcon:_8,TrendingDown:W8,TrendingDownIcon:W8,TrendingUp:G8,TrendingUpDown:U8,TrendingUpDownIcon:U8,TrendingUpIcon:G8,Triangle:Z8,TriangleAlert:Mo,TriangleAlertIcon:Mo,TriangleDashed:$8,TriangleDashedIcon:$8,TriangleIcon:Z8,TriangleRight:Y8,TriangleRightIcon:Y8,Trophy:X8,TrophyIcon:X8,Truck:K8,TruckElectric:J8,TruckElectricIcon:J8,TruckIcon:K8,Turtle:Q8,TurtleIcon:Q8,Tv:tM,Tv2:Co,Tv2Icon:Co,TvIcon:tM,TvMinimal:Co,TvMinimalIcon:Co,TvMinimalPlay:eM,TvMinimalPlayIcon:eM,Twitch:iM,TwitchIcon:iM,Twitter:aM,TwitterIcon:aM,Type:nM,TypeIcon:nM,TypeOutline:oM,TypeOutlineIcon:oM,Umbrella:rM,UmbrellaIcon:rM,UmbrellaOff:sM,UmbrellaOffIcon:sM,Underline:lM,UnderlineIcon:lM,Undo:dM,Undo2:cM,Undo2Icon:cM,UndoDot:hM,UndoDotIcon:hM,UndoIcon:dM,UnfoldHorizontal:uM,UnfoldHorizontalIcon:uM,UnfoldVertical:pM,UnfoldVerticalIcon:pM,Ungroup:yM,UngroupIcon:yM,University:xo,UniversityIcon:xo,Unlink:mM,Unlink2:fM,Unlink2Icon:fM,UnlinkIcon:mM,Unlock:Gi,UnlockIcon:Gi,UnlockKeyhole:Ui,UnlockKeyholeIcon:Ui,Unplug:gM,UnplugIcon:gM,Upload:kM,UploadCloud:ci,UploadCloudIcon:ci,UploadIcon:kM,Usb:vM,UsbIcon:vM,User:DM,User2:Do,User2Icon:Do,UserCheck:bM,UserCheck2:Lo,UserCheck2Icon:Lo,UserCheckIcon:bM,UserCircle:ni,UserCircle2:oi,UserCircle2Icon:oi,UserCircleIcon:ni,UserCog:wM,UserCog2:Eo,UserCog2Icon:Eo,UserCogIcon:wM,UserIcon:DM,UserLock:MM,UserLockIcon:MM,UserMinus:CM,UserMinus2:So,UserMinus2Icon:So,UserMinusIcon:CM,UserPen:xM,UserPenIcon:xM,UserPlus:LM,UserPlus2:Io,UserPlus2Icon:Io,UserPlusIcon:LM,UserRound:Do,UserRoundCheck:Lo,UserRoundCheckIcon:Lo,UserRoundCog:Eo,UserRoundCogIcon:Eo,UserRoundIcon:Do,UserRoundMinus:So,UserRoundMinusIcon:So,UserRoundPen:EM,UserRoundPenIcon:EM,UserRoundPlus:Io,UserRoundPlusIcon:Io,UserRoundSearch:SM,UserRoundSearchIcon:SM,UserRoundX:To,UserRoundXIcon:To,UserSearch:IM,UserSearchIcon:IM,UserSquare:mo,UserSquare2:fo,UserSquare2Icon:fo,UserSquareIcon:mo,UserX:TM,UserX2:To,UserX2Icon:To,UserXIcon:TM,Users:zM,Users2:zo,Users2Icon:zo,UsersIcon:zM,UsersRound:zo,UsersRoundIcon:zo,Utensils:Ho,UtensilsCrossed:Ro,UtensilsCrossedIcon:Ro,UtensilsIcon:Ho,UtilityPole:RM,UtilityPoleIcon:RM,Variable:HM,VariableIcon:HM,Vault:AM,VaultIcon:AM,Vegan:VM,VeganIcon:VM,VenetianMask:PM,VenetianMaskIcon:PM,Venus:BM,VenusAndMars:qM,VenusAndMarsIcon:qM,VenusIcon:BM,Verified:dt,VerifiedIcon:dt,Vibrate:OM,VibrateIcon:OM,VibrateOff:FM,VibrateOffIcon:FM,Video:_M,VideoIcon:_M,VideoOff:jM,VideoOffIcon:jM,Videotape:NM,VideotapeIcon:NM,View:WM,ViewIcon:WM,Voicemail:UM,VoicemailIcon:UM,Volleyball:GM,VolleyballIcon:GM,Volume:XM,Volume1:$M,Volume1Icon:$M,Volume2:YM,Volume2Icon:YM,VolumeIcon:XM,VolumeOff:ZM,VolumeOffIcon:ZM,VolumeX:KM,VolumeXIcon:KM,Vote:JM,VoteIcon:JM,Wallet:e7,Wallet2:Ao,Wallet2Icon:Ao,WalletCards:QM,WalletCardsIcon:QM,WalletIcon:e7,WalletMinimal:Ao,WalletMinimalIcon:Ao,Wallpaper:t7,WallpaperIcon:t7,Wand:i7,Wand2:Vo,Wand2Icon:Vo,WandIcon:i7,WandSparkles:Vo,WandSparklesIcon:Vo,Warehouse:a7,WarehouseIcon:a7,WashingMachine:o7,WashingMachineIcon:o7,Watch:n7,WatchIcon:n7,Waves:r7,WavesIcon:r7,WavesLadder:s7,WavesLadderIcon:s7,Waypoints:l7,WaypointsIcon:l7,Webcam:h7,WebcamIcon:h7,Webhook:c7,WebhookIcon:c7,WebhookOff:d7,WebhookOffIcon:d7,Weight:u7,WeightIcon:u7,Wheat:p7,WheatIcon:p7,WheatOff:y7,WheatOffIcon:y7,WholeWord:m7,WholeWordIcon:m7,Wifi:b7,WifiHigh:f7,WifiHighIcon:f7,WifiIcon:b7,WifiLow:g7,WifiLowIcon:g7,WifiOff:k7,WifiOffIcon:k7,WifiPen:v7,WifiPenIcon:v7,WifiZero:w7,WifiZeroIcon:w7,Wind:C7,WindArrowDown:M7,WindArrowDownIcon:M7,WindIcon:C7,Wine:L7,WineIcon:L7,WineOff:x7,WineOffIcon:x7,Workflow:E7,WorkflowIcon:E7,Worm:S7,WormIcon:S7,WrapText:I7,WrapTextIcon:I7,Wrench:T7,WrenchIcon:T7,X:D7,XCircle:si,XCircleIcon:si,XIcon:D7,XOctagon:Xi,XOctagonIcon:Xi,XSquare:go,XSquareIcon:go,Youtube:z7,YoutubeIcon:z7,Zap:H7,ZapIcon:H7,ZapOff:R7,ZapOffIcon:R7,ZoomIn:A7,ZoomInIcon:A7,ZoomOut:V7,ZoomOutIcon:V7,createLucideIcon:s,icons:ET},Symbol.toStringTag,{value:"Module"})),Nx=c.defineComponent({__name:"Icons",props:{name:{},size:{default:16},color:{default:"currentColor"},strokeWidth:{default:2},absoluteStrokeWidth:{type:Boolean,default:!1},classValue:{default:""}},setup(o){const e=o,t=c.computed(()=>ST[e.name]||null);return(i,a)=>t.value?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.value),{key:0,size:parseInt(i.size.toString()),color:i.color,"stroke-width":i.strokeWidth,"absolute-stroke-width":i.absoluteStrokeWidth,class:c.normalizeClass(i.classValue)},null,8,["size","color","stroke-width","absolute-stroke-width","class"])):c.createCommentVNode("",!0)}}),IT={class:"tabulator-body"},TT={class:"flex justify-end mb-4"},DT=["id"],zT={class:"flex"},RT={class:"w-1/2"},HT={key:0,class:"flex"},AT=["disabled","value","id"],VT=["for"],PT={class:"w-1/2"},qT={class:"mb-4"},BT=["value"],FT=c.defineComponent({__name:"Tabulator",props:{data:{default:()=>[]},columns:{default:()=>[]},placeholder:{default:""},paginationSize:{default:25},paginationSizeSelector:{default:()=>[25,50,100,200]},action:{type:Boolean,default:!1},actionButtons:{default:()=>[]},heightOffset:{default:250},actionMode:{default:"frontend"}},setup(o,{emit:e}){const t=S=>{const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let R="";for(let O=0;O<S;O++)R+=T.charAt(Math.floor(Math.random()*T.length));return R},i=o,a=c.ref("table_"+t(5)),n=e,r=c.ref(!1),l=c.ref(""),h=c.ref(i.paginationSize),d=c.ref([]),u=c.ref([]);let p=null;const y={title:[{name:"Settings"}],action:[{title:"Cancel",emit:"onClose",class:"btn-outline"},{title:"Apply",emit:"onSave"}]},f=c.computed(()=>i.columns.filter(S=>S.title.toLowerCase().includes(l.value.toLowerCase()))),g=()=>({title:"Action",field:"action",width:99,hozAlign:"center",headerSort:!1,formatter:S=>{var T=[];if(i.actionMode=="api"?T=S.getData().actions:i.actionMode=="frontend"&&(T=i.actionButtons),T){const R=T.map(O=>`
|
|
8025
|
-
<div class="p-1 hover:bg-secondary cursor-pointer transition-all flex gap-1 font-medium ${
|
|
8026
|
-
${
|
|
8024
|
+
*/const ST=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Un,AArrowDownIcon:Un,AArrowUp:$n,AArrowUpIcon:$n,ALargeSmall:Gn,ALargeSmallIcon:Gn,Accessibility:Yn,AccessibilityIcon:Yn,Activity:Zn,ActivityIcon:Zn,ActivitySquare:va,ActivitySquareIcon:va,AirVent:Kn,AirVentIcon:Kn,Airplay:Xn,AirplayIcon:Xn,AlarmCheck:tt,AlarmCheckIcon:tt,AlarmClock:Qn,AlarmClockCheck:tt,AlarmClockCheckIcon:tt,AlarmClockIcon:Qn,AlarmClockMinus:it,AlarmClockMinusIcon:it,AlarmClockOff:Jn,AlarmClockOffIcon:Jn,AlarmClockPlus:at,AlarmClockPlusIcon:at,AlarmMinus:it,AlarmMinusIcon:it,AlarmPlus:at,AlarmPlusIcon:at,AlarmSmoke:es,AlarmSmokeIcon:es,Album:ts,AlbumIcon:ts,AlertCircle:zt,AlertCircleIcon:zt,AlertOctagon:Zi,AlertOctagonIcon:Zi,AlertTriangle:Mo,AlertTriangleIcon:Mo,AlignCenter:os,AlignCenterHorizontal:is,AlignCenterHorizontalIcon:is,AlignCenterIcon:os,AlignCenterVertical:as,AlignCenterVerticalIcon:as,AlignEndHorizontal:ns,AlignEndHorizontalIcon:ns,AlignEndVertical:ss,AlignEndVerticalIcon:ss,AlignHorizontalDistributeCenter:rs,AlignHorizontalDistributeCenterIcon:rs,AlignHorizontalDistributeEnd:ls,AlignHorizontalDistributeEndIcon:ls,AlignHorizontalDistributeStart:hs,AlignHorizontalDistributeStartIcon:hs,AlignHorizontalJustifyCenter:cs,AlignHorizontalJustifyCenterIcon:cs,AlignHorizontalJustifyEnd:ds,AlignHorizontalJustifyEndIcon:ds,AlignHorizontalJustifyStart:us,AlignHorizontalJustifyStartIcon:us,AlignHorizontalSpaceAround:ps,AlignHorizontalSpaceAroundIcon:ps,AlignHorizontalSpaceBetween:ys,AlignHorizontalSpaceBetweenIcon:ys,AlignJustify:fs,AlignJustifyIcon:fs,AlignLeft:ms,AlignLeftIcon:ms,AlignRight:ks,AlignRightIcon:ks,AlignStartHorizontal:gs,AlignStartHorizontalIcon:gs,AlignStartVertical:vs,AlignStartVerticalIcon:vs,AlignVerticalDistributeCenter:bs,AlignVerticalDistributeCenterIcon:bs,AlignVerticalDistributeEnd:ws,AlignVerticalDistributeEndIcon:ws,AlignVerticalDistributeStart:Ms,AlignVerticalDistributeStartIcon:Ms,AlignVerticalJustifyCenter:Cs,AlignVerticalJustifyCenterIcon:Cs,AlignVerticalJustifyEnd:xs,AlignVerticalJustifyEndIcon:xs,AlignVerticalJustifyStart:Ls,AlignVerticalJustifyStartIcon:Ls,AlignVerticalSpaceAround:Es,AlignVerticalSpaceAroundIcon:Es,AlignVerticalSpaceBetween:Ss,AlignVerticalSpaceBetweenIcon:Ss,Ambulance:Is,AmbulanceIcon:Is,Ampersand:Ts,AmpersandIcon:Ts,Ampersands:Ds,AmpersandsIcon:Ds,Amphora:zs,AmphoraIcon:zs,Anchor:Hs,AnchorIcon:Hs,Angry:Rs,AngryIcon:Rs,Annoyed:As,AnnoyedIcon:As,Antenna:Vs,AntennaIcon:Vs,Anvil:Ps,AnvilIcon:Ps,Aperture:qs,ApertureIcon:qs,AppWindow:Fs,AppWindowIcon:Fs,AppWindowMac:Bs,AppWindowMacIcon:Bs,Apple:Os,AppleIcon:Os,Archive:_s,ArchiveIcon:_s,ArchiveRestore:js,ArchiveRestoreIcon:js,ArchiveX:Ns,ArchiveXIcon:Ns,AreaChart:gt,AreaChartIcon:gt,Armchair:Us,ArmchairIcon:Us,ArrowBigDown:$s,ArrowBigDownDash:Ws,ArrowBigDownDashIcon:Ws,ArrowBigDownIcon:$s,ArrowBigLeft:Ys,ArrowBigLeftDash:Gs,ArrowBigLeftDashIcon:Gs,ArrowBigLeftIcon:Ys,ArrowBigRight:Xs,ArrowBigRightDash:Zs,ArrowBigRightDashIcon:Zs,ArrowBigRightIcon:Xs,ArrowBigUp:Js,ArrowBigUpDash:Ks,ArrowBigUpDashIcon:Ks,ArrowBigUpIcon:Js,ArrowDown:lr,ArrowDown01:Qs,ArrowDown01Icon:Qs,ArrowDown10:er,ArrowDown10Icon:er,ArrowDownAZ:ot,ArrowDownAZIcon:ot,ArrowDownAz:ot,ArrowDownAzIcon:ot,ArrowDownCircle:Dt,ArrowDownCircleIcon:Dt,ArrowDownFromLine:tr,ArrowDownFromLineIcon:tr,ArrowDownIcon:lr,ArrowDownLeft:ir,ArrowDownLeftFromCircle:Ht,ArrowDownLeftFromCircleIcon:Ht,ArrowDownLeftFromSquare:xa,ArrowDownLeftFromSquareIcon:xa,ArrowDownLeftIcon:ir,ArrowDownLeftSquare:ba,ArrowDownLeftSquareIcon:ba,ArrowDownNarrowWide:ar,ArrowDownNarrowWideIcon:ar,ArrowDownRight:or,ArrowDownRightFromCircle:At,ArrowDownRightFromCircleIcon:At,ArrowDownRightFromSquare:La,ArrowDownRightFromSquareIcon:La,ArrowDownRightIcon:or,ArrowDownRightSquare:wa,ArrowDownRightSquareIcon:wa,ArrowDownSquare:Ma,ArrowDownSquareIcon:Ma,ArrowDownToDot:nr,ArrowDownToDotIcon:nr,ArrowDownToLine:rr,ArrowDownToLineIcon:rr,ArrowDownUp:sr,ArrowDownUpIcon:sr,ArrowDownWideNarrow:nt,ArrowDownWideNarrowIcon:nt,ArrowDownZA:st,ArrowDownZAIcon:st,ArrowDownZa:st,ArrowDownZaIcon:st,ArrowLeft:ur,ArrowLeftCircle:Rt,ArrowLeftCircleIcon:Rt,ArrowLeftFromLine:hr,ArrowLeftFromLineIcon:hr,ArrowLeftIcon:ur,ArrowLeftRight:cr,ArrowLeftRightIcon:cr,ArrowLeftSquare:Ca,ArrowLeftSquareIcon:Ca,ArrowLeftToLine:dr,ArrowLeftToLineIcon:dr,ArrowRight:mr,ArrowRightCircle:qt,ArrowRightCircleIcon:qt,ArrowRightFromLine:pr,ArrowRightFromLineIcon:pr,ArrowRightIcon:mr,ArrowRightLeft:yr,ArrowRightLeftIcon:yr,ArrowRightSquare:Ia,ArrowRightSquareIcon:Ia,ArrowRightToLine:fr,ArrowRightToLineIcon:fr,ArrowUp:Er,ArrowUp01:gr,ArrowUp01Icon:gr,ArrowUp10:vr,ArrowUp10Icon:vr,ArrowUpAZ:rt,ArrowUpAZIcon:rt,ArrowUpAz:rt,ArrowUpAzIcon:rt,ArrowUpCircle:Bt,ArrowUpCircleIcon:Bt,ArrowUpDown:kr,ArrowUpDownIcon:kr,ArrowUpFromDot:br,ArrowUpFromDotIcon:br,ArrowUpFromLine:wr,ArrowUpFromLineIcon:wr,ArrowUpIcon:Er,ArrowUpLeft:Mr,ArrowUpLeftFromCircle:Vt,ArrowUpLeftFromCircleIcon:Vt,ArrowUpLeftFromSquare:Ea,ArrowUpLeftFromSquareIcon:Ea,ArrowUpLeftIcon:Mr,ArrowUpLeftSquare:Da,ArrowUpLeftSquareIcon:Da,ArrowUpNarrowWide:lt,ArrowUpNarrowWideIcon:lt,ArrowUpRight:Cr,ArrowUpRightFromCircle:Pt,ArrowUpRightFromCircleIcon:Pt,ArrowUpRightFromSquare:Sa,ArrowUpRightFromSquareIcon:Sa,ArrowUpRightIcon:Cr,ArrowUpRightSquare:Ta,ArrowUpRightSquareIcon:Ta,ArrowUpSquare:za,ArrowUpSquareIcon:za,ArrowUpToLine:xr,ArrowUpToLineIcon:xr,ArrowUpWideNarrow:Lr,ArrowUpWideNarrowIcon:Lr,ArrowUpZA:ht,ArrowUpZAIcon:ht,ArrowUpZa:ht,ArrowUpZaIcon:ht,ArrowsUpFromLine:Sr,ArrowsUpFromLineIcon:Sr,Asterisk:Ir,AsteriskIcon:Ir,AsteriskSquare:Ra,AsteriskSquareIcon:Ra,AtSign:Tr,AtSignIcon:Tr,Atom:Dr,AtomIcon:Dr,AudioLines:zr,AudioLinesIcon:zr,AudioWaveform:Rr,AudioWaveformIcon:Rr,Award:Hr,AwardIcon:Hr,Axe:Ar,AxeIcon:Ar,Axis3D:ct,Axis3DIcon:ct,Axis3d:ct,Axis3dIcon:ct,Baby:Vr,BabyIcon:Vr,Backpack:Pr,BackpackIcon:Pr,Badge:Jr,BadgeAlert:qr,BadgeAlertIcon:qr,BadgeCent:Br,BadgeCentIcon:Br,BadgeCheck:dt,BadgeCheckIcon:dt,BadgeDollarSign:Fr,BadgeDollarSignIcon:Fr,BadgeEuro:Or,BadgeEuroIcon:Or,BadgeHelp:jr,BadgeHelpIcon:jr,BadgeIcon:Jr,BadgeIndianRupee:Nr,BadgeIndianRupeeIcon:Nr,BadgeInfo:_r,BadgeInfoIcon:_r,BadgeJapaneseYen:Wr,BadgeJapaneseYenIcon:Wr,BadgeMinus:Ur,BadgeMinusIcon:Ur,BadgePercent:$r,BadgePercentIcon:$r,BadgePlus:Gr,BadgePlusIcon:Gr,BadgePoundSterling:Yr,BadgePoundSterlingIcon:Yr,BadgeRussianRuble:Zr,BadgeRussianRubleIcon:Zr,BadgeSwissFranc:Xr,BadgeSwissFrancIcon:Xr,BadgeX:Kr,BadgeXIcon:Kr,BaggageClaim:Qr,BaggageClaimIcon:Qr,Ban:el,BanIcon:el,Banana:tl,BananaIcon:tl,Bandage:il,BandageIcon:il,Banknote:sl,BanknoteArrowDown:al,BanknoteArrowDownIcon:al,BanknoteArrowUp:ol,BanknoteArrowUpIcon:ol,BanknoteIcon:sl,BanknoteX:nl,BanknoteXIcon:nl,BarChart:Lt,BarChart2:Et,BarChart2Icon:Et,BarChart3:Ct,BarChart3Icon:Ct,BarChart4:Mt,BarChart4Icon:Mt,BarChartBig:wt,BarChartBigIcon:wt,BarChartHorizontal:vt,BarChartHorizontalBig:kt,BarChartHorizontalBigIcon:kt,BarChartHorizontalIcon:vt,BarChartIcon:Lt,Barcode:rl,BarcodeIcon:rl,Baseline:ll,BaselineIcon:ll,Bath:hl,BathIcon:hl,Battery:ml,BatteryCharging:cl,BatteryChargingIcon:cl,BatteryFull:dl,BatteryFullIcon:dl,BatteryIcon:ml,BatteryLow:ul,BatteryLowIcon:ul,BatteryMedium:pl,BatteryMediumIcon:pl,BatteryPlus:yl,BatteryPlusIcon:yl,BatteryWarning:fl,BatteryWarningIcon:fl,Beaker:gl,BeakerIcon:gl,Bean:vl,BeanIcon:vl,BeanOff:kl,BeanOffIcon:kl,Bed:Ml,BedDouble:bl,BedDoubleIcon:bl,BedIcon:Ml,BedSingle:wl,BedSingleIcon:wl,Beef:xl,BeefIcon:xl,Beer:Ll,BeerIcon:Ll,BeerOff:Cl,BeerOffIcon:Cl,Bell:Rl,BellDot:El,BellDotIcon:El,BellElectric:Sl,BellElectricIcon:Sl,BellIcon:Rl,BellMinus:Il,BellMinusIcon:Il,BellOff:Tl,BellOffIcon:Tl,BellPlus:Dl,BellPlusIcon:Dl,BellRing:zl,BellRingIcon:zl,BetweenHorizonalEnd:ut,BetweenHorizonalEndIcon:ut,BetweenHorizonalStart:pt,BetweenHorizonalStartIcon:pt,BetweenHorizontalEnd:ut,BetweenHorizontalEndIcon:ut,BetweenHorizontalStart:pt,BetweenHorizontalStartIcon:pt,BetweenVerticalEnd:Hl,BetweenVerticalEndIcon:Hl,BetweenVerticalStart:Al,BetweenVerticalStartIcon:Al,BicepsFlexed:Vl,BicepsFlexedIcon:Vl,Bike:Pl,BikeIcon:Pl,Binary:ql,BinaryIcon:ql,Binoculars:Bl,BinocularsIcon:Bl,Biohazard:Fl,BiohazardIcon:Fl,Bird:Ol,BirdIcon:Ol,Bitcoin:jl,BitcoinIcon:jl,Blend:Nl,BlendIcon:Nl,Blinds:_l,BlindsIcon:_l,Blocks:Wl,BlocksIcon:Wl,Bluetooth:Yl,BluetoothConnected:Ul,BluetoothConnectedIcon:Ul,BluetoothIcon:Yl,BluetoothOff:$l,BluetoothOffIcon:$l,BluetoothSearching:Gl,BluetoothSearchingIcon:Gl,Bold:Zl,BoldIcon:Zl,Bolt:Xl,BoltIcon:Xl,Bomb:Kl,BombIcon:Kl,Bone:Jl,BoneIcon:Jl,Book:w1,BookA:Ql,BookAIcon:Ql,BookAudio:e1,BookAudioIcon:e1,BookCheck:t1,BookCheckIcon:t1,BookCopy:i1,BookCopyIcon:i1,BookDashed:yt,BookDashedIcon:yt,BookDown:o1,BookDownIcon:o1,BookHeadphones:a1,BookHeadphonesIcon:a1,BookHeart:n1,BookHeartIcon:n1,BookIcon:w1,BookImage:s1,BookImageIcon:s1,BookKey:r1,BookKeyIcon:r1,BookLock:l1,BookLockIcon:l1,BookMarked:h1,BookMarkedIcon:h1,BookMinus:c1,BookMinusIcon:c1,BookOpen:p1,BookOpenCheck:u1,BookOpenCheckIcon:u1,BookOpenIcon:p1,BookOpenText:d1,BookOpenTextIcon:d1,BookPlus:y1,BookPlusIcon:y1,BookTemplate:yt,BookTemplateIcon:yt,BookText:f1,BookTextIcon:f1,BookType:m1,BookTypeIcon:m1,BookUp:k1,BookUp2:g1,BookUp2Icon:g1,BookUpIcon:k1,BookUser:v1,BookUserIcon:v1,BookX:b1,BookXIcon:b1,Bookmark:E1,BookmarkCheck:M1,BookmarkCheckIcon:M1,BookmarkIcon:E1,BookmarkMinus:C1,BookmarkMinusIcon:C1,BookmarkPlus:x1,BookmarkPlusIcon:x1,BookmarkX:L1,BookmarkXIcon:L1,BoomBox:S1,BoomBoxIcon:S1,Bot:D1,BotIcon:D1,BotMessageSquare:I1,BotMessageSquareIcon:I1,BotOff:T1,BotOffIcon:T1,BowArrow:z1,BowArrowIcon:z1,Box:R1,BoxIcon:R1,BoxSelect:_a,BoxSelectIcon:_a,Boxes:H1,BoxesIcon:H1,Braces:ft,BracesIcon:ft,Brackets:A1,BracketsIcon:A1,Brain:q1,BrainCircuit:V1,BrainCircuitIcon:V1,BrainCog:P1,BrainCogIcon:P1,BrainIcon:q1,BrickWall:F1,BrickWallFire:B1,BrickWallFireIcon:B1,BrickWallIcon:F1,Briefcase:_1,BriefcaseBusiness:O1,BriefcaseBusinessIcon:O1,BriefcaseConveyorBelt:j1,BriefcaseConveyorBeltIcon:j1,BriefcaseIcon:_1,BriefcaseMedical:N1,BriefcaseMedicalIcon:N1,BringToFront:W1,BringToFrontIcon:W1,Brush:$1,BrushCleaning:U1,BrushCleaningIcon:U1,BrushIcon:$1,Bubbles:G1,BubblesIcon:G1,Bug:X1,BugIcon:X1,BugOff:Y1,BugOffIcon:Y1,BugPlay:Z1,BugPlayIcon:Z1,Building:J1,Building2:K1,Building2Icon:K1,BuildingIcon:J1,Bus:eh,BusFront:Q1,BusFrontIcon:Q1,BusIcon:eh,Cable:ih,CableCar:th,CableCarIcon:th,CableIcon:ih,Cake:oh,CakeIcon:oh,CakeSlice:ah,CakeSliceIcon:ah,Calculator:nh,CalculatorIcon:nh,Calendar:Eh,Calendar1:sh,Calendar1Icon:sh,CalendarArrowDown:rh,CalendarArrowDownIcon:rh,CalendarArrowUp:lh,CalendarArrowUpIcon:lh,CalendarCheck:ch,CalendarCheck2:hh,CalendarCheck2Icon:hh,CalendarCheckIcon:ch,CalendarClock:dh,CalendarClockIcon:dh,CalendarCog:uh,CalendarCogIcon:uh,CalendarDays:ph,CalendarDaysIcon:ph,CalendarFold:yh,CalendarFoldIcon:yh,CalendarHeart:fh,CalendarHeartIcon:fh,CalendarIcon:Eh,CalendarMinus:gh,CalendarMinus2:mh,CalendarMinus2Icon:mh,CalendarMinusIcon:gh,CalendarOff:kh,CalendarOffIcon:kh,CalendarPlus:bh,CalendarPlus2:vh,CalendarPlus2Icon:vh,CalendarPlusIcon:bh,CalendarRange:wh,CalendarRangeIcon:wh,CalendarSearch:Mh,CalendarSearchIcon:Mh,CalendarSync:Ch,CalendarSyncIcon:Ch,CalendarX:Lh,CalendarX2:xh,CalendarX2Icon:xh,CalendarXIcon:Lh,Camera:Ih,CameraIcon:Ih,CameraOff:Sh,CameraOffIcon:Sh,CandlestickChart:bt,CandlestickChartIcon:bt,Candy:zh,CandyCane:Th,CandyCaneIcon:Th,CandyIcon:zh,CandyOff:Dh,CandyOffIcon:Dh,Cannabis:Rh,CannabisIcon:Rh,Captions:mt,CaptionsIcon:mt,CaptionsOff:Hh,CaptionsOffIcon:Hh,Car:Ph,CarFront:Ah,CarFrontIcon:Ah,CarIcon:Ph,CarTaxiFront:Vh,CarTaxiFrontIcon:Vh,Caravan:qh,CaravanIcon:qh,Carrot:Bh,CarrotIcon:Bh,CaseLower:Fh,CaseLowerIcon:Fh,CaseSensitive:Oh,CaseSensitiveIcon:Oh,CaseUpper:jh,CaseUpperIcon:jh,CassetteTape:Nh,CassetteTapeIcon:Nh,Cast:_h,CastIcon:_h,Castle:Wh,CastleIcon:Wh,Cat:Uh,CatIcon:Uh,Cctv:$h,CctvIcon:$h,ChartArea:gt,ChartAreaIcon:gt,ChartBar:vt,ChartBarBig:kt,ChartBarBigIcon:kt,ChartBarDecreasing:Gh,ChartBarDecreasingIcon:Gh,ChartBarIcon:vt,ChartBarIncreasing:Yh,ChartBarIncreasingIcon:Yh,ChartBarStacked:Zh,ChartBarStackedIcon:Zh,ChartCandlestick:bt,ChartCandlestickIcon:bt,ChartColumn:Ct,ChartColumnBig:wt,ChartColumnBigIcon:wt,ChartColumnDecreasing:Xh,ChartColumnDecreasingIcon:Xh,ChartColumnIcon:Ct,ChartColumnIncreasing:Mt,ChartColumnIncreasingIcon:Mt,ChartColumnStacked:Kh,ChartColumnStackedIcon:Kh,ChartGantt:Jh,ChartGanttIcon:Jh,ChartLine:xt,ChartLineIcon:xt,ChartNetwork:Qh,ChartNetworkIcon:Qh,ChartNoAxesColumn:Et,ChartNoAxesColumnDecreasing:ec,ChartNoAxesColumnDecreasingIcon:ec,ChartNoAxesColumnIcon:Et,ChartNoAxesColumnIncreasing:Lt,ChartNoAxesColumnIncreasingIcon:Lt,ChartNoAxesCombined:tc,ChartNoAxesCombinedIcon:tc,ChartNoAxesGantt:St,ChartNoAxesGanttIcon:St,ChartPie:It,ChartPieIcon:It,ChartScatter:Tt,ChartScatterIcon:Tt,ChartSpline:ic,ChartSplineIcon:ic,Check:nc,CheckCheck:ac,CheckCheckIcon:ac,CheckCircle:Ft,CheckCircle2:Ot,CheckCircle2Icon:Ot,CheckCircleIcon:Ft,CheckIcon:nc,CheckLine:oc,CheckLineIcon:oc,CheckSquare:Aa,CheckSquare2:Va,CheckSquare2Icon:Va,CheckSquareIcon:Aa,ChefHat:sc,ChefHatIcon:sc,Cherry:rc,CherryIcon:rc,ChevronDown:lc,ChevronDownCircle:jt,ChevronDownCircleIcon:jt,ChevronDownIcon:lc,ChevronDownSquare:Pa,ChevronDownSquareIcon:Pa,ChevronFirst:hc,ChevronFirstIcon:hc,ChevronLast:dc,ChevronLastIcon:dc,ChevronLeft:cc,ChevronLeftCircle:Nt,ChevronLeftCircleIcon:Nt,ChevronLeftIcon:cc,ChevronLeftSquare:qa,ChevronLeftSquareIcon:qa,ChevronRight:uc,ChevronRightCircle:_t,ChevronRightCircleIcon:_t,ChevronRightIcon:uc,ChevronRightSquare:Ba,ChevronRightSquareIcon:Ba,ChevronUp:pc,ChevronUpCircle:Wt,ChevronUpCircleIcon:Wt,ChevronUpIcon:pc,ChevronUpSquare:Fa,ChevronUpSquareIcon:Fa,ChevronsDown:fc,ChevronsDownIcon:fc,ChevronsDownUp:yc,ChevronsDownUpIcon:yc,ChevronsLeft:kc,ChevronsLeftIcon:kc,ChevronsLeftRight:gc,ChevronsLeftRightEllipsis:mc,ChevronsLeftRightEllipsisIcon:mc,ChevronsLeftRightIcon:gc,ChevronsRight:bc,ChevronsRightIcon:bc,ChevronsRightLeft:vc,ChevronsRightLeftIcon:vc,ChevronsUp:Mc,ChevronsUpDown:wc,ChevronsUpDownIcon:wc,ChevronsUpIcon:Mc,Chrome:Cc,ChromeIcon:Cc,Church:xc,ChurchIcon:xc,Cigarette:Ec,CigaretteIcon:Ec,CigaretteOff:Lc,CigaretteOffIcon:Lc,Circle:Bc,CircleAlert:zt,CircleAlertIcon:zt,CircleArrowDown:Dt,CircleArrowDownIcon:Dt,CircleArrowLeft:Rt,CircleArrowLeftIcon:Rt,CircleArrowOutDownLeft:Ht,CircleArrowOutDownLeftIcon:Ht,CircleArrowOutDownRight:At,CircleArrowOutDownRightIcon:At,CircleArrowOutUpLeft:Vt,CircleArrowOutUpLeftIcon:Vt,CircleArrowOutUpRight:Pt,CircleArrowOutUpRightIcon:Pt,CircleArrowRight:qt,CircleArrowRightIcon:qt,CircleArrowUp:Bt,CircleArrowUpIcon:Bt,CircleCheck:Ot,CircleCheckBig:Ft,CircleCheckBigIcon:Ft,CircleCheckIcon:Ot,CircleChevronDown:jt,CircleChevronDownIcon:jt,CircleChevronLeft:Nt,CircleChevronLeftIcon:Nt,CircleChevronRight:_t,CircleChevronRightIcon:_t,CircleChevronUp:Wt,CircleChevronUpIcon:Wt,CircleDashed:Sc,CircleDashedIcon:Sc,CircleDivide:Ut,CircleDivideIcon:Ut,CircleDollarSign:Ic,CircleDollarSignIcon:Ic,CircleDot:Dc,CircleDotDashed:Tc,CircleDotDashedIcon:Tc,CircleDotIcon:Dc,CircleEllipsis:zc,CircleEllipsisIcon:zc,CircleEqual:Rc,CircleEqualIcon:Rc,CircleFadingArrowUp:Hc,CircleFadingArrowUpIcon:Hc,CircleFadingPlus:Ac,CircleFadingPlusIcon:Ac,CircleGauge:$t,CircleGaugeIcon:$t,CircleHelp:Gt,CircleHelpIcon:Gt,CircleIcon:Bc,CircleMinus:Yt,CircleMinusIcon:Yt,CircleOff:Vc,CircleOffIcon:Vc,CircleParking:Xt,CircleParkingIcon:Xt,CircleParkingOff:Zt,CircleParkingOffIcon:Zt,CirclePause:Kt,CirclePauseIcon:Kt,CirclePercent:Jt,CirclePercentIcon:Jt,CirclePlay:Qt,CirclePlayIcon:Qt,CirclePlus:ei,CirclePlusIcon:ei,CirclePower:ti,CirclePowerIcon:ti,CircleSlash:Pc,CircleSlash2:ii,CircleSlash2Icon:ii,CircleSlashIcon:Pc,CircleSlashed:ii,CircleSlashedIcon:ii,CircleSmall:qc,CircleSmallIcon:qc,CircleStop:ai,CircleStopIcon:ai,CircleUser:ni,CircleUserIcon:ni,CircleUserRound:oi,CircleUserRoundIcon:oi,CircleX:si,CircleXIcon:si,CircuitBoard:Fc,CircuitBoardIcon:Fc,Citrus:Oc,CitrusIcon:Oc,Clapperboard:jc,ClapperboardIcon:jc,Clipboard:Xc,ClipboardCheck:Nc,ClipboardCheckIcon:Nc,ClipboardCopy:_c,ClipboardCopyIcon:_c,ClipboardEdit:li,ClipboardEditIcon:li,ClipboardIcon:Xc,ClipboardList:Wc,ClipboardListIcon:Wc,ClipboardMinus:Uc,ClipboardMinusIcon:Uc,ClipboardPaste:$c,ClipboardPasteIcon:$c,ClipboardPen:li,ClipboardPenIcon:li,ClipboardPenLine:ri,ClipboardPenLineIcon:ri,ClipboardPlus:Gc,ClipboardPlusIcon:Gc,ClipboardSignature:ri,ClipboardSignatureIcon:ri,ClipboardType:Yc,ClipboardTypeIcon:Yc,ClipboardX:Zc,ClipboardXIcon:Zc,Clock:yd,Clock1:Kc,Clock10:Jc,Clock10Icon:Jc,Clock11:Qc,Clock11Icon:Qc,Clock12:ed,Clock12Icon:ed,Clock1Icon:Kc,Clock2:td,Clock2Icon:td,Clock3:id,Clock3Icon:id,Clock4:ad,Clock4Icon:ad,Clock5:od,Clock5Icon:od,Clock6:nd,Clock6Icon:nd,Clock7:sd,Clock7Icon:sd,Clock8:rd,Clock8Icon:rd,Clock9:ld,Clock9Icon:ld,ClockAlert:hd,ClockAlertIcon:hd,ClockArrowDown:cd,ClockArrowDownIcon:cd,ClockArrowUp:dd,ClockArrowUpIcon:dd,ClockFading:ud,ClockFadingIcon:ud,ClockIcon:yd,ClockPlus:pd,ClockPlusIcon:pd,Cloud:Td,CloudAlert:fd,CloudAlertIcon:fd,CloudCog:md,CloudCogIcon:md,CloudDownload:hi,CloudDownloadIcon:hi,CloudDrizzle:gd,CloudDrizzleIcon:gd,CloudFog:vd,CloudFogIcon:vd,CloudHail:kd,CloudHailIcon:kd,CloudIcon:Td,CloudLightning:bd,CloudLightningIcon:bd,CloudMoon:Md,CloudMoonIcon:Md,CloudMoonRain:wd,CloudMoonRainIcon:wd,CloudOff:Cd,CloudOffIcon:Cd,CloudRain:Ld,CloudRainIcon:Ld,CloudRainWind:xd,CloudRainWindIcon:xd,CloudSnow:Ed,CloudSnowIcon:Ed,CloudSun:Id,CloudSunIcon:Id,CloudSunRain:Sd,CloudSunRainIcon:Sd,CloudUpload:ci,CloudUploadIcon:ci,Cloudy:Dd,CloudyIcon:Dd,Clover:zd,CloverIcon:zd,Club:Rd,ClubIcon:Rd,Code:Hd,Code2:di,Code2Icon:di,CodeIcon:Hd,CodeSquare:Oa,CodeSquareIcon:Oa,CodeXml:di,CodeXmlIcon:di,Codepen:Ad,CodepenIcon:Ad,Codesandbox:Vd,CodesandboxIcon:Vd,Coffee:Pd,CoffeeIcon:Pd,Cog:qd,CogIcon:qd,Coins:Bd,CoinsIcon:Bd,Columns:ui,Columns2:ui,Columns2Icon:ui,Columns3:pi,Columns3Cog:Ie,Columns3CogIcon:Ie,Columns3Icon:pi,Columns4:Fd,Columns4Icon:Fd,ColumnsIcon:ui,ColumnsSettings:Ie,ColumnsSettingsIcon:Ie,Combine:jd,CombineIcon:jd,Command:Od,CommandIcon:Od,Compass:Nd,CompassIcon:Nd,Component:_d,ComponentIcon:_d,Computer:Wd,ComputerIcon:Wd,ConciergeBell:Ud,ConciergeBellIcon:Ud,Cone:Gd,ConeIcon:Gd,Construction:$d,ConstructionIcon:$d,Contact:Yd,Contact2:yi,Contact2Icon:yi,ContactIcon:Yd,ContactRound:yi,ContactRoundIcon:yi,Container:Zd,ContainerIcon:Zd,Contrast:Xd,ContrastIcon:Xd,Cookie:Kd,CookieIcon:Kd,CookingPot:Jd,CookingPotIcon:Jd,Copy:o2,CopyCheck:e2,CopyCheckIcon:e2,CopyIcon:o2,CopyMinus:Qd,CopyMinusIcon:Qd,CopyPlus:t2,CopyPlusIcon:t2,CopySlash:i2,CopySlashIcon:i2,CopyX:a2,CopyXIcon:a2,Copyleft:n2,CopyleftIcon:n2,Copyright:s2,CopyrightIcon:s2,CornerDownLeft:r2,CornerDownLeftIcon:r2,CornerDownRight:l2,CornerDownRightIcon:l2,CornerLeftDown:h2,CornerLeftDownIcon:h2,CornerLeftUp:c2,CornerLeftUpIcon:c2,CornerRightDown:d2,CornerRightDownIcon:d2,CornerRightUp:u2,CornerRightUpIcon:u2,CornerUpLeft:p2,CornerUpLeftIcon:p2,CornerUpRight:y2,CornerUpRightIcon:y2,Cpu:f2,CpuIcon:f2,CreativeCommons:m2,CreativeCommonsIcon:m2,CreditCard:g2,CreditCardIcon:g2,Croissant:k2,CroissantIcon:k2,Crop:v2,CropIcon:v2,Cross:b2,CrossIcon:b2,Crosshair:w2,CrosshairIcon:w2,Crown:M2,CrownIcon:M2,Cuboid:C2,CuboidIcon:C2,CupSoda:x2,CupSodaIcon:x2,CurlyBraces:ft,CurlyBracesIcon:ft,Currency:L2,CurrencyIcon:L2,Cylinder:E2,CylinderIcon:E2,Dam:S2,DamIcon:S2,Database:D2,DatabaseBackup:I2,DatabaseBackupIcon:I2,DatabaseIcon:D2,DatabaseZap:T2,DatabaseZapIcon:T2,DecimalsArrowLeft:z2,DecimalsArrowLeftIcon:z2,DecimalsArrowRight:R2,DecimalsArrowRightIcon:R2,Delete:H2,DeleteIcon:H2,Dessert:V2,DessertIcon:V2,Diameter:A2,DiameterIcon:A2,Diamond:B2,DiamondIcon:B2,DiamondMinus:P2,DiamondMinusIcon:P2,DiamondPercent:fi,DiamondPercentIcon:fi,DiamondPlus:q2,DiamondPlusIcon:q2,Dice1:F2,Dice1Icon:F2,Dice2:O2,Dice2Icon:O2,Dice3:j2,Dice3Icon:j2,Dice4:N2,Dice4Icon:N2,Dice5:_2,Dice5Icon:_2,Dice6:W2,Dice6Icon:W2,Dices:U2,DicesIcon:U2,Diff:$2,DiffIcon:$2,Disc:X2,Disc2:G2,Disc2Icon:G2,Disc3:Y2,Disc3Icon:Y2,DiscAlbum:Z2,DiscAlbumIcon:Z2,DiscIcon:X2,Divide:K2,DivideCircle:Ut,DivideCircleIcon:Ut,DivideIcon:K2,DivideSquare:Wa,DivideSquareIcon:Wa,Dna:J2,DnaIcon:J2,DnaOff:Q2,DnaOffIcon:Q2,Dock:eu,DockIcon:eu,Dog:tu,DogIcon:tu,DollarSign:iu,DollarSignIcon:iu,Donut:au,DonutIcon:au,DoorClosed:nu,DoorClosedIcon:nu,DoorClosedLocked:ou,DoorClosedLockedIcon:ou,DoorOpen:su,DoorOpenIcon:su,Dot:ru,DotIcon:ru,DotSquare:Ua,DotSquareIcon:Ua,Download:lu,DownloadCloud:hi,DownloadCloudIcon:hi,DownloadIcon:lu,DraftingCompass:hu,DraftingCompassIcon:hu,Drama:cu,DramaIcon:cu,Dribbble:du,DribbbleIcon:du,Drill:uu,DrillIcon:uu,Droplet:yu,DropletIcon:yu,DropletOff:pu,DropletOffIcon:pu,Droplets:fu,DropletsIcon:fu,Drum:mu,DrumIcon:mu,Drumstick:gu,DrumstickIcon:gu,Dumbbell:ku,DumbbellIcon:ku,Ear:bu,EarIcon:bu,EarOff:vu,EarOffIcon:vu,Earth:mi,EarthIcon:mi,EarthLock:Mu,EarthLockIcon:Mu,Eclipse:wu,EclipseIcon:wu,Edit:ue,Edit2:la,Edit2Icon:la,Edit3:ra,Edit3Icon:ra,EditIcon:ue,Egg:Lu,EggFried:Cu,EggFriedIcon:Cu,EggIcon:Lu,EggOff:xu,EggOffIcon:xu,Ellipsis:ki,EllipsisIcon:ki,EllipsisVertical:gi,EllipsisVerticalIcon:gi,Equal:Iu,EqualApproximately:Eu,EqualApproximatelyIcon:Eu,EqualIcon:Iu,EqualNot:Su,EqualNotIcon:Su,EqualSquare:$a,EqualSquareIcon:$a,Eraser:Tu,EraserIcon:Tu,EthernetPort:Du,EthernetPortIcon:Du,Euro:zu,EuroIcon:zu,Expand:Ru,ExpandIcon:Ru,ExternalLink:Hu,ExternalLinkIcon:Hu,Eye:Pu,EyeClosed:Au,EyeClosedIcon:Au,EyeIcon:Pu,EyeOff:Vu,EyeOffIcon:Vu,Facebook:qu,FacebookIcon:qu,Factory:Bu,FactoryIcon:Bu,Fan:Fu,FanIcon:Fu,FastForward:Ou,FastForwardIcon:Ou,Feather:ju,FeatherIcon:ju,Fence:Wu,FenceIcon:Wu,FerrisWheel:Nu,FerrisWheelIcon:Nu,Figma:_u,FigmaIcon:_u,File:j0,FileArchive:Uu,FileArchiveIcon:Uu,FileAudio:Gu,FileAudio2:$u,FileAudio2Icon:$u,FileAudioIcon:Gu,FileAxis3D:vi,FileAxis3DIcon:vi,FileAxis3d:vi,FileAxis3dIcon:vi,FileBadge:Zu,FileBadge2:Yu,FileBadge2Icon:Yu,FileBadgeIcon:Zu,FileBarChart:bi,FileBarChart2:wi,FileBarChart2Icon:wi,FileBarChartIcon:bi,FileBox:Xu,FileBoxIcon:Xu,FileChartColumn:wi,FileChartColumnIcon:wi,FileChartColumnIncreasing:bi,FileChartColumnIncreasingIcon:bi,FileChartLine:Mi,FileChartLineIcon:Mi,FileChartPie:Ci,FileChartPieIcon:Ci,FileCheck:Ju,FileCheck2:Ku,FileCheck2Icon:Ku,FileCheckIcon:Ju,FileClock:Qu,FileClockIcon:Qu,FileCode:t0,FileCode2:e0,FileCode2Icon:e0,FileCodeIcon:t0,FileCog:xi,FileCog2:xi,FileCog2Icon:xi,FileCogIcon:xi,FileDiff:i0,FileDiffIcon:i0,FileDigit:a0,FileDigitIcon:a0,FileDown:o0,FileDownIcon:o0,FileEdit:Ei,FileEditIcon:Ei,FileHeart:n0,FileHeartIcon:n0,FileIcon:j0,FileImage:s0,FileImageIcon:s0,FileInput:r0,FileInputIcon:r0,FileJson:h0,FileJson2:l0,FileJson2Icon:l0,FileJsonIcon:h0,FileKey:d0,FileKey2:c0,FileKey2Icon:c0,FileKeyIcon:d0,FileLineChart:Mi,FileLineChartIcon:Mi,FileLock:p0,FileLock2:u0,FileLock2Icon:u0,FileLockIcon:p0,FileMinus:y0,FileMinus2:f0,FileMinus2Icon:f0,FileMinusIcon:y0,FileMusic:m0,FileMusicIcon:m0,FileOutput:g0,FileOutputIcon:g0,FilePen:Ei,FilePenIcon:Ei,FilePenLine:Li,FilePenLineIcon:Li,FilePieChart:Ci,FilePieChartIcon:Ci,FilePlus:b0,FilePlus2:k0,FilePlus2Icon:k0,FilePlusIcon:b0,FileQuestion:v0,FileQuestionIcon:v0,FileScan:w0,FileScanIcon:w0,FileSearch:C0,FileSearch2:M0,FileSearch2Icon:M0,FileSearchIcon:C0,FileSignature:Li,FileSignatureIcon:Li,FileSliders:x0,FileSlidersIcon:x0,FileSpreadsheet:L0,FileSpreadsheetIcon:L0,FileStack:E0,FileStackIcon:E0,FileSymlink:S0,FileSymlinkIcon:S0,FileTerminal:I0,FileTerminalIcon:I0,FileText:T0,FileTextIcon:T0,FileType:z0,FileType2:D0,FileType2Icon:D0,FileTypeIcon:z0,FileUp:R0,FileUpIcon:R0,FileUser:H0,FileUserIcon:H0,FileVideo:V0,FileVideo2:A0,FileVideo2Icon:A0,FileVideoIcon:V0,FileVolume:B0,FileVolume2:P0,FileVolume2Icon:P0,FileVolumeIcon:B0,FileWarning:q0,FileWarningIcon:q0,FileX:O0,FileX2:F0,FileX2Icon:F0,FileXIcon:O0,Files:_0,FilesIcon:_0,Film:N0,FilmIcon:N0,Filter:Di,FilterIcon:Di,FilterX:Ti,FilterXIcon:Ti,Fingerprint:W0,FingerprintIcon:W0,FireExtinguisher:U0,FireExtinguisherIcon:U0,Fish:Y0,FishIcon:Y0,FishOff:$0,FishOffIcon:$0,FishSymbol:G0,FishSymbolIcon:G0,Flag:J0,FlagIcon:J0,FlagOff:Z0,FlagOffIcon:Z0,FlagTriangleLeft:X0,FlagTriangleLeftIcon:X0,FlagTriangleRight:K0,FlagTriangleRightIcon:K0,Flame:ep,FlameIcon:ep,FlameKindling:Q0,FlameKindlingIcon:Q0,Flashlight:ap,FlashlightIcon:ap,FlashlightOff:tp,FlashlightOffIcon:tp,FlaskConical:op,FlaskConicalIcon:op,FlaskConicalOff:ip,FlaskConicalOffIcon:ip,FlaskRound:np,FlaskRoundIcon:np,FlipHorizontal:rp,FlipHorizontal2:sp,FlipHorizontal2Icon:sp,FlipHorizontalIcon:rp,FlipVertical:lp,FlipVertical2:hp,FlipVertical2Icon:hp,FlipVerticalIcon:lp,Flower:dp,Flower2:cp,Flower2Icon:cp,FlowerIcon:dp,Focus:up,FocusIcon:up,FoldHorizontal:pp,FoldHorizontalIcon:pp,FoldVertical:yp,FoldVerticalIcon:yp,Folder:Np,FolderArchive:fp,FolderArchiveIcon:fp,FolderCheck:mp,FolderCheckIcon:mp,FolderClock:kp,FolderClockIcon:kp,FolderClosed:gp,FolderClosedIcon:gp,FolderCode:vp,FolderCodeIcon:vp,FolderCog:Si,FolderCog2:Si,FolderCog2Icon:Si,FolderCogIcon:Si,FolderDot:bp,FolderDotIcon:bp,FolderDown:wp,FolderDownIcon:wp,FolderEdit:Ii,FolderEditIcon:Ii,FolderGit:Cp,FolderGit2:Mp,FolderGit2Icon:Mp,FolderGitIcon:Cp,FolderHeart:xp,FolderHeartIcon:xp,FolderIcon:Np,FolderInput:Lp,FolderInputIcon:Lp,FolderKanban:Ep,FolderKanbanIcon:Ep,FolderKey:Sp,FolderKeyIcon:Sp,FolderLock:Ip,FolderLockIcon:Ip,FolderMinus:Dp,FolderMinusIcon:Dp,FolderOpen:zp,FolderOpenDot:Tp,FolderOpenDotIcon:Tp,FolderOpenIcon:zp,FolderOutput:Hp,FolderOutputIcon:Hp,FolderPen:Ii,FolderPenIcon:Ii,FolderPlus:Rp,FolderPlusIcon:Rp,FolderRoot:Ap,FolderRootIcon:Ap,FolderSearch:Pp,FolderSearch2:Vp,FolderSearch2Icon:Vp,FolderSearchIcon:Pp,FolderSymlink:Bp,FolderSymlinkIcon:Bp,FolderSync:qp,FolderSyncIcon:qp,FolderTree:Fp,FolderTreeIcon:Fp,FolderUp:Op,FolderUpIcon:Op,FolderX:jp,FolderXIcon:jp,Folders:_p,FoldersIcon:_p,Footprints:Wp,FootprintsIcon:Wp,ForkKnife:Ho,ForkKnifeCrossed:Ro,ForkKnifeCrossedIcon:Ro,ForkKnifeIcon:Ho,Forklift:Up,ForkliftIcon:Up,FormInput:ca,FormInputIcon:ca,Forward:Gp,ForwardIcon:Gp,Frame:$p,FrameIcon:$p,Framer:Yp,FramerIcon:Yp,Frown:Zp,FrownIcon:Zp,Fuel:Kp,FuelIcon:Kp,Fullscreen:Xp,FullscreenIcon:Xp,FunctionSquare:Ga,FunctionSquareIcon:Ga,Funnel:Di,FunnelIcon:Di,FunnelPlus:Jp,FunnelPlusIcon:Jp,FunnelX:Ti,FunnelXIcon:Ti,GalleryHorizontal:ty,GalleryHorizontalEnd:Qp,GalleryHorizontalEndIcon:Qp,GalleryHorizontalIcon:ty,GalleryThumbnails:ey,GalleryThumbnailsIcon:ey,GalleryVertical:ay,GalleryVerticalEnd:iy,GalleryVerticalEndIcon:iy,GalleryVerticalIcon:ay,Gamepad:oy,Gamepad2:ny,Gamepad2Icon:ny,GamepadIcon:oy,GanttChart:St,GanttChartIcon:St,GanttChartSquare:De,GanttChartSquareIcon:De,Gauge:sy,GaugeCircle:$t,GaugeCircleIcon:$t,GaugeIcon:sy,Gavel:ry,GavelIcon:ry,Gem:ly,GemIcon:ly,Ghost:hy,GhostIcon:hy,Gift:cy,GiftIcon:cy,GitBranch:uy,GitBranchIcon:uy,GitBranchPlus:dy,GitBranchPlusIcon:dy,GitCommit:zi,GitCommitHorizontal:zi,GitCommitHorizontalIcon:zi,GitCommitIcon:zi,GitCommitVertical:py,GitCommitVerticalIcon:py,GitCompare:fy,GitCompareArrows:yy,GitCompareArrowsIcon:yy,GitCompareIcon:fy,GitFork:my,GitForkIcon:my,GitGraph:gy,GitGraphIcon:gy,GitMerge:ky,GitMergeIcon:ky,GitPullRequest:xy,GitPullRequestArrow:vy,GitPullRequestArrowIcon:vy,GitPullRequestClosed:by,GitPullRequestClosedIcon:by,GitPullRequestCreate:Cy,GitPullRequestCreateArrow:wy,GitPullRequestCreateArrowIcon:wy,GitPullRequestCreateIcon:Cy,GitPullRequestDraft:My,GitPullRequestDraftIcon:My,GitPullRequestIcon:xy,Github:Ly,GithubIcon:Ly,Gitlab:Ey,GitlabIcon:Ey,GlassWater:Sy,GlassWaterIcon:Sy,Glasses:Iy,GlassesIcon:Iy,Globe:zy,Globe2:mi,Globe2Icon:mi,GlobeIcon:zy,GlobeLock:Ty,GlobeLockIcon:Ty,Goal:Dy,GoalIcon:Dy,Gpu:Ry,GpuIcon:Ry,Grab:Hy,GrabIcon:Hy,GraduationCap:Ay,GraduationCapIcon:Ay,Grape:Vy,GrapeIcon:Vy,Grid:Te,Grid2X2:Vi,Grid2X2Check:Ri,Grid2X2CheckIcon:Ri,Grid2X2Icon:Vi,Grid2X2Plus:Hi,Grid2X2PlusIcon:Hi,Grid2X2X:Ai,Grid2X2XIcon:Ai,Grid2x2:Vi,Grid2x2Check:Ri,Grid2x2CheckIcon:Ri,Grid2x2Icon:Vi,Grid2x2Plus:Hi,Grid2x2PlusIcon:Hi,Grid2x2X:Ai,Grid2x2XIcon:Ai,Grid3X3:Te,Grid3X3Icon:Te,Grid3x3:Te,Grid3x3Icon:Te,GridIcon:Te,Grip:By,GripHorizontal:Py,GripHorizontalIcon:Py,GripIcon:By,GripVertical:qy,GripVerticalIcon:qy,Group:Fy,GroupIcon:Fy,Guitar:Oy,GuitarIcon:Oy,Ham:jy,HamIcon:jy,Hamburger:Ny,HamburgerIcon:Ny,Hammer:_y,HammerIcon:_y,Hand:Yy,HandCoins:Wy,HandCoinsIcon:Wy,HandHeart:Uy,HandHeartIcon:Uy,HandHelping:Pi,HandHelpingIcon:Pi,HandIcon:Yy,HandMetal:$y,HandMetalIcon:$y,HandPlatter:Gy,HandPlatterIcon:Gy,Handshake:Xy,HandshakeIcon:Xy,HardDrive:Jy,HardDriveDownload:Zy,HardDriveDownloadIcon:Zy,HardDriveIcon:Jy,HardDriveUpload:Ky,HardDriveUploadIcon:Ky,HardHat:Qy,HardHatIcon:Qy,Hash:ef,HashIcon:ef,Haze:tf,HazeIcon:tf,HdmiPort:af,HdmiPortIcon:af,Heading:cf,Heading1:of,Heading1Icon:of,Heading2:nf,Heading2Icon:nf,Heading3:sf,Heading3Icon:sf,Heading4:hf,Heading4Icon:hf,Heading5:rf,Heading5Icon:rf,Heading6:lf,Heading6Icon:lf,HeadingIcon:cf,HeadphoneOff:df,HeadphoneOffIcon:df,Headphones:uf,HeadphonesIcon:uf,Headset:pf,HeadsetIcon:pf,Heart:vf,HeartCrack:yf,HeartCrackIcon:yf,HeartHandshake:ff,HeartHandshakeIcon:ff,HeartIcon:vf,HeartMinus:mf,HeartMinusIcon:mf,HeartOff:gf,HeartOffIcon:gf,HeartPlus:kf,HeartPlusIcon:kf,HeartPulse:bf,HeartPulseIcon:bf,Heater:wf,HeaterIcon:wf,HelpCircle:Gt,HelpCircleIcon:Gt,HelpingHand:Pi,HelpingHandIcon:Pi,Hexagon:Mf,HexagonIcon:Mf,Highlighter:Cf,HighlighterIcon:Cf,History:xf,HistoryIcon:xf,Home:qi,HomeIcon:qi,Hop:Ef,HopIcon:Ef,HopOff:Lf,HopOffIcon:Lf,Hospital:Sf,HospitalIcon:Sf,Hotel:If,HotelIcon:If,Hourglass:Tf,HourglassIcon:Tf,House:qi,HouseIcon:qi,HousePlug:Df,HousePlugIcon:Df,HousePlus:zf,HousePlusIcon:zf,HouseWifi:Rf,HouseWifiIcon:Rf,IceCream:Fi,IceCream2:Bi,IceCream2Icon:Bi,IceCreamBowl:Bi,IceCreamBowlIcon:Bi,IceCreamCone:Fi,IceCreamConeIcon:Fi,IceCreamIcon:Fi,Icon:jx,IdCard:Hf,IdCardIcon:Hf,Image:jf,ImageDown:Af,ImageDownIcon:Af,ImageIcon:jf,ImageMinus:Vf,ImageMinusIcon:Vf,ImageOff:qf,ImageOffIcon:qf,ImagePlay:Pf,ImagePlayIcon:Pf,ImagePlus:Bf,ImagePlusIcon:Bf,ImageUp:Of,ImageUpIcon:Of,ImageUpscale:Ff,ImageUpscaleIcon:Ff,Images:Nf,ImagesIcon:Nf,Import:Wf,ImportIcon:Wf,Inbox:_f,InboxIcon:_f,Indent:ji,IndentDecrease:Oi,IndentDecreaseIcon:Oi,IndentIcon:ji,IndentIncrease:ji,IndentIncreaseIcon:ji,IndianRupee:Uf,IndianRupeeIcon:Uf,Infinity:$f,InfinityIcon:$f,Info:Gf,InfoIcon:Gf,Inspect:Qa,InspectIcon:Qa,InspectionPanel:Xf,InspectionPanelIcon:Xf,Instagram:Yf,InstagramIcon:Yf,Italic:Zf,ItalicIcon:Zf,IterationCcw:Kf,IterationCcwIcon:Kf,IterationCw:Jf,IterationCwIcon:Jf,JapaneseYen:Qf,JapaneseYenIcon:Qf,Joystick:em,JoystickIcon:em,Kanban:tm,KanbanIcon:tm,KanbanSquare:Ya,KanbanSquareDashed:ja,KanbanSquareDashedIcon:ja,KanbanSquareIcon:Ya,Key:om,KeyIcon:om,KeyRound:am,KeyRoundIcon:am,KeySquare:im,KeySquareIcon:im,Keyboard:rm,KeyboardIcon:rm,KeyboardMusic:nm,KeyboardMusicIcon:nm,KeyboardOff:sm,KeyboardOffIcon:sm,Lamp:pm,LampCeiling:lm,LampCeilingIcon:lm,LampDesk:cm,LampDeskIcon:cm,LampFloor:hm,LampFloorIcon:hm,LampIcon:pm,LampWallDown:dm,LampWallDownIcon:dm,LampWallUp:um,LampWallUpIcon:um,LandPlot:ym,LandPlotIcon:ym,Landmark:fm,LandmarkIcon:fm,Languages:mm,LanguagesIcon:mm,Laptop:km,Laptop2:Ni,Laptop2Icon:Ni,LaptopIcon:km,LaptopMinimal:Ni,LaptopMinimalCheck:gm,LaptopMinimalCheckIcon:gm,LaptopMinimalIcon:Ni,Lasso:vm,LassoIcon:vm,LassoSelect:wm,LassoSelectIcon:wm,Laugh:bm,LaughIcon:bm,Layers:_i,Layers2:Mm,Layers2Icon:Mm,Layers3:_i,Layers3Icon:_i,LayersIcon:_i,Layout:sa,LayoutDashboard:Cm,LayoutDashboardIcon:Cm,LayoutGrid:xm,LayoutGridIcon:xm,LayoutIcon:sa,LayoutList:Lm,LayoutListIcon:Lm,LayoutPanelLeft:Em,LayoutPanelLeftIcon:Em,LayoutPanelTop:Sm,LayoutPanelTopIcon:Sm,LayoutTemplate:Im,LayoutTemplateIcon:Im,Leaf:Tm,LeafIcon:Tm,LeafyGreen:zm,LeafyGreenIcon:zm,Lectern:Dm,LecternIcon:Dm,LetterText:Rm,LetterTextIcon:Rm,Library:Am,LibraryBig:Hm,LibraryBigIcon:Hm,LibraryIcon:Am,LibrarySquare:Za,LibrarySquareIcon:Za,LifeBuoy:Vm,LifeBuoyIcon:Vm,Ligature:Pm,LigatureIcon:Pm,Lightbulb:Bm,LightbulbIcon:Bm,LightbulbOff:qm,LightbulbOffIcon:qm,LineChart:xt,LineChartIcon:xt,Link:jm,Link2:Om,Link2Icon:Om,Link2Off:Fm,Link2OffIcon:Fm,LinkIcon:jm,Linkedin:Nm,LinkedinIcon:Nm,List:ng,ListCheck:_m,ListCheckIcon:_m,ListChecks:Wm,ListChecksIcon:Wm,ListCollapse:Um,ListCollapseIcon:Um,ListEnd:$m,ListEndIcon:$m,ListFilter:Zm,ListFilterIcon:Zm,ListFilterPlus:Gm,ListFilterPlusIcon:Gm,ListIcon:ng,ListMinus:Ym,ListMinusIcon:Ym,ListMusic:Xm,ListMusicIcon:Xm,ListOrdered:Km,ListOrderedIcon:Km,ListPlus:Jm,ListPlusIcon:Jm,ListRestart:Qm,ListRestartIcon:Qm,ListStart:eg,ListStartIcon:eg,ListTodo:tg,ListTodoIcon:tg,ListTree:ig,ListTreeIcon:ig,ListVideo:ag,ListVideoIcon:ag,ListX:og,ListXIcon:og,Loader:rg,Loader2:Wi,Loader2Icon:Wi,LoaderCircle:Wi,LoaderCircleIcon:Wi,LoaderIcon:rg,LoaderPinwheel:sg,LoaderPinwheelIcon:sg,Locate:cg,LocateFixed:lg,LocateFixedIcon:lg,LocateIcon:cg,LocateOff:hg,LocateOffIcon:hg,LocationEdit:dg,LocationEditIcon:dg,Lock:pg,LockIcon:pg,LockKeyhole:ug,LockKeyholeIcon:ug,LockKeyholeOpen:Ui,LockKeyholeOpenIcon:Ui,LockOpen:$i,LockOpenIcon:$i,LogIn:yg,LogInIcon:yg,LogOut:fg,LogOutIcon:fg,Logs:mg,LogsIcon:mg,Lollipop:gg,LollipopIcon:gg,LucideAArrowDown:Un,LucideAArrowUp:$n,LucideALargeSmall:Gn,LucideAccessibility:Yn,LucideActivity:Zn,LucideActivitySquare:va,LucideAirVent:Kn,LucideAirplay:Xn,LucideAlarmCheck:tt,LucideAlarmClock:Qn,LucideAlarmClockCheck:tt,LucideAlarmClockMinus:it,LucideAlarmClockOff:Jn,LucideAlarmClockPlus:at,LucideAlarmMinus:it,LucideAlarmPlus:at,LucideAlarmSmoke:es,LucideAlbum:ts,LucideAlertCircle:zt,LucideAlertOctagon:Zi,LucideAlertTriangle:Mo,LucideAlignCenter:os,LucideAlignCenterHorizontal:is,LucideAlignCenterVertical:as,LucideAlignEndHorizontal:ns,LucideAlignEndVertical:ss,LucideAlignHorizontalDistributeCenter:rs,LucideAlignHorizontalDistributeEnd:ls,LucideAlignHorizontalDistributeStart:hs,LucideAlignHorizontalJustifyCenter:cs,LucideAlignHorizontalJustifyEnd:ds,LucideAlignHorizontalJustifyStart:us,LucideAlignHorizontalSpaceAround:ps,LucideAlignHorizontalSpaceBetween:ys,LucideAlignJustify:fs,LucideAlignLeft:ms,LucideAlignRight:ks,LucideAlignStartHorizontal:gs,LucideAlignStartVertical:vs,LucideAlignVerticalDistributeCenter:bs,LucideAlignVerticalDistributeEnd:ws,LucideAlignVerticalDistributeStart:Ms,LucideAlignVerticalJustifyCenter:Cs,LucideAlignVerticalJustifyEnd:xs,LucideAlignVerticalJustifyStart:Ls,LucideAlignVerticalSpaceAround:Es,LucideAlignVerticalSpaceBetween:Ss,LucideAmbulance:Is,LucideAmpersand:Ts,LucideAmpersands:Ds,LucideAmphora:zs,LucideAnchor:Hs,LucideAngry:Rs,LucideAnnoyed:As,LucideAntenna:Vs,LucideAnvil:Ps,LucideAperture:qs,LucideAppWindow:Fs,LucideAppWindowMac:Bs,LucideApple:Os,LucideArchive:_s,LucideArchiveRestore:js,LucideArchiveX:Ns,LucideAreaChart:gt,LucideArmchair:Us,LucideArrowBigDown:$s,LucideArrowBigDownDash:Ws,LucideArrowBigLeft:Ys,LucideArrowBigLeftDash:Gs,LucideArrowBigRight:Xs,LucideArrowBigRightDash:Zs,LucideArrowBigUp:Js,LucideArrowBigUpDash:Ks,LucideArrowDown:lr,LucideArrowDown01:Qs,LucideArrowDown10:er,LucideArrowDownAZ:ot,LucideArrowDownAz:ot,LucideArrowDownCircle:Dt,LucideArrowDownFromLine:tr,LucideArrowDownLeft:ir,LucideArrowDownLeftFromCircle:Ht,LucideArrowDownLeftFromSquare:xa,LucideArrowDownLeftSquare:ba,LucideArrowDownNarrowWide:ar,LucideArrowDownRight:or,LucideArrowDownRightFromCircle:At,LucideArrowDownRightFromSquare:La,LucideArrowDownRightSquare:wa,LucideArrowDownSquare:Ma,LucideArrowDownToDot:nr,LucideArrowDownToLine:rr,LucideArrowDownUp:sr,LucideArrowDownWideNarrow:nt,LucideArrowDownZA:st,LucideArrowDownZa:st,LucideArrowLeft:ur,LucideArrowLeftCircle:Rt,LucideArrowLeftFromLine:hr,LucideArrowLeftRight:cr,LucideArrowLeftSquare:Ca,LucideArrowLeftToLine:dr,LucideArrowRight:mr,LucideArrowRightCircle:qt,LucideArrowRightFromLine:pr,LucideArrowRightLeft:yr,LucideArrowRightSquare:Ia,LucideArrowRightToLine:fr,LucideArrowUp:Er,LucideArrowUp01:gr,LucideArrowUp10:vr,LucideArrowUpAZ:rt,LucideArrowUpAz:rt,LucideArrowUpCircle:Bt,LucideArrowUpDown:kr,LucideArrowUpFromDot:br,LucideArrowUpFromLine:wr,LucideArrowUpLeft:Mr,LucideArrowUpLeftFromCircle:Vt,LucideArrowUpLeftFromSquare:Ea,LucideArrowUpLeftSquare:Da,LucideArrowUpNarrowWide:lt,LucideArrowUpRight:Cr,LucideArrowUpRightFromCircle:Pt,LucideArrowUpRightFromSquare:Sa,LucideArrowUpRightSquare:Ta,LucideArrowUpSquare:za,LucideArrowUpToLine:xr,LucideArrowUpWideNarrow:Lr,LucideArrowUpZA:ht,LucideArrowUpZa:ht,LucideArrowsUpFromLine:Sr,LucideAsterisk:Ir,LucideAsteriskSquare:Ra,LucideAtSign:Tr,LucideAtom:Dr,LucideAudioLines:zr,LucideAudioWaveform:Rr,LucideAward:Hr,LucideAxe:Ar,LucideAxis3D:ct,LucideAxis3d:ct,LucideBaby:Vr,LucideBackpack:Pr,LucideBadge:Jr,LucideBadgeAlert:qr,LucideBadgeCent:Br,LucideBadgeCheck:dt,LucideBadgeDollarSign:Fr,LucideBadgeEuro:Or,LucideBadgeHelp:jr,LucideBadgeIndianRupee:Nr,LucideBadgeInfo:_r,LucideBadgeJapaneseYen:Wr,LucideBadgeMinus:Ur,LucideBadgePercent:$r,LucideBadgePlus:Gr,LucideBadgePoundSterling:Yr,LucideBadgeRussianRuble:Zr,LucideBadgeSwissFranc:Xr,LucideBadgeX:Kr,LucideBaggageClaim:Qr,LucideBan:el,LucideBanana:tl,LucideBandage:il,LucideBanknote:sl,LucideBanknoteArrowDown:al,LucideBanknoteArrowUp:ol,LucideBanknoteX:nl,LucideBarChart:Lt,LucideBarChart2:Et,LucideBarChart3:Ct,LucideBarChart4:Mt,LucideBarChartBig:wt,LucideBarChartHorizontal:vt,LucideBarChartHorizontalBig:kt,LucideBarcode:rl,LucideBaseline:ll,LucideBath:hl,LucideBattery:ml,LucideBatteryCharging:cl,LucideBatteryFull:dl,LucideBatteryLow:ul,LucideBatteryMedium:pl,LucideBatteryPlus:yl,LucideBatteryWarning:fl,LucideBeaker:gl,LucideBean:vl,LucideBeanOff:kl,LucideBed:Ml,LucideBedDouble:bl,LucideBedSingle:wl,LucideBeef:xl,LucideBeer:Ll,LucideBeerOff:Cl,LucideBell:Rl,LucideBellDot:El,LucideBellElectric:Sl,LucideBellMinus:Il,LucideBellOff:Tl,LucideBellPlus:Dl,LucideBellRing:zl,LucideBetweenHorizonalEnd:ut,LucideBetweenHorizonalStart:pt,LucideBetweenHorizontalEnd:ut,LucideBetweenHorizontalStart:pt,LucideBetweenVerticalEnd:Hl,LucideBetweenVerticalStart:Al,LucideBicepsFlexed:Vl,LucideBike:Pl,LucideBinary:ql,LucideBinoculars:Bl,LucideBiohazard:Fl,LucideBird:Ol,LucideBitcoin:jl,LucideBlend:Nl,LucideBlinds:_l,LucideBlocks:Wl,LucideBluetooth:Yl,LucideBluetoothConnected:Ul,LucideBluetoothOff:$l,LucideBluetoothSearching:Gl,LucideBold:Zl,LucideBolt:Xl,LucideBomb:Kl,LucideBone:Jl,LucideBook:w1,LucideBookA:Ql,LucideBookAudio:e1,LucideBookCheck:t1,LucideBookCopy:i1,LucideBookDashed:yt,LucideBookDown:o1,LucideBookHeadphones:a1,LucideBookHeart:n1,LucideBookImage:s1,LucideBookKey:r1,LucideBookLock:l1,LucideBookMarked:h1,LucideBookMinus:c1,LucideBookOpen:p1,LucideBookOpenCheck:u1,LucideBookOpenText:d1,LucideBookPlus:y1,LucideBookTemplate:yt,LucideBookText:f1,LucideBookType:m1,LucideBookUp:k1,LucideBookUp2:g1,LucideBookUser:v1,LucideBookX:b1,LucideBookmark:E1,LucideBookmarkCheck:M1,LucideBookmarkMinus:C1,LucideBookmarkPlus:x1,LucideBookmarkX:L1,LucideBoomBox:S1,LucideBot:D1,LucideBotMessageSquare:I1,LucideBotOff:T1,LucideBowArrow:z1,LucideBox:R1,LucideBoxSelect:_a,LucideBoxes:H1,LucideBraces:ft,LucideBrackets:A1,LucideBrain:q1,LucideBrainCircuit:V1,LucideBrainCog:P1,LucideBrickWall:F1,LucideBrickWallFire:B1,LucideBriefcase:_1,LucideBriefcaseBusiness:O1,LucideBriefcaseConveyorBelt:j1,LucideBriefcaseMedical:N1,LucideBringToFront:W1,LucideBrush:$1,LucideBrushCleaning:U1,LucideBubbles:G1,LucideBug:X1,LucideBugOff:Y1,LucideBugPlay:Z1,LucideBuilding:J1,LucideBuilding2:K1,LucideBus:eh,LucideBusFront:Q1,LucideCable:ih,LucideCableCar:th,LucideCake:oh,LucideCakeSlice:ah,LucideCalculator:nh,LucideCalendar:Eh,LucideCalendar1:sh,LucideCalendarArrowDown:rh,LucideCalendarArrowUp:lh,LucideCalendarCheck:ch,LucideCalendarCheck2:hh,LucideCalendarClock:dh,LucideCalendarCog:uh,LucideCalendarDays:ph,LucideCalendarFold:yh,LucideCalendarHeart:fh,LucideCalendarMinus:gh,LucideCalendarMinus2:mh,LucideCalendarOff:kh,LucideCalendarPlus:bh,LucideCalendarPlus2:vh,LucideCalendarRange:wh,LucideCalendarSearch:Mh,LucideCalendarSync:Ch,LucideCalendarX:Lh,LucideCalendarX2:xh,LucideCamera:Ih,LucideCameraOff:Sh,LucideCandlestickChart:bt,LucideCandy:zh,LucideCandyCane:Th,LucideCandyOff:Dh,LucideCannabis:Rh,LucideCaptions:mt,LucideCaptionsOff:Hh,LucideCar:Ph,LucideCarFront:Ah,LucideCarTaxiFront:Vh,LucideCaravan:qh,LucideCarrot:Bh,LucideCaseLower:Fh,LucideCaseSensitive:Oh,LucideCaseUpper:jh,LucideCassetteTape:Nh,LucideCast:_h,LucideCastle:Wh,LucideCat:Uh,LucideCctv:$h,LucideChartArea:gt,LucideChartBar:vt,LucideChartBarBig:kt,LucideChartBarDecreasing:Gh,LucideChartBarIncreasing:Yh,LucideChartBarStacked:Zh,LucideChartCandlestick:bt,LucideChartColumn:Ct,LucideChartColumnBig:wt,LucideChartColumnDecreasing:Xh,LucideChartColumnIncreasing:Mt,LucideChartColumnStacked:Kh,LucideChartGantt:Jh,LucideChartLine:xt,LucideChartNetwork:Qh,LucideChartNoAxesColumn:Et,LucideChartNoAxesColumnDecreasing:ec,LucideChartNoAxesColumnIncreasing:Lt,LucideChartNoAxesCombined:tc,LucideChartNoAxesGantt:St,LucideChartPie:It,LucideChartScatter:Tt,LucideChartSpline:ic,LucideCheck:nc,LucideCheckCheck:ac,LucideCheckCircle:Ft,LucideCheckCircle2:Ot,LucideCheckLine:oc,LucideCheckSquare:Aa,LucideCheckSquare2:Va,LucideChefHat:sc,LucideCherry:rc,LucideChevronDown:lc,LucideChevronDownCircle:jt,LucideChevronDownSquare:Pa,LucideChevronFirst:hc,LucideChevronLast:dc,LucideChevronLeft:cc,LucideChevronLeftCircle:Nt,LucideChevronLeftSquare:qa,LucideChevronRight:uc,LucideChevronRightCircle:_t,LucideChevronRightSquare:Ba,LucideChevronUp:pc,LucideChevronUpCircle:Wt,LucideChevronUpSquare:Fa,LucideChevronsDown:fc,LucideChevronsDownUp:yc,LucideChevronsLeft:kc,LucideChevronsLeftRight:gc,LucideChevronsLeftRightEllipsis:mc,LucideChevronsRight:bc,LucideChevronsRightLeft:vc,LucideChevronsUp:Mc,LucideChevronsUpDown:wc,LucideChrome:Cc,LucideChurch:xc,LucideCigarette:Ec,LucideCigaretteOff:Lc,LucideCircle:Bc,LucideCircleAlert:zt,LucideCircleArrowDown:Dt,LucideCircleArrowLeft:Rt,LucideCircleArrowOutDownLeft:Ht,LucideCircleArrowOutDownRight:At,LucideCircleArrowOutUpLeft:Vt,LucideCircleArrowOutUpRight:Pt,LucideCircleArrowRight:qt,LucideCircleArrowUp:Bt,LucideCircleCheck:Ot,LucideCircleCheckBig:Ft,LucideCircleChevronDown:jt,LucideCircleChevronLeft:Nt,LucideCircleChevronRight:_t,LucideCircleChevronUp:Wt,LucideCircleDashed:Sc,LucideCircleDivide:Ut,LucideCircleDollarSign:Ic,LucideCircleDot:Dc,LucideCircleDotDashed:Tc,LucideCircleEllipsis:zc,LucideCircleEqual:Rc,LucideCircleFadingArrowUp:Hc,LucideCircleFadingPlus:Ac,LucideCircleGauge:$t,LucideCircleHelp:Gt,LucideCircleMinus:Yt,LucideCircleOff:Vc,LucideCircleParking:Xt,LucideCircleParkingOff:Zt,LucideCirclePause:Kt,LucideCirclePercent:Jt,LucideCirclePlay:Qt,LucideCirclePlus:ei,LucideCirclePower:ti,LucideCircleSlash:Pc,LucideCircleSlash2:ii,LucideCircleSlashed:ii,LucideCircleSmall:qc,LucideCircleStop:ai,LucideCircleUser:ni,LucideCircleUserRound:oi,LucideCircleX:si,LucideCircuitBoard:Fc,LucideCitrus:Oc,LucideClapperboard:jc,LucideClipboard:Xc,LucideClipboardCheck:Nc,LucideClipboardCopy:_c,LucideClipboardEdit:li,LucideClipboardList:Wc,LucideClipboardMinus:Uc,LucideClipboardPaste:$c,LucideClipboardPen:li,LucideClipboardPenLine:ri,LucideClipboardPlus:Gc,LucideClipboardSignature:ri,LucideClipboardType:Yc,LucideClipboardX:Zc,LucideClock:yd,LucideClock1:Kc,LucideClock10:Jc,LucideClock11:Qc,LucideClock12:ed,LucideClock2:td,LucideClock3:id,LucideClock4:ad,LucideClock5:od,LucideClock6:nd,LucideClock7:sd,LucideClock8:rd,LucideClock9:ld,LucideClockAlert:hd,LucideClockArrowDown:cd,LucideClockArrowUp:dd,LucideClockFading:ud,LucideClockPlus:pd,LucideCloud:Td,LucideCloudAlert:fd,LucideCloudCog:md,LucideCloudDownload:hi,LucideCloudDrizzle:gd,LucideCloudFog:vd,LucideCloudHail:kd,LucideCloudLightning:bd,LucideCloudMoon:Md,LucideCloudMoonRain:wd,LucideCloudOff:Cd,LucideCloudRain:Ld,LucideCloudRainWind:xd,LucideCloudSnow:Ed,LucideCloudSun:Id,LucideCloudSunRain:Sd,LucideCloudUpload:ci,LucideCloudy:Dd,LucideClover:zd,LucideClub:Rd,LucideCode:Hd,LucideCode2:di,LucideCodeSquare:Oa,LucideCodeXml:di,LucideCodepen:Ad,LucideCodesandbox:Vd,LucideCoffee:Pd,LucideCog:qd,LucideCoins:Bd,LucideColumns:ui,LucideColumns2:ui,LucideColumns3:pi,LucideColumns3Cog:Ie,LucideColumns4:Fd,LucideColumnsSettings:Ie,LucideCombine:jd,LucideCommand:Od,LucideCompass:Nd,LucideComponent:_d,LucideComputer:Wd,LucideConciergeBell:Ud,LucideCone:Gd,LucideConstruction:$d,LucideContact:Yd,LucideContact2:yi,LucideContactRound:yi,LucideContainer:Zd,LucideContrast:Xd,LucideCookie:Kd,LucideCookingPot:Jd,LucideCopy:o2,LucideCopyCheck:e2,LucideCopyMinus:Qd,LucideCopyPlus:t2,LucideCopySlash:i2,LucideCopyX:a2,LucideCopyleft:n2,LucideCopyright:s2,LucideCornerDownLeft:r2,LucideCornerDownRight:l2,LucideCornerLeftDown:h2,LucideCornerLeftUp:c2,LucideCornerRightDown:d2,LucideCornerRightUp:u2,LucideCornerUpLeft:p2,LucideCornerUpRight:y2,LucideCpu:f2,LucideCreativeCommons:m2,LucideCreditCard:g2,LucideCroissant:k2,LucideCrop:v2,LucideCross:b2,LucideCrosshair:w2,LucideCrown:M2,LucideCuboid:C2,LucideCupSoda:x2,LucideCurlyBraces:ft,LucideCurrency:L2,LucideCylinder:E2,LucideDam:S2,LucideDatabase:D2,LucideDatabaseBackup:I2,LucideDatabaseZap:T2,LucideDecimalsArrowLeft:z2,LucideDecimalsArrowRight:R2,LucideDelete:H2,LucideDessert:V2,LucideDiameter:A2,LucideDiamond:B2,LucideDiamondMinus:P2,LucideDiamondPercent:fi,LucideDiamondPlus:q2,LucideDice1:F2,LucideDice2:O2,LucideDice3:j2,LucideDice4:N2,LucideDice5:_2,LucideDice6:W2,LucideDices:U2,LucideDiff:$2,LucideDisc:X2,LucideDisc2:G2,LucideDisc3:Y2,LucideDiscAlbum:Z2,LucideDivide:K2,LucideDivideCircle:Ut,LucideDivideSquare:Wa,LucideDna:J2,LucideDnaOff:Q2,LucideDock:eu,LucideDog:tu,LucideDollarSign:iu,LucideDonut:au,LucideDoorClosed:nu,LucideDoorClosedLocked:ou,LucideDoorOpen:su,LucideDot:ru,LucideDotSquare:Ua,LucideDownload:lu,LucideDownloadCloud:hi,LucideDraftingCompass:hu,LucideDrama:cu,LucideDribbble:du,LucideDrill:uu,LucideDroplet:yu,LucideDropletOff:pu,LucideDroplets:fu,LucideDrum:mu,LucideDrumstick:gu,LucideDumbbell:ku,LucideEar:bu,LucideEarOff:vu,LucideEarth:mi,LucideEarthLock:Mu,LucideEclipse:wu,LucideEdit:ue,LucideEdit2:la,LucideEdit3:ra,LucideEgg:Lu,LucideEggFried:Cu,LucideEggOff:xu,LucideEllipsis:ki,LucideEllipsisVertical:gi,LucideEqual:Iu,LucideEqualApproximately:Eu,LucideEqualNot:Su,LucideEqualSquare:$a,LucideEraser:Tu,LucideEthernetPort:Du,LucideEuro:zu,LucideExpand:Ru,LucideExternalLink:Hu,LucideEye:Pu,LucideEyeClosed:Au,LucideEyeOff:Vu,LucideFacebook:qu,LucideFactory:Bu,LucideFan:Fu,LucideFastForward:Ou,LucideFeather:ju,LucideFence:Wu,LucideFerrisWheel:Nu,LucideFigma:_u,LucideFile:j0,LucideFileArchive:Uu,LucideFileAudio:Gu,LucideFileAudio2:$u,LucideFileAxis3D:vi,LucideFileAxis3d:vi,LucideFileBadge:Zu,LucideFileBadge2:Yu,LucideFileBarChart:bi,LucideFileBarChart2:wi,LucideFileBox:Xu,LucideFileChartColumn:wi,LucideFileChartColumnIncreasing:bi,LucideFileChartLine:Mi,LucideFileChartPie:Ci,LucideFileCheck:Ju,LucideFileCheck2:Ku,LucideFileClock:Qu,LucideFileCode:t0,LucideFileCode2:e0,LucideFileCog:xi,LucideFileCog2:xi,LucideFileDiff:i0,LucideFileDigit:a0,LucideFileDown:o0,LucideFileEdit:Ei,LucideFileHeart:n0,LucideFileImage:s0,LucideFileInput:r0,LucideFileJson:h0,LucideFileJson2:l0,LucideFileKey:d0,LucideFileKey2:c0,LucideFileLineChart:Mi,LucideFileLock:p0,LucideFileLock2:u0,LucideFileMinus:y0,LucideFileMinus2:f0,LucideFileMusic:m0,LucideFileOutput:g0,LucideFilePen:Ei,LucideFilePenLine:Li,LucideFilePieChart:Ci,LucideFilePlus:b0,LucideFilePlus2:k0,LucideFileQuestion:v0,LucideFileScan:w0,LucideFileSearch:C0,LucideFileSearch2:M0,LucideFileSignature:Li,LucideFileSliders:x0,LucideFileSpreadsheet:L0,LucideFileStack:E0,LucideFileSymlink:S0,LucideFileTerminal:I0,LucideFileText:T0,LucideFileType:z0,LucideFileType2:D0,LucideFileUp:R0,LucideFileUser:H0,LucideFileVideo:V0,LucideFileVideo2:A0,LucideFileVolume:B0,LucideFileVolume2:P0,LucideFileWarning:q0,LucideFileX:O0,LucideFileX2:F0,LucideFiles:_0,LucideFilm:N0,LucideFilter:Di,LucideFilterX:Ti,LucideFingerprint:W0,LucideFireExtinguisher:U0,LucideFish:Y0,LucideFishOff:$0,LucideFishSymbol:G0,LucideFlag:J0,LucideFlagOff:Z0,LucideFlagTriangleLeft:X0,LucideFlagTriangleRight:K0,LucideFlame:ep,LucideFlameKindling:Q0,LucideFlashlight:ap,LucideFlashlightOff:tp,LucideFlaskConical:op,LucideFlaskConicalOff:ip,LucideFlaskRound:np,LucideFlipHorizontal:rp,LucideFlipHorizontal2:sp,LucideFlipVertical:lp,LucideFlipVertical2:hp,LucideFlower:dp,LucideFlower2:cp,LucideFocus:up,LucideFoldHorizontal:pp,LucideFoldVertical:yp,LucideFolder:Np,LucideFolderArchive:fp,LucideFolderCheck:mp,LucideFolderClock:kp,LucideFolderClosed:gp,LucideFolderCode:vp,LucideFolderCog:Si,LucideFolderCog2:Si,LucideFolderDot:bp,LucideFolderDown:wp,LucideFolderEdit:Ii,LucideFolderGit:Cp,LucideFolderGit2:Mp,LucideFolderHeart:xp,LucideFolderInput:Lp,LucideFolderKanban:Ep,LucideFolderKey:Sp,LucideFolderLock:Ip,LucideFolderMinus:Dp,LucideFolderOpen:zp,LucideFolderOpenDot:Tp,LucideFolderOutput:Hp,LucideFolderPen:Ii,LucideFolderPlus:Rp,LucideFolderRoot:Ap,LucideFolderSearch:Pp,LucideFolderSearch2:Vp,LucideFolderSymlink:Bp,LucideFolderSync:qp,LucideFolderTree:Fp,LucideFolderUp:Op,LucideFolderX:jp,LucideFolders:_p,LucideFootprints:Wp,LucideForkKnife:Ho,LucideForkKnifeCrossed:Ro,LucideForklift:Up,LucideFormInput:ca,LucideForward:Gp,LucideFrame:$p,LucideFramer:Yp,LucideFrown:Zp,LucideFuel:Kp,LucideFullscreen:Xp,LucideFunctionSquare:Ga,LucideFunnel:Di,LucideFunnelPlus:Jp,LucideFunnelX:Ti,LucideGalleryHorizontal:ty,LucideGalleryHorizontalEnd:Qp,LucideGalleryThumbnails:ey,LucideGalleryVertical:ay,LucideGalleryVerticalEnd:iy,LucideGamepad:oy,LucideGamepad2:ny,LucideGanttChart:St,LucideGanttChartSquare:De,LucideGauge:sy,LucideGaugeCircle:$t,LucideGavel:ry,LucideGem:ly,LucideGhost:hy,LucideGift:cy,LucideGitBranch:uy,LucideGitBranchPlus:dy,LucideGitCommit:zi,LucideGitCommitHorizontal:zi,LucideGitCommitVertical:py,LucideGitCompare:fy,LucideGitCompareArrows:yy,LucideGitFork:my,LucideGitGraph:gy,LucideGitMerge:ky,LucideGitPullRequest:xy,LucideGitPullRequestArrow:vy,LucideGitPullRequestClosed:by,LucideGitPullRequestCreate:Cy,LucideGitPullRequestCreateArrow:wy,LucideGitPullRequestDraft:My,LucideGithub:Ly,LucideGitlab:Ey,LucideGlassWater:Sy,LucideGlasses:Iy,LucideGlobe:zy,LucideGlobe2:mi,LucideGlobeLock:Ty,LucideGoal:Dy,LucideGpu:Ry,LucideGrab:Hy,LucideGraduationCap:Ay,LucideGrape:Vy,LucideGrid:Te,LucideGrid2X2:Vi,LucideGrid2X2Check:Ri,LucideGrid2X2Plus:Hi,LucideGrid2X2X:Ai,LucideGrid2x2:Vi,LucideGrid2x2Check:Ri,LucideGrid2x2Plus:Hi,LucideGrid2x2X:Ai,LucideGrid3X3:Te,LucideGrid3x3:Te,LucideGrip:By,LucideGripHorizontal:Py,LucideGripVertical:qy,LucideGroup:Fy,LucideGuitar:Oy,LucideHam:jy,LucideHamburger:Ny,LucideHammer:_y,LucideHand:Yy,LucideHandCoins:Wy,LucideHandHeart:Uy,LucideHandHelping:Pi,LucideHandMetal:$y,LucideHandPlatter:Gy,LucideHandshake:Xy,LucideHardDrive:Jy,LucideHardDriveDownload:Zy,LucideHardDriveUpload:Ky,LucideHardHat:Qy,LucideHash:ef,LucideHaze:tf,LucideHdmiPort:af,LucideHeading:cf,LucideHeading1:of,LucideHeading2:nf,LucideHeading3:sf,LucideHeading4:hf,LucideHeading5:rf,LucideHeading6:lf,LucideHeadphoneOff:df,LucideHeadphones:uf,LucideHeadset:pf,LucideHeart:vf,LucideHeartCrack:yf,LucideHeartHandshake:ff,LucideHeartMinus:mf,LucideHeartOff:gf,LucideHeartPlus:kf,LucideHeartPulse:bf,LucideHeater:wf,LucideHelpCircle:Gt,LucideHelpingHand:Pi,LucideHexagon:Mf,LucideHighlighter:Cf,LucideHistory:xf,LucideHome:qi,LucideHop:Ef,LucideHopOff:Lf,LucideHospital:Sf,LucideHotel:If,LucideHourglass:Tf,LucideHouse:qi,LucideHousePlug:Df,LucideHousePlus:zf,LucideHouseWifi:Rf,LucideIceCream:Fi,LucideIceCream2:Bi,LucideIceCreamBowl:Bi,LucideIceCreamCone:Fi,LucideIdCard:Hf,LucideImage:jf,LucideImageDown:Af,LucideImageMinus:Vf,LucideImageOff:qf,LucideImagePlay:Pf,LucideImagePlus:Bf,LucideImageUp:Of,LucideImageUpscale:Ff,LucideImages:Nf,LucideImport:Wf,LucideInbox:_f,LucideIndent:ji,LucideIndentDecrease:Oi,LucideIndentIncrease:ji,LucideIndianRupee:Uf,LucideInfinity:$f,LucideInfo:Gf,LucideInspect:Qa,LucideInspectionPanel:Xf,LucideInstagram:Yf,LucideItalic:Zf,LucideIterationCcw:Kf,LucideIterationCw:Jf,LucideJapaneseYen:Qf,LucideJoystick:em,LucideKanban:tm,LucideKanbanSquare:Ya,LucideKanbanSquareDashed:ja,LucideKey:om,LucideKeyRound:am,LucideKeySquare:im,LucideKeyboard:rm,LucideKeyboardMusic:nm,LucideKeyboardOff:sm,LucideLamp:pm,LucideLampCeiling:lm,LucideLampDesk:cm,LucideLampFloor:hm,LucideLampWallDown:dm,LucideLampWallUp:um,LucideLandPlot:ym,LucideLandmark:fm,LucideLanguages:mm,LucideLaptop:km,LucideLaptop2:Ni,LucideLaptopMinimal:Ni,LucideLaptopMinimalCheck:gm,LucideLasso:vm,LucideLassoSelect:wm,LucideLaugh:bm,LucideLayers:_i,LucideLayers2:Mm,LucideLayers3:_i,LucideLayout:sa,LucideLayoutDashboard:Cm,LucideLayoutGrid:xm,LucideLayoutList:Lm,LucideLayoutPanelLeft:Em,LucideLayoutPanelTop:Sm,LucideLayoutTemplate:Im,LucideLeaf:Tm,LucideLeafyGreen:zm,LucideLectern:Dm,LucideLetterText:Rm,LucideLibrary:Am,LucideLibraryBig:Hm,LucideLibrarySquare:Za,LucideLifeBuoy:Vm,LucideLigature:Pm,LucideLightbulb:Bm,LucideLightbulbOff:qm,LucideLineChart:xt,LucideLink:jm,LucideLink2:Om,LucideLink2Off:Fm,LucideLinkedin:Nm,LucideList:ng,LucideListCheck:_m,LucideListChecks:Wm,LucideListCollapse:Um,LucideListEnd:$m,LucideListFilter:Zm,LucideListFilterPlus:Gm,LucideListMinus:Ym,LucideListMusic:Xm,LucideListOrdered:Km,LucideListPlus:Jm,LucideListRestart:Qm,LucideListStart:eg,LucideListTodo:tg,LucideListTree:ig,LucideListVideo:ag,LucideListX:og,LucideLoader:rg,LucideLoader2:Wi,LucideLoaderCircle:Wi,LucideLoaderPinwheel:sg,LucideLocate:cg,LucideLocateFixed:lg,LucideLocateOff:hg,LucideLocationEdit:dg,LucideLock:pg,LucideLockKeyhole:ug,LucideLockKeyholeOpen:Ui,LucideLockOpen:$i,LucideLogIn:yg,LucideLogOut:fg,LucideLogs:mg,LucideLollipop:gg,LucideLuggage:kg,LucideMSquare:Xa,LucideMagnet:vg,LucideMail:Ig,LucideMailCheck:bg,LucideMailMinus:wg,LucideMailOpen:Mg,LucideMailPlus:Cg,LucideMailQuestion:xg,LucideMailSearch:Lg,LucideMailWarning:Eg,LucideMailX:Sg,LucideMailbox:Tg,LucideMails:Dg,LucideMap:Wg,LucideMapPin:jg,LucideMapPinCheck:Rg,LucideMapPinCheckInside:zg,LucideMapPinHouse:Hg,LucideMapPinMinus:Vg,LucideMapPinMinusInside:Ag,LucideMapPinOff:Pg,LucideMapPinPlus:Bg,LucideMapPinPlusInside:qg,LucideMapPinX:Fg,LucideMapPinXInside:Og,LucideMapPinned:Ng,LucideMapPlus:_g,LucideMars:$g,LucideMarsStroke:Ug,LucideMartini:Gg,LucideMaximize:Yg,LucideMaximize2:Zg,LucideMedal:Xg,LucideMegaphone:Jg,LucideMegaphoneOff:Kg,LucideMeh:Qg,LucideMemoryStick:tk,LucideMenu:ek,LucideMenuSquare:Ka,LucideMerge:ik,LucideMessageCircle:pk,LucideMessageCircleCode:ak,LucideMessageCircleDashed:ok,LucideMessageCircleHeart:nk,LucideMessageCircleMore:sk,LucideMessageCircleOff:rk,LucideMessageCirclePlus:lk,LucideMessageCircleQuestion:hk,LucideMessageCircleReply:ck,LucideMessageCircleWarning:dk,LucideMessageCircleX:uk,LucideMessageSquare:Tk,LucideMessageSquareCode:yk,LucideMessageSquareDashed:fk,LucideMessageSquareDiff:mk,LucideMessageSquareDot:gk,LucideMessageSquareHeart:kk,LucideMessageSquareLock:vk,LucideMessageSquareMore:bk,LucideMessageSquareOff:wk,LucideMessageSquarePlus:Mk,LucideMessageSquareQuote:Ck,LucideMessageSquareReply:xk,LucideMessageSquareShare:Lk,LucideMessageSquareText:Ek,LucideMessageSquareWarning:Sk,LucideMessageSquareX:Ik,LucideMessagesSquare:Dk,LucideMic:Rk,LucideMic2:Gi,LucideMicOff:zk,LucideMicVocal:Gi,LucideMicrochip:Hk,LucideMicroscope:Ak,LucideMicrowave:Vk,LucideMilestone:Pk,LucideMilk:Bk,LucideMilkOff:qk,LucideMinimize:Ok,LucideMinimize2:Fk,LucideMinus:jk,LucideMinusCircle:Yt,LucideMinusSquare:Ja,LucideMonitor:e3,LucideMonitorCheck:Nk,LucideMonitorCog:Wk,LucideMonitorDot:_k,LucideMonitorDown:Uk,LucideMonitorOff:$k,LucideMonitorPause:Gk,LucideMonitorPlay:Yk,LucideMonitorSmartphone:Zk,LucideMonitorSpeaker:Kk,LucideMonitorStop:Xk,LucideMonitorUp:Jk,LucideMonitorX:Qk,LucideMoon:i3,LucideMoonStar:t3,LucideMoreHorizontal:ki,LucideMoreVertical:gi,LucideMountain:o3,LucideMountainSnow:a3,LucideMouse:u3,LucideMouseOff:n3,LucideMousePointer:h3,LucideMousePointer2:s3,LucideMousePointerBan:r3,LucideMousePointerClick:l3,LucideMousePointerSquareDashed:Na,LucideMove:C3,LucideMove3D:Yi,LucideMove3d:Yi,LucideMoveDiagonal:d3,LucideMoveDiagonal2:c3,LucideMoveDown:f3,LucideMoveDownLeft:p3,LucideMoveDownRight:y3,LucideMoveHorizontal:g3,LucideMoveLeft:m3,LucideMoveRight:k3,LucideMoveUp:w3,LucideMoveUpLeft:v3,LucideMoveUpRight:b3,LucideMoveVertical:M3,LucideMusic:S3,LucideMusic2:x3,LucideMusic3:L3,LucideMusic4:E3,LucideNavigation:z3,LucideNavigation2:T3,LucideNavigation2Off:I3,LucideNavigationOff:D3,LucideNetwork:R3,LucideNewspaper:H3,LucideNfc:A3,LucideNonBinary:V3,LucideNotebook:F3,LucideNotebookPen:P3,LucideNotebookTabs:q3,LucideNotebookText:B3,LucideNotepadText:j3,LucideNotepadTextDashed:O3,LucideNut:_3,LucideNutOff:N3,LucideOctagon:U3,LucideOctagonAlert:Zi,LucideOctagonMinus:W3,LucideOctagonPause:Ki,LucideOctagonX:Xi,LucideOmega:$3,LucideOption:G3,LucideOrbit:Z3,LucideOrigami:Y3,LucideOutdent:Oi,LucidePackage:a4,LucidePackage2:X3,LucidePackageCheck:K3,LucidePackageMinus:J3,LucidePackageOpen:Q3,LucidePackagePlus:e4,LucidePackageSearch:t4,LucidePackageX:i4,LucidePaintBucket:o4,LucidePaintRoller:n4,LucidePaintbrush:s4,LucidePaintbrush2:Ji,LucidePaintbrushVertical:Ji,LucidePalette:r4,LucidePalmtree:wo,LucidePanda:l4,LucidePanelBottom:d4,LucidePanelBottomClose:h4,LucidePanelBottomDashed:Qi,LucidePanelBottomInactive:Qi,LucidePanelBottomOpen:c4,LucidePanelLeft:aa,LucidePanelLeftClose:ea,LucidePanelLeftDashed:ta,LucidePanelLeftInactive:ta,LucidePanelLeftOpen:ia,LucidePanelRight:f4,LucidePanelRightClose:u4,LucidePanelRightDashed:oa,LucidePanelRightInactive:oa,LucidePanelRightOpen:p4,LucidePanelTop:g4,LucidePanelTopClose:y4,LucidePanelTopDashed:na,LucidePanelTopInactive:na,LucidePanelTopOpen:m4,LucidePanelsLeftBottom:k4,LucidePanelsLeftRight:pi,LucidePanelsRightBottom:v4,LucidePanelsTopBottom:pa,LucidePanelsTopLeft:sa,LucidePaperclip:b4,LucideParentheses:w4,LucideParkingCircle:Xt,LucideParkingCircleOff:Zt,LucideParkingMeter:M4,LucideParkingSquare:to,LucideParkingSquareOff:eo,LucidePartyPopper:C4,LucidePause:x4,LucidePauseCircle:Kt,LucidePauseOctagon:Ki,LucidePawPrint:L4,LucidePcCase:E4,LucidePen:la,LucidePenBox:ue,LucidePenLine:ra,LucidePenOff:S4,LucidePenSquare:ue,LucidePenTool:I4,LucidePencil:R4,LucidePencilLine:D4,LucidePencilOff:T4,LucidePencilRuler:z4,LucidePentagon:H4,LucidePercent:A4,LucidePercentCircle:Jt,LucidePercentDiamond:fi,LucidePercentSquare:io,LucidePersonStanding:V4,LucidePhilippinePeso:q4,LucidePhone:_4,LucidePhoneCall:P4,LucidePhoneForwarded:B4,LucidePhoneIncoming:F4,LucidePhoneMissed:O4,LucidePhoneOff:j4,LucidePhoneOutgoing:N4,LucidePi:W4,LucidePiSquare:ao,LucidePiano:U4,LucidePickaxe:$4,LucidePictureInPicture:Y4,LucidePictureInPicture2:G4,LucidePieChart:It,LucidePiggyBank:Z4,LucidePilcrow:J4,LucidePilcrowLeft:X4,LucidePilcrowRight:K4,LucidePilcrowSquare:oo,LucidePill:ev,LucidePillBottle:Q4,LucidePin:iv,LucidePinOff:tv,LucidePipette:av,LucidePizza:ov,LucidePlane:rv,LucidePlaneLanding:nv,LucidePlaneTakeoff:sv,LucidePlay:lv,LucidePlayCircle:Qt,LucidePlaySquare:no,LucidePlug:cv,LucidePlug2:hv,LucidePlugZap:ha,LucidePlugZap2:ha,LucidePlus:dv,LucidePlusCircle:ei,LucidePlusSquare:so,LucidePocket:uv,LucidePocketKnife:pv,LucidePodcast:yv,LucidePointer:mv,LucidePointerOff:fv,LucidePopcorn:gv,LucidePopsicle:kv,LucidePoundSterling:vv,LucidePower:wv,LucidePowerCircle:ti,LucidePowerOff:bv,LucidePowerSquare:ro,LucidePresentation:Mv,LucidePrinter:xv,LucidePrinterCheck:Cv,LucideProjector:Lv,LucideProportions:Ev,LucidePuzzle:Sv,LucidePyramid:Iv,LucideQrCode:Tv,LucideQuote:zv,LucideRabbit:Dv,LucideRadar:Rv,LucideRadiation:Hv,LucideRadical:Av,LucideRadio:qv,LucideRadioReceiver:Vv,LucideRadioTower:Pv,LucideRadius:Bv,LucideRailSymbol:Fv,LucideRainbow:Ov,LucideRat:jv,LucideRatio:Nv,LucideReceipt:Kv,LucideReceiptCent:_v,LucideReceiptEuro:Wv,LucideReceiptIndianRupee:$v,LucideReceiptJapaneseYen:Uv,LucideReceiptPoundSterling:Yv,LucideReceiptRussianRuble:Gv,LucideReceiptSwissFranc:Zv,LucideReceiptText:Xv,LucideRectangleEllipsis:ca,LucideRectangleGoggles:Jv,LucideRectangleHorizontal:Qv,LucideRectangleVertical:e5,LucideRecycle:t5,LucideRedo:o5,LucideRedo2:i5,LucideRedoDot:a5,LucideRefreshCcw:s5,LucideRefreshCcwDot:n5,LucideRefreshCw:l5,LucideRefreshCwOff:r5,LucideRefrigerator:c5,LucideRegex:h5,LucideRemoveFormatting:d5,LucideRepeat:y5,LucideRepeat1:u5,LucideRepeat2:p5,LucideReplace:m5,LucideReplaceAll:f5,LucideReply:k5,LucideReplyAll:g5,LucideRewind:v5,LucideRibbon:b5,LucideRocket:w5,LucideRockingChair:M5,LucideRollerCoaster:C5,LucideRotate3D:da,LucideRotate3d:da,LucideRotateCcw:E5,LucideRotateCcwKey:x5,LucideRotateCcwSquare:L5,LucideRotateCw:I5,LucideRotateCwSquare:S5,LucideRoute:z5,LucideRouteOff:T5,LucideRouter:D5,LucideRows:ua,LucideRows2:ua,LucideRows3:pa,LucideRows4:R5,LucideRss:H5,LucideRuler:V5,LucideRulerDimensionLine:A5,LucideRussianRuble:P5,LucideSailboat:q5,LucideSalad:B5,LucideSandwich:F5,LucideSatellite:j5,LucideSatelliteDish:O5,LucideSaudiRiyal:N5,LucideSave:U5,LucideSaveAll:_5,LucideSaveOff:W5,LucideScale:$5,LucideScale3D:ya,LucideScale3d:ya,LucideScaling:G5,LucideScan:tb,LucideScanBarcode:Y5,LucideScanEye:X5,LucideScanFace:Z5,LucideScanHeart:K5,LucideScanLine:Q5,LucideScanQrCode:J5,LucideScanSearch:eb,LucideScanText:ib,LucideScatterChart:Tt,LucideSchool:ab,LucideSchool2:xo,LucideScissors:nb,LucideScissorsLineDashed:ob,LucideScissorsSquare:lo,LucideScissorsSquareDashedBottom:Ha,LucideScreenShare:rb,LucideScreenShareOff:sb,LucideScroll:hb,LucideScrollText:lb,LucideSearch:yb,LucideSearchCheck:cb,LucideSearchCode:db,LucideSearchSlash:ub,LucideSearchX:pb,LucideSection:fb,LucideSend:kb,LucideSendHorizonal:fa,LucideSendHorizontal:fa,LucideSendToBack:mb,LucideSeparatorHorizontal:gb,LucideSeparatorVertical:bb,LucideServer:Cb,LucideServerCog:vb,LucideServerCrash:wb,LucideServerOff:Mb,LucideSettings:Lb,LucideSettings2:xb,LucideShapes:Eb,LucideShare:Ib,LucideShare2:Sb,LucideSheet:Tb,LucideShell:Db,LucideShield:jb,LucideShieldAlert:zb,LucideShieldBan:Rb,LucideShieldCheck:Hb,LucideShieldClose:ma,LucideShieldEllipsis:Ab,LucideShieldHalf:Vb,LucideShieldMinus:Pb,LucideShieldOff:qb,LucideShieldPlus:Bb,LucideShieldQuestion:Fb,LucideShieldUser:Ob,LucideShieldX:ma,LucideShip:Nb,LucideShipWheel:Wb,LucideShirt:_b,LucideShoppingBag:Ub,LucideShoppingBasket:$b,LucideShoppingCart:Gb,LucideShovel:Yb,LucideShowerHead:Zb,LucideShredder:Xb,LucideShrimp:Kb,LucideShrink:Jb,LucideShrub:Qb,LucideShuffle:ew,LucideSidebar:aa,LucideSidebarClose:ea,LucideSidebarOpen:ia,LucideSigma:tw,LucideSigmaSquare:ho,LucideSignal:sw,LucideSignalHigh:iw,LucideSignalLow:aw,LucideSignalMedium:ow,LucideSignalZero:nw,LucideSignature:rw,LucideSignpost:hw,LucideSignpostBig:lw,LucideSiren:cw,LucideSkipBack:dw,LucideSkipForward:uw,LucideSkull:pw,LucideSlack:yw,LucideSlash:fw,LucideSlashSquare:uo,LucideSlice:gw,LucideSliders:ga,LucideSlidersHorizontal:mw,LucideSlidersVertical:ga,LucideSmartphone:bw,LucideSmartphoneCharging:kw,LucideSmartphoneNfc:vw,LucideSmile:Mw,LucideSmilePlus:ww,LucideSnail:Cw,LucideSnowflake:xw,LucideSoapDispenserDroplet:Lw,LucideSofa:Ew,LucideSortAsc:lt,LucideSortDesc:nt,LucideSoup:Sw,LucideSpace:Iw,LucideSpade:Tw,LucideSparkle:Dw,LucideSparkles:ka,LucideSpeaker:zw,LucideSpeech:Rw,LucideSpellCheck:Aw,LucideSpellCheck2:Hw,LucideSpline:Pw,LucideSplinePointer:Vw,LucideSplit:Bw,LucideSplitSquareHorizontal:co,LucideSplitSquareVertical:po,LucideSprayCan:qw,LucideSprout:Fw,LucideSquare:Gw,LucideSquareActivity:va,LucideSquareArrowDown:Ma,LucideSquareArrowDownLeft:ba,LucideSquareArrowDownRight:wa,LucideSquareArrowLeft:Ca,LucideSquareArrowOutDownLeft:xa,LucideSquareArrowOutDownRight:La,LucideSquareArrowOutUpLeft:Ea,LucideSquareArrowOutUpRight:Sa,LucideSquareArrowRight:Ia,LucideSquareArrowUp:za,LucideSquareArrowUpLeft:Da,LucideSquareArrowUpRight:Ta,LucideSquareAsterisk:Ra,LucideSquareBottomDashedScissors:Ha,LucideSquareChartGantt:De,LucideSquareCheck:Va,LucideSquareCheckBig:Aa,LucideSquareChevronDown:Pa,LucideSquareChevronLeft:qa,LucideSquareChevronRight:Ba,LucideSquareChevronUp:Fa,LucideSquareCode:Oa,LucideSquareDashed:_a,LucideSquareDashedBottom:jw,LucideSquareDashedBottomCode:Ow,LucideSquareDashedKanban:ja,LucideSquareDashedMousePointer:Na,LucideSquareDashedTopSolid:Nw,LucideSquareDivide:Wa,LucideSquareDot:Ua,LucideSquareEqual:$a,LucideSquareFunction:Ga,LucideSquareGanttChart:De,LucideSquareKanban:Ya,LucideSquareLibrary:Za,LucideSquareM:Xa,LucideSquareMenu:Ka,LucideSquareMinus:Ja,LucideSquareMousePointer:Qa,LucideSquareParking:to,LucideSquareParkingOff:eo,LucideSquarePen:ue,LucideSquarePercent:io,LucideSquarePi:ao,LucideSquarePilcrow:oo,LucideSquarePlay:no,LucideSquarePlus:so,LucideSquarePower:ro,LucideSquareRadical:_w,LucideSquareRoundCorner:Ww,LucideSquareScissors:lo,LucideSquareSigma:ho,LucideSquareSlash:uo,LucideSquareSplitHorizontal:co,LucideSquareSplitVertical:po,LucideSquareSquare:Uw,LucideSquareStack:$w,LucideSquareTerminal:yo,LucideSquareUser:mo,LucideSquareUserRound:fo,LucideSquareX:go,LucideSquaresExclude:Zw,LucideSquaresIntersect:Yw,LucideSquaresSubtract:Xw,LucideSquaresUnite:Kw,LucideSquircle:Jw,LucideSquirrel:Qw,LucideStamp:e6,LucideStar:a6,LucideStarHalf:t6,LucideStarOff:i6,LucideStars:ka,LucideStepBack:o6,LucideStepForward:n6,LucideStethoscope:s6,LucideSticker:r6,LucideStickyNote:l6,LucideStopCircle:ai,LucideStore:h6,LucideStretchHorizontal:c6,LucideStretchVertical:d6,LucideStrikethrough:u6,LucideSubscript:p6,LucideSubtitles:mt,LucideSun:k6,LucideSunDim:f6,LucideSunMedium:y6,LucideSunMoon:m6,LucideSunSnow:g6,LucideSunrise:v6,LucideSunset:b6,LucideSuperscript:w6,LucideSwatchBook:M6,LucideSwissFranc:C6,LucideSwitchCamera:x6,LucideSword:L6,LucideSwords:E6,LucideSyringe:S6,LucideTable:V6,LucideTable2:I6,LucideTableCellsMerge:T6,LucideTableCellsSplit:D6,LucideTableColumnsSplit:z6,LucideTableConfig:Ie,LucideTableOfContents:R6,LucideTableProperties:H6,LucideTableRowsSplit:A6,LucideTablet:q6,LucideTabletSmartphone:P6,LucideTablets:B6,LucideTag:F6,LucideTags:O6,LucideTally1:j6,LucideTally2:N6,LucideTally3:_6,LucideTally4:W6,LucideTally5:U6,LucideTangent:$6,LucideTarget:G6,LucideTelescope:Y6,LucideTent:X6,LucideTentTree:Z6,LucideTerminal:K6,LucideTerminalSquare:yo,LucideTestTube:J6,LucideTestTube2:ko,LucideTestTubeDiagonal:ko,LucideTestTubes:Q6,LucideText:o8,LucideTextCursor:t8,LucideTextCursorInput:e8,LucideTextQuote:i8,LucideTextSearch:a8,LucideTextSelect:vo,LucideTextSelection:vo,LucideTheater:n8,LucideThermometer:l8,LucideThermometerSnowflake:s8,LucideThermometerSun:r8,LucideThumbsDown:h8,LucideThumbsUp:c8,LucideTicket:g8,LucideTicketCheck:d8,LucideTicketMinus:u8,LucideTicketPercent:p8,LucideTicketPlus:y8,LucideTicketSlash:f8,LucideTicketX:m8,LucideTickets:b8,LucideTicketsPlane:k8,LucideTimer:M8,LucideTimerOff:v8,LucideTimerReset:w8,LucideToggleLeft:C8,LucideToggleRight:x8,LucideToilet:L8,LucideTornado:E8,LucideTorus:S8,LucideTouchpad:T8,LucideTouchpadOff:I8,LucideTowerControl:D8,LucideToyBrick:z8,LucideTractor:R8,LucideTrafficCone:H8,LucideTrain:bo,LucideTrainFront:V8,LucideTrainFrontTunnel:A8,LucideTrainTrack:P8,LucideTramFront:bo,LucideTransgender:q8,LucideTrash:F8,LucideTrash2:B8,LucideTreeDeciduous:O8,LucideTreePalm:wo,LucideTreePine:j8,LucideTrees:N8,LucideTrello:_8,LucideTrendingDown:W8,LucideTrendingUp:$8,LucideTrendingUpDown:U8,LucideTriangle:Z8,LucideTriangleAlert:Mo,LucideTriangleDashed:G8,LucideTriangleRight:Y8,LucideTrophy:X8,LucideTruck:K8,LucideTruckElectric:J8,LucideTurtle:Q8,LucideTv:tM,LucideTv2:Co,LucideTvMinimal:Co,LucideTvMinimalPlay:eM,LucideTwitch:iM,LucideTwitter:aM,LucideType:nM,LucideTypeOutline:oM,LucideUmbrella:rM,LucideUmbrellaOff:sM,LucideUnderline:lM,LucideUndo:dM,LucideUndo2:cM,LucideUndoDot:hM,LucideUnfoldHorizontal:uM,LucideUnfoldVertical:pM,LucideUngroup:yM,LucideUniversity:xo,LucideUnlink:mM,LucideUnlink2:fM,LucideUnlock:$i,LucideUnlockKeyhole:Ui,LucideUnplug:gM,LucideUpload:kM,LucideUploadCloud:ci,LucideUsb:vM,LucideUser:DM,LucideUser2:Do,LucideUserCheck:bM,LucideUserCheck2:Lo,LucideUserCircle:ni,LucideUserCircle2:oi,LucideUserCog:wM,LucideUserCog2:Eo,LucideUserLock:MM,LucideUserMinus:CM,LucideUserMinus2:So,LucideUserPen:xM,LucideUserPlus:LM,LucideUserPlus2:Io,LucideUserRound:Do,LucideUserRoundCheck:Lo,LucideUserRoundCog:Eo,LucideUserRoundMinus:So,LucideUserRoundPen:EM,LucideUserRoundPlus:Io,LucideUserRoundSearch:SM,LucideUserRoundX:To,LucideUserSearch:IM,LucideUserSquare:mo,LucideUserSquare2:fo,LucideUserX:TM,LucideUserX2:To,LucideUsers:zM,LucideUsers2:zo,LucideUsersRound:zo,LucideUtensils:Ho,LucideUtensilsCrossed:Ro,LucideUtilityPole:RM,LucideVariable:HM,LucideVault:AM,LucideVegan:VM,LucideVenetianMask:PM,LucideVenus:BM,LucideVenusAndMars:qM,LucideVerified:dt,LucideVibrate:OM,LucideVibrateOff:FM,LucideVideo:_M,LucideVideoOff:jM,LucideVideotape:NM,LucideView:WM,LucideVoicemail:UM,LucideVolleyball:$M,LucideVolume:XM,LucideVolume1:GM,LucideVolume2:YM,LucideVolumeOff:ZM,LucideVolumeX:KM,LucideVote:JM,LucideWallet:e7,LucideWallet2:Ao,LucideWalletCards:QM,LucideWalletMinimal:Ao,LucideWallpaper:t7,LucideWand:i7,LucideWand2:Vo,LucideWandSparkles:Vo,LucideWarehouse:a7,LucideWashingMachine:o7,LucideWatch:n7,LucideWaves:r7,LucideWavesLadder:s7,LucideWaypoints:l7,LucideWebcam:h7,LucideWebhook:c7,LucideWebhookOff:d7,LucideWeight:u7,LucideWheat:p7,LucideWheatOff:y7,LucideWholeWord:m7,LucideWifi:b7,LucideWifiHigh:f7,LucideWifiLow:g7,LucideWifiOff:k7,LucideWifiPen:v7,LucideWifiZero:w7,LucideWind:C7,LucideWindArrowDown:M7,LucideWine:L7,LucideWineOff:x7,LucideWorkflow:E7,LucideWorm:S7,LucideWrapText:I7,LucideWrench:T7,LucideX:D7,LucideXCircle:si,LucideXOctagon:Xi,LucideXSquare:go,LucideYoutube:z7,LucideZap:H7,LucideZapOff:R7,LucideZoomIn:A7,LucideZoomOut:V7,Luggage:kg,LuggageIcon:kg,MSquare:Xa,MSquareIcon:Xa,Magnet:vg,MagnetIcon:vg,Mail:Ig,MailCheck:bg,MailCheckIcon:bg,MailIcon:Ig,MailMinus:wg,MailMinusIcon:wg,MailOpen:Mg,MailOpenIcon:Mg,MailPlus:Cg,MailPlusIcon:Cg,MailQuestion:xg,MailQuestionIcon:xg,MailSearch:Lg,MailSearchIcon:Lg,MailWarning:Eg,MailWarningIcon:Eg,MailX:Sg,MailXIcon:Sg,Mailbox:Tg,MailboxIcon:Tg,Mails:Dg,MailsIcon:Dg,Map:Wg,MapIcon:Wg,MapPin:jg,MapPinCheck:Rg,MapPinCheckIcon:Rg,MapPinCheckInside:zg,MapPinCheckInsideIcon:zg,MapPinHouse:Hg,MapPinHouseIcon:Hg,MapPinIcon:jg,MapPinMinus:Vg,MapPinMinusIcon:Vg,MapPinMinusInside:Ag,MapPinMinusInsideIcon:Ag,MapPinOff:Pg,MapPinOffIcon:Pg,MapPinPlus:Bg,MapPinPlusIcon:Bg,MapPinPlusInside:qg,MapPinPlusInsideIcon:qg,MapPinX:Fg,MapPinXIcon:Fg,MapPinXInside:Og,MapPinXInsideIcon:Og,MapPinned:Ng,MapPinnedIcon:Ng,MapPlus:_g,MapPlusIcon:_g,Mars:$g,MarsIcon:$g,MarsStroke:Ug,MarsStrokeIcon:Ug,Martini:Gg,MartiniIcon:Gg,Maximize:Yg,Maximize2:Zg,Maximize2Icon:Zg,MaximizeIcon:Yg,Medal:Xg,MedalIcon:Xg,Megaphone:Jg,MegaphoneIcon:Jg,MegaphoneOff:Kg,MegaphoneOffIcon:Kg,Meh:Qg,MehIcon:Qg,MemoryStick:tk,MemoryStickIcon:tk,Menu:ek,MenuIcon:ek,MenuSquare:Ka,MenuSquareIcon:Ka,Merge:ik,MergeIcon:ik,MessageCircle:pk,MessageCircleCode:ak,MessageCircleCodeIcon:ak,MessageCircleDashed:ok,MessageCircleDashedIcon:ok,MessageCircleHeart:nk,MessageCircleHeartIcon:nk,MessageCircleIcon:pk,MessageCircleMore:sk,MessageCircleMoreIcon:sk,MessageCircleOff:rk,MessageCircleOffIcon:rk,MessageCirclePlus:lk,MessageCirclePlusIcon:lk,MessageCircleQuestion:hk,MessageCircleQuestionIcon:hk,MessageCircleReply:ck,MessageCircleReplyIcon:ck,MessageCircleWarning:dk,MessageCircleWarningIcon:dk,MessageCircleX:uk,MessageCircleXIcon:uk,MessageSquare:Tk,MessageSquareCode:yk,MessageSquareCodeIcon:yk,MessageSquareDashed:fk,MessageSquareDashedIcon:fk,MessageSquareDiff:mk,MessageSquareDiffIcon:mk,MessageSquareDot:gk,MessageSquareDotIcon:gk,MessageSquareHeart:kk,MessageSquareHeartIcon:kk,MessageSquareIcon:Tk,MessageSquareLock:vk,MessageSquareLockIcon:vk,MessageSquareMore:bk,MessageSquareMoreIcon:bk,MessageSquareOff:wk,MessageSquareOffIcon:wk,MessageSquarePlus:Mk,MessageSquarePlusIcon:Mk,MessageSquareQuote:Ck,MessageSquareQuoteIcon:Ck,MessageSquareReply:xk,MessageSquareReplyIcon:xk,MessageSquareShare:Lk,MessageSquareShareIcon:Lk,MessageSquareText:Ek,MessageSquareTextIcon:Ek,MessageSquareWarning:Sk,MessageSquareWarningIcon:Sk,MessageSquareX:Ik,MessageSquareXIcon:Ik,MessagesSquare:Dk,MessagesSquareIcon:Dk,Mic:Rk,Mic2:Gi,Mic2Icon:Gi,MicIcon:Rk,MicOff:zk,MicOffIcon:zk,MicVocal:Gi,MicVocalIcon:Gi,Microchip:Hk,MicrochipIcon:Hk,Microscope:Ak,MicroscopeIcon:Ak,Microwave:Vk,MicrowaveIcon:Vk,Milestone:Pk,MilestoneIcon:Pk,Milk:Bk,MilkIcon:Bk,MilkOff:qk,MilkOffIcon:qk,Minimize:Ok,Minimize2:Fk,Minimize2Icon:Fk,MinimizeIcon:Ok,Minus:jk,MinusCircle:Yt,MinusCircleIcon:Yt,MinusIcon:jk,MinusSquare:Ja,MinusSquareIcon:Ja,Monitor:e3,MonitorCheck:Nk,MonitorCheckIcon:Nk,MonitorCog:Wk,MonitorCogIcon:Wk,MonitorDot:_k,MonitorDotIcon:_k,MonitorDown:Uk,MonitorDownIcon:Uk,MonitorIcon:e3,MonitorOff:$k,MonitorOffIcon:$k,MonitorPause:Gk,MonitorPauseIcon:Gk,MonitorPlay:Yk,MonitorPlayIcon:Yk,MonitorSmartphone:Zk,MonitorSmartphoneIcon:Zk,MonitorSpeaker:Kk,MonitorSpeakerIcon:Kk,MonitorStop:Xk,MonitorStopIcon:Xk,MonitorUp:Jk,MonitorUpIcon:Jk,MonitorX:Qk,MonitorXIcon:Qk,Moon:i3,MoonIcon:i3,MoonStar:t3,MoonStarIcon:t3,MoreHorizontal:ki,MoreHorizontalIcon:ki,MoreVertical:gi,MoreVerticalIcon:gi,Mountain:o3,MountainIcon:o3,MountainSnow:a3,MountainSnowIcon:a3,Mouse:u3,MouseIcon:u3,MouseOff:n3,MouseOffIcon:n3,MousePointer:h3,MousePointer2:s3,MousePointer2Icon:s3,MousePointerBan:r3,MousePointerBanIcon:r3,MousePointerClick:l3,MousePointerClickIcon:l3,MousePointerIcon:h3,MousePointerSquareDashed:Na,MousePointerSquareDashedIcon:Na,Move:C3,Move3D:Yi,Move3DIcon:Yi,Move3d:Yi,Move3dIcon:Yi,MoveDiagonal:d3,MoveDiagonal2:c3,MoveDiagonal2Icon:c3,MoveDiagonalIcon:d3,MoveDown:f3,MoveDownIcon:f3,MoveDownLeft:p3,MoveDownLeftIcon:p3,MoveDownRight:y3,MoveDownRightIcon:y3,MoveHorizontal:g3,MoveHorizontalIcon:g3,MoveIcon:C3,MoveLeft:m3,MoveLeftIcon:m3,MoveRight:k3,MoveRightIcon:k3,MoveUp:w3,MoveUpIcon:w3,MoveUpLeft:v3,MoveUpLeftIcon:v3,MoveUpRight:b3,MoveUpRightIcon:b3,MoveVertical:M3,MoveVerticalIcon:M3,Music:S3,Music2:x3,Music2Icon:x3,Music3:L3,Music3Icon:L3,Music4:E3,Music4Icon:E3,MusicIcon:S3,Navigation:z3,Navigation2:T3,Navigation2Icon:T3,Navigation2Off:I3,Navigation2OffIcon:I3,NavigationIcon:z3,NavigationOff:D3,NavigationOffIcon:D3,Network:R3,NetworkIcon:R3,Newspaper:H3,NewspaperIcon:H3,Nfc:A3,NfcIcon:A3,NonBinary:V3,NonBinaryIcon:V3,Notebook:F3,NotebookIcon:F3,NotebookPen:P3,NotebookPenIcon:P3,NotebookTabs:q3,NotebookTabsIcon:q3,NotebookText:B3,NotebookTextIcon:B3,NotepadText:j3,NotepadTextDashed:O3,NotepadTextDashedIcon:O3,NotepadTextIcon:j3,Nut:_3,NutIcon:_3,NutOff:N3,NutOffIcon:N3,Octagon:U3,OctagonAlert:Zi,OctagonAlertIcon:Zi,OctagonIcon:U3,OctagonMinus:W3,OctagonMinusIcon:W3,OctagonPause:Ki,OctagonPauseIcon:Ki,OctagonX:Xi,OctagonXIcon:Xi,Omega:$3,OmegaIcon:$3,Option:G3,OptionIcon:G3,Orbit:Z3,OrbitIcon:Z3,Origami:Y3,OrigamiIcon:Y3,Outdent:Oi,OutdentIcon:Oi,Package:a4,Package2:X3,Package2Icon:X3,PackageCheck:K3,PackageCheckIcon:K3,PackageIcon:a4,PackageMinus:J3,PackageMinusIcon:J3,PackageOpen:Q3,PackageOpenIcon:Q3,PackagePlus:e4,PackagePlusIcon:e4,PackageSearch:t4,PackageSearchIcon:t4,PackageX:i4,PackageXIcon:i4,PaintBucket:o4,PaintBucketIcon:o4,PaintRoller:n4,PaintRollerIcon:n4,Paintbrush:s4,Paintbrush2:Ji,Paintbrush2Icon:Ji,PaintbrushIcon:s4,PaintbrushVertical:Ji,PaintbrushVerticalIcon:Ji,Palette:r4,PaletteIcon:r4,Palmtree:wo,PalmtreeIcon:wo,Panda:l4,PandaIcon:l4,PanelBottom:d4,PanelBottomClose:h4,PanelBottomCloseIcon:h4,PanelBottomDashed:Qi,PanelBottomDashedIcon:Qi,PanelBottomIcon:d4,PanelBottomInactive:Qi,PanelBottomInactiveIcon:Qi,PanelBottomOpen:c4,PanelBottomOpenIcon:c4,PanelLeft:aa,PanelLeftClose:ea,PanelLeftCloseIcon:ea,PanelLeftDashed:ta,PanelLeftDashedIcon:ta,PanelLeftIcon:aa,PanelLeftInactive:ta,PanelLeftInactiveIcon:ta,PanelLeftOpen:ia,PanelLeftOpenIcon:ia,PanelRight:f4,PanelRightClose:u4,PanelRightCloseIcon:u4,PanelRightDashed:oa,PanelRightDashedIcon:oa,PanelRightIcon:f4,PanelRightInactive:oa,PanelRightInactiveIcon:oa,PanelRightOpen:p4,PanelRightOpenIcon:p4,PanelTop:g4,PanelTopClose:y4,PanelTopCloseIcon:y4,PanelTopDashed:na,PanelTopDashedIcon:na,PanelTopIcon:g4,PanelTopInactive:na,PanelTopInactiveIcon:na,PanelTopOpen:m4,PanelTopOpenIcon:m4,PanelsLeftBottom:k4,PanelsLeftBottomIcon:k4,PanelsLeftRight:pi,PanelsLeftRightIcon:pi,PanelsRightBottom:v4,PanelsRightBottomIcon:v4,PanelsTopBottom:pa,PanelsTopBottomIcon:pa,PanelsTopLeft:sa,PanelsTopLeftIcon:sa,Paperclip:b4,PaperclipIcon:b4,Parentheses:w4,ParenthesesIcon:w4,ParkingCircle:Xt,ParkingCircleIcon:Xt,ParkingCircleOff:Zt,ParkingCircleOffIcon:Zt,ParkingMeter:M4,ParkingMeterIcon:M4,ParkingSquare:to,ParkingSquareIcon:to,ParkingSquareOff:eo,ParkingSquareOffIcon:eo,PartyPopper:C4,PartyPopperIcon:C4,Pause:x4,PauseCircle:Kt,PauseCircleIcon:Kt,PauseIcon:x4,PauseOctagon:Ki,PauseOctagonIcon:Ki,PawPrint:L4,PawPrintIcon:L4,PcCase:E4,PcCaseIcon:E4,Pen:la,PenBox:ue,PenBoxIcon:ue,PenIcon:la,PenLine:ra,PenLineIcon:ra,PenOff:S4,PenOffIcon:S4,PenSquare:ue,PenSquareIcon:ue,PenTool:I4,PenToolIcon:I4,Pencil:R4,PencilIcon:R4,PencilLine:D4,PencilLineIcon:D4,PencilOff:T4,PencilOffIcon:T4,PencilRuler:z4,PencilRulerIcon:z4,Pentagon:H4,PentagonIcon:H4,Percent:A4,PercentCircle:Jt,PercentCircleIcon:Jt,PercentDiamond:fi,PercentDiamondIcon:fi,PercentIcon:A4,PercentSquare:io,PercentSquareIcon:io,PersonStanding:V4,PersonStandingIcon:V4,PhilippinePeso:q4,PhilippinePesoIcon:q4,Phone:_4,PhoneCall:P4,PhoneCallIcon:P4,PhoneForwarded:B4,PhoneForwardedIcon:B4,PhoneIcon:_4,PhoneIncoming:F4,PhoneIncomingIcon:F4,PhoneMissed:O4,PhoneMissedIcon:O4,PhoneOff:j4,PhoneOffIcon:j4,PhoneOutgoing:N4,PhoneOutgoingIcon:N4,Pi:W4,PiIcon:W4,PiSquare:ao,PiSquareIcon:ao,Piano:U4,PianoIcon:U4,Pickaxe:$4,PickaxeIcon:$4,PictureInPicture:Y4,PictureInPicture2:G4,PictureInPicture2Icon:G4,PictureInPictureIcon:Y4,PieChart:It,PieChartIcon:It,PiggyBank:Z4,PiggyBankIcon:Z4,Pilcrow:J4,PilcrowIcon:J4,PilcrowLeft:X4,PilcrowLeftIcon:X4,PilcrowRight:K4,PilcrowRightIcon:K4,PilcrowSquare:oo,PilcrowSquareIcon:oo,Pill:ev,PillBottle:Q4,PillBottleIcon:Q4,PillIcon:ev,Pin:iv,PinIcon:iv,PinOff:tv,PinOffIcon:tv,Pipette:av,PipetteIcon:av,Pizza:ov,PizzaIcon:ov,Plane:rv,PlaneIcon:rv,PlaneLanding:nv,PlaneLandingIcon:nv,PlaneTakeoff:sv,PlaneTakeoffIcon:sv,Play:lv,PlayCircle:Qt,PlayCircleIcon:Qt,PlayIcon:lv,PlaySquare:no,PlaySquareIcon:no,Plug:cv,Plug2:hv,Plug2Icon:hv,PlugIcon:cv,PlugZap:ha,PlugZap2:ha,PlugZap2Icon:ha,PlugZapIcon:ha,Plus:dv,PlusCircle:ei,PlusCircleIcon:ei,PlusIcon:dv,PlusSquare:so,PlusSquareIcon:so,Pocket:uv,PocketIcon:uv,PocketKnife:pv,PocketKnifeIcon:pv,Podcast:yv,PodcastIcon:yv,Pointer:mv,PointerIcon:mv,PointerOff:fv,PointerOffIcon:fv,Popcorn:gv,PopcornIcon:gv,Popsicle:kv,PopsicleIcon:kv,PoundSterling:vv,PoundSterlingIcon:vv,Power:wv,PowerCircle:ti,PowerCircleIcon:ti,PowerIcon:wv,PowerOff:bv,PowerOffIcon:bv,PowerSquare:ro,PowerSquareIcon:ro,Presentation:Mv,PresentationIcon:Mv,Printer:xv,PrinterCheck:Cv,PrinterCheckIcon:Cv,PrinterIcon:xv,Projector:Lv,ProjectorIcon:Lv,Proportions:Ev,ProportionsIcon:Ev,Puzzle:Sv,PuzzleIcon:Sv,Pyramid:Iv,PyramidIcon:Iv,QrCode:Tv,QrCodeIcon:Tv,Quote:zv,QuoteIcon:zv,Rabbit:Dv,RabbitIcon:Dv,Radar:Rv,RadarIcon:Rv,Radiation:Hv,RadiationIcon:Hv,Radical:Av,RadicalIcon:Av,Radio:qv,RadioIcon:qv,RadioReceiver:Vv,RadioReceiverIcon:Vv,RadioTower:Pv,RadioTowerIcon:Pv,Radius:Bv,RadiusIcon:Bv,RailSymbol:Fv,RailSymbolIcon:Fv,Rainbow:Ov,RainbowIcon:Ov,Rat:jv,RatIcon:jv,Ratio:Nv,RatioIcon:Nv,Receipt:Kv,ReceiptCent:_v,ReceiptCentIcon:_v,ReceiptEuro:Wv,ReceiptEuroIcon:Wv,ReceiptIcon:Kv,ReceiptIndianRupee:$v,ReceiptIndianRupeeIcon:$v,ReceiptJapaneseYen:Uv,ReceiptJapaneseYenIcon:Uv,ReceiptPoundSterling:Yv,ReceiptPoundSterlingIcon:Yv,ReceiptRussianRuble:Gv,ReceiptRussianRubleIcon:Gv,ReceiptSwissFranc:Zv,ReceiptSwissFrancIcon:Zv,ReceiptText:Xv,ReceiptTextIcon:Xv,RectangleEllipsis:ca,RectangleEllipsisIcon:ca,RectangleGoggles:Jv,RectangleGogglesIcon:Jv,RectangleHorizontal:Qv,RectangleHorizontalIcon:Qv,RectangleVertical:e5,RectangleVerticalIcon:e5,Recycle:t5,RecycleIcon:t5,Redo:o5,Redo2:i5,Redo2Icon:i5,RedoDot:a5,RedoDotIcon:a5,RedoIcon:o5,RefreshCcw:s5,RefreshCcwDot:n5,RefreshCcwDotIcon:n5,RefreshCcwIcon:s5,RefreshCw:l5,RefreshCwIcon:l5,RefreshCwOff:r5,RefreshCwOffIcon:r5,Refrigerator:c5,RefrigeratorIcon:c5,Regex:h5,RegexIcon:h5,RemoveFormatting:d5,RemoveFormattingIcon:d5,Repeat:y5,Repeat1:u5,Repeat1Icon:u5,Repeat2:p5,Repeat2Icon:p5,RepeatIcon:y5,Replace:m5,ReplaceAll:f5,ReplaceAllIcon:f5,ReplaceIcon:m5,Reply:k5,ReplyAll:g5,ReplyAllIcon:g5,ReplyIcon:k5,Rewind:v5,RewindIcon:v5,Ribbon:b5,RibbonIcon:b5,Rocket:w5,RocketIcon:w5,RockingChair:M5,RockingChairIcon:M5,RollerCoaster:C5,RollerCoasterIcon:C5,Rotate3D:da,Rotate3DIcon:da,Rotate3d:da,Rotate3dIcon:da,RotateCcw:E5,RotateCcwIcon:E5,RotateCcwKey:x5,RotateCcwKeyIcon:x5,RotateCcwSquare:L5,RotateCcwSquareIcon:L5,RotateCw:I5,RotateCwIcon:I5,RotateCwSquare:S5,RotateCwSquareIcon:S5,Route:z5,RouteIcon:z5,RouteOff:T5,RouteOffIcon:T5,Router:D5,RouterIcon:D5,Rows:ua,Rows2:ua,Rows2Icon:ua,Rows3:pa,Rows3Icon:pa,Rows4:R5,Rows4Icon:R5,RowsIcon:ua,Rss:H5,RssIcon:H5,Ruler:V5,RulerDimensionLine:A5,RulerDimensionLineIcon:A5,RulerIcon:V5,RussianRuble:P5,RussianRubleIcon:P5,Sailboat:q5,SailboatIcon:q5,Salad:B5,SaladIcon:B5,Sandwich:F5,SandwichIcon:F5,Satellite:j5,SatelliteDish:O5,SatelliteDishIcon:O5,SatelliteIcon:j5,SaudiRiyal:N5,SaudiRiyalIcon:N5,Save:U5,SaveAll:_5,SaveAllIcon:_5,SaveIcon:U5,SaveOff:W5,SaveOffIcon:W5,Scale:$5,Scale3D:ya,Scale3DIcon:ya,Scale3d:ya,Scale3dIcon:ya,ScaleIcon:$5,Scaling:G5,ScalingIcon:G5,Scan:tb,ScanBarcode:Y5,ScanBarcodeIcon:Y5,ScanEye:X5,ScanEyeIcon:X5,ScanFace:Z5,ScanFaceIcon:Z5,ScanHeart:K5,ScanHeartIcon:K5,ScanIcon:tb,ScanLine:Q5,ScanLineIcon:Q5,ScanQrCode:J5,ScanQrCodeIcon:J5,ScanSearch:eb,ScanSearchIcon:eb,ScanText:ib,ScanTextIcon:ib,ScatterChart:Tt,ScatterChartIcon:Tt,School:ab,School2:xo,School2Icon:xo,SchoolIcon:ab,Scissors:nb,ScissorsIcon:nb,ScissorsLineDashed:ob,ScissorsLineDashedIcon:ob,ScissorsSquare:lo,ScissorsSquareDashedBottom:Ha,ScissorsSquareDashedBottomIcon:Ha,ScissorsSquareIcon:lo,ScreenShare:rb,ScreenShareIcon:rb,ScreenShareOff:sb,ScreenShareOffIcon:sb,Scroll:hb,ScrollIcon:hb,ScrollText:lb,ScrollTextIcon:lb,Search:yb,SearchCheck:cb,SearchCheckIcon:cb,SearchCode:db,SearchCodeIcon:db,SearchIcon:yb,SearchSlash:ub,SearchSlashIcon:ub,SearchX:pb,SearchXIcon:pb,Section:fb,SectionIcon:fb,Send:kb,SendHorizonal:fa,SendHorizonalIcon:fa,SendHorizontal:fa,SendHorizontalIcon:fa,SendIcon:kb,SendToBack:mb,SendToBackIcon:mb,SeparatorHorizontal:gb,SeparatorHorizontalIcon:gb,SeparatorVertical:bb,SeparatorVerticalIcon:bb,Server:Cb,ServerCog:vb,ServerCogIcon:vb,ServerCrash:wb,ServerCrashIcon:wb,ServerIcon:Cb,ServerOff:Mb,ServerOffIcon:Mb,Settings:Lb,Settings2:xb,Settings2Icon:xb,SettingsIcon:Lb,Shapes:Eb,ShapesIcon:Eb,Share:Ib,Share2:Sb,Share2Icon:Sb,ShareIcon:Ib,Sheet:Tb,SheetIcon:Tb,Shell:Db,ShellIcon:Db,Shield:jb,ShieldAlert:zb,ShieldAlertIcon:zb,ShieldBan:Rb,ShieldBanIcon:Rb,ShieldCheck:Hb,ShieldCheckIcon:Hb,ShieldClose:ma,ShieldCloseIcon:ma,ShieldEllipsis:Ab,ShieldEllipsisIcon:Ab,ShieldHalf:Vb,ShieldHalfIcon:Vb,ShieldIcon:jb,ShieldMinus:Pb,ShieldMinusIcon:Pb,ShieldOff:qb,ShieldOffIcon:qb,ShieldPlus:Bb,ShieldPlusIcon:Bb,ShieldQuestion:Fb,ShieldQuestionIcon:Fb,ShieldUser:Ob,ShieldUserIcon:Ob,ShieldX:ma,ShieldXIcon:ma,Ship:Nb,ShipIcon:Nb,ShipWheel:Wb,ShipWheelIcon:Wb,Shirt:_b,ShirtIcon:_b,ShoppingBag:Ub,ShoppingBagIcon:Ub,ShoppingBasket:$b,ShoppingBasketIcon:$b,ShoppingCart:Gb,ShoppingCartIcon:Gb,Shovel:Yb,ShovelIcon:Yb,ShowerHead:Zb,ShowerHeadIcon:Zb,Shredder:Xb,ShredderIcon:Xb,Shrimp:Kb,ShrimpIcon:Kb,Shrink:Jb,ShrinkIcon:Jb,Shrub:Qb,ShrubIcon:Qb,Shuffle:ew,ShuffleIcon:ew,Sidebar:aa,SidebarClose:ea,SidebarCloseIcon:ea,SidebarIcon:aa,SidebarOpen:ia,SidebarOpenIcon:ia,Sigma:tw,SigmaIcon:tw,SigmaSquare:ho,SigmaSquareIcon:ho,Signal:sw,SignalHigh:iw,SignalHighIcon:iw,SignalIcon:sw,SignalLow:aw,SignalLowIcon:aw,SignalMedium:ow,SignalMediumIcon:ow,SignalZero:nw,SignalZeroIcon:nw,Signature:rw,SignatureIcon:rw,Signpost:hw,SignpostBig:lw,SignpostBigIcon:lw,SignpostIcon:hw,Siren:cw,SirenIcon:cw,SkipBack:dw,SkipBackIcon:dw,SkipForward:uw,SkipForwardIcon:uw,Skull:pw,SkullIcon:pw,Slack:yw,SlackIcon:yw,Slash:fw,SlashIcon:fw,SlashSquare:uo,SlashSquareIcon:uo,Slice:gw,SliceIcon:gw,Sliders:ga,SlidersHorizontal:mw,SlidersHorizontalIcon:mw,SlidersIcon:ga,SlidersVertical:ga,SlidersVerticalIcon:ga,Smartphone:bw,SmartphoneCharging:kw,SmartphoneChargingIcon:kw,SmartphoneIcon:bw,SmartphoneNfc:vw,SmartphoneNfcIcon:vw,Smile:Mw,SmileIcon:Mw,SmilePlus:ww,SmilePlusIcon:ww,Snail:Cw,SnailIcon:Cw,Snowflake:xw,SnowflakeIcon:xw,SoapDispenserDroplet:Lw,SoapDispenserDropletIcon:Lw,Sofa:Ew,SofaIcon:Ew,SortAsc:lt,SortAscIcon:lt,SortDesc:nt,SortDescIcon:nt,Soup:Sw,SoupIcon:Sw,Space:Iw,SpaceIcon:Iw,Spade:Tw,SpadeIcon:Tw,Sparkle:Dw,SparkleIcon:Dw,Sparkles:ka,SparklesIcon:ka,Speaker:zw,SpeakerIcon:zw,Speech:Rw,SpeechIcon:Rw,SpellCheck:Aw,SpellCheck2:Hw,SpellCheck2Icon:Hw,SpellCheckIcon:Aw,Spline:Pw,SplineIcon:Pw,SplinePointer:Vw,SplinePointerIcon:Vw,Split:Bw,SplitIcon:Bw,SplitSquareHorizontal:co,SplitSquareHorizontalIcon:co,SplitSquareVertical:po,SplitSquareVerticalIcon:po,SprayCan:qw,SprayCanIcon:qw,Sprout:Fw,SproutIcon:Fw,Square:Gw,SquareActivity:va,SquareActivityIcon:va,SquareArrowDown:Ma,SquareArrowDownIcon:Ma,SquareArrowDownLeft:ba,SquareArrowDownLeftIcon:ba,SquareArrowDownRight:wa,SquareArrowDownRightIcon:wa,SquareArrowLeft:Ca,SquareArrowLeftIcon:Ca,SquareArrowOutDownLeft:xa,SquareArrowOutDownLeftIcon:xa,SquareArrowOutDownRight:La,SquareArrowOutDownRightIcon:La,SquareArrowOutUpLeft:Ea,SquareArrowOutUpLeftIcon:Ea,SquareArrowOutUpRight:Sa,SquareArrowOutUpRightIcon:Sa,SquareArrowRight:Ia,SquareArrowRightIcon:Ia,SquareArrowUp:za,SquareArrowUpIcon:za,SquareArrowUpLeft:Da,SquareArrowUpLeftIcon:Da,SquareArrowUpRight:Ta,SquareArrowUpRightIcon:Ta,SquareAsterisk:Ra,SquareAsteriskIcon:Ra,SquareBottomDashedScissors:Ha,SquareBottomDashedScissorsIcon:Ha,SquareChartGantt:De,SquareChartGanttIcon:De,SquareCheck:Va,SquareCheckBig:Aa,SquareCheckBigIcon:Aa,SquareCheckIcon:Va,SquareChevronDown:Pa,SquareChevronDownIcon:Pa,SquareChevronLeft:qa,SquareChevronLeftIcon:qa,SquareChevronRight:Ba,SquareChevronRightIcon:Ba,SquareChevronUp:Fa,SquareChevronUpIcon:Fa,SquareCode:Oa,SquareCodeIcon:Oa,SquareDashed:_a,SquareDashedBottom:jw,SquareDashedBottomCode:Ow,SquareDashedBottomCodeIcon:Ow,SquareDashedBottomIcon:jw,SquareDashedIcon:_a,SquareDashedKanban:ja,SquareDashedKanbanIcon:ja,SquareDashedMousePointer:Na,SquareDashedMousePointerIcon:Na,SquareDashedTopSolid:Nw,SquareDashedTopSolidIcon:Nw,SquareDivide:Wa,SquareDivideIcon:Wa,SquareDot:Ua,SquareDotIcon:Ua,SquareEqual:$a,SquareEqualIcon:$a,SquareFunction:Ga,SquareFunctionIcon:Ga,SquareGanttChart:De,SquareGanttChartIcon:De,SquareIcon:Gw,SquareKanban:Ya,SquareKanbanIcon:Ya,SquareLibrary:Za,SquareLibraryIcon:Za,SquareM:Xa,SquareMIcon:Xa,SquareMenu:Ka,SquareMenuIcon:Ka,SquareMinus:Ja,SquareMinusIcon:Ja,SquareMousePointer:Qa,SquareMousePointerIcon:Qa,SquareParking:to,SquareParkingIcon:to,SquareParkingOff:eo,SquareParkingOffIcon:eo,SquarePen:ue,SquarePenIcon:ue,SquarePercent:io,SquarePercentIcon:io,SquarePi:ao,SquarePiIcon:ao,SquarePilcrow:oo,SquarePilcrowIcon:oo,SquarePlay:no,SquarePlayIcon:no,SquarePlus:so,SquarePlusIcon:so,SquarePower:ro,SquarePowerIcon:ro,SquareRadical:_w,SquareRadicalIcon:_w,SquareRoundCorner:Ww,SquareRoundCornerIcon:Ww,SquareScissors:lo,SquareScissorsIcon:lo,SquareSigma:ho,SquareSigmaIcon:ho,SquareSlash:uo,SquareSlashIcon:uo,SquareSplitHorizontal:co,SquareSplitHorizontalIcon:co,SquareSplitVertical:po,SquareSplitVerticalIcon:po,SquareSquare:Uw,SquareSquareIcon:Uw,SquareStack:$w,SquareStackIcon:$w,SquareTerminal:yo,SquareTerminalIcon:yo,SquareUser:mo,SquareUserIcon:mo,SquareUserRound:fo,SquareUserRoundIcon:fo,SquareX:go,SquareXIcon:go,SquaresExclude:Zw,SquaresExcludeIcon:Zw,SquaresIntersect:Yw,SquaresIntersectIcon:Yw,SquaresSubtract:Xw,SquaresSubtractIcon:Xw,SquaresUnite:Kw,SquaresUniteIcon:Kw,Squircle:Jw,SquircleIcon:Jw,Squirrel:Qw,SquirrelIcon:Qw,Stamp:e6,StampIcon:e6,Star:a6,StarHalf:t6,StarHalfIcon:t6,StarIcon:a6,StarOff:i6,StarOffIcon:i6,Stars:ka,StarsIcon:ka,StepBack:o6,StepBackIcon:o6,StepForward:n6,StepForwardIcon:n6,Stethoscope:s6,StethoscopeIcon:s6,Sticker:r6,StickerIcon:r6,StickyNote:l6,StickyNoteIcon:l6,StopCircle:ai,StopCircleIcon:ai,Store:h6,StoreIcon:h6,StretchHorizontal:c6,StretchHorizontalIcon:c6,StretchVertical:d6,StretchVerticalIcon:d6,Strikethrough:u6,StrikethroughIcon:u6,Subscript:p6,SubscriptIcon:p6,Subtitles:mt,SubtitlesIcon:mt,Sun:k6,SunDim:f6,SunDimIcon:f6,SunIcon:k6,SunMedium:y6,SunMediumIcon:y6,SunMoon:m6,SunMoonIcon:m6,SunSnow:g6,SunSnowIcon:g6,Sunrise:v6,SunriseIcon:v6,Sunset:b6,SunsetIcon:b6,Superscript:w6,SuperscriptIcon:w6,SwatchBook:M6,SwatchBookIcon:M6,SwissFranc:C6,SwissFrancIcon:C6,SwitchCamera:x6,SwitchCameraIcon:x6,Sword:L6,SwordIcon:L6,Swords:E6,SwordsIcon:E6,Syringe:S6,SyringeIcon:S6,Table:V6,Table2:I6,Table2Icon:I6,TableCellsMerge:T6,TableCellsMergeIcon:T6,TableCellsSplit:D6,TableCellsSplitIcon:D6,TableColumnsSplit:z6,TableColumnsSplitIcon:z6,TableConfig:Ie,TableConfigIcon:Ie,TableIcon:V6,TableOfContents:R6,TableOfContentsIcon:R6,TableProperties:H6,TablePropertiesIcon:H6,TableRowsSplit:A6,TableRowsSplitIcon:A6,Tablet:q6,TabletIcon:q6,TabletSmartphone:P6,TabletSmartphoneIcon:P6,Tablets:B6,TabletsIcon:B6,Tag:F6,TagIcon:F6,Tags:O6,TagsIcon:O6,Tally1:j6,Tally1Icon:j6,Tally2:N6,Tally2Icon:N6,Tally3:_6,Tally3Icon:_6,Tally4:W6,Tally4Icon:W6,Tally5:U6,Tally5Icon:U6,Tangent:$6,TangentIcon:$6,Target:G6,TargetIcon:G6,Telescope:Y6,TelescopeIcon:Y6,Tent:X6,TentIcon:X6,TentTree:Z6,TentTreeIcon:Z6,Terminal:K6,TerminalIcon:K6,TerminalSquare:yo,TerminalSquareIcon:yo,TestTube:J6,TestTube2:ko,TestTube2Icon:ko,TestTubeDiagonal:ko,TestTubeDiagonalIcon:ko,TestTubeIcon:J6,TestTubes:Q6,TestTubesIcon:Q6,Text:o8,TextCursor:t8,TextCursorIcon:t8,TextCursorInput:e8,TextCursorInputIcon:e8,TextIcon:o8,TextQuote:i8,TextQuoteIcon:i8,TextSearch:a8,TextSearchIcon:a8,TextSelect:vo,TextSelectIcon:vo,TextSelection:vo,TextSelectionIcon:vo,Theater:n8,TheaterIcon:n8,Thermometer:l8,ThermometerIcon:l8,ThermometerSnowflake:s8,ThermometerSnowflakeIcon:s8,ThermometerSun:r8,ThermometerSunIcon:r8,ThumbsDown:h8,ThumbsDownIcon:h8,ThumbsUp:c8,ThumbsUpIcon:c8,Ticket:g8,TicketCheck:d8,TicketCheckIcon:d8,TicketIcon:g8,TicketMinus:u8,TicketMinusIcon:u8,TicketPercent:p8,TicketPercentIcon:p8,TicketPlus:y8,TicketPlusIcon:y8,TicketSlash:f8,TicketSlashIcon:f8,TicketX:m8,TicketXIcon:m8,Tickets:b8,TicketsIcon:b8,TicketsPlane:k8,TicketsPlaneIcon:k8,Timer:M8,TimerIcon:M8,TimerOff:v8,TimerOffIcon:v8,TimerReset:w8,TimerResetIcon:w8,ToggleLeft:C8,ToggleLeftIcon:C8,ToggleRight:x8,ToggleRightIcon:x8,Toilet:L8,ToiletIcon:L8,Tornado:E8,TornadoIcon:E8,Torus:S8,TorusIcon:S8,Touchpad:T8,TouchpadIcon:T8,TouchpadOff:I8,TouchpadOffIcon:I8,TowerControl:D8,TowerControlIcon:D8,ToyBrick:z8,ToyBrickIcon:z8,Tractor:R8,TractorIcon:R8,TrafficCone:H8,TrafficConeIcon:H8,Train:bo,TrainFront:V8,TrainFrontIcon:V8,TrainFrontTunnel:A8,TrainFrontTunnelIcon:A8,TrainIcon:bo,TrainTrack:P8,TrainTrackIcon:P8,TramFront:bo,TramFrontIcon:bo,Transgender:q8,TransgenderIcon:q8,Trash:F8,Trash2:B8,Trash2Icon:B8,TrashIcon:F8,TreeDeciduous:O8,TreeDeciduousIcon:O8,TreePalm:wo,TreePalmIcon:wo,TreePine:j8,TreePineIcon:j8,Trees:N8,TreesIcon:N8,Trello:_8,TrelloIcon:_8,TrendingDown:W8,TrendingDownIcon:W8,TrendingUp:$8,TrendingUpDown:U8,TrendingUpDownIcon:U8,TrendingUpIcon:$8,Triangle:Z8,TriangleAlert:Mo,TriangleAlertIcon:Mo,TriangleDashed:G8,TriangleDashedIcon:G8,TriangleIcon:Z8,TriangleRight:Y8,TriangleRightIcon:Y8,Trophy:X8,TrophyIcon:X8,Truck:K8,TruckElectric:J8,TruckElectricIcon:J8,TruckIcon:K8,Turtle:Q8,TurtleIcon:Q8,Tv:tM,Tv2:Co,Tv2Icon:Co,TvIcon:tM,TvMinimal:Co,TvMinimalIcon:Co,TvMinimalPlay:eM,TvMinimalPlayIcon:eM,Twitch:iM,TwitchIcon:iM,Twitter:aM,TwitterIcon:aM,Type:nM,TypeIcon:nM,TypeOutline:oM,TypeOutlineIcon:oM,Umbrella:rM,UmbrellaIcon:rM,UmbrellaOff:sM,UmbrellaOffIcon:sM,Underline:lM,UnderlineIcon:lM,Undo:dM,Undo2:cM,Undo2Icon:cM,UndoDot:hM,UndoDotIcon:hM,UndoIcon:dM,UnfoldHorizontal:uM,UnfoldHorizontalIcon:uM,UnfoldVertical:pM,UnfoldVerticalIcon:pM,Ungroup:yM,UngroupIcon:yM,University:xo,UniversityIcon:xo,Unlink:mM,Unlink2:fM,Unlink2Icon:fM,UnlinkIcon:mM,Unlock:$i,UnlockIcon:$i,UnlockKeyhole:Ui,UnlockKeyholeIcon:Ui,Unplug:gM,UnplugIcon:gM,Upload:kM,UploadCloud:ci,UploadCloudIcon:ci,UploadIcon:kM,Usb:vM,UsbIcon:vM,User:DM,User2:Do,User2Icon:Do,UserCheck:bM,UserCheck2:Lo,UserCheck2Icon:Lo,UserCheckIcon:bM,UserCircle:ni,UserCircle2:oi,UserCircle2Icon:oi,UserCircleIcon:ni,UserCog:wM,UserCog2:Eo,UserCog2Icon:Eo,UserCogIcon:wM,UserIcon:DM,UserLock:MM,UserLockIcon:MM,UserMinus:CM,UserMinus2:So,UserMinus2Icon:So,UserMinusIcon:CM,UserPen:xM,UserPenIcon:xM,UserPlus:LM,UserPlus2:Io,UserPlus2Icon:Io,UserPlusIcon:LM,UserRound:Do,UserRoundCheck:Lo,UserRoundCheckIcon:Lo,UserRoundCog:Eo,UserRoundCogIcon:Eo,UserRoundIcon:Do,UserRoundMinus:So,UserRoundMinusIcon:So,UserRoundPen:EM,UserRoundPenIcon:EM,UserRoundPlus:Io,UserRoundPlusIcon:Io,UserRoundSearch:SM,UserRoundSearchIcon:SM,UserRoundX:To,UserRoundXIcon:To,UserSearch:IM,UserSearchIcon:IM,UserSquare:mo,UserSquare2:fo,UserSquare2Icon:fo,UserSquareIcon:mo,UserX:TM,UserX2:To,UserX2Icon:To,UserXIcon:TM,Users:zM,Users2:zo,Users2Icon:zo,UsersIcon:zM,UsersRound:zo,UsersRoundIcon:zo,Utensils:Ho,UtensilsCrossed:Ro,UtensilsCrossedIcon:Ro,UtensilsIcon:Ho,UtilityPole:RM,UtilityPoleIcon:RM,Variable:HM,VariableIcon:HM,Vault:AM,VaultIcon:AM,Vegan:VM,VeganIcon:VM,VenetianMask:PM,VenetianMaskIcon:PM,Venus:BM,VenusAndMars:qM,VenusAndMarsIcon:qM,VenusIcon:BM,Verified:dt,VerifiedIcon:dt,Vibrate:OM,VibrateIcon:OM,VibrateOff:FM,VibrateOffIcon:FM,Video:_M,VideoIcon:_M,VideoOff:jM,VideoOffIcon:jM,Videotape:NM,VideotapeIcon:NM,View:WM,ViewIcon:WM,Voicemail:UM,VoicemailIcon:UM,Volleyball:$M,VolleyballIcon:$M,Volume:XM,Volume1:GM,Volume1Icon:GM,Volume2:YM,Volume2Icon:YM,VolumeIcon:XM,VolumeOff:ZM,VolumeOffIcon:ZM,VolumeX:KM,VolumeXIcon:KM,Vote:JM,VoteIcon:JM,Wallet:e7,Wallet2:Ao,Wallet2Icon:Ao,WalletCards:QM,WalletCardsIcon:QM,WalletIcon:e7,WalletMinimal:Ao,WalletMinimalIcon:Ao,Wallpaper:t7,WallpaperIcon:t7,Wand:i7,Wand2:Vo,Wand2Icon:Vo,WandIcon:i7,WandSparkles:Vo,WandSparklesIcon:Vo,Warehouse:a7,WarehouseIcon:a7,WashingMachine:o7,WashingMachineIcon:o7,Watch:n7,WatchIcon:n7,Waves:r7,WavesIcon:r7,WavesLadder:s7,WavesLadderIcon:s7,Waypoints:l7,WaypointsIcon:l7,Webcam:h7,WebcamIcon:h7,Webhook:c7,WebhookIcon:c7,WebhookOff:d7,WebhookOffIcon:d7,Weight:u7,WeightIcon:u7,Wheat:p7,WheatIcon:p7,WheatOff:y7,WheatOffIcon:y7,WholeWord:m7,WholeWordIcon:m7,Wifi:b7,WifiHigh:f7,WifiHighIcon:f7,WifiIcon:b7,WifiLow:g7,WifiLowIcon:g7,WifiOff:k7,WifiOffIcon:k7,WifiPen:v7,WifiPenIcon:v7,WifiZero:w7,WifiZeroIcon:w7,Wind:C7,WindArrowDown:M7,WindArrowDownIcon:M7,WindIcon:C7,Wine:L7,WineIcon:L7,WineOff:x7,WineOffIcon:x7,Workflow:E7,WorkflowIcon:E7,Worm:S7,WormIcon:S7,WrapText:I7,WrapTextIcon:I7,Wrench:T7,WrenchIcon:T7,X:D7,XCircle:si,XCircleIcon:si,XIcon:D7,XOctagon:Xi,XOctagonIcon:Xi,XSquare:go,XSquareIcon:go,Youtube:z7,YoutubeIcon:z7,Zap:H7,ZapIcon:H7,ZapOff:R7,ZapOffIcon:R7,ZoomIn:A7,ZoomInIcon:A7,ZoomOut:V7,ZoomOutIcon:V7,createLucideIcon:s,icons:ET},Symbol.toStringTag,{value:"Module"})),Nx=c.defineComponent({__name:"Icons",props:{name:{},size:{default:16},color:{default:"currentColor"},strokeWidth:{default:2},absoluteStrokeWidth:{type:Boolean,default:!1},classValue:{default:""}},setup(o){const e=o,t=c.computed(()=>ST[e.name]||null);return(i,a)=>t.value?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.value),{key:0,size:parseInt(i.size.toString()),color:i.color,"stroke-width":i.strokeWidth,"absolute-stroke-width":i.absoluteStrokeWidth,class:c.normalizeClass(i.classValue)},null,8,["size","color","stroke-width","absolute-stroke-width","class"])):c.createCommentVNode("",!0)}}),IT={class:"tabulator-body"},TT={class:"flex justify-end mb-4"},DT=["id"],zT={class:"flex"},RT={class:"w-1/2"},HT={key:0,class:"flex"},AT=["disabled","value","id"],VT=["for"],PT={class:"w-1/2"},qT={class:"mb-4"},BT=["value"],FT=c.defineComponent({__name:"Tabulator",props:{data:{default:()=>[]},columns:{default:()=>[]},placeholder:{default:""},paginationSize:{default:25},paginationSizeSelector:{default:()=>[25,50,100,200]},action:{type:Boolean,default:!1},actionButtons:{default:()=>[]},heightOffset:{default:250},actionMode:{default:"frontend"}},setup(o,{emit:e}){const t=I=>{const z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let R="";for(let j=0;j<I;j++)R+=z.charAt(Math.floor(Math.random()*z.length));return R},i=o,a=c.ref("table_"+t(5)),n=e,r=c.ref(!1),l=c.ref(""),h=c.ref(i.paginationSize),d=c.ref([]),u=c.ref([]);let p=null;const y={title:[{name:"Settings"}],action:[{title:"Cancel",emit:"onClose",class:"btn-outline"},{title:"Apply",emit:"onSave"}]},f=c.computed(()=>i.columns.filter(I=>I.title.toLowerCase().includes(l.value.toLowerCase()))),g=()=>({title:"Action",field:"action",width:99,hozAlign:"center",headerSort:!1,formatter:I=>{var z=[];if(i.actionMode=="api"?z=I.getData().actions:i.actionMode=="frontend"&&(z=i.actionButtons),z){const R=z.map(j=>`
|
|
8025
|
+
<div class="p-1 hover:bg-secondary cursor-pointer transition-all flex gap-1 font-medium ${j.class} ${j.name.replace(" ","_").toLowerCase()}_${I.getData().id}_${a.value}">
|
|
8026
|
+
${j.name}
|
|
8027
8027
|
</div>
|
|
8028
8028
|
`).join("");return`
|
|
8029
8029
|
<div class="relative select-none action-main-div-body-${a.value}" id="action-btn">
|
|
@@ -8034,7 +8034,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
8034
8034
|
${R}
|
|
8035
8035
|
</div>
|
|
8036
8036
|
</div>
|
|
8037
|
-
`}else return""},cellClick:
|
|
8037
|
+
`}else return""},cellClick:w}),k=()=>{const I=document.getElementById(a.value);I&&(d.value=i.columns.map(z=>z.field),S(),p=new MT(I,{data:i.data,columns:u.value,placeholder:i.placeholder??"No records found!",pagination:!0,paginationSize:h.value,paginationSizeSelector:i.paginationSizeSelector,layout:"fitColumns",height:window.innerHeight-i.heightOffset}),p.on("rowClick",v))},v=(I,z)=>{const R=document.querySelector(".action-show");if(I.target.closest(`.action-btn-${a.value}`)||R==null||R.classList.remove("action-show"),i.action){I.preventDefault();const P=document.querySelector(".datarow-selected");P==null||P.classList.remove("datarow-selected"),z.getElement().classList.add("datarow-selected")}},m=c.computed(()=>i.action?i.actionMode==="frontend"&&i.actionButtons.length>0?!0:i.actionMode==="api"?i.data.some(I=>I.actions&&I.actions.length>0):!1:!1),w=(I,z)=>{const R=I.target,j=R.closest(`.action-btn-${a.value}`),P=R.closest(`.action-main-div-body-${a.value}`),Ee=document.querySelector(".tabulator-tableholder");if(Ee&&j&&P){const ee=Ee.getBoundingClientRect(),W=P.querySelector(`.action-dropdown-${a.value}`);if(!W)return;const de=W.classList.contains("action-show");document.querySelectorAll(`.action-dropdown-${a.value}`).forEach(we=>we.classList.remove("action-show")),de||(document.addEventListener("click",C),M(W,ee))}i.actionMode=="frontend"?i.actionButtons.forEach(ee=>{R.classList.contains(ee.name.replace(" ","_").toLowerCase()+"_"+z.getData().id+"_"+a.value)&&n&&(z.getRow().getData().id,n(ee.emit,z.getData()))}):i.actionMode=="api"&&z.getData().actions.forEach(ee=>{R.classList.contains(ee.name.replace(" ","_").toLowerCase()+"_"+z.getData().id+"_"+a.value)&&n&&(z.getRow().getData().id,n(ee.emit,z.getData()))})},M=(I,z)=>{const R=I;R.style.top="",R.style.left="",R.style.right="",R.classList.add("action-show"),R.style.right="55px";const j=R.getBoundingClientRect();j.bottom>z.bottom-10&&(R.style.top=`-${j.height}px`)},C=I=>{const z=document.querySelector(".action-show"),R=document.getElementById(a.value),j=I.target.closest(".tabulator-row"),P=I.target.closest(`.action-main-div-body-${a.value}`);(!(R!=null&&R.contains(I.target))||!j&&!P)&&(z==null||z.classList.remove("action-show"),document.removeEventListener("click",C))},S=()=>{u.value=i.columns.filter(I=>d.value.includes(I.field)),i.action&&m.value&&u.value.push(g())},L=()=>{S(),p==null||p.setColumns(u.value),p==null||p.setPageSize(h.value),r.value=!1},H=()=>{r.value=!r.value};return c.onMounted(()=>{h.value=i.paginationSize,k()}),c.onBeforeUnmount(()=>{document.removeEventListener("click",C)}),c.watch(()=>i.data,I=>{p==null||p.setData(I),S(),p==null||p.setColumns(u.value)},{deep:!0}),c.watch(()=>i.columns,()=>{S(),p==null||p.setColumns(u.value)},{deep:!0}),(I,z)=>(c.openBlock(),c.createElementBlock("div",IT,[c.createElementVNode("div",TT,[c.createElementVNode("button",{onClick:H,class:"btn-outline btn-secondary group","aria-label":"Open settings"},[c.createVNode(Nx,{name:"Settings"})])]),c.createElementVNode("div",null,[c.createElementVNode("div",{ref:a.value,id:a.value,class:c.normalizeClass({"tabulator-action":I.action})},null,10,DT)]),c.createVNode(gx,{show:r.value,title:y.title,actions:y.action,width:"600px",onOnClose:z[3]||(z[3]=R=>r.value=!1),onOnSave:L},{default:c.withCtx(()=>[c.createElementVNode("div",zT,[c.createElementVNode("div",RT,[z[4]||(z[4]=c.createElementVNode("span",{class:"text-base font-semibold"},"Columns Attributes",-1)),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":z[0]||(z[0]=R=>l.value=R),class:"input-text mb-4",placeholder:"Search for attributes","aria-label":"Search columns"},null,512),[[c.vModelText,l.value]]),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(f.value,R=>(c.openBlock(),c.createElementBlock("div",{key:R.field,class:"my-2"},[R.field!=="action"?(c.openBlock(),c.createElementBlock("div",HT,[c.withDirectives(c.createElementVNode("input",{type:"checkbox",disabled:!R.isNotMandatory,"onUpdate:modelValue":z[1]||(z[1]=j=>d.value=j),value:R.field,class:"mx-1.5",id:R.title,"aria-labelledby":"column-checkbox"},null,8,AT),[[c.vModelCheckbox,d.value]]),c.createElementVNode("label",{for:R.title,class:"select-none"},c.toDisplayString(R.title),9,VT)])):c.createCommentVNode("",!0)]))),128))])]),c.createElementVNode("div",PT,[z[5]||(z[5]=c.createElementVNode("span",{class:"text-base font-semibold"},"Page Size",-1)),c.createElementVNode("div",qT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(I.paginationSizeSelector,R=>(c.openBlock(),c.createElementBlock("label",{key:R,class:"flex items-center mt-2"},[c.withDirectives(c.createElementVNode("input",{type:"radio","onUpdate:modelValue":z[2]||(z[2]=j=>h.value=j),value:R,class:"mr-2.5","aria-label":"Select page size"},null,8,BT),[[c.vModelRadio,h.value]]),c.createTextVNode(" "+c.toDisplayString(R),1)]))),128))])])])]),_:1},8,["show","title","actions"])]))}}),OT=["aria-checked"],jT={class:"text-[12px]"},oC=c.defineComponent({__name:"Toggle",props:{modelValue:{type:Boolean,default:!1},onText:{default:"On"},offText:{default:"Off"},width:{default:"60px"},disable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue);c.watch(()=>t.modelValue,r=>{a.value=r});const n=()=>{t.disable||(a.value=!a.value,i("update:modelValue",a.value))};return(r,l)=>(c.openBlock(),c.createElementBlock("button",{onClick:n,class:c.normalizeClass(["relative select-none h-[30px] rounded-xs transition-colors duration-200 border border-border-foreground overflow-hidden",[r.disable?"cursor-not-allowed":"cursor-pointer"]]),style:c.normalizeStyle({width:r.width,maxWidth:r.width,minWidth:r.width}),role:"switch","aria-checked":a.value},[c.createElementVNode("div",{class:c.normalizeClass(["flex items-center justify-center w-1/2 h-full bg-gray-200 shadow-md transform transition-transform duration-200",a.value?"translate-x-full":"translate-x-0"])},[c.createElementVNode("span",jT,c.toDisplayString(a.value?r.onText:r.offText),1)],2)],14,OT))}}),NT={key:0,class:"fixed top-0 left-0 w-[100vw] h-[100vh] bg-background z-10 overflow-hidden"},_T={class:"flex z-10 w-[100vw] top-0 fixed justify-between px-4 py-3 bg-white border-b border-b-border max-h-[50px]"},WT={class:"h-fit my-auto font-bold text-lg relative flex text-[19px]"},UT={key:0},$T={key:3,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GT={key:0,class:"flex justify-end fixed bottom-0 left-0 w-[100vw] bg-white border-t border-t-border max-h-[50px] px-4 py-3"},YT={class:"right-0 flex gap-2"},ZT=["onClick"],XT=c.defineComponent({__name:"Towser",props:{show:{type:Boolean,default:!1},title:{},actions:{},double:{type:Boolean,default:!1},bodyWidth:{default:50},body2Width:{default:50}},setup(o,{emit:e}){const t=o,i=e,a=c.computed(()=>t.actions?"150px":"100px"),n=c.computed(()=>t.double?`${t.bodyWidth}%`:"100%"),r=c.computed(()=>`
|
|
8038
8038
|
min-height: calc(100vh - ${a.value});
|
|
8039
8039
|
max-height: calc(100vh - ${a.value});
|
|
8040
8040
|
width: ${n.value}
|
|
@@ -8042,10 +8042,10 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
8042
8042
|
min-height: calc(100vh - ${a.value});
|
|
8043
8043
|
max-height: calc(100vh - ${a.value});
|
|
8044
8044
|
width: ${t.body2Width}%
|
|
8045
|
-
`);return(h,d)=>{const u=c.resolveComponent("RouterLink");return c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[c.createVNode(c.Transition,{name:"towser"},{default:c.withCtx(()=>[h.show?(c.openBlock(),c.createElementBlock("div",NT,[c.createElementVNode("div",_T,[c.createElementVNode("div",WT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(h.title,(p,y)=>(c.openBlock(),c.createElementBlock("span",{key:y,class:"flex"},[p.link?p.link!=="#"?(c.openBlock(),c.createBlock(u,{key:1,to:p.link,class:"hover:underline"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(p.name),1)]),_:2},1032,["to"])):(c.openBlock(),c.createElementBlock("a",{key:2,onClick:d[0]||(d[0]=f=>i("onClose")),class:"hover:underline cursor-pointer"},c.toDisplayString(p.name),1)):(c.openBlock(),c.createElementBlock("span",UT,c.toDisplayString(p.name),1)),h.title.length!==0&&y+1!==h.title.length?(c.openBlock(),c.createElementBlock("svg",GT,d[2]||(d[2]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("button",{class:"absolute cursor-pointer text-[20px] right-4 top-[15px]",onClick:d[1]||(d[1]=p=>i("onClose"))},d[3]||(d[3]=[c.createElementVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16.00 16.00",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"duration-200","stroke-width":"0.592"},[c.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[c.createElementVNode("path",{d:"M0 14.545L1.455 16 8 9.455 14.545 16 16 14.545 9.455 8 16 1.455 14.545 0 8 6.545 1.455 0 0 1.455 6.545 8z","fill-rule":"evenodd"})])],-1)]))]),c.createElementVNode("div",null,[c.createElementVNode("div",{class:c.normalizeClass([h.double?"flex gap-[15px]":"","px-[15px]"])},[c.createElementVNode("div",{class:"my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",style:c.normalizeStyle(r.value)},[c.renderSlot(h.$slots,"default",{},void 0,!0)],4),h.double?(c.openBlock(),c.createElementBlock("div",{key:0,class:"my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",style:c.normalizeStyle(l.value)},[c.renderSlot(h.$slots,"body2",{},void 0,!0)],4)):c.createCommentVNode("",!0)],2)]),h.actions?(c.openBlock(),c.createElementBlock("div",$T,[c.createElementVNode("div",YT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(h.actions,p=>(c.openBlock(),c.createElementBlock("button",{key:p.emit,class:c.normalizeClass(p.class||"btn"),onClick:y=>i(p.emit)},c.toDisplayString(p.title),11,ZT))),128))])])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),_:3})])}}}),KT=(o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t},JT=KT(XT,[["__scopeId","data-v-93cc0e1e"]]);function _x(o){return o instanceof Date||Object.prototype.toString.call(o)==="[object Date]"}function J7(o){return _x(o)?new Date(o.getTime()):o==null?new Date(NaN):new Date(o)}function QT(o){return _x(o)&&!isNaN(o.getTime())}function Wx(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(e>=0&&e<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var t=J7(o),i=t.getDay(),a=(i+7-e)%7;return t.setDate(t.getDate()-a),t.setHours(0,0,0,0),t}function Ux(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.firstDayOfWeek,i=t===void 0?0:t,a=e.firstWeekContainsDate,n=a===void 0?1:a;if(!(n>=1&&n<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var r=J7(o),l=r.getFullYear(),h=new Date(0),d=l+1;d>=l-1&&(h.setFullYear(d,0,n),h.setHours(0,0,0,0),h=Wx(h,i),!(r.getTime()>=h.getTime()));d--);return h}function nC(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.firstDayOfWeek,i=t===void 0?0:t,a=e.firstWeekContainsDate,n=a===void 0?1:a,r=J7(o),l=Wx(r,i),h=Ux(r,{firstDayOfWeek:i,firstWeekContainsDate:n}),d=l.getTime()-h.getTime();return Math.round(d/(7*24*3600*1e3))+1}var sC={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},eD=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function ye(o){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,t="".concat(Math.abs(o)),i=o<0?"-":"";t.length<e;)t="0".concat(t);return i+t}function OC(o){return Math.round(o.getTimezoneOffset()/15)*15}function jC(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=o>0?"-":"+",i=Math.abs(o),a=Math.floor(i/60),n=i%60;return t+ye(a,2)+e+ye(n,2)}var NC=function(e,t,i){var a=e<12?"AM":"PM";return i?a.toLocaleLowerCase():a},fn={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return ye(e.getFullYear(),4).substr(2)},YYYY:function(e){return ye(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return ye(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return ye(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return ye(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=fn.h.apply(fn,arguments);return ye(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return ye(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return ye(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return ye(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return ye(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var i=t.meridiem||NC;return i(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var i=t.meridiem||NC;return i(e.getHours(),e.getMinutes(),!0)},Z:function(e){return jC(OC(e),":")},ZZ:function(e){return jC(OC(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return nC(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return ye(fn.w(e,t),2)}};function rC(o,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",a=J7(o);if(!QT(a))return"Invalid Date";var n=t.locale||sC;return i.replace(eD,function(r,l){return l||(typeof fn[r]=="function"?"".concat(fn[r](a,n)):r)})}function _C(o){return aD(o)||iD(o)||tD()}function tD(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function iD(o){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]")return Array.from(o)}function aD(o){if(Array.isArray(o)){for(var e=0,t=new Array(o.length);e<o.length;e++)t[e]=o[e];return t}}function WC(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,i)}return t}function oD(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?WC(t,!0).forEach(function(i){Ke(o,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):WC(t).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(t,i))})}return o}function nD(o,e){return lD(o)||rD(o,e)||sD()}function sD(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function rD(o,e){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]"){var t=[],i=!0,a=!1,n=void 0;try{for(var r=o[Symbol.iterator](),l;!(i=(l=r.next()).done)&&(t.push(l.value),!(e&&t.length===e));i=!0);}catch(h){a=!0,n=h}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw n}}return t}}function lD(o){if(Array.isArray(o))return o}function Ke(o,e,t){return e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}var hD=/(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g,Gx=/\d/,Je=/\d\d/,cD=/\d{3}/,dD=/\d{4}/,nn=/\d\d?/,uD=/[+-]\d\d:?\d\d/,$x=/[+-]?\d+/,pD=/[+-]?\d+(\.\d{1,3})?/,lC="year",Q7="month",Yx="day",Zx="hour",Xx="minute",Kx="second",hC="millisecond",Jx={},W=function(e,t,i){var a=Array.isArray(e)?e:[e],n;typeof i=="string"?n=function(l){var h=parseInt(l,10);return Ke({},i,h)}:n=i,a.forEach(function(r){Jx[r]=[t,n]})},yD=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},Mn=function(e){return function(t){var i=t[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(i.map(yD).join("|"))}},Cn=function(e,t){return function(i,a){var n=a[e];if(!Array.isArray(n))throw new Error("Locale[".concat(e,"] need an array"));var r=n.indexOf(i);if(r<0)throw new Error("Invalid Word");return Ke({},t,r)}};W("Y",$x,lC);W("YY",Je,function(o){var e=new Date().getFullYear(),t=Math.floor(e/100),i=parseInt(o,10);return i=(i>68?t-1:t)*100+i,Ke({},lC,i)});W("YYYY",dD,lC);W("M",nn,function(o){return Ke({},Q7,parseInt(o,10)-1)});W("MM",Je,function(o){return Ke({},Q7,parseInt(o,10)-1)});W("MMM",Mn("monthsShort"),Cn("monthsShort",Q7));W("MMMM",Mn("months"),Cn("months",Q7));W("D",nn,Yx);W("DD",Je,Yx);W(["H","h"],nn,Zx);W(["HH","hh"],Je,Zx);W("m",nn,Xx);W("mm",Je,Xx);W("s",nn,Kx);W("ss",Je,Kx);W("S",Gx,function(o){return Ke({},hC,parseInt(o,10)*100)});W("SS",Je,function(o){return Ke({},hC,parseInt(o,10)*10)});W("SSS",cD,hC);function fD(o){return o.meridiemParse||/[ap]\.?m?\.?/i}function mD(o){return"".concat(o).toLowerCase().charAt(0)==="p"}W(["A","a"],fD,function(o,e){var t=typeof e.isPM=="function"?e.isPM(o):mD(o);return{isPM:t}});function gD(o){var e=o.match(/([+-]|\d\d)/g)||["-","0","0"],t=nD(e,3),i=t[0],a=t[1],n=t[2],r=parseInt(a,10)*60+parseInt(n,10);return r===0?0:i==="+"?-r:+r}W(["Z","ZZ"],uD,function(o){return{offset:gD(o)}});W("x",$x,function(o){return{date:new Date(parseInt(o,10))}});W("X",pD,function(o){return{date:new Date(parseFloat(o)*1e3)}});W("d",Gx,"weekday");W("dd",Mn("weekdaysMin"),Cn("weekdaysMin","weekday"));W("ddd",Mn("weekdaysShort"),Cn("weekdaysShort","weekday"));W("dddd",Mn("weekdays"),Cn("weekdays","weekday"));W("w",nn,"week");W("ww",Je,"week");function kD(o,e){if(o!==void 0&&e!==void 0){if(e){if(o<12)return o+12}else if(o===12)return 0}return o}function vD(o){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,t=[0,0,1,0,0,0,0],i=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()],a=!0,n=0;n<7;n++)o[n]===void 0?t[n]=a?i[n]:t[n]:(t[n]=o[n],a=!1);return t}function bD(o,e,t,i,a,n,r){var l;return o<100&&o>=0?(l=new Date(o+400,e,t,i,a,n,r),isFinite(l.getFullYear())&&l.setFullYear(o)):l=new Date(o,e,t,i,a,n,r),l}function wD(){for(var o,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=t[0];return a<100&&a>=0?(t[0]+=400,o=new Date(Date.UTC.apply(Date,t)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(a)):o=new Date(Date.UTC.apply(Date,t)),o}function MD(o,e,t){var i=e.match(hD);if(!i)throw new Error;for(var a=i.length,n={},r=0;r<a;r+=1){var l=i[r],h=Jx[l];if(h){var u=typeof h[0]=="function"?h[0](t):h[0],p=h[1],y=(u.exec(o)||[])[0],f=p(y,t);n=oD({},n,{},f),o=o.replace(y,"")}else{var d=l.replace(/^\[|\]$/g,"");if(o.indexOf(d)===0)o=o.substr(d.length);else throw new Error("not match")}}return n}function CD(o,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var i=t.locale,a=i===void 0?sC:i,n=t.backupDate,r=n===void 0?new Date:n,l=MD(o,e,a),h=l.year,d=l.month,u=l.day,p=l.hour,y=l.minute,f=l.second,g=l.millisecond,k=l.isPM,v=l.date,m=l.offset,M=l.weekday,w=l.week;if(v)return v;var C=[h,d,u,p,y,f,g];if(C[3]=kD(C[3],k),w!==void 0&&d===void 0&&u===void 0){var I=Ux(h===void 0?r:new Date(h,3),{firstDayOfWeek:a.firstDayOfWeek,firstWeekContainsDate:a.firstWeekContainsDate});return new Date(I.getTime()+(w-1)*7*24*3600*1e3)}var L,S=vD(C,r);return m!==void 0?(S[6]+=m*60*1e3,L=wD.apply(void 0,_C(S))):L=bD.apply(void 0,_C(S)),M!==void 0&&L.getDay()!==M?new Date(NaN):L}catch{return new Date(NaN)}}var xD=Object.defineProperty,LD=Object.defineProperties,ED=Object.getOwnPropertyDescriptors,P7=Object.getOwnPropertySymbols,Qx=Object.prototype.hasOwnProperty,eL=Object.prototype.propertyIsEnumerable,UC=(o,e,t)=>e in o?xD(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,J=(o,e)=>{for(var t in e||(e={}))Qx.call(e,t)&&UC(o,t,e[t]);if(P7)for(var t of P7(e))eL.call(e,t)&&UC(o,t,e[t]);return o},be=(o,e)=>LD(o,ED(e)),SD=(o,e)=>{var t={};for(var i in o)Qx.call(o,i)&&e.indexOf(i)<0&&(t[i]=o[i]);if(o!=null&&P7)for(var i of P7(o))e.indexOf(i)<0&&eL.call(o,i)&&(t[i]=o[i]);return t};const ID={formatLocale:sC,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};let yn="en";const $o={};$o[yn]=ID;function tL(o,e,t=!1){if(typeof o!="string")return $o[yn];let i=yn;return $o[o]&&(i=o),e&&($o[o]=e,i=o),t||(yn=i),$o[o]||$o[yn]}function Z9(o){return tL(o,void 0,!0)}function cC(o,e){if(!Array.isArray(o))return[];const t=[],i=o.length;let a=0;for(e=e||i;a<i;)t.push(o.slice(a,a+=e));return t}function GC(o){return Array.isArray(o)?o[o.length-1]:void 0}function $e(o){return Object.prototype.toString.call(o)==="[object Object]"}function Pe(o,e){const t={};return $e(o)&&(Array.isArray(e)||(e=[e]),e.forEach(i=>{Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])})),t}function iL(o,e){if(!$e(o))return{};let t=o;return $e(e)&&Object.keys(e).forEach(i=>{let a=e[i];const n=o[i];$e(a)&&$e(n)&&(a=iL(n,a)),t=be(J({},t),{[i]:a})}),t}function p9(o){const e=parseInt(String(o),10);return e<10?`0${e}`:`${e}`}function TD(o){const e=/-(\w)/g;return o.replace(e,(t,i)=>i?i.toUpperCase():"")}const aL="datepicker_locale",oL="datepicker_prefixClass",nL="datepicker_getWeek";function dC(){return c.inject(aL,c.shallowRef(Z9()))}function DD(o){const e=c.computed(()=>$e(o.value)?iL(Z9(),o.value):Z9(o.value));return c.provide(aL,e),e}function zD(o){c.provide(oL,o)}function se(){return c.inject(oL,"mx")}function RD(o){c.provide(nL,o)}function HD(){return c.inject(nL,nC)}function AD(o){const e=o.style.display,t=o.style.visibility;o.style.display="block",o.style.visibility="hidden";const i=window.getComputedStyle(o),a=o.offsetWidth+parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),n=o.offsetHeight+parseInt(i.marginTop,10)+parseInt(i.marginBottom,10);return o.style.display=e,o.style.visibility=t,{width:a,height:n}}function VD(o,e,t,i){let a=0,n=0,r=0,l=0;const h=o.getBoundingClientRect(),d=document.documentElement.clientWidth,u=document.documentElement.clientHeight;return i&&(r=window.pageXOffset+h.left,l=window.pageYOffset+h.top),d-h.left<e&&h.right<e?a=r-h.left+1:h.left+h.width/2<=d/2?a=r:a=r+h.width-e,h.top<=t&&u-h.bottom<=t?n=l+u-h.top-t:h.top+h.height/2<=u/2?n=l+h.height:n=l-t,{left:`${a}px`,top:`${n}px`}}function uC(o,e=document.body){if(!o||o===e)return null;const t=(n,r)=>getComputedStyle(n,null).getPropertyValue(r);return/(auto|scroll)/.test(t(o,"overflow")+t(o,"overflow-y")+t(o,"overflow-x"))?o:uC(o.parentElement,e)}let Vn;function PD(){if(typeof window>"u")return 0;if(Vn!==void 0)return Vn;const o=document.createElement("div");o.style.visibility="hidden",o.style.overflow="scroll",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const e=document.createElement("div");return e.style.width="100%",o.appendChild(e),Vn=o.offsetWidth-e.offsetWidth,o.parentNode.removeChild(o),Vn}const $C="ontouchend"in document?"touchstart":"mousedown";function qD(o){let e=!1;return function(...i){e||(e=!0,requestAnimationFrame(()=>{e=!1,o.apply(this,i)}))}}function Fe(o,e){return{setup:o,name:o.name,props:e}}function Oe(o,e){return new Proxy(o,{get(i,a){const n=i[a];return n!==void 0?n:e[a]}})}const Qe=()=>o=>o,BD=(o,e)=>{const t={};for(const i in o)if(Object.prototype.hasOwnProperty.call(o,i)){const a=TD(i);let n=o[i];e.indexOf(a)!==-1&&n===""&&(n=!0),t[a]=n}return t};function FD(o,{slots:e}){const t=Oe(o,{appendToBody:!0}),i=se(),a=c.ref(null),n=c.ref({left:"",top:""}),r=()=>{if(!t.visible||!a.value)return;const h=t.getRelativeElement();if(!h)return;const{width:d,height:u}=AD(a.value);n.value=VD(h,d,u,t.appendToBody)};c.watchEffect(r,{flush:"post"}),c.watchEffect(h=>{const d=t.getRelativeElement();if(!d)return;const u=uC(d)||window,p=qD(r);u.addEventListener("scroll",p),window.addEventListener("resize",p),h(()=>{u.removeEventListener("scroll",p),window.removeEventListener("resize",p)})},{flush:"post"});const l=h=>{if(!t.visible)return;const d=h.target,u=a.value,p=t.getRelativeElement();u&&!u.contains(d)&&p&&!p.contains(d)&&t.onClickOutside(h)};return c.watchEffect(h=>{document.addEventListener($C,l),h(()=>{document.removeEventListener($C,l)})}),()=>c.createVNode(c.Teleport,{to:"body",disabled:!t.appendToBody},{default:()=>[c.createVNode(c.Transition,{name:`${i}-zoom-in-down`},{default:()=>{var h;return[t.visible&&c.createVNode("div",{ref:a,class:`${i}-datepicker-main ${i}-datepicker-popup ${t.className}`,style:[J({position:"absolute"},n.value),t.style||{}]},[(h=e.default)==null?void 0:h.call(e)])]}})]})}const OD=Qe()(["style","className","visible","appendToBody","onClickOutside","getRelativeElement"]);var jD=Fe(FD,OD);const ND={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},_D=c.createElementVNode("path",{d:"M940.218 107.055H730.764v-60.51H665.6v60.51H363.055v-60.51H297.89v60.51H83.78c-18.617 0-32.581 13.963-32.581 32.581v805.237c0 18.618 13.964 32.582 32.582 32.582h861.09c18.619 0 32.583-13.964 32.583-32.582V139.636c-4.655-18.618-18.619-32.581-37.237-32.581zm-642.327 65.163v60.51h65.164v-60.51h307.2v60.51h65.163v-60.51h176.873v204.8H116.364v-204.8H297.89zM116.364 912.291V442.18H912.29v470.11H116.364z"},null,-1),WD=[_D];function sL(o,e){return c.openBlock(),c.createElementBlock("svg",ND,WD)}const UD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},GD=c.createElementVNode("path",{d:"M810.005 274.005 572.011 512l237.994 237.995-60.01 60.01L512 572.011 274.005 810.005l-60.01-60.01L451.989 512 213.995 274.005l60.01-60.01L512 451.989l237.995-237.994z"},null,-1),$D=[GD];function YD(o,e){return c.openBlock(),c.createElementBlock("svg",UD,$D)}const ZD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},XD=c.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),KD=c.createElementVNode("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},null,-1),JD=c.createElementVNode("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1),QD=[XD,KD,JD];function ez(o,e){return c.openBlock(),c.createElementBlock("svg",ZD,QD)}function Fo(o,e=0,t=1,i=0,a=0,n=0,r=0){const l=new Date(o,e,t,i,a,n,r);return o<100&&o>=0&&l.setFullYear(o),l}function Be(o){return o instanceof Date&&!isNaN(o.getTime())}function Oo(o){return Array.isArray(o)&&o.length===2&&o.every(Be)&&o[0]<=o[1]}function tz(o){return Array.isArray(o)&&o.every(Be)}function e9(...o){if(o[0]!==void 0&&o[0]!==null){const t=new Date(o[0]);if(Be(t))return t}const e=o.slice(1);return e.length?e9(...e):new Date}function iz(o){const e=new Date(o);return e.setMonth(0,1),e.setHours(0,0,0,0),e}function YC(o){const e=new Date(o);return e.setDate(1),e.setHours(0,0,0,0),e}function Xe(o){const e=new Date(o);return e.setHours(0,0,0,0),e}function az({firstDayOfWeek:o,year:e,month:t}){const i=[],a=Fo(e,t,0),n=a.getDate(),r=n-(a.getDay()+7-o)%7;for(let u=r;u<=n;u++)i.push(Fo(e,t,u-n));a.setMonth(t+1,0);const l=a.getDate();for(let u=1;u<=l;u++)i.push(Fo(e,t,u));const h=n-r+1,d=6*7-h-l;for(let u=1;u<=d;u++)i.push(Fo(e,t,l+u));return i}function q7(o,e){const t=new Date(o),i=typeof e=="function"?e(t.getMonth()):Number(e),a=t.getFullYear(),n=Fo(a,i+1,0).getDate(),r=t.getDate();return t.setMonth(i,Math.min(r,n)),t}function Yo(o,e){const t=new Date(o),i=typeof e=="function"?e(t.getFullYear()):e;return t.setFullYear(i),t}function oz(o,e){const t=new Date(e),i=new Date(o),a=t.getFullYear()-i.getFullYear(),n=t.getMonth()-i.getMonth();return a*12+n}function B7(o,e){const t=new Date(o),i=new Date(e);return t.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),t}function nz(o,{slots:e}){const t=Oe(o,{editable:!0,disabled:!1,clearable:!0,range:!1,multiple:!1}),i=se(),a=c.ref(null),n=c.computed(()=>t.separator||(t.range?" ~ ":",")),r=f=>t.range?Oo(f):t.multiple?tz(f):Be(f),l=f=>Array.isArray(f)?f.some(g=>t.disabledDate(g)):t.disabledDate(f),h=c.computed(()=>a.value!==null?a.value:typeof t.renderInputText=="function"?t.renderInputText(t.value):r(t.value)?Array.isArray(t.value)?t.value.map(f=>t.formatDate(f)).join(n.value):t.formatDate(t.value):""),d=f=>{var g;f&&f.stopPropagation(),t.onChange(t.range?[null,null]:null),(g=t.onClear)==null||g.call(t)},u=()=>{var f;if(!t.editable||a.value===null)return;const g=a.value.trim();if(a.value=null,g===""){d();return}let k;if(t.range){let v=g.split(n.value);v.length!==2&&(v=g.split(n.value.trim())),k=v.map(m=>t.parseDate(m.trim()))}else t.multiple?k=g.split(n.value).map(v=>t.parseDate(v.trim())):k=t.parseDate(g);r(k)&&!l(k)?t.onChange(k):(f=t.onInputError)==null||f.call(t,g)},p=f=>{a.value=typeof f=="string"?f:f.target.value},y=f=>{const{keyCode:g}=f;g===9?t.onBlur():g===13&&u()};return()=>{var f,g,k;const v=!t.disabled&&t.clearable&&h.value,m=be(J({name:"date",type:"text",autocomplete:"off",value:h.value,class:t.inputClass||`${i}-input`,readonly:!t.editable,disabled:t.disabled,placeholder:t.placeholder},t.inputAttr),{onFocus:t.onFocus,onKeydown:y,onInput:p,onChange:u});return c.createVNode("div",{class:`${i}-input-wrapper`,onClick:t.onClick},[((f=e.input)==null?void 0:f.call(e,m))||c.createVNode("input",m,null),v?c.createVNode("i",{class:`${i}-icon-clear`,onClick:d},[((g=e["icon-clear"])==null?void 0:g.call(e))||c.createVNode(YD,null,null)]):null,c.createVNode("i",{class:`${i}-icon-calendar`},[((k=e["icon-calendar"])==null?void 0:k.call(e))||c.createVNode(sL,null,null)])])}}const pC=Qe()(["placeholder","editable","disabled","clearable","inputClass","inputAttr","range","multiple","separator","renderInputText","onInputError","onClear"]),sz=Qe()(["value","formatDate","parseDate","disabledDate","onChange","onFocus","onBlur","onClick",...pC]);var rz=Fe(nz,sz);function lz(o,{slots:e}){var t;const i=Oe(o,{prefixClass:"mx",valueType:"date",format:"YYYY-MM-DD",type:"date",disabledDate:()=>!1,disabledTime:()=>!1,confirmText:"OK"});zD(i.prefixClass),RD(((t=i.formatter)==null?void 0:t.getWeek)||nC);const a=DD(c.toRef(o,"lang")),n=c.ref(),r=()=>n.value,l=c.ref(!1),h=c.computed(()=>!i.disabled&&(typeof i.open=="boolean"?i.open:l.value)),d=()=>{var L,S;i.disabled||h.value||(l.value=!0,(L=i["onUpdate:open"])==null||L.call(i,!0),(S=i.onOpen)==null||S.call(i))},u=()=>{var L,S;h.value&&(l.value=!1,(L=i["onUpdate:open"])==null||L.call(i,!1),(S=i.onClose)==null||S.call(i))},p=(L,S)=>(S=S||i.format,$e(i.formatter)&&typeof i.formatter.stringify=="function"?i.formatter.stringify(L,S):rC(L,S,{locale:a.value.formatLocale})),y=(L,S)=>{if(S=S||i.format,$e(i.formatter)&&typeof i.formatter.parse=="function")return i.formatter.parse(L,S);const T=new Date;return CD(L,S,{locale:a.value.formatLocale,backupDate:T})},f=L=>{switch(i.valueType){case"date":return L instanceof Date?new Date(L.getTime()):new Date(NaN);case"timestamp":return typeof L=="number"?new Date(L):new Date(NaN);case"format":return typeof L=="string"?y(L):new Date(NaN);default:return typeof L=="string"?y(L,i.valueType):new Date(NaN)}},g=L=>{if(!Be(L))return null;switch(i.valueType){case"date":return L;case"timestamp":return L.getTime();case"format":return p(L);default:return p(L,i.valueType)}},k=c.computed(()=>{const L=i.value;return i.range?(Array.isArray(L)?L.slice(0,2):[null,null]).map(f):i.multiple?(Array.isArray(L)?L:[]).map(f):f(L)}),v=(L,S,T=!0)=>{var R,O;const Z=Array.isArray(L)?L.map(g):g(L);return(R=i["onUpdate:value"])==null||R.call(i,Z),(O=i.onChange)==null||O.call(i,Z,S),T&&u(),Z},m=c.ref(new Date);c.watchEffect(()=>{h.value&&(m.value=k.value)});const M=(L,S)=>{i.confirm?m.value=L:v(L,S,!i.multiple&&(S===i.type||S==="time"))},w=()=>{var L;const S=v(m.value);(L=i.onConfirm)==null||L.call(i,S)},C=L=>i.disabledDate(L)||i.disabledTime(L),I=L=>{var S;const{prefixClass:T}=i;return c.createVNode("div",{class:`${T}-datepicker-sidebar`},[(S=e.sidebar)==null?void 0:S.call(e,L),(i.shortcuts||[]).map((R,O)=>c.createVNode("button",{key:O,"data-index":O,type:"button",class:`${T}-btn ${T}-btn-text ${T}-btn-shortcut`,onClick:()=>{var Z;const P=(Z=R.onClick)==null?void 0:Z.call(R);P&&v(P)}},[R.text]))])};return()=>{var L,S;const{prefixClass:T,disabled:R,confirm:O,range:Z,popupClass:P,popupStyle:oe,appendToBody:de}=i,U={value:m.value,"onUpdate:value":M,emit:v},ue=e.header&&c.createVNode("div",{class:`${T}-datepicker-header`},[e.header(U)]),Re=(e.footer||O)&&c.createVNode("div",{class:`${T}-datepicker-footer`},[(L=e.footer)==null?void 0:L.call(e,U),O&&c.createVNode("button",{type:"button",class:`${T}-btn ${T}-datepicker-btn-confirm`,onClick:w},[i.confirmText])]),Me=(S=e.content)==null?void 0:S.call(e,U),cn=(e.sidebar||i.shortcuts)&&I(U);return c.createVNode("div",{ref:n,class:{[`${T}-datepicker`]:!0,[`${T}-datepicker-range`]:Z,disabled:R}},[c.createVNode(rz,be(J({},Pe(i,pC)),{value:k.value,formatDate:p,parseDate:y,disabledDate:C,onChange:v,onClick:d,onFocus:d,onBlur:u}),Pe(e,["icon-calendar","icon-clear","input"])),c.createVNode(jD,{className:P,style:oe,visible:h.value,appendToBody:de,getRelativeElement:r,onClickOutside:u},{default:()=>[cn,c.createVNode("div",{class:`${T}-datepicker-content`},[ue,Me,Re])]})])}}const hz=Qe()(["value","valueType","type","format","formatter","lang","prefixClass","appendToBody","open","popupClass","popupStyle","confirm","confirmText","shortcuts","disabledDate","disabledTime","onOpen","onClose","onConfirm","onChange","onUpdate:open","onUpdate:value"]),cz=[...hz,...pC];var ZC=Fe(lz,cz);function Pn(o){var e=o,{value:t}=e,i=SD(e,["value"]);const a=se();return c.createVNode("button",be(J({},i),{type:"button",class:`${a}-btn ${a}-btn-text ${a}-btn-icon-${t}`}),[c.createVNode("i",{class:`${a}-icon-${t}`},null)])}function yC({type:o,calendar:e,onUpdateCalendar:t},{slots:i}){var a;const n=se(),r=()=>{t(q7(e,y=>y-1))},l=()=>{t(q7(e,y=>y+1))},h=()=>{t(Yo(e,y=>y-1))},d=()=>{t(Yo(e,y=>y+1))},u=()=>{t(Yo(e,y=>y-10))},p=()=>{t(Yo(e,y=>y+10))};return c.createVNode("div",{class:`${n}-calendar-header`},[c.createVNode(Pn,{value:"double-left",onClick:o==="year"?u:h},null),o==="date"&&c.createVNode(Pn,{value:"left",onClick:r},null),c.createVNode(Pn,{value:"double-right",onClick:o==="year"?p:d},null),o==="date"&&c.createVNode(Pn,{value:"right",onClick:l},null),c.createVNode("span",{class:`${n}-calendar-header-label`},[(a=i.default)==null?void 0:a.call(i)])])}function dz({calendar:o,isWeekMode:e,showWeekNumber:t,titleFormat:i,getWeekActive:a,getCellClasses:n,onSelect:r,onUpdatePanel:l,onUpdateCalendar:h,onDateMouseEnter:d,onDateMouseLeave:u}){const p=se(),y=HD(),f=dC().value,{yearFormat:g,monthBeforeYear:k,monthFormat:v="MMM",formatLocale:m}=f,M=m.firstDayOfWeek||0;let w=f.days||m.weekdaysMin;w=w.concat(w).slice(M,M+7);const C=o.getFullYear(),I=o.getMonth(),L=cC(az({firstDayOfWeek:M,year:C,month:I}),7),S=(U,ue)=>rC(U,ue,{locale:f.formatLocale}),T=U=>{l(U)},R=U=>{const ue=U.getAttribute("data-index"),[Re,Me]=ue.split(",").map(dn=>parseInt(dn,10)),cn=L[Re][Me];return new Date(cn)},O=U=>{r(R(U.currentTarget))},Z=U=>{d&&d(R(U.currentTarget))},P=U=>{u&&u(R(U.currentTarget))},oe=c.createVNode("button",{type:"button",class:`${p}-btn ${p}-btn-text ${p}-btn-current-year`,onClick:()=>T("year")},[S(o,g)]),de=c.createVNode("button",{type:"button",class:`${p}-btn ${p}-btn-text ${p}-btn-current-month`,onClick:()=>T("month")},[S(o,v)]);return t=typeof t=="boolean"?t:e,c.createVNode("div",{class:[`${p}-calendar ${p}-calendar-panel-date`,{[`${p}-calendar-week-mode`]:e}]},[c.createVNode(yC,{type:"date",calendar:o,onUpdateCalendar:h},{default:()=>[k?[de,oe]:[oe,de]]}),c.createVNode("div",{class:`${p}-calendar-content`},[c.createVNode("table",{class:`${p}-table ${p}-table-date`},[c.createVNode("thead",null,[c.createVNode("tr",null,[t&&c.createVNode("th",{class:`${p}-week-number-header`},null),w.map(U=>c.createVNode("th",{key:U},[U]))])]),c.createVNode("tbody",null,[L.map((U,ue)=>c.createVNode("tr",{key:ue,class:[`${p}-date-row`,{[`${p}-active-week`]:a(U)}]},[t&&c.createVNode("td",{class:`${p}-week-number`,"data-index":`${ue},0`,onClick:O},[c.createVNode("div",null,[y(U[0])])]),U.map((Re,Me)=>c.createVNode("td",{key:Me,class:["cell",n(Re)],title:S(Re,i),"data-index":`${ue},${Me}`,onClick:O,onMouseenter:Z,onMouseleave:P},[c.createVNode("div",null,[Re.getDate()])]))]))])])])])}function uz({calendar:o,getCellClasses:e,onSelect:t,onUpdateCalendar:i,onUpdatePanel:a}){const n=se(),r=dC().value,l=r.months||r.formatLocale.monthsShort,h=u=>Fo(o.getFullYear(),u),d=u=>{const y=u.currentTarget.getAttribute("data-month");t(h(parseInt(y,10)))};return c.createVNode("div",{class:`${n}-calendar ${n}-calendar-panel-month`},[c.createVNode(yC,{type:"month",calendar:o,onUpdateCalendar:i},{default:()=>[c.createVNode("button",{type:"button",class:`${n}-btn ${n}-btn-text ${n}-btn-current-year`,onClick:()=>a("year")},[o.getFullYear()])]}),c.createVNode("div",{class:`${n}-calendar-content`},[c.createVNode("table",{class:`${n}-table ${n}-table-month`},[cC(l,3).map((u,p)=>c.createVNode("tr",{key:p},[u.map((y,f)=>{const g=p*3+f;return c.createVNode("td",{key:f,class:["cell",e(h(g))],"data-month":g,onClick:d},[c.createVNode("div",null,[y])])})]))])])])}const pz=o=>{const e=Math.floor(o.getFullYear()/10)*10,t=[];for(let i=0;i<10;i++)t.push(e+i);return cC(t,2)};function yz({calendar:o,getCellClasses:e=()=>[],getYearPanel:t=pz,onSelect:i,onUpdateCalendar:a}){const n=se(),r=p=>Fo(p,0),l=p=>{const f=p.currentTarget.getAttribute("data-year");i(r(parseInt(f,10)))},h=t(new Date(o)),d=h[0][0],u=GC(GC(h));return c.createVNode("div",{class:`${n}-calendar ${n}-calendar-panel-year`},[c.createVNode(yC,{type:"year",calendar:o,onUpdateCalendar:a},{default:()=>[c.createVNode("span",null,[d]),c.createVNode("span",{class:`${n}-calendar-decade-separator`},null),c.createVNode("span",null,[u])]}),c.createVNode("div",{class:`${n}-calendar-content`},[c.createVNode("table",{class:`${n}-table ${n}-table-year`},[h.map((p,y)=>c.createVNode("tr",{key:y},[p.map((f,g)=>c.createVNode("td",{key:g,class:["cell",e(r(f))],"data-year":f,onClick:l},[c.createVNode("div",null,[f])]))]))])])])}function fz(o){const e=Oe(o,{defaultValue:Xe(new Date),type:"date",disabledDate:()=>!1,getClasses:()=>[],titleFormat:"YYYY-MM-DD"}),t=c.computed(()=>(Array.isArray(e.value)?e.value:[e.value]).filter(Be).map(M=>e.type==="year"?iz(M):e.type==="month"?YC(M):Xe(M))),i=c.ref(new Date);c.watchEffect(()=>{let m=e.calendar;if(!Be(m)){const{length:M}=t.value;m=e9(M>0?t.value[M-1]:e.defaultValue)}i.value=YC(m)});const a=m=>{var M;i.value=m,(M=e.onCalendarChange)==null||M.call(e,m)},n=c.ref("date");c.watchEffect(()=>{const m=["date","month","year"],M=Math.max(m.indexOf(e.type),m.indexOf(e.defaultPanel));n.value=M!==-1?m[M]:"date"});const r=m=>{var M;const w=n.value;n.value=m,(M=e.onPanelChange)==null||M.call(e,m,w)},l=m=>e.disabledDate(new Date(m),t.value),h=(m,M)=>{var w,C,I;if(!l(m))if((w=e.onPick)==null||w.call(e,m),e.multiple===!0){const L=t.value.filter(S=>S.getTime()!==m.getTime());L.length===t.value.length&&L.push(m),(C=e["onUpdate:value"])==null||C.call(e,L,M)}else(I=e["onUpdate:value"])==null||I.call(e,m,M)},d=m=>{h(m,e.type==="week"?"week":"date")},u=m=>{if(e.type==="year")h(m,"year");else if(a(m),r("month"),e.partialUpdate&&t.value.length===1){const M=Yo(t.value[0],m.getFullYear());h(M,"year")}},p=m=>{if(e.type==="month")h(m,"month");else if(a(m),r("date"),e.partialUpdate&&t.value.length===1){const M=q7(Yo(t.value[0],m.getFullYear()),m.getMonth());h(M,"month")}},y=(m,M=[])=>(l(m)?M.push("disabled"):t.value.some(w=>w.getTime()===m.getTime())&&M.push("active"),M.concat(e.getClasses(m,t.value,M.join(" ")))),f=m=>{const M=m.getMonth()!==i.value.getMonth(),w=[];return m.getTime()===new Date().setHours(0,0,0,0)&&w.push("today"),M&&w.push("not-current-month"),y(m,w)},g=m=>e.type!=="month"?i.value.getMonth()===m.getMonth()?"active":"":y(m),k=m=>e.type!=="year"?i.value.getFullYear()===m.getFullYear()?"active":"":y(m),v=m=>{if(e.type!=="week")return!1;const M=m[0].getTime(),w=m[6].getTime();return t.value.some(C=>{const I=C.getTime();return I>=M&&I<=w})};return()=>n.value==="year"?c.createVNode(yz,{calendar:i.value,getCellClasses:k,getYearPanel:e.getYearPanel,onSelect:u,onUpdateCalendar:a},null):n.value==="month"?c.createVNode(uz,{calendar:i.value,getCellClasses:g,onSelect:p,onUpdatePanel:r,onUpdateCalendar:a},null):c.createVNode(dz,{isWeekMode:e.type==="week",showWeekNumber:e.showWeekNumber,titleFormat:e.titleFormat,calendar:i.value,getCellClasses:f,getWeekActive:v,onSelect:d,onUpdatePanel:r,onUpdateCalendar:a,onDateMouseEnter:e.onDateMouseEnter,onDateMouseLeave:e.onDateMouseLeave},null)}const t9=Qe()(["type","value","defaultValue","defaultPanel","disabledDate","getClasses","calendar","multiple","partialUpdate","showWeekNumber","titleFormat","getYearPanel","onDateMouseEnter","onDateMouseLeave","onCalendarChange","onPanelChange","onUpdate:value","onPick"]);var i9=Fe(fz,t9);const XC=(o,e)=>{const t=o.getTime();let[i,a]=e.map(n=>n.getTime());return i>a&&([i,a]=[a,i]),t>i&&t<a};function mz(o){const e=Oe(o,{defaultValue:new Date,type:"date"}),t=se(),i=c.computed(()=>{let v=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return v=v.map(m=>Xe(m)),Oo(v)?v:[new Date,new Date].map(m=>Xe(m))}),a=c.ref([new Date(NaN),new Date(NaN)]);c.watchEffect(()=>{Oo(e.value)&&(a.value=e.value)});const n=(v,m)=>{var M;const[w,C]=a.value;Be(w)&&!Be(C)?(w.getTime()>v.getTime()?a.value=[v,w]:a.value=[w,v],(M=e["onUpdate:value"])==null||M.call(e,a.value,m)):a.value=[v,new Date(NaN)]},r=c.ref([new Date,new Date]),l=c.computed(()=>Oo(e.calendar)?e.calendar:r.value),h=c.computed(()=>e.type==="year"?10*12:e.type==="month"?1*12:1),d=(v,m)=>{var M;const w=oz(v[0],v[1]),C=h.value-w;if(C>0){const I=m===1?0:1;v[I]=q7(v[I],L=>L+(I===0?-C:C))}r.value=v,(M=e.onCalendarChange)==null||M.call(e,v,m)},u=v=>{d([v,l.value[1]],0)},p=v=>{d([l.value[0],v],1)};c.watchEffect(()=>{const v=Oo(e.value)?e.value:i.value;d(v.slice(0,2))});const y=c.ref(null),f=v=>y.value=v,g=()=>y.value=null,k=(v,m,M)=>{const w=e.getClasses?e.getClasses(v,m,M):[],C=Array.isArray(w)?w:[w];return/disabled|active/.test(M)?C:(m.length===2&&XC(v,m)&&C.push("in-range"),m.length===1&&y.value&&XC(v,[m[0],y.value])?C.concat("hover-in-range"):C)};return()=>{const v=l.value.map((m,M)=>{const w=be(J({},e),{calendar:m,value:a.value,defaultValue:i.value[M],getClasses:k,partialUpdate:!1,multiple:!1,"onUpdate:value":n,onCalendarChange:M===0?u:p,onDateMouseLeave:g,onDateMouseEnter:f});return c.createVNode(i9,w,null)});return c.createVNode("div",{class:`${t}-calendar-range`},[v])}}const fC=t9;var mC=Fe(mz,fC);const rL=c.defineComponent({setup(o,{slots:e}){const t=se(),i=c.ref(),a=c.ref(""),n=c.ref(""),r=()=>{if(!i.value)return;const g=i.value,k=g.clientHeight*100/g.scrollHeight;a.value=k<100?`${k}%`:""};c.onMounted(r);const l=PD(),h=g=>{const k=g.currentTarget,{scrollHeight:v,scrollTop:m}=k;n.value=`${m*100/v}%`};let d=!1,u=0;const p=g=>{g.stopImmediatePropagation();const k=g.currentTarget,{offsetTop:v}=k;d=!0,u=g.clientY-v},y=g=>{if(!d||!i.value)return;const{clientY:k}=g,{scrollHeight:v,clientHeight:m}=i.value,w=(k-u)*v/m;i.value.scrollTop=w},f=()=>{d=!1};return c.onMounted(()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",f)}),c.onUnmounted(()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",f)}),()=>{var g;return c.createVNode("div",{class:`${t}-scrollbar`,style:{position:"relative",overflow:"hidden"}},[c.createVNode("div",{ref:i,class:`${t}-scrollbar-wrap`,style:{marginRight:`-${l}px`},onScroll:h},[(g=e.default)==null?void 0:g.call(e)]),c.createVNode("div",{class:`${t}-scrollbar-track`},[c.createVNode("div",{class:`${t}-scrollbar-thumb`,style:{height:a.value,top:n.value},onMousedown:p},null)])])}}});function gz({options:o,getClasses:e,onSelect:t}){const i=se(),a=n=>{const r=n.target,l=n.currentTarget;if(r.tagName.toUpperCase()!=="LI")return;const h=l.getAttribute("data-type"),d=parseInt(l.getAttribute("data-index"),10),u=parseInt(r.getAttribute("data-index"),10),p=o[d].list[u].value;t(p,h)};return c.createVNode("div",{class:`${i}-time-columns`},[o.map((n,r)=>c.createVNode(rL,{key:n.type,class:`${i}-time-column`},{default:()=>[c.createVNode("ul",{class:`${i}-time-list`,"data-index":r,"data-type":n.type,onClick:a},[n.list.map((l,h)=>c.createVNode("li",{key:l.text,"data-index":h,class:[`${i}-time-item`,e(l.value,n.type)]},[l.text]))])]}))])}function kz(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!c.isVNode(o)}function vz(o){let e;const t=se();return c.createVNode(rL,null,kz(e=o.options.map(i=>c.createVNode("div",{key:i.text,class:[`${t}-time-option`,o.getClasses(i.value,"time")],onClick:()=>o.onSelect(i.value,"time")},[i.text])))?e:{default:()=>[e]})}function y9({length:o,step:e=1,options:t}){if(Array.isArray(t))return t.filter(a=>a>=0&&a<o);e<=0&&(e=1);const i=[];for(let a=0;a<o;a+=e)i.push(a);return i}function bz(o,e){let{showHour:t,showMinute:i,showSecond:a,use12h:n}=e;const r=e.format||"HH:mm:ss";t=typeof t=="boolean"?t:/[HhKk]/.test(r),i=typeof i=="boolean"?i:/m/.test(r),a=typeof a=="boolean"?a:/s/.test(r),n=typeof n=="boolean"?n:/a/i.test(r);const l=[],h=n&&o.getHours()>=12;return t&&l.push({type:"hour",list:y9({length:n?12:24,step:e.hourStep,options:e.hourOptions}).map(d=>{const u=d===0&&n?"12":p9(d),p=new Date(o);return p.setHours(h?d+12:d),{value:p,text:u}})}),i&&l.push({type:"minute",list:y9({length:60,step:e.minuteStep,options:e.minuteOptions}).map(d=>{const u=new Date(o);return u.setMinutes(d),{value:u,text:p9(d)}})}),a&&l.push({type:"second",list:y9({length:60,step:e.secondStep,options:e.secondOptions}).map(d=>{const u=new Date(o);return u.setSeconds(d),{value:u,text:p9(d)}})}),n&&l.push({type:"ampm",list:["AM","PM"].map((d,u)=>{const p=new Date(o);return p.setHours(p.getHours()%12+u*12),{text:d,value:p}})}),l}function f9(o=""){const e=o.split(":");if(e.length>=2){const t=parseInt(e[0],10),i=parseInt(e[1],10);return{hours:t,minutes:i}}return null}function wz({date:o,option:e,format:t,formatDate:i}){const a=[];if(typeof e=="function")return e()||[];const n=f9(e.start),r=f9(e.end),l=f9(e.step),h=e.format||t;if(n&&r&&l){const d=n.minutes+n.hours*60,u=r.minutes+r.hours*60,p=l.minutes+l.hours*60,y=Math.floor((u-d)/p);for(let f=0;f<=y;f++){const g=d+f*p,k=Math.floor(g/60),v=g%60,m=new Date(o);m.setHours(k,v,0),a.push({value:m,text:i(m,h)})}}return a}const lL=(o,e,t=0)=>{if(t<=0){requestAnimationFrame(()=>{o.scrollTop=e});return}const a=(e-o.scrollTop)/t*10;requestAnimationFrame(()=>{const n=o.scrollTop+a;if(n>=e){o.scrollTop=e;return}o.scrollTop=n,lL(o,e,t-10)})};function Mz(o){const e=Oe(o,{defaultValue:Xe(new Date),format:"HH:mm:ss",timeTitleFormat:"YYYY-MM-DD",disabledTime:()=>!1,scrollDuration:100}),t=se(),i=dC(),a=(k,v)=>rC(k,v,{locale:i.value.formatLocale}),n=c.ref(new Date);c.watchEffect(()=>{n.value=e9(e.value,e.defaultValue)});const r=k=>Array.isArray(k)?k.every(v=>e.disabledTime(new Date(v))):e.disabledTime(new Date(k)),l=k=>{const v=new Date(k);return r([v.getTime(),v.setMinutes(0,0,0),v.setMinutes(59,59,999)])},h=k=>{const v=new Date(k);return r([v.getTime(),v.setSeconds(0,0),v.setSeconds(59,999)])},d=k=>{const v=new Date(k),m=v.getHours()<12?0:12,M=m+11;return r([v.getTime(),v.setHours(m,0,0,0),v.setHours(M,59,59,999)])},u=(k,v)=>v==="hour"?l(k):v==="minute"?h(k):v==="ampm"?d(k):r(k),p=(k,v)=>{var m;if(!u(k,v)){const M=new Date(k);n.value=M,r(M)||(m=e["onUpdate:value"])==null||m.call(e,M,v)}},y=(k,v)=>u(k,v)?"disabled":k.getTime()===n.value.getTime()?"active":"",f=c.ref(),g=k=>{if(!f.value)return;const v=f.value.querySelectorAll(".active");for(let m=0;m<v.length;m++){const M=v[m],w=uC(M,f.value);if(w){const C=M.offsetTop;lL(w,C,k)}}};return c.onMounted(()=>g(0)),c.watch(n,()=>g(e.scrollDuration),{flush:"post"}),()=>{let k;return e.timePickerOptions?k=c.createVNode(vz,{onSelect:p,getClasses:y,options:wz({date:n.value,format:e.format,option:e.timePickerOptions,formatDate:a})},null):k=c.createVNode(gz,{options:bz(n.value,e),onSelect:p,getClasses:y},null),c.createVNode("div",{class:`${t}-time`,ref:f},[e.showTimeHeader&&c.createVNode("div",{class:`${t}-time-header`},[c.createVNode("button",{type:"button",class:`${t}-btn ${t}-btn-text ${t}-time-header-title`,onClick:e.onClickTitle},[a(n.value,e.timeTitleFormat)])]),c.createVNode("div",{class:`${t}-time-content`},[k])])}}const a9=Qe()(["value","defaultValue","format","timeTitleFormat","showTimeHeader","disabledTime","timePickerOptions","hourOptions","minuteOptions","secondOptions","hourStep","minuteStep","secondStep","showHour","showMinute","showSecond","use12h","scrollDuration","onClickTitle","onUpdate:value"]);var bn=Fe(Mz,a9);function Cz(o){const e=Oe(o,{defaultValue:Xe(new Date),disabledTime:()=>!1}),t=se(),i=c.ref([new Date(NaN),new Date(NaN)]);c.watchEffect(()=>{Oo(e.value)?i.value=e.value:i.value=[new Date(NaN),new Date(NaN)]});const a=(d,u)=>{var p;(p=e["onUpdate:value"])==null||p.call(e,i.value,d==="time"?"time-range":d,u)},n=(d,u)=>{i.value[0]=d,i.value[1].getTime()>=d.getTime()||(i.value[1]=d),a(u,0)},r=(d,u)=>{i.value[1]=d,i.value[0].getTime()<=d.getTime()||(i.value[0]=d),a(u,1)},l=d=>e.disabledTime(d,0),h=d=>d.getTime()<i.value[0].getTime()||e.disabledTime(d,1);return()=>{const d=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return c.createVNode("div",{class:`${t}-time-range`},[c.createVNode(bn,be(J({},e),{"onUpdate:value":n,value:i.value[0],defaultValue:d[0],disabledTime:l}),null),c.createVNode(bn,be(J({},e),{"onUpdate:value":r,value:i.value[1],defaultValue:d[1],disabledTime:h}),null)])}}const gC=a9;var kC=Fe(Cz,gC);function hL(o){const e=c.ref(!1),t=()=>{var n;e.value=!1,(n=o.onShowTimePanelChange)==null||n.call(o,!1)},i=()=>{var n;e.value=!0,(n=o.onShowTimePanelChange)==null||n.call(o,!0)};return{timeVisible:c.computed(()=>typeof o.showTimePanel=="boolean"?o.showTimePanel:e.value),openTimePanel:i,closeTimePanel:t}}function xz(o){const e=Oe(o,{disabledTime:()=>!1,defaultValue:Xe(new Date)}),t=c.ref(e.value);c.watchEffect(()=>{t.value=e.value});const{openTimePanel:i,closeTimePanel:a,timeVisible:n}=hL(e),r=(l,h)=>{var d;h==="date"&&i();let u=B7(l,e9(e.value,e.defaultValue));if(e.disabledTime(new Date(u))&&(u=B7(l,e.defaultValue),e.disabledTime(new Date(u)))){t.value=u;return}(d=e["onUpdate:value"])==null||d.call(e,u,h)};return()=>{const l=se(),h=be(J({},Pe(e,t9)),{multiple:!1,type:"date",value:t.value,"onUpdate:value":r}),d=be(J({},Pe(e,a9)),{showTimeHeader:!0,value:t.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:a});return c.createVNode("div",{class:`${l}-date-time`},[c.createVNode(i9,h,null),n.value&&c.createVNode(bn,d,null)])}}const cL=Qe()(["showTimePanel","onShowTimePanelChange"]),Lz=[...cL,...t9,...a9];var dL=Fe(xz,Lz);function Ez(o){const e=Oe(o,{defaultValue:Xe(new Date),disabledTime:()=>!1}),t=c.ref(e.value);c.watchEffect(()=>{t.value=e.value});const{openTimePanel:i,closeTimePanel:a,timeVisible:n}=hL(e),r=(l,h)=>{var d;h==="date"&&i();const u=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];let p=l.map((y,f)=>{const g=Oo(e.value)?e.value[f]:u[f];return B7(y,g)});if(p[1].getTime()<p[0].getTime()&&(p=[p[0],p[0]]),p.some(e.disabledTime)&&(p=l.map((y,f)=>B7(y,u[f])),p.some(e.disabledTime))){t.value=p;return}(d=e["onUpdate:value"])==null||d.call(e,p,h)};return()=>{const l=se(),h=be(J({},Pe(e,fC)),{type:"date",value:t.value,"onUpdate:value":r}),d=be(J({},Pe(e,gC)),{showTimeHeader:!0,value:t.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:a});return c.createVNode("div",{class:`${l}-date-time-range`},[c.createVNode(mC,h,null),n.value&&c.createVNode(kC,d,null)])}}const Sz=[...cL,...gC,...fC];var uL=Fe(Ez,Sz);const Iz=Qe()(["range","open","appendToBody","clearable","confirm","disabled","editable","multiple","partialUpdate","showHour","showMinute","showSecond","showTimeHeader","showTimePanel","showWeekNumber","use12h"]),KC={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};function pL(o,{slots:e}){const t=o.type||"date",i=o.format||KC[t]||KC.date,a=be(J({},BD(o,Iz)),{type:t,format:i});return c.createVNode(ZC,Pe(a,ZC.props),J({content:n=>{if(a.range){const r=t==="time"?kC:t==="datetime"?uL:mC;return c.h(r,Pe(J(J({},a),n),r.props))}else{const r=t==="time"?bn:t==="datetime"?dL:i9;return c.h(r,Pe(J(J({},a),n),r.props))}},"icon-calendar":()=>t==="time"?c.createVNode(ez,null,null):c.createVNode(sL,null,null)},e))}const Tz={locale:tL,install:o=>{o.component("DatePicker",pL)}};var X9=Object.assign(pL,Tz,{Calendar:i9,CalendarRange:mC,TimePanel:bn,TimeRange:kC,DateTime:dL,DateTimeRange:uL}),V=[{year:2e3,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2001,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2002,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2003,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2004,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2005,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2006,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2007,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2008,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2009,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2010,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2011,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2012,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2013,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2014,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2015,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2016,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2017,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2018,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2019,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2020,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2021,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2022,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2023,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2024,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2025,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2026,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2027,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2028,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2029,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2030,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2031,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2032,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2033,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2034,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2035,days:[30,32,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2036,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2037,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2038,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2039,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2040,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2041,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2042,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2043,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2044,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2045,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2046,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2047,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2048,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2049,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2050,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2051,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2052,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2053,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2054,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2055,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2056,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2057,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2058,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2059,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2060,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2061,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2062,days:[30,32,31,32,31,31,29,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2063,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2064,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2065,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2066,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2067,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2068,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2069,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2070,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2071,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2072,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2073,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2074,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2075,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2076,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2077,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2078,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2079,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2080,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2081,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2082,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2083,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2084,days:[31,31,32,31,31,30,30,30,29,30,30,30],totalDays:0,daysTillNow:0},{year:2085,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2086,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2087,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2088,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2089,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2090,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2091,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2092,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2093,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2094,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2095,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2096,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2097,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2098,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2099,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2100,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0}],JC=0;V.forEach(o=>{o.totalDays=o.days.reduce((e,t)=>e+t,0),JC+=o.totalDays,o.daysTillNow=JC});var qn=new Date(1943,3,14).getTime(),yL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],fL=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],mL=["आइतबार","सोमबार","मंगलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],gL=["आइत","सोम","मंगल","बुध","बिहि","शुक्र","शनि"],kL=["Baisakh","Jestha","Asar","Shrawan","Bhadra","Aswin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],vL=["Bai","Jes","Asa","Shr","Bhd","Asw","Kar","Man","Pou","Mag","Fal","Cha"],bL=["बैशाख","जेठ","असार","श्रावण","भाद्र","आश्विन","कार्तिक","मंसिर","पौष","माघ","फाल्गुण","चैत्र"],wL=["बै","जे","अ","श्रा","भा","आ","का","मं","पौ","मा","फा","चै"],Dz=["०","१","२","३","४","५","६","७","८","९"];function o9(o){return o<10?`0${o}`:`${o}`}function en(o){let e="";for(let t=0;t<o.length;t+=1)e+=Dz[o.charCodeAt(t)-48];return e}function zz(o){return e=>o<=2?String(e.getYear()).substring(2):o===3?String(e.getYear()).substring(1):String(e.getYear())}function Rz(o){return e=>o<=2?en(String(e.getYear()).substring(2)):en(o===3?String(e.getYear()).substring(1):String(e.getYear()))}function Hz(o){return e=>o===1?String(e.getMonth()+1):o===2?o9(e.getMonth()+1):o===3?vL[e.getMonth()]:kL[e.getMonth()]}function Az(o){return e=>o===1?en(String(e.getMonth()+1)):o===2?en(o9(e.getMonth()+1)):o===3?wL[e.getMonth()]:bL[e.getMonth()]}function Vz(o){return e=>o===1?String(e.getDate()):o===2?o9(e.getDate()):o===3?fL[e.getDay()]:yL[e.getDay()]}function Pz(o){return e=>o===1?en(String(e.getDate())):o===2?en(o9(e.getDate())):o===3?gL[e.getDay()]:mL[e.getDay()]}function QC(o){return()=>o}var K9={Y:zz,y:Rz,M:Hz,m:Az,D:Vz,d:Pz};function qz(o){return o in K9}function Bz(o){let e=!1,t="",i="",a=0,n=[];for(let r=0;r<o.length;r+=1){let l=o[r];if(l===i){a+=1;continue}if(i!==""&&(n.push(K9[i](a)),i="",a=0),l==='"'){e=!e;continue}!qz(l)||e?t+=l:(t&&(n.push(QC(t)),t=""),i=l,a=1)}return t?n.push(QC(t)):i&&n.push(K9[i](a)),n}function Fz(o,e){return Bz(e).map(t=>t(o)).join("")}function ex(o){let e=o.split(/[-./]/,3),[t,i=1,a=1]=e.map(r=>{let l=parseInt(r,10);if(Number.isNaN(l))throw new Error("Invalid date");return l});if(t<V[0].year||t>=V[0].year+V.length)throw new Error("Nepal year out of range");if(i<1||i>12)throw new Error("Invalid nepali month must be between 1 - 12");let n=V[t-V[0].year].days[i-1];if(a<1||a>n)throw new Error(`Invalid nepali date must be between 1 - ${n} in ${t} ${i}`);return[t,i-1,a]}var me=class B{constructor(...e){E(this,"timestamp");E(this,"year");E(this,"month");E(this,"day");if(e.length===0)this.setEnglishDate(new Date);else if(e.length===1){let t=e[0];if(typeof t=="object")if(t instanceof Date)this.setEnglishDate(t);else if(t instanceof B)this.timestamp=t.timestamp,this.year=t.year,this.month=t.month,this.day=t.day;else throw new Error("Invalid date argument");else if(typeof t=="string")this.set(...ex(t));else if(typeof t=="number")this.setEnglishDate(new Date(t));else throw new Error("Invalid date argument")}else if(e.length===3)this.set(e[0],e[1],e[2]);else throw new Error("Invalid argument syntax")}setEnglishDate(e){this.timestamp=e;let t=Math.floor((this.timestamp.getTime()-qn)/864e5),i=Math.floor(t/366);for(;t>=V[i].daysTillNow;)i+=1;let a=V[i-1]?V[i-1].daysTillNow:0;t-=a;let n=V[i];for(this.year=n.year,this.month=0;t>=n.days[this.month];)this.month+=1,t-=n.days[this.month-1];this.day=t+1}getEnglishDate(){return this.timestamp}parse(e){this.set(...ex(e))}getYear(){return this.year}getMonth(){return this.month}getDate(){return this.day}getDay(){return this.timestamp.getDay()}getHours(){return this.timestamp.getHours()}getMinutes(){return this.timestamp.getMinutes()}getSeconds(){return this.timestamp.getSeconds()}getMilliseconds(){return this.timestamp.getMilliseconds()}getTime(){return this.timestamp.getTime()}setYear(e){this.set(e,this.month,this.day)}setMonth(e){this.set(this.year,e,this.day)}setDate(e){this.set(this.year,this.month,e)}set(e,t,i){let a=e+Math.floor(t/12)-V[0].year,n=V[a],r=n.daysTillNow-n.totalDays,l=t%12,h=l<0?12+l:l;for(let d=0;d<h;d+=1)r+=n.days[d];r+=i-1,this.setEnglishDate(new Date(qn+r*864e5))}format(e){return Fz(this,e)}toString(){return`${this.year}/${this.month+1}/${this.day}`}addDays(e){let t=new Date(this.timestamp.getTime()+e*864e5);return new B(t)}addMonths(e){let t=this.year,i=this.month+e;t+=Math.floor(i/12),i=i%12,i<0&&(i+=12,t-=1);let a=t-V[0].year;if(a<0||a>=V.length)throw new Error("Resulting date is out of supported range");let n=V[a].days[i],r=Math.min(this.day,n);return new B(t,i,r)}addYears(e){let t=this.year+e;if(t<V[0].year||t>=V[0].year+V.length)throw new Error("Resulting date is out of supported range");let i=t-V[0].year;if(this.month===11&&this.day===29){let a=V[i].days[11];if(a<29)return new B(t,11,a)}return new B(t,this.month,this.day)}static minimum(){return new Date(qn)}static maximum(){return new Date(qn+V[V.length-1].daysTillNow*864e5)}daysInMonth(){let e=this.year-V[0].year;return V[e].days[this.month]}isLeapYear(){let e=this.year-V[0].year;return V[e].totalDays===366}getWeeksInMonth(){let e=new B(this.year,this.month,1).getDay(),t=this.daysInMonth();return Math.ceil((e+t)/7)}diff(e,t){switch(t){case"day":return Math.floor((this.timestamp.getTime()-e.timestamp.getTime())/864e5);case"month":let i=this.year-e.year,a=this.month-e.month;return i*12+a;case"year":return this.year-e.year;default:throw new Error("Invalid unit for diff calculation")}}startOfDay(){let e=new Date(this.timestamp);return e.setHours(0,0,0,0),new B(e)}endOfDay(){let e=new Date(this.timestamp);return e.setHours(23,59,59,999),new B(e)}startOfWeek(e=0){if(e<0||e>6||!Number.isInteger(e))throw new Error("startOfWeek must be an integer between 0 and 6");let t=(this.getDay()-e+7)%7;return this.clone().startOfDay().addDays(-t)}endOfWeek(e=0){return this.startOfWeek(e).addDays(6).endOfDay()}startOfMonth(){return new B(this.year,this.month,1)}endOfMonth(){let e=this.daysInMonth();return new B(this.year,this.month,e).endOfDay()}startOfYear(){return new B(this.year,0,1)}endOfYear(){let e=this.year-V[0].year,t=V[e].days[11];return new B(this.year,11,t).endOfDay()}static getMonthName(e,t=!1,i=!1){if(e<0||e>11)throw new Error("Invalid month index, must be between 0-11");let a="";return i?a=t?wL[e]:bL[e]:a=t?vL[e]:kL[e],a}static getDayName(e,t=!1,i=!1){if(e<0||e>6)throw new Error("Invalid day index, must be between 0-6");let a="";return i?a=t?gL[e]:mL[e]:a=t?fL[e]:yL[e],a}static isValid(e,t,i){try{if(e<V[0].year||e>=V[0].year+V.length||t<0||t>11)return!1;let a=e-V[0].year,n=V[a].days[t];return!(i<1||i>n)}catch{return!1}}isValid(){return B.isValid(this.year,this.month,this.day)}static getCalendarDays(e,t){if(!B.isValid(e,t,1))throw new Error("Invalid year or month");let i={year:0,month:0,days:[]},a={year:0,month:0,days:[]},n={year:0,month:0,days:[]},r=e-V[0].year,l=new B(e,t,1).getDay(),h=V[r].days[t];a.year=e,a.month=t;let d=t-1,u=e,p=t+1,y=e;if(d<0&&(d=11,u--),u>V[0].year&&(i.year=u,i.month=d),u>=V[0].year&&l>0){let g=u-V[0].year,k=V[g].days[d];for(let v=0;v<l;v++)i.days.push(k-l+v+1)}for(let g=1;g<=h;g++)a.days.push(g);p>11&&(p=0,y++),y<V[0].year+V.length&&(n.year=y,n.month=p);let f=42-l-a.days.length;if(y<V[0].year+V.length&&f>0)for(let g=1;g<=f;g++)n.days.push(g);return{prevRemainingDays:l,prevMonth:i,currentMonth:a,nextMonth:n,remainingDays:f}}clone(){return new B(this)}isAfter(e){return this.timestamp.getTime()>e.timestamp.getTime()}isBefore(e){return this.timestamp.getTime()<e.timestamp.getTime()}isEqual(e){return this.year===e.year&&this.month===e.month&&this.day===e.day}isSame(e,t){switch(t){case"year":return this.year===e.year;case"month":return this.year===e.year&&this.month===e.month;case"day":return this.isEqual(e);default:throw new Error("Invalid unit for comparison")}}static getQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??new B().getYear(),a=(e-1)*3,n=new B(i,a,1),r=new B(i,a+2,1).endOfMonth();return{start:n,end:r}}getCurrentQuarter(){return Math.floor(this.month/3)+1}static getQuarters(e){let t=e??new B().getYear();return{Q1:B.getQuarter(1,t),Q2:B.getQuarter(2,t),Q3:B.getQuarter(3,t),Q4:B.getQuarter(4,t)}}static getCurrentFiscalYear(){let e=new B,t=e.getYear();return e.getMonth()<3?t-1:t}static getFiscalYearQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??B.getCurrentFiscalYear(),a=i,n=(e-1)*3+3;e===4&&(a=i+1,n=0),n>11&&(a++,n-=12);let r=n+2,l=a;r>11&&(l++,r-=12);let h=new B(a,n,1),d=new B(l,r,1).endOfMonth();return{start:h,end:d}}getCurrentFiscalYearQuarter(){let e=this.getMonth();return e>=3&&e<=5?1:e>=6&&e<=8?2:e>=9&&e<=11?3:4}getCurrentFiscalYearQuarterDates(){let e=this.getCurrentFiscalYearQuarter(),t=B.getCurrentFiscalYear();return B.getFiscalYearQuarter(e,t)}static getFiscalYearQuarters(e){let t=e??B.getCurrentFiscalYear();return{Q1:B.getFiscalYearQuarter(1,t),Q2:B.getFiscalYearQuarter(2,t),Q3:B.getFiscalYearQuarter(3,t),Q4:B.getFiscalYearQuarter(4,t)}}},je=o=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("Invalid date format. Expected format: YYYY-MM-DD");let e=new Date(o);if(Number.isNaN(e.getTime()))throw new Error(`Invalid date input '${o}'`);try{return new me(e).format("YYYY-MM-DD")}catch(t){throw console.error("Error During Date Conversion : ",t),new Error("Failed to convert AD to BS")}};function he(o){try{if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("Invalid date format. Expected format: YYYY-MM-DD");let e=o?new me(o):new me,t=a=>a<10?`0${a}`:`${a}`,i=e.getEnglishDate();return`${i.getFullYear()}-${t(i.getMonth()+1)}-${t(i.getDate())}`}catch(e){throw console.error("Error During Date Conversion : ",e),new Error("Failed to convert BS to AD")}}var Oz=Object.defineProperty,jz=(o,e,t)=>e in o?Oz(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Bn=(o,e,t)=>jz(o,typeof e!="symbol"?e+"":e,t),H=[{year:2e3,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2001,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2002,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2003,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2004,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2005,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2006,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2007,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2008,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2009,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2010,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2011,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2012,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2013,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2014,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2015,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2016,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2017,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2018,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2019,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2020,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2021,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2022,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2023,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2024,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2025,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2026,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2027,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2028,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2029,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2030,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2031,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2032,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2033,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2034,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2035,days:[30,32,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2036,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2037,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2038,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2039,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2040,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2041,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2042,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2043,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2044,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2045,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2046,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2047,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2048,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2049,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2050,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2051,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2052,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2053,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2054,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2055,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2056,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2057,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2058,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2059,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2060,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2061,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2062,days:[30,32,31,32,31,31,29,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2063,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2064,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2065,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2066,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2067,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2068,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2069,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2070,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2071,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2072,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2073,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2074,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2075,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2076,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2077,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2078,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2079,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2080,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2081,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2082,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2083,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2084,days:[31,31,32,31,31,30,30,30,29,30,30,30],totalDays:0,daysTillNow:0},{year:2085,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2086,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2087,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2088,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2089,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2090,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2091,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2092,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2093,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2094,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2095,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2096,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2097,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2098,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2099,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2100,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0}],tx=0;H.forEach(o=>{o.totalDays=o.days.reduce((e,t)=>e+t,0),tx+=o.totalDays,o.daysTillNow=tx});var Fn=new Date(1943,3,14).getTime(),ML=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],F7=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],CL=["आइतबार","सोमबार","मंगलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],xL=["आइत","सोम","मंगल","बुध","बिहि","शुक्र","शनि"],vC=["Baisakh","Jestha","Asar","Shrawan","Bhadra","Aswin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],LL=["Bai","Jes","Asa","Shr","Bhd","Asw","Kar","Man","Pou","Mag","Fal","Cha"],EL=["बैशाख","जेठ","असार","श्रावण","भाद्र","आश्विन","कार्तिक","मंसिर","पौष","माघ","फाल्गुण","चैत्र"],SL=["बै","जे","अ","श्रा","भा","आ","का","मं","पौ","मा","फा","चै"],Nz=["०","१","२","३","४","५","६","७","८","९"];function n9(o){return o<10?`0${o}`:`${o}`}function tn(o){let e="";for(let t=0;t<o.length;t+=1)e+=Nz[o.charCodeAt(t)-48];return e}function _z(o){return e=>o<=2?String(e.getYear()).substring(2):o===3?String(e.getYear()).substring(1):String(e.getYear())}function Wz(o){return e=>o<=2?tn(String(e.getYear()).substring(2)):tn(o===3?String(e.getYear()).substring(1):String(e.getYear()))}function Uz(o){return e=>o===1?String(e.getMonth()+1):o===2?n9(e.getMonth()+1):o===3?LL[e.getMonth()]:vC[e.getMonth()]}function Gz(o){return e=>o===1?tn(String(e.getMonth()+1)):o===2?tn(n9(e.getMonth()+1)):o===3?SL[e.getMonth()]:EL[e.getMonth()]}function $z(o){return e=>o===1?String(e.getDate()):o===2?n9(e.getDate()):o===3?F7[e.getDay()]:ML[e.getDay()]}function Yz(o){return e=>o===1?tn(String(e.getDate())):o===2?tn(n9(e.getDate())):o===3?xL[e.getDay()]:CL[e.getDay()]}function ix(o){return()=>o}var J9={Y:_z,y:Wz,M:Uz,m:Gz,D:$z,d:Yz};function Zz(o){return o in J9}function Xz(o){let e=!1,t="",i="",a=0,n=[];for(let r=0;r<o.length;r+=1){let l=o[r];if(l===i){a+=1;continue}if(i!==""&&(n.push(J9[i](a)),i="",a=0),l==='"'){e=!e;continue}!Zz(l)||e?t+=l:(t&&(n.push(ix(t)),t=""),i=l,a=1)}return t?n.push(ix(t)):i&&n.push(J9[i](a)),n}function Kz(o,e){return Xz(e).map(t=>t(o)).join("")}function ax(o){let e=o.split(/[-./]/,3),[t,i=1,a=1]=e.map(r=>{let l=parseInt(r,10);if(Number.isNaN(l))throw new Error("Invalid date");return l});if(t<H[0].year||t>=H[0].year+H.length)throw new Error("Nepal year out of range");if(i<1||i>12)throw new Error("Invalid nepali month must be between 1 - 12");let n=H[t-H[0].year].days[i-1];if(a<1||a>n)throw new Error(`Invalid nepali date must be between 1 - ${n} in ${t} ${i}`);return[t,i-1,a]}var $=class F{constructor(...e){if(Bn(this,"timestamp"),Bn(this,"year"),Bn(this,"month"),Bn(this,"day"),e.length===0)this.setEnglishDate(new Date);else if(e.length===1){let t=e[0];if(typeof t=="object")if(t instanceof Date)this.setEnglishDate(t);else if(t instanceof F)this.timestamp=t.timestamp,this.year=t.year,this.month=t.month,this.day=t.day;else throw new Error("Invalid date argument");else if(typeof t=="string")this.set(...ax(t));else if(typeof t=="number")this.setEnglishDate(new Date(t));else throw new Error("Invalid date argument")}else if(e.length===3)this.set(e[0],e[1],e[2]);else throw new Error("Invalid argument syntax")}setEnglishDate(e){this.timestamp=e;let t=Math.floor((this.timestamp.getTime()-Fn)/864e5),i=Math.floor(t/366);for(;t>=H[i].daysTillNow;)i+=1;let a=H[i-1]?H[i-1].daysTillNow:0;t-=a;let n=H[i];for(this.year=n.year,this.month=0;t>=n.days[this.month];)this.month+=1,t-=n.days[this.month-1];this.day=t+1}getEnglishDate(){return this.timestamp}parse(e){this.set(...ax(e))}getYear(){return this.year}getMonth(){return this.month}getDate(){return this.day}getDay(){return this.timestamp.getDay()}getHours(){return this.timestamp.getHours()}getMinutes(){return this.timestamp.getMinutes()}getSeconds(){return this.timestamp.getSeconds()}getMilliseconds(){return this.timestamp.getMilliseconds()}getTime(){return this.timestamp.getTime()}setYear(e){this.set(e,this.month,this.day)}setMonth(e){this.set(this.year,e,this.day)}setDate(e){this.set(this.year,this.month,e)}set(e,t,i){let a=e+Math.floor(t/12)-H[0].year,n=H[a],r=n.daysTillNow-n.totalDays,l=t%12,h=l<0?12+l:l;for(let d=0;d<h;d+=1)r+=n.days[d];r+=i-1,this.setEnglishDate(new Date(Fn+r*864e5))}format(e){return Kz(this,e)}toString(){return`${this.year}/${this.month+1}/${this.day}`}addDays(e){let t=new Date(this.timestamp.getTime()+e*864e5);return new F(t)}addMonths(e){let t=this.year,i=this.month+e;t+=Math.floor(i/12),i=i%12,i<0&&(i+=12,t-=1);let a=t-H[0].year;if(a<0||a>=H.length)throw new Error("Resulting date is out of supported range");let n=H[a].days[i],r=Math.min(this.day,n);return new F(t,i,r)}addYears(e){let t=this.year+e;if(t<H[0].year||t>=H[0].year+H.length)throw new Error("Resulting date is out of supported range");let i=t-H[0].year;if(this.month===11&&this.day===29){let a=H[i].days[11];if(a<29)return new F(t,11,a)}return new F(t,this.month,this.day)}static minimum(){return new Date(Fn)}static maximum(){return new Date(Fn+H[H.length-1].daysTillNow*864e5)}daysInMonth(){let e=this.year-H[0].year;return H[e].days[this.month]}isLeapYear(){let e=this.year-H[0].year;return H[e].totalDays===366}getWeeksInMonth(){let e=new F(this.year,this.month,1).getDay(),t=this.daysInMonth();return Math.ceil((e+t)/7)}diff(e,t){switch(t){case"day":return Math.floor((this.timestamp.getTime()-e.timestamp.getTime())/864e5);case"month":let i=this.year-e.year,a=this.month-e.month;return i*12+a;case"year":return this.year-e.year;default:throw new Error("Invalid unit for diff calculation")}}startOfDay(){let e=new Date(this.timestamp);return e.setHours(0,0,0,0),new F(e)}endOfDay(){let e=new Date(this.timestamp);return e.setHours(23,59,59,999),new F(e)}startOfWeek(e=0){if(e<0||e>6||!Number.isInteger(e))throw new Error("startOfWeek must be an integer between 0 and 6");let t=(this.getDay()-e+7)%7;return this.clone().startOfDay().addDays(-t)}endOfWeek(e=0){return this.startOfWeek(e).addDays(6).endOfDay()}startOfMonth(){return new F(this.year,this.month,1)}endOfMonth(){let e=this.daysInMonth();return new F(this.year,this.month,e).endOfDay()}startOfYear(){return new F(this.year,0,1)}endOfYear(){let e=this.year-H[0].year,t=H[e].days[11];return new F(this.year,11,t).endOfDay()}static getMonthName(e,t=!1,i=!1){if(e<0||e>11)throw new Error("Invalid month index, must be between 0-11");let a="";return i?a=t?SL[e]:EL[e]:a=t?LL[e]:vC[e],a}static getDayName(e,t=!1,i=!1){if(e<0||e>6)throw new Error("Invalid day index, must be between 0-6");let a="";return i?a=t?xL[e]:CL[e]:a=t?F7[e]:ML[e],a}static isValid(e,t,i){try{if(e<H[0].year||e>=H[0].year+H.length||t<0||t>11)return!1;let a=e-H[0].year,n=H[a].days[t];return!(i<1||i>n)}catch{return!1}}isValid(){return F.isValid(this.year,this.month,this.day)}static getCalendarDays(e,t){if(!F.isValid(e,t,1))throw new Error("Invalid year or month");let i={year:0,month:0,days:[]},a={year:0,month:0,days:[]},n={year:0,month:0,days:[]},r=e-H[0].year,l=new F(e,t,1).getDay(),h=H[r].days[t];a.year=e,a.month=t;let d=t-1,u=e,p=t+1,y=e;if(d<0&&(d=11,u--),u>H[0].year&&(i.year=u,i.month=d),u>=H[0].year&&l>0){let g=u-H[0].year,k=H[g].days[d];for(let v=0;v<l;v++)i.days.push(k-l+v+1)}for(let g=1;g<=h;g++)a.days.push(g);p>11&&(p=0,y++),y<H[0].year+H.length&&(n.year=y,n.month=p);let f=42-l-a.days.length;if(y<H[0].year+H.length&&f>0)for(let g=1;g<=f;g++)n.days.push(g);return{prevRemainingDays:l,prevMonth:i,currentMonth:a,nextMonth:n,remainingDays:f}}clone(){return new F(this)}isAfter(e){return this.timestamp.getTime()>e.timestamp.getTime()}isBefore(e){return this.timestamp.getTime()<e.timestamp.getTime()}isEqual(e){return this.year===e.year&&this.month===e.month&&this.day===e.day}isSame(e,t){switch(t){case"year":return this.year===e.year;case"month":return this.year===e.year&&this.month===e.month;case"day":return this.isEqual(e);default:throw new Error("Invalid unit for comparison")}}static getQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??new F().getYear(),a=(e-1)*3,n=new F(i,a,1),r=new F(i,a+2,1).endOfMonth();return{start:n,end:r}}getCurrentQuarter(){return Math.floor(this.month/3)+1}static getQuarters(e){let t=e??new F().getYear();return{Q1:F.getQuarter(1,t),Q2:F.getQuarter(2,t),Q3:F.getQuarter(3,t),Q4:F.getQuarter(4,t)}}static getCurrentFiscalYear(){let e=new F,t=e.getYear();return e.getMonth()<3?t-1:t}static getFiscalYearQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??F.getCurrentFiscalYear(),a=i,n=(e-1)*3+3;e===4&&(a=i+1,n=0),n>11&&(a++,n-=12);let r=n+2,l=a;r>11&&(l++,r-=12);let h=new F(a,n,1),d=new F(l,r,1).endOfMonth();return{start:h,end:d}}getCurrentFiscalYearQuarter(){let e=this.getMonth();return e>=3&&e<=5?1:e>=6&&e<=8?2:e>=9&&e<=11?3:4}getCurrentFiscalYearQuarterDates(){let e=this.getCurrentFiscalYearQuarter(),t=F.getCurrentFiscalYear();return F.getFiscalYearQuarter(e,t)}static getFiscalYearQuarters(e){let t=e??F.getCurrentFiscalYear();return{Q1:F.getFiscalYearQuarter(1,t),Q2:F.getFiscalYearQuarter(2,t),Q3:F.getFiscalYearQuarter(3,t),Q4:F.getFiscalYearQuarter(4,t)}}};const Jz=["placeholder","id"],Qz={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},eR=["id"],tR={class:"calendar__body"},iR={class:"calendar__head"},aR={class:"calendar__header_label"},oR={key:0},nR={key:2},sR={key:4},rR={class:"calendar__container"},lR={key:0},hR={class:"calendar__weeks"},cR={class:"calendar__days"},dR=["title","onClick"],uR=["title","onClick"],pR=["title","onClick"],yR=["onClick"],fR=["onClick"],On=10,mR=c.defineComponent({__name:"NepaliDatePicker",props:{modelValue:{type:String,default:""},yearSelect:{type:Boolean,default:!0},monthSelect:{type:Boolean,default:!0},class:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:modelValue","onSelect"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue?new $(t.modelValue):new $),n=c.ref(!1),r=c.ref(t.modelValue),l=c.ref(null),h=c.ref(null),d=c.ref(null),u=c.ref(null),p=c.ref(t.modelValue?new $(t.modelValue).getYear():new $().getYear()),y=c.ref(t.modelValue?new $(t.modelValue).getMonth():new $().getMonth()),f=c.ref(!1),g=c.ref(!1),k=c.ref(H[0].year),v=c.ref(H.length+H[0].year-1),m=c.ref(0);c.watch(()=>t.modelValue,()=>{r.value=t.modelValue,p.value=t.modelValue?new $(t.modelValue).getYear():new $().getYear(),y.value=t.modelValue?new $(t.modelValue).getMonth():new $().getMonth(),a.value=t.modelValue?new $(t.modelValue):new $});const M=c.computed(()=>a.value.year==k.value&&a.value.month==0?[]:(H.forEach(D=>{let x=a.value.year,z=a.value.month-1;w.value[0].month==0&&(x=x-1,z=11),D.year===x&&D.days.forEach((ee,Ee)=>{Ee===z&&(h.value=ee)})}),Array(h.value).fill(null).map((D,x)=>new $(a.value.year,a.value.month-1,x+1)).slice(-(I.value?I.value:0)))),w=c.computed(()=>(H.forEach(D=>{D.year===a.value.year&&D.days.forEach((x,z)=>{z===a.value.month&&(l.value=x)})}),Array(l.value).fill(null).map((D,x)=>new $(a.value.year,a.value.month,x+1)))),C=c.computed(()=>a.value.year==v.value&&a.value.month==11?[]:(H.forEach(D=>{let x=a.value.year,z=a.value.month+1;w.value[0].month==11&&(x=x+1,z=0),D.year===x&&D.days.forEach((ee,Ee)=>{Ee===z&&(d.value=ee)})}),Array(d.value).fill(null).map((D,x)=>new $(a.value.year,a.value.month+1,x+1)).slice(0,L.value))),I=c.computed(()=>{const D=new $(p.value,y.value,1);return F7.forEach((x,z)=>{D.format("DDD")==="Su"?u.value=7:D.format("DDD")===x&&(u.value=z)}),u.value}),L=c.computed(()=>42-w.value.length-(I.value?I.value:0)),S=()=>{if(g.value=!g.value,f.value=!1,g.value){const D=a.value.year,x=H.findIndex(z=>z.year===D);m.value=Math.floor(x/On)}},T=(D,x)=>{D?n.value=!0:x?n.value=!1:n.value=!n.value,n.value?document.addEventListener("click",Rn):(document.removeEventListener("click",Rn),VC())},R=()=>{f.value=!f.value,g.value=!1},O=()=>{let D=a.value.month+1,x=a.value.year;D>11&&(x++,D=0),x+1<k.value||x>v.value||(Dn(D,x),a.value=new $(x,D,1))},Z=()=>{if(g.value)m.value<cn.value-1&&m.value++;else{let D=a.value.month,x=a.value.year+1;x<k.value||x>v.value||(Dn(D,x),a.value=new $(x,D,1))}},P=()=>{let D=a.value.month-1,x=a.value.year;D<0&&(x--,D=11),x<k.value||x>v.value||(Dn(D,x),a.value=new $(x,D,1))},oe=()=>{if(g.value)m.value>0&&m.value--;else{let D=a.value.month,x=a.value.year-1;x<k.value||x>v.value||(Dn(D,x),a.value=new $(x,D,1))}},de=D=>t.modelValue?new $(t.modelValue).getTime()===D.getTime():!1,U=D=>a.value.month==D,ue=D=>a.value.year==D,Re=D=>{const x=new $;return D.day===x.day&&D.year===x.year&&D.month===x.month},Me=c.computed(()=>{const D=H.map(z=>z.year),x=m.value*On;return D.slice(x,x+On)}),cn=c.computed(()=>Math.ceil(H.length/On)),dn=D=>{let x="";const z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ee=z.length;let Ee=0;for(;Ee<D;)x+=z.charAt(Math.floor(Math.random()*ee)),Ee+=1;return x},un=dn(3)+dn(3)+dn(3),Dn=(D,x)=>{y.value=D,p.value=x},EE=D=>{y.value=D,a.value.setMonth(D),f.value=!1},SE=D=>{p.value=D,a.value.setYear(D),g.value=!1,t.monthSelect&&(f.value=!0)},zn=D=>{a.value=D,r.value=a.value.format("YYYY-MM-DD"),i("update:modelValue",r.value),i("onSelect",r.value),T()},IE=()=>{/^\d{4}-\d{2}-\d{2}$/.test(r.value)||(r.value=t.modelValue);try{const D=new $(r.value);zn(D)}catch{r.value=t.modelValue}},Rn=D=>{const x=document.getElementById("nepali-calendar-"+un),z=document.getElementById("nepali-date-input-"+un);x&&!x.contains(D.target)&&z&&!z.contains(D.target)&&(n.value=!1,VC(),document.removeEventListener("click",Rn))},VC=()=>{f.value=!1,g.value=!1,a.value=t.modelValue?new $(t.modelValue):new $},TE=()=>{f.value=!1,g.value=!1,a.value=new $,i("update:modelValue",""),i("onSelect",""),T(!1,!0)};return c.onUnmounted(()=>{document.removeEventListener("click",Rn)}),(D,x)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["nepali-datepicker",t.class]),key:un},[c.createElementVNode("div",{class:c.normalizeClass(["calendar-input-div",o.modelValue?"calendar-input-contain-value":""])},[c.withDirectives(c.createElementVNode("input",{type:"text",class:"calendar-input",onClick:x[0]||(x[0]=z=>T(!0)),"onUpdate:modelValue":x[1]||(x[1]=z=>r.value=z),placeholder:o.placeholder,"aria-haspopup":"true",id:"nepali-date-input-"+un,onKeyup:x[2]||(x[2]=c.withKeys(z=>IE(),["enter"]))},null,40,Jz),[[c.vModelText,r.value]]),c.createElementVNode("div",{class:"calendar-input-icon calender-icon",onClick:x[3]||(x[3]=c.withModifiers(z=>T(!0),["stop"]))},[n.value&&o.modelValue?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("svg",Qz,x[11]||(x[11]=[c.createElementVNode("path",{d:"M940.218 107.055H730.764v-60.51H665.6v60.51H363.055v-60.51H297.89v60.51H83.78c-18.617 0-32.581 13.963-32.581 32.581v805.237c0 18.618 13.964 32.582 32.582 32.582h861.09c18.619 0 32.583-13.964 32.583-32.582V139.636c-4.655-18.618-18.619-32.581-37.237-32.581zm-642.327 65.163v60.51h65.164v-60.51h307.2v60.51h65.163v-60.51h176.873v204.8H116.364v-204.8H297.89zM116.364 912.291V442.18H912.29v470.11H116.364z"},null,-1)])))]),o.modelValue?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["calendar-input-icon",n.value?"":"calendar-clear-input"]),onClick:x[4]||(x[4]=c.withModifiers(z=>TE(),["stop"]))},x[12]||(x[12]=[c.createElementVNode("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c.createElementVNode("path",{id:"Vector",d:"M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)):c.createCommentVNode("",!0)],2),c.createVNode(c.Transition,{name:"calendar-animation"},{default:c.withCtx(()=>[n.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["calendar",{show:n.value}]),id:"nepali-calendar-"+un,style:{"user-select":"none"}},[c.createElementVNode("div",tR,[c.createElementVNode("div",iR,[c.createElementVNode("div",null,[c.createElementVNode("button",{class:"calendar__toggle_button",onClick:x[5]||(x[5]=z=>oe())},x[13]||(x[13]=[c.createElementVNode("i",{class:"calendar-icon-double-left"},null,-1)])),!f.value&&!g.value?(c.openBlock(),c.createElementBlock("button",{key:0,class:"calendar__toggle_button",onClick:x[6]||(x[6]=z=>P())},x[14]||(x[14]=[c.createElementVNode("i",{class:"calendar-icon-left"},null,-1)]))):c.createCommentVNode("",!0)]),c.createElementVNode("div",aR,[o.monthSelect?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",oR,c.toDisplayString(a.value.format("MMMM")),1)),!f.value&&!g.value&&o.monthSelect?(c.openBlock(),c.createElementBlock("a",{key:1,class:"calendar__header_selector",onClick:c.withModifiers(R,["stop"])},c.toDisplayString(a.value.format("MMMM")),1)):c.createCommentVNode("",!0),o.yearSelect?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",nR,c.toDisplayString(a.value.format("YYYY")),1)),!g.value&&o.yearSelect?(c.openBlock(),c.createElementBlock("a",{key:3,class:"calendar__header_selector",onClick:c.withModifiers(S,["stop"])},c.toDisplayString(a.value.format("YYYY")),1)):c.createCommentVNode("",!0),g.value&&o.yearSelect?(c.openBlock(),c.createElementBlock("a",sR,c.toDisplayString(Me.value[0])+" ~ "+c.toDisplayString(Me.value[Me.value.length-1]),1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",null,[!f.value&&!g.value?(c.openBlock(),c.createElementBlock("button",{key:0,class:"calendar__toggle_button",onClick:x[7]||(x[7]=z=>O())},x[15]||(x[15]=[c.createElementVNode("i",{class:"calendar-icon-right"},null,-1)]))):c.createCommentVNode("",!0),c.createElementVNode("button",{class:"calendar__toggle_button",onClick:x[8]||(x[8]=z=>Z())},x[16]||(x[16]=[c.createElementVNode("i",{class:"calendar-icon-double-right"},null,-1)]))])]),c.createElementVNode("div",rR,[!f.value&&!g.value?(c.openBlock(),c.createElementBlock("div",lR,[c.createElementVNode("div",hR,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(F7),(z,ee)=>(c.openBlock(),c.createElementBlock("div",{key:ee,class:"calendar__weekday"},c.toDisplayString(z),1))),128))]),c.createElementVNode("div",cR,[a.value.year==k.value&&a.value.month==0?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(I.value,z=>(c.openBlock(),c.createElementBlock("div",{class:"calendar__day_spacer",key:z}))),128)):c.createCommentVNode("",!0),I.value?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(M.value,(z,ee)=>(c.openBlock(),c.createElementBlock("div",{key:ee,class:"calendar__day not_current_month",title:`${z.year}-${z.month+1}-${z.day}`,onClick:Ee=>zn(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],8,dR))),128)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(w.value,(z,ee)=>(c.openBlock(),c.createElementBlock("div",{key:ee,class:c.normalizeClass(["calendar__day",{selected:de(z),today:Re(z)}]),title:`${z.year}-${z.month+1}-${z.day}`,onClick:Ee=>zn(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],10,uR))),128)),I.value?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:2},c.renderList(C.value,(z,ee)=>(c.openBlock(),c.createElementBlock("div",{key:ee,class:"calendar__day not_current_month",title:`${z.year}-${z.month+1}-${z.day}`,onClick:Ee=>zn(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],8,pR))),128)):c.createCommentVNode("",!0),a.value.year==v.value&&a.value.month==11?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:3},c.renderList(L.value,z=>(c.openBlock(),c.createElementBlock("div",{class:"calendar__day_spacer",key:z}))),128)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),f.value?(c.openBlock(),c.createElementBlock("div",{key:1,class:"calendar__months",onClick:x[9]||(x[9]=c.withModifiers(()=>{},["stop"]))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(vC),(z,ee)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["calendar_month",{selected:U(ee)}]),onClick:Ee=>EE(ee)},c.toDisplayString(z),11,yR))),256))])):c.createCommentVNode("",!0),g.value?(c.openBlock(),c.createElementBlock("div",{key:2,class:"calendar__years",onClick:x[10]||(x[10]=c.withModifiers(()=>{},["stop"]))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(Me.value,z=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["calendar__year",{selected:ue(z)}]),onClick:ee=>SE(z)},c.toDisplayString(z),11,fR))),256))])):c.createCommentVNode("",!0)])])],10,eR)):c.createCommentVNode("",!0)]),_:1})],2))}}),gR=(o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t},Q9=gR(mR,[["__scopeId","data-v-2be2f4ff"]]),kR={class:"flex gap-[5px]"},vR=c.defineComponent({__name:"DateSelector",props:{modelValue:{default:""},inputWidth:{default:120},isBS:{type:Boolean,default:!1},showToggle:{type:Boolean,default:!0}},emits:["update:modelValue","update:isBS"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(""),n=c.ref(t.isBS);c.watch(()=>t.modelValue,l=>{/^\d{4}-\d{2}-\d{2}$/.test(l)?l!==a.value&&(a.value=n.value?l?je(l):"":l):i("update:modelValue",n.value?a.value?he(a.value):"":a.value)},{immediate:!0}),c.watch(()=>a.value,l=>{i("update:modelValue",n.value?l?he(l):"":l)});const r=()=>{n.value?a.value=a.value?je(a.value):"":a.value=a.value?he(a.value):""};return c.watch(()=>t.isBS,l=>{l!==n.value&&(n.value=l)}),c.watch(()=>n.value,l=>{i("update:isBS",l),r()}),(l,h)=>(c.openBlock(),c.createElementBlock("div",kR,[n.value?(c.openBlock(),c.createBlock(c.unref(Q9),{key:1,modelValue:a.value,"onUpdate:modelValue":h[1]||(h[1]=d=>a.value=d),style:c.normalizeStyle(`width: ${l.inputWidth}px; min-width: ${l.inputWidth}px; max-width: ${l.inputWidth}px`)},null,8,["modelValue","style"])):(c.openBlock(),c.createBlock(c.unref(X9),{key:0,value:a.value,"onUpdate:value":h[0]||(h[0]=d=>a.value=d),valueType:"YYYY-MM-DD",style:c.normalizeStyle(`width: ${l.inputWidth}px; min-width: ${l.inputWidth}px; max-width: ${l.inputWidth}px`)},null,8,["value","style"])),l.showToggle?(c.openBlock(),c.createBlock(oC,{key:2,modelValue:n.value,"onUpdate:modelValue":h[2]||(h[2]=d=>n.value=d),onText:"BS",offText:"AD"},null,8,["modelValue"])):c.createCommentVNode("",!0)]))}});function m9(o){return o===0?!1:Array.isArray(o)&&o.length===0?!0:!o}function bR(o){return(...e)=>!o(...e)}function wR(o,e){return o===void 0&&(o="undefined"),o===null&&(o="null"),o===!1&&(o="false"),o.toString().toLowerCase().indexOf(e.trim())!==-1}function MR(o){return o.filter(e=>!e.$isLabel)}function g9(o,e){return t=>t.reduce((i,a)=>a[o]&&a[o].length?(i.push({$groupLabel:a[e],$isLabel:!0}),i.concat(a[o])):i,[])}const ox=(...o)=>e=>o.reduce((t,i)=>i(t),e);var CR={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(o,e){return m9(o)?"":e?o[e]:o}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const o=this.search||"",e=o.toLowerCase().trim();let t=this.options.concat();return this.internalSearch?t=this.groupValues?this.filterAndFlat(t,e,this.label):this.filterOptions(t,e,this.label,this.customLabel):t=this.groupValues?g9(this.groupValues,this.groupLabel)(t):t,t=this.hideSelected?t.filter(bR(this.isSelected)):t,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?t.push({isTag:!0,label:o}):t.unshift({isTag:!0,label:o})),t.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(o=>o[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(o,e,t){return ox(this.filterGroups(e,t,this.groupValues,this.groupLabel,this.customLabel),g9(this.groupValues,this.groupLabel))(o)},flatAndStrip(o){return ox(g9(this.groupValues,this.groupLabel),MR)(o)},updateSearch(o){this.search=o},isExistingOption(o){return this.options?this.optionKeys.indexOf(o)>-1:!1},isSelected(o){const e=this.trackBy?o[this.trackBy]:o;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(o){return!!o.$isDisabled},getOptionLabel(o){if(m9(o))return"";if(o.isTag)return o.label;if(o.$isLabel)return o.$groupLabel;const e=this.customLabel(o,this.label);return m9(e)?"":e},select(o,e){if(o.$isLabel&&this.groupSelect){this.selectGroup(o);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||o.$isDisabled||o.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(o.isTag)this.$emit("tag",o.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(o)){e!=="Tab"&&this.removeElement(o);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([o])):this.$emit("update:modelValue",o),this.$emit("select",o,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(o){const e=this.options.find(t=>t[this.groupLabel]===o.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const t=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(a=>t.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",i)}else{const t=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&t.splice(this.max-this.internalValue.length),this.$emit("select",t,this.id),this.$emit("update:modelValue",this.internalValue.concat(t))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(o){return o[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(o){return o[this.groupValues].every(this.isOptionDisabled)},removeElement(o,e=!0){if(this.disabled||o.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const t=typeof o=="object"?this.valueKeys.indexOf(o[this.trackBy]):this.valueKeys.indexOf(o);if(this.multiple){const i=this.internalValue.slice(0,t).concat(this.internalValue.slice(t+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",o,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const o=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>o||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(o-40,this.maxHeight))},filterOptions(o,e,t,i){return e?o.filter(a=>wR(i(a,t),e)).sort((a,n)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(a,n):i(a,t).length-i(n,t).length):o},filterGroups(o,e,t,i,a){return n=>n.map(r=>{if(!r[t])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(r[t],o,e,a);return l.length?{[i]:r[i],[t]:l}:[]})}}},xR={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(o,e){return{"multiselect__option--highlight":o===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(o,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const t=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return t&&!this.wholeGroupDisabled(t)?["multiselect__option--group",{"multiselect__option--highlight":o===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(t)}]:"multiselect__option--disabled"},addPointerElement({key:o}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],o),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(o){this.pointer=o,this.pointerDirty=!0}}},IL={name:"vue-multiselect",mixins:[CR,xR],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:o=>`and ${o} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const LR=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],ER={ref:"tags",class:"multiselect__tags"},SR={class:"multiselect__tags-wrap"},IR=["textContent"],TR=["onKeypress","onMousedown"],DR=["textContent"],zR={class:"multiselect__spinner"},RR=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],HR=["id","aria-multiselectable"],AR={key:0},VR={class:"multiselect__option"},PR=["aria-selected","id","role"],qR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],BR=["data-select","data-deselect","onMouseenter","onMousedown"],FR={class:"multiselect__option"},OR={class:"multiselect__option"};function jR(o,e,t,i,a,n){return c.openBlock(),c.createElementBlock("div",{tabindex:o.searchable?-1:t.tabindex,class:c.normalizeClass([{"multiselect--active":o.isOpen,"multiselect--disabled":t.disabled,"multiselect--above":n.isAbove,"multiselect--has-options-group":n.hasOptionGroup},"multiselect"]),onFocus:e[14]||(e[14]=r=>o.activate()),onBlur:e[15]||(e[15]=r=>o.searchable?!1:o.deactivate()),onKeydown:[e[16]||(e[16]=c.withKeys(c.withModifiers(r=>o.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=c.withKeys(c.withModifiers(r=>o.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=c.withKeys(c.withModifiers(r=>o.addPointerElement(r),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=c.withKeys(r=>o.deactivate(),["esc"])),role:"combobox","aria-expanded":o.isOpen,"aria-owns":"listbox-"+o.id,"aria-activedescendant":o.isOpen&&o.pointer!==null?o.id+"-"+o.pointer:null},[c.renderSlot(o.$slots,"caret",{toggle:o.toggle},()=>[c.createElementVNode("div",{onMousedown:e[0]||(e[0]=c.withModifiers(r=>o.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),c.renderSlot(o.$slots,"clear",{search:o.search}),c.createElementVNode("div",ER,[c.renderSlot(o.$slots,"selection",{search:o.search,remove:o.removeElement,values:n.visibleValues,isOpen:o.isOpen},()=>[c.withDirectives(c.createElementVNode("div",SR,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.visibleValues,(r,l)=>c.renderSlot(o.$slots,"tag",{option:r,search:o.search,remove:o.removeElement},()=>[(c.openBlock(),c.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:e[1]||(e[1]=c.withModifiers(()=>{},["prevent"]))},[c.createElementVNode("span",{textContent:c.toDisplayString(o.getOptionLabel(r))},null,8,IR),c.createElementVNode("i",{tabindex:"1",onKeypress:c.withKeys(c.withModifiers(h=>o.removeElement(r),["prevent"]),["enter"]),onMousedown:c.withModifiers(h=>o.removeElement(r),["prevent"]),class:"multiselect__tag-icon"},null,40,TR)],32))])),256))],512),[[c.vShow,n.visibleValues.length>0]]),o.internalValue&&o.internalValue.length>t.limit?c.renderSlot(o.$slots,"limit",{key:0},()=>[c.createElementVNode("strong",{class:"multiselect__strong",textContent:c.toDisplayString(t.limitText(o.internalValue.length-t.limit))},null,8,DR)]):c.createCommentVNode("v-if",!0)]),c.createVNode(c.Transition,{name:"multiselect__loading"},{default:c.withCtx(()=>[c.renderSlot(o.$slots,"loading",{},()=>[c.withDirectives(c.createElementVNode("div",zR,null,512),[[c.vShow,t.loading]])])]),_:3}),o.searchable?(c.openBlock(),c.createElementBlock("input",{key:0,ref:"search",name:t.name,id:o.id,type:"text",autocomplete:"off",spellcheck:t.spellcheck,placeholder:o.placeholder,required:n.isRequired,style:c.normalizeStyle(n.inputStyle),value:o.search,disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.name+"-searchbox",onInput:e[2]||(e[2]=r=>o.updateSearch(r.target.value)),onFocus:e[3]||(e[3]=c.withModifiers(r=>o.activate(),["prevent"])),onBlur:e[4]||(e[4]=c.withModifiers(r=>o.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=c.withKeys(r=>o.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=c.withKeys(c.withModifiers(r=>o.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=c.withKeys(c.withModifiers(r=>o.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=c.withKeys(c.withModifiers(r=>o.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=c.withKeys(c.withModifiers(r=>o.addPointerElement(r),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+o.id},null,44,RR)):c.createCommentVNode("v-if",!0),n.isSingleLabelVisible?(c.openBlock(),c.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=c.withModifiers((...r)=>o.toggle&&o.toggle(...r),["prevent"]))},[c.renderSlot(o.$slots,"singleLabel",{option:n.singleValue},()=>[c.createTextVNode(c.toDisplayString(o.currentOptionLabel),1)])],32)):c.createCommentVNode("v-if",!0),n.isPlaceholderVisible?(c.openBlock(),c.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=c.withModifiers((...r)=>o.toggle&&o.toggle(...r),["prevent"]))},[c.renderSlot(o.$slots,"placeholder",{},()=>[c.createTextVNode(c.toDisplayString(o.placeholder),1)])],32)):c.createCommentVNode("v-if",!0)],512),c.createVNode(c.Transition,{name:"multiselect",persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...r)=>o.activate&&o.activate(...r)),tabindex:"-1",onMousedown:e[13]||(e[13]=c.withModifiers(()=>{},["prevent"])),style:c.normalizeStyle({maxHeight:o.optimizedHeight+"px"}),ref:"list"},[c.createElementVNode("ul",{class:"multiselect__content",style:c.normalizeStyle(n.contentStyle),role:"listbox",id:"listbox-"+o.id,"aria-multiselectable":o.multiple},[c.renderSlot(o.$slots,"beforeList"),o.multiple&&o.max===o.internalValue.length?(c.openBlock(),c.createElementBlock("li",AR,[c.createElementVNode("span",VR,[c.renderSlot(o.$slots,"maxElements",{},()=>[c.createTextVNode("Maximum of "+c.toDisplayString(o.max)+" options selected. First remove a selected option to select another.",1)])])])):c.createCommentVNode("v-if",!0),!o.max||o.internalValue.length<o.max?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(o.filteredOptions,(r,l)=>(c.openBlock(),c.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":o.isSelected(r),id:o.id+"-"+l,role:r&&(r.$isLabel||r.$isDisabled)?null:"option"},[r&&(r.$isLabel||r.$isDisabled)?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass([o.optionHighlight(l,r),"multiselect__option"]),onClick:c.withModifiers(h=>o.select(r),["stop"]),onMouseenter:c.withModifiers(h=>o.pointerSet(l),["self"]),"data-select":r&&r.isTag?o.tagPlaceholder:n.selectLabelText,"data-selected":n.selectedLabelText,"data-deselect":n.deselectLabelText},[c.renderSlot(o.$slots,"option",{option:r,search:o.search,index:l},()=>[c.createElementVNode("span",null,c.toDisplayString(o.getOptionLabel(r)),1)])],42,qR)),r&&(r.$isLabel||r.$isDisabled)?(c.openBlock(),c.createElementBlock("span",{key:1,"data-select":o.groupSelect&&n.selectGroupLabelText,"data-deselect":o.groupSelect&&n.deselectGroupLabelText,class:c.normalizeClass([o.groupHighlight(l,r),"multiselect__option"]),onMouseenter:c.withModifiers(h=>o.groupSelect&&o.pointerSet(l),["self"]),onMousedown:c.withModifiers(h=>o.selectGroup(r),["prevent"])},[c.renderSlot(o.$slots,"option",{option:r,search:o.search,index:l},()=>[c.createElementVNode("span",null,c.toDisplayString(o.getOptionLabel(r)),1)])],42,BR)):c.createCommentVNode("v-if",!0)],8,PR))),128)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createElementVNode("li",null,[c.createElementVNode("span",FR,[c.renderSlot(o.$slots,"noResult",{search:o.search},()=>[e[20]||(e[20]=c.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[c.vShow,t.showNoResults&&o.filteredOptions.length===0&&o.search&&!t.loading]]),c.withDirectives(c.createElementVNode("li",null,[c.createElementVNode("span",OR,[c.renderSlot(o.$slots,"noOptions",{},()=>[e[21]||(e[21]=c.createTextVNode("List is empty."))])])],512),[[c.vShow,t.showNoOptions&&(o.options.length===0||n.hasOptionGroup===!0&&o.filteredOptions.length===0)&&!o.search&&!t.loading]]),c.renderSlot(o.$slots,"afterList")],12,HR)],36),[[c.vShow,o.isOpen]])]),_:3})],42,LR)}IL.render=jR;const NR={class:"flex gap-[5px] w-[100%]"},_R=c.defineComponent({__name:"DateRange",props:{modelValue:{default:()=>({startDate:"",endDate:"",dateType:"today",isBS:!1})}},emits:["update:modelValue","search"],setup(o,{emit:e}){const t=e,i=o,a=new me,n=a.format("YYYY-MM-DD"),r=n?he(n):"",l=c.ref(i.modelValue.isBS?i.modelValue.isBS:!1),h=c.ref(""),d=c.ref(""),u=w=>y.find(C=>C.id===w)||y[4],p=c.computed({get(){return u(i.modelValue.dateType||"today")},set(w){m({dateType:w.id})}}),y=[{name:"Year to date",id:"year_to_date"},{name:"Quarter to date",id:"quarter_to_date"},{name:"Month to date",id:"month_to_date"},{name:"Week to date",id:"week_to_date"},{name:"Today",id:"today"},{name:"Last 30 days",id:"last_30_days"},{name:"Last 90 days",id:"last_90_days"},{name:"First quarter (Q1)",id:"first_quarter"},{name:"Second quarter (Q2)",id:"second_quarter"},{name:"Third quarter (Q3)",id:"third_quarter"},{name:"Fourth quarter (Q4)",id:"fourth_quarter"},{name:"Custom",id:"custom"}];c.onMounted(()=>{f()});const f=()=>{if(i.modelValue.startDate&&i.modelValue.endDate)h.value=l.value?je(i.modelValue.startDate):i.modelValue.startDate,d.value=l.value?je(i.modelValue.endDate):i.modelValue.endDate;else{const w=l.value?n:r;h.value=w,d.value=w,m({startDate:r,endDate:r})}i.modelValue.dateType||(p.value=u("today"),m({dateType:"today"})),i.modelValue.isBS||m({isBS:!1})},g=()=>{h.value&&(h.value=h.value?l.value?je(h.value):he(h.value):""),d.value&&(d.value=d.value?l.value?je(d.value):he(d.value):"")},k=()=>{m({dateType:"custom"}),v()},v=()=>{let w=h.value,C=d.value;l.value&&(w=h.value?he(h.value):"",C=d.value?he(d.value):""),m({startDate:w,endDate:C})},m=w=>{t("update:modelValue",{...i.modelValue,...w})},M=()=>{v(),t("search",i.modelValue)};return c.watch(()=>l.value,()=>{g(),m({isBS:l.value})}),c.watch(()=>i.modelValue.startDate,w=>{w&&w!==(h.value?l.value?he(h.value):h.value:"")&&(h.value=l.value?je(w):w,m({dateType:"custom"}))}),c.watch(()=>i.modelValue.endDate,w=>{w&&w!==(d.value?l.value?he(d.value):d.value:"")&&(d.value=l.value?je(w):w,m({dateType:"custom"}))}),c.watch(()=>i.modelValue.isBS,w=>{w!==l.value&&(l.value=w)}),c.watch(()=>h.value,()=>{v()}),c.watch(()=>d.value,()=>{v()}),c.watch(()=>i.modelValue.dateType,w=>{if(w==="custom")return;let C,I;switch(w){case"year_to_date":C=me.getFiscalYearQuarter(1).start,I=a;break;case"quarter_to_date":C=a.getCurrentFiscalYearQuarterDates().start,I=a;break;case"month_to_date":C=a.startOfMonth(),I=a;break;case"week_to_date":C=a.startOfWeek(),I=a;break;case"today":C=a,I=a;break;case"last_30_days":C=a.addDays(-30),I=a;break;case"last_90_days":C=a.addDays(-90),I=a;break;case"first_quarter":C=me.getFiscalYearQuarter(1).start,I=me.getFiscalYearQuarter(1).end;break;case"second_quarter":C=me.getFiscalYearQuarter(2).start,I=me.getFiscalYearQuarter(2).end;break;case"third_quarter":C=me.getFiscalYearQuarter(3).start,I=me.getFiscalYearQuarter(3).end;break;case"fourth_quarter":C=me.getFiscalYearQuarter(4).start,I=me.getFiscalYearQuarter(4).end;break;default:return}const L=C.format("YYYY-MM-DD"),S=I.format("YYYY-MM-DD");l.value?(h.value=L,d.value=S):(h.value=L?he(L):"",d.value=S?he(S):""),m({startDate:L?he(L):"",endDate:S?he(S):""})}),(w,C)=>(c.openBlock(),c.createElementBlock("div",NR,[c.createVNode(c.unref(IL),{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=I=>p.value=I),options:y,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Date Type",class:"remove-height w-[160px] max-w-[160px]",label:"name","track-by":"id"},null,8,["modelValue"]),l.value?(c.openBlock(),c.createBlock(c.unref(Q9),{key:1,modelValue:h.value,"onUpdate:modelValue":C[3]||(C[3]=I=>h.value=I),class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onOnSelect:C[4]||(C[4]=I=>k())},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(X9),{key:0,value:h.value,"onUpdate:value":C[1]||(C[1]=I=>h.value=I),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onChange:C[2]||(C[2]=I=>k())},null,8,["value"])),C[11]||(C[11]=c.createElementVNode("p",{class:"h-fit my-auto"},"-",-1)),l.value?(c.openBlock(),c.createBlock(c.unref(Q9),{key:3,modelValue:d.value,"onUpdate:modelValue":C[7]||(C[7]=I=>d.value=I),class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onOnSelect:C[8]||(C[8]=I=>k())},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(X9),{key:2,value:d.value,"onUpdate:value":C[5]||(C[5]=I=>d.value=I),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onChange:C[6]||(C[6]=I=>k())},null,8,["value"])),c.createVNode(oC,{modelValue:l.value,"onUpdate:modelValue":C[9]||(C[9]=I=>l.value=I),onText:"BS",offText:"AD"},null,8,["modelValue"]),c.createElementVNode("button",{class:"btn-outline",onClick:C[10]||(C[10]=I=>M())},"Search")]))}}),WR=(o,e)=>{if(e.value){o.classList.add("flex"),o.classList.add("flex-col");const t=o.querySelector("input"),i=document.createElement("span");i.classList.add("text-red-500","text-[12px]","error-message"),t==null||t.classList.add("border-red-500"),o.classList.add("border-red-500"),i.textContent=e.value,o.appendChild(i)}},UR=(o,e)=>{const t=o.querySelector("input"),i=o.querySelector(".error-message");if(!i&&e.value){const a=document.createElement("span");a.classList.add("text-red-500","text-[12px]","error-message"),a.textContent=e.value,t==null||t.classList.add("border-red-500"),o.appendChild(a)}else e.value?(o.classList.add("input-error"),t==null||t.classList.add("border-red-500"),i&&(i.textContent=e.value)):(o.classList.remove("input-error"),o.classList.remove("border-red-500"),t==null||t.classList.remove("border-red-500"),i&&i.remove())},GR={mounted:WR,updated:UR},k9=new WeakMap,$R={mounted(o,e){let t=null,i=0;o.classList.add("hide-scrollbar");const a=()=>{o.classList.remove("hide-scrollbar")},n=()=>{o.classList.add("hide-scrollbar"),i=Date.now()},r=()=>{Date.now()-i>=100&&a(),t&&clearTimeout(t),t=setTimeout(n,1e3)};o.addEventListener("scroll",r),k9.set(o,r)},unmounted(o){const e=k9.get(o);e&&(o.removeEventListener("scroll",e),k9.delete(o))}};var v9={exports:{}},nx;function YR(){if(nx)return v9.exports;nx=1;var o=v9.exports={},e,t;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=i}catch{e=i}try{typeof clearTimeout=="function"?t=clearTimeout:t=a}catch{t=a}})();function n(k){if(e===setTimeout)return setTimeout(k,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(k,0);try{return e(k,0)}catch{try{return e.call(null,k,0)}catch{return e.call(this,k,0)}}}function r(k){if(t===clearTimeout)return clearTimeout(k);if((t===a||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(k);try{return t(k)}catch{try{return t.call(null,k)}catch{return t.call(this,k)}}}var l=[],h=!1,d,u=-1;function p(){!h||!d||(h=!1,d.length?l=d.concat(l):u=-1,l.length&&y())}function y(){if(!h){var k=n(p);h=!0;for(var v=l.length;v;){for(d=l,l=[];++u<v;)d&&d[u].run();u=-1,v=l.length}d=null,h=!1,r(k)}}o.nextTick=function(k){var v=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)v[m-1]=arguments[m];l.push(new f(k,v)),l.length===1&&!h&&n(y)};function f(k,v){this.fun=k,this.array=v}f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function g(){}return o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(k){return[]},o.binding=function(k){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(k){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},v9.exports}var TL=YR();const b9=new WeakMap,ZR={mounted(o){TL.nextTick(()=>{const e=()=>{typeof o.select=="function"&&o.select()};o.addEventListener("focus",e),b9.set(o,e)})},unmounted(o){const e=b9.get(o);e&&(o.removeEventListener("focus",e),b9.delete(o))}},DL=(o,e,t="RS.",i="usa",a="nepali")=>{const n=parseFloat(o);if(isNaN(n))return"";const r=i==="euro",l=r?",":".",h=r?".":",",d=n.toFixed(2).split(".");let u=d[0];const p=d[1];if(a==="nepali"){const y=u.slice(-3),f=u.slice(0,-3),g=f.replace(/\B(?=(\d{2})+(?!\d))/g,h);u=f?g+h+y:y}else u=u.replace(/\B(?=(\d{3})+(?!\d))/g,h);return e&&t?`${t}${u}${l}${p}`:`${u}${l}${p}`},zL=(o,e,t="RS.",i="usa",a="nepali")=>{if(!o)return 0;const n=i==="euro",r=n?",":".",l=n?".":",";let h=o.trim();e&&t&&h.startsWith(t)&&(h=h.slice(t.length).trim());const d=new RegExp(`\\${l}(?=\\d{2,3})`,"g");h=h.replace(d,"");const u=h.lastIndexOf(r);u!==-1&&r!=="."&&(h=h.slice(0,u)+"."+h.slice(u+1));const p=parseFloat(h);return isNaN(p)?0:p},jn=(o,e,t=!0)=>{t?o.value=DL(o.value,!1,"",e.format,e.structure):o.value=zL(o.value,!1,"",e.format,e.structure).toString()},XR={mounted(o,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};TL.nextTick(()=>{o.value&&jn(o,t)});const i=()=>{jn(o,t),o.removeEventListener("blur",i),o.removeEventListener("keydown",n)},a=()=>{jn(o,t,!1),o.addEventListener("blur",i),o.addEventListener("keydown",n)},n=r=>{const l=/^\d$/.test(r.key),h=r.key===".",d=r.ctrlKey||r.metaKey,u=r.key==="Enter"||r.key==="Tab"||r.key==="Backspace",p=o.value.includes(".");if(h&&p){r.preventDefault();return}l||h&&!p||d||u||r.preventDefault()};o.addEventListener("focus",a),o.eventCleanUp=()=>{o.removeEventListener("focus",a),o.removeEventListener("blur",i),o.removeEventListener("keydown",n)}},updated(o,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};document.activeElement!=o&&jn(o,t)},unmounted(o){}},KR={mounted(o){const e=o.closest(".sidebar-dropdown");if(!e)return;const t=700,i=()=>{const r=o.scrollHeight,l=r*1e3/t;o.style.overflow="hidden",o.style.transition=`height ${l}ms linear`,o.style.height=`${r}px`,clearTimeout(o._timeout),o._timeout=window.setTimeout(()=>{o.style.height="",o.style.transition="",o.style.overflow=""},l)},a=()=>{const r=o.scrollHeight,l=r*1e3/t;o.style.transition=`height ${l}ms linear`,o.style.overflow="hidden",o.style.height=`${r}px`,o.offsetHeight,o.style.height="0px",clearTimeout(o._timeout),o._timeout=window.setTimeout(()=>{o.style.transition="",o.style.overflow=""},l)},n=new MutationObserver(()=>{e.classList.contains("sidebar-item-open")?i():a()});n.observe(e,{attributes:!0,attributeFilter:["class"]}),o._observer=n,e.classList.contains("sidebar-item-open")?o.style.height="auto":(o.style.height="0px",o.style.overflow="hidden")},unmounted(o){o._observer&&o._observer.disconnect(),clearTimeout(o._timeout)}};class JR{constructor(){this.socket=null,this.url="",this.isConnected=!1}setURL(e){this.url=e}init(){var e,t;return this.url==""?(console.log("❗WebSocket url not set!"),Promise.resolve(this)):(((e=this.socket)==null?void 0:e.readyState)==WebSocket.OPEN&&((t=this.socket)==null||t.close()),this.socket?(console.log("❗WebSocket is already initialized"),Promise.resolve(this)):(this.socket=new WebSocket(this.url),new Promise((i,a)=>{this.socket.onopen=()=>{this.isConnected=!0,console.log("✅ WebSocket connected"),i(this)},this.socket.onclose=()=>{this.isConnected=!1},this.socket.onerror=n=>{this.close(),console.error("⛔ WebSocket error occurred:",n),a(n)}})))}onMessage(e){return this.socket?(this.socket.onmessage=t=>{e&&t.data&&e(t.data)},Promise.resolve(this)):(console.error("❗WebSocket is not initialized"),Promise.resolve(this))}sendMessage(e){return new Promise((t,i)=>{if(this.socket&&this.isConnected)try{this.socket.send(e),t()}catch(a){console.error("❗Error sending message:",a),i(a)}else{const a="❗WebSocket is not connected";console.error(a),i(new Error(a))}})}close(){this.socket&&(this.socket.close(),this.isConnected=!1,console.log("❌ WebSocket connection closed"))}getConnectionStatus(){return this.isConnected}}/*!
|
|
8045
|
+
`);return(h,d)=>{const u=c.resolveComponent("RouterLink");return c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[c.createVNode(c.Transition,{name:"towser"},{default:c.withCtx(()=>[h.show?(c.openBlock(),c.createElementBlock("div",NT,[c.createElementVNode("div",_T,[c.createElementVNode("div",WT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(h.title,(p,y)=>(c.openBlock(),c.createElementBlock("span",{key:y,class:"flex"},[p.link?p.link!=="#"?(c.openBlock(),c.createBlock(u,{key:1,to:p.link,class:"hover:underline"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(p.name),1)]),_:2},1032,["to"])):(c.openBlock(),c.createElementBlock("a",{key:2,onClick:d[0]||(d[0]=f=>i("onClose")),class:"hover:underline cursor-pointer"},c.toDisplayString(p.name),1)):(c.openBlock(),c.createElementBlock("span",UT,c.toDisplayString(p.name),1)),h.title.length!==0&&y+1!==h.title.length?(c.openBlock(),c.createElementBlock("svg",$T,d[2]||(d[2]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("button",{class:"absolute cursor-pointer text-[20px] right-4 top-[15px]",onClick:d[1]||(d[1]=p=>i("onClose"))},d[3]||(d[3]=[c.createElementVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16.00 16.00",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"duration-200","stroke-width":"0.592"},[c.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[c.createElementVNode("path",{d:"M0 14.545L1.455 16 8 9.455 14.545 16 16 14.545 9.455 8 16 1.455 14.545 0 8 6.545 1.455 0 0 1.455 6.545 8z","fill-rule":"evenodd"})])],-1)]))]),c.createElementVNode("div",null,[c.createElementVNode("div",{class:c.normalizeClass([h.double?"flex gap-[15px]":"","px-[15px]"])},[c.createElementVNode("div",{class:"my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",style:c.normalizeStyle(r.value)},[c.renderSlot(h.$slots,"default",{},void 0,!0)],4),h.double?(c.openBlock(),c.createElementBlock("div",{key:0,class:"my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",style:c.normalizeStyle(l.value)},[c.renderSlot(h.$slots,"body2",{},void 0,!0)],4)):c.createCommentVNode("",!0)],2)]),h.actions?(c.openBlock(),c.createElementBlock("div",GT,[c.createElementVNode("div",YT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(h.actions,p=>(c.openBlock(),c.createElementBlock("button",{key:p.emit,class:c.normalizeClass(p.class||"btn"),onClick:y=>i(p.emit)},c.toDisplayString(p.title),11,ZT))),128))])])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),_:3})])}}}),KT=(o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t},JT=KT(XT,[["__scopeId","data-v-93cc0e1e"]]);function _x(o){return o instanceof Date||Object.prototype.toString.call(o)==="[object Date]"}function J7(o){return _x(o)?new Date(o.getTime()):o==null?new Date(NaN):new Date(o)}function QT(o){return _x(o)&&!isNaN(o.getTime())}function Wx(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(e>=0&&e<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var t=J7(o),i=t.getDay(),a=(i+7-e)%7;return t.setDate(t.getDate()-a),t.setHours(0,0,0,0),t}function Ux(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.firstDayOfWeek,i=t===void 0?0:t,a=e.firstWeekContainsDate,n=a===void 0?1:a;if(!(n>=1&&n<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var r=J7(o),l=r.getFullYear(),h=new Date(0),d=l+1;d>=l-1&&(h.setFullYear(d,0,n),h.setHours(0,0,0,0),h=Wx(h,i),!(r.getTime()>=h.getTime()));d--);return h}function nC(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.firstDayOfWeek,i=t===void 0?0:t,a=e.firstWeekContainsDate,n=a===void 0?1:a,r=J7(o),l=Wx(r,i),h=Ux(r,{firstDayOfWeek:i,firstWeekContainsDate:n}),d=l.getTime()-h.getTime();return Math.round(d/(7*24*3600*1e3))+1}var sC={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},eD=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function pe(o){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,t="".concat(Math.abs(o)),i=o<0?"-":"";t.length<e;)t="0".concat(t);return i+t}function OC(o){return Math.round(o.getTimezoneOffset()/15)*15}function jC(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=o>0?"-":"+",i=Math.abs(o),a=Math.floor(i/60),n=i%60;return t+pe(a,2)+e+pe(n,2)}var NC=function(e,t,i){var a=e<12?"AM":"PM";return i?a.toLocaleLowerCase():a},fn={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return pe(e.getFullYear(),4).substr(2)},YYYY:function(e){return pe(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return pe(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return pe(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return pe(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=fn.h.apply(fn,arguments);return pe(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return pe(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return pe(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return pe(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return pe(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var i=t.meridiem||NC;return i(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var i=t.meridiem||NC;return i(e.getHours(),e.getMinutes(),!0)},Z:function(e){return jC(OC(e),":")},ZZ:function(e){return jC(OC(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return nC(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return pe(fn.w(e,t),2)}};function rC(o,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",a=J7(o);if(!QT(a))return"Invalid Date";var n=t.locale||sC;return i.replace(eD,function(r,l){return l||(typeof fn[r]=="function"?"".concat(fn[r](a,n)):r)})}function _C(o){return aD(o)||iD(o)||tD()}function tD(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function iD(o){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]")return Array.from(o)}function aD(o){if(Array.isArray(o)){for(var e=0,t=new Array(o.length);e<o.length;e++)t[e]=o[e];return t}}function WC(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,i)}return t}function oD(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?WC(t,!0).forEach(function(i){Ke(o,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):WC(t).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(t,i))})}return o}function nD(o,e){return lD(o)||rD(o,e)||sD()}function sD(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function rD(o,e){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]"){var t=[],i=!0,a=!1,n=void 0;try{for(var r=o[Symbol.iterator](),l;!(i=(l=r.next()).done)&&(t.push(l.value),!(e&&t.length===e));i=!0);}catch(h){a=!0,n=h}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw n}}return t}}function lD(o){if(Array.isArray(o))return o}function Ke(o,e,t){return e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}var hD=/(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g,$x=/\d/,Je=/\d\d/,cD=/\d{3}/,dD=/\d{4}/,nn=/\d\d?/,uD=/[+-]\d\d:?\d\d/,Gx=/[+-]?\d+/,pD=/[+-]?\d+(\.\d{1,3})?/,lC="year",Q7="month",Yx="day",Zx="hour",Xx="minute",Kx="second",hC="millisecond",Jx={},$=function(e,t,i){var a=Array.isArray(e)?e:[e],n;typeof i=="string"?n=function(l){var h=parseInt(l,10);return Ke({},i,h)}:n=i,a.forEach(function(r){Jx[r]=[t,n]})},yD=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},Mn=function(e){return function(t){var i=t[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(i.map(yD).join("|"))}},Cn=function(e,t){return function(i,a){var n=a[e];if(!Array.isArray(n))throw new Error("Locale[".concat(e,"] need an array"));var r=n.indexOf(i);if(r<0)throw new Error("Invalid Word");return Ke({},t,r)}};$("Y",Gx,lC);$("YY",Je,function(o){var e=new Date().getFullYear(),t=Math.floor(e/100),i=parseInt(o,10);return i=(i>68?t-1:t)*100+i,Ke({},lC,i)});$("YYYY",dD,lC);$("M",nn,function(o){return Ke({},Q7,parseInt(o,10)-1)});$("MM",Je,function(o){return Ke({},Q7,parseInt(o,10)-1)});$("MMM",Mn("monthsShort"),Cn("monthsShort",Q7));$("MMMM",Mn("months"),Cn("months",Q7));$("D",nn,Yx);$("DD",Je,Yx);$(["H","h"],nn,Zx);$(["HH","hh"],Je,Zx);$("m",nn,Xx);$("mm",Je,Xx);$("s",nn,Kx);$("ss",Je,Kx);$("S",$x,function(o){return Ke({},hC,parseInt(o,10)*100)});$("SS",Je,function(o){return Ke({},hC,parseInt(o,10)*10)});$("SSS",cD,hC);function fD(o){return o.meridiemParse||/[ap]\.?m?\.?/i}function mD(o){return"".concat(o).toLowerCase().charAt(0)==="p"}$(["A","a"],fD,function(o,e){var t=typeof e.isPM=="function"?e.isPM(o):mD(o);return{isPM:t}});function gD(o){var e=o.match(/([+-]|\d\d)/g)||["-","0","0"],t=nD(e,3),i=t[0],a=t[1],n=t[2],r=parseInt(a,10)*60+parseInt(n,10);return r===0?0:i==="+"?-r:+r}$(["Z","ZZ"],uD,function(o){return{offset:gD(o)}});$("x",Gx,function(o){return{date:new Date(parseInt(o,10))}});$("X",pD,function(o){return{date:new Date(parseFloat(o)*1e3)}});$("d",$x,"weekday");$("dd",Mn("weekdaysMin"),Cn("weekdaysMin","weekday"));$("ddd",Mn("weekdaysShort"),Cn("weekdaysShort","weekday"));$("dddd",Mn("weekdays"),Cn("weekdays","weekday"));$("w",nn,"week");$("ww",Je,"week");function kD(o,e){if(o!==void 0&&e!==void 0){if(e){if(o<12)return o+12}else if(o===12)return 0}return o}function vD(o){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,t=[0,0,1,0,0,0,0],i=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()],a=!0,n=0;n<7;n++)o[n]===void 0?t[n]=a?i[n]:t[n]:(t[n]=o[n],a=!1);return t}function bD(o,e,t,i,a,n,r){var l;return o<100&&o>=0?(l=new Date(o+400,e,t,i,a,n,r),isFinite(l.getFullYear())&&l.setFullYear(o)):l=new Date(o,e,t,i,a,n,r),l}function wD(){for(var o,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=t[0];return a<100&&a>=0?(t[0]+=400,o=new Date(Date.UTC.apply(Date,t)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(a)):o=new Date(Date.UTC.apply(Date,t)),o}function MD(o,e,t){var i=e.match(hD);if(!i)throw new Error;for(var a=i.length,n={},r=0;r<a;r+=1){var l=i[r],h=Jx[l];if(h){var u=typeof h[0]=="function"?h[0](t):h[0],p=h[1],y=(u.exec(o)||[])[0],f=p(y,t);n=oD({},n,{},f),o=o.replace(y,"")}else{var d=l.replace(/^\[|\]$/g,"");if(o.indexOf(d)===0)o=o.substr(d.length);else throw new Error("not match")}}return n}function CD(o,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var i=t.locale,a=i===void 0?sC:i,n=t.backupDate,r=n===void 0?new Date:n,l=MD(o,e,a),h=l.year,d=l.month,u=l.day,p=l.hour,y=l.minute,f=l.second,g=l.millisecond,k=l.isPM,v=l.date,m=l.offset,w=l.weekday,M=l.week;if(v)return v;var C=[h,d,u,p,y,f,g];if(C[3]=kD(C[3],k),M!==void 0&&d===void 0&&u===void 0){var S=Ux(h===void 0?r:new Date(h,3),{firstDayOfWeek:a.firstDayOfWeek,firstWeekContainsDate:a.firstWeekContainsDate});return new Date(S.getTime()+(M-1)*7*24*3600*1e3)}var L,H=vD(C,r);return m!==void 0?(H[6]+=m*60*1e3,L=wD.apply(void 0,_C(H))):L=bD.apply(void 0,_C(H)),w!==void 0&&L.getDay()!==w?new Date(NaN):L}catch{return new Date(NaN)}}var xD=Object.defineProperty,LD=Object.defineProperties,ED=Object.getOwnPropertyDescriptors,P7=Object.getOwnPropertySymbols,Qx=Object.prototype.hasOwnProperty,eL=Object.prototype.propertyIsEnumerable,UC=(o,e,t)=>e in o?xD(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,J=(o,e)=>{for(var t in e||(e={}))Qx.call(e,t)&&UC(o,t,e[t]);if(P7)for(var t of P7(e))eL.call(e,t)&&UC(o,t,e[t]);return o},ve=(o,e)=>LD(o,ED(e)),SD=(o,e)=>{var t={};for(var i in o)Qx.call(o,i)&&e.indexOf(i)<0&&(t[i]=o[i]);if(o!=null&&P7)for(var i of P7(o))e.indexOf(i)<0&&eL.call(o,i)&&(t[i]=o[i]);return t};const ID={formatLocale:sC,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};let yn="en";const Go={};Go[yn]=ID;function tL(o,e,t=!1){if(typeof o!="string")return Go[yn];let i=yn;return Go[o]&&(i=o),e&&(Go[o]=e,i=o),t||(yn=i),Go[o]||Go[yn]}function Z9(o){return tL(o,void 0,!0)}function cC(o,e){if(!Array.isArray(o))return[];const t=[],i=o.length;let a=0;for(e=e||i;a<i;)t.push(o.slice(a,a+=e));return t}function $C(o){return Array.isArray(o)?o[o.length-1]:void 0}function Ge(o){return Object.prototype.toString.call(o)==="[object Object]"}function Pe(o,e){const t={};return Ge(o)&&(Array.isArray(e)||(e=[e]),e.forEach(i=>{Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])})),t}function iL(o,e){if(!Ge(o))return{};let t=o;return Ge(e)&&Object.keys(e).forEach(i=>{let a=e[i];const n=o[i];Ge(a)&&Ge(n)&&(a=iL(n,a)),t=ve(J({},t),{[i]:a})}),t}function p9(o){const e=parseInt(String(o),10);return e<10?`0${e}`:`${e}`}function TD(o){const e=/-(\w)/g;return o.replace(e,(t,i)=>i?i.toUpperCase():"")}const aL="datepicker_locale",oL="datepicker_prefixClass",nL="datepicker_getWeek";function dC(){return c.inject(aL,c.shallowRef(Z9()))}function DD(o){const e=c.computed(()=>Ge(o.value)?iL(Z9(),o.value):Z9(o.value));return c.provide(aL,e),e}function zD(o){c.provide(oL,o)}function se(){return c.inject(oL,"mx")}function RD(o){c.provide(nL,o)}function HD(){return c.inject(nL,nC)}function AD(o){const e=o.style.display,t=o.style.visibility;o.style.display="block",o.style.visibility="hidden";const i=window.getComputedStyle(o),a=o.offsetWidth+parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),n=o.offsetHeight+parseInt(i.marginTop,10)+parseInt(i.marginBottom,10);return o.style.display=e,o.style.visibility=t,{width:a,height:n}}function VD(o,e,t,i){let a=0,n=0,r=0,l=0;const h=o.getBoundingClientRect(),d=document.documentElement.clientWidth,u=document.documentElement.clientHeight;return i&&(r=window.pageXOffset+h.left,l=window.pageYOffset+h.top),d-h.left<e&&h.right<e?a=r-h.left+1:h.left+h.width/2<=d/2?a=r:a=r+h.width-e,h.top<=t&&u-h.bottom<=t?n=l+u-h.top-t:h.top+h.height/2<=u/2?n=l+h.height:n=l-t,{left:`${a}px`,top:`${n}px`}}function uC(o,e=document.body){if(!o||o===e)return null;const t=(n,r)=>getComputedStyle(n,null).getPropertyValue(r);return/(auto|scroll)/.test(t(o,"overflow")+t(o,"overflow-y")+t(o,"overflow-x"))?o:uC(o.parentElement,e)}let Vn;function PD(){if(typeof window>"u")return 0;if(Vn!==void 0)return Vn;const o=document.createElement("div");o.style.visibility="hidden",o.style.overflow="scroll",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const e=document.createElement("div");return e.style.width="100%",o.appendChild(e),Vn=o.offsetWidth-e.offsetWidth,o.parentNode.removeChild(o),Vn}const GC="ontouchend"in document?"touchstart":"mousedown";function qD(o){let e=!1;return function(...i){e||(e=!0,requestAnimationFrame(()=>{e=!1,o.apply(this,i)}))}}function Fe(o,e){return{setup:o,name:o.name,props:e}}function Oe(o,e){return new Proxy(o,{get(i,a){const n=i[a];return n!==void 0?n:e[a]}})}const Qe=()=>o=>o,BD=(o,e)=>{const t={};for(const i in o)if(Object.prototype.hasOwnProperty.call(o,i)){const a=TD(i);let n=o[i];e.indexOf(a)!==-1&&n===""&&(n=!0),t[a]=n}return t};function FD(o,{slots:e}){const t=Oe(o,{appendToBody:!0}),i=se(),a=c.ref(null),n=c.ref({left:"",top:""}),r=()=>{if(!t.visible||!a.value)return;const h=t.getRelativeElement();if(!h)return;const{width:d,height:u}=AD(a.value);n.value=VD(h,d,u,t.appendToBody)};c.watchEffect(r,{flush:"post"}),c.watchEffect(h=>{const d=t.getRelativeElement();if(!d)return;const u=uC(d)||window,p=qD(r);u.addEventListener("scroll",p),window.addEventListener("resize",p),h(()=>{u.removeEventListener("scroll",p),window.removeEventListener("resize",p)})},{flush:"post"});const l=h=>{if(!t.visible)return;const d=h.target,u=a.value,p=t.getRelativeElement();u&&!u.contains(d)&&p&&!p.contains(d)&&t.onClickOutside(h)};return c.watchEffect(h=>{document.addEventListener(GC,l),h(()=>{document.removeEventListener(GC,l)})}),()=>c.createVNode(c.Teleport,{to:"body",disabled:!t.appendToBody},{default:()=>[c.createVNode(c.Transition,{name:`${i}-zoom-in-down`},{default:()=>{var h;return[t.visible&&c.createVNode("div",{ref:a,class:`${i}-datepicker-main ${i}-datepicker-popup ${t.className}`,style:[J({position:"absolute"},n.value),t.style||{}]},[(h=e.default)==null?void 0:h.call(e)])]}})]})}const OD=Qe()(["style","className","visible","appendToBody","onClickOutside","getRelativeElement"]);var jD=Fe(FD,OD);const ND={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},_D=c.createElementVNode("path",{d:"M940.218 107.055H730.764v-60.51H665.6v60.51H363.055v-60.51H297.89v60.51H83.78c-18.617 0-32.581 13.963-32.581 32.581v805.237c0 18.618 13.964 32.582 32.582 32.582h861.09c18.619 0 32.583-13.964 32.583-32.582V139.636c-4.655-18.618-18.619-32.581-37.237-32.581zm-642.327 65.163v60.51h65.164v-60.51h307.2v60.51h65.163v-60.51h176.873v204.8H116.364v-204.8H297.89zM116.364 912.291V442.18H912.29v470.11H116.364z"},null,-1),WD=[_D];function sL(o,e){return c.openBlock(),c.createElementBlock("svg",ND,WD)}const UD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},$D=c.createElementVNode("path",{d:"M810.005 274.005 572.011 512l237.994 237.995-60.01 60.01L512 572.011 274.005 810.005l-60.01-60.01L451.989 512 213.995 274.005l60.01-60.01L512 451.989l237.995-237.994z"},null,-1),GD=[$D];function YD(o,e){return c.openBlock(),c.createElementBlock("svg",UD,GD)}const ZD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},XD=c.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),KD=c.createElementVNode("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},null,-1),JD=c.createElementVNode("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1),QD=[XD,KD,JD];function ez(o,e){return c.openBlock(),c.createElementBlock("svg",ZD,QD)}function Fo(o,e=0,t=1,i=0,a=0,n=0,r=0){const l=new Date(o,e,t,i,a,n,r);return o<100&&o>=0&&l.setFullYear(o),l}function Be(o){return o instanceof Date&&!isNaN(o.getTime())}function Oo(o){return Array.isArray(o)&&o.length===2&&o.every(Be)&&o[0]<=o[1]}function tz(o){return Array.isArray(o)&&o.every(Be)}function e9(...o){if(o[0]!==void 0&&o[0]!==null){const t=new Date(o[0]);if(Be(t))return t}const e=o.slice(1);return e.length?e9(...e):new Date}function iz(o){const e=new Date(o);return e.setMonth(0,1),e.setHours(0,0,0,0),e}function YC(o){const e=new Date(o);return e.setDate(1),e.setHours(0,0,0,0),e}function Xe(o){const e=new Date(o);return e.setHours(0,0,0,0),e}function az({firstDayOfWeek:o,year:e,month:t}){const i=[],a=Fo(e,t,0),n=a.getDate(),r=n-(a.getDay()+7-o)%7;for(let u=r;u<=n;u++)i.push(Fo(e,t,u-n));a.setMonth(t+1,0);const l=a.getDate();for(let u=1;u<=l;u++)i.push(Fo(e,t,u));const h=n-r+1,d=6*7-h-l;for(let u=1;u<=d;u++)i.push(Fo(e,t,l+u));return i}function q7(o,e){const t=new Date(o),i=typeof e=="function"?e(t.getMonth()):Number(e),a=t.getFullYear(),n=Fo(a,i+1,0).getDate(),r=t.getDate();return t.setMonth(i,Math.min(r,n)),t}function Yo(o,e){const t=new Date(o),i=typeof e=="function"?e(t.getFullYear()):e;return t.setFullYear(i),t}function oz(o,e){const t=new Date(e),i=new Date(o),a=t.getFullYear()-i.getFullYear(),n=t.getMonth()-i.getMonth();return a*12+n}function B7(o,e){const t=new Date(o),i=new Date(e);return t.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),t}function nz(o,{slots:e}){const t=Oe(o,{editable:!0,disabled:!1,clearable:!0,range:!1,multiple:!1}),i=se(),a=c.ref(null),n=c.computed(()=>t.separator||(t.range?" ~ ":",")),r=f=>t.range?Oo(f):t.multiple?tz(f):Be(f),l=f=>Array.isArray(f)?f.some(g=>t.disabledDate(g)):t.disabledDate(f),h=c.computed(()=>a.value!==null?a.value:typeof t.renderInputText=="function"?t.renderInputText(t.value):r(t.value)?Array.isArray(t.value)?t.value.map(f=>t.formatDate(f)).join(n.value):t.formatDate(t.value):""),d=f=>{var g;f&&f.stopPropagation(),t.onChange(t.range?[null,null]:null),(g=t.onClear)==null||g.call(t)},u=()=>{var f;if(!t.editable||a.value===null)return;const g=a.value.trim();if(a.value=null,g===""){d();return}let k;if(t.range){let v=g.split(n.value);v.length!==2&&(v=g.split(n.value.trim())),k=v.map(m=>t.parseDate(m.trim()))}else t.multiple?k=g.split(n.value).map(v=>t.parseDate(v.trim())):k=t.parseDate(g);r(k)&&!l(k)?t.onChange(k):(f=t.onInputError)==null||f.call(t,g)},p=f=>{a.value=typeof f=="string"?f:f.target.value},y=f=>{const{keyCode:g}=f;g===9?t.onBlur():g===13&&u()};return()=>{var f,g,k;const v=!t.disabled&&t.clearable&&h.value,m=ve(J({name:"date",type:"text",autocomplete:"off",value:h.value,class:t.inputClass||`${i}-input`,readonly:!t.editable,disabled:t.disabled,placeholder:t.placeholder},t.inputAttr),{onFocus:t.onFocus,onKeydown:y,onInput:p,onChange:u});return c.createVNode("div",{class:`${i}-input-wrapper`,onClick:t.onClick},[((f=e.input)==null?void 0:f.call(e,m))||c.createVNode("input",m,null),v?c.createVNode("i",{class:`${i}-icon-clear`,onClick:d},[((g=e["icon-clear"])==null?void 0:g.call(e))||c.createVNode(YD,null,null)]):null,c.createVNode("i",{class:`${i}-icon-calendar`},[((k=e["icon-calendar"])==null?void 0:k.call(e))||c.createVNode(sL,null,null)])])}}const pC=Qe()(["placeholder","editable","disabled","clearable","inputClass","inputAttr","range","multiple","separator","renderInputText","onInputError","onClear"]),sz=Qe()(["value","formatDate","parseDate","disabledDate","onChange","onFocus","onBlur","onClick",...pC]);var rz=Fe(nz,sz);function lz(o,{slots:e}){var t;const i=Oe(o,{prefixClass:"mx",valueType:"date",format:"YYYY-MM-DD",type:"date",disabledDate:()=>!1,disabledTime:()=>!1,confirmText:"OK"});zD(i.prefixClass),RD(((t=i.formatter)==null?void 0:t.getWeek)||nC);const a=DD(c.toRef(o,"lang")),n=c.ref(),r=()=>n.value,l=c.ref(!1),h=c.computed(()=>!i.disabled&&(typeof i.open=="boolean"?i.open:l.value)),d=()=>{var L,H;i.disabled||h.value||(l.value=!0,(L=i["onUpdate:open"])==null||L.call(i,!0),(H=i.onOpen)==null||H.call(i))},u=()=>{var L,H;h.value&&(l.value=!1,(L=i["onUpdate:open"])==null||L.call(i,!1),(H=i.onClose)==null||H.call(i))},p=(L,H)=>(H=H||i.format,Ge(i.formatter)&&typeof i.formatter.stringify=="function"?i.formatter.stringify(L,H):rC(L,H,{locale:a.value.formatLocale})),y=(L,H)=>{if(H=H||i.format,Ge(i.formatter)&&typeof i.formatter.parse=="function")return i.formatter.parse(L,H);const I=new Date;return CD(L,H,{locale:a.value.formatLocale,backupDate:I})},f=L=>{switch(i.valueType){case"date":return L instanceof Date?new Date(L.getTime()):new Date(NaN);case"timestamp":return typeof L=="number"?new Date(L):new Date(NaN);case"format":return typeof L=="string"?y(L):new Date(NaN);default:return typeof L=="string"?y(L,i.valueType):new Date(NaN)}},g=L=>{if(!Be(L))return null;switch(i.valueType){case"date":return L;case"timestamp":return L.getTime();case"format":return p(L);default:return p(L,i.valueType)}},k=c.computed(()=>{const L=i.value;return i.range?(Array.isArray(L)?L.slice(0,2):[null,null]).map(f):i.multiple?(Array.isArray(L)?L:[]).map(f):f(L)}),v=(L,H,I=!0)=>{var z,R;const j=Array.isArray(L)?L.map(g):g(L);return(z=i["onUpdate:value"])==null||z.call(i,j),(R=i.onChange)==null||R.call(i,j,H),I&&u(),j},m=c.ref(new Date);c.watchEffect(()=>{h.value&&(m.value=k.value)});const w=(L,H)=>{i.confirm?m.value=L:v(L,H,!i.multiple&&(H===i.type||H==="time"))},M=()=>{var L;const H=v(m.value);(L=i.onConfirm)==null||L.call(i,H)},C=L=>i.disabledDate(L)||i.disabledTime(L),S=L=>{var H;const{prefixClass:I}=i;return c.createVNode("div",{class:`${I}-datepicker-sidebar`},[(H=e.sidebar)==null?void 0:H.call(e,L),(i.shortcuts||[]).map((z,R)=>c.createVNode("button",{key:R,"data-index":R,type:"button",class:`${I}-btn ${I}-btn-text ${I}-btn-shortcut`,onClick:()=>{var j;const P=(j=z.onClick)==null?void 0:j.call(z);P&&v(P)}},[z.text]))])};return()=>{var L,H;const{prefixClass:I,disabled:z,confirm:R,range:j,popupClass:P,popupStyle:Ee,appendToBody:ee}=i,W={value:m.value,"onUpdate:value":w,emit:v},de=e.header&&c.createVNode("div",{class:`${I}-datepicker-header`},[e.header(W)]),we=(e.footer||R)&&c.createVNode("div",{class:`${I}-datepicker-footer`},[(L=e.footer)==null?void 0:L.call(e,W),R&&c.createVNode("button",{type:"button",class:`${I}-btn ${I}-datepicker-btn-confirm`,onClick:M},[i.confirmText])]),Me=(H=e.content)==null?void 0:H.call(e,W),cn=(e.sidebar||i.shortcuts)&&S(W);return c.createVNode("div",{ref:n,class:{[`${I}-datepicker`]:!0,[`${I}-datepicker-range`]:j,disabled:z}},[c.createVNode(rz,ve(J({},Pe(i,pC)),{value:k.value,formatDate:p,parseDate:y,disabledDate:C,onChange:v,onClick:d,onFocus:d,onBlur:u}),Pe(e,["icon-calendar","icon-clear","input"])),c.createVNode(jD,{className:P,style:Ee,visible:h.value,appendToBody:ee,getRelativeElement:r,onClickOutside:u},{default:()=>[cn,c.createVNode("div",{class:`${I}-datepicker-content`},[de,Me,we])]})])}}const hz=Qe()(["value","valueType","type","format","formatter","lang","prefixClass","appendToBody","open","popupClass","popupStyle","confirm","confirmText","shortcuts","disabledDate","disabledTime","onOpen","onClose","onConfirm","onChange","onUpdate:open","onUpdate:value"]),cz=[...hz,...pC];var ZC=Fe(lz,cz);function Pn(o){var e=o,{value:t}=e,i=SD(e,["value"]);const a=se();return c.createVNode("button",ve(J({},i),{type:"button",class:`${a}-btn ${a}-btn-text ${a}-btn-icon-${t}`}),[c.createVNode("i",{class:`${a}-icon-${t}`},null)])}function yC({type:o,calendar:e,onUpdateCalendar:t},{slots:i}){var a;const n=se(),r=()=>{t(q7(e,y=>y-1))},l=()=>{t(q7(e,y=>y+1))},h=()=>{t(Yo(e,y=>y-1))},d=()=>{t(Yo(e,y=>y+1))},u=()=>{t(Yo(e,y=>y-10))},p=()=>{t(Yo(e,y=>y+10))};return c.createVNode("div",{class:`${n}-calendar-header`},[c.createVNode(Pn,{value:"double-left",onClick:o==="year"?u:h},null),o==="date"&&c.createVNode(Pn,{value:"left",onClick:r},null),c.createVNode(Pn,{value:"double-right",onClick:o==="year"?p:d},null),o==="date"&&c.createVNode(Pn,{value:"right",onClick:l},null),c.createVNode("span",{class:`${n}-calendar-header-label`},[(a=i.default)==null?void 0:a.call(i)])])}function dz({calendar:o,isWeekMode:e,showWeekNumber:t,titleFormat:i,getWeekActive:a,getCellClasses:n,onSelect:r,onUpdatePanel:l,onUpdateCalendar:h,onDateMouseEnter:d,onDateMouseLeave:u}){const p=se(),y=HD(),f=dC().value,{yearFormat:g,monthBeforeYear:k,monthFormat:v="MMM",formatLocale:m}=f,w=m.firstDayOfWeek||0;let M=f.days||m.weekdaysMin;M=M.concat(M).slice(w,w+7);const C=o.getFullYear(),S=o.getMonth(),L=cC(az({firstDayOfWeek:w,year:C,month:S}),7),H=(W,de)=>rC(W,de,{locale:f.formatLocale}),I=W=>{l(W)},z=W=>{const de=W.getAttribute("data-index"),[we,Me]=de.split(",").map(dn=>parseInt(dn,10)),cn=L[we][Me];return new Date(cn)},R=W=>{r(z(W.currentTarget))},j=W=>{d&&d(z(W.currentTarget))},P=W=>{u&&u(z(W.currentTarget))},Ee=c.createVNode("button",{type:"button",class:`${p}-btn ${p}-btn-text ${p}-btn-current-year`,onClick:()=>I("year")},[H(o,g)]),ee=c.createVNode("button",{type:"button",class:`${p}-btn ${p}-btn-text ${p}-btn-current-month`,onClick:()=>I("month")},[H(o,v)]);return t=typeof t=="boolean"?t:e,c.createVNode("div",{class:[`${p}-calendar ${p}-calendar-panel-date`,{[`${p}-calendar-week-mode`]:e}]},[c.createVNode(yC,{type:"date",calendar:o,onUpdateCalendar:h},{default:()=>[k?[ee,Ee]:[Ee,ee]]}),c.createVNode("div",{class:`${p}-calendar-content`},[c.createVNode("table",{class:`${p}-table ${p}-table-date`},[c.createVNode("thead",null,[c.createVNode("tr",null,[t&&c.createVNode("th",{class:`${p}-week-number-header`},null),M.map(W=>c.createVNode("th",{key:W},[W]))])]),c.createVNode("tbody",null,[L.map((W,de)=>c.createVNode("tr",{key:de,class:[`${p}-date-row`,{[`${p}-active-week`]:a(W)}]},[t&&c.createVNode("td",{class:`${p}-week-number`,"data-index":`${de},0`,onClick:R},[c.createVNode("div",null,[y(W[0])])]),W.map((we,Me)=>c.createVNode("td",{key:Me,class:["cell",n(we)],title:H(we,i),"data-index":`${de},${Me}`,onClick:R,onMouseenter:j,onMouseleave:P},[c.createVNode("div",null,[we.getDate()])]))]))])])])])}function uz({calendar:o,getCellClasses:e,onSelect:t,onUpdateCalendar:i,onUpdatePanel:a}){const n=se(),r=dC().value,l=r.months||r.formatLocale.monthsShort,h=u=>Fo(o.getFullYear(),u),d=u=>{const y=u.currentTarget.getAttribute("data-month");t(h(parseInt(y,10)))};return c.createVNode("div",{class:`${n}-calendar ${n}-calendar-panel-month`},[c.createVNode(yC,{type:"month",calendar:o,onUpdateCalendar:i},{default:()=>[c.createVNode("button",{type:"button",class:`${n}-btn ${n}-btn-text ${n}-btn-current-year`,onClick:()=>a("year")},[o.getFullYear()])]}),c.createVNode("div",{class:`${n}-calendar-content`},[c.createVNode("table",{class:`${n}-table ${n}-table-month`},[cC(l,3).map((u,p)=>c.createVNode("tr",{key:p},[u.map((y,f)=>{const g=p*3+f;return c.createVNode("td",{key:f,class:["cell",e(h(g))],"data-month":g,onClick:d},[c.createVNode("div",null,[y])])})]))])])])}const pz=o=>{const e=Math.floor(o.getFullYear()/10)*10,t=[];for(let i=0;i<10;i++)t.push(e+i);return cC(t,2)};function yz({calendar:o,getCellClasses:e=()=>[],getYearPanel:t=pz,onSelect:i,onUpdateCalendar:a}){const n=se(),r=p=>Fo(p,0),l=p=>{const f=p.currentTarget.getAttribute("data-year");i(r(parseInt(f,10)))},h=t(new Date(o)),d=h[0][0],u=$C($C(h));return c.createVNode("div",{class:`${n}-calendar ${n}-calendar-panel-year`},[c.createVNode(yC,{type:"year",calendar:o,onUpdateCalendar:a},{default:()=>[c.createVNode("span",null,[d]),c.createVNode("span",{class:`${n}-calendar-decade-separator`},null),c.createVNode("span",null,[u])]}),c.createVNode("div",{class:`${n}-calendar-content`},[c.createVNode("table",{class:`${n}-table ${n}-table-year`},[h.map((p,y)=>c.createVNode("tr",{key:y},[p.map((f,g)=>c.createVNode("td",{key:g,class:["cell",e(r(f))],"data-year":f,onClick:l},[c.createVNode("div",null,[f])]))]))])])])}function fz(o){const e=Oe(o,{defaultValue:Xe(new Date),type:"date",disabledDate:()=>!1,getClasses:()=>[],titleFormat:"YYYY-MM-DD"}),t=c.computed(()=>(Array.isArray(e.value)?e.value:[e.value]).filter(Be).map(w=>e.type==="year"?iz(w):e.type==="month"?YC(w):Xe(w))),i=c.ref(new Date);c.watchEffect(()=>{let m=e.calendar;if(!Be(m)){const{length:w}=t.value;m=e9(w>0?t.value[w-1]:e.defaultValue)}i.value=YC(m)});const a=m=>{var w;i.value=m,(w=e.onCalendarChange)==null||w.call(e,m)},n=c.ref("date");c.watchEffect(()=>{const m=["date","month","year"],w=Math.max(m.indexOf(e.type),m.indexOf(e.defaultPanel));n.value=w!==-1?m[w]:"date"});const r=m=>{var w;const M=n.value;n.value=m,(w=e.onPanelChange)==null||w.call(e,m,M)},l=m=>e.disabledDate(new Date(m),t.value),h=(m,w)=>{var M,C,S;if(!l(m))if((M=e.onPick)==null||M.call(e,m),e.multiple===!0){const L=t.value.filter(H=>H.getTime()!==m.getTime());L.length===t.value.length&&L.push(m),(C=e["onUpdate:value"])==null||C.call(e,L,w)}else(S=e["onUpdate:value"])==null||S.call(e,m,w)},d=m=>{h(m,e.type==="week"?"week":"date")},u=m=>{if(e.type==="year")h(m,"year");else if(a(m),r("month"),e.partialUpdate&&t.value.length===1){const w=Yo(t.value[0],m.getFullYear());h(w,"year")}},p=m=>{if(e.type==="month")h(m,"month");else if(a(m),r("date"),e.partialUpdate&&t.value.length===1){const w=q7(Yo(t.value[0],m.getFullYear()),m.getMonth());h(w,"month")}},y=(m,w=[])=>(l(m)?w.push("disabled"):t.value.some(M=>M.getTime()===m.getTime())&&w.push("active"),w.concat(e.getClasses(m,t.value,w.join(" ")))),f=m=>{const w=m.getMonth()!==i.value.getMonth(),M=[];return m.getTime()===new Date().setHours(0,0,0,0)&&M.push("today"),w&&M.push("not-current-month"),y(m,M)},g=m=>e.type!=="month"?i.value.getMonth()===m.getMonth()?"active":"":y(m),k=m=>e.type!=="year"?i.value.getFullYear()===m.getFullYear()?"active":"":y(m),v=m=>{if(e.type!=="week")return!1;const w=m[0].getTime(),M=m[6].getTime();return t.value.some(C=>{const S=C.getTime();return S>=w&&S<=M})};return()=>n.value==="year"?c.createVNode(yz,{calendar:i.value,getCellClasses:k,getYearPanel:e.getYearPanel,onSelect:u,onUpdateCalendar:a},null):n.value==="month"?c.createVNode(uz,{calendar:i.value,getCellClasses:g,onSelect:p,onUpdatePanel:r,onUpdateCalendar:a},null):c.createVNode(dz,{isWeekMode:e.type==="week",showWeekNumber:e.showWeekNumber,titleFormat:e.titleFormat,calendar:i.value,getCellClasses:f,getWeekActive:v,onSelect:d,onUpdatePanel:r,onUpdateCalendar:a,onDateMouseEnter:e.onDateMouseEnter,onDateMouseLeave:e.onDateMouseLeave},null)}const t9=Qe()(["type","value","defaultValue","defaultPanel","disabledDate","getClasses","calendar","multiple","partialUpdate","showWeekNumber","titleFormat","getYearPanel","onDateMouseEnter","onDateMouseLeave","onCalendarChange","onPanelChange","onUpdate:value","onPick"]);var i9=Fe(fz,t9);const XC=(o,e)=>{const t=o.getTime();let[i,a]=e.map(n=>n.getTime());return i>a&&([i,a]=[a,i]),t>i&&t<a};function mz(o){const e=Oe(o,{defaultValue:new Date,type:"date"}),t=se(),i=c.computed(()=>{let v=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return v=v.map(m=>Xe(m)),Oo(v)?v:[new Date,new Date].map(m=>Xe(m))}),a=c.ref([new Date(NaN),new Date(NaN)]);c.watchEffect(()=>{Oo(e.value)&&(a.value=e.value)});const n=(v,m)=>{var w;const[M,C]=a.value;Be(M)&&!Be(C)?(M.getTime()>v.getTime()?a.value=[v,M]:a.value=[M,v],(w=e["onUpdate:value"])==null||w.call(e,a.value,m)):a.value=[v,new Date(NaN)]},r=c.ref([new Date,new Date]),l=c.computed(()=>Oo(e.calendar)?e.calendar:r.value),h=c.computed(()=>e.type==="year"?10*12:e.type==="month"?1*12:1),d=(v,m)=>{var w;const M=oz(v[0],v[1]),C=h.value-M;if(C>0){const S=m===1?0:1;v[S]=q7(v[S],L=>L+(S===0?-C:C))}r.value=v,(w=e.onCalendarChange)==null||w.call(e,v,m)},u=v=>{d([v,l.value[1]],0)},p=v=>{d([l.value[0],v],1)};c.watchEffect(()=>{const v=Oo(e.value)?e.value:i.value;d(v.slice(0,2))});const y=c.ref(null),f=v=>y.value=v,g=()=>y.value=null,k=(v,m,w)=>{const M=e.getClasses?e.getClasses(v,m,w):[],C=Array.isArray(M)?M:[M];return/disabled|active/.test(w)?C:(m.length===2&&XC(v,m)&&C.push("in-range"),m.length===1&&y.value&&XC(v,[m[0],y.value])?C.concat("hover-in-range"):C)};return()=>{const v=l.value.map((m,w)=>{const M=ve(J({},e),{calendar:m,value:a.value,defaultValue:i.value[w],getClasses:k,partialUpdate:!1,multiple:!1,"onUpdate:value":n,onCalendarChange:w===0?u:p,onDateMouseLeave:g,onDateMouseEnter:f});return c.createVNode(i9,M,null)});return c.createVNode("div",{class:`${t}-calendar-range`},[v])}}const fC=t9;var mC=Fe(mz,fC);const rL=c.defineComponent({setup(o,{slots:e}){const t=se(),i=c.ref(),a=c.ref(""),n=c.ref(""),r=()=>{if(!i.value)return;const g=i.value,k=g.clientHeight*100/g.scrollHeight;a.value=k<100?`${k}%`:""};c.onMounted(r);const l=PD(),h=g=>{const k=g.currentTarget,{scrollHeight:v,scrollTop:m}=k;n.value=`${m*100/v}%`};let d=!1,u=0;const p=g=>{g.stopImmediatePropagation();const k=g.currentTarget,{offsetTop:v}=k;d=!0,u=g.clientY-v},y=g=>{if(!d||!i.value)return;const{clientY:k}=g,{scrollHeight:v,clientHeight:m}=i.value,M=(k-u)*v/m;i.value.scrollTop=M},f=()=>{d=!1};return c.onMounted(()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",f)}),c.onUnmounted(()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",f)}),()=>{var g;return c.createVNode("div",{class:`${t}-scrollbar`,style:{position:"relative",overflow:"hidden"}},[c.createVNode("div",{ref:i,class:`${t}-scrollbar-wrap`,style:{marginRight:`-${l}px`},onScroll:h},[(g=e.default)==null?void 0:g.call(e)]),c.createVNode("div",{class:`${t}-scrollbar-track`},[c.createVNode("div",{class:`${t}-scrollbar-thumb`,style:{height:a.value,top:n.value},onMousedown:p},null)])])}}});function gz({options:o,getClasses:e,onSelect:t}){const i=se(),a=n=>{const r=n.target,l=n.currentTarget;if(r.tagName.toUpperCase()!=="LI")return;const h=l.getAttribute("data-type"),d=parseInt(l.getAttribute("data-index"),10),u=parseInt(r.getAttribute("data-index"),10),p=o[d].list[u].value;t(p,h)};return c.createVNode("div",{class:`${i}-time-columns`},[o.map((n,r)=>c.createVNode(rL,{key:n.type,class:`${i}-time-column`},{default:()=>[c.createVNode("ul",{class:`${i}-time-list`,"data-index":r,"data-type":n.type,onClick:a},[n.list.map((l,h)=>c.createVNode("li",{key:l.text,"data-index":h,class:[`${i}-time-item`,e(l.value,n.type)]},[l.text]))])]}))])}function kz(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!c.isVNode(o)}function vz(o){let e;const t=se();return c.createVNode(rL,null,kz(e=o.options.map(i=>c.createVNode("div",{key:i.text,class:[`${t}-time-option`,o.getClasses(i.value,"time")],onClick:()=>o.onSelect(i.value,"time")},[i.text])))?e:{default:()=>[e]})}function y9({length:o,step:e=1,options:t}){if(Array.isArray(t))return t.filter(a=>a>=0&&a<o);e<=0&&(e=1);const i=[];for(let a=0;a<o;a+=e)i.push(a);return i}function bz(o,e){let{showHour:t,showMinute:i,showSecond:a,use12h:n}=e;const r=e.format||"HH:mm:ss";t=typeof t=="boolean"?t:/[HhKk]/.test(r),i=typeof i=="boolean"?i:/m/.test(r),a=typeof a=="boolean"?a:/s/.test(r),n=typeof n=="boolean"?n:/a/i.test(r);const l=[],h=n&&o.getHours()>=12;return t&&l.push({type:"hour",list:y9({length:n?12:24,step:e.hourStep,options:e.hourOptions}).map(d=>{const u=d===0&&n?"12":p9(d),p=new Date(o);return p.setHours(h?d+12:d),{value:p,text:u}})}),i&&l.push({type:"minute",list:y9({length:60,step:e.minuteStep,options:e.minuteOptions}).map(d=>{const u=new Date(o);return u.setMinutes(d),{value:u,text:p9(d)}})}),a&&l.push({type:"second",list:y9({length:60,step:e.secondStep,options:e.secondOptions}).map(d=>{const u=new Date(o);return u.setSeconds(d),{value:u,text:p9(d)}})}),n&&l.push({type:"ampm",list:["AM","PM"].map((d,u)=>{const p=new Date(o);return p.setHours(p.getHours()%12+u*12),{text:d,value:p}})}),l}function f9(o=""){const e=o.split(":");if(e.length>=2){const t=parseInt(e[0],10),i=parseInt(e[1],10);return{hours:t,minutes:i}}return null}function wz({date:o,option:e,format:t,formatDate:i}){const a=[];if(typeof e=="function")return e()||[];const n=f9(e.start),r=f9(e.end),l=f9(e.step),h=e.format||t;if(n&&r&&l){const d=n.minutes+n.hours*60,u=r.minutes+r.hours*60,p=l.minutes+l.hours*60,y=Math.floor((u-d)/p);for(let f=0;f<=y;f++){const g=d+f*p,k=Math.floor(g/60),v=g%60,m=new Date(o);m.setHours(k,v,0),a.push({value:m,text:i(m,h)})}}return a}const lL=(o,e,t=0)=>{if(t<=0){requestAnimationFrame(()=>{o.scrollTop=e});return}const a=(e-o.scrollTop)/t*10;requestAnimationFrame(()=>{const n=o.scrollTop+a;if(n>=e){o.scrollTop=e;return}o.scrollTop=n,lL(o,e,t-10)})};function Mz(o){const e=Oe(o,{defaultValue:Xe(new Date),format:"HH:mm:ss",timeTitleFormat:"YYYY-MM-DD",disabledTime:()=>!1,scrollDuration:100}),t=se(),i=dC(),a=(k,v)=>rC(k,v,{locale:i.value.formatLocale}),n=c.ref(new Date);c.watchEffect(()=>{n.value=e9(e.value,e.defaultValue)});const r=k=>Array.isArray(k)?k.every(v=>e.disabledTime(new Date(v))):e.disabledTime(new Date(k)),l=k=>{const v=new Date(k);return r([v.getTime(),v.setMinutes(0,0,0),v.setMinutes(59,59,999)])},h=k=>{const v=new Date(k);return r([v.getTime(),v.setSeconds(0,0),v.setSeconds(59,999)])},d=k=>{const v=new Date(k),m=v.getHours()<12?0:12,w=m+11;return r([v.getTime(),v.setHours(m,0,0,0),v.setHours(w,59,59,999)])},u=(k,v)=>v==="hour"?l(k):v==="minute"?h(k):v==="ampm"?d(k):r(k),p=(k,v)=>{var m;if(!u(k,v)){const w=new Date(k);n.value=w,r(w)||(m=e["onUpdate:value"])==null||m.call(e,w,v)}},y=(k,v)=>u(k,v)?"disabled":k.getTime()===n.value.getTime()?"active":"",f=c.ref(),g=k=>{if(!f.value)return;const v=f.value.querySelectorAll(".active");for(let m=0;m<v.length;m++){const w=v[m],M=uC(w,f.value);if(M){const C=w.offsetTop;lL(M,C,k)}}};return c.onMounted(()=>g(0)),c.watch(n,()=>g(e.scrollDuration),{flush:"post"}),()=>{let k;return e.timePickerOptions?k=c.createVNode(vz,{onSelect:p,getClasses:y,options:wz({date:n.value,format:e.format,option:e.timePickerOptions,formatDate:a})},null):k=c.createVNode(gz,{options:bz(n.value,e),onSelect:p,getClasses:y},null),c.createVNode("div",{class:`${t}-time`,ref:f},[e.showTimeHeader&&c.createVNode("div",{class:`${t}-time-header`},[c.createVNode("button",{type:"button",class:`${t}-btn ${t}-btn-text ${t}-time-header-title`,onClick:e.onClickTitle},[a(n.value,e.timeTitleFormat)])]),c.createVNode("div",{class:`${t}-time-content`},[k])])}}const a9=Qe()(["value","defaultValue","format","timeTitleFormat","showTimeHeader","disabledTime","timePickerOptions","hourOptions","minuteOptions","secondOptions","hourStep","minuteStep","secondStep","showHour","showMinute","showSecond","use12h","scrollDuration","onClickTitle","onUpdate:value"]);var bn=Fe(Mz,a9);function Cz(o){const e=Oe(o,{defaultValue:Xe(new Date),disabledTime:()=>!1}),t=se(),i=c.ref([new Date(NaN),new Date(NaN)]);c.watchEffect(()=>{Oo(e.value)?i.value=e.value:i.value=[new Date(NaN),new Date(NaN)]});const a=(d,u)=>{var p;(p=e["onUpdate:value"])==null||p.call(e,i.value,d==="time"?"time-range":d,u)},n=(d,u)=>{i.value[0]=d,i.value[1].getTime()>=d.getTime()||(i.value[1]=d),a(u,0)},r=(d,u)=>{i.value[1]=d,i.value[0].getTime()<=d.getTime()||(i.value[0]=d),a(u,1)},l=d=>e.disabledTime(d,0),h=d=>d.getTime()<i.value[0].getTime()||e.disabledTime(d,1);return()=>{const d=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return c.createVNode("div",{class:`${t}-time-range`},[c.createVNode(bn,ve(J({},e),{"onUpdate:value":n,value:i.value[0],defaultValue:d[0],disabledTime:l}),null),c.createVNode(bn,ve(J({},e),{"onUpdate:value":r,value:i.value[1],defaultValue:d[1],disabledTime:h}),null)])}}const gC=a9;var kC=Fe(Cz,gC);function hL(o){const e=c.ref(!1),t=()=>{var n;e.value=!1,(n=o.onShowTimePanelChange)==null||n.call(o,!1)},i=()=>{var n;e.value=!0,(n=o.onShowTimePanelChange)==null||n.call(o,!0)};return{timeVisible:c.computed(()=>typeof o.showTimePanel=="boolean"?o.showTimePanel:e.value),openTimePanel:i,closeTimePanel:t}}function xz(o){const e=Oe(o,{disabledTime:()=>!1,defaultValue:Xe(new Date)}),t=c.ref(e.value);c.watchEffect(()=>{t.value=e.value});const{openTimePanel:i,closeTimePanel:a,timeVisible:n}=hL(e),r=(l,h)=>{var d;h==="date"&&i();let u=B7(l,e9(e.value,e.defaultValue));if(e.disabledTime(new Date(u))&&(u=B7(l,e.defaultValue),e.disabledTime(new Date(u)))){t.value=u;return}(d=e["onUpdate:value"])==null||d.call(e,u,h)};return()=>{const l=se(),h=ve(J({},Pe(e,t9)),{multiple:!1,type:"date",value:t.value,"onUpdate:value":r}),d=ve(J({},Pe(e,a9)),{showTimeHeader:!0,value:t.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:a});return c.createVNode("div",{class:`${l}-date-time`},[c.createVNode(i9,h,null),n.value&&c.createVNode(bn,d,null)])}}const cL=Qe()(["showTimePanel","onShowTimePanelChange"]),Lz=[...cL,...t9,...a9];var dL=Fe(xz,Lz);function Ez(o){const e=Oe(o,{defaultValue:Xe(new Date),disabledTime:()=>!1}),t=c.ref(e.value);c.watchEffect(()=>{t.value=e.value});const{openTimePanel:i,closeTimePanel:a,timeVisible:n}=hL(e),r=(l,h)=>{var d;h==="date"&&i();const u=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];let p=l.map((y,f)=>{const g=Oo(e.value)?e.value[f]:u[f];return B7(y,g)});if(p[1].getTime()<p[0].getTime()&&(p=[p[0],p[0]]),p.some(e.disabledTime)&&(p=l.map((y,f)=>B7(y,u[f])),p.some(e.disabledTime))){t.value=p;return}(d=e["onUpdate:value"])==null||d.call(e,p,h)};return()=>{const l=se(),h=ve(J({},Pe(e,fC)),{type:"date",value:t.value,"onUpdate:value":r}),d=ve(J({},Pe(e,gC)),{showTimeHeader:!0,value:t.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:a});return c.createVNode("div",{class:`${l}-date-time-range`},[c.createVNode(mC,h,null),n.value&&c.createVNode(kC,d,null)])}}const Sz=[...cL,...gC,...fC];var uL=Fe(Ez,Sz);const Iz=Qe()(["range","open","appendToBody","clearable","confirm","disabled","editable","multiple","partialUpdate","showHour","showMinute","showSecond","showTimeHeader","showTimePanel","showWeekNumber","use12h"]),KC={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};function pL(o,{slots:e}){const t=o.type||"date",i=o.format||KC[t]||KC.date,a=ve(J({},BD(o,Iz)),{type:t,format:i});return c.createVNode(ZC,Pe(a,ZC.props),J({content:n=>{if(a.range){const r=t==="time"?kC:t==="datetime"?uL:mC;return c.h(r,Pe(J(J({},a),n),r.props))}else{const r=t==="time"?bn:t==="datetime"?dL:i9;return c.h(r,Pe(J(J({},a),n),r.props))}},"icon-calendar":()=>t==="time"?c.createVNode(ez,null,null):c.createVNode(sL,null,null)},e))}const Tz={locale:tL,install:o=>{o.component("DatePicker",pL)}};var X9=Object.assign(pL,Tz,{Calendar:i9,CalendarRange:mC,TimePanel:bn,TimeRange:kC,DateTime:dL,DateTimeRange:uL}),q=[{year:2e3,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2001,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2002,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2003,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2004,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2005,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2006,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2007,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2008,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2009,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2010,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2011,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2012,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2013,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2014,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2015,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2016,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2017,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2018,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2019,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2020,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2021,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2022,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2023,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2024,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2025,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2026,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2027,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2028,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2029,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2030,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2031,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2032,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2033,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2034,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2035,days:[30,32,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2036,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2037,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2038,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2039,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2040,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2041,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2042,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2043,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2044,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2045,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2046,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2047,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2048,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2049,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2050,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2051,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2052,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2053,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2054,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2055,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2056,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2057,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2058,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2059,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2060,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2061,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2062,days:[30,32,31,32,31,31,29,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2063,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2064,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2065,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2066,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2067,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2068,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2069,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2070,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2071,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2072,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2073,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2074,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2075,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2076,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2077,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2078,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2079,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2080,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2081,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2082,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2083,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2084,days:[31,31,32,31,31,30,30,30,29,30,30,30],totalDays:0,daysTillNow:0},{year:2085,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2086,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2087,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2088,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2089,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2090,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2091,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2092,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2093,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2094,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2095,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2096,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2097,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2098,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2099,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2100,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0}],JC=0;q.forEach(o=>{o.totalDays=o.days.reduce((e,t)=>e+t,0),JC+=o.totalDays,o.daysTillNow=JC});var qn=new Date(1943,3,14).getTime(),yL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],fL=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],mL=["आइतबार","सोमबार","मंगलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],gL=["आइत","सोम","मंगल","बुध","बिहि","शुक्र","शनि"],kL=["Baisakh","Jestha","Asar","Shrawan","Bhadra","Aswin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],vL=["Bai","Jes","Asa","Shr","Bhd","Asw","Kar","Man","Pou","Mag","Fal","Cha"],bL=["बैशाख","जेठ","असार","श्रावण","भाद्र","आश्विन","कार्तिक","मंसिर","पौष","माघ","फाल्गुण","चैत्र"],wL=["बै","जे","अ","श्रा","भा","आ","का","मं","पौ","मा","फा","चै"],Dz=["०","१","२","३","४","५","६","७","८","९"];function o9(o){return o<10?`0${o}`:`${o}`}function en(o){let e="";for(let t=0;t<o.length;t+=1)e+=Dz[o.charCodeAt(t)-48];return e}function zz(o){return e=>o<=2?String(e.getYear()).substring(2):o===3?String(e.getYear()).substring(1):String(e.getYear())}function Rz(o){return e=>o<=2?en(String(e.getYear()).substring(2)):en(o===3?String(e.getYear()).substring(1):String(e.getYear()))}function Hz(o){return e=>o===1?String(e.getMonth()+1):o===2?o9(e.getMonth()+1):o===3?vL[e.getMonth()]:kL[e.getMonth()]}function Az(o){return e=>o===1?en(String(e.getMonth()+1)):o===2?en(o9(e.getMonth()+1)):o===3?wL[e.getMonth()]:bL[e.getMonth()]}function Vz(o){return e=>o===1?String(e.getDate()):o===2?o9(e.getDate()):o===3?fL[e.getDay()]:yL[e.getDay()]}function Pz(o){return e=>o===1?en(String(e.getDate())):o===2?en(o9(e.getDate())):o===3?gL[e.getDay()]:mL[e.getDay()]}function QC(o){return()=>o}var K9={Y:zz,y:Rz,M:Hz,m:Az,D:Vz,d:Pz};function qz(o){return o in K9}function Bz(o){let e=!1,t="",i="",a=0,n=[];for(let r=0;r<o.length;r+=1){let l=o[r];if(l===i){a+=1;continue}if(i!==""&&(n.push(K9[i](a)),i="",a=0),l==='"'){e=!e;continue}!qz(l)||e?t+=l:(t&&(n.push(QC(t)),t=""),i=l,a=1)}return t?n.push(QC(t)):i&&n.push(K9[i](a)),n}function Fz(o,e){return Bz(e).map(t=>t(o)).join("")}function ex(o){let e=o.split(/[-./]/,3),[t,i=1,a=1]=e.map(r=>{let l=parseInt(r,10);if(Number.isNaN(l))throw new Error("Invalid date");return l});if(t<q[0].year||t>=q[0].year+q.length)throw new Error("Nepal year out of range");if(i<1||i>12)throw new Error("Invalid nepali month must be between 1 - 12");let n=q[t-q[0].year].days[i-1];if(a<1||a>n)throw new Error(`Invalid nepali date must be between 1 - ${n} in ${t} ${i}`);return[t,i-1,a]}var fe=class F{constructor(...e){E(this,"timestamp");E(this,"year");E(this,"month");E(this,"day");if(e.length===0)this.setEnglishDate(new Date);else if(e.length===1){let t=e[0];if(typeof t=="object")if(t instanceof Date)this.setEnglishDate(t);else if(t instanceof F)this.timestamp=t.timestamp,this.year=t.year,this.month=t.month,this.day=t.day;else throw new Error("Invalid date argument");else if(typeof t=="string")this.set(...ex(t));else if(typeof t=="number")this.setEnglishDate(new Date(t));else throw new Error("Invalid date argument")}else if(e.length===3)this.set(e[0],e[1],e[2]);else throw new Error("Invalid argument syntax")}setEnglishDate(e){this.timestamp=e;let t=Math.floor((this.timestamp.getTime()-qn)/864e5),i=Math.floor(t/366);for(;t>=q[i].daysTillNow;)i+=1;let a=q[i-1]?q[i-1].daysTillNow:0;t-=a;let n=q[i];for(this.year=n.year,this.month=0;t>=n.days[this.month];)this.month+=1,t-=n.days[this.month-1];this.day=t+1}getEnglishDate(){return this.timestamp}parse(e){this.set(...ex(e))}getYear(){return this.year}getMonth(){return this.month}getDate(){return this.day}getDay(){return this.timestamp.getDay()}getHours(){return this.timestamp.getHours()}getMinutes(){return this.timestamp.getMinutes()}getSeconds(){return this.timestamp.getSeconds()}getMilliseconds(){return this.timestamp.getMilliseconds()}getTime(){return this.timestamp.getTime()}setYear(e){this.set(e,this.month,this.day)}setMonth(e){this.set(this.year,e,this.day)}setDate(e){this.set(this.year,this.month,e)}set(e,t,i){let a=e+Math.floor(t/12)-q[0].year,n=q[a],r=n.daysTillNow-n.totalDays,l=t%12,h=l<0?12+l:l;for(let d=0;d<h;d+=1)r+=n.days[d];r+=i-1,this.setEnglishDate(new Date(qn+r*864e5))}format(e){return Fz(this,e)}toString(){return`${this.year}/${this.month+1}/${this.day}`}addDays(e){let t=new Date(this.timestamp.getTime()+e*864e5);return new F(t)}addMonths(e){let t=this.year,i=this.month+e;t+=Math.floor(i/12),i=i%12,i<0&&(i+=12,t-=1);let a=t-q[0].year;if(a<0||a>=q.length)throw new Error("Resulting date is out of supported range");let n=q[a].days[i],r=Math.min(this.day,n);return new F(t,i,r)}addYears(e){let t=this.year+e;if(t<q[0].year||t>=q[0].year+q.length)throw new Error("Resulting date is out of supported range");let i=t-q[0].year;if(this.month===11&&this.day===29){let a=q[i].days[11];if(a<29)return new F(t,11,a)}return new F(t,this.month,this.day)}static minimum(){return new Date(qn)}static maximum(){return new Date(qn+q[q.length-1].daysTillNow*864e5)}daysInMonth(){let e=this.year-q[0].year;return q[e].days[this.month]}isLeapYear(){let e=this.year-q[0].year;return q[e].totalDays===366}getWeeksInMonth(){let e=new F(this.year,this.month,1).getDay(),t=this.daysInMonth();return Math.ceil((e+t)/7)}diff(e,t){switch(t){case"day":return Math.floor((this.timestamp.getTime()-e.timestamp.getTime())/864e5);case"month":let i=this.year-e.year,a=this.month-e.month;return i*12+a;case"year":return this.year-e.year;default:throw new Error("Invalid unit for diff calculation")}}startOfDay(){let e=new Date(this.timestamp);return e.setHours(0,0,0,0),new F(e)}endOfDay(){let e=new Date(this.timestamp);return e.setHours(23,59,59,999),new F(e)}startOfWeek(e=0){if(e<0||e>6||!Number.isInteger(e))throw new Error("startOfWeek must be an integer between 0 and 6");let t=(this.getDay()-e+7)%7;return this.clone().startOfDay().addDays(-t)}endOfWeek(e=0){return this.startOfWeek(e).addDays(6).endOfDay()}startOfMonth(){return new F(this.year,this.month,1)}endOfMonth(){let e=this.daysInMonth();return new F(this.year,this.month,e).endOfDay()}startOfYear(){return new F(this.year,0,1)}endOfYear(){let e=this.year-q[0].year,t=q[e].days[11];return new F(this.year,11,t).endOfDay()}static getMonthName(e,t=!1,i=!1){if(e<0||e>11)throw new Error("Invalid month index, must be between 0-11");let a="";return i?a=t?wL[e]:bL[e]:a=t?vL[e]:kL[e],a}static getDayName(e,t=!1,i=!1){if(e<0||e>6)throw new Error("Invalid day index, must be between 0-6");let a="";return i?a=t?gL[e]:mL[e]:a=t?fL[e]:yL[e],a}static isValid(e,t,i){try{if(e<q[0].year||e>=q[0].year+q.length||t<0||t>11)return!1;let a=e-q[0].year,n=q[a].days[t];return!(i<1||i>n)}catch{return!1}}isValid(){return F.isValid(this.year,this.month,this.day)}static getCalendarDays(e,t){if(!F.isValid(e,t,1))throw new Error("Invalid year or month");let i={year:0,month:0,days:[]},a={year:0,month:0,days:[]},n={year:0,month:0,days:[]},r=e-q[0].year,l=new F(e,t,1).getDay(),h=q[r].days[t];a.year=e,a.month=t;let d=t-1,u=e,p=t+1,y=e;if(d<0&&(d=11,u--),u>q[0].year&&(i.year=u,i.month=d),u>=q[0].year&&l>0){let g=u-q[0].year,k=q[g].days[d];for(let v=0;v<l;v++)i.days.push(k-l+v+1)}for(let g=1;g<=h;g++)a.days.push(g);p>11&&(p=0,y++),y<q[0].year+q.length&&(n.year=y,n.month=p);let f=42-l-a.days.length;if(y<q[0].year+q.length&&f>0)for(let g=1;g<=f;g++)n.days.push(g);return{prevRemainingDays:l,prevMonth:i,currentMonth:a,nextMonth:n,remainingDays:f}}clone(){return new F(this)}isAfter(e){return this.timestamp.getTime()>e.timestamp.getTime()}isBefore(e){return this.timestamp.getTime()<e.timestamp.getTime()}isEqual(e){return this.year===e.year&&this.month===e.month&&this.day===e.day}isSame(e,t){switch(t){case"year":return this.year===e.year;case"month":return this.year===e.year&&this.month===e.month;case"day":return this.isEqual(e);default:throw new Error("Invalid unit for comparison")}}static getQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??new F().getYear(),a=(e-1)*3,n=new F(i,a,1),r=new F(i,a+2,1).endOfMonth();return{start:n,end:r}}getCurrentQuarter(){return Math.floor(this.month/3)+1}static getQuarters(e){let t=e??new F().getYear();return{Q1:F.getQuarter(1,t),Q2:F.getQuarter(2,t),Q3:F.getQuarter(3,t),Q4:F.getQuarter(4,t)}}static getCurrentFiscalYear(){let e=new F,t=e.getYear();return e.getMonth()<3?t-1:t}static getFiscalYearQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??F.getCurrentFiscalYear(),a=i,n=(e-1)*3+3;e===4&&(a=i+1,n=0),n>11&&(a++,n-=12);let r=n+2,l=a;r>11&&(l++,r-=12);let h=new F(a,n,1),d=new F(l,r,1).endOfMonth();return{start:h,end:d}}getCurrentFiscalYearQuarter(){let e=this.getMonth();return e>=3&&e<=5?1:e>=6&&e<=8?2:e>=9&&e<=11?3:4}getCurrentFiscalYearQuarterDates(){let e=this.getCurrentFiscalYearQuarter(),t=F.getCurrentFiscalYear();return F.getFiscalYearQuarter(e,t)}static getFiscalYearQuarters(e){let t=e??F.getCurrentFiscalYear();return{Q1:F.getFiscalYearQuarter(1,t),Q2:F.getFiscalYearQuarter(2,t),Q3:F.getFiscalYearQuarter(3,t),Q4:F.getFiscalYearQuarter(4,t)}}},je=o=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("Invalid date format. Expected format: YYYY-MM-DD");let e=new Date(o);if(Number.isNaN(e.getTime()))throw new Error(`Invalid date input '${o}'`);try{return new fe(e).format("YYYY-MM-DD")}catch(t){throw console.error("Error During Date Conversion : ",t),new Error("Failed to convert AD to BS")}};function he(o){try{if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("Invalid date format. Expected format: YYYY-MM-DD");let e=o?new fe(o):new fe,t=a=>a<10?`0${a}`:`${a}`,i=e.getEnglishDate();return`${i.getFullYear()}-${t(i.getMonth()+1)}-${t(i.getDate())}`}catch(e){throw console.error("Error During Date Conversion : ",e),new Error("Failed to convert BS to AD")}}var Oz=Object.defineProperty,jz=(o,e,t)=>e in o?Oz(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Bn=(o,e,t)=>jz(o,typeof e!="symbol"?e+"":e,t),A=[{year:2e3,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2001,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2002,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2003,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2004,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2005,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2006,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2007,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2008,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2009,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2010,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2011,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2012,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2013,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2014,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2015,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2016,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2017,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2018,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2019,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2020,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2021,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2022,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2023,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2024,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2025,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2026,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2027,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2028,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2029,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2030,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2031,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2032,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2033,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2034,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2035,days:[30,32,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2036,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2037,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2038,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2039,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2040,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2041,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2042,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2043,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2044,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2045,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2046,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2047,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2048,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2049,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2050,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2051,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2052,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2053,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2054,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2055,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2056,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2057,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2058,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2059,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2060,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2061,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2062,days:[30,32,31,32,31,31,29,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2063,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2064,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2065,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2066,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2067,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2068,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2069,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2070,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2071,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2072,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2073,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2074,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2075,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2076,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2077,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2078,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2079,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2080,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2081,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2082,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2083,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2084,days:[31,31,32,31,31,30,30,30,29,30,30,30],totalDays:0,daysTillNow:0},{year:2085,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2086,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2087,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2088,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2089,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2090,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2091,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2092,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2093,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2094,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2095,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2096,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2097,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2098,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2099,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2100,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0}],tx=0;A.forEach(o=>{o.totalDays=o.days.reduce((e,t)=>e+t,0),tx+=o.totalDays,o.daysTillNow=tx});var Fn=new Date(1943,3,14).getTime(),ML=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],F7=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],CL=["आइतबार","सोमबार","मंगलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],xL=["आइत","सोम","मंगल","बुध","बिहि","शुक्र","शनि"],vC=["Baisakh","Jestha","Asar","Shrawan","Bhadra","Aswin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],LL=["Bai","Jes","Asa","Shr","Bhd","Asw","Kar","Man","Pou","Mag","Fal","Cha"],EL=["बैशाख","जेठ","असार","श्रावण","भाद्र","आश्विन","कार्तिक","मंसिर","पौष","माघ","फाल्गुण","चैत्र"],SL=["बै","जे","अ","श्रा","भा","आ","का","मं","पौ","मा","फा","चै"],Nz=["०","१","२","३","४","५","६","७","८","९"];function n9(o){return o<10?`0${o}`:`${o}`}function tn(o){let e="";for(let t=0;t<o.length;t+=1)e+=Nz[o.charCodeAt(t)-48];return e}function _z(o){return e=>o<=2?String(e.getYear()).substring(2):o===3?String(e.getYear()).substring(1):String(e.getYear())}function Wz(o){return e=>o<=2?tn(String(e.getYear()).substring(2)):tn(o===3?String(e.getYear()).substring(1):String(e.getYear()))}function Uz(o){return e=>o===1?String(e.getMonth()+1):o===2?n9(e.getMonth()+1):o===3?LL[e.getMonth()]:vC[e.getMonth()]}function $z(o){return e=>o===1?tn(String(e.getMonth()+1)):o===2?tn(n9(e.getMonth()+1)):o===3?SL[e.getMonth()]:EL[e.getMonth()]}function Gz(o){return e=>o===1?String(e.getDate()):o===2?n9(e.getDate()):o===3?F7[e.getDay()]:ML[e.getDay()]}function Yz(o){return e=>o===1?tn(String(e.getDate())):o===2?tn(n9(e.getDate())):o===3?xL[e.getDay()]:CL[e.getDay()]}function ix(o){return()=>o}var J9={Y:_z,y:Wz,M:Uz,m:$z,D:Gz,d:Yz};function Zz(o){return o in J9}function Xz(o){let e=!1,t="",i="",a=0,n=[];for(let r=0;r<o.length;r+=1){let l=o[r];if(l===i){a+=1;continue}if(i!==""&&(n.push(J9[i](a)),i="",a=0),l==='"'){e=!e;continue}!Zz(l)||e?t+=l:(t&&(n.push(ix(t)),t=""),i=l,a=1)}return t?n.push(ix(t)):i&&n.push(J9[i](a)),n}function Kz(o,e){return Xz(e).map(t=>t(o)).join("")}function ax(o){let e=o.split(/[-./]/,3),[t,i=1,a=1]=e.map(r=>{let l=parseInt(r,10);if(Number.isNaN(l))throw new Error("Invalid date");return l});if(t<A[0].year||t>=A[0].year+A.length)throw new Error("Nepal year out of range");if(i<1||i>12)throw new Error("Invalid nepali month must be between 1 - 12");let n=A[t-A[0].year].days[i-1];if(a<1||a>n)throw new Error(`Invalid nepali date must be between 1 - ${n} in ${t} ${i}`);return[t,i-1,a]}var Y=class O{constructor(...e){if(Bn(this,"timestamp"),Bn(this,"year"),Bn(this,"month"),Bn(this,"day"),e.length===0)this.setEnglishDate(new Date);else if(e.length===1){let t=e[0];if(typeof t=="object")if(t instanceof Date)this.setEnglishDate(t);else if(t instanceof O)this.timestamp=t.timestamp,this.year=t.year,this.month=t.month,this.day=t.day;else throw new Error("Invalid date argument");else if(typeof t=="string")this.set(...ax(t));else if(typeof t=="number")this.setEnglishDate(new Date(t));else throw new Error("Invalid date argument")}else if(e.length===3)this.set(e[0],e[1],e[2]);else throw new Error("Invalid argument syntax")}setEnglishDate(e){this.timestamp=e;let t=Math.floor((this.timestamp.getTime()-Fn)/864e5),i=Math.floor(t/366);for(;t>=A[i].daysTillNow;)i+=1;let a=A[i-1]?A[i-1].daysTillNow:0;t-=a;let n=A[i];for(this.year=n.year,this.month=0;t>=n.days[this.month];)this.month+=1,t-=n.days[this.month-1];this.day=t+1}getEnglishDate(){return this.timestamp}parse(e){this.set(...ax(e))}getYear(){return this.year}getMonth(){return this.month}getDate(){return this.day}getDay(){return this.timestamp.getDay()}getHours(){return this.timestamp.getHours()}getMinutes(){return this.timestamp.getMinutes()}getSeconds(){return this.timestamp.getSeconds()}getMilliseconds(){return this.timestamp.getMilliseconds()}getTime(){return this.timestamp.getTime()}setYear(e){this.set(e,this.month,this.day)}setMonth(e){this.set(this.year,e,this.day)}setDate(e){this.set(this.year,this.month,e)}set(e,t,i){let a=e+Math.floor(t/12)-A[0].year,n=A[a],r=n.daysTillNow-n.totalDays,l=t%12,h=l<0?12+l:l;for(let d=0;d<h;d+=1)r+=n.days[d];r+=i-1,this.setEnglishDate(new Date(Fn+r*864e5))}format(e){return Kz(this,e)}toString(){return`${this.year}/${this.month+1}/${this.day}`}addDays(e){let t=new Date(this.timestamp.getTime()+e*864e5);return new O(t)}addMonths(e){let t=this.year,i=this.month+e;t+=Math.floor(i/12),i=i%12,i<0&&(i+=12,t-=1);let a=t-A[0].year;if(a<0||a>=A.length)throw new Error("Resulting date is out of supported range");let n=A[a].days[i],r=Math.min(this.day,n);return new O(t,i,r)}addYears(e){let t=this.year+e;if(t<A[0].year||t>=A[0].year+A.length)throw new Error("Resulting date is out of supported range");let i=t-A[0].year;if(this.month===11&&this.day===29){let a=A[i].days[11];if(a<29)return new O(t,11,a)}return new O(t,this.month,this.day)}static minimum(){return new Date(Fn)}static maximum(){return new Date(Fn+A[A.length-1].daysTillNow*864e5)}daysInMonth(){let e=this.year-A[0].year;return A[e].days[this.month]}isLeapYear(){let e=this.year-A[0].year;return A[e].totalDays===366}getWeeksInMonth(){let e=new O(this.year,this.month,1).getDay(),t=this.daysInMonth();return Math.ceil((e+t)/7)}diff(e,t){switch(t){case"day":return Math.floor((this.timestamp.getTime()-e.timestamp.getTime())/864e5);case"month":let i=this.year-e.year,a=this.month-e.month;return i*12+a;case"year":return this.year-e.year;default:throw new Error("Invalid unit for diff calculation")}}startOfDay(){let e=new Date(this.timestamp);return e.setHours(0,0,0,0),new O(e)}endOfDay(){let e=new Date(this.timestamp);return e.setHours(23,59,59,999),new O(e)}startOfWeek(e=0){if(e<0||e>6||!Number.isInteger(e))throw new Error("startOfWeek must be an integer between 0 and 6");let t=(this.getDay()-e+7)%7;return this.clone().startOfDay().addDays(-t)}endOfWeek(e=0){return this.startOfWeek(e).addDays(6).endOfDay()}startOfMonth(){return new O(this.year,this.month,1)}endOfMonth(){let e=this.daysInMonth();return new O(this.year,this.month,e).endOfDay()}startOfYear(){return new O(this.year,0,1)}endOfYear(){let e=this.year-A[0].year,t=A[e].days[11];return new O(this.year,11,t).endOfDay()}static getMonthName(e,t=!1,i=!1){if(e<0||e>11)throw new Error("Invalid month index, must be between 0-11");let a="";return i?a=t?SL[e]:EL[e]:a=t?LL[e]:vC[e],a}static getDayName(e,t=!1,i=!1){if(e<0||e>6)throw new Error("Invalid day index, must be between 0-6");let a="";return i?a=t?xL[e]:CL[e]:a=t?F7[e]:ML[e],a}static isValid(e,t,i){try{if(e<A[0].year||e>=A[0].year+A.length||t<0||t>11)return!1;let a=e-A[0].year,n=A[a].days[t];return!(i<1||i>n)}catch{return!1}}isValid(){return O.isValid(this.year,this.month,this.day)}static getCalendarDays(e,t){if(!O.isValid(e,t,1))throw new Error("Invalid year or month");let i={year:0,month:0,days:[]},a={year:0,month:0,days:[]},n={year:0,month:0,days:[]},r=e-A[0].year,l=new O(e,t,1).getDay(),h=A[r].days[t];a.year=e,a.month=t;let d=t-1,u=e,p=t+1,y=e;if(d<0&&(d=11,u--),u>A[0].year&&(i.year=u,i.month=d),u>=A[0].year&&l>0){let g=u-A[0].year,k=A[g].days[d];for(let v=0;v<l;v++)i.days.push(k-l+v+1)}for(let g=1;g<=h;g++)a.days.push(g);p>11&&(p=0,y++),y<A[0].year+A.length&&(n.year=y,n.month=p);let f=42-l-a.days.length;if(y<A[0].year+A.length&&f>0)for(let g=1;g<=f;g++)n.days.push(g);return{prevRemainingDays:l,prevMonth:i,currentMonth:a,nextMonth:n,remainingDays:f}}clone(){return new O(this)}isAfter(e){return this.timestamp.getTime()>e.timestamp.getTime()}isBefore(e){return this.timestamp.getTime()<e.timestamp.getTime()}isEqual(e){return this.year===e.year&&this.month===e.month&&this.day===e.day}isSame(e,t){switch(t){case"year":return this.year===e.year;case"month":return this.year===e.year&&this.month===e.month;case"day":return this.isEqual(e);default:throw new Error("Invalid unit for comparison")}}static getQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??new O().getYear(),a=(e-1)*3,n=new O(i,a,1),r=new O(i,a+2,1).endOfMonth();return{start:n,end:r}}getCurrentQuarter(){return Math.floor(this.month/3)+1}static getQuarters(e){let t=e??new O().getYear();return{Q1:O.getQuarter(1,t),Q2:O.getQuarter(2,t),Q3:O.getQuarter(3,t),Q4:O.getQuarter(4,t)}}static getCurrentFiscalYear(){let e=new O,t=e.getYear();return e.getMonth()<3?t-1:t}static getFiscalYearQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??O.getCurrentFiscalYear(),a=i,n=(e-1)*3+3;e===4&&(a=i+1,n=0),n>11&&(a++,n-=12);let r=n+2,l=a;r>11&&(l++,r-=12);let h=new O(a,n,1),d=new O(l,r,1).endOfMonth();return{start:h,end:d}}getCurrentFiscalYearQuarter(){let e=this.getMonth();return e>=3&&e<=5?1:e>=6&&e<=8?2:e>=9&&e<=11?3:4}getCurrentFiscalYearQuarterDates(){let e=this.getCurrentFiscalYearQuarter(),t=O.getCurrentFiscalYear();return O.getFiscalYearQuarter(e,t)}static getFiscalYearQuarters(e){let t=e??O.getCurrentFiscalYear();return{Q1:O.getFiscalYearQuarter(1,t),Q2:O.getFiscalYearQuarter(2,t),Q3:O.getFiscalYearQuarter(3,t),Q4:O.getFiscalYearQuarter(4,t)}}};const Jz=["placeholder","id"],Qz={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},eR=["id"],tR={class:"calendar__body"},iR={class:"calendar__head"},aR={class:"calendar__header_label"},oR={key:0},nR={key:2},sR={key:4},rR={class:"calendar__container"},lR={key:0},hR={class:"calendar__weeks"},cR={class:"calendar__days"},dR=["title","onClick"],uR=["title","onClick"],pR=["title","onClick"],yR=["onClick"],fR=["onClick"],On=10,mR=c.defineComponent({__name:"NepaliDatePicker",props:{modelValue:{type:String,default:""},yearSelect:{type:Boolean,default:!0},monthSelect:{type:Boolean,default:!0},class:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:modelValue","onSelect"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue?new Y(t.modelValue):new Y),n=c.ref(!1),r=c.ref(t.modelValue),l=c.ref(null),h=c.ref(null),d=c.ref(null),u=c.ref(null),p=c.ref(t.modelValue?new Y(t.modelValue).getYear():new Y().getYear()),y=c.ref(t.modelValue?new Y(t.modelValue).getMonth():new Y().getMonth()),f=c.ref(!1),g=c.ref(!1),k=c.ref(A[0].year),v=c.ref(A.length+A[0].year-1),m=c.ref(0);c.watch(()=>t.modelValue,()=>{r.value=t.modelValue,p.value=t.modelValue?new Y(t.modelValue).getYear():new Y().getYear(),y.value=t.modelValue?new Y(t.modelValue).getMonth():new Y().getMonth(),a.value=t.modelValue?new Y(t.modelValue):new Y});const w=c.computed(()=>a.value.year==k.value&&a.value.month==0?[]:(A.forEach(T=>{let x=a.value.year,D=a.value.month-1;M.value[0].month==0&&(x=x-1,D=11),T.year===x&&T.days.forEach((te,Se)=>{Se===D&&(h.value=te)})}),Array(h.value).fill(null).map((T,x)=>new Y(a.value.year,a.value.month-1,x+1)).slice(-(S.value?S.value:0)))),M=c.computed(()=>(A.forEach(T=>{T.year===a.value.year&&T.days.forEach((x,D)=>{D===a.value.month&&(l.value=x)})}),Array(l.value).fill(null).map((T,x)=>new Y(a.value.year,a.value.month,x+1)))),C=c.computed(()=>a.value.year==v.value&&a.value.month==11?[]:(A.forEach(T=>{let x=a.value.year,D=a.value.month+1;M.value[0].month==11&&(x=x+1,D=0),T.year===x&&T.days.forEach((te,Se)=>{Se===D&&(d.value=te)})}),Array(d.value).fill(null).map((T,x)=>new Y(a.value.year,a.value.month+1,x+1)).slice(0,L.value))),S=c.computed(()=>{const T=new Y(p.value,y.value,1);return F7.forEach((x,D)=>{T.format("DDD")==="Su"?u.value=7:T.format("DDD")===x&&(u.value=D)}),u.value}),L=c.computed(()=>42-M.value.length-(S.value?S.value:0)),H=()=>{if(g.value=!g.value,f.value=!1,g.value){const T=a.value.year,x=A.findIndex(D=>D.year===T);m.value=Math.floor(x/On)}},I=(T,x)=>{T?n.value=!0:x?n.value=!1:n.value=!n.value,n.value?document.addEventListener("click",Rn):(document.removeEventListener("click",Rn),VC())},z=()=>{f.value=!f.value,g.value=!1},R=()=>{let T=a.value.month+1,x=a.value.year;T>11&&(x++,T=0),x+1<k.value||x>v.value||(Dn(T,x),a.value=new Y(x,T,1))},j=()=>{if(g.value)m.value<cn.value-1&&m.value++;else{let T=a.value.month,x=a.value.year+1;x<k.value||x>v.value||(Dn(T,x),a.value=new Y(x,T,1))}},P=()=>{let T=a.value.month-1,x=a.value.year;T<0&&(x--,T=11),x<k.value||x>v.value||(Dn(T,x),a.value=new Y(x,T,1))},Ee=()=>{if(g.value)m.value>0&&m.value--;else{let T=a.value.month,x=a.value.year-1;x<k.value||x>v.value||(Dn(T,x),a.value=new Y(x,T,1))}},ee=T=>t.modelValue?new Y(t.modelValue).getTime()===T.getTime():!1,W=T=>a.value.month==T,de=T=>a.value.year==T,we=T=>{const x=new Y;return T.day===x.day&&T.year===x.year&&T.month===x.month},Me=c.computed(()=>{const T=A.map(D=>D.year),x=m.value*On;return T.slice(x,x+On)}),cn=c.computed(()=>Math.ceil(A.length/On)),dn=T=>{let x="";const D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",te=D.length;let Se=0;for(;Se<T;)x+=D.charAt(Math.floor(Math.random()*te)),Se+=1;return x},un=dn(3)+dn(3)+dn(3),Dn=(T,x)=>{y.value=T,p.value=x},EE=T=>{y.value=T,a.value.setMonth(T),f.value=!1},SE=T=>{p.value=T,a.value.setYear(T),g.value=!1,t.monthSelect&&(f.value=!0)},zn=T=>{a.value=T,r.value=a.value.format("YYYY-MM-DD"),i("update:modelValue",r.value),i("onSelect",r.value),I()},IE=()=>{/^\d{4}-\d{2}-\d{2}$/.test(r.value)||(r.value=t.modelValue);try{const T=new Y(r.value);zn(T)}catch{r.value=t.modelValue}},Rn=T=>{const x=document.getElementById("nepali-calendar-"+un),D=document.getElementById("nepali-date-input-"+un);x&&!x.contains(T.target)&&D&&!D.contains(T.target)&&(n.value=!1,VC(),document.removeEventListener("click",Rn))},VC=()=>{f.value=!1,g.value=!1,a.value=t.modelValue?new Y(t.modelValue):new Y},TE=()=>{f.value=!1,g.value=!1,a.value=new Y,i("update:modelValue",""),i("onSelect",""),I(!1,!0)};return c.onUnmounted(()=>{document.removeEventListener("click",Rn)}),(T,x)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["nepali-datepicker",t.class]),key:un},[c.createElementVNode("div",{class:c.normalizeClass(["calendar-input-div",o.modelValue?"calendar-input-contain-value":""])},[c.withDirectives(c.createElementVNode("input",{type:"text",class:"calendar-input",onClick:x[0]||(x[0]=D=>I(!0)),"onUpdate:modelValue":x[1]||(x[1]=D=>r.value=D),placeholder:o.placeholder,"aria-haspopup":"true",id:"nepali-date-input-"+un,onKeyup:x[2]||(x[2]=c.withKeys(D=>IE(),["enter"]))},null,40,Jz),[[c.vModelText,r.value]]),c.createElementVNode("div",{class:"calendar-input-icon calender-icon",onClick:x[3]||(x[3]=c.withModifiers(D=>I(!0),["stop"]))},[n.value&&o.modelValue?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("svg",Qz,x[11]||(x[11]=[c.createElementVNode("path",{d:"M940.218 107.055H730.764v-60.51H665.6v60.51H363.055v-60.51H297.89v60.51H83.78c-18.617 0-32.581 13.963-32.581 32.581v805.237c0 18.618 13.964 32.582 32.582 32.582h861.09c18.619 0 32.583-13.964 32.583-32.582V139.636c-4.655-18.618-18.619-32.581-37.237-32.581zm-642.327 65.163v60.51h65.164v-60.51h307.2v60.51h65.163v-60.51h176.873v204.8H116.364v-204.8H297.89zM116.364 912.291V442.18H912.29v470.11H116.364z"},null,-1)])))]),o.modelValue?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["calendar-input-icon",n.value?"":"calendar-clear-input"]),onClick:x[4]||(x[4]=c.withModifiers(D=>TE(),["stop"]))},x[12]||(x[12]=[c.createElementVNode("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c.createElementVNode("path",{id:"Vector",d:"M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)):c.createCommentVNode("",!0)],2),c.createVNode(c.Transition,{name:"calendar-animation"},{default:c.withCtx(()=>[n.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["calendar",{show:n.value}]),id:"nepali-calendar-"+un,style:{"user-select":"none"}},[c.createElementVNode("div",tR,[c.createElementVNode("div",iR,[c.createElementVNode("div",null,[c.createElementVNode("button",{class:"calendar__toggle_button",onClick:x[5]||(x[5]=D=>Ee())},x[13]||(x[13]=[c.createElementVNode("i",{class:"calendar-icon-double-left"},null,-1)])),!f.value&&!g.value?(c.openBlock(),c.createElementBlock("button",{key:0,class:"calendar__toggle_button",onClick:x[6]||(x[6]=D=>P())},x[14]||(x[14]=[c.createElementVNode("i",{class:"calendar-icon-left"},null,-1)]))):c.createCommentVNode("",!0)]),c.createElementVNode("div",aR,[o.monthSelect?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",oR,c.toDisplayString(a.value.format("MMMM")),1)),!f.value&&!g.value&&o.monthSelect?(c.openBlock(),c.createElementBlock("a",{key:1,class:"calendar__header_selector",onClick:c.withModifiers(z,["stop"])},c.toDisplayString(a.value.format("MMMM")),1)):c.createCommentVNode("",!0),o.yearSelect?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",nR,c.toDisplayString(a.value.format("YYYY")),1)),!g.value&&o.yearSelect?(c.openBlock(),c.createElementBlock("a",{key:3,class:"calendar__header_selector",onClick:c.withModifiers(H,["stop"])},c.toDisplayString(a.value.format("YYYY")),1)):c.createCommentVNode("",!0),g.value&&o.yearSelect?(c.openBlock(),c.createElementBlock("a",sR,c.toDisplayString(Me.value[0])+" ~ "+c.toDisplayString(Me.value[Me.value.length-1]),1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",null,[!f.value&&!g.value?(c.openBlock(),c.createElementBlock("button",{key:0,class:"calendar__toggle_button",onClick:x[7]||(x[7]=D=>R())},x[15]||(x[15]=[c.createElementVNode("i",{class:"calendar-icon-right"},null,-1)]))):c.createCommentVNode("",!0),c.createElementVNode("button",{class:"calendar__toggle_button",onClick:x[8]||(x[8]=D=>j())},x[16]||(x[16]=[c.createElementVNode("i",{class:"calendar-icon-double-right"},null,-1)]))])]),c.createElementVNode("div",rR,[!f.value&&!g.value?(c.openBlock(),c.createElementBlock("div",lR,[c.createElementVNode("div",hR,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(F7),(D,te)=>(c.openBlock(),c.createElementBlock("div",{key:te,class:"calendar__weekday"},c.toDisplayString(D),1))),128))]),c.createElementVNode("div",cR,[a.value.year==k.value&&a.value.month==0?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(S.value,D=>(c.openBlock(),c.createElementBlock("div",{class:"calendar__day_spacer",key:D}))),128)):c.createCommentVNode("",!0),S.value?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(w.value,(D,te)=>(c.openBlock(),c.createElementBlock("div",{key:te,class:"calendar__day not_current_month",title:`${D.year}-${D.month+1}-${D.day}`,onClick:Se=>zn(D)},[c.createElementVNode("span",null,c.toDisplayString(D.day),1)],8,dR))),128)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(M.value,(D,te)=>(c.openBlock(),c.createElementBlock("div",{key:te,class:c.normalizeClass(["calendar__day",{selected:ee(D),today:we(D)}]),title:`${D.year}-${D.month+1}-${D.day}`,onClick:Se=>zn(D)},[c.createElementVNode("span",null,c.toDisplayString(D.day),1)],10,uR))),128)),S.value?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:2},c.renderList(C.value,(D,te)=>(c.openBlock(),c.createElementBlock("div",{key:te,class:"calendar__day not_current_month",title:`${D.year}-${D.month+1}-${D.day}`,onClick:Se=>zn(D)},[c.createElementVNode("span",null,c.toDisplayString(D.day),1)],8,pR))),128)):c.createCommentVNode("",!0),a.value.year==v.value&&a.value.month==11?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:3},c.renderList(L.value,D=>(c.openBlock(),c.createElementBlock("div",{class:"calendar__day_spacer",key:D}))),128)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),f.value?(c.openBlock(),c.createElementBlock("div",{key:1,class:"calendar__months",onClick:x[9]||(x[9]=c.withModifiers(()=>{},["stop"]))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(vC),(D,te)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["calendar_month",{selected:W(te)}]),onClick:Se=>EE(te)},c.toDisplayString(D),11,yR))),256))])):c.createCommentVNode("",!0),g.value?(c.openBlock(),c.createElementBlock("div",{key:2,class:"calendar__years",onClick:x[10]||(x[10]=c.withModifiers(()=>{},["stop"]))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(Me.value,D=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["calendar__year",{selected:de(D)}]),onClick:te=>SE(D)},c.toDisplayString(D),11,fR))),256))])):c.createCommentVNode("",!0)])])],10,eR)):c.createCommentVNode("",!0)]),_:1})],2))}}),gR=(o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t},Q9=gR(mR,[["__scopeId","data-v-2be2f4ff"]]),kR={class:"flex gap-[5px]"},vR={key:2},bR=["value","disabled"],wR=c.defineComponent({__name:"DateSelector",props:{modelValue:{default:""},inputWidth:{default:120},isBS:{type:Boolean,default:!1},showToggle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","update:isBS"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(""),n=c.ref(t.isBS);c.watch(()=>t.modelValue,l=>{/^\d{4}-\d{2}-\d{2}$/.test(l)?l!==a.value&&(a.value=n.value?l?je(l):"":l):i("update:modelValue",n.value?a.value?he(a.value):"":a.value)},{immediate:!0}),c.watch(()=>a.value,l=>{i("update:modelValue",n.value?l?he(l):"":l)});const r=()=>{n.value?a.value=a.value?je(a.value):"":a.value=a.value?he(a.value):""};return c.watch(()=>t.isBS,l=>{l!==n.value&&(n.value=l)}),c.watch(()=>n.value,l=>{i("update:isBS",l),r()}),(l,h)=>(c.openBlock(),c.createElementBlock("div",kR,[!n.value&&!l.disabled?(c.openBlock(),c.createBlock(c.unref(X9),{key:0,value:a.value,"onUpdate:value":h[0]||(h[0]=d=>a.value=d),valueType:"YYYY-MM-DD",style:c.normalizeStyle(`width: ${l.inputWidth}px; min-width: ${l.inputWidth}px; max-width: ${l.inputWidth}px`)},null,8,["value","style"])):!n.value&&!l.disabled?(c.openBlock(),c.createBlock(c.unref(Q9),{key:1,modelValue:a.value,"onUpdate:modelValue":h[1]||(h[1]=d=>a.value=d),style:c.normalizeStyle(`width: ${l.inputWidth}px; min-width: ${l.inputWidth}px; max-width: ${l.inputWidth}px`)},null,8,["modelValue","style"])):l.disabled?(c.openBlock(),c.createElementBlock("div",vR,[c.createElementVNode("input",{type:"text",name:"",id:"",value:a.value,disabled:l.disabled,style:c.normalizeStyle(`width: ${l.inputWidth}px; min-width: ${l.inputWidth}px; max-width: ${l.inputWidth}px`)},null,12,bR)])):c.createCommentVNode("",!0),l.showToggle?(c.openBlock(),c.createBlock(oC,{key:3,modelValue:n.value,"onUpdate:modelValue":h[2]||(h[2]=d=>n.value=d),onText:"BS",offText:"AD"},null,8,["modelValue"])):c.createCommentVNode("",!0)]))}});function m9(o){return o===0?!1:Array.isArray(o)&&o.length===0?!0:!o}function MR(o){return(...e)=>!o(...e)}function CR(o,e){return o===void 0&&(o="undefined"),o===null&&(o="null"),o===!1&&(o="false"),o.toString().toLowerCase().indexOf(e.trim())!==-1}function xR(o){return o.filter(e=>!e.$isLabel)}function g9(o,e){return t=>t.reduce((i,a)=>a[o]&&a[o].length?(i.push({$groupLabel:a[e],$isLabel:!0}),i.concat(a[o])):i,[])}const ox=(...o)=>e=>o.reduce((t,i)=>i(t),e);var LR={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(o,e){return m9(o)?"":e?o[e]:o}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const o=this.search||"",e=o.toLowerCase().trim();let t=this.options.concat();return this.internalSearch?t=this.groupValues?this.filterAndFlat(t,e,this.label):this.filterOptions(t,e,this.label,this.customLabel):t=this.groupValues?g9(this.groupValues,this.groupLabel)(t):t,t=this.hideSelected?t.filter(MR(this.isSelected)):t,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?t.push({isTag:!0,label:o}):t.unshift({isTag:!0,label:o})),t.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(o=>o[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(o,e,t){return ox(this.filterGroups(e,t,this.groupValues,this.groupLabel,this.customLabel),g9(this.groupValues,this.groupLabel))(o)},flatAndStrip(o){return ox(g9(this.groupValues,this.groupLabel),xR)(o)},updateSearch(o){this.search=o},isExistingOption(o){return this.options?this.optionKeys.indexOf(o)>-1:!1},isSelected(o){const e=this.trackBy?o[this.trackBy]:o;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(o){return!!o.$isDisabled},getOptionLabel(o){if(m9(o))return"";if(o.isTag)return o.label;if(o.$isLabel)return o.$groupLabel;const e=this.customLabel(o,this.label);return m9(e)?"":e},select(o,e){if(o.$isLabel&&this.groupSelect){this.selectGroup(o);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||o.$isDisabled||o.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(o.isTag)this.$emit("tag",o.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(o)){e!=="Tab"&&this.removeElement(o);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([o])):this.$emit("update:modelValue",o),this.$emit("select",o,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(o){const e=this.options.find(t=>t[this.groupLabel]===o.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const t=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(a=>t.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",i)}else{const t=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&t.splice(this.max-this.internalValue.length),this.$emit("select",t,this.id),this.$emit("update:modelValue",this.internalValue.concat(t))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(o){return o[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(o){return o[this.groupValues].every(this.isOptionDisabled)},removeElement(o,e=!0){if(this.disabled||o.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const t=typeof o=="object"?this.valueKeys.indexOf(o[this.trackBy]):this.valueKeys.indexOf(o);if(this.multiple){const i=this.internalValue.slice(0,t).concat(this.internalValue.slice(t+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",o,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const o=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>o||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(o-40,this.maxHeight))},filterOptions(o,e,t,i){return e?o.filter(a=>CR(i(a,t),e)).sort((a,n)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(a,n):i(a,t).length-i(n,t).length):o},filterGroups(o,e,t,i,a){return n=>n.map(r=>{if(!r[t])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(r[t],o,e,a);return l.length?{[i]:r[i],[t]:l}:[]})}}},ER={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(o,e){return{"multiselect__option--highlight":o===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(o,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const t=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return t&&!this.wholeGroupDisabled(t)?["multiselect__option--group",{"multiselect__option--highlight":o===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(t)}]:"multiselect__option--disabled"},addPointerElement({key:o}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],o),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(o){this.pointer=o,this.pointerDirty=!0}}},IL={name:"vue-multiselect",mixins:[LR,ER],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:o=>`and ${o} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const SR=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],IR={ref:"tags",class:"multiselect__tags"},TR={class:"multiselect__tags-wrap"},DR=["textContent"],zR=["onKeypress","onMousedown"],RR=["textContent"],HR={class:"multiselect__spinner"},AR=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],VR=["id","aria-multiselectable"],PR={key:0},qR={class:"multiselect__option"},BR=["aria-selected","id","role"],FR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],OR=["data-select","data-deselect","onMouseenter","onMousedown"],jR={class:"multiselect__option"},NR={class:"multiselect__option"};function _R(o,e,t,i,a,n){return c.openBlock(),c.createElementBlock("div",{tabindex:o.searchable?-1:t.tabindex,class:c.normalizeClass([{"multiselect--active":o.isOpen,"multiselect--disabled":t.disabled,"multiselect--above":n.isAbove,"multiselect--has-options-group":n.hasOptionGroup},"multiselect"]),onFocus:e[14]||(e[14]=r=>o.activate()),onBlur:e[15]||(e[15]=r=>o.searchable?!1:o.deactivate()),onKeydown:[e[16]||(e[16]=c.withKeys(c.withModifiers(r=>o.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=c.withKeys(c.withModifiers(r=>o.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=c.withKeys(c.withModifiers(r=>o.addPointerElement(r),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=c.withKeys(r=>o.deactivate(),["esc"])),role:"combobox","aria-expanded":o.isOpen,"aria-owns":"listbox-"+o.id,"aria-activedescendant":o.isOpen&&o.pointer!==null?o.id+"-"+o.pointer:null},[c.renderSlot(o.$slots,"caret",{toggle:o.toggle},()=>[c.createElementVNode("div",{onMousedown:e[0]||(e[0]=c.withModifiers(r=>o.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),c.renderSlot(o.$slots,"clear",{search:o.search}),c.createElementVNode("div",IR,[c.renderSlot(o.$slots,"selection",{search:o.search,remove:o.removeElement,values:n.visibleValues,isOpen:o.isOpen},()=>[c.withDirectives(c.createElementVNode("div",TR,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.visibleValues,(r,l)=>c.renderSlot(o.$slots,"tag",{option:r,search:o.search,remove:o.removeElement},()=>[(c.openBlock(),c.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:e[1]||(e[1]=c.withModifiers(()=>{},["prevent"]))},[c.createElementVNode("span",{textContent:c.toDisplayString(o.getOptionLabel(r))},null,8,DR),c.createElementVNode("i",{tabindex:"1",onKeypress:c.withKeys(c.withModifiers(h=>o.removeElement(r),["prevent"]),["enter"]),onMousedown:c.withModifiers(h=>o.removeElement(r),["prevent"]),class:"multiselect__tag-icon"},null,40,zR)],32))])),256))],512),[[c.vShow,n.visibleValues.length>0]]),o.internalValue&&o.internalValue.length>t.limit?c.renderSlot(o.$slots,"limit",{key:0},()=>[c.createElementVNode("strong",{class:"multiselect__strong",textContent:c.toDisplayString(t.limitText(o.internalValue.length-t.limit))},null,8,RR)]):c.createCommentVNode("v-if",!0)]),c.createVNode(c.Transition,{name:"multiselect__loading"},{default:c.withCtx(()=>[c.renderSlot(o.$slots,"loading",{},()=>[c.withDirectives(c.createElementVNode("div",HR,null,512),[[c.vShow,t.loading]])])]),_:3}),o.searchable?(c.openBlock(),c.createElementBlock("input",{key:0,ref:"search",name:t.name,id:o.id,type:"text",autocomplete:"off",spellcheck:t.spellcheck,placeholder:o.placeholder,required:n.isRequired,style:c.normalizeStyle(n.inputStyle),value:o.search,disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.name+"-searchbox",onInput:e[2]||(e[2]=r=>o.updateSearch(r.target.value)),onFocus:e[3]||(e[3]=c.withModifiers(r=>o.activate(),["prevent"])),onBlur:e[4]||(e[4]=c.withModifiers(r=>o.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=c.withKeys(r=>o.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=c.withKeys(c.withModifiers(r=>o.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=c.withKeys(c.withModifiers(r=>o.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=c.withKeys(c.withModifiers(r=>o.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=c.withKeys(c.withModifiers(r=>o.addPointerElement(r),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+o.id},null,44,AR)):c.createCommentVNode("v-if",!0),n.isSingleLabelVisible?(c.openBlock(),c.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=c.withModifiers((...r)=>o.toggle&&o.toggle(...r),["prevent"]))},[c.renderSlot(o.$slots,"singleLabel",{option:n.singleValue},()=>[c.createTextVNode(c.toDisplayString(o.currentOptionLabel),1)])],32)):c.createCommentVNode("v-if",!0),n.isPlaceholderVisible?(c.openBlock(),c.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=c.withModifiers((...r)=>o.toggle&&o.toggle(...r),["prevent"]))},[c.renderSlot(o.$slots,"placeholder",{},()=>[c.createTextVNode(c.toDisplayString(o.placeholder),1)])],32)):c.createCommentVNode("v-if",!0)],512),c.createVNode(c.Transition,{name:"multiselect",persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...r)=>o.activate&&o.activate(...r)),tabindex:"-1",onMousedown:e[13]||(e[13]=c.withModifiers(()=>{},["prevent"])),style:c.normalizeStyle({maxHeight:o.optimizedHeight+"px"}),ref:"list"},[c.createElementVNode("ul",{class:"multiselect__content",style:c.normalizeStyle(n.contentStyle),role:"listbox",id:"listbox-"+o.id,"aria-multiselectable":o.multiple},[c.renderSlot(o.$slots,"beforeList"),o.multiple&&o.max===o.internalValue.length?(c.openBlock(),c.createElementBlock("li",PR,[c.createElementVNode("span",qR,[c.renderSlot(o.$slots,"maxElements",{},()=>[c.createTextVNode("Maximum of "+c.toDisplayString(o.max)+" options selected. First remove a selected option to select another.",1)])])])):c.createCommentVNode("v-if",!0),!o.max||o.internalValue.length<o.max?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(o.filteredOptions,(r,l)=>(c.openBlock(),c.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":o.isSelected(r),id:o.id+"-"+l,role:r&&(r.$isLabel||r.$isDisabled)?null:"option"},[r&&(r.$isLabel||r.$isDisabled)?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass([o.optionHighlight(l,r),"multiselect__option"]),onClick:c.withModifiers(h=>o.select(r),["stop"]),onMouseenter:c.withModifiers(h=>o.pointerSet(l),["self"]),"data-select":r&&r.isTag?o.tagPlaceholder:n.selectLabelText,"data-selected":n.selectedLabelText,"data-deselect":n.deselectLabelText},[c.renderSlot(o.$slots,"option",{option:r,search:o.search,index:l},()=>[c.createElementVNode("span",null,c.toDisplayString(o.getOptionLabel(r)),1)])],42,FR)),r&&(r.$isLabel||r.$isDisabled)?(c.openBlock(),c.createElementBlock("span",{key:1,"data-select":o.groupSelect&&n.selectGroupLabelText,"data-deselect":o.groupSelect&&n.deselectGroupLabelText,class:c.normalizeClass([o.groupHighlight(l,r),"multiselect__option"]),onMouseenter:c.withModifiers(h=>o.groupSelect&&o.pointerSet(l),["self"]),onMousedown:c.withModifiers(h=>o.selectGroup(r),["prevent"])},[c.renderSlot(o.$slots,"option",{option:r,search:o.search,index:l},()=>[c.createElementVNode("span",null,c.toDisplayString(o.getOptionLabel(r)),1)])],42,OR)):c.createCommentVNode("v-if",!0)],8,BR))),128)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createElementVNode("li",null,[c.createElementVNode("span",jR,[c.renderSlot(o.$slots,"noResult",{search:o.search},()=>[e[20]||(e[20]=c.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[c.vShow,t.showNoResults&&o.filteredOptions.length===0&&o.search&&!t.loading]]),c.withDirectives(c.createElementVNode("li",null,[c.createElementVNode("span",NR,[c.renderSlot(o.$slots,"noOptions",{},()=>[e[21]||(e[21]=c.createTextVNode("List is empty."))])])],512),[[c.vShow,t.showNoOptions&&(o.options.length===0||n.hasOptionGroup===!0&&o.filteredOptions.length===0)&&!o.search&&!t.loading]]),c.renderSlot(o.$slots,"afterList")],12,VR)],36),[[c.vShow,o.isOpen]])]),_:3})],42,SR)}IL.render=_R;const WR={class:"flex gap-[5px] w-[100%]"},UR=c.defineComponent({__name:"DateRange",props:{modelValue:{default:()=>({startDate:"",endDate:"",dateType:"today",isBS:!1})}},emits:["update:modelValue","search"],setup(o,{emit:e}){const t=e,i=o,a=new fe,n=a.format("YYYY-MM-DD"),r=n?he(n):"",l=c.ref(i.modelValue.isBS?i.modelValue.isBS:!1),h=c.ref(""),d=c.ref(""),u=M=>y.find(C=>C.id===M)||y[4],p=c.computed({get(){return u(i.modelValue.dateType||"today")},set(M){m({dateType:M.id})}}),y=[{name:"Year to date",id:"year_to_date"},{name:"Quarter to date",id:"quarter_to_date"},{name:"Month to date",id:"month_to_date"},{name:"Week to date",id:"week_to_date"},{name:"Today",id:"today"},{name:"Last 30 days",id:"last_30_days"},{name:"Last 90 days",id:"last_90_days"},{name:"First quarter (Q1)",id:"first_quarter"},{name:"Second quarter (Q2)",id:"second_quarter"},{name:"Third quarter (Q3)",id:"third_quarter"},{name:"Fourth quarter (Q4)",id:"fourth_quarter"},{name:"Custom",id:"custom"}];c.onMounted(()=>{f()});const f=()=>{if(i.modelValue.startDate&&i.modelValue.endDate)h.value=l.value?je(i.modelValue.startDate):i.modelValue.startDate,d.value=l.value?je(i.modelValue.endDate):i.modelValue.endDate;else{const M=l.value?n:r;h.value=M,d.value=M,m({startDate:r,endDate:r})}i.modelValue.dateType||(p.value=u("today"),m({dateType:"today"})),i.modelValue.isBS||m({isBS:!1})},g=()=>{h.value&&(h.value=h.value?l.value?je(h.value):he(h.value):""),d.value&&(d.value=d.value?l.value?je(d.value):he(d.value):"")},k=()=>{m({dateType:"custom"}),v()},v=()=>{let M=h.value,C=d.value;l.value&&(M=h.value?he(h.value):"",C=d.value?he(d.value):""),m({startDate:M,endDate:C})},m=M=>{t("update:modelValue",{...i.modelValue,...M})},w=()=>{v(),t("search",i.modelValue)};return c.watch(()=>l.value,()=>{g(),m({isBS:l.value})}),c.watch(()=>i.modelValue.startDate,M=>{M&&M!==(h.value?l.value?he(h.value):h.value:"")&&(h.value=l.value?je(M):M,m({dateType:"custom"}))}),c.watch(()=>i.modelValue.endDate,M=>{M&&M!==(d.value?l.value?he(d.value):d.value:"")&&(d.value=l.value?je(M):M,m({dateType:"custom"}))}),c.watch(()=>i.modelValue.isBS,M=>{M!==l.value&&(l.value=M)}),c.watch(()=>h.value,()=>{v()}),c.watch(()=>d.value,()=>{v()}),c.watch(()=>i.modelValue.dateType,M=>{if(M==="custom")return;let C,S;switch(M){case"year_to_date":C=fe.getFiscalYearQuarter(1).start,S=a;break;case"quarter_to_date":C=a.getCurrentFiscalYearQuarterDates().start,S=a;break;case"month_to_date":C=a.startOfMonth(),S=a;break;case"week_to_date":C=a.startOfWeek(),S=a;break;case"today":C=a,S=a;break;case"last_30_days":C=a.addDays(-30),S=a;break;case"last_90_days":C=a.addDays(-90),S=a;break;case"first_quarter":C=fe.getFiscalYearQuarter(1).start,S=fe.getFiscalYearQuarter(1).end;break;case"second_quarter":C=fe.getFiscalYearQuarter(2).start,S=fe.getFiscalYearQuarter(2).end;break;case"third_quarter":C=fe.getFiscalYearQuarter(3).start,S=fe.getFiscalYearQuarter(3).end;break;case"fourth_quarter":C=fe.getFiscalYearQuarter(4).start,S=fe.getFiscalYearQuarter(4).end;break;default:return}const L=C.format("YYYY-MM-DD"),H=S.format("YYYY-MM-DD");l.value?(h.value=L,d.value=H):(h.value=L?he(L):"",d.value=H?he(H):""),m({startDate:L?he(L):"",endDate:H?he(H):""})}),(M,C)=>(c.openBlock(),c.createElementBlock("div",WR,[c.createVNode(c.unref(IL),{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=S=>p.value=S),options:y,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Date Type",class:"remove-height w-[160px] max-w-[160px]",label:"name","track-by":"id"},null,8,["modelValue"]),l.value?(c.openBlock(),c.createBlock(c.unref(Q9),{key:1,modelValue:h.value,"onUpdate:modelValue":C[3]||(C[3]=S=>h.value=S),class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onOnSelect:C[4]||(C[4]=S=>k())},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(X9),{key:0,value:h.value,"onUpdate:value":C[1]||(C[1]=S=>h.value=S),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onChange:C[2]||(C[2]=S=>k())},null,8,["value"])),C[11]||(C[11]=c.createElementVNode("p",{class:"h-fit my-auto"},"-",-1)),l.value?(c.openBlock(),c.createBlock(c.unref(Q9),{key:3,modelValue:d.value,"onUpdate:modelValue":C[7]||(C[7]=S=>d.value=S),class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onOnSelect:C[8]||(C[8]=S=>k())},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(X9),{key:2,value:d.value,"onUpdate:value":C[5]||(C[5]=S=>d.value=S),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onChange:C[6]||(C[6]=S=>k())},null,8,["value"])),c.createVNode(oC,{modelValue:l.value,"onUpdate:modelValue":C[9]||(C[9]=S=>l.value=S),onText:"BS",offText:"AD"},null,8,["modelValue"]),c.createElementVNode("button",{class:"btn-outline",onClick:C[10]||(C[10]=S=>w())},"Search")]))}}),$R=(o,e)=>{if(e.value){o.classList.add("flex"),o.classList.add("flex-col");const t=o.querySelector("input"),i=document.createElement("span");i.classList.add("text-red-500","text-[12px]","error-message"),t==null||t.classList.add("border-red-500"),o.classList.add("border-red-500"),i.textContent=e.value,o.appendChild(i)}},GR=(o,e)=>{const t=o.querySelector("input"),i=o.querySelector(".error-message");if(!i&&e.value){const a=document.createElement("span");a.classList.add("text-red-500","text-[12px]","error-message"),a.textContent=e.value,t==null||t.classList.add("border-red-500"),o.appendChild(a)}else e.value?(o.classList.add("input-error"),t==null||t.classList.add("border-red-500"),i&&(i.textContent=e.value)):(o.classList.remove("input-error"),o.classList.remove("border-red-500"),t==null||t.classList.remove("border-red-500"),i&&i.remove())},YR={mounted:$R,updated:GR},k9=new WeakMap,ZR={mounted(o,e){let t=null,i=0;o.classList.add("hide-scrollbar");const a=()=>{o.classList.remove("hide-scrollbar")},n=()=>{o.classList.add("hide-scrollbar"),i=Date.now()},r=()=>{Date.now()-i>=100&&a(),t&&clearTimeout(t),t=setTimeout(n,1e3)};o.addEventListener("scroll",r),k9.set(o,r)},unmounted(o){const e=k9.get(o);e&&(o.removeEventListener("scroll",e),k9.delete(o))}};var v9={exports:{}},nx;function XR(){if(nx)return v9.exports;nx=1;var o=v9.exports={},e,t;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=i}catch{e=i}try{typeof clearTimeout=="function"?t=clearTimeout:t=a}catch{t=a}})();function n(k){if(e===setTimeout)return setTimeout(k,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(k,0);try{return e(k,0)}catch{try{return e.call(null,k,0)}catch{return e.call(this,k,0)}}}function r(k){if(t===clearTimeout)return clearTimeout(k);if((t===a||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(k);try{return t(k)}catch{try{return t.call(null,k)}catch{return t.call(this,k)}}}var l=[],h=!1,d,u=-1;function p(){!h||!d||(h=!1,d.length?l=d.concat(l):u=-1,l.length&&y())}function y(){if(!h){var k=n(p);h=!0;for(var v=l.length;v;){for(d=l,l=[];++u<v;)d&&d[u].run();u=-1,v=l.length}d=null,h=!1,r(k)}}o.nextTick=function(k){var v=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)v[m-1]=arguments[m];l.push(new f(k,v)),l.length===1&&!h&&n(y)};function f(k,v){this.fun=k,this.array=v}f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function g(){}return o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(k){return[]},o.binding=function(k){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(k){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},v9.exports}var TL=XR();const b9=new WeakMap,KR={mounted(o){TL.nextTick(()=>{const e=()=>{typeof o.select=="function"&&o.select()};o.addEventListener("focus",e),b9.set(o,e)})},unmounted(o){const e=b9.get(o);e&&(o.removeEventListener("focus",e),b9.delete(o))}},DL=(o,e,t="RS.",i="usa",a="nepali")=>{const n=parseFloat(o);if(isNaN(n))return"";const r=i==="euro",l=r?",":".",h=r?".":",",d=n.toFixed(2).split(".");let u=d[0];const p=d[1];if(a==="nepali"){const y=u.slice(-3),f=u.slice(0,-3),g=f.replace(/\B(?=(\d{2})+(?!\d))/g,h);u=f?g+h+y:y}else u=u.replace(/\B(?=(\d{3})+(?!\d))/g,h);return e&&t?`${t}${u}${l}${p}`:`${u}${l}${p}`},zL=(o,e,t="RS.",i="usa",a="nepali")=>{if(!o)return 0;const n=i==="euro",r=n?",":".",l=n?".":",";let h=o.trim();e&&t&&h.startsWith(t)&&(h=h.slice(t.length).trim());const d=new RegExp(`\\${l}(?=\\d{2,3})`,"g");h=h.replace(d,"");const u=h.lastIndexOf(r);u!==-1&&r!=="."&&(h=h.slice(0,u)+"."+h.slice(u+1));const p=parseFloat(h);return isNaN(p)?0:p},jn=(o,e,t=!0)=>{t?o.value=DL(o.value,!1,"",e.format,e.structure):o.value=zL(o.value,!1,"",e.format,e.structure).toString()},JR={mounted(o,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};TL.nextTick(()=>{o.value&&jn(o,t)});const i=()=>{jn(o,t),o.removeEventListener("blur",i),o.removeEventListener("keydown",n)},a=()=>{jn(o,t,!1),o.addEventListener("blur",i),o.addEventListener("keydown",n)},n=r=>{const l=/^\d$/.test(r.key),h=r.key===".",d=r.ctrlKey||r.metaKey,u=r.key==="Enter"||r.key==="Tab"||r.key==="Backspace",p=o.value.includes(".");if(h&&p){r.preventDefault();return}l||h&&!p||d||u||r.preventDefault()};o.addEventListener("focus",a),o.eventCleanUp=()=>{o.removeEventListener("focus",a),o.removeEventListener("blur",i),o.removeEventListener("keydown",n)}},updated(o,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};document.activeElement!=o&&jn(o,t)},unmounted(o){}},QR={mounted(o){const e=o.closest(".sidebar-dropdown");if(!e)return;const t=700,i=()=>{const r=o.scrollHeight,l=r*1e3/t;o.style.overflow="hidden",o.style.transition=`height ${l}ms linear`,o.style.height=`${r}px`,clearTimeout(o._timeout),o._timeout=window.setTimeout(()=>{o.style.height="",o.style.transition="",o.style.overflow=""},l)},a=()=>{const r=o.scrollHeight,l=r*1e3/t;o.style.transition=`height ${l}ms linear`,o.style.overflow="hidden",o.style.height=`${r}px`,o.offsetHeight,o.style.height="0px",clearTimeout(o._timeout),o._timeout=window.setTimeout(()=>{o.style.transition="",o.style.overflow=""},l)},n=new MutationObserver(()=>{e.classList.contains("sidebar-item-open")?i():a()});n.observe(e,{attributes:!0,attributeFilter:["class"]}),o._observer=n,e.classList.contains("sidebar-item-open")?o.style.height="auto":(o.style.height="0px",o.style.overflow="hidden")},unmounted(o){o._observer&&o._observer.disconnect(),clearTimeout(o._timeout)}};class eH{constructor(){this.socket=null,this.url="",this.isConnected=!1}setURL(e){this.url=e}init(){var e,t;return this.url==""?(console.log("❗WebSocket url not set!"),Promise.resolve(this)):(((e=this.socket)==null?void 0:e.readyState)==WebSocket.OPEN&&((t=this.socket)==null||t.close()),this.socket?(console.log("❗WebSocket is already initialized"),Promise.resolve(this)):(this.socket=new WebSocket(this.url),new Promise((i,a)=>{this.socket.onopen=()=>{this.isConnected=!0,console.log("✅ WebSocket connected"),i(this)},this.socket.onclose=()=>{this.isConnected=!1},this.socket.onerror=n=>{this.close(),console.error("⛔ WebSocket error occurred:",n),a(n)}})))}onMessage(e){return this.socket?(this.socket.onmessage=t=>{e&&t.data&&e(t.data)},Promise.resolve(this)):(console.error("❗WebSocket is not initialized"),Promise.resolve(this))}sendMessage(e){return new Promise((t,i)=>{if(this.socket&&this.isConnected)try{this.socket.send(e),t()}catch(a){console.error("❗Error sending message:",a),i(a)}else{const a="❗WebSocket is not connected";console.error(a),i(new Error(a))}})}close(){this.socket&&(this.socket.close(),this.isConnected=!1,console.log("❌ WebSocket connection closed"))}getConnectionStatus(){return this.isConnected}}/*!
|
|
8046
8046
|
* sweetalert2 v11.21.2
|
|
8047
8047
|
* Released under the MIT License.
|
|
8048
|
-
*/function RL(o,e,t){if(typeof o=="function"?o===e:o.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}function
|
|
8048
|
+
*/function RL(o,e,t){if(typeof o=="function"?o===e:o.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}function tH(o,e){if(e.has(o))throw new TypeError("Cannot initialize the same private elements twice on an object")}function sx(o,e){return o.get(RL(o,e))}function iH(o,e,t){tH(o,e),e.set(o,t)}function aH(o,e,t){return o.set(RL(o,e),t),t}const oH=100,V={},nH=()=>{V.previousActiveElement instanceof HTMLElement?(V.previousActiveElement.focus(),V.previousActiveElement=null):document.body&&document.body.focus()},sH=o=>new Promise(e=>{if(!o)return e();const t=window.scrollX,i=window.scrollY;V.restoreFocusTimeout=setTimeout(()=>{nH(),e()},oH),window.scrollTo(t,i)}),HL="swal2-",rH=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],b=rH.reduce((o,e)=>(o[e]=HL+e,o),{}),lH=["success","warning","info","question","error"],O7=lH.reduce((o,e)=>(o[e]=HL+e,o),{}),AL="SweetAlert2:",bC=o=>o.charAt(0).toUpperCase()+o.slice(1),ne=o=>{console.warn(`${AL} ${typeof o=="object"?o.join(" "):o}`)},Uo=o=>{console.error(`${AL} ${o}`)},rx=[],hH=o=>{rx.includes(o)||(rx.push(o),ne(o))},VL=(o,e=null)=>{hH(`"${o}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},s9=o=>typeof o=="function"?o():o,wC=o=>o&&typeof o.toPromise=="function",xn=o=>wC(o)?o.toPromise():Promise.resolve(o),MC=o=>o&&Promise.resolve(o)===o,re=()=>document.body.querySelector(`.${b.container}`),Ln=o=>{const e=re();return e?e.querySelector(o):null},ge=o=>Ln(`.${o}`),N=()=>ge(b.popup),sn=()=>ge(b.icon),cH=()=>ge(b["icon-content"]),PL=()=>ge(b.title),CC=()=>ge(b["html-container"]),qL=()=>ge(b.image),xC=()=>ge(b["progress-steps"]),r9=()=>ge(b["validation-message"]),Re=()=>Ln(`.${b.actions} .${b.confirm}`),rn=()=>Ln(`.${b.actions} .${b.cancel}`),$o=()=>Ln(`.${b.actions} .${b.deny}`),dH=()=>ge(b["input-label"]),ln=()=>Ln(`.${b.loader}`),En=()=>ge(b.actions),BL=()=>ge(b.footer),l9=()=>ge(b["timer-progress-bar"]),LC=()=>ge(b.close),uH=`
|
|
8049
8049
|
a[href],
|
|
8050
8050
|
area[href],
|
|
8051
8051
|
input:not([disabled]),
|
|
@@ -8060,7 +8060,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
8060
8060
|
audio[controls],
|
|
8061
8061
|
video[controls],
|
|
8062
8062
|
summary
|
|
8063
|
-
`,EC=()=>{const o=
|
|
8063
|
+
`,EC=()=>{const o=N();if(!o)return[];const e=o.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),t=Array.from(e).sort((n,r)=>{const l=parseInt(n.getAttribute("tabindex")||"0"),h=parseInt(r.getAttribute("tabindex")||"0");return l>h?1:l<h?-1:0}),i=o.querySelectorAll(uH),a=Array.from(i).filter(n=>n.getAttribute("tabindex")!=="-1");return[...new Set(t.concat(a))].filter(n=>ce(n))},SC=()=>qe(document.body,b.shown)&&!qe(document.body,b["toast-shown"])&&!qe(document.body,b["no-backdrop"]),h9=()=>{const o=N();return o?qe(o,b.toast):!1},pH=()=>{const o=N();return o?o.hasAttribute("data-loading"):!1},ke=(o,e)=>{if(o.textContent="",e){const i=new DOMParser().parseFromString(e,"text/html"),a=i.querySelector("head");a&&Array.from(a.childNodes).forEach(r=>{o.appendChild(r)});const n=i.querySelector("body");n&&Array.from(n.childNodes).forEach(r=>{r instanceof HTMLVideoElement||r instanceof HTMLAudioElement?o.appendChild(r.cloneNode(!0)):o.appendChild(r)})}},qe=(o,e)=>{if(!e)return!1;const t=e.split(/\s+/);for(let i=0;i<t.length;i++)if(!o.classList.contains(t[i]))return!1;return!0},yH=(o,e)=>{Array.from(o.classList).forEach(t=>{!Object.values(b).includes(t)&&!Object.values(O7).includes(t)&&!Object.values(e.showClass||{}).includes(t)&&o.classList.remove(t)})},me=(o,e,t)=>{if(yH(o,e),!e.customClass)return;const i=e.customClass[t];if(i){if(typeof i!="string"&&!i.forEach){ne(`Invalid type of customClass.${t}! Expected string or iterable object, got "${typeof i}"`);return}_(o,i)}},c9=(o,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return o.querySelector(`.${b.popup} > .${b[e]}`);case"checkbox":return o.querySelector(`.${b.popup} > .${b.checkbox} input`);case"radio":return o.querySelector(`.${b.popup} > .${b.radio} input:checked`)||o.querySelector(`.${b.popup} > .${b.radio} input:first-child`);case"range":return o.querySelector(`.${b.popup} > .${b.range} input`);default:return o.querySelector(`.${b.popup} > .${b.input}`)}},FL=o=>{if(o.focus(),o.type!=="file"){const e=o.value;o.value="",o.value=e}},OL=(o,e,t)=>{!o||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(i=>{Array.isArray(o)?o.forEach(a=>{t?a.classList.add(i):a.classList.remove(i)}):t?o.classList.add(i):o.classList.remove(i)}))},_=(o,e)=>{OL(o,e,!0)},be=(o,e)=>{OL(o,e,!1)},Ye=(o,e)=>{const t=Array.from(o.children);for(let i=0;i<t.length;i++){const a=t[i];if(a instanceof HTMLElement&&qe(a,e))return a}},_o=(o,e,t)=>{t===`${parseInt(t)}`&&(t=parseInt(t)),t||parseInt(t)===0?o.style.setProperty(e,typeof t=="number"?`${t}px`:t):o.style.removeProperty(e)},Q=(o,e="flex")=>{o&&(o.style.display=e)},oe=o=>{o&&(o.style.display="none")},IC=(o,e="block")=>{o&&new MutationObserver(()=>{Sn(o,o.innerHTML,e)}).observe(o,{childList:!0,subtree:!0})},lx=(o,e,t,i)=>{const a=o.querySelector(e);a&&a.style.setProperty(t,i)},Sn=(o,e,t="flex")=>{e?Q(o,t):oe(o)},ce=o=>!!(o&&(o.offsetWidth||o.offsetHeight||o.getClientRects().length)),fH=()=>!ce(Re())&&!ce($o())&&!ce(rn()),eC=o=>o.scrollHeight>o.clientHeight,mH=(o,e)=>{let t=o;for(;t&&t!==e;){if(eC(t))return!0;t=t.parentElement}return!1},jL=o=>{const e=window.getComputedStyle(o),t=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return t>0||i>0},TC=(o,e=!1)=>{const t=l9();t&&ce(t)&&(e&&(t.style.transition="none",t.style.width="100%"),setTimeout(()=>{t.style.transition=`width ${o/1e3}s linear`,t.style.width="0%"},10))},gH=()=>{const o=l9();if(!o)return;const e=parseInt(window.getComputedStyle(o).width);o.style.removeProperty("transition"),o.style.width="100%";const t=parseInt(window.getComputedStyle(o).width),i=e/t*100;o.style.width=`${i}%`},kH=()=>typeof window>"u"||typeof document>"u",vH=`
|
|
8064
8064
|
<div aria-labelledby="${b.title}" aria-describedby="${b["html-container"]}" class="${b.popup}" tabindex="-1">
|
|
8065
8065
|
<button type="button" class="${b.close}"></button>
|
|
8066
8066
|
<ul class="${b["progress-steps"]}"></ul>
|
|
@@ -8093,17 +8093,17 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
|
|
|
8093
8093
|
<div class="${b["timer-progress-bar"]}"></div>
|
|
8094
8094
|
</div>
|
|
8095
8095
|
</div>
|
|
8096
|
-
`.replace(/(^|\n)\s*/g,""),
|
|
8096
|
+
`.replace(/(^|\n)\s*/g,""),bH=()=>{const o=re();return o?(o.remove(),be([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]]),!0):!1},et=()=>{V.currentInstance.resetValidationMessage()},wH=()=>{const o=N(),e=Ye(o,b.input),t=Ye(o,b.file),i=o.querySelector(`.${b.range} input`),a=o.querySelector(`.${b.range} output`),n=Ye(o,b.select),r=o.querySelector(`.${b.checkbox} input`),l=Ye(o,b.textarea);e.oninput=et,t.onchange=et,n.onchange=et,r.onchange=et,l.oninput=et,i.oninput=()=>{et(),a.value=i.value},i.onchange=()=>{et(),a.value=i.value}},MH=o=>typeof o=="string"?document.querySelector(o):o,CH=o=>{const e=N();e.setAttribute("role",o.toast?"alert":"dialog"),e.setAttribute("aria-live",o.toast?"polite":"assertive"),o.toast||e.setAttribute("aria-modal","true")},xH=o=>{window.getComputedStyle(o).direction==="rtl"&&_(re(),b.rtl)},LH=o=>{const e=bH();if(kH()){Uo("SweetAlert2 requires document to initialize");return}const t=document.createElement("div");t.className=b.container,e&&_(t,b["no-transition"]),ke(t,vH),t.dataset.swal2Theme=o.theme;const i=MH(o.target);i.appendChild(t),o.topLayer&&(t.setAttribute("popover",""),t.showPopover()),CH(o),xH(i),wH()},DC=(o,e)=>{o instanceof HTMLElement?e.appendChild(o):typeof o=="object"?EH(o,e):o&&ke(e,o)},EH=(o,e)=>{o.jquery?SH(e,o):ke(e,o.toString())},SH=(o,e)=>{if(o.textContent="",0 in e)for(let t=0;t in e;t++)o.appendChild(e[t].cloneNode(!0));else o.appendChild(e.cloneNode(!0))},IH=(o,e)=>{const t=En(),i=ln();!t||!i||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?oe(t):Q(t),me(t,e,"actions"),TH(t,i,e),ke(i,e.loaderHtml||""),me(i,e,"loader"))};function TH(o,e,t){const i=Re(),a=$o(),n=rn();!i||!a||!n||(M9(i,"confirm",t),M9(a,"deny",t),M9(n,"cancel",t),DH(i,a,n,t),t.reverseButtons&&(t.toast?(o.insertBefore(n,i),o.insertBefore(a,i)):(o.insertBefore(n,e),o.insertBefore(a,e),o.insertBefore(i,e))))}function DH(o,e,t,i){if(!i.buttonsStyling){be([o,e,t],b.styled);return}_([o,e,t],b.styled),i.confirmButtonColor&&o.style.setProperty("--swal2-confirm-button-background-color",i.confirmButtonColor),i.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",i.denyButtonColor),i.cancelButtonColor&&t.style.setProperty("--swal2-cancel-button-background-color",i.cancelButtonColor),w9(o),w9(e),w9(t)}function w9(o){const e=window.getComputedStyle(o),t=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");o.style.setProperty("--swal2-action-button-outline",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${t}`))}function M9(o,e,t){const i=bC(e);Sn(o,t[`show${i}Button`],"inline-block"),ke(o,t[`${e}ButtonText`]||""),o.setAttribute("aria-label",t[`${e}ButtonAriaLabel`]||""),o.className=b[e],me(o,t,`${e}Button`)}const zH=(o,e)=>{const t=LC();t&&(ke(t,e.closeButtonHtml||""),me(t,e,"closeButton"),Sn(t,e.showCloseButton),t.setAttribute("aria-label",e.closeButtonAriaLabel||""))},RH=(o,e)=>{const t=re();t&&(HH(t,e.backdrop),AH(t,e.position),VH(t,e.grow),me(t,e,"container"))};function HH(o,e){typeof e=="string"?o.style.background=e:e||_([document.documentElement,document.body],b["no-backdrop"])}function AH(o,e){e&&(e in b?_(o,b[e]):(ne('The "position" parameter is not valid, defaulting to "center"'),_(o,b.center)))}function VH(o,e){e&&_(o,b[`grow-${e}`])}var Z={innerParams:new WeakMap,domCache:new WeakMap};const PH=["input","file","range","select","radio","checkbox","textarea"],qH=(o,e)=>{const t=N();if(!t)return;const i=Z.innerParams.get(o),a=!i||e.input!==i.input;PH.forEach(n=>{const r=Ye(t,b[n]);r&&(OH(n,e.inputAttributes),r.className=b[n],a&&oe(r))}),e.input&&(a&&BH(e),jH(e))},BH=o=>{if(!o.input)return;if(!X[o.input]){Uo(`Unexpected type of input! Expected ${Object.keys(X).join(" | ")}, got "${o.input}"`);return}const e=NL(o.input);if(!e)return;const t=X[o.input](e,o);Q(e),o.inputAutoFocus&&setTimeout(()=>{FL(t)})},FH=o=>{for(let e=0;e<o.attributes.length;e++){const t=o.attributes[e].name;["id","type","value","style"].includes(t)||o.removeAttribute(t)}},OH=(o,e)=>{const t=N();if(!t)return;const i=c9(t,o);if(i){FH(i);for(const a in e)i.setAttribute(a,e[a])}},jH=o=>{if(!o.input)return;const e=NL(o.input);e&&me(e,o,"input")},zC=(o,e)=>{!o.placeholder&&e.inputPlaceholder&&(o.placeholder=e.inputPlaceholder)},In=(o,e,t)=>{if(t.inputLabel){const i=document.createElement("label"),a=b["input-label"];i.setAttribute("for",o.id),i.className=a,typeof t.customClass=="object"&&_(i,t.customClass.inputLabel),i.innerText=t.inputLabel,e.insertAdjacentElement("beforebegin",i)}},NL=o=>{const e=N();if(e)return Ye(e,b[o]||b.input)},j7=(o,e)=>{["string","number"].includes(typeof e)?o.value=`${e}`:MC(e)||ne(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},X={};X.text=X.email=X.password=X.number=X.tel=X.url=X.search=X.date=X["datetime-local"]=X.time=X.week=X.month=(o,e)=>(j7(o,e.inputValue),In(o,o,e),zC(o,e),o.type=e.input,o);X.file=(o,e)=>(In(o,o,e),zC(o,e),o);X.range=(o,e)=>{const t=o.querySelector("input"),i=o.querySelector("output");return j7(t,e.inputValue),t.type=e.input,j7(i,e.inputValue),In(t,o,e),o};X.select=(o,e)=>{if(o.textContent="",e.inputPlaceholder){const t=document.createElement("option");ke(t,e.inputPlaceholder),t.value="",t.disabled=!0,t.selected=!0,o.appendChild(t)}return In(o,o,e),o};X.radio=o=>(o.textContent="",o);X.checkbox=(o,e)=>{const t=c9(N(),"checkbox");t.value="1",t.checked=!!e.inputValue;const i=o.querySelector("span");return ke(i,e.inputPlaceholder||e.inputLabel),t};X.textarea=(o,e)=>{j7(o,e.inputValue),zC(o,e),In(o,o,e);const t=i=>parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const i=parseInt(window.getComputedStyle(N()).width),a=()=>{if(!document.body.contains(o))return;const n=o.offsetWidth+t(o);n>i?N().style.width=`${n}px`:_o(N(),"width",e.width)};new MutationObserver(a).observe(o,{attributes:!0,attributeFilter:["style"]})}}),o};const NH=(o,e)=>{const t=CC();t&&(IC(t),me(t,e,"htmlContainer"),e.html?(DC(e.html,t),Q(t,"block")):e.text?(t.textContent=e.text,Q(t,"block")):oe(t),qH(o,e))},_H=(o,e)=>{const t=BL();t&&(IC(t),Sn(t,e.footer,"block"),e.footer&&DC(e.footer,t),me(t,e,"footer"))},WH=(o,e)=>{const t=Z.innerParams.get(o),i=sn();if(!i)return;if(t&&e.icon===t.icon){cx(i,e),hx(i,e);return}if(!e.icon&&!e.iconHtml){oe(i);return}if(e.icon&&Object.keys(O7).indexOf(e.icon)===-1){Uo(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),oe(i);return}Q(i),cx(i,e),hx(i,e),_(i,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",_L)},hx=(o,e)=>{for(const[t,i]of Object.entries(O7))e.icon!==t&&be(o,i);_(o,e.icon&&O7[e.icon]),GH(o,e),_L(),me(o,e,"icon")},_L=()=>{const o=N();if(!o)return;const e=window.getComputedStyle(o).getPropertyValue("background-color"),t=o.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let i=0;i<t.length;i++)t[i].style.backgroundColor=e},UH=`
|
|
8097
8097
|
<div class="swal2-success-circular-line-left"></div>
|
|
8098
8098
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
8099
8099
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
8100
8100
|
<div class="swal2-success-circular-line-right"></div>
|
|
8101
|
-
|
|
8101
|
+
`,$H=`
|
|
8102
8102
|
<span class="swal2-x-mark">
|
|
8103
8103
|
<span class="swal2-x-mark-line-left"></span>
|
|
8104
8104
|
<span class="swal2-x-mark-line-right"></span>
|
|
8105
8105
|
</span>
|
|
8106
|
-
`,cx=(o,e)=>{if(!e.icon&&!e.iconHtml)return;let t=o.innerHTML,i="";e.iconHtml?i=dx(e.iconHtml):e.icon==="success"?(i=_H,t=t.replace(/ style=".*?"/g,"")):e.icon==="error"?i=WH:e.icon&&(i=dx({question:"?",warning:"!",info:"i"}[e.icon])),t.trim()!==i.trim()&&ve(o,i)},UH=(o,e)=>{if(e.iconColor){o.style.color=e.iconColor,o.style.borderColor=e.iconColor;for(const t of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])lx(o,t,"background-color",e.iconColor);lx(o,".swal2-success-ring","border-color",e.iconColor)}},dx=o=>`<div class="${b["icon-content"]}">${o}</div>`,GH=(o,e)=>{const t=qL();if(t){if(!e.imageUrl){ae(t);return}Q(t,""),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt||""),_o(t,"width",e.imageWidth),_o(t,"height",e.imageHeight),t.className=b.image,ge(t,e,"image")}};let RC=!1,WL=0,UL=0,GL=0,$L=0;const $H=o=>{o.addEventListener("mousedown",N7),document.body.addEventListener("mousemove",_7),o.addEventListener("mouseup",W7),o.addEventListener("touchstart",N7),document.body.addEventListener("touchmove",_7),o.addEventListener("touchend",W7)},YH=o=>{o.removeEventListener("mousedown",N7),document.body.removeEventListener("mousemove",_7),o.removeEventListener("mouseup",W7),o.removeEventListener("touchstart",N7),document.body.removeEventListener("touchmove",_7),o.removeEventListener("touchend",W7)},N7=o=>{const e=j();if(o.target===e||sn().contains(o.target)){RC=!0;const t=YL(o);WL=t.clientX,UL=t.clientY,GL=parseInt(e.style.insetInlineStart)||0,$L=parseInt(e.style.insetBlockStart)||0,N(e,"swal2-dragging")}},_7=o=>{const e=j();if(RC){let{clientX:t,clientY:i}=YL(o);e.style.insetInlineStart=`${GL+(t-WL)}px`,e.style.insetBlockStart=`${$L+(i-UL)}px`}},W7=()=>{const o=j();RC=!1,we(o,"swal2-dragging")},YL=o=>{let e=0,t=0;return o.type.startsWith("mouse")?(e=o.clientX,t=o.clientY):o.type.startsWith("touch")&&(e=o.touches[0].clientX,t=o.touches[0].clientY),{clientX:e,clientY:t}},ZH=(o,e)=>{const t=re(),i=j();if(!(!t||!i)){if(e.toast){_o(t,"width",e.width),i.style.width="100%";const a=ln();a&&i.insertBefore(a,sn())}else _o(i,"width",e.width);_o(i,"padding",e.padding),e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background),ae(r9()),XH(i,e),e.draggable&&!e.toast?(N(i,b.draggable),$H(i)):(we(i,b.draggable),YH(i))}},XH=(o,e)=>{const t=e.showClass||{};o.className=`${b.popup} ${ce(o)?t.popup:""}`,e.toast?(N([document.documentElement,document.body],b["toast-shown"]),N(o,b.toast)):N(o,b.modal),ge(o,e,"popup"),typeof e.customClass=="string"&&N(o,e.customClass),e.icon&&N(o,b[`icon-${e.icon}`])},KH=(o,e)=>{const t=xC();if(!t)return;const{progressSteps:i,currentProgressStep:a}=e;if(!i||i.length===0||a===void 0){ae(t);return}Q(t),t.textContent="",a>=i.length&&ne("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach((n,r)=>{const l=JH(n);if(t.appendChild(l),r===a&&N(l,b["active-progress-step"]),r!==i.length-1){const h=QH(e);t.appendChild(h)}})},JH=o=>{const e=document.createElement("li");return N(e,b["progress-step"]),ve(e,o),e},QH=o=>{const e=document.createElement("li");return N(e,b["progress-step-line"]),o.progressStepsDistance&&_o(e,"width",o.progressStepsDistance),e},eA=(o,e)=>{const t=PL();t&&(IC(t),Sn(t,e.title||e.titleText,"block"),e.title&&DC(e.title,t),e.titleText&&(t.innerText=e.titleText),ge(t,e,"title"))},ZL=(o,e)=>{ZH(o,e),DH(o,e),KH(o,e),NH(o,e),GH(o,e),eA(o,e),TH(o,e),OH(o,e),EH(o,e),jH(o,e);const t=j();typeof e.didRender=="function"&&t&&e.didRender(t),A.eventEmitter.emit("didRender",t)},tA=()=>ce(j()),XL=()=>{var o;return(o=ze())===null||o===void 0?void 0:o.click()},iA=()=>{var o;return(o=Go())===null||o===void 0?void 0:o.click()},aA=()=>{var o;return(o=rn())===null||o===void 0?void 0:o.click()},hn=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),KL=o=>{o.keydownTarget&&o.keydownHandlerAdded&&(o.keydownTarget.removeEventListener("keydown",o.keydownHandler,{capture:o.keydownListenerCapture}),o.keydownHandlerAdded=!1)},oA=(o,e,t)=>{KL(o),e.toast||(o.keydownHandler=i=>sA(e,i,t),o.keydownTarget=e.keydownListenerCapture?window:j(),o.keydownListenerCapture=e.keydownListenerCapture,o.keydownTarget.addEventListener("keydown",o.keydownHandler,{capture:o.keydownListenerCapture}),o.keydownHandlerAdded=!0)},tC=(o,e)=>{var t;const i=EC();if(i.length){o=o+e,o===-2&&(o=i.length-1),o===i.length?o=0:o===-1&&(o=i.length-1),i[o].focus();return}(t=j())===null||t===void 0||t.focus()},JL=["ArrowRight","ArrowDown"],nA=["ArrowLeft","ArrowUp"],sA=(o,e,t)=>{o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?rA(e,o):e.key==="Tab"?lA(e):[...JL,...nA].includes(e.key)?hA(e.key):e.key==="Escape"&&cA(e,o,t)))},rA=(o,e)=>{if(!s9(e.allowEnterKey))return;const t=c9(j(),e.input);if(o.target&&t&&o.target instanceof HTMLElement&&o.target.outerHTML===t.outerHTML){if(["textarea","file"].includes(e.input))return;XL(),o.preventDefault()}},lA=o=>{const e=o.target,t=EC();let i=-1;for(let a=0;a<t.length;a++)if(e===t[a]){i=a;break}o.shiftKey?tC(i,-1):tC(i,1),o.stopPropagation(),o.preventDefault()},hA=o=>{const e=En(),t=ze(),i=Go(),a=rn();if(!e||!t||!i||!a)return;const n=[t,i,a];if(document.activeElement instanceof HTMLElement&&!n.includes(document.activeElement))return;const r=JL.includes(o)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let h=0;h<e.children.length;h++){if(l=l[r],!l)return;if(l instanceof HTMLButtonElement&&ce(l))break}l instanceof HTMLButtonElement&&l.focus()}},cA=(o,e,t)=>{s9(e.allowEscapeKey)&&(o.preventDefault(),t(hn.esc))};var an={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const dA=()=>{const o=re();Array.from(document.body.children).forEach(t=>{t.contains(o)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},QL=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},eE=typeof window<"u"&&!!window.GestureEvent,uA=()=>{if(eE&&!qe(document.body,b.iosfix)){const o=document.body.scrollTop;document.body.style.top=`${o*-1}px`,N(document.body,b.iosfix),pA()}},pA=()=>{const o=re();if(!o)return;let e;o.ontouchstart=t=>{e=yA(t)},o.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},yA=o=>{const e=o.target,t=re(),i=CC();return!t||!i||fA(o)||mA(o)?!1:e===t||!eC(t)&&e instanceof HTMLElement&&!yH(e,i)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(eC(i)&&i.contains(e))},fA=o=>o.touches&&o.touches.length&&o.touches[0].touchType==="stylus",mA=o=>o.touches&&o.touches.length>1,gA=()=>{if(qe(document.body,b.iosfix)){const o=parseInt(document.body.style.top,10);we(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=o*-1}},kA=()=>{const o=document.createElement("div");o.className=b["scrollbar-measure"],document.body.appendChild(o);const e=o.getBoundingClientRect().width-o.clientWidth;return document.body.removeChild(o),e};let Jo=null;const vA=o=>{Jo===null&&(document.body.scrollHeight>window.innerHeight||o==="scroll")&&(Jo=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Jo+kA()}px`)},bA=()=>{Jo!==null&&(document.body.style.paddingRight=`${Jo}px`,Jo=null)};function tE(o,e,t,i){h9()?ux(o,i):(oH(t).then(()=>ux(o,i)),KL(A)),eE?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),SC()&&(bA(),gA(),QL()),wA()}function wA(){we([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function Ze(o){o=CA(o);const e=an.swalPromiseResolve.get(this),t=MA(this);this.isAwaitingPromise?o.isDismissed||(Tn(this),e(o)):t&&e(o)}const MA=o=>{const e=j();if(!e)return!1;const t=Y.innerParams.get(o);if(!t||qe(e,t.hideClass.popup))return!1;we(e,t.showClass.popup),N(e,t.hideClass.popup);const i=re();return we(i,t.showClass.backdrop),N(i,t.hideClass.backdrop),xA(o,e,t),!0};function iE(o){const e=an.swalPromiseReject.get(this);Tn(this),e&&e(o)}const Tn=o=>{o.isAwaitingPromise&&(delete o.isAwaitingPromise,Y.innerParams.get(o)||o._destroy())},CA=o=>typeof o>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},o),xA=(o,e,t)=>{var i;const a=re(),n=jL(e);typeof t.willClose=="function"&&t.willClose(e),(i=A.eventEmitter)===null||i===void 0||i.emit("willClose",e),n?LA(o,e,a,t.returnFocus,t.didClose):tE(o,a,t.returnFocus,t.didClose)},LA=(o,e,t,i,a)=>{A.swalCloseEventFinishedCallback=tE.bind(null,o,t,i,a);const n=function(r){if(r.target===e){var l;(l=A.swalCloseEventFinishedCallback)===null||l===void 0||l.call(A),delete A.swalCloseEventFinishedCallback,e.removeEventListener("animationend",n),e.removeEventListener("transitionend",n)}};e.addEventListener("animationend",n),e.addEventListener("transitionend",n)},ux=(o,e)=>{setTimeout(()=>{var t;typeof e=="function"&&e.bind(o.params)(),(t=A.eventEmitter)===null||t===void 0||t.emit("didClose"),o._destroy&&o._destroy()})},on=o=>{let e=j();if(e||new jo,e=j(),!e)return;const t=ln();h9()?ae(sn()):EA(e,o),Q(t),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},EA=(o,e)=>{const t=En(),i=ln();!t||!i||(!e&&ce(ze())&&(e=ze()),Q(t),e&&(ae(e),i.setAttribute("data-button-to-replace",e.className),t.insertBefore(i,e)),N([o,t],b.loading))},SA=(o,e)=>{e.input==="select"||e.input==="radio"?RA(o,e):["text","email","number","tel","textarea"].some(t=>t===e.input)&&(wC(e.inputValue)||MC(e.inputValue))&&(on(ze()),HA(o,e))},IA=(o,e)=>{const t=o.getInput();if(!t)return null;switch(e.input){case"checkbox":return TA(t);case"radio":return DA(t);case"file":return zA(t);default:return e.inputAutoTrim?t.value.trim():t.value}},TA=o=>o.checked?1:0,DA=o=>o.checked?o.value:null,zA=o=>o.files&&o.files.length?o.getAttribute("multiple")!==null?o.files:o.files[0]:null,RA=(o,e)=>{const t=j();if(!t)return;const i=a=>{e.input==="select"?AA(t,U7(a),e):e.input==="radio"&&VA(t,U7(a),e)};wC(e.inputOptions)||MC(e.inputOptions)?(on(ze()),xn(e.inputOptions).then(a=>{o.hideLoading(),i(a)})):typeof e.inputOptions=="object"?i(e.inputOptions):Uo(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},HA=(o,e)=>{const t=o.getInput();t&&(ae(t),xn(e.inputValue).then(i=>{t.value=e.input==="number"?`${parseFloat(i)||0}`:`${i}`,Q(t),t.focus(),o.hideLoading()}).catch(i=>{Uo(`Error in inputValue promise: ${i}`),t.value="",Q(t),t.focus(),o.hideLoading()}))};function AA(o,e,t){const i=Ye(o,b.select);if(!i)return;const a=(n,r,l)=>{const h=document.createElement("option");h.value=l,ve(h,r),h.selected=aE(l,t.inputValue),n.appendChild(h)};e.forEach(n=>{const r=n[0],l=n[1];if(Array.isArray(l)){const h=document.createElement("optgroup");h.label=r,h.disabled=!1,i.appendChild(h),l.forEach(d=>a(h,d[1],d[0]))}else a(i,l,r)}),i.focus()}function VA(o,e,t){const i=Ye(o,b.radio);if(!i)return;e.forEach(n=>{const r=n[0],l=n[1],h=document.createElement("input"),d=document.createElement("label");h.type="radio",h.name=b.radio,h.value=r,aE(r,t.inputValue)&&(h.checked=!0);const u=document.createElement("span");ve(u,l),u.className=b.label,d.appendChild(h),d.appendChild(u),i.appendChild(d)});const a=i.querySelectorAll("input");a.length&&a[0].focus()}const U7=o=>{const e=[];return o instanceof Map?o.forEach((t,i)=>{let a=t;typeof a=="object"&&(a=U7(a)),e.push([i,a])}):Object.keys(o).forEach(t=>{let i=o[t];typeof i=="object"&&(i=U7(i)),e.push([t,i])}),e},aE=(o,e)=>!!e&&e.toString()===o.toString(),PA=o=>{const e=Y.innerParams.get(o);o.disableButtons(),e.input?oE(o,"confirm"):AC(o,!0)},qA=o=>{const e=Y.innerParams.get(o);o.disableButtons(),e.returnInputValueOnDeny?oE(o,"deny"):HC(o,!1)},BA=(o,e)=>{o.disableButtons(),e(hn.cancel)},oE=(o,e)=>{const t=Y.innerParams.get(o);if(!t.input){Uo(`The "input" parameter is needed to be set when using returnInputValueOn${bC(e)}`);return}const i=o.getInput(),a=IA(o,t);t.inputValidator?FA(o,a,e):i&&!i.checkValidity()?(o.enableButtons(),o.showValidationMessage(t.validationMessage||i.validationMessage)):e==="deny"?HC(o,a):AC(o,a)},FA=(o,e,t)=>{const i=Y.innerParams.get(o);o.disableInput(),Promise.resolve().then(()=>xn(i.inputValidator(e,i.validationMessage))).then(n=>{o.enableButtons(),o.enableInput(),n?o.showValidationMessage(n):t==="deny"?HC(o,e):AC(o,e)})},HC=(o,e)=>{const t=Y.innerParams.get(o||void 0);t.showLoaderOnDeny&&on(Go()),t.preDeny?(o.isAwaitingPromise=!0,Promise.resolve().then(()=>xn(t.preDeny(e,t.validationMessage))).then(a=>{a===!1?(o.hideLoading(),Tn(o)):o.close({isDenied:!0,value:typeof a>"u"?e:a})}).catch(a=>nE(o||void 0,a))):o.close({isDenied:!0,value:e})},px=(o,e)=>{o.close({isConfirmed:!0,value:e})},nE=(o,e)=>{o.rejectPromise(e)},AC=(o,e)=>{const t=Y.innerParams.get(o||void 0);t.showLoaderOnConfirm&&on(),t.preConfirm?(o.resetValidationMessage(),o.isAwaitingPromise=!0,Promise.resolve().then(()=>xn(t.preConfirm(e,t.validationMessage))).then(a=>{ce(r9())||a===!1?(o.hideLoading(),Tn(o)):px(o,typeof a>"u"?e:a)}).catch(a=>nE(o||void 0,a))):px(o,e)};function G7(){const o=Y.innerParams.get(this);if(!o)return;const e=Y.domCache.get(this);ae(e.loader),h9()?o.icon&&Q(sn()):OA(e),we([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const OA=o=>{const e=o.popup.getElementsByClassName(o.loader.getAttribute("data-button-to-replace"));e.length?Q(e[0],"inline-block"):pH()&&ae(o.actions)};function sE(){const o=Y.innerParams.get(this),e=Y.domCache.get(this);return e?c9(e.popup,o.input):null}function rE(o,e,t){const i=Y.domCache.get(o);e.forEach(a=>{i[a].disabled=t})}function lE(o,e){const t=j();if(!(!t||!o))if(o.type==="radio"){const i=t.querySelectorAll(`[name="${b.radio}"]`);for(let a=0;a<i.length;a++)i[a].disabled=e}else o.disabled=e}function hE(){rE(this,["confirmButton","denyButton","cancelButton"],!1)}function cE(){rE(this,["confirmButton","denyButton","cancelButton"],!0)}function dE(){lE(this.getInput(),!1)}function uE(){lE(this.getInput(),!0)}function pE(o){const e=Y.domCache.get(this),t=Y.innerParams.get(this);ve(e.validationMessage,o),e.validationMessage.className=b["validation-message"],t.customClass&&t.customClass.validationMessage&&N(e.validationMessage,t.customClass.validationMessage),Q(e.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",b["validation-message"]),FL(i),N(i,b.inputerror))}function yE(){const o=Y.domCache.get(this);o.validationMessage&&ae(o.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),we(e,b.inputerror))}const Qo={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},jA=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],NA={allowEnterKey:void 0},_A=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],fE=o=>Object.prototype.hasOwnProperty.call(Qo,o),mE=o=>jA.indexOf(o)!==-1,gE=o=>NA[o],WA=o=>{fE(o)||ne(`Unknown parameter "${o}"`)},UA=o=>{_A.includes(o)&&ne(`The parameter "${o}" is incompatible with toasts`)},GA=o=>{const e=gE(o);e&&VL(o,e)},kE=o=>{o.backdrop===!1&&o.allowOutsideClick&&ne('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),o.theme&&!["light","dark","auto","minimal","borderless","embed-iframe"].includes(o.theme)&&ne(`Invalid theme "${o.theme}". Expected "light", "dark", "auto", "minimal", "borderless", or "embed-iframe"`);for(const e in o)WA(e),o.toast&&UA(e),GA(e)};function vE(o){const e=re(),t=j(),i=Y.innerParams.get(this);if(!t||qe(t,i.hideClass.popup)){ne("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const a=$A(o),n=Object.assign({},i,a);kE(n),e.dataset.swal2Theme=n.theme,ZL(this,n),Y.innerParams.set(this,n),Object.defineProperties(this,{params:{value:Object.assign({},this.params,o),writable:!1,enumerable:!0}})}const $A=o=>{const e={};return Object.keys(o).forEach(t=>{mE(t)?e[t]=o[t]:ne(`Invalid parameter to update: ${t}`)}),e};function bE(){const o=Y.domCache.get(this),e=Y.innerParams.get(this);if(!e){wE(this);return}o.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),A.eventEmitter.emit("didDestroy"),YA(this)}const YA=o=>{wE(o),delete o.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},wE=o=>{o.isAwaitingPromise?(C9(Y,o),o.isAwaitingPromise=!0):(C9(an,o),C9(Y,o),delete o.isAwaitingPromise,delete o.disableButtons,delete o.enableButtons,delete o.getInput,delete o.disableInput,delete o.enableInput,delete o.hideLoading,delete o.disableLoading,delete o.showValidationMessage,delete o.resetValidationMessage,delete o.close,delete o.closePopup,delete o.closeModal,delete o.closeToast,delete o.rejectPromise,delete o.update,delete o._destroy)},C9=(o,e)=>{for(const t in o)o[t].delete(e)};var ZA=Object.freeze({__proto__:null,_destroy:bE,close:Ze,closeModal:Ze,closePopup:Ze,closeToast:Ze,disableButtons:cE,disableInput:uE,disableLoading:G7,enableButtons:hE,enableInput:dE,getInput:sE,handleAwaitingPromise:Tn,hideLoading:G7,rejectPromise:iE,resetValidationMessage:yE,showValidationMessage:pE,update:vE});const XA=(o,e,t)=>{o.toast?KA(o,e,t):(QA(e),eV(e),tV(o,e,t))},KA=(o,e,t)=>{e.popup.onclick=()=>{o&&(JA(o)||o.timer||o.input)||t(hn.close)}},JA=o=>!!(o.showConfirmButton||o.showDenyButton||o.showCancelButton||o.showCloseButton);let $7=!1;const QA=o=>{o.popup.onmousedown=()=>{o.container.onmouseup=function(e){o.container.onmouseup=()=>{},e.target===o.container&&($7=!0)}}},eV=o=>{o.container.onmousedown=e=>{e.target===o.container&&e.preventDefault(),o.popup.onmouseup=function(t){o.popup.onmouseup=()=>{},(t.target===o.popup||t.target instanceof HTMLElement&&o.popup.contains(t.target))&&($7=!0)}}},tV=(o,e,t)=>{e.container.onclick=i=>{if($7){$7=!1;return}i.target===e.container&&s9(o.allowOutsideClick)&&t(hn.backdrop)}},iV=o=>typeof o=="object"&&o.jquery,yx=o=>o instanceof Element||iV(o),aV=o=>{const e={};return typeof o[0]=="object"&&!yx(o[0])?Object.assign(e,o[0]):["title","html","icon"].forEach((t,i)=>{const a=o[i];typeof a=="string"||yx(a)?e[t]=a:a!==void 0&&Uo(`Unexpected type of ${t}! Expected "string" or "Element", got ${typeof a}`)}),e};function oV(...o){return new this(...o)}function nV(o){class e extends this{_main(i,a){return super._main(i,Object.assign({},o,a))}}return e}const sV=()=>A.timeout&&A.timeout.getTimerLeft(),ME=()=>{if(A.timeout)return fH(),A.timeout.stop()},CE=()=>{if(A.timeout){const o=A.timeout.start();return TC(o),o}},rV=()=>{const o=A.timeout;return o&&(o.running?ME():CE())},lV=o=>{if(A.timeout){const e=A.timeout.increase(o);return TC(e,!0),e}},hV=()=>!!(A.timeout&&A.timeout.isRunning());let fx=!1;const iC={};function cV(o="data-swal-template"){iC[o]=this,fx||(document.body.addEventListener("click",dV),fx=!0)}const dV=o=>{for(let e=o.target;e&&e!==document;e=e.parentNode)for(const t in iC){const i=e.getAttribute(t);if(i){iC[t].fire({template:i});return}}};class uV{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,t){const i=this._getHandlersByEventName(e);i.includes(t)||i.push(t)}once(e,t){const i=(...a)=>{this.removeListener(e,i),t.apply(this,a)};this.on(e,i)}emit(e,...t){this._getHandlersByEventName(e).forEach(i=>{try{i.apply(this,t)}catch(a){console.error(a)}})}removeListener(e,t){const i=this._getHandlersByEventName(e),a=i.indexOf(t);a>-1&&i.splice(a,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}A.eventEmitter=new uV;const pV=(o,e)=>{A.eventEmitter.on(o,e)},yV=(o,e)=>{A.eventEmitter.once(o,e)},fV=(o,e)=>{if(!o){A.eventEmitter.reset();return}e?A.eventEmitter.removeListener(o,e):A.eventEmitter.removeAllListeners(o)};var mV=Object.freeze({__proto__:null,argsToParams:aV,bindClickHandler:cV,clickCancel:aA,clickConfirm:XL,clickDeny:iA,enableLoading:on,fire:oV,getActions:En,getCancelButton:rn,getCloseButton:LC,getConfirmButton:ze,getContainer:re,getDenyButton:Go,getFocusableElements:EC,getFooter:BL,getHtmlContainer:CC,getIcon:sn,getIconContent:lH,getImage:qL,getInputLabel:hH,getLoader:ln,getPopup:j,getProgressSteps:xC,getTimerLeft:sV,getTimerProgressBar:l9,getTitle:PL,getValidationMessage:r9,increaseTimer:lV,isDeprecatedParameter:gE,isLoading:dH,isTimerRunning:hV,isUpdatableParameter:mE,isValidParameter:fE,isVisible:tA,mixin:nV,off:fV,on:pV,once:yV,resumeTimer:CE,showLoading:on,stopTimer:ME,toggleTimer:rV});class gV{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const xE=["swal-title","swal-html","swal-footer"],kV=o=>{const e=typeof o.template=="string"?document.querySelector(o.template):o.template;if(!e)return{};const t=e.content;return EV(t),Object.assign(vV(t),bV(t),wV(t),MV(t),CV(t),xV(t),LV(t,xE))},vV=o=>{const e={};return Array.from(o.querySelectorAll("swal-param")).forEach(i=>{Wo(i,["name","value"]);const a=i.getAttribute("name"),n=i.getAttribute("value");!a||!n||(typeof Qo[a]=="boolean"?e[a]=n!=="false":typeof Qo[a]=="object"?e[a]=JSON.parse(n):e[a]=n)}),e},bV=o=>{const e={};return Array.from(o.querySelectorAll("swal-function-param")).forEach(i=>{const a=i.getAttribute("name"),n=i.getAttribute("value");!a||!n||(e[a]=new Function(`return ${n}`)())}),e},wV=o=>{const e={};return Array.from(o.querySelectorAll("swal-button")).forEach(i=>{Wo(i,["type","color","aria-label"]);const a=i.getAttribute("type");!a||!["confirm","cancel","deny"].includes(a)||(e[`${a}ButtonText`]=i.innerHTML,e[`show${bC(a)}Button`]=!0,i.hasAttribute("color")&&(e[`${a}ButtonColor`]=i.getAttribute("color")),i.hasAttribute("aria-label")&&(e[`${a}ButtonAriaLabel`]=i.getAttribute("aria-label")))}),e},MV=o=>{const e={},t=o.querySelector("swal-image");return t&&(Wo(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")||void 0),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")||void 0),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")||void 0),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt")||void 0)),e},CV=o=>{const e={},t=o.querySelector("swal-icon");return t&&(Wo(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e},xV=o=>{const e={},t=o.querySelector("swal-input");t&&(Wo(t,["type","label","placeholder","value"]),e.input=t.getAttribute("type")||"text",t.hasAttribute("label")&&(e.inputLabel=t.getAttribute("label")),t.hasAttribute("placeholder")&&(e.inputPlaceholder=t.getAttribute("placeholder")),t.hasAttribute("value")&&(e.inputValue=t.getAttribute("value")));const i=Array.from(o.querySelectorAll("swal-input-option"));return i.length&&(e.inputOptions={},i.forEach(a=>{Wo(a,["value"]);const n=a.getAttribute("value");if(!n)return;const r=a.innerHTML;e.inputOptions[n]=r})),e},LV=(o,e)=>{const t={};for(const i in e){const a=e[i],n=o.querySelector(a);n&&(Wo(n,[]),t[a.replace(/^swal-/,"")]=n.innerHTML.trim())}return t},EV=o=>{const e=xE.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(o.children).forEach(t=>{const i=t.tagName.toLowerCase();e.includes(i)||ne(`Unrecognized element <${i}>`)})},Wo=(o,e)=>{Array.from(o.attributes).forEach(t=>{e.indexOf(t.name)===-1&&ne([`Unrecognized attribute "${t.name}" on <${o.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},LE=10,SV=o=>{const e=re(),t=j();typeof o.willOpen=="function"&&o.willOpen(t),A.eventEmitter.emit("willOpen",t);const a=window.getComputedStyle(document.body).overflowY;DV(e,t,o),setTimeout(()=>{IV(e,t)},LE),SC()&&(TV(e,o.scrollbarPadding,a),dA()),!h9()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof o.didOpen=="function"&&setTimeout(()=>o.didOpen(t)),A.eventEmitter.emit("didOpen",t),we(e,b["no-transition"])},Y7=o=>{const e=j();if(o.target!==e)return;const t=re();e.removeEventListener("animationend",Y7),e.removeEventListener("transitionend",Y7),t.style.overflowY="auto"},IV=(o,e)=>{jL(e)?(o.style.overflowY="hidden",e.addEventListener("animationend",Y7),e.addEventListener("transitionend",Y7)):o.style.overflowY="auto"},TV=(o,e,t)=>{uA(),e&&t!=="hidden"&&vA(t),setTimeout(()=>{o.scrollTop=0})},DV=(o,e,t)=>{N(o,t.showClass.backdrop),t.animation?(e.style.setProperty("opacity","0","important"),Q(e,"grid"),setTimeout(()=>{N(e,t.showClass.popup),e.style.removeProperty("opacity")},LE)):Q(e,"grid"),N([document.documentElement,document.body],b.shown),t.heightAuto&&t.backdrop&&!t.toast&&N([document.documentElement,document.body],b["height-auto"])};var mx={email:(o,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(o)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(o,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(o)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function zV(o){o.inputValidator||(o.input==="email"&&(o.inputValidator=mx.email),o.input==="url"&&(o.inputValidator=mx.url))}function RV(o){(!o.target||typeof o.target=="string"&&!document.querySelector(o.target)||typeof o.target!="string"&&!o.target.appendChild)&&(ne('Target parameter is not valid, defaulting to "body"'),o.target="body")}function HV(o){zV(o),o.showLoaderOnConfirm&&!o.preConfirm&&ne(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
8106
|
+
`,cx=(o,e)=>{if(!e.icon&&!e.iconHtml)return;let t=o.innerHTML,i="";e.iconHtml?i=dx(e.iconHtml):e.icon==="success"?(i=UH,t=t.replace(/ style=".*?"/g,"")):e.icon==="error"?i=$H:e.icon&&(i=dx({question:"?",warning:"!",info:"i"}[e.icon])),t.trim()!==i.trim()&&ke(o,i)},GH=(o,e)=>{if(e.iconColor){o.style.color=e.iconColor,o.style.borderColor=e.iconColor;for(const t of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])lx(o,t,"background-color",e.iconColor);lx(o,".swal2-success-ring","border-color",e.iconColor)}},dx=o=>`<div class="${b["icon-content"]}">${o}</div>`,YH=(o,e)=>{const t=qL();if(t){if(!e.imageUrl){oe(t);return}Q(t,""),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt||""),_o(t,"width",e.imageWidth),_o(t,"height",e.imageHeight),t.className=b.image,me(t,e,"image")}};let RC=!1,WL=0,UL=0,$L=0,GL=0;const ZH=o=>{o.addEventListener("mousedown",N7),document.body.addEventListener("mousemove",_7),o.addEventListener("mouseup",W7),o.addEventListener("touchstart",N7),document.body.addEventListener("touchmove",_7),o.addEventListener("touchend",W7)},XH=o=>{o.removeEventListener("mousedown",N7),document.body.removeEventListener("mousemove",_7),o.removeEventListener("mouseup",W7),o.removeEventListener("touchstart",N7),document.body.removeEventListener("touchmove",_7),o.removeEventListener("touchend",W7)},N7=o=>{const e=N();if(o.target===e||sn().contains(o.target)){RC=!0;const t=YL(o);WL=t.clientX,UL=t.clientY,$L=parseInt(e.style.insetInlineStart)||0,GL=parseInt(e.style.insetBlockStart)||0,_(e,"swal2-dragging")}},_7=o=>{const e=N();if(RC){let{clientX:t,clientY:i}=YL(o);e.style.insetInlineStart=`${$L+(t-WL)}px`,e.style.insetBlockStart=`${GL+(i-UL)}px`}},W7=()=>{const o=N();RC=!1,be(o,"swal2-dragging")},YL=o=>{let e=0,t=0;return o.type.startsWith("mouse")?(e=o.clientX,t=o.clientY):o.type.startsWith("touch")&&(e=o.touches[0].clientX,t=o.touches[0].clientY),{clientX:e,clientY:t}},KH=(o,e)=>{const t=re(),i=N();if(!(!t||!i)){if(e.toast){_o(t,"width",e.width),i.style.width="100%";const a=ln();a&&i.insertBefore(a,sn())}else _o(i,"width",e.width);_o(i,"padding",e.padding),e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background),oe(r9()),JH(i,e),e.draggable&&!e.toast?(_(i,b.draggable),ZH(i)):(be(i,b.draggable),XH(i))}},JH=(o,e)=>{const t=e.showClass||{};o.className=`${b.popup} ${ce(o)?t.popup:""}`,e.toast?(_([document.documentElement,document.body],b["toast-shown"]),_(o,b.toast)):_(o,b.modal),me(o,e,"popup"),typeof e.customClass=="string"&&_(o,e.customClass),e.icon&&_(o,b[`icon-${e.icon}`])},QH=(o,e)=>{const t=xC();if(!t)return;const{progressSteps:i,currentProgressStep:a}=e;if(!i||i.length===0||a===void 0){oe(t);return}Q(t),t.textContent="",a>=i.length&&ne("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach((n,r)=>{const l=eA(n);if(t.appendChild(l),r===a&&_(l,b["active-progress-step"]),r!==i.length-1){const h=tA(e);t.appendChild(h)}})},eA=o=>{const e=document.createElement("li");return _(e,b["progress-step"]),ke(e,o),e},tA=o=>{const e=document.createElement("li");return _(e,b["progress-step-line"]),o.progressStepsDistance&&_o(e,"width",o.progressStepsDistance),e},iA=(o,e)=>{const t=PL();t&&(IC(t),Sn(t,e.title||e.titleText,"block"),e.title&&DC(e.title,t),e.titleText&&(t.innerText=e.titleText),me(t,e,"title"))},ZL=(o,e)=>{KH(o,e),RH(o,e),QH(o,e),WH(o,e),YH(o,e),iA(o,e),zH(o,e),NH(o,e),IH(o,e),_H(o,e);const t=N();typeof e.didRender=="function"&&t&&e.didRender(t),V.eventEmitter.emit("didRender",t)},aA=()=>ce(N()),XL=()=>{var o;return(o=Re())===null||o===void 0?void 0:o.click()},oA=()=>{var o;return(o=$o())===null||o===void 0?void 0:o.click()},nA=()=>{var o;return(o=rn())===null||o===void 0?void 0:o.click()},hn=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),KL=o=>{o.keydownTarget&&o.keydownHandlerAdded&&(o.keydownTarget.removeEventListener("keydown",o.keydownHandler,{capture:o.keydownListenerCapture}),o.keydownHandlerAdded=!1)},sA=(o,e,t)=>{KL(o),e.toast||(o.keydownHandler=i=>lA(e,i,t),o.keydownTarget=e.keydownListenerCapture?window:N(),o.keydownListenerCapture=e.keydownListenerCapture,o.keydownTarget.addEventListener("keydown",o.keydownHandler,{capture:o.keydownListenerCapture}),o.keydownHandlerAdded=!0)},tC=(o,e)=>{var t;const i=EC();if(i.length){o=o+e,o===-2&&(o=i.length-1),o===i.length?o=0:o===-1&&(o=i.length-1),i[o].focus();return}(t=N())===null||t===void 0||t.focus()},JL=["ArrowRight","ArrowDown"],rA=["ArrowLeft","ArrowUp"],lA=(o,e,t)=>{o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?hA(e,o):e.key==="Tab"?cA(e):[...JL,...rA].includes(e.key)?dA(e.key):e.key==="Escape"&&uA(e,o,t)))},hA=(o,e)=>{if(!s9(e.allowEnterKey))return;const t=c9(N(),e.input);if(o.target&&t&&o.target instanceof HTMLElement&&o.target.outerHTML===t.outerHTML){if(["textarea","file"].includes(e.input))return;XL(),o.preventDefault()}},cA=o=>{const e=o.target,t=EC();let i=-1;for(let a=0;a<t.length;a++)if(e===t[a]){i=a;break}o.shiftKey?tC(i,-1):tC(i,1),o.stopPropagation(),o.preventDefault()},dA=o=>{const e=En(),t=Re(),i=$o(),a=rn();if(!e||!t||!i||!a)return;const n=[t,i,a];if(document.activeElement instanceof HTMLElement&&!n.includes(document.activeElement))return;const r=JL.includes(o)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let h=0;h<e.children.length;h++){if(l=l[r],!l)return;if(l instanceof HTMLButtonElement&&ce(l))break}l instanceof HTMLButtonElement&&l.focus()}},uA=(o,e,t)=>{s9(e.allowEscapeKey)&&(o.preventDefault(),t(hn.esc))};var an={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const pA=()=>{const o=re();Array.from(document.body.children).forEach(t=>{t.contains(o)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},QL=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},eE=typeof window<"u"&&!!window.GestureEvent,yA=()=>{if(eE&&!qe(document.body,b.iosfix)){const o=document.body.scrollTop;document.body.style.top=`${o*-1}px`,_(document.body,b.iosfix),fA()}},fA=()=>{const o=re();if(!o)return;let e;o.ontouchstart=t=>{e=mA(t)},o.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},mA=o=>{const e=o.target,t=re(),i=CC();return!t||!i||gA(o)||kA(o)?!1:e===t||!eC(t)&&e instanceof HTMLElement&&!mH(e,i)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(eC(i)&&i.contains(e))},gA=o=>o.touches&&o.touches.length&&o.touches[0].touchType==="stylus",kA=o=>o.touches&&o.touches.length>1,vA=()=>{if(qe(document.body,b.iosfix)){const o=parseInt(document.body.style.top,10);be(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=o*-1}},bA=()=>{const o=document.createElement("div");o.className=b["scrollbar-measure"],document.body.appendChild(o);const e=o.getBoundingClientRect().width-o.clientWidth;return document.body.removeChild(o),e};let Jo=null;const wA=o=>{Jo===null&&(document.body.scrollHeight>window.innerHeight||o==="scroll")&&(Jo=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Jo+bA()}px`)},MA=()=>{Jo!==null&&(document.body.style.paddingRight=`${Jo}px`,Jo=null)};function tE(o,e,t,i){h9()?ux(o,i):(sH(t).then(()=>ux(o,i)),KL(V)),eE?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),SC()&&(MA(),vA(),QL()),CA()}function CA(){be([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function Ze(o){o=LA(o);const e=an.swalPromiseResolve.get(this),t=xA(this);this.isAwaitingPromise?o.isDismissed||(Tn(this),e(o)):t&&e(o)}const xA=o=>{const e=N();if(!e)return!1;const t=Z.innerParams.get(o);if(!t||qe(e,t.hideClass.popup))return!1;be(e,t.showClass.popup),_(e,t.hideClass.popup);const i=re();return be(i,t.showClass.backdrop),_(i,t.hideClass.backdrop),EA(o,e,t),!0};function iE(o){const e=an.swalPromiseReject.get(this);Tn(this),e&&e(o)}const Tn=o=>{o.isAwaitingPromise&&(delete o.isAwaitingPromise,Z.innerParams.get(o)||o._destroy())},LA=o=>typeof o>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},o),EA=(o,e,t)=>{var i;const a=re(),n=jL(e);typeof t.willClose=="function"&&t.willClose(e),(i=V.eventEmitter)===null||i===void 0||i.emit("willClose",e),n?SA(o,e,a,t.returnFocus,t.didClose):tE(o,a,t.returnFocus,t.didClose)},SA=(o,e,t,i,a)=>{V.swalCloseEventFinishedCallback=tE.bind(null,o,t,i,a);const n=function(r){if(r.target===e){var l;(l=V.swalCloseEventFinishedCallback)===null||l===void 0||l.call(V),delete V.swalCloseEventFinishedCallback,e.removeEventListener("animationend",n),e.removeEventListener("transitionend",n)}};e.addEventListener("animationend",n),e.addEventListener("transitionend",n)},ux=(o,e)=>{setTimeout(()=>{var t;typeof e=="function"&&e.bind(o.params)(),(t=V.eventEmitter)===null||t===void 0||t.emit("didClose"),o._destroy&&o._destroy()})},on=o=>{let e=N();if(e||new jo,e=N(),!e)return;const t=ln();h9()?oe(sn()):IA(e,o),Q(t),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},IA=(o,e)=>{const t=En(),i=ln();!t||!i||(!e&&ce(Re())&&(e=Re()),Q(t),e&&(oe(e),i.setAttribute("data-button-to-replace",e.className),t.insertBefore(i,e)),_([o,t],b.loading))},TA=(o,e)=>{e.input==="select"||e.input==="radio"?AA(o,e):["text","email","number","tel","textarea"].some(t=>t===e.input)&&(wC(e.inputValue)||MC(e.inputValue))&&(on(Re()),VA(o,e))},DA=(o,e)=>{const t=o.getInput();if(!t)return null;switch(e.input){case"checkbox":return zA(t);case"radio":return RA(t);case"file":return HA(t);default:return e.inputAutoTrim?t.value.trim():t.value}},zA=o=>o.checked?1:0,RA=o=>o.checked?o.value:null,HA=o=>o.files&&o.files.length?o.getAttribute("multiple")!==null?o.files:o.files[0]:null,AA=(o,e)=>{const t=N();if(!t)return;const i=a=>{e.input==="select"?PA(t,U7(a),e):e.input==="radio"&&qA(t,U7(a),e)};wC(e.inputOptions)||MC(e.inputOptions)?(on(Re()),xn(e.inputOptions).then(a=>{o.hideLoading(),i(a)})):typeof e.inputOptions=="object"?i(e.inputOptions):Uo(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},VA=(o,e)=>{const t=o.getInput();t&&(oe(t),xn(e.inputValue).then(i=>{t.value=e.input==="number"?`${parseFloat(i)||0}`:`${i}`,Q(t),t.focus(),o.hideLoading()}).catch(i=>{Uo(`Error in inputValue promise: ${i}`),t.value="",Q(t),t.focus(),o.hideLoading()}))};function PA(o,e,t){const i=Ye(o,b.select);if(!i)return;const a=(n,r,l)=>{const h=document.createElement("option");h.value=l,ke(h,r),h.selected=aE(l,t.inputValue),n.appendChild(h)};e.forEach(n=>{const r=n[0],l=n[1];if(Array.isArray(l)){const h=document.createElement("optgroup");h.label=r,h.disabled=!1,i.appendChild(h),l.forEach(d=>a(h,d[1],d[0]))}else a(i,l,r)}),i.focus()}function qA(o,e,t){const i=Ye(o,b.radio);if(!i)return;e.forEach(n=>{const r=n[0],l=n[1],h=document.createElement("input"),d=document.createElement("label");h.type="radio",h.name=b.radio,h.value=r,aE(r,t.inputValue)&&(h.checked=!0);const u=document.createElement("span");ke(u,l),u.className=b.label,d.appendChild(h),d.appendChild(u),i.appendChild(d)});const a=i.querySelectorAll("input");a.length&&a[0].focus()}const U7=o=>{const e=[];return o instanceof Map?o.forEach((t,i)=>{let a=t;typeof a=="object"&&(a=U7(a)),e.push([i,a])}):Object.keys(o).forEach(t=>{let i=o[t];typeof i=="object"&&(i=U7(i)),e.push([t,i])}),e},aE=(o,e)=>!!e&&e.toString()===o.toString(),BA=o=>{const e=Z.innerParams.get(o);o.disableButtons(),e.input?oE(o,"confirm"):AC(o,!0)},FA=o=>{const e=Z.innerParams.get(o);o.disableButtons(),e.returnInputValueOnDeny?oE(o,"deny"):HC(o,!1)},OA=(o,e)=>{o.disableButtons(),e(hn.cancel)},oE=(o,e)=>{const t=Z.innerParams.get(o);if(!t.input){Uo(`The "input" parameter is needed to be set when using returnInputValueOn${bC(e)}`);return}const i=o.getInput(),a=DA(o,t);t.inputValidator?jA(o,a,e):i&&!i.checkValidity()?(o.enableButtons(),o.showValidationMessage(t.validationMessage||i.validationMessage)):e==="deny"?HC(o,a):AC(o,a)},jA=(o,e,t)=>{const i=Z.innerParams.get(o);o.disableInput(),Promise.resolve().then(()=>xn(i.inputValidator(e,i.validationMessage))).then(n=>{o.enableButtons(),o.enableInput(),n?o.showValidationMessage(n):t==="deny"?HC(o,e):AC(o,e)})},HC=(o,e)=>{const t=Z.innerParams.get(o||void 0);t.showLoaderOnDeny&&on($o()),t.preDeny?(o.isAwaitingPromise=!0,Promise.resolve().then(()=>xn(t.preDeny(e,t.validationMessage))).then(a=>{a===!1?(o.hideLoading(),Tn(o)):o.close({isDenied:!0,value:typeof a>"u"?e:a})}).catch(a=>nE(o||void 0,a))):o.close({isDenied:!0,value:e})},px=(o,e)=>{o.close({isConfirmed:!0,value:e})},nE=(o,e)=>{o.rejectPromise(e)},AC=(o,e)=>{const t=Z.innerParams.get(o||void 0);t.showLoaderOnConfirm&&on(),t.preConfirm?(o.resetValidationMessage(),o.isAwaitingPromise=!0,Promise.resolve().then(()=>xn(t.preConfirm(e,t.validationMessage))).then(a=>{ce(r9())||a===!1?(o.hideLoading(),Tn(o)):px(o,typeof a>"u"?e:a)}).catch(a=>nE(o||void 0,a))):px(o,e)};function $7(){const o=Z.innerParams.get(this);if(!o)return;const e=Z.domCache.get(this);oe(e.loader),h9()?o.icon&&Q(sn()):NA(e),be([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const NA=o=>{const e=o.popup.getElementsByClassName(o.loader.getAttribute("data-button-to-replace"));e.length?Q(e[0],"inline-block"):fH()&&oe(o.actions)};function sE(){const o=Z.innerParams.get(this),e=Z.domCache.get(this);return e?c9(e.popup,o.input):null}function rE(o,e,t){const i=Z.domCache.get(o);e.forEach(a=>{i[a].disabled=t})}function lE(o,e){const t=N();if(!(!t||!o))if(o.type==="radio"){const i=t.querySelectorAll(`[name="${b.radio}"]`);for(let a=0;a<i.length;a++)i[a].disabled=e}else o.disabled=e}function hE(){rE(this,["confirmButton","denyButton","cancelButton"],!1)}function cE(){rE(this,["confirmButton","denyButton","cancelButton"],!0)}function dE(){lE(this.getInput(),!1)}function uE(){lE(this.getInput(),!0)}function pE(o){const e=Z.domCache.get(this),t=Z.innerParams.get(this);ke(e.validationMessage,o),e.validationMessage.className=b["validation-message"],t.customClass&&t.customClass.validationMessage&&_(e.validationMessage,t.customClass.validationMessage),Q(e.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",b["validation-message"]),FL(i),_(i,b.inputerror))}function yE(){const o=Z.domCache.get(this);o.validationMessage&&oe(o.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),be(e,b.inputerror))}const Qo={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},_A=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],WA={allowEnterKey:void 0},UA=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],fE=o=>Object.prototype.hasOwnProperty.call(Qo,o),mE=o=>_A.indexOf(o)!==-1,gE=o=>WA[o],$A=o=>{fE(o)||ne(`Unknown parameter "${o}"`)},GA=o=>{UA.includes(o)&&ne(`The parameter "${o}" is incompatible with toasts`)},YA=o=>{const e=gE(o);e&&VL(o,e)},kE=o=>{o.backdrop===!1&&o.allowOutsideClick&&ne('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),o.theme&&!["light","dark","auto","minimal","borderless","embed-iframe"].includes(o.theme)&&ne(`Invalid theme "${o.theme}". Expected "light", "dark", "auto", "minimal", "borderless", or "embed-iframe"`);for(const e in o)$A(e),o.toast&&GA(e),YA(e)};function vE(o){const e=re(),t=N(),i=Z.innerParams.get(this);if(!t||qe(t,i.hideClass.popup)){ne("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const a=ZA(o),n=Object.assign({},i,a);kE(n),e.dataset.swal2Theme=n.theme,ZL(this,n),Z.innerParams.set(this,n),Object.defineProperties(this,{params:{value:Object.assign({},this.params,o),writable:!1,enumerable:!0}})}const ZA=o=>{const e={};return Object.keys(o).forEach(t=>{mE(t)?e[t]=o[t]:ne(`Invalid parameter to update: ${t}`)}),e};function bE(){const o=Z.domCache.get(this),e=Z.innerParams.get(this);if(!e){wE(this);return}o.popup&&V.swalCloseEventFinishedCallback&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),V.eventEmitter.emit("didDestroy"),XA(this)}const XA=o=>{wE(o),delete o.params,delete V.keydownHandler,delete V.keydownTarget,delete V.currentInstance},wE=o=>{o.isAwaitingPromise?(C9(Z,o),o.isAwaitingPromise=!0):(C9(an,o),C9(Z,o),delete o.isAwaitingPromise,delete o.disableButtons,delete o.enableButtons,delete o.getInput,delete o.disableInput,delete o.enableInput,delete o.hideLoading,delete o.disableLoading,delete o.showValidationMessage,delete o.resetValidationMessage,delete o.close,delete o.closePopup,delete o.closeModal,delete o.closeToast,delete o.rejectPromise,delete o.update,delete o._destroy)},C9=(o,e)=>{for(const t in o)o[t].delete(e)};var KA=Object.freeze({__proto__:null,_destroy:bE,close:Ze,closeModal:Ze,closePopup:Ze,closeToast:Ze,disableButtons:cE,disableInput:uE,disableLoading:$7,enableButtons:hE,enableInput:dE,getInput:sE,handleAwaitingPromise:Tn,hideLoading:$7,rejectPromise:iE,resetValidationMessage:yE,showValidationMessage:pE,update:vE});const JA=(o,e,t)=>{o.toast?QA(o,e,t):(tV(e),iV(e),aV(o,e,t))},QA=(o,e,t)=>{e.popup.onclick=()=>{o&&(eV(o)||o.timer||o.input)||t(hn.close)}},eV=o=>!!(o.showConfirmButton||o.showDenyButton||o.showCancelButton||o.showCloseButton);let G7=!1;const tV=o=>{o.popup.onmousedown=()=>{o.container.onmouseup=function(e){o.container.onmouseup=()=>{},e.target===o.container&&(G7=!0)}}},iV=o=>{o.container.onmousedown=e=>{e.target===o.container&&e.preventDefault(),o.popup.onmouseup=function(t){o.popup.onmouseup=()=>{},(t.target===o.popup||t.target instanceof HTMLElement&&o.popup.contains(t.target))&&(G7=!0)}}},aV=(o,e,t)=>{e.container.onclick=i=>{if(G7){G7=!1;return}i.target===e.container&&s9(o.allowOutsideClick)&&t(hn.backdrop)}},oV=o=>typeof o=="object"&&o.jquery,yx=o=>o instanceof Element||oV(o),nV=o=>{const e={};return typeof o[0]=="object"&&!yx(o[0])?Object.assign(e,o[0]):["title","html","icon"].forEach((t,i)=>{const a=o[i];typeof a=="string"||yx(a)?e[t]=a:a!==void 0&&Uo(`Unexpected type of ${t}! Expected "string" or "Element", got ${typeof a}`)}),e};function sV(...o){return new this(...o)}function rV(o){class e extends this{_main(i,a){return super._main(i,Object.assign({},o,a))}}return e}const lV=()=>V.timeout&&V.timeout.getTimerLeft(),ME=()=>{if(V.timeout)return gH(),V.timeout.stop()},CE=()=>{if(V.timeout){const o=V.timeout.start();return TC(o),o}},hV=()=>{const o=V.timeout;return o&&(o.running?ME():CE())},cV=o=>{if(V.timeout){const e=V.timeout.increase(o);return TC(e,!0),e}},dV=()=>!!(V.timeout&&V.timeout.isRunning());let fx=!1;const iC={};function uV(o="data-swal-template"){iC[o]=this,fx||(document.body.addEventListener("click",pV),fx=!0)}const pV=o=>{for(let e=o.target;e&&e!==document;e=e.parentNode)for(const t in iC){const i=e.getAttribute(t);if(i){iC[t].fire({template:i});return}}};class yV{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,t){const i=this._getHandlersByEventName(e);i.includes(t)||i.push(t)}once(e,t){const i=(...a)=>{this.removeListener(e,i),t.apply(this,a)};this.on(e,i)}emit(e,...t){this._getHandlersByEventName(e).forEach(i=>{try{i.apply(this,t)}catch(a){console.error(a)}})}removeListener(e,t){const i=this._getHandlersByEventName(e),a=i.indexOf(t);a>-1&&i.splice(a,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}V.eventEmitter=new yV;const fV=(o,e)=>{V.eventEmitter.on(o,e)},mV=(o,e)=>{V.eventEmitter.once(o,e)},gV=(o,e)=>{if(!o){V.eventEmitter.reset();return}e?V.eventEmitter.removeListener(o,e):V.eventEmitter.removeAllListeners(o)};var kV=Object.freeze({__proto__:null,argsToParams:nV,bindClickHandler:uV,clickCancel:nA,clickConfirm:XL,clickDeny:oA,enableLoading:on,fire:sV,getActions:En,getCancelButton:rn,getCloseButton:LC,getConfirmButton:Re,getContainer:re,getDenyButton:$o,getFocusableElements:EC,getFooter:BL,getHtmlContainer:CC,getIcon:sn,getIconContent:cH,getImage:qL,getInputLabel:dH,getLoader:ln,getPopup:N,getProgressSteps:xC,getTimerLeft:lV,getTimerProgressBar:l9,getTitle:PL,getValidationMessage:r9,increaseTimer:cV,isDeprecatedParameter:gE,isLoading:pH,isTimerRunning:dV,isUpdatableParameter:mE,isValidParameter:fE,isVisible:aA,mixin:rV,off:gV,on:fV,once:mV,resumeTimer:CE,showLoading:on,stopTimer:ME,toggleTimer:hV});class vV{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const xE=["swal-title","swal-html","swal-footer"],bV=o=>{const e=typeof o.template=="string"?document.querySelector(o.template):o.template;if(!e)return{};const t=e.content;return IV(t),Object.assign(wV(t),MV(t),CV(t),xV(t),LV(t),EV(t),SV(t,xE))},wV=o=>{const e={};return Array.from(o.querySelectorAll("swal-param")).forEach(i=>{Wo(i,["name","value"]);const a=i.getAttribute("name"),n=i.getAttribute("value");!a||!n||(typeof Qo[a]=="boolean"?e[a]=n!=="false":typeof Qo[a]=="object"?e[a]=JSON.parse(n):e[a]=n)}),e},MV=o=>{const e={};return Array.from(o.querySelectorAll("swal-function-param")).forEach(i=>{const a=i.getAttribute("name"),n=i.getAttribute("value");!a||!n||(e[a]=new Function(`return ${n}`)())}),e},CV=o=>{const e={};return Array.from(o.querySelectorAll("swal-button")).forEach(i=>{Wo(i,["type","color","aria-label"]);const a=i.getAttribute("type");!a||!["confirm","cancel","deny"].includes(a)||(e[`${a}ButtonText`]=i.innerHTML,e[`show${bC(a)}Button`]=!0,i.hasAttribute("color")&&(e[`${a}ButtonColor`]=i.getAttribute("color")),i.hasAttribute("aria-label")&&(e[`${a}ButtonAriaLabel`]=i.getAttribute("aria-label")))}),e},xV=o=>{const e={},t=o.querySelector("swal-image");return t&&(Wo(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")||void 0),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")||void 0),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")||void 0),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt")||void 0)),e},LV=o=>{const e={},t=o.querySelector("swal-icon");return t&&(Wo(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e},EV=o=>{const e={},t=o.querySelector("swal-input");t&&(Wo(t,["type","label","placeholder","value"]),e.input=t.getAttribute("type")||"text",t.hasAttribute("label")&&(e.inputLabel=t.getAttribute("label")),t.hasAttribute("placeholder")&&(e.inputPlaceholder=t.getAttribute("placeholder")),t.hasAttribute("value")&&(e.inputValue=t.getAttribute("value")));const i=Array.from(o.querySelectorAll("swal-input-option"));return i.length&&(e.inputOptions={},i.forEach(a=>{Wo(a,["value"]);const n=a.getAttribute("value");if(!n)return;const r=a.innerHTML;e.inputOptions[n]=r})),e},SV=(o,e)=>{const t={};for(const i in e){const a=e[i],n=o.querySelector(a);n&&(Wo(n,[]),t[a.replace(/^swal-/,"")]=n.innerHTML.trim())}return t},IV=o=>{const e=xE.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(o.children).forEach(t=>{const i=t.tagName.toLowerCase();e.includes(i)||ne(`Unrecognized element <${i}>`)})},Wo=(o,e)=>{Array.from(o.attributes).forEach(t=>{e.indexOf(t.name)===-1&&ne([`Unrecognized attribute "${t.name}" on <${o.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},LE=10,TV=o=>{const e=re(),t=N();typeof o.willOpen=="function"&&o.willOpen(t),V.eventEmitter.emit("willOpen",t);const a=window.getComputedStyle(document.body).overflowY;RV(e,t,o),setTimeout(()=>{DV(e,t)},LE),SC()&&(zV(e,o.scrollbarPadding,a),pA()),!h9()&&!V.previousActiveElement&&(V.previousActiveElement=document.activeElement),typeof o.didOpen=="function"&&setTimeout(()=>o.didOpen(t)),V.eventEmitter.emit("didOpen",t),be(e,b["no-transition"])},Y7=o=>{const e=N();if(o.target!==e)return;const t=re();e.removeEventListener("animationend",Y7),e.removeEventListener("transitionend",Y7),t.style.overflowY="auto"},DV=(o,e)=>{jL(e)?(o.style.overflowY="hidden",e.addEventListener("animationend",Y7),e.addEventListener("transitionend",Y7)):o.style.overflowY="auto"},zV=(o,e,t)=>{yA(),e&&t!=="hidden"&&wA(t),setTimeout(()=>{o.scrollTop=0})},RV=(o,e,t)=>{_(o,t.showClass.backdrop),t.animation?(e.style.setProperty("opacity","0","important"),Q(e,"grid"),setTimeout(()=>{_(e,t.showClass.popup),e.style.removeProperty("opacity")},LE)):Q(e,"grid"),_([document.documentElement,document.body],b.shown),t.heightAuto&&t.backdrop&&!t.toast&&_([document.documentElement,document.body],b["height-auto"])};var mx={email:(o,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(o)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(o,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(o)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function HV(o){o.inputValidator||(o.input==="email"&&(o.inputValidator=mx.email),o.input==="url"&&(o.inputValidator=mx.url))}function AV(o){(!o.target||typeof o.target=="string"&&!document.querySelector(o.target)||typeof o.target!="string"&&!o.target.appendChild)&&(ne('Target parameter is not valid, defaulting to "body"'),o.target="body")}function VV(o){HV(o),o.showLoaderOnConfirm&&!o.preConfirm&&ne(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
8107
8107
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
8108
|
-
https://sweetalert2.github.io/#ajax-request`),
|
|
8109
|
-
`).join("<br />")),CH(o)}let De;var Nn=new WeakMap;class K{constructor(...e){if(eH(this,Nn,void 0),typeof window>"u")return;De=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,tH(Nn,this,this._main(De.params))}_main(e,t={}){if(kE(Object.assign({},t,e)),A.currentInstance){const n=an.swalPromiseResolve.get(A.currentInstance),{isAwaitingPromise:r}=A.currentInstance;A.currentInstance._destroy(),r||n({isDismissed:!0}),SC()&&QL()}A.currentInstance=De;const i=VV(e,t);HV(i),Object.freeze(i),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const a=PV(De);return ZL(De,i),Y.innerParams.set(De,i),AV(De,a,i)}then(e){return sx(Nn,this).then(e)}finally(e){return sx(Nn,this).finally(e)}}const AV=(o,e,t)=>new Promise((i,a)=>{const n=r=>{o.close({isDismissed:!0,dismiss:r})};an.swalPromiseResolve.set(o,i),an.swalPromiseReject.set(o,a),e.confirmButton.onclick=()=>{PA(o)},e.denyButton.onclick=()=>{qA(o)},e.cancelButton.onclick=()=>{BA(o,n)},e.closeButton.onclick=()=>{n(hn.close)},XA(t,e,n),oA(A,t,n),SA(o,t),SV(t),qV(A,t,n),BV(e,t),setTimeout(()=>{e.container.scrollTop=0})}),VV=(o,e)=>{const t=kV(o),i=Object.assign({},Qo,e,t,o);return i.showClass=Object.assign({},Qo.showClass,i.showClass),i.hideClass=Object.assign({},Qo.hideClass,i.hideClass),i.animation===!1&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},PV=o=>{const e={popup:j(),container:re(),actions:En(),confirmButton:ze(),denyButton:Go(),cancelButton:rn(),loader:ln(),closeButton:LC(),validationMessage:r9(),progressSteps:xC()};return Y.domCache.set(o,e),e},qV=(o,e,t)=>{const i=l9();ae(i),e.timer&&(o.timeout=new gV(()=>{t("timer"),delete o.timeout},e.timer),e.timerProgressBar&&(Q(i),ge(i,e,"timerProgressBar"),setTimeout(()=>{o.timeout&&o.timeout.running&&TC(e.timer)})))},BV=(o,e)=>{if(!e.toast){if(!s9(e.allowEnterKey)){VL("allowEnterKey"),jV();return}FV(o)||OV(o,e)||tC(-1,1)}},FV=o=>{const e=Array.from(o.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&ce(t))return t.focus(),!0;return!1},OV=(o,e)=>e.focusDeny&&ce(o.denyButton)?(o.denyButton.focus(),!0):e.focusCancel&&ce(o.cancelButton)?(o.cancelButton.focus(),!0):e.focusConfirm&&ce(o.confirmButton)?(o.confirmButton.focus(),!0):!1,jV=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const o=new Date,e=localStorage.getItem("swal-initiation");e?(o.getTime()-Date.parse(e))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout(()=>{t.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${o}`)}K.prototype.disableButtons=cE;K.prototype.enableButtons=hE;K.prototype.getInput=sE;K.prototype.disableInput=uE;K.prototype.enableInput=dE;K.prototype.hideLoading=G7;K.prototype.disableLoading=G7;K.prototype.showValidationMessage=pE;K.prototype.resetValidationMessage=yE;K.prototype.close=Ze;K.prototype.closePopup=Ze;K.prototype.closeModal=Ze;K.prototype.closeToast=Ze;K.prototype.rejectPromise=iE;K.prototype.update=vE;K.prototype._destroy=bE;Object.assign(K,mV);Object.keys(ZA).forEach(o=>{K[o]=function(...e){return De&&De[o]?De[o](...e):null}});K.DismissReason=hn;K.version="11.21.2";const jo=K;jo.default=jo;typeof document<"u"&&function(o,e){var t=o.createElement("style");if(o.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=e);else try{t.innerHTML=e}catch{t.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-confirm-button-border: 0;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-border: 0;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-border: 0;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-button-transition);box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:var(--swal2-confirm-button-border);border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:var(--swal2-deny-button-border);border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:var(--swal2-cancel-button-border);border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:1px solid #d9d9d9;border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const _n=o=>jo.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:o||3e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=jo.stopTimer,e.onmouseleave=jo.resumeTimer,e.onclick=()=>{jo.close()}}}),NV={error(o,e){_n(e).fire({icon:"error",title:o})},warn(o,e){_n(e).fire({icon:"warning",title:o})},success(o,e){_n(e).fire({icon:"success",title:o})},info(o,e){_n(e).fire({icon:"info",title:o})}},_V=(o,e)=>{const t=o.toLowerCase().split("+").map(h=>h.trim()),i={ctrl:t.includes("ctrl"),alt:t.includes("alt"),shift:t.includes("shift"),meta:t.includes("meta")},a=t.filter(h=>!["ctrl","alt","shift","meta"].includes(h));if(a.length===0)throw new Error("No main keys specified in shortcut.");const n=new Set,r=h=>{n.add(h.key.toLowerCase());const d=h.ctrlKey===i.ctrl&&h.altKey===i.alt&&h.shiftKey===i.shift&&h.metaKey===i.meta,u=a.every(p=>n.has(p));d&&u&&(h.preventDefault(),e(h))},l=h=>{n.delete(h.key.toLowerCase())};return window.addEventListener("keydown",r),window.addEventListener("keyup",l),{destroy(){window.removeEventListener("keydown",r),window.removeEventListener("keyup",l)}}},WV={install(o){o.config.globalProperties.$focusNext=function(e){var r;const i=(r=this.$refs)==null?void 0:r[e];if(i&&typeof i.activate=="function"){i.activate();return}const a=document.getElementById(e);if(!a)return;const n=a.tagName;(n==="INPUT"||n==="TEXTAREA"||n==="BUTTON")&&a.focus()}}};exports.ContentLayout=BE;exports.CurrencyFormatter=DL;exports.CurrencyUnformatter=zL;exports.DateRange=_R;exports.DateSelector=vR;exports.FocusNext=WV;exports.Icons=Nx;exports.InputCurrency=XR;exports.InputError=GR;exports.InputSelect=ZR;exports.Modal=gx;exports.ScrollbarAnimateDropdown=KR;exports.ScrollbarScroll=$R;exports.Switch=ZE;exports.Tabulator=FT;exports.Toast=NV;exports.Toggle=oC;exports.Towser=JT;exports.WebSocketWrapper=JR;exports.createShortCutKey=_V;
|
|
8108
|
+
https://sweetalert2.github.io/#ajax-request`),AV(o),typeof o.title=="string"&&(o.title=o.title.split(`
|
|
8109
|
+
`).join("<br />")),LH(o)}let ze;var Nn=new WeakMap;class K{constructor(...e){if(iH(this,Nn,void 0),typeof window>"u")return;ze=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,aH(Nn,this,this._main(ze.params))}_main(e,t={}){if(kE(Object.assign({},t,e)),V.currentInstance){const n=an.swalPromiseResolve.get(V.currentInstance),{isAwaitingPromise:r}=V.currentInstance;V.currentInstance._destroy(),r||n({isDismissed:!0}),SC()&&QL()}V.currentInstance=ze;const i=qV(e,t);VV(i),Object.freeze(i),V.timeout&&(V.timeout.stop(),delete V.timeout),clearTimeout(V.restoreFocusTimeout);const a=BV(ze);return ZL(ze,i),Z.innerParams.set(ze,i),PV(ze,a,i)}then(e){return sx(Nn,this).then(e)}finally(e){return sx(Nn,this).finally(e)}}const PV=(o,e,t)=>new Promise((i,a)=>{const n=r=>{o.close({isDismissed:!0,dismiss:r})};an.swalPromiseResolve.set(o,i),an.swalPromiseReject.set(o,a),e.confirmButton.onclick=()=>{BA(o)},e.denyButton.onclick=()=>{FA(o)},e.cancelButton.onclick=()=>{OA(o,n)},e.closeButton.onclick=()=>{n(hn.close)},JA(t,e,n),sA(V,t,n),TA(o,t),TV(t),FV(V,t,n),OV(e,t),setTimeout(()=>{e.container.scrollTop=0})}),qV=(o,e)=>{const t=bV(o),i=Object.assign({},Qo,e,t,o);return i.showClass=Object.assign({},Qo.showClass,i.showClass),i.hideClass=Object.assign({},Qo.hideClass,i.hideClass),i.animation===!1&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},BV=o=>{const e={popup:N(),container:re(),actions:En(),confirmButton:Re(),denyButton:$o(),cancelButton:rn(),loader:ln(),closeButton:LC(),validationMessage:r9(),progressSteps:xC()};return Z.domCache.set(o,e),e},FV=(o,e,t)=>{const i=l9();oe(i),e.timer&&(o.timeout=new vV(()=>{t("timer"),delete o.timeout},e.timer),e.timerProgressBar&&(Q(i),me(i,e,"timerProgressBar"),setTimeout(()=>{o.timeout&&o.timeout.running&&TC(e.timer)})))},OV=(o,e)=>{if(!e.toast){if(!s9(e.allowEnterKey)){VL("allowEnterKey"),_V();return}jV(o)||NV(o,e)||tC(-1,1)}},jV=o=>{const e=Array.from(o.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&ce(t))return t.focus(),!0;return!1},NV=(o,e)=>e.focusDeny&&ce(o.denyButton)?(o.denyButton.focus(),!0):e.focusCancel&&ce(o.cancelButton)?(o.cancelButton.focus(),!0):e.focusConfirm&&ce(o.confirmButton)?(o.confirmButton.focus(),!0):!1,_V=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const o=new Date,e=localStorage.getItem("swal-initiation");e?(o.getTime()-Date.parse(e))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout(()=>{t.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${o}`)}K.prototype.disableButtons=cE;K.prototype.enableButtons=hE;K.prototype.getInput=sE;K.prototype.disableInput=uE;K.prototype.enableInput=dE;K.prototype.hideLoading=$7;K.prototype.disableLoading=$7;K.prototype.showValidationMessage=pE;K.prototype.resetValidationMessage=yE;K.prototype.close=Ze;K.prototype.closePopup=Ze;K.prototype.closeModal=Ze;K.prototype.closeToast=Ze;K.prototype.rejectPromise=iE;K.prototype.update=vE;K.prototype._destroy=bE;Object.assign(K,kV);Object.keys(KA).forEach(o=>{K[o]=function(...e){return ze&&ze[o]?ze[o](...e):null}});K.DismissReason=hn;K.version="11.21.2";const jo=K;jo.default=jo;typeof document<"u"&&function(o,e){var t=o.createElement("style");if(o.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=e);else try{t.innerHTML=e}catch{t.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-confirm-button-border: 0;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-border: 0;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-border: 0;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-button-transition);box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:var(--swal2-confirm-button-border);border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:var(--swal2-deny-button-border);border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:var(--swal2-cancel-button-border);border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:1px solid #d9d9d9;border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const _n=o=>jo.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:o||3e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=jo.stopTimer,e.onmouseleave=jo.resumeTimer,e.onclick=()=>{jo.close()}}}),WV={error(o,e){_n(e).fire({icon:"error",title:o})},warn(o,e){_n(e).fire({icon:"warning",title:o})},success(o,e){_n(e).fire({icon:"success",title:o})},info(o,e){_n(e).fire({icon:"info",title:o})}},UV=(o,e)=>{const t=o.toLowerCase().split("+").map(h=>h.trim()),i={ctrl:t.includes("ctrl"),alt:t.includes("alt"),shift:t.includes("shift"),meta:t.includes("meta")},a=t.filter(h=>!["ctrl","alt","shift","meta"].includes(h));if(a.length===0)throw new Error("No main keys specified in shortcut.");const n=new Set,r=h=>{n.add(h.key.toLowerCase());const d=h.ctrlKey===i.ctrl&&h.altKey===i.alt&&h.shiftKey===i.shift&&h.metaKey===i.meta,u=a.every(p=>n.has(p));d&&u&&(h.preventDefault(),e(h))},l=h=>{n.delete(h.key.toLowerCase())};return window.addEventListener("keydown",r),window.addEventListener("keyup",l),{destroy(){window.removeEventListener("keydown",r),window.removeEventListener("keyup",l)}}},$V={install(o){o.config.globalProperties.$focusNext=function(e){var r;const i=(r=this.$refs)==null?void 0:r[e];if(i&&typeof i.activate=="function"){i.activate();return}const a=document.getElementById(e);if(!a)return;const n=a.tagName;(n==="INPUT"||n==="TEXTAREA"||n==="BUTTON")&&a.focus()}}};exports.ContentLayout=BE;exports.CurrencyFormatter=DL;exports.CurrencyUnformatter=zL;exports.DateRange=UR;exports.DateSelector=wR;exports.FocusNext=$V;exports.Icons=Nx;exports.InputCurrency=JR;exports.InputError=YR;exports.InputSelect=KR;exports.Modal=gx;exports.ScrollbarAnimateDropdown=QR;exports.ScrollbarScroll=ZR;exports.Switch=ZE;exports.Tabulator=FT;exports.Toast=WV;exports.Toggle=oC;exports.Towser=JT;exports.WebSocketWrapper=eH;exports.createShortCutKey=UV;
|