r3ui-lib 1.2.3-12 → 1.2.3-13
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/r3ui-lib.css +1 -1
- package/dist/r3ui-lib.es.js +2938 -2936
- package/dist/r3ui-lib.umd.js +19 -19
- package/dist/types/components/cards/PageCard.vue.d.ts.map +1 -1
- package/dist/types/components/forms/AddressForm.vue.d.ts.map +1 -1
- package/dist/types/components/tables/Table.vue.d.ts.map +1 -1
- package/dist/types/components/tables/TableColumnsButton.vue.d.ts.map +1 -1
- package/dist/types/components/tables/TableColumnsModal.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/r3ui-lib.umd.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
(function(Ce,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(Ce=typeof globalThis<"u"?globalThis:Ce||self,o(Ce.R3uiLib={},Ce.Vue))})(this,(function(Ce,o){"use strict";const Er={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["spinner-border",{"spinner-border-sm":n.isSmall}]),role:"status"},null,2))}},kr={__name:"Icon",props:{name:{type:String,required:!0}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("i",{class:o.normalizeClass(`bi bi-${n.name}`)},null,2))}},vd={class:"d-inline-flex align-items-center justify-content-center"},yd={key:2},Sr={__name:"DefaultButton",props:{label:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator(n){return["right","left"].includes(n)}},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1},customClasses:{type:Array,default:()=>[]},styles:{type:String,default:"primary",validator(n){return["primary","light","secondary","success","danger","warning","info"].includes(n)}}},emits:["submit"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>`btn-${t.styles}`);function s(){t.isLoading||t.isDisabled||i("submit")}return(a,l)=>(o.openBlock(),o.createElementBlock("button",{"data-test":"DefaultButton",class:o.normalizeClass(["btn",[n.isLoading||n.isDisabled?"disabled":"",n.isFullWidth?"w-100":"",n.styles?r.value:"",...n.customClasses]]),onClick:o.withModifiers(s,["prevent"])},[o.createElementVNode("div",vd,[n.icon&&n.iconPosition==="left"?(o.openBlock(),o.createBlock(kr,{key:0,name:n.icon,class:o.normalizeClass(n.label?"me-2":"")},null,8,["name","class"])):o.createCommentVNode("",!0),n.isLoading?(o.openBlock(),o.createBlock(Er,{key:1,isSmall:!0,class:"pe-2"})):o.createCommentVNode("",!0),n.label?(o.openBlock(),o.createElementBlock("span",yd,o.toDisplayString(n.label),1)):o.createCommentVNode("",!0),n.icon&&n.iconPosition==="right"?(o.openBlock(),o.createBlock(kr,{key:3,name:n.icon,class:o.normalizeClass(n.label?"ms-2":"")},null,8,["name","class"])):o.createCommentVNode("",!0)])],2))}},wd=o.defineComponent({__name:"AddButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},iconClass:{default:"bi bi-plus-circle-fill pe-2"}},emits:["click"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("click")};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["d-flex add-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"AddButton",onClick:r},[o.createElementVNode("i",{class:o.normalizeClass(s.iconClass)},null,2),o.createTextVNode(" "+o.toDisplayString(s.label||s.text||"Добавить"),1)],2))}}),_e=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},ja=_e(wd,[["__scopeId","data-v-cf07042b"]]),Cd={"data-test":"CollapseButton"},Ad=["id"],Ed=["id"],kd=_e(o.defineComponent({__name:"CollapseButton",props:{isCollapsed:{type:Boolean,default:!0},expandText:{default:"Развернуть все"},collapseText:{default:"Свернуть все"},expandId:{default:"expand-filters-btn"},collapseId:{default:"collapse-filters-btn"},buttonStyle:{default:"padding: 8px 24px; margin-bottom: 32px"},iconStyle:{default:"font-size: 10px"},expandLabel:{default:"Развернуть все"},collapseLabel:{default:"Свернуть все"},isColapsed:{type:Boolean}},emits:["emitCollapseToggle","emitColapsed","expand","collapse"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.isCollapsed),s=o.computed(()=>t.expandText),a=o.computed(()=>t.collapseText),l=()=>{i("emitCollapseToggle",!1),i("emitColapsed",!1),i("expand")},u=()=>{i("emitCollapseToggle",!0),i("emitColapsed",!0),i("collapse")};return(c,d)=>(o.openBlock(),o.createElementBlock("div",Cd,[r.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",id:c.expandId,class:"btn btn-light collapse-button",onClick:l,style:o.normalizeStyle(c.buttonStyle)},[o.createTextVNode(o.toDisplayString(s.value)+" ",1),o.createElementVNode("i",{class:"bi bi-caret-down-fill",style:o.normalizeStyle(c.iconStyle)},null,4)],12,Ad)):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",id:c.collapseId,class:"btn btn-light collapse-button",onClick:u,style:o.normalizeStyle(c.buttonStyle)},[o.createTextVNode(o.toDisplayString(a.value)+" ",1),o.createElementVNode("i",{class:"bi bi-caret-up-fill",style:o.normalizeStyle(c.iconStyle)},null,4)],12,Ed))]))}}),[["__scopeId","data-v-a0502514"]]),Sd=_e(o.defineComponent({__name:"ExportButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},exportType:{default:"default"}},emits:["export"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("export",t.exportType)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["col-auto export-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"ExportButton",onClick:r},[o.createTextVNode(o.toDisplayString(s.label||s.text||"Экспорт")+" ",1),a[0]||(a[0]=o.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],2))}}),[["__scopeId","data-v-20f08c06"]]),xd=_e(o.defineComponent({__name:"PrintButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1}},emits:["print"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||(window.print(),i("print"))};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["col-auto print-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"PrintButton",onClick:r},[o.createTextVNode(o.toDisplayString(s.label||s.text||"Печать")+" ",1),a[0]||(a[0]=o.createElementVNode("i",{class:"ps-2 bi bi-printer-fill"},null,-1))],2))}}),[["__scopeId","data-v-52020521"]]),Rd=["disabled"],Md={class:"clear-form-button__label"},Td=_e(o.defineComponent({__name:"ClearFormButton",props:{label:{default:"Очистить"},disabled:{type:Boolean,default:!1}},emits:["clear"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("clear",!0)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["clear-form-button",{"clear-form-button--disabled":s.disabled}]),disabled:s.disabled,"data-test":"ClearFormButton",onClick:r},[a[0]||(a[0]=o.createElementVNode("div",{class:"clear-form-button__icon"},[o.createElementVNode("i",{class:"bi bi-trash-fill"})],-1)),o.createElementVNode("div",Md,o.toDisplayString(s.label),1)],10,Rd))}}),[["__scopeId","data-v-ed163ff4"]]),Dd={class:"toggle-buttons","data-test":"ToggleButtons"},Od=["onClick"],Ld=_e(o.defineComponent({__name:"ToggleButtons",props:{options:{},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=r=>{t("update:modelValue",r.name)};return(r,s)=>(o.openBlock(),o.createElementBlock("div",Dd,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.options,a=>(o.openBlock(),o.createElementBlock("button",{key:a.name,type:"button",class:o.normalizeClass(["toggle-buttons__button",{"toggle-buttons__button--active":r.modelValue===a.name}]),onClick:l=>i(a)},o.toDisplayString(a.title),11,Od))),128))]))}}),[["__scopeId","data-v-4eae7f5d"]]);var Wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Bd(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var xr,Ga;function Di(){return Ga||(Ga=1,xr=TypeError),xr}const Fd=Bd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Rr,Ya;function Mn(){if(Ya)return Rr;Ya=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,i=n&&Map.prototype.forEach,r=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=r&&s&&typeof s.get=="function"?s.get:null,l=r&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,f=d?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,h=p?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,m=Object.prototype.toString,C=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,M=String.prototype.replace,v=String.prototype.toUpperCase,R=String.prototype.toLowerCase,y=RegExp.prototype.test,x=Array.prototype.concat,k=Array.prototype.join,A=Array.prototype.slice,w=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,N=typeof Symbol=="function"&&typeof Symbol.iterator=="object",j=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||!0)?Symbol.toStringTag:null,G=Object.prototype.propertyIsEnumerable,I=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Z){return Z.__proto__}:null);function V(Z,re){if(Z===1/0||Z===-1/0||Z!==Z||Z&&Z>-1e3&&Z<1e3||y.call(/e/,re))return re;var He=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Z=="number"){var Ue=Z<0?-w(-Z):w(Z);if(Ue!==Z){var Oe=String(Ue),Se=g.call(re,Oe.length+1);return M.call(Oe,He,"$&_")+"."+M.call(M.call(Se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(re,He,"$&_")}var J=Fd,B=J.custom,P=le(B)?B:null,Q={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Rr=function Z(re,He,Ue,Oe){var Se=He||{};if(ke(Se,"quoteStyle")&&!ke(Q,Se.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ke(Se,"maxStringLength")&&(typeof Se.maxStringLength=="number"?Se.maxStringLength<0&&Se.maxStringLength!==1/0:Se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var bt=ke(Se,"customInspect")?Se.customInspect:!0;if(typeof bt!="boolean"&&bt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ke(Se,"indent")&&Se.indent!==null&&Se.indent!==" "&&!(parseInt(Se.indent,10)===Se.indent&&Se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ke(Se,"numericSeparator")&&typeof Se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var nt=Se.numericSeparator;if(typeof re>"u")return"undefined";if(re===null)return"null";if(typeof re=="boolean")return re?"true":"false";if(typeof re=="string")return Be(re,Se);if(typeof re=="number"){if(re===0)return 1/0/re>0?"0":"-0";var F=String(re);return nt?V(re,F):F}if(typeof re=="bigint"){var E=String(re)+"n";return nt?V(re,E):E}var O=typeof Se.depth>"u"?5:Se.depth;if(typeof Ue>"u"&&(Ue=0),Ue>=O&&O>0&&typeof re=="object")return ae(re)?"[Array]":"[Object]";var _=ge(Se,Ue);if(typeof Oe>"u")Oe=[];else if(Le(Oe,re)>=0)return"[Circular]";function Y(zt,qt,$i){if(qt&&(Oe=A.call(Oe),Oe.push(qt)),$i){var Ti={depth:Se.depth};return ke(Se,"quoteStyle")&&(Ti.quoteStyle=Se.quoteStyle),Z(zt,Ti,Ue+1,Oe)}return Z(zt,Se,Ue+1,Oe)}if(typeof re=="function"&&!H(re)){var se=Ne(re),oe=Me(re,Y);return"[Function"+(se?": "+se:" (anonymous)")+"]"+(oe.length>0?" { "+k.call(oe,", ")+" }":"")}if(le(re)){var ce=N?M.call(String(re),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(re);return typeof re=="object"&&!N?Re(ce):ce}if(Ee(re)){for(var he="<"+R.call(String(re.nodeName)),pe=re.attributes||[],be=0;be<pe.length;be++)he+=" "+pe[be].name+"="+$(ee(pe[be].value),"double",Se);return he+=">",re.childNodes&&re.childNodes.length&&(he+="..."),he+="</"+R.call(String(re.nodeName))+">",he}if(ae(re)){if(re.length===0)return"[]";var De=Me(re,Y);return _&&!Qe(De)?"["+We(De,_)+"]":"[ "+k.call(De,", ")+" ]"}if(ne(re)){var je=Me(re,Y);return!("cause"in Error.prototype)&&"cause"in re&&!G.call(re,"cause")?"{ ["+String(re)+"] "+k.call(x.call("[cause]: "+Y(re.cause),je),", ")+" }":je.length===0?"["+String(re)+"]":"{ ["+String(re)+"] "+k.call(je,", ")+" }"}if(typeof re=="object"&&bt){if(P&&typeof re[P]=="function"&&J)return J(re,{depth:O-Ue});if(bt!=="symbol"&&typeof re.inspect=="function")return re.inspect()}if(U(re)){var Fe=[];return i&&i.call(re,function(zt,qt){Fe.push(Y(qt,re,!0)+" => "+Y(zt,re))}),ot("Map",t.call(re),Fe,_)}if(de(re)){var $e=[];return l&&l.call(re,function(zt){$e.push(Y(zt,re))}),ot("Set",a.call(re),$e,_)}if(q(re))return Ie("WeakMap");if(ue(re))return Ie("WeakSet");if(X(re))return Ie("WeakRef");if(te(re))return Re(Y(Number(re)));if(ve(re))return Re(Y(D.call(re)));if(fe(re))return Re(S.call(re));if(ie(re))return Re(Y(String(re)));if(typeof window<"u"&&re===window)return"{ [object Window] }";if(typeof globalThis<"u"&&re===globalThis||typeof Wa<"u"&&re===Wa)return"{ [object globalThis] }";if(!W(re)&&!H(re)){var et=Me(re,Y),lt=I?I(re)===Object.prototype:re instanceof Object||re.constructor===Object,rt=re instanceof Object?"":"null prototype",bi=!lt&&j&&Object(re)===re&&j in re?g.call(Pe(re),8,-1):rt?"Object":"",Mi=lt||typeof re.constructor!="function"?"":re.constructor.name?re.constructor.name+" ":"",li=Mi+(bi||rt?"["+k.call(x.call([],bi||[],rt||[]),": ")+"] ":"");return et.length===0?li+"{}":_?li+"{"+We(et,_)+"}":li+"{ "+k.call(et,", ")+" }"}return String(re)};function $(Z,re,He){var Ue=He.quoteStyle||re,Oe=Q[Ue];return Oe+Z+Oe}function ee(Z){return M.call(String(Z),/"/g,""")}function K(Z){return!j||!(typeof Z=="object"&&(j in Z||typeof Z[j]<"u"))}function ae(Z){return Pe(Z)==="[object Array]"&&K(Z)}function W(Z){return Pe(Z)==="[object Date]"&&K(Z)}function H(Z){return Pe(Z)==="[object RegExp]"&&K(Z)}function ne(Z){return Pe(Z)==="[object Error]"&&K(Z)}function ie(Z){return Pe(Z)==="[object String]"&&K(Z)}function te(Z){return Pe(Z)==="[object Number]"&&K(Z)}function fe(Z){return Pe(Z)==="[object Boolean]"&&K(Z)}function le(Z){if(N)return Z&&typeof Z=="object"&&Z instanceof Symbol;if(typeof Z=="symbol")return!0;if(!Z||typeof Z!="object"||!L)return!1;try{return L.call(Z),!0}catch{}return!1}function ve(Z){if(!Z||typeof Z!="object"||!D)return!1;try{return D.call(Z),!0}catch{}return!1}var ye=Object.prototype.hasOwnProperty||function(Z){return Z in this};function ke(Z,re){return ye.call(Z,re)}function Pe(Z){return m.call(Z)}function Ne(Z){if(Z.name)return Z.name;var re=b.call(C.call(Z),/^function\s*([\w$]+)/);return re?re[1]:null}function Le(Z,re){if(Z.indexOf)return Z.indexOf(re);for(var He=0,Ue=Z.length;He<Ue;He++)if(Z[He]===re)return He;return-1}function U(Z){if(!t||!Z||typeof Z!="object")return!1;try{t.call(Z);try{a.call(Z)}catch{return!0}return Z instanceof Map}catch{}return!1}function q(Z){if(!c||!Z||typeof Z!="object")return!1;try{c.call(Z,c);try{f.call(Z,f)}catch{return!0}return Z instanceof WeakMap}catch{}return!1}function X(Z){if(!h||!Z||typeof Z!="object")return!1;try{return h.call(Z),!0}catch{}return!1}function de(Z){if(!a||!Z||typeof Z!="object")return!1;try{a.call(Z);try{t.call(Z)}catch{return!0}return Z instanceof Set}catch{}return!1}function ue(Z){if(!f||!Z||typeof Z!="object")return!1;try{f.call(Z,f);try{c.call(Z,c)}catch{return!0}return Z instanceof WeakSet}catch{}return!1}function Ee(Z){return!Z||typeof Z!="object"?!1:typeof HTMLElement<"u"&&Z instanceof HTMLElement?!0:typeof Z.nodeName=="string"&&typeof Z.getAttribute=="function"}function Be(Z,re){if(Z.length>re.maxStringLength){var He=Z.length-re.maxStringLength,Ue="... "+He+" more character"+(He>1?"s":"");return Be(g.call(Z,0,re.maxStringLength),re)+Ue}var Oe=z[re.quoteStyle||"single"];Oe.lastIndex=0;var Se=M.call(M.call(Z,Oe,"\\$1"),/[\x00-\x1f]/g,xe);return $(Se,"single",re)}function xe(Z){var re=Z.charCodeAt(0),He={8:"b",9:"t",10:"n",12:"f",13:"r"}[re];return He?"\\"+He:"\\x"+(re<16?"0":"")+v.call(re.toString(16))}function Re(Z){return"Object("+Z+")"}function Ie(Z){return Z+" { ? }"}function ot(Z,re,He,Ue){var Oe=Ue?We(He,Ue):k.call(He,", ");return Z+" ("+re+") {"+Oe+"}"}function Qe(Z){for(var re=0;re<Z.length;re++)if(Le(Z[re],`
|
|
1
|
+
(function(Ce,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(Ce=typeof globalThis<"u"?globalThis:Ce||self,o(Ce.R3uiLib={},Ce.Vue))})(this,(function(Ce,o){"use strict";const Er={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["spinner-border",{"spinner-border-sm":n.isSmall}]),role:"status"},null,2))}},kr={__name:"Icon",props:{name:{type:String,required:!0}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("i",{class:o.normalizeClass(`bi bi-${n.name}`)},null,2))}},vd={class:"d-inline-flex align-items-center justify-content-center"},yd={key:2},Sr={__name:"DefaultButton",props:{label:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator(n){return["right","left"].includes(n)}},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1},customClasses:{type:Array,default:()=>[]},styles:{type:String,default:"primary",validator(n){return["primary","light","secondary","success","danger","warning","info"].includes(n)}}},emits:["submit"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>`btn-${t.styles}`);function s(){t.isLoading||t.isDisabled||i("submit")}return(a,l)=>(o.openBlock(),o.createElementBlock("button",{"data-test":"DefaultButton",class:o.normalizeClass(["btn",[n.isLoading||n.isDisabled?"disabled":"",n.isFullWidth?"w-100":"",n.styles?r.value:"",...n.customClasses]]),onClick:o.withModifiers(s,["prevent"])},[o.createElementVNode("div",vd,[n.icon&&n.iconPosition==="left"?(o.openBlock(),o.createBlock(kr,{key:0,name:n.icon,class:o.normalizeClass(n.label?"me-2":"")},null,8,["name","class"])):o.createCommentVNode("",!0),n.isLoading?(o.openBlock(),o.createBlock(Er,{key:1,isSmall:!0,class:"pe-2"})):o.createCommentVNode("",!0),n.label?(o.openBlock(),o.createElementBlock("span",yd,o.toDisplayString(n.label),1)):o.createCommentVNode("",!0),n.icon&&n.iconPosition==="right"?(o.openBlock(),o.createBlock(kr,{key:3,name:n.icon,class:o.normalizeClass(n.label?"ms-2":"")},null,8,["name","class"])):o.createCommentVNode("",!0)])],2))}},wd=o.defineComponent({__name:"AddButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},iconClass:{default:"bi bi-plus-circle-fill pe-2"}},emits:["click"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("click")};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["d-flex add-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"AddButton",onClick:r},[o.createElementVNode("i",{class:o.normalizeClass(s.iconClass)},null,2),o.createTextVNode(" "+o.toDisplayString(s.label||s.text||"Добавить"),1)],2))}}),_e=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},ja=_e(wd,[["__scopeId","data-v-cf07042b"]]),Cd={"data-test":"CollapseButton"},Ad=["id"],Ed=["id"],kd=_e(o.defineComponent({__name:"CollapseButton",props:{isCollapsed:{type:Boolean,default:!0},expandText:{default:"Развернуть все"},collapseText:{default:"Свернуть все"},expandId:{default:"expand-filters-btn"},collapseId:{default:"collapse-filters-btn"},buttonStyle:{default:"padding: 8px 24px; margin-bottom: 32px"},iconStyle:{default:"font-size: 10px"},expandLabel:{default:"Развернуть все"},collapseLabel:{default:"Свернуть все"},isColapsed:{type:Boolean}},emits:["emitCollapseToggle","emitColapsed","expand","collapse"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.isCollapsed),s=o.computed(()=>t.expandText),a=o.computed(()=>t.collapseText),l=()=>{i("emitCollapseToggle",!1),i("emitColapsed",!1),i("expand")},u=()=>{i("emitCollapseToggle",!0),i("emitColapsed",!0),i("collapse")};return(c,d)=>(o.openBlock(),o.createElementBlock("div",Cd,[r.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",id:c.expandId,class:"btn btn-light collapse-button",onClick:l,style:o.normalizeStyle(c.buttonStyle)},[o.createTextVNode(o.toDisplayString(s.value)+" ",1),o.createElementVNode("i",{class:"bi bi-caret-down-fill",style:o.normalizeStyle(c.iconStyle)},null,4)],12,Ad)):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",id:c.collapseId,class:"btn btn-light collapse-button",onClick:u,style:o.normalizeStyle(c.buttonStyle)},[o.createTextVNode(o.toDisplayString(a.value)+" ",1),o.createElementVNode("i",{class:"bi bi-caret-up-fill",style:o.normalizeStyle(c.iconStyle)},null,4)],12,Ed))]))}}),[["__scopeId","data-v-a0502514"]]),Sd=_e(o.defineComponent({__name:"ExportButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},exportType:{default:"default"}},emits:["export"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("export",t.exportType)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["col-auto export-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"ExportButton",onClick:r},[o.createTextVNode(o.toDisplayString(s.label||s.text||"Экспорт")+" ",1),a[0]||(a[0]=o.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],2))}}),[["__scopeId","data-v-20f08c06"]]),xd=_e(o.defineComponent({__name:"PrintButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1}},emits:["print"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||(window.print(),i("print"))};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["col-auto print-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"PrintButton",onClick:r},[o.createTextVNode(o.toDisplayString(s.label||s.text||"Печать")+" ",1),a[0]||(a[0]=o.createElementVNode("i",{class:"ps-2 bi bi-printer-fill"},null,-1))],2))}}),[["__scopeId","data-v-52020521"]]),Rd=["disabled"],Md={class:"clear-form-button__label"},Td=_e(o.defineComponent({__name:"ClearFormButton",props:{label:{default:"Очистить"},disabled:{type:Boolean,default:!1}},emits:["clear"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("clear",!0)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["clear-form-button",{"clear-form-button--disabled":s.disabled}]),disabled:s.disabled,"data-test":"ClearFormButton",onClick:r},[a[0]||(a[0]=o.createElementVNode("div",{class:"clear-form-button__icon"},[o.createElementVNode("i",{class:"bi bi-trash-fill"})],-1)),o.createElementVNode("div",Md,o.toDisplayString(s.label),1)],10,Rd))}}),[["__scopeId","data-v-ed163ff4"]]),Dd={class:"toggle-buttons","data-test":"ToggleButtons"},Od=["onClick"],Ld=_e(o.defineComponent({__name:"ToggleButtons",props:{options:{},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=r=>{t("update:modelValue",r.name)};return(r,s)=>(o.openBlock(),o.createElementBlock("div",Dd,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.options,a=>(o.openBlock(),o.createElementBlock("button",{key:a.name,type:"button",class:o.normalizeClass(["toggle-buttons__button",{"toggle-buttons__button--active":r.modelValue===a.name}]),onClick:l=>i(a)},o.toDisplayString(a.title),11,Od))),128))]))}}),[["__scopeId","data-v-4eae7f5d"]]);var Wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Bd(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var xr,Ga;function Di(){return Ga||(Ga=1,xr=TypeError),xr}const Fd=Bd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Rr,Ya;function Mn(){if(Ya)return Rr;Ya=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,i=n&&Map.prototype.forEach,r=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=r&&s&&typeof s.get=="function"?s.get:null,l=r&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,f=d?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,h=p?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,m=Object.prototype.toString,A=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,M=String.prototype.replace,v=String.prototype.toUpperCase,R=String.prototype.toLowerCase,y=RegExp.prototype.test,x=Array.prototype.concat,k=Array.prototype.join,C=Array.prototype.slice,w=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,N=typeof Symbol=="function"&&typeof Symbol.iterator=="object",j=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||!0)?Symbol.toStringTag:null,G=Object.prototype.propertyIsEnumerable,I=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Z){return Z.__proto__}:null);function V(Z,re){if(Z===1/0||Z===-1/0||Z!==Z||Z&&Z>-1e3&&Z<1e3||y.call(/e/,re))return re;var He=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Z=="number"){var Ue=Z<0?-w(-Z):w(Z);if(Ue!==Z){var Oe=String(Ue),Se=g.call(re,Oe.length+1);return M.call(Oe,He,"$&_")+"."+M.call(M.call(Se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(re,He,"$&_")}var J=Fd,B=J.custom,P=le(B)?B:null,Q={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Rr=function Z(re,He,Ue,Oe){var Se=He||{};if(ke(Se,"quoteStyle")&&!ke(Q,Se.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ke(Se,"maxStringLength")&&(typeof Se.maxStringLength=="number"?Se.maxStringLength<0&&Se.maxStringLength!==1/0:Se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var bt=ke(Se,"customInspect")?Se.customInspect:!0;if(typeof bt!="boolean"&&bt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ke(Se,"indent")&&Se.indent!==null&&Se.indent!==" "&&!(parseInt(Se.indent,10)===Se.indent&&Se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ke(Se,"numericSeparator")&&typeof Se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var nt=Se.numericSeparator;if(typeof re>"u")return"undefined";if(re===null)return"null";if(typeof re=="boolean")return re?"true":"false";if(typeof re=="string")return Be(re,Se);if(typeof re=="number"){if(re===0)return 1/0/re>0?"0":"-0";var F=String(re);return nt?V(re,F):F}if(typeof re=="bigint"){var E=String(re)+"n";return nt?V(re,E):E}var O=typeof Se.depth>"u"?5:Se.depth;if(typeof Ue>"u"&&(Ue=0),Ue>=O&&O>0&&typeof re=="object")return ae(re)?"[Array]":"[Object]";var _=ge(Se,Ue);if(typeof Oe>"u")Oe=[];else if(Le(Oe,re)>=0)return"[Circular]";function Y(zt,qt,$i){if(qt&&(Oe=C.call(Oe),Oe.push(qt)),$i){var Ti={depth:Se.depth};return ke(Se,"quoteStyle")&&(Ti.quoteStyle=Se.quoteStyle),Z(zt,Ti,Ue+1,Oe)}return Z(zt,Se,Ue+1,Oe)}if(typeof re=="function"&&!H(re)){var se=Ne(re),oe=Me(re,Y);return"[Function"+(se?": "+se:" (anonymous)")+"]"+(oe.length>0?" { "+k.call(oe,", ")+" }":"")}if(le(re)){var ce=N?M.call(String(re),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(re);return typeof re=="object"&&!N?Re(ce):ce}if(Ee(re)){for(var he="<"+R.call(String(re.nodeName)),pe=re.attributes||[],be=0;be<pe.length;be++)he+=" "+pe[be].name+"="+$(ee(pe[be].value),"double",Se);return he+=">",re.childNodes&&re.childNodes.length&&(he+="..."),he+="</"+R.call(String(re.nodeName))+">",he}if(ae(re)){if(re.length===0)return"[]";var De=Me(re,Y);return _&&!Qe(De)?"["+We(De,_)+"]":"[ "+k.call(De,", ")+" ]"}if(ne(re)){var je=Me(re,Y);return!("cause"in Error.prototype)&&"cause"in re&&!G.call(re,"cause")?"{ ["+String(re)+"] "+k.call(x.call("[cause]: "+Y(re.cause),je),", ")+" }":je.length===0?"["+String(re)+"]":"{ ["+String(re)+"] "+k.call(je,", ")+" }"}if(typeof re=="object"&&bt){if(P&&typeof re[P]=="function"&&J)return J(re,{depth:O-Ue});if(bt!=="symbol"&&typeof re.inspect=="function")return re.inspect()}if(U(re)){var Fe=[];return i&&i.call(re,function(zt,qt){Fe.push(Y(qt,re,!0)+" => "+Y(zt,re))}),ot("Map",t.call(re),Fe,_)}if(de(re)){var $e=[];return l&&l.call(re,function(zt){$e.push(Y(zt,re))}),ot("Set",a.call(re),$e,_)}if(q(re))return Ie("WeakMap");if(ue(re))return Ie("WeakSet");if(X(re))return Ie("WeakRef");if(te(re))return Re(Y(Number(re)));if(ve(re))return Re(Y(D.call(re)));if(fe(re))return Re(S.call(re));if(ie(re))return Re(Y(String(re)));if(typeof window<"u"&&re===window)return"{ [object Window] }";if(typeof globalThis<"u"&&re===globalThis||typeof Wa<"u"&&re===Wa)return"{ [object globalThis] }";if(!W(re)&&!H(re)){var et=Me(re,Y),lt=I?I(re)===Object.prototype:re instanceof Object||re.constructor===Object,rt=re instanceof Object?"":"null prototype",bi=!lt&&j&&Object(re)===re&&j in re?g.call(Pe(re),8,-1):rt?"Object":"",Mi=lt||typeof re.constructor!="function"?"":re.constructor.name?re.constructor.name+" ":"",li=Mi+(bi||rt?"["+k.call(x.call([],bi||[],rt||[]),": ")+"] ":"");return et.length===0?li+"{}":_?li+"{"+We(et,_)+"}":li+"{ "+k.call(et,", ")+" }"}return String(re)};function $(Z,re,He){var Ue=He.quoteStyle||re,Oe=Q[Ue];return Oe+Z+Oe}function ee(Z){return M.call(String(Z),/"/g,""")}function K(Z){return!j||!(typeof Z=="object"&&(j in Z||typeof Z[j]<"u"))}function ae(Z){return Pe(Z)==="[object Array]"&&K(Z)}function W(Z){return Pe(Z)==="[object Date]"&&K(Z)}function H(Z){return Pe(Z)==="[object RegExp]"&&K(Z)}function ne(Z){return Pe(Z)==="[object Error]"&&K(Z)}function ie(Z){return Pe(Z)==="[object String]"&&K(Z)}function te(Z){return Pe(Z)==="[object Number]"&&K(Z)}function fe(Z){return Pe(Z)==="[object Boolean]"&&K(Z)}function le(Z){if(N)return Z&&typeof Z=="object"&&Z instanceof Symbol;if(typeof Z=="symbol")return!0;if(!Z||typeof Z!="object"||!L)return!1;try{return L.call(Z),!0}catch{}return!1}function ve(Z){if(!Z||typeof Z!="object"||!D)return!1;try{return D.call(Z),!0}catch{}return!1}var ye=Object.prototype.hasOwnProperty||function(Z){return Z in this};function ke(Z,re){return ye.call(Z,re)}function Pe(Z){return m.call(Z)}function Ne(Z){if(Z.name)return Z.name;var re=b.call(A.call(Z),/^function\s*([\w$]+)/);return re?re[1]:null}function Le(Z,re){if(Z.indexOf)return Z.indexOf(re);for(var He=0,Ue=Z.length;He<Ue;He++)if(Z[He]===re)return He;return-1}function U(Z){if(!t||!Z||typeof Z!="object")return!1;try{t.call(Z);try{a.call(Z)}catch{return!0}return Z instanceof Map}catch{}return!1}function q(Z){if(!c||!Z||typeof Z!="object")return!1;try{c.call(Z,c);try{f.call(Z,f)}catch{return!0}return Z instanceof WeakMap}catch{}return!1}function X(Z){if(!h||!Z||typeof Z!="object")return!1;try{return h.call(Z),!0}catch{}return!1}function de(Z){if(!a||!Z||typeof Z!="object")return!1;try{a.call(Z);try{t.call(Z)}catch{return!0}return Z instanceof Set}catch{}return!1}function ue(Z){if(!f||!Z||typeof Z!="object")return!1;try{f.call(Z,f);try{c.call(Z,c)}catch{return!0}return Z instanceof WeakSet}catch{}return!1}function Ee(Z){return!Z||typeof Z!="object"?!1:typeof HTMLElement<"u"&&Z instanceof HTMLElement?!0:typeof Z.nodeName=="string"&&typeof Z.getAttribute=="function"}function Be(Z,re){if(Z.length>re.maxStringLength){var He=Z.length-re.maxStringLength,Ue="... "+He+" more character"+(He>1?"s":"");return Be(g.call(Z,0,re.maxStringLength),re)+Ue}var Oe=z[re.quoteStyle||"single"];Oe.lastIndex=0;var Se=M.call(M.call(Z,Oe,"\\$1"),/[\x00-\x1f]/g,xe);return $(Se,"single",re)}function xe(Z){var re=Z.charCodeAt(0),He={8:"b",9:"t",10:"n",12:"f",13:"r"}[re];return He?"\\"+He:"\\x"+(re<16?"0":"")+v.call(re.toString(16))}function Re(Z){return"Object("+Z+")"}function Ie(Z){return Z+" { ? }"}function ot(Z,re,He,Ue){var Oe=Ue?We(He,Ue):k.call(He,", ");return Z+" ("+re+") {"+Oe+"}"}function Qe(Z){for(var re=0;re<Z.length;re++)if(Le(Z[re],`
|
|
2
2
|
`)>=0)return!1;return!0}function ge(Z,re){var He;if(Z.indent===" ")He=" ";else if(typeof Z.indent=="number"&&Z.indent>0)He=k.call(Array(Z.indent+1)," ");else return null;return{base:He,prev:k.call(Array(re+1),He)}}function We(Z,re){if(Z.length===0)return"";var He=`
|
|
3
3
|
`+re.prev+re.base;return He+k.call(Z,","+He)+`
|
|
4
|
-
`+re.prev}function Me(Z,re){var He=ae(Z),Ue=[];if(He){Ue.length=Z.length;for(var Oe=0;Oe<Z.length;Oe++)Ue[Oe]=ke(Z,Oe)?re(Z[Oe],Z):""}var Se=typeof T=="function"?T(Z):[],bt;if(N){bt={};for(var nt=0;nt<Se.length;nt++)bt["$"+Se[nt]]=Se[nt]}for(var F in Z)ke(Z,F)&&(He&&String(Number(F))===F&&F<Z.length||N&&bt["$"+F]instanceof Symbol||(y.call(/[^\w$]/,F)?Ue.push(re(F,Z)+": "+re(Z[F],Z)):Ue.push(F+": "+re(Z[F],Z))));if(typeof T=="function")for(var E=0;E<Se.length;E++)G.call(Z,Se[E])&&Ue.push("["+re(Se[E])+"]: "+re(Z[Se[E]],Z));return Ue}return Rr}var Mr,Qa;function _d(){if(Qa)return Mr;Qa=1;var n=Mn(),e=Di(),t=function(l,u,c){for(var d=l,f;(f=d.next)!=null;d=f)if(f.key===u)return d.next=f.next,c||(f.next=l.next,l.next=f),f},i=function(l,u){if(l){var c=t(l,u);return c&&c.value}},r=function(l,u,c){var d=t(l,u);d?d.value=c:l.next={key:u,next:l.next,value:c}},s=function(l,u){return l?!!t(l,u):!1},a=function(l,u){if(l)return t(l,u,!0)};return Mr=function(){var u,c={assert:function(d){if(!c.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var f=u&&u.next,p=a(u,d);return p&&f&&f===p&&(u=void 0),!!p},get:function(d){return i(u,d)},has:function(d){return s(u,d)},set:function(d,f){u||(u={next:void 0}),r(u,d,f)}};return c},Mr}var Tr,Ka;function Ja(){return Ka||(Ka=1,Tr=Object),Tr}var Dr,qa;function Pd(){return qa||(qa=1,Dr=Error),Dr}var Or,$a;function Nd(){return $a||($a=1,Or=EvalError),Or}var Lr,Za;function Id(){return Za||(Za=1,Lr=RangeError),Lr}var Br,Xa;function Hd(){return Xa||(Xa=1,Br=ReferenceError),Br}var Fr,eo;function Vd(){return eo||(eo=1,Fr=SyntaxError),Fr}var _r,to;function zd(){return to||(to=1,_r=URIError),_r}var Pr,io;function jd(){return io||(io=1,Pr=Math.abs),Pr}var Nr,no;function Wd(){return no||(no=1,Nr=Math.floor),Nr}var Ir,ro;function Ud(){return ro||(ro=1,Ir=Math.max),Ir}var Hr,so;function Gd(){return so||(so=1,Hr=Math.min),Hr}var Vr,ao;function Yd(){return ao||(ao=1,Vr=Math.pow),Vr}var zr,oo;function Qd(){return oo||(oo=1,zr=Math.round),zr}var jr,lo;function Kd(){return lo||(lo=1,jr=Number.isNaN||function(e){return e!==e}),jr}var Wr,uo;function Jd(){if(uo)return Wr;uo=1;var n=Kd();return Wr=function(t){return n(t)||t===0?t:t<0?-1:1},Wr}var Ur,co;function qd(){return co||(co=1,Ur=Object.getOwnPropertyDescriptor),Ur}var Gr,ho;function fo(){if(ho)return Gr;ho=1;var n=qd();if(n)try{n([],"length")}catch{n=null}return Gr=n,Gr}var Yr,po;function $d(){if(po)return Yr;po=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Yr=n,Yr}var Qr,mo;function Zd(){return mo||(mo=1,Qr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==r||l.enumerable!==!0)return!1}return!0}),Qr}var Kr,go;function Xd(){if(go)return Kr;go=1;var n=typeof Symbol<"u"&&Symbol,e=Zd();return Kr=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Kr}var Jr,bo;function vo(){return bo||(bo=1,Jr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Jr}var qr,yo;function wo(){if(yo)return qr;yo=1;var n=Ja();return qr=n.getPrototypeOf||null,qr}var $r,Co;function eh(){if(Co)return $r;Co=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},s=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},a=function(l,u){for(var c="",d=0;d<l.length;d+=1)c+=l[d],d+1<l.length&&(c+=u);return c};return $r=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==i)throw new TypeError(n+c);for(var d=s(arguments,1),f,p=function(){if(this instanceof f){var b=c.apply(this,r(d,arguments));return Object(b)===b?b:this}return c.apply(u,r(d,arguments))},h=t(0,c.length-d.length),S=[],m=0;m<h;m++)S[m]="$"+m;if(f=Function("binder","return function ("+a(S,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var C=function(){};C.prototype=c.prototype,f.prototype=new C,C.prototype=null}return f},$r}var Zr,Ao;function Tn(){if(Ao)return Zr;Ao=1;var n=eh();return Zr=Function.prototype.bind||n,Zr}var Xr,Eo;function es(){return Eo||(Eo=1,Xr=Function.prototype.call),Xr}var ts,ko;function So(){return ko||(ko=1,ts=Function.prototype.apply),ts}var is,xo;function th(){return xo||(xo=1,is=typeof Reflect<"u"&&Reflect&&Reflect.apply),is}var ns,Ro;function ih(){if(Ro)return ns;Ro=1;var n=Tn(),e=So(),t=es(),i=th();return ns=i||n.call(t,e),ns}var rs,Mo;function To(){if(Mo)return rs;Mo=1;var n=Tn(),e=Di(),t=es(),i=ih();return rs=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return i(n,t,s)},rs}var ss,Do;function nh(){if(Do)return ss;Do=1;var n=To(),e=fo(),t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var i=!!t&&e&&e(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return ss=i&&typeof i.get=="function"?n([i.get]):typeof s=="function"?function(l){return s(l==null?l:r(l))}:!1,ss}var as,Oo;function rh(){if(Oo)return as;Oo=1;var n=vo(),e=wo(),t=nh();return as=n?function(r){return n(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:t?function(r){return t(r)}:null,as}var os,Lo;function sh(){if(Lo)return os;Lo=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Tn();return os=t.call(n,e),os}var ls,Bo;function us(){if(Bo)return ls;Bo=1;var n,e=Ja(),t=Pd(),i=Nd(),r=Id(),s=Hd(),a=Vd(),l=Di(),u=zd(),c=jd(),d=Wd(),f=Ud(),p=Gd(),h=Yd(),S=Qd(),m=Jd(),C=Function,b=function(H){try{return C('"use strict"; return ('+H+").constructor;")()}catch{}},g=fo(),M=$d(),v=function(){throw new l},R=g?(function(){try{return arguments.callee,v}catch{try{return g(arguments,"callee").get}catch{return v}}})():v,y=Xd()(),x=rh(),k=wo(),A=vo(),w=So(),D=es(),T={},L=typeof Uint8Array>"u"||!x?n:x(Uint8Array),N={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&x?x(x([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y||!x?n:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y||!x?n:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&x?x(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":R,"%TypedArray%":L,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":w,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":k,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":p,"%Math.pow%":h,"%Math.round%":S,"%Math.sign%":m,"%Reflect.getPrototypeOf%":A};if(x)try{null.error}catch(H){var j=x(x(H));N["%Error.prototype%"]=j}var G=function H(ne){var ie;if(ne==="%AsyncFunction%")ie=b("async function () {}");else if(ne==="%GeneratorFunction%")ie=b("function* () {}");else if(ne==="%AsyncGeneratorFunction%")ie=b("async function* () {}");else if(ne==="%AsyncGenerator%"){var te=H("%AsyncGeneratorFunction%");te&&(ie=te.prototype)}else if(ne==="%AsyncIteratorPrototype%"){var fe=H("%AsyncGenerator%");fe&&x&&(ie=x(fe.prototype))}return N[ne]=ie,ie},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=Tn(),J=sh(),B=V.call(D,Array.prototype.concat),P=V.call(w,Array.prototype.splice),Q=V.call(D,String.prototype.replace),z=V.call(D,String.prototype.slice),$=V.call(D,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,ae=function(ne){var ie=z(ne,0,1),te=z(ne,-1);if(ie==="%"&&te!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(te==="%"&&ie!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var fe=[];return Q(ne,ee,function(le,ve,ye,ke){fe[fe.length]=ye?Q(ke,K,"$1"):ve||le}),fe},W=function(ne,ie){var te=ne,fe;if(J(I,te)&&(fe=I[te],te="%"+fe[0]+"%"),J(N,te)){var le=N[te];if(le===T&&(le=G(te)),typeof le>"u"&&!ie)throw new l("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:fe,name:te,value:le}}throw new a("intrinsic "+ne+" does not exist!")};return ls=function(ne,ie){if(typeof ne!="string"||ne.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ie!="boolean")throw new l('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,ne)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var te=ae(ne),fe=te.length>0?te[0]:"",le=W("%"+fe+"%",ie),ve=le.name,ye=le.value,ke=!1,Pe=le.alias;Pe&&(fe=Pe[0],P(te,B([0,1],Pe)));for(var Ne=1,Le=!0;Ne<te.length;Ne+=1){var U=te[Ne],q=z(U,0,1),X=z(U,-1);if((q==='"'||q==="'"||q==="`"||X==='"'||X==="'"||X==="`")&&q!==X)throw new a("property names with quotes must have matching quotes");if((U==="constructor"||!Le)&&(ke=!0),fe+="."+U,ve="%"+fe+"%",J(N,ve))ye=N[ve];else if(ye!=null){if(!(U in ye)){if(!ie)throw new l("base intrinsic for "+ne+" exists, but the property is not available.");return}if(g&&Ne+1>=te.length){var de=g(ye,U);Le=!!de,Le&&"get"in de&&!("originalValue"in de.get)?ye=de.get:ye=ye[U]}else Le=J(ye,U),ye=ye[U];Le&&!ke&&(N[ve]=ye)}}return ye},ls}var cs,Fo;function _o(){if(Fo)return cs;Fo=1;var n=us(),e=To(),t=e([n("%String.prototype.indexOf%")]);return cs=function(r,s){var a=n(r,!!s);return typeof a=="function"&&t(r,".prototype.")>-1?e([a]):a},cs}var ds,Po;function No(){if(Po)return ds;Po=1;var n=us(),e=_o(),t=Mn(),i=Di(),r=n("%Map%",!0),s=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ds=!!r&&function(){var f,p={assert:function(h){if(!p.has(h))throw new i("Side channel does not contain "+t(h))},delete:function(h){if(f){var S=u(f,h);return c(f)===0&&(f=void 0),S}return!1},get:function(h){if(f)return s(f,h)},has:function(h){return f?l(f,h):!1},set:function(h,S){f||(f=new r),a(f,h,S)}};return p},ds}var hs,Io;function ah(){if(Io)return hs;Io=1;var n=us(),e=_o(),t=Mn(),i=No(),r=Di(),s=n("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return hs=s?function(){var f,p,h={assert:function(S){if(!h.has(S))throw new r("Side channel does not contain "+t(S))},delete:function(S){if(s&&S&&(typeof S=="object"||typeof S=="function")){if(f)return c(f,S)}else if(i&&p)return p.delete(S);return!1},get:function(S){return s&&S&&(typeof S=="object"||typeof S=="function")&&f?a(f,S):p&&p.get(S)},has:function(S){return s&&S&&(typeof S=="object"||typeof S=="function")&&f?u(f,S):!!p&&p.has(S)},set:function(S,m){s&&S&&(typeof S=="object"||typeof S=="function")?(f||(f=new s),l(f,S,m)):i&&(p||(p=i()),p.set(S,m))}};return h}:i,hs}var fs,Ho;function oh(){if(Ho)return fs;Ho=1;var n=Di(),e=Mn(),t=_d(),i=No(),r=ah(),s=r||i||t;return fs=function(){var l,u={assert:function(c){if(!u.has(c))throw new n("Side channel does not contain "+e(c))},delete:function(c){return!!l&&l.delete(c)},get:function(c){return l&&l.get(c)},has:function(c){return!!l&&l.has(c)},set:function(c,d){l||(l=s()),l.set(c,d)}};return u},fs}var ps,Vo;function ms(){if(Vo)return ps;Vo=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return ps={default:t.RFC3986,formatters:{RFC1738:function(i){return n.call(i,e,"+")},RFC3986:function(i){return String(i)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},ps}var gs,zo;function jo(){if(zo)return gs;zo=1;var n=ms(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i=(function(){for(var C=[],b=0;b<256;++b)C.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return C})(),r=function(b){for(;b.length>1;){var g=b.pop(),M=g.obj[g.prop];if(t(M)){for(var v=[],R=0;R<M.length;++R)typeof M[R]<"u"&&v.push(M[R]);g.obj[g.prop]=v}}},s=function(b,g){for(var M=g&&g.plainObjects?{__proto__:null}:{},v=0;v<b.length;++v)typeof b[v]<"u"&&(M[v]=b[v]);return M},a=function C(b,g,M){if(!g)return b;if(typeof g!="object"&&typeof g!="function"){if(t(b))b.push(g);else if(b&&typeof b=="object")(M&&(M.plainObjects||M.allowPrototypes)||!e.call(Object.prototype,g))&&(b[g]=!0);else return[b,g];return b}if(!b||typeof b!="object")return[b].concat(g);var v=b;return t(b)&&!t(g)&&(v=s(b,M)),t(b)&&t(g)?(g.forEach(function(R,y){if(e.call(b,y)){var x=b[y];x&&typeof x=="object"&&R&&typeof R=="object"?b[y]=C(x,R,M):b.push(R)}else b[y]=R}),b):Object.keys(g).reduce(function(R,y){var x=g[y];return e.call(R,y)?R[y]=C(R[y],x,M):R[y]=x,R},v)},l=function(b,g){return Object.keys(g).reduce(function(M,v){return M[v]=g[v],M},b)},u=function(C,b,g){var M=C.replace(/\+/g," ");if(g==="iso-8859-1")return M.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(M)}catch{return M}},c=1024,d=function(b,g,M,v,R){if(b.length===0)return b;var y=b;if(typeof b=="symbol"?y=Symbol.prototype.toString.call(b):typeof b!="string"&&(y=String(b)),M==="iso-8859-1")return escape(y).replace(/%u[0-9a-f]{4}/gi,function(L){return"%26%23"+parseInt(L.slice(2),16)+"%3B"});for(var x="",k=0;k<y.length;k+=c){for(var A=y.length>=c?y.slice(k,k+c):y,w=[],D=0;D<A.length;++D){var T=A.charCodeAt(D);if(T===45||T===46||T===95||T===126||T>=48&&T<=57||T>=65&&T<=90||T>=97&&T<=122||R===n.RFC1738&&(T===40||T===41)){w[w.length]=A.charAt(D);continue}if(T<128){w[w.length]=i[T];continue}if(T<2048){w[w.length]=i[192|T>>6]+i[128|T&63];continue}if(T<55296||T>=57344){w[w.length]=i[224|T>>12]+i[128|T>>6&63]+i[128|T&63];continue}D+=1,T=65536+((T&1023)<<10|A.charCodeAt(D)&1023),w[w.length]=i[240|T>>18]+i[128|T>>12&63]+i[128|T>>6&63]+i[128|T&63]}x+=w.join("")}return x},f=function(b){for(var g=[{obj:{o:b},prop:"o"}],M=[],v=0;v<g.length;++v)for(var R=g[v],y=R.obj[R.prop],x=Object.keys(y),k=0;k<x.length;++k){var A=x[k],w=y[A];typeof w=="object"&&w!==null&&M.indexOf(w)===-1&&(g.push({obj:y,prop:A}),M.push(w))}return r(g),b},p=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},h=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},S=function(b,g){return[].concat(b,g)},m=function(b,g){if(t(b)){for(var M=[],v=0;v<b.length;v+=1)M.push(g(b[v]));return M}return g(b)};return gs={arrayToObject:s,assign:l,combine:S,compact:f,decode:u,encode:d,isBuffer:h,isRegExp:p,maybeMap:m,merge:a},gs}var bs,Wo;function lh(){if(Wo)return bs;Wo=1;var n=oh(),e=jo(),t=ms(),i=Object.prototype.hasOwnProperty,r={brackets:function(C){return C+"[]"},comma:"comma",indices:function(C,b){return C+"["+b+"]"},repeat:function(C){return C}},s=Array.isArray,a=Array.prototype.push,l=function(m,C){a.apply(m,s(C)?C:[C])},u=Date.prototype.toISOString,c=t.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:t.formatters[c],indices:!1,serializeDate:function(C){return u.call(C)},skipNulls:!1,strictNullHandling:!1},f=function(C){return typeof C=="string"||typeof C=="number"||typeof C=="boolean"||typeof C=="symbol"||typeof C=="bigint"},p={},h=function m(C,b,g,M,v,R,y,x,k,A,w,D,T,L,N,j,G,I){for(var V=C,J=I,B=0,P=!1;(J=J.get(p))!==void 0&&!P;){var Q=J.get(C);if(B+=1,typeof Q<"u"){if(Q===B)throw new RangeError("Cyclic object value");P=!0}typeof J.get(p)>"u"&&(B=0)}if(typeof A=="function"?V=A(b,V):V instanceof Date?V=T(V):g==="comma"&&s(V)&&(V=e.maybeMap(V,function(ve){return ve instanceof Date?T(ve):ve})),V===null){if(R)return k&&!j?k(b,d.encoder,G,"key",L):b;V=""}if(f(V)||e.isBuffer(V)){if(k){var z=j?b:k(b,d.encoder,G,"key",L);return[N(z)+"="+N(k(V,d.encoder,G,"value",L))]}return[N(b)+"="+N(String(V))]}var $=[];if(typeof V>"u")return $;var ee;if(g==="comma"&&s(V))j&&k&&(V=e.maybeMap(V,k)),ee=[{value:V.length>0?V.join(",")||null:void 0}];else if(s(A))ee=A;else{var K=Object.keys(V);ee=w?K.sort(w):K}var ae=x?String(b).replace(/\./g,"%2E"):String(b),W=M&&s(V)&&V.length===1?ae+"[]":ae;if(v&&s(V)&&V.length===0)return W+"[]";for(var H=0;H<ee.length;++H){var ne=ee[H],ie=typeof ne=="object"&&ne&&typeof ne.value<"u"?ne.value:V[ne];if(!(y&&ie===null)){var te=D&&x?String(ne).replace(/\./g,"%2E"):String(ne),fe=s(V)?typeof g=="function"?g(W,te):W:W+(D?"."+te:"["+te+"]");I.set(C,B);var le=n();le.set(p,I),l($,m(ie,fe,g,M,v,R,y,x,g==="comma"&&j&&s(V)?null:k,A,w,D,T,L,N,j,G,le))}}return $},S=function(C){if(!C)return d;if(typeof C.allowEmptyArrays<"u"&&typeof C.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof C.encodeDotInKeys<"u"&&typeof C.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(C.encoder!==null&&typeof C.encoder<"u"&&typeof C.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=C.charset||d.charset;if(typeof C.charset<"u"&&C.charset!=="utf-8"&&C.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var g=t.default;if(typeof C.format<"u"){if(!i.call(t.formatters,C.format))throw new TypeError("Unknown format option provided.");g=C.format}var M=t.formatters[g],v=d.filter;(typeof C.filter=="function"||s(C.filter))&&(v=C.filter);var R;if(C.arrayFormat in r?R=C.arrayFormat:"indices"in C?R=C.indices?"indices":"repeat":R=d.arrayFormat,"commaRoundTrip"in C&&typeof C.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y=typeof C.allowDots>"u"?C.encodeDotInKeys===!0?!0:d.allowDots:!!C.allowDots;return{addQueryPrefix:typeof C.addQueryPrefix=="boolean"?C.addQueryPrefix:d.addQueryPrefix,allowDots:y,allowEmptyArrays:typeof C.allowEmptyArrays=="boolean"?!!C.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:R,charset:b,charsetSentinel:typeof C.charsetSentinel=="boolean"?C.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!C.commaRoundTrip,delimiter:typeof C.delimiter>"u"?d.delimiter:C.delimiter,encode:typeof C.encode=="boolean"?C.encode:d.encode,encodeDotInKeys:typeof C.encodeDotInKeys=="boolean"?C.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof C.encoder=="function"?C.encoder:d.encoder,encodeValuesOnly:typeof C.encodeValuesOnly=="boolean"?C.encodeValuesOnly:d.encodeValuesOnly,filter:v,format:g,formatter:M,serializeDate:typeof C.serializeDate=="function"?C.serializeDate:d.serializeDate,skipNulls:typeof C.skipNulls=="boolean"?C.skipNulls:d.skipNulls,sort:typeof C.sort=="function"?C.sort:null,strictNullHandling:typeof C.strictNullHandling=="boolean"?C.strictNullHandling:d.strictNullHandling}};return bs=function(m,C){var b=m,g=S(C),M,v;typeof g.filter=="function"?(v=g.filter,b=v("",b)):s(g.filter)&&(v=g.filter,M=v);var R=[];if(typeof b!="object"||b===null)return"";var y=r[g.arrayFormat],x=y==="comma"&&g.commaRoundTrip;M||(M=Object.keys(b)),g.sort&&M.sort(g.sort);for(var k=n(),A=0;A<M.length;++A){var w=M[A],D=b[w];g.skipNulls&&D===null||l(R,h(D,w,y,x,g.allowEmptyArrays,g.strictNullHandling,g.skipNulls,g.encodeDotInKeys,g.encode?g.encoder:null,g.filter,g.sort,g.allowDots,g.serializeDate,g.format,g.formatter,g.encodeValuesOnly,g.charset,k))}var T=R.join(g.delimiter),L=g.addQueryPrefix===!0?"?":"";return g.charsetSentinel&&(g.charset==="iso-8859-1"?L+="utf8=%26%2310003%3B&":L+="utf8=%E2%9C%93&"),T.length>0?L+T:""},bs}var vs,Uo;function uh(){if(Uo)return vs;Uo=1;var n=jo(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},r=function(p){return p.replace(/&#(\d+);/g,function(h,S){return String.fromCharCode(parseInt(S,10))})},s=function(p,h,S){if(p&&typeof p=="string"&&h.comma&&p.indexOf(",")>-1)return p.split(",");if(h.throwOnLimitExceeded&&S>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return p},a="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,S){var m={__proto__:null},C=S.ignoreQueryPrefix?h.replace(/^\?/,""):h;C=C.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=S.parameterLimit===1/0?void 0:S.parameterLimit,g=C.split(S.delimiter,S.throwOnLimitExceeded?b+1:b);if(S.throwOnLimitExceeded&&g.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var M=-1,v,R=S.charset;if(S.charsetSentinel)for(v=0;v<g.length;++v)g[v].indexOf("utf8=")===0&&(g[v]===l?R="utf-8":g[v]===a&&(R="iso-8859-1"),M=v,v=g.length);for(v=0;v<g.length;++v)if(v!==M){var y=g[v],x=y.indexOf("]="),k=x===-1?y.indexOf("="):x+1,A,w;k===-1?(A=S.decoder(y,i.decoder,R,"key"),w=S.strictNullHandling?null:""):(A=S.decoder(y.slice(0,k),i.decoder,R,"key"),w=n.maybeMap(s(y.slice(k+1),S,t(m[A])?m[A].length:0),function(T){return S.decoder(T,i.decoder,R,"value")})),w&&S.interpretNumericEntities&&R==="iso-8859-1"&&(w=r(String(w))),y.indexOf("[]=")>-1&&(w=t(w)?[w]:w);var D=e.call(m,A);D&&S.duplicates==="combine"?m[A]=n.combine(m[A],w):(!D||S.duplicates==="last")&&(m[A]=w)}return m},c=function(p,h,S,m){var C=0;if(p.length>0&&p[p.length-1]==="[]"){var b=p.slice(0,-1).join("");C=Array.isArray(h)&&h[b]?h[b].length:0}for(var g=m?h:s(h,S,C),M=p.length-1;M>=0;--M){var v,R=p[M];if(R==="[]"&&S.parseArrays)v=S.allowEmptyArrays&&(g===""||S.strictNullHandling&&g===null)?[]:n.combine([],g);else{v=S.plainObjects?{__proto__:null}:{};var y=R.charAt(0)==="["&&R.charAt(R.length-1)==="]"?R.slice(1,-1):R,x=S.decodeDotInKeys?y.replace(/%2E/g,"."):y,k=parseInt(x,10);!S.parseArrays&&x===""?v={0:g}:!isNaN(k)&&R!==x&&String(k)===x&&k>=0&&S.parseArrays&&k<=S.arrayLimit?(v=[],v[k]=g):x!=="__proto__"&&(v[x]=g)}g=v}return g},d=function(h,S,m,C){if(h){var b=m.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,g=/(\[[^[\]]*])/,M=/(\[[^[\]]*])/g,v=m.depth>0&&g.exec(b),R=v?b.slice(0,v.index):b,y=[];if(R){if(!m.plainObjects&&e.call(Object.prototype,R)&&!m.allowPrototypes)return;y.push(R)}for(var x=0;m.depth>0&&(v=M.exec(b))!==null&&x<m.depth;){if(x+=1,!m.plainObjects&&e.call(Object.prototype,v[1].slice(1,-1))&&!m.allowPrototypes)return;y.push(v[1])}if(v){if(m.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+m.depth+" and strictDepth is true");y.push("["+b.slice(v.index)+"]")}return c(y,S,m,C)}},f=function(h){if(!h)return i;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof h.charset>"u"?i.charset:h.charset,m=typeof h.duplicates>"u"?i.duplicates:h.duplicates;if(m!=="combine"&&m!=="first"&&m!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var C=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:i.allowDots:!!h.allowDots;return{allowDots:C,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:i.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:i.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:i.arrayLimit,charset:S,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:i.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:i.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:i.decoder,delimiter:typeof h.delimiter=="string"||n.isRegExp(h.delimiter)?h.delimiter:i.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:i.depth,duplicates:m,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:i.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:i.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:i.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return vs=function(p,h){var S=f(h);if(p===""||p===null||typeof p>"u")return S.plainObjects?{__proto__:null}:{};for(var m=typeof p=="string"?u(p,S):p,C=S.plainObjects?{__proto__:null}:{},b=Object.keys(m),g=0;g<b.length;++g){var M=b[g],v=d(M,m[M],S,typeof p=="string");C=n.merge(C,v,S)}return S.allowSparse===!0?C:n.compact(C)},vs}var ys,Go;function ch(){if(Go)return ys;Go=1;var n=lh(),e=uh(),t=ms();return ys={formats:t,parse:e,stringify:n},ys}var dh=ch();const Yo=Ua(dh),hh=["action"],fh=["value"],ph=["name","value"],mh=["value"],gh=["disabled"],bh=_e(o.defineComponent({__name:"ExportComponent",props:{type:{},action:{},filters:{},buttonText:{},csrfToken:{}},setup(n){const e=n,t=o.ref(),i=o.ref([]),r=o.computed(()=>e.csrfToken),s=async()=>{t.value&&t.value.submit()},a=()=>{if(!e.filters)return!1;if(typeof e.filters=="string")return l(),!0;c()},l=()=>{i.value=[];const d=/^.*\?/gm,f=e.filters.replace(d,""),p=Yo.parse(f);i.value=u(p)},u=d=>Yo.stringify(d,{encode:!1}).split("&").map(f=>{const p=f.split("=");return{key:p[0],value:p[1]}}).filter(({key:f,value:p})=>f.length&&p.length),c=()=>{if(i.value=[],!e.filters)return!1;i.value=u(e.filters)};return o.watch(()=>e.filters,()=>{a()},{deep:!1}),o.onMounted(()=>{a()}),(d,f)=>(o.openBlock(),o.createElementBlock("form",{target:"_blank",action:d.action,method:"POST",ref_key:"reportForm",ref:t},[d.type?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:"type",value:d.type},null,8,fh)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createElementBlock("input",{key:p.key,type:"hidden",name:p.key,value:p.value},null,8,ph))),128)),o.createElementVNode("input",{type:"hidden",name:"_token",value:r.value},null,8,mh),o.createElementVNode("button",{type:"button",class:o.normalizeClass(["col-auto export-button",{disabled:!d.action}]),onClick:s,disabled:!d.action},[o.createTextVNode(o.toDisplayString(d.buttonText)+" ",1),f[0]||(f[0]=o.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],10,gh)],8,hh))}}),[["__scopeId","data-v-db74d2e3"]]);var Dn={exports:{}};/*!
|
|
4
|
+
`+re.prev}function Me(Z,re){var He=ae(Z),Ue=[];if(He){Ue.length=Z.length;for(var Oe=0;Oe<Z.length;Oe++)Ue[Oe]=ke(Z,Oe)?re(Z[Oe],Z):""}var Se=typeof T=="function"?T(Z):[],bt;if(N){bt={};for(var nt=0;nt<Se.length;nt++)bt["$"+Se[nt]]=Se[nt]}for(var F in Z)ke(Z,F)&&(He&&String(Number(F))===F&&F<Z.length||N&&bt["$"+F]instanceof Symbol||(y.call(/[^\w$]/,F)?Ue.push(re(F,Z)+": "+re(Z[F],Z)):Ue.push(F+": "+re(Z[F],Z))));if(typeof T=="function")for(var E=0;E<Se.length;E++)G.call(Z,Se[E])&&Ue.push("["+re(Se[E])+"]: "+re(Z[Se[E]],Z));return Ue}return Rr}var Mr,Qa;function _d(){if(Qa)return Mr;Qa=1;var n=Mn(),e=Di(),t=function(l,u,c){for(var d=l,f;(f=d.next)!=null;d=f)if(f.key===u)return d.next=f.next,c||(f.next=l.next,l.next=f),f},i=function(l,u){if(l){var c=t(l,u);return c&&c.value}},r=function(l,u,c){var d=t(l,u);d?d.value=c:l.next={key:u,next:l.next,value:c}},s=function(l,u){return l?!!t(l,u):!1},a=function(l,u){if(l)return t(l,u,!0)};return Mr=function(){var u,c={assert:function(d){if(!c.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var f=u&&u.next,p=a(u,d);return p&&f&&f===p&&(u=void 0),!!p},get:function(d){return i(u,d)},has:function(d){return s(u,d)},set:function(d,f){u||(u={next:void 0}),r(u,d,f)}};return c},Mr}var Tr,Ka;function Ja(){return Ka||(Ka=1,Tr=Object),Tr}var Dr,qa;function Pd(){return qa||(qa=1,Dr=Error),Dr}var Or,$a;function Nd(){return $a||($a=1,Or=EvalError),Or}var Lr,Za;function Id(){return Za||(Za=1,Lr=RangeError),Lr}var Br,Xa;function Hd(){return Xa||(Xa=1,Br=ReferenceError),Br}var Fr,eo;function Vd(){return eo||(eo=1,Fr=SyntaxError),Fr}var _r,to;function zd(){return to||(to=1,_r=URIError),_r}var Pr,io;function jd(){return io||(io=1,Pr=Math.abs),Pr}var Nr,no;function Wd(){return no||(no=1,Nr=Math.floor),Nr}var Ir,ro;function Ud(){return ro||(ro=1,Ir=Math.max),Ir}var Hr,so;function Gd(){return so||(so=1,Hr=Math.min),Hr}var Vr,ao;function Yd(){return ao||(ao=1,Vr=Math.pow),Vr}var zr,oo;function Qd(){return oo||(oo=1,zr=Math.round),zr}var jr,lo;function Kd(){return lo||(lo=1,jr=Number.isNaN||function(e){return e!==e}),jr}var Wr,uo;function Jd(){if(uo)return Wr;uo=1;var n=Kd();return Wr=function(t){return n(t)||t===0?t:t<0?-1:1},Wr}var Ur,co;function qd(){return co||(co=1,Ur=Object.getOwnPropertyDescriptor),Ur}var Gr,ho;function fo(){if(ho)return Gr;ho=1;var n=qd();if(n)try{n([],"length")}catch{n=null}return Gr=n,Gr}var Yr,po;function $d(){if(po)return Yr;po=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Yr=n,Yr}var Qr,mo;function Zd(){return mo||(mo=1,Qr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==r||l.enumerable!==!0)return!1}return!0}),Qr}var Kr,go;function Xd(){if(go)return Kr;go=1;var n=typeof Symbol<"u"&&Symbol,e=Zd();return Kr=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Kr}var Jr,bo;function vo(){return bo||(bo=1,Jr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Jr}var qr,yo;function wo(){if(yo)return qr;yo=1;var n=Ja();return qr=n.getPrototypeOf||null,qr}var $r,Co;function eh(){if(Co)return $r;Co=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},s=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},a=function(l,u){for(var c="",d=0;d<l.length;d+=1)c+=l[d],d+1<l.length&&(c+=u);return c};return $r=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==i)throw new TypeError(n+c);for(var d=s(arguments,1),f,p=function(){if(this instanceof f){var b=c.apply(this,r(d,arguments));return Object(b)===b?b:this}return c.apply(u,r(d,arguments))},h=t(0,c.length-d.length),S=[],m=0;m<h;m++)S[m]="$"+m;if(f=Function("binder","return function ("+a(S,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var A=function(){};A.prototype=c.prototype,f.prototype=new A,A.prototype=null}return f},$r}var Zr,Ao;function Tn(){if(Ao)return Zr;Ao=1;var n=eh();return Zr=Function.prototype.bind||n,Zr}var Xr,Eo;function es(){return Eo||(Eo=1,Xr=Function.prototype.call),Xr}var ts,ko;function So(){return ko||(ko=1,ts=Function.prototype.apply),ts}var is,xo;function th(){return xo||(xo=1,is=typeof Reflect<"u"&&Reflect&&Reflect.apply),is}var ns,Ro;function ih(){if(Ro)return ns;Ro=1;var n=Tn(),e=So(),t=es(),i=th();return ns=i||n.call(t,e),ns}var rs,Mo;function To(){if(Mo)return rs;Mo=1;var n=Tn(),e=Di(),t=es(),i=ih();return rs=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return i(n,t,s)},rs}var ss,Do;function nh(){if(Do)return ss;Do=1;var n=To(),e=fo(),t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var i=!!t&&e&&e(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return ss=i&&typeof i.get=="function"?n([i.get]):typeof s=="function"?function(l){return s(l==null?l:r(l))}:!1,ss}var as,Oo;function rh(){if(Oo)return as;Oo=1;var n=vo(),e=wo(),t=nh();return as=n?function(r){return n(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:t?function(r){return t(r)}:null,as}var os,Lo;function sh(){if(Lo)return os;Lo=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Tn();return os=t.call(n,e),os}var ls,Bo;function us(){if(Bo)return ls;Bo=1;var n,e=Ja(),t=Pd(),i=Nd(),r=Id(),s=Hd(),a=Vd(),l=Di(),u=zd(),c=jd(),d=Wd(),f=Ud(),p=Gd(),h=Yd(),S=Qd(),m=Jd(),A=Function,b=function(H){try{return A('"use strict"; return ('+H+").constructor;")()}catch{}},g=fo(),M=$d(),v=function(){throw new l},R=g?(function(){try{return arguments.callee,v}catch{try{return g(arguments,"callee").get}catch{return v}}})():v,y=Xd()(),x=rh(),k=wo(),C=vo(),w=So(),D=es(),T={},L=typeof Uint8Array>"u"||!x?n:x(Uint8Array),N={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&x?x(x([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y||!x?n:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y||!x?n:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&x?x(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":R,"%TypedArray%":L,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":w,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":k,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":p,"%Math.pow%":h,"%Math.round%":S,"%Math.sign%":m,"%Reflect.getPrototypeOf%":C};if(x)try{null.error}catch(H){var j=x(x(H));N["%Error.prototype%"]=j}var G=function H(ne){var ie;if(ne==="%AsyncFunction%")ie=b("async function () {}");else if(ne==="%GeneratorFunction%")ie=b("function* () {}");else if(ne==="%AsyncGeneratorFunction%")ie=b("async function* () {}");else if(ne==="%AsyncGenerator%"){var te=H("%AsyncGeneratorFunction%");te&&(ie=te.prototype)}else if(ne==="%AsyncIteratorPrototype%"){var fe=H("%AsyncGenerator%");fe&&x&&(ie=x(fe.prototype))}return N[ne]=ie,ie},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=Tn(),J=sh(),B=V.call(D,Array.prototype.concat),P=V.call(w,Array.prototype.splice),Q=V.call(D,String.prototype.replace),z=V.call(D,String.prototype.slice),$=V.call(D,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,ae=function(ne){var ie=z(ne,0,1),te=z(ne,-1);if(ie==="%"&&te!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(te==="%"&&ie!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var fe=[];return Q(ne,ee,function(le,ve,ye,ke){fe[fe.length]=ye?Q(ke,K,"$1"):ve||le}),fe},W=function(ne,ie){var te=ne,fe;if(J(I,te)&&(fe=I[te],te="%"+fe[0]+"%"),J(N,te)){var le=N[te];if(le===T&&(le=G(te)),typeof le>"u"&&!ie)throw new l("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:fe,name:te,value:le}}throw new a("intrinsic "+ne+" does not exist!")};return ls=function(ne,ie){if(typeof ne!="string"||ne.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ie!="boolean")throw new l('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,ne)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var te=ae(ne),fe=te.length>0?te[0]:"",le=W("%"+fe+"%",ie),ve=le.name,ye=le.value,ke=!1,Pe=le.alias;Pe&&(fe=Pe[0],P(te,B([0,1],Pe)));for(var Ne=1,Le=!0;Ne<te.length;Ne+=1){var U=te[Ne],q=z(U,0,1),X=z(U,-1);if((q==='"'||q==="'"||q==="`"||X==='"'||X==="'"||X==="`")&&q!==X)throw new a("property names with quotes must have matching quotes");if((U==="constructor"||!Le)&&(ke=!0),fe+="."+U,ve="%"+fe+"%",J(N,ve))ye=N[ve];else if(ye!=null){if(!(U in ye)){if(!ie)throw new l("base intrinsic for "+ne+" exists, but the property is not available.");return}if(g&&Ne+1>=te.length){var de=g(ye,U);Le=!!de,Le&&"get"in de&&!("originalValue"in de.get)?ye=de.get:ye=ye[U]}else Le=J(ye,U),ye=ye[U];Le&&!ke&&(N[ve]=ye)}}return ye},ls}var cs,Fo;function _o(){if(Fo)return cs;Fo=1;var n=us(),e=To(),t=e([n("%String.prototype.indexOf%")]);return cs=function(r,s){var a=n(r,!!s);return typeof a=="function"&&t(r,".prototype.")>-1?e([a]):a},cs}var ds,Po;function No(){if(Po)return ds;Po=1;var n=us(),e=_o(),t=Mn(),i=Di(),r=n("%Map%",!0),s=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ds=!!r&&function(){var f,p={assert:function(h){if(!p.has(h))throw new i("Side channel does not contain "+t(h))},delete:function(h){if(f){var S=u(f,h);return c(f)===0&&(f=void 0),S}return!1},get:function(h){if(f)return s(f,h)},has:function(h){return f?l(f,h):!1},set:function(h,S){f||(f=new r),a(f,h,S)}};return p},ds}var hs,Io;function ah(){if(Io)return hs;Io=1;var n=us(),e=_o(),t=Mn(),i=No(),r=Di(),s=n("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return hs=s?function(){var f,p,h={assert:function(S){if(!h.has(S))throw new r("Side channel does not contain "+t(S))},delete:function(S){if(s&&S&&(typeof S=="object"||typeof S=="function")){if(f)return c(f,S)}else if(i&&p)return p.delete(S);return!1},get:function(S){return s&&S&&(typeof S=="object"||typeof S=="function")&&f?a(f,S):p&&p.get(S)},has:function(S){return s&&S&&(typeof S=="object"||typeof S=="function")&&f?u(f,S):!!p&&p.has(S)},set:function(S,m){s&&S&&(typeof S=="object"||typeof S=="function")?(f||(f=new s),l(f,S,m)):i&&(p||(p=i()),p.set(S,m))}};return h}:i,hs}var fs,Ho;function oh(){if(Ho)return fs;Ho=1;var n=Di(),e=Mn(),t=_d(),i=No(),r=ah(),s=r||i||t;return fs=function(){var l,u={assert:function(c){if(!u.has(c))throw new n("Side channel does not contain "+e(c))},delete:function(c){return!!l&&l.delete(c)},get:function(c){return l&&l.get(c)},has:function(c){return!!l&&l.has(c)},set:function(c,d){l||(l=s()),l.set(c,d)}};return u},fs}var ps,Vo;function ms(){if(Vo)return ps;Vo=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return ps={default:t.RFC3986,formatters:{RFC1738:function(i){return n.call(i,e,"+")},RFC3986:function(i){return String(i)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},ps}var gs,zo;function jo(){if(zo)return gs;zo=1;var n=ms(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i=(function(){for(var A=[],b=0;b<256;++b)A.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return A})(),r=function(b){for(;b.length>1;){var g=b.pop(),M=g.obj[g.prop];if(t(M)){for(var v=[],R=0;R<M.length;++R)typeof M[R]<"u"&&v.push(M[R]);g.obj[g.prop]=v}}},s=function(b,g){for(var M=g&&g.plainObjects?{__proto__:null}:{},v=0;v<b.length;++v)typeof b[v]<"u"&&(M[v]=b[v]);return M},a=function A(b,g,M){if(!g)return b;if(typeof g!="object"&&typeof g!="function"){if(t(b))b.push(g);else if(b&&typeof b=="object")(M&&(M.plainObjects||M.allowPrototypes)||!e.call(Object.prototype,g))&&(b[g]=!0);else return[b,g];return b}if(!b||typeof b!="object")return[b].concat(g);var v=b;return t(b)&&!t(g)&&(v=s(b,M)),t(b)&&t(g)?(g.forEach(function(R,y){if(e.call(b,y)){var x=b[y];x&&typeof x=="object"&&R&&typeof R=="object"?b[y]=A(x,R,M):b.push(R)}else b[y]=R}),b):Object.keys(g).reduce(function(R,y){var x=g[y];return e.call(R,y)?R[y]=A(R[y],x,M):R[y]=x,R},v)},l=function(b,g){return Object.keys(g).reduce(function(M,v){return M[v]=g[v],M},b)},u=function(A,b,g){var M=A.replace(/\+/g," ");if(g==="iso-8859-1")return M.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(M)}catch{return M}},c=1024,d=function(b,g,M,v,R){if(b.length===0)return b;var y=b;if(typeof b=="symbol"?y=Symbol.prototype.toString.call(b):typeof b!="string"&&(y=String(b)),M==="iso-8859-1")return escape(y).replace(/%u[0-9a-f]{4}/gi,function(L){return"%26%23"+parseInt(L.slice(2),16)+"%3B"});for(var x="",k=0;k<y.length;k+=c){for(var C=y.length>=c?y.slice(k,k+c):y,w=[],D=0;D<C.length;++D){var T=C.charCodeAt(D);if(T===45||T===46||T===95||T===126||T>=48&&T<=57||T>=65&&T<=90||T>=97&&T<=122||R===n.RFC1738&&(T===40||T===41)){w[w.length]=C.charAt(D);continue}if(T<128){w[w.length]=i[T];continue}if(T<2048){w[w.length]=i[192|T>>6]+i[128|T&63];continue}if(T<55296||T>=57344){w[w.length]=i[224|T>>12]+i[128|T>>6&63]+i[128|T&63];continue}D+=1,T=65536+((T&1023)<<10|C.charCodeAt(D)&1023),w[w.length]=i[240|T>>18]+i[128|T>>12&63]+i[128|T>>6&63]+i[128|T&63]}x+=w.join("")}return x},f=function(b){for(var g=[{obj:{o:b},prop:"o"}],M=[],v=0;v<g.length;++v)for(var R=g[v],y=R.obj[R.prop],x=Object.keys(y),k=0;k<x.length;++k){var C=x[k],w=y[C];typeof w=="object"&&w!==null&&M.indexOf(w)===-1&&(g.push({obj:y,prop:C}),M.push(w))}return r(g),b},p=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},h=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},S=function(b,g){return[].concat(b,g)},m=function(b,g){if(t(b)){for(var M=[],v=0;v<b.length;v+=1)M.push(g(b[v]));return M}return g(b)};return gs={arrayToObject:s,assign:l,combine:S,compact:f,decode:u,encode:d,isBuffer:h,isRegExp:p,maybeMap:m,merge:a},gs}var bs,Wo;function lh(){if(Wo)return bs;Wo=1;var n=oh(),e=jo(),t=ms(),i=Object.prototype.hasOwnProperty,r={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,b){return A+"["+b+"]"},repeat:function(A){return A}},s=Array.isArray,a=Array.prototype.push,l=function(m,A){a.apply(m,s(A)?A:[A])},u=Date.prototype.toISOString,c=t.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:t.formatters[c],indices:!1,serializeDate:function(A){return u.call(A)},skipNulls:!1,strictNullHandling:!1},f=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},p={},h=function m(A,b,g,M,v,R,y,x,k,C,w,D,T,L,N,j,G,I){for(var V=A,J=I,B=0,P=!1;(J=J.get(p))!==void 0&&!P;){var Q=J.get(A);if(B+=1,typeof Q<"u"){if(Q===B)throw new RangeError("Cyclic object value");P=!0}typeof J.get(p)>"u"&&(B=0)}if(typeof C=="function"?V=C(b,V):V instanceof Date?V=T(V):g==="comma"&&s(V)&&(V=e.maybeMap(V,function(ve){return ve instanceof Date?T(ve):ve})),V===null){if(R)return k&&!j?k(b,d.encoder,G,"key",L):b;V=""}if(f(V)||e.isBuffer(V)){if(k){var z=j?b:k(b,d.encoder,G,"key",L);return[N(z)+"="+N(k(V,d.encoder,G,"value",L))]}return[N(b)+"="+N(String(V))]}var $=[];if(typeof V>"u")return $;var ee;if(g==="comma"&&s(V))j&&k&&(V=e.maybeMap(V,k)),ee=[{value:V.length>0?V.join(",")||null:void 0}];else if(s(C))ee=C;else{var K=Object.keys(V);ee=w?K.sort(w):K}var ae=x?String(b).replace(/\./g,"%2E"):String(b),W=M&&s(V)&&V.length===1?ae+"[]":ae;if(v&&s(V)&&V.length===0)return W+"[]";for(var H=0;H<ee.length;++H){var ne=ee[H],ie=typeof ne=="object"&&ne&&typeof ne.value<"u"?ne.value:V[ne];if(!(y&&ie===null)){var te=D&&x?String(ne).replace(/\./g,"%2E"):String(ne),fe=s(V)?typeof g=="function"?g(W,te):W:W+(D?"."+te:"["+te+"]");I.set(A,B);var le=n();le.set(p,I),l($,m(ie,fe,g,M,v,R,y,x,g==="comma"&&j&&s(V)?null:k,C,w,D,T,L,N,j,G,le))}}return $},S=function(A){if(!A)return d;if(typeof A.allowEmptyArrays<"u"&&typeof A.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof A.encodeDotInKeys<"u"&&typeof A.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=A.charset||d.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var g=t.default;if(typeof A.format<"u"){if(!i.call(t.formatters,A.format))throw new TypeError("Unknown format option provided.");g=A.format}var M=t.formatters[g],v=d.filter;(typeof A.filter=="function"||s(A.filter))&&(v=A.filter);var R;if(A.arrayFormat in r?R=A.arrayFormat:"indices"in A?R=A.indices?"indices":"repeat":R=d.arrayFormat,"commaRoundTrip"in A&&typeof A.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y=typeof A.allowDots>"u"?A.encodeDotInKeys===!0?!0:d.allowDots:!!A.allowDots;return{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:d.addQueryPrefix,allowDots:y,allowEmptyArrays:typeof A.allowEmptyArrays=="boolean"?!!A.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:R,charset:b,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!A.commaRoundTrip,delimiter:typeof A.delimiter>"u"?d.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:d.encode,encodeDotInKeys:typeof A.encodeDotInKeys=="boolean"?A.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof A.encoder=="function"?A.encoder:d.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:d.encodeValuesOnly,filter:v,format:g,formatter:M,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:d.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:d.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:d.strictNullHandling}};return bs=function(m,A){var b=m,g=S(A),M,v;typeof g.filter=="function"?(v=g.filter,b=v("",b)):s(g.filter)&&(v=g.filter,M=v);var R=[];if(typeof b!="object"||b===null)return"";var y=r[g.arrayFormat],x=y==="comma"&&g.commaRoundTrip;M||(M=Object.keys(b)),g.sort&&M.sort(g.sort);for(var k=n(),C=0;C<M.length;++C){var w=M[C],D=b[w];g.skipNulls&&D===null||l(R,h(D,w,y,x,g.allowEmptyArrays,g.strictNullHandling,g.skipNulls,g.encodeDotInKeys,g.encode?g.encoder:null,g.filter,g.sort,g.allowDots,g.serializeDate,g.format,g.formatter,g.encodeValuesOnly,g.charset,k))}var T=R.join(g.delimiter),L=g.addQueryPrefix===!0?"?":"";return g.charsetSentinel&&(g.charset==="iso-8859-1"?L+="utf8=%26%2310003%3B&":L+="utf8=%E2%9C%93&"),T.length>0?L+T:""},bs}var vs,Uo;function uh(){if(Uo)return vs;Uo=1;var n=jo(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},r=function(p){return p.replace(/&#(\d+);/g,function(h,S){return String.fromCharCode(parseInt(S,10))})},s=function(p,h,S){if(p&&typeof p=="string"&&h.comma&&p.indexOf(",")>-1)return p.split(",");if(h.throwOnLimitExceeded&&S>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return p},a="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,S){var m={__proto__:null},A=S.ignoreQueryPrefix?h.replace(/^\?/,""):h;A=A.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=S.parameterLimit===1/0?void 0:S.parameterLimit,g=A.split(S.delimiter,S.throwOnLimitExceeded?b+1:b);if(S.throwOnLimitExceeded&&g.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var M=-1,v,R=S.charset;if(S.charsetSentinel)for(v=0;v<g.length;++v)g[v].indexOf("utf8=")===0&&(g[v]===l?R="utf-8":g[v]===a&&(R="iso-8859-1"),M=v,v=g.length);for(v=0;v<g.length;++v)if(v!==M){var y=g[v],x=y.indexOf("]="),k=x===-1?y.indexOf("="):x+1,C,w;k===-1?(C=S.decoder(y,i.decoder,R,"key"),w=S.strictNullHandling?null:""):(C=S.decoder(y.slice(0,k),i.decoder,R,"key"),w=n.maybeMap(s(y.slice(k+1),S,t(m[C])?m[C].length:0),function(T){return S.decoder(T,i.decoder,R,"value")})),w&&S.interpretNumericEntities&&R==="iso-8859-1"&&(w=r(String(w))),y.indexOf("[]=")>-1&&(w=t(w)?[w]:w);var D=e.call(m,C);D&&S.duplicates==="combine"?m[C]=n.combine(m[C],w):(!D||S.duplicates==="last")&&(m[C]=w)}return m},c=function(p,h,S,m){var A=0;if(p.length>0&&p[p.length-1]==="[]"){var b=p.slice(0,-1).join("");A=Array.isArray(h)&&h[b]?h[b].length:0}for(var g=m?h:s(h,S,A),M=p.length-1;M>=0;--M){var v,R=p[M];if(R==="[]"&&S.parseArrays)v=S.allowEmptyArrays&&(g===""||S.strictNullHandling&&g===null)?[]:n.combine([],g);else{v=S.plainObjects?{__proto__:null}:{};var y=R.charAt(0)==="["&&R.charAt(R.length-1)==="]"?R.slice(1,-1):R,x=S.decodeDotInKeys?y.replace(/%2E/g,"."):y,k=parseInt(x,10);!S.parseArrays&&x===""?v={0:g}:!isNaN(k)&&R!==x&&String(k)===x&&k>=0&&S.parseArrays&&k<=S.arrayLimit?(v=[],v[k]=g):x!=="__proto__"&&(v[x]=g)}g=v}return g},d=function(h,S,m,A){if(h){var b=m.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,g=/(\[[^[\]]*])/,M=/(\[[^[\]]*])/g,v=m.depth>0&&g.exec(b),R=v?b.slice(0,v.index):b,y=[];if(R){if(!m.plainObjects&&e.call(Object.prototype,R)&&!m.allowPrototypes)return;y.push(R)}for(var x=0;m.depth>0&&(v=M.exec(b))!==null&&x<m.depth;){if(x+=1,!m.plainObjects&&e.call(Object.prototype,v[1].slice(1,-1))&&!m.allowPrototypes)return;y.push(v[1])}if(v){if(m.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+m.depth+" and strictDepth is true");y.push("["+b.slice(v.index)+"]")}return c(y,S,m,A)}},f=function(h){if(!h)return i;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof h.charset>"u"?i.charset:h.charset,m=typeof h.duplicates>"u"?i.duplicates:h.duplicates;if(m!=="combine"&&m!=="first"&&m!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var A=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:i.allowDots:!!h.allowDots;return{allowDots:A,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:i.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:i.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:i.arrayLimit,charset:S,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:i.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:i.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:i.decoder,delimiter:typeof h.delimiter=="string"||n.isRegExp(h.delimiter)?h.delimiter:i.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:i.depth,duplicates:m,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:i.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:i.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:i.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return vs=function(p,h){var S=f(h);if(p===""||p===null||typeof p>"u")return S.plainObjects?{__proto__:null}:{};for(var m=typeof p=="string"?u(p,S):p,A=S.plainObjects?{__proto__:null}:{},b=Object.keys(m),g=0;g<b.length;++g){var M=b[g],v=d(M,m[M],S,typeof p=="string");A=n.merge(A,v,S)}return S.allowSparse===!0?A:n.compact(A)},vs}var ys,Go;function ch(){if(Go)return ys;Go=1;var n=lh(),e=uh(),t=ms();return ys={formats:t,parse:e,stringify:n},ys}var dh=ch();const Yo=Ua(dh),hh=["action"],fh=["value"],ph=["name","value"],mh=["value"],gh=["disabled"],bh=_e(o.defineComponent({__name:"ExportComponent",props:{type:{},action:{},filters:{},buttonText:{},csrfToken:{}},setup(n){const e=n,t=o.ref(),i=o.ref([]),r=o.computed(()=>e.csrfToken),s=async()=>{t.value&&t.value.submit()},a=()=>{if(!e.filters)return!1;if(typeof e.filters=="string")return l(),!0;c()},l=()=>{i.value=[];const d=/^.*\?/gm,f=e.filters.replace(d,""),p=Yo.parse(f);i.value=u(p)},u=d=>Yo.stringify(d,{encode:!1}).split("&").map(f=>{const p=f.split("=");return{key:p[0],value:p[1]}}).filter(({key:f,value:p})=>f.length&&p.length),c=()=>{if(i.value=[],!e.filters)return!1;i.value=u(e.filters)};return o.watch(()=>e.filters,()=>{a()},{deep:!1}),o.onMounted(()=>{a()}),(d,f)=>(o.openBlock(),o.createElementBlock("form",{target:"_blank",action:d.action,method:"POST",ref_key:"reportForm",ref:t},[d.type?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:"type",value:d.type},null,8,fh)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createElementBlock("input",{key:p.key,type:"hidden",name:p.key,value:p.value},null,8,ph))),128)),o.createElementVNode("input",{type:"hidden",name:"_token",value:r.value},null,8,mh),o.createElementVNode("button",{type:"button",class:o.normalizeClass(["col-auto export-button",{disabled:!d.action}]),onClick:s,disabled:!d.action},[o.createTextVNode(o.toDisplayString(d.buttonText)+" ",1),f[0]||(f[0]=o.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],10,gh)],8,hh))}}),[["__scopeId","data-v-db74d2e3"]]);var Dn={exports:{}};/*!
|
|
5
5
|
* dist/inputmask
|
|
6
6
|
* https://github.com/RobinHerbots/Inputmask
|
|
7
7
|
* Copyright (c) 2010 - 2024 Robin Herbots
|
|
8
8
|
* Licensed under the MIT license
|
|
9
9
|
* Version: 5.0.9
|
|
10
|
-
*/var vh=Dn.exports,Qo;function yh(){return Qo||(Qo=1,(function(n,e){(function(t,i){n.exports=i()})(typeof self<"u"?self:vh,(function(){return(function(){var t={3976:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(u,c){return typeof c.onBeforeMask=="function"?c.onBeforeMask.call(this,u,c):u},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d){if(d===void 0)return u.__data?u.__data[c]:null;u.__data=u.__data||{},u.__data[c]=d}},3776:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.Event=void 0,l.off=function(g,M){var v,R;return
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function h(g,M){(M==null||M>g.length)&&(M=g.length);for(var v=0,R=new Array(M);v<M;v++)R[v]=g[v];return R}function S(g){return g&&g.__esModule?g:{default:g}}var m=c.default.document;function C(g){return g instanceof Element}var b=l.Event=void 0;typeof c.default.CustomEvent=="function"?l.Event=b=c.default.CustomEvent:c.default.Event&&m&&m.createEvent?(l.Event=b=function(g,M){M=M||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var v=m.createEvent("CustomEvent");return v.initCustomEvent(g,M.bubbles,M.cancelable,M.detail),v},b.prototype=c.default.Event.prototype):typeof Event<"u"&&(l.Event=b=Event)},600:function(a,l){function u(c){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},u(c)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=function c(){var d,f,p,h,S,m,C=arguments[0]||{},b=1,g=arguments.length,M=!1;for(typeof C=="boolean"&&(M=C,C=arguments[b]||{},b++),u(C)!=="object"&&typeof C!="function"&&(C={});b<g;b++)if((d=arguments[b])!=null)for(f in d)p=C[f],C!==(h=d[f])&&(M&&h&&(Object.prototype.toString.call(h)==="[object Object]"||(S=Array.isArray(h)))?(S?(S=!1,m=p&&Array.isArray(p)?p:[]):m=p&&Object.prototype.toString.call(p)==="[object Object]"?p:{},C[f]=c(M,m,h)):h!==void 0&&(C[f]=h));return C}},4963:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=h(u(9380)),d=h(u(253)),f=u(3776),p=h(u(600));function h(C){return C&&C.__esModule?C:{default:C}}var S=c.default.document;function m(C){return C instanceof m?C:this instanceof m?void(C!=null&&C!==c.default&&(this[0]=C.nodeName?C:C[0]!==void 0&&C[0].nodeName?C[0]:S.querySelector(C),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new m(C)}m.prototype={on:f.on,off:f.off,trigger:f.trigger},m.extend=p.default,m.data=d.default,m.Event=f.Event,l.default=m},9845:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mobile=l.iphone=l.ie=void 0;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=d.default.navigator&&d.default.navigator.userAgent||"";l.ie=f.indexOf("MSIE ")>0||f.indexOf("Trident/")>0,l.mobile=d.default.navigator&&d.default.navigator.userAgentData&&d.default.navigator.userAgentData.mobile||d.default.navigator&&d.default.navigator.maxTouchPoints||"ontouchstart"in d.default,l.iphone=/iphone/i.test(f)},7184:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){return c.replace(u,"\\$1")};var u=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(a,l,u){function c(A){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},c(A)}Object.defineProperty(l,"__esModule",{value:!0}),l.EventHandlers=void 0;var d,f=u(9845),p=(d=u(9380))&&d.__esModule?d:{default:d},h=u(7760),S=u(2839),m=u(8711),C=u(7215),b=u(4713);function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return w};var A,w={},D=Object.prototype,T=D.hasOwnProperty,L=Object.defineProperty||function(U,q,X){U[q]=X.value},N=typeof Symbol=="function"?Symbol:{},j=N.iterator||"@@iterator",G=N.asyncIterator||"@@asyncIterator",I=N.toStringTag||"@@toStringTag";function V(U,q,X){return Object.defineProperty(U,q,{value:X,enumerable:!0,configurable:!0,writable:!0}),U[q]}try{V({},"")}catch{V=function(q,X,de){return q[X]=de}}function J(U,q,X,de){var ue=q&&q.prototype instanceof K?q:K,Ee=Object.create(ue.prototype),Be=new Ne(de||[]);return L(Ee,"_invoke",{value:ve(U,X,Be)}),Ee}function B(U,q,X){try{return{type:"normal",arg:U.call(q,X)}}catch(de){return{type:"throw",arg:de}}}w.wrap=J;var P="suspendedStart",Q="suspendedYield",z="executing",$="completed",ee={};function K(){}function ae(){}function W(){}var H={};V(H,j,(function(){return this}));var ne=Object.getPrototypeOf,ie=ne&&ne(ne(Le([])));ie&&ie!==D&&T.call(ie,j)&&(H=ie);var te=W.prototype=K.prototype=Object.create(H);function fe(U){["next","throw","return"].forEach((function(q){V(U,q,(function(X){return this._invoke(q,X)}))}))}function le(U,q){function X(ue,Ee,Be,xe){var Re=B(U[ue],U,Ee);if(Re.type!=="throw"){var Ie=Re.arg,ot=Ie.value;return ot&&c(ot)=="object"&&T.call(ot,"__await")?q.resolve(ot.__await).then((function(Qe){X("next",Qe,Be,xe)}),(function(Qe){X("throw",Qe,Be,xe)})):q.resolve(ot).then((function(Qe){Ie.value=Qe,Be(Ie)}),(function(Qe){return X("throw",Qe,Be,xe)}))}xe(Re.arg)}var de;L(this,"_invoke",{value:function(ue,Ee){function Be(){return new q((function(xe,Re){X(ue,Ee,xe,Re)}))}return de=de?de.then(Be,Be):Be()}})}function ve(U,q,X){var de=P;return function(ue,Ee){if(de===z)throw new Error("Generator is already running");if(de===$){if(ue==="throw")throw Ee;return{value:A,done:!0}}for(X.method=ue,X.arg=Ee;;){var Be=X.delegate;if(Be){var xe=ye(Be,X);if(xe){if(xe===ee)continue;return xe}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(de===P)throw de=$,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);de=z;var Re=B(U,q,X);if(Re.type==="normal"){if(de=X.done?$:Q,Re.arg===ee)continue;return{value:Re.arg,done:X.done}}Re.type==="throw"&&(de=$,X.method="throw",X.arg=Re.arg)}}}function ye(U,q){var X=q.method,de=U.iterator[X];if(de===A)return q.delegate=null,X==="throw"&&U.iterator.return&&(q.method="return",q.arg=A,ye(U,q),q.method==="throw")||X!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+X+"' method")),ee;var ue=B(de,U.iterator,q.arg);if(ue.type==="throw")return q.method="throw",q.arg=ue.arg,q.delegate=null,ee;var Ee=ue.arg;return Ee?Ee.done?(q[U.resultName]=Ee.value,q.next=U.nextLoc,q.method!=="return"&&(q.method="next",q.arg=A),q.delegate=null,ee):Ee:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,ee)}function ke(U){var q={tryLoc:U[0]};1 in U&&(q.catchLoc=U[1]),2 in U&&(q.finallyLoc=U[2],q.afterLoc=U[3]),this.tryEntries.push(q)}function Pe(U){var q=U.completion||{};q.type="normal",delete q.arg,U.completion=q}function Ne(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(ke,this),this.reset(!0)}function Le(U){if(U||U===""){var q=U[j];if(q)return q.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var X=-1,de=function ue(){for(;++X<U.length;)if(T.call(U,X))return ue.value=U[X],ue.done=!1,ue;return ue.value=A,ue.done=!0,ue};return de.next=de}}throw new TypeError(c(U)+" is not iterable")}return ae.prototype=W,L(te,"constructor",{value:W,configurable:!0}),L(W,"constructor",{value:ae,configurable:!0}),ae.displayName=V(W,I,"GeneratorFunction"),w.isGeneratorFunction=function(U){var q=typeof U=="function"&&U.constructor;return!!q&&(q===ae||(q.displayName||q.name)==="GeneratorFunction")},w.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,W):(U.__proto__=W,V(U,I,"GeneratorFunction")),U.prototype=Object.create(te),U},w.awrap=function(U){return{__await:U}},fe(le.prototype),V(le.prototype,G,(function(){return this})),w.AsyncIterator=le,w.async=function(U,q,X,de,ue){ue===void 0&&(ue=Promise);var Ee=new le(J(U,q,X,de),ue);return w.isGeneratorFunction(q)?Ee:Ee.next().then((function(Be){return Be.done?Be.value:Ee.next()}))},fe(te),V(te,I,"Generator"),V(te,j,(function(){return this})),V(te,"toString",(function(){return"[object Generator]"})),w.keys=function(U){var q=Object(U),X=[];for(var de in q)X.push(de);return X.reverse(),function ue(){for(;X.length;){var Ee=X.pop();if(Ee in q)return ue.value=Ee,ue.done=!1,ue}return ue.done=!0,ue}},w.values=Le,Ne.prototype={constructor:Ne,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(Pe),!U)for(var q in this)q.charAt(0)==="t"&&T.call(this,q)&&!isNaN(+q.slice(1))&&(this[q]=A)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var q=this;function X(Re,Ie){return Ee.type="throw",Ee.arg=U,q.next=Re,Ie&&(q.method="next",q.arg=A),!!Ie}for(var de=this.tryEntries.length-1;de>=0;--de){var ue=this.tryEntries[de],Ee=ue.completion;if(ue.tryLoc==="root")return X("end");if(ue.tryLoc<=this.prev){var Be=T.call(ue,"catchLoc"),xe=T.call(ue,"finallyLoc");if(Be&&xe){if(this.prev<ue.catchLoc)return X(ue.catchLoc,!0);if(this.prev<ue.finallyLoc)return X(ue.finallyLoc)}else if(Be){if(this.prev<ue.catchLoc)return X(ue.catchLoc,!0)}else{if(!xe)throw new Error("try statement without catch or finally");if(this.prev<ue.finallyLoc)return X(ue.finallyLoc)}}}},abrupt:function(U,q){for(var X=this.tryEntries.length-1;X>=0;--X){var de=this.tryEntries[X];if(de.tryLoc<=this.prev&&T.call(de,"finallyLoc")&&this.prev<de.finallyLoc){var ue=de;break}}ue&&(U==="break"||U==="continue")&&ue.tryLoc<=q&&q<=ue.finallyLoc&&(ue=null);var Ee=ue?ue.completion:{};return Ee.type=U,Ee.arg=q,ue?(this.method="next",this.next=ue.finallyLoc,ee):this.complete(Ee)},complete:function(U,q){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&q&&(this.next=q),ee},finish:function(U){for(var q=this.tryEntries.length-1;q>=0;--q){var X=this.tryEntries[q];if(X.finallyLoc===U)return this.complete(X.completion,X.afterLoc),Pe(X),ee}},catch:function(U){for(var q=this.tryEntries.length-1;q>=0;--q){var X=this.tryEntries[q];if(X.tryLoc===U){var de=X.completion;if(de.type==="throw"){var ue=de.arg;Pe(X)}return ue}}throw new Error("illegal catch attempt")},delegateYield:function(U,q,X){return this.delegate={iterator:Le(U),resultName:q,nextLoc:X},this.method==="next"&&(this.arg=A),ee}},w}function M(A,w){var D=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(!D){if(Array.isArray(A)||(D=(function(I,V){if(I){if(typeof I=="string")return v(I,V);var J=Object.prototype.toString.call(I).slice(8,-1);if(J==="Object"&&I.constructor&&(J=I.constructor.name),J==="Map"||J==="Set")return Array.from(I);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return v(I,V)}})(A))||w){D&&(A=D);var T=0,L=function(){};return{s:L,n:function(){return T>=A.length?{done:!0}:{done:!1,value:A[T++]}},e:function(I){throw I},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N,j=!0,G=!1;return{s:function(){D=D.call(A)},n:function(){var I=D.next();return j=I.done,I},e:function(I){G=!0,N=I},f:function(){try{j||D.return==null||D.return()}finally{if(G)throw N}}}}function v(A,w){(w==null||w>A.length)&&(w=A.length);for(var D=0,T=new Array(w);D<w;D++)T[D]=A[D];return T}function R(A,w,D,T,L,N,j){try{var G=A[N](j),I=G.value}catch(V){return void D(V)}G.done?w(I):Promise.resolve(I).then(T,L)}var y,x,k=l.EventHandlers={keyEvent:function(A,w,D,T,L){var N=this.inputmask,j=N.opts,G=N.dependencyLib,I=N.maskset,V=this,J=G(V),B=A.key,P=m.caret.call(N,V),Q=j.onKeyDown.call(this,A,m.getBuffer.call(N),P,j);if(Q!==void 0)return Q;if(B===S.keys.Backspace||B===S.keys.Delete||f.iphone&&B===S.keys.BACKSPACE_SAFARI||A.ctrlKey&&B===S.keys.x&&!("oncut"in V))A.preventDefault(),C.handleRemove.call(N,V,B,P),(0,h.writeBuffer)(V,m.getBuffer.call(N,!0),I.p,A,V.inputmask._valueGet()!==m.getBuffer.call(N).join(""));else if(B===S.keys.End||B===S.keys.PageDown){A.preventDefault();var z=m.seekNext.call(N,m.getLastValidPosition.call(N));m.caret.call(N,V,A.shiftKey?P.begin:z,z,!0)}else B===S.keys.Home&&!A.shiftKey||B===S.keys.PageUp?(A.preventDefault(),m.caret.call(N,V,0,A.shiftKey?P.begin:0,!0)):j.undoOnEscape&&B===S.keys.Escape&&A.altKey!==!0?((0,h.checkVal)(V,!0,!1,N.undoValue.split("")),J.trigger("click")):B!==S.keys.Insert||A.shiftKey||A.ctrlKey||N.userOptions.insertMode!==void 0?j.tabThrough===!0&&B===S.keys.Tab?A.shiftKey===!0?(P.end=m.seekPrevious.call(N,P.end,!0),b.getTest.call(N,P.end-1).match.static===!0&&P.end--,P.begin=m.seekPrevious.call(N,P.end,!0),P.begin>=0&&P.end>0&&(A.preventDefault(),m.caret.call(N,V,P.begin,P.end))):(P.begin=m.seekNext.call(N,P.begin,!0),P.end=m.seekNext.call(N,P.begin,!0),P.end<I.maskLength&&P.end--,P.begin<=I.maskLength&&(A.preventDefault(),m.caret.call(N,V,P.begin,P.end))):A.shiftKey||(j.insertModeVisual&&j.insertMode===!1?B===S.keys.ArrowRight?setTimeout((function(){var $=m.caret.call(N,V);m.caret.call(N,V,$.begin)}),0):B===S.keys.ArrowLeft&&setTimeout((function(){var $=m.translatePosition.call(N,V.inputmask.caretPos.begin);m.translatePosition.call(N,V.inputmask.caretPos.end),N.isRTL?m.caret.call(N,V,$+($===I.maskLength?0:1)):m.caret.call(N,V,$-($===0?0:1))}),0):N.keyEventHook===void 0||N.keyEventHook(A)):C.isSelection.call(N,P)?j.insertMode=!j.insertMode:(j.insertMode=!j.insertMode,m.caret.call(N,V,P.begin,P.begin));return N.isComposing=B==S.keys.Process||B==S.keys.Unidentified,N.ignorable=B.length>1&&!(V.tagName.toLowerCase()==="textarea"&&B==S.keys.Enter),k.keypressEvent.call(this,A,w,D,T,L)},keypressEvent:function(A,w,D,T,L){var N=this.inputmask||this,j=N.opts,G=N.dependencyLib,I=N.maskset,V=N.el,J=G(V),B=A.key;if(w===!0||A.ctrlKey&&A.altKey&&!N.ignorable||!(A.ctrlKey||A.metaKey||N.ignorable)){if(B){var P,Q=w?{begin:L,end:L}:m.caret.call(N,V);w||(B=j.substitutes[B]||B),I.writeOutBuffer=!0;var z=C.isValid.call(N,Q,B,T,void 0,void 0,void 0,w);if(z!==!1&&(m.resetMaskSet.call(N,!0),P=z.caret!==void 0?z.caret:m.seekNext.call(N,z.pos.begin?z.pos.begin:z.pos),I.p=P),P=j.numericInput&&z.caret===void 0?m.seekPrevious.call(N,P):P,D!==!1&&(setTimeout((function(){j.onKeyValidation.call(V,B,z)}),0),I.writeOutBuffer&&z!==!1)){var $=m.getBuffer.call(N);(0,h.writeBuffer)(V,$,P,A,w!==!0)}if(A.preventDefault(),w)return z!==!1&&(z.forwardPosition=P),z}}else B===S.keys.Enter&&N.undoValue!==N._valueGet(!0)&&(N.undoValue=N._valueGet(!0),setTimeout((function(){J.trigger("change")}),0))},pasteEvent:(y=g().mark((function A(w){var D,T,L,N,j,G;return g().wrap((function(I){for(;;)switch(I.prev=I.next){case 0:D=function(V,J,B,P,Q){var z=m.caret.call(V,J,void 0,void 0,!0),$=B.substr(0,z.begin),ee=B.substr(z.end,B.length);if($==(V.isRTL?m.getBufferTemplate.call(V).slice().reverse():m.getBufferTemplate.call(V)).slice(0,z.begin).join("")&&($=""),ee==(V.isRTL?m.getBufferTemplate.call(V).slice().reverse():m.getBufferTemplate.call(V)).slice(z.end).join("")&&(ee=""),P=$+P+ee,V.isRTL&&N.numericInput!==!0){P=P.split("");var K,ae=M(m.getBufferTemplate.call(V));try{for(ae.s();!(K=ae.n()).done;){var W=K.value;P[0]===W&&P.shift()}}catch(ne){ae.e(ne)}finally{ae.f()}P=P.reverse().join("")}var H=P;if(typeof Q=="function"){if((H=Q.call(V,H,N))===!1)return!1;H||(H=B)}(0,h.checkVal)(J,!0,!1,H.toString().split(""),w)},T=this,L=this.inputmask,N=L.opts,j=L._valueGet(!0),L.skipInputEvent=!0,w.clipboardData&&w.clipboardData.getData?G=w.clipboardData.getData("text/plain"):p.default.clipboardData&&p.default.clipboardData.getData&&(G=p.default.clipboardData.getData("Text")),D(L,T,j,G,N.onBeforePaste),w.preventDefault();case 7:case"end":return I.stop()}}),A,this)})),x=function(){var A=this,w=arguments;return new Promise((function(D,T){var L=y.apply(A,w);function N(G){R(L,D,T,N,j,"next",G)}function j(G){R(L,D,T,N,j,"throw",G)}N(void 0)}))},function(A){return x.apply(this,arguments)}),inputFallBackEvent:function(A){var w=this.inputmask,D=w.opts,T=w.dependencyLib,L,N=this,j=N.inputmask._valueGet(!0),G=(w.isRTL?m.getBuffer.call(w).slice().reverse():m.getBuffer.call(w)).join(""),I=m.caret.call(w,N,void 0,void 0,!0);if(G!==j){if(L=(function(J,B,P){for(var Q,z,$,ee=J.substr(0,P.begin).split(""),K=J.substr(P.begin).split(""),ae=B.substr(0,P.begin).split(""),W=B.substr(P.begin).split(""),H=ee.length>=ae.length?ee.length:ae.length,ne=K.length>=W.length?K.length:W.length,ie="",te=[],fe="~";ee.length<H;)ee.push(fe);for(;ae.length<H;)ae.push(fe);for(;K.length<ne;)K.unshift(fe);for(;W.length<ne;)W.unshift(fe);var le=ee.concat(K),ve=ae.concat(W);for(z=0,Q=le.length;z<Q;z++)switch($=b.getPlaceholder.call(w,m.translatePosition.call(w,z)),ie){case"insertText":ve[z-1]===le[z]&&P.begin==le.length-1&&te.push(le[z]),z=Q;break;case"insertReplacementText":case"deleteContentBackward":le[z]===fe?P.end++:z=Q;break;default:le[z]!==ve[z]&&(le[z+1]!==fe&&le[z+1]!==$&&le[z+1]!==void 0||(ve[z]!==$||ve[z+1]!==fe)&&ve[z]!==fe?ve[z+1]===fe&&ve[z]===le[z+1]?(ie="insertText",te.push(le[z]),P.begin--,P.end--):le[z]!==$&&le[z]!==fe&&(le[z+1]===fe||ve[z]!==le[z]&&ve[z+1]===le[z+1])?(ie="insertReplacementText",te.push(le[z]),P.begin--):le[z]===fe?(ie="deleteContentBackward",(m.isMask.call(w,m.translatePosition.call(w,z),!0)||ve[z]===D.radixPoint)&&P.end++):z=Q:(ie="insertText",te.push(le[z]),P.begin--,P.end--))}return{action:ie,data:te,caret:P}})(j,G,I),(N.inputmask.shadowRoot||N.ownerDocument).activeElement!==N&&N.focus(),(0,h.writeBuffer)(N,m.getBuffer.call(w)),m.caret.call(w,N,I.begin,I.end,!0),!f.mobile&&w.skipNextInsert&&A.inputType==="insertText"&&L.action==="insertText"&&w.isComposing)return!1;switch(A.inputType==="insertCompositionText"&&L.action==="insertText"&&w.isComposing?w.skipNextInsert=!0:w.skipNextInsert=!1,L.action){case"insertText":case"insertReplacementText":L.data.forEach((function(J,B){var P=new T.Event("keypress");P.key=J,w.ignorable=!1,k.keypressEvent.call(N,P)})),setTimeout((function(){w.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var V=new T.Event("keydown");V.key=S.keys.Backspace,k.keyEvent.call(N,V);break;default:(0,h.applyInputValue)(N,j),m.caret.call(w,N,I.begin,I.end,!0)}A.preventDefault()}},setValueEvent:function(A){var w=this.inputmask,D=w.dependencyLib,T=this,L=A&&A.detail?A.detail[0]:arguments[1];L===void 0&&(L=T.inputmask._valueGet(!0)),(0,h.applyInputValue)(T,L,new D.Event("input")),(A.detail&&A.detail[1]!==void 0||arguments[2]!==void 0)&&m.caret.call(w,T,A.detail?A.detail[1]:arguments[2])},focusEvent:function(A){var w=this.inputmask,D=w.opts,T=w&&w._valueGet();D.showMaskOnFocus&&T!==m.getBuffer.call(w).join("")&&(0,h.writeBuffer)(this,m.getBuffer.call(w),m.seekNext.call(w,m.getLastValidPosition.call(w))),D.positionCaretOnTab!==!0||w.mouseEnter!==!1||C.isComplete.call(w,m.getBuffer.call(w))&&m.getLastValidPosition.call(w)!==-1||k.clickEvent.apply(this,[A,!0]),w.undoValue=w&&w._valueGet(!0)},invalidEvent:function(A){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var A=this.inputmask,w=A.opts,D=this;A.mouseEnter=!1,w.clearMaskOnLostFocus&&(D.inputmask.shadowRoot||D.ownerDocument).activeElement!==D&&(0,h.HandleNativePlaceholder)(D,A.originalPlaceholder)},clickEvent:function(A,w){var D=this.inputmask;D.clicked++;var T=this;if((T.inputmask.shadowRoot||T.ownerDocument).activeElement===T){var L=m.determineNewCaretPosition.call(D,m.caret.call(D,T),w);L!==void 0&&m.caret.call(D,T,L)}},cutEvent:function(A){var w=this.inputmask,D=w.maskset,T=this,L=m.caret.call(w,T),N=w.isRTL?m.getBuffer.call(w).slice(L.end,L.begin):m.getBuffer.call(w).slice(L.begin,L.end),j=w.isRTL?N.reverse().join(""):N.join("");p.default.navigator&&p.default.navigator.clipboard?p.default.navigator.clipboard.writeText(j):p.default.clipboardData&&p.default.clipboardData.getData&&p.default.clipboardData.setData("Text",j),C.handleRemove.call(w,T,S.keys.Delete,L),(0,h.writeBuffer)(T,m.getBuffer.call(w),D.p,A,w.undoValue!==w._valueGet(!0))},blurEvent:function(A){var w=this.inputmask,D=w.opts,T=w.dependencyLib;w.clicked=0;var L=T(this),N=this;if(N.inputmask){(0,h.HandleNativePlaceholder)(N,w.originalPlaceholder);var j=N.inputmask._valueGet(),G=m.getBuffer.call(w).slice();j!==""&&(D.clearMaskOnLostFocus&&(m.getLastValidPosition.call(w)===-1&&j===m.getBufferTemplate.call(w).join("")?G=[]:h.clearOptionalTail.call(w,G)),C.isComplete.call(w,G)===!1&&(setTimeout((function(){L.trigger("incomplete")}),0),D.clearIncomplete&&(m.resetMaskSet.call(w,!1),G=D.clearMaskOnLostFocus?[]:m.getBufferTemplate.call(w).slice())),(0,h.writeBuffer)(N,G,void 0,A)),j=w._valueGet(!0),w.undoValue!==j&&(j!=""||w.undoValue!=m.getBufferTemplate.call(w).join("")||w.undoValue==m.getBufferTemplate.call(w).join("")&&w.maskset.validPositions.length>0)&&(w.undoValue=j,L.trigger("change"))}},mouseenterEvent:function(){var A=this.inputmask,w=A.opts.showMaskOnHover,D=this;if(A.mouseEnter=!0,(D.inputmask.shadowRoot||D.ownerDocument).activeElement!==D){var T=(A.isRTL?m.getBufferTemplate.call(A).slice().reverse():m.getBufferTemplate.call(A)).join("");w&&(0,h.HandleNativePlaceholder)(D,T)}},submitEvent:function(){var A=this.inputmask,w=A.opts;A.undoValue!==A._valueGet(!0)&&A.$el.trigger("change"),m.getLastValidPosition.call(A)===-1&&A._valueGet&&A._valueGet()===m.getBufferTemplate.call(A).join("")&&A._valueSet(""),w.clearIncomplete&&C.isComplete.call(A,m.getBuffer.call(A))===!1&&A._valueSet(""),w.removeMaskOnSubmit&&(A._valueSet(A.unmaskedvalue(),!0),setTimeout((function(){(0,h.writeBuffer)(A.el,m.getBuffer.call(A))}),0))},resetEvent:function(){var A=this.inputmask;A.refreshValue=!0,setTimeout((function(){(0,h.applyInputValue)(A.el,A._valueGet(!0))}),0)}}},9716:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.EventRuler=void 0;var c,d=u(7760),f=(c=u(2394))&&c.__esModule?c:{default:c},p=u(2839),h=u(8711);l.EventRuler={on:function(S,m,C){var b=S.inputmask.dependencyLib,g=function(M){M.originalEvent&&(M=M.originalEvent||M,arguments[0]=M);var v,R=this,y=R.inputmask,x=y?y.opts:void 0;if(y===void 0&&this.nodeName!=="FORM"){var k=b.data(R,"_inputmask_opts");b(R).off(),k&&new f.default(k).mask(R)}else{if(["submit","reset","setvalue"].includes(M.type)||this.nodeName==="FORM"||!(R.disabled||R.readOnly&&!(M.type==="keydown"&&M.ctrlKey&&M.key===p.keys.c||x.tabThrough===!1&&M.key===p.keys.Tab))){switch(M.type){case"input":if(y.skipInputEvent===!0)return y.skipInputEvent=!1,M.preventDefault();break;case"click":case"focus":return y.validationEvent?(y.validationEvent=!1,S.blur(),(0,d.HandleNativePlaceholder)(S,(y.isRTL?h.getBufferTemplate.call(y).slice().reverse():h.getBufferTemplate.call(y)).join("")),setTimeout((function(){S.focus()}),x.validationEventTimeOut),!1):(v=arguments,void setTimeout((function(){S.inputmask&&C.apply(R,v)}),0))}var A=C.apply(R,arguments);return A===!1&&(M.preventDefault(),M.stopPropagation()),A}M.preventDefault()}};["submit","reset"].includes(m)?(g=g.bind(S),S.form!==null&&b(S.form).on(m,g)):b(S).on(m,g),S.inputmask.events[m]=S.inputmask.events[m]||[],S.inputmask.events[m].push(g)},off:function(S,m){if(S.inputmask&&S.inputmask.events){var C=S.inputmask.dependencyLib,b=S.inputmask.events;for(var g in m&&((b=[])[m]=S.inputmask.events[m]),b){for(var M=b[g];M.length>0;){var v=M.pop();["submit","reset"].includes(g)?S.form!==null&&C(S.form).off(g,v):C(S).off(g,v)}delete S.inputmask.events[g]}}}}},219:function(a,l,u){var c=g(u(7184)),d=g(u(2394)),f=u(2839),p=u(8711),h=u(4713);function S(B,P){return(function(Q){if(Array.isArray(Q))return Q})(B)||(function(Q,z){var $=Q==null?null:typeof Symbol<"u"&&Q[Symbol.iterator]||Q["@@iterator"];if($!=null){var ee,K,ae,W,H=[],ne=!0,ie=!1;try{if(ae=($=$.call(Q)).next,z!==0)for(;!(ne=(ee=ae.call($)).done)&&(H.push(ee.value),H.length!==z);ne=!0);}catch(te){ie=!0,K=te}finally{try{if(!ne&&$.return!=null&&(W=$.return(),Object(W)!==W))return}finally{if(ie)throw K}}return H}})(B,P)||(function(Q,z){if(Q){if(typeof Q=="string")return m(Q,z);var $=Object.prototype.toString.call(Q).slice(8,-1);if($==="Object"&&Q.constructor&&($=Q.constructor.name),$==="Map"||$==="Set")return Array.from(Q);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return m(Q,z)}})(B,P)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function m(B,P){(P==null||P>B.length)&&(P=B.length);for(var Q=0,z=new Array(P);Q<P;Q++)z[Q]=B[Q];return z}function C(B){return C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},C(B)}function b(B,P){for(var Q=0;Q<P.length;Q++){var z=P[Q];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(B,($=z.key,ee=void 0,ee=(function(K,ae){if(C(K)!=="object"||K===null)return K;var W=K[Symbol.toPrimitive];if(W!==void 0){var H=W.call(K,ae);if(C(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ae==="string"?String:Number)(K)})($,"string"),C(ee)==="symbol"?ee:String(ee)),z)}var $,ee}function g(B){return B&&B.__esModule?B:{default:B}}u(1313);var M=d.default.dependencyLib,v=(function(){function B(z,$,ee,K){(function(ae,W){if(!(ae instanceof W))throw new TypeError("Cannot call a class as a function")})(this,B),this.mask=z,this.format=$,this.opts=ee,this.inputmask=K,this._date=new Date(1,0,1),this.initDateObject(z,this.opts,this.inputmask)}var P,Q;return P=B,(Q=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(z,$,ee){var K;for(L($).lastIndex=0;K=L($).exec(this.format);){var ae=/\d+$/.exec(K[0]),W=ae?K[0][0]+"x":K[0],H=void 0;if(z!==void 0){if(ae){var ne=L($).lastIndex,ie=J.call(ee,K.index,$,ee&&ee.maskset);L($).lastIndex=ne,H=z.slice(0,z.indexOf(ie.nextMatch[0]))}else{for(var te=K[0][0],fe=K.index;ee&&($.placeholder[h.getTest.call(ee,fe).match.placeholder]||h.getTest.call(ee,fe).match.placeholder)===te;)fe++;var le=fe-K.index;H=z.slice(0,le||k[W]&&k[W][4]||W.length)}z=z.slice(H.length)}Object.prototype.hasOwnProperty.call(k,W)&&this.setValue(this,H,W,k[W][2],k[W][1])}}},{key:"setValue",value:function(z,$,ee,K,ae){if($!==void 0)switch(K){case"ampm":z[K]=$,z["raw"+K]=$.replace(/\s/g,"_");break;case"month":if(ee==="mmm"||ee==="mmmm"){z[K]=G(ee==="mmm"?y.monthNames.slice(0,12).findIndex((function(H){return $.toLowerCase()===H.toLowerCase()}))+1:y.monthNames.slice(12,24).findIndex((function(H){return $.toLowerCase()===H.toLowerCase()}))+1,2),z[K]=z[K]==="00"?"":z[K].toString(),z["raw"+K]=z[K];break}default:z[K]=$.replace(/[^0-9]/g,"0"),z["raw"+K]=$.replace(/\s/g,"_")}if(ae!==void 0){var W=z[K];(K==="day"&&parseInt(W)===29||K==="month"&&parseInt(W)===2)&&(parseInt(z.day)!==29||parseInt(z.month)!==2||z.year!==""&&z.year!==void 0||z._date.setFullYear(2012,1,29)),K==="day"&&(x=!0,parseInt(W)===0&&(W=1)),K==="month"&&(x=!0),K==="year"&&(x=!0,W.length<k[ee][4]&&(W=G(W,k[ee][4],!0))),(W!==""&&!isNaN(W)||K==="ampm")&&ae.call(z._date,W)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&b(P.prototype,Q),Object.defineProperty(P,"prototype",{writable:!1}),B})(),R=new Date().getFullYear(),y=d.default.prototype.i18n,x=!1,k={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return G(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(B){var P=B?parseInt(B):0;return P>0&&P--,Date.prototype.setMonth.call(this,P)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(B){var P=B?parseInt(B):0;return P>0&&P--,Date.prototype.setMonth.call(this,P)},"month",function(){return G(Date.prototype.getMonth.call(this)+1,2)}],mmm:[y.monthNames.slice(0,12).join("|"),function(B){var P=y.monthNames.slice(0,12).findIndex((function(Q){return B.toLowerCase()===Q.toLowerCase()}));return P!==-1&&Date.prototype.setMonth.call(this,P)},"month",function(){return y.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[y.monthNames.slice(12,24).join("|"),function(B){var P=y.monthNames.slice(12,24).findIndex((function(Q){return B.toLowerCase()===Q.toLowerCase()}));return P!==-1&&Date.prototype.setMonth.call(this,P)},"month",function(){return y.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(B){var P=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(P).concat(B))},"year",function(){return G(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return G(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],hx:[function(B){return"[0-9]{".concat(B,"}")},Date.prototype.setHours,"hours",function(B){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],Hx:[function(B){return"[0-9]{".concat(B,"}")},Date.prototype.setHours,"hours",function(B){return function(){return G(Date.prototype.getHours.call(this),B)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return G(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return G(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",w,"ampm",D,1],tt:["[ap]m",w,"ampm",D,2],T:["[AP]",w,"ampm",D,1],TT:["[AP]M",w,"ampm",D,2],Z:[".*",void 0,"Z",function(){var B=this.toString().match(/\((.+)\)/)[1];return B.includes(" ")&&(B=(B=B.replace("-"," ").toUpperCase()).split(" ").map((function(P){return S(P,1)[0]})).join("")),B}],o:[""],S:[""]},A={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function w(B){var P=this.getHours();B.toLowerCase().includes("p")?this.setHours(P+12):B.toLowerCase().includes("a")&&P>=12&&this.setHours(P-12)}function D(){var B=this.getHours();return(B=B||12)>=12?"PM":"AM"}function T(B){var P=/\d+$/.exec(B[0]);if(P&&P[0]!==void 0){var Q=k[B[0][0]+"x"].slice("");return Q[0]=Q[0](P[0]),Q[3]=Q[3](P[0]),Q}if(k[B[0]])return k[B[0]]}function L(B){if(!B.tokenizer){var P=[],Q=[];for(var z in k)if(/\.*x$/.test(z)){var $=z[0]+"\\d+";Q.indexOf($)===-1&&Q.push($)}else P.indexOf(z[0])===-1&&P.push(z[0]);B.tokenizer="("+(Q.length>0?Q.join("|")+"|":"")+P.join("+|")+")+?|.",B.tokenizer=new RegExp(B.tokenizer,"g")}return B.tokenizer}function N(B,P,Q){if(!x)return!0;if(B.rawday===void 0||!isFinite(B.rawday)&&new Date(B.date.getFullYear(),isFinite(B.rawmonth)?B.month:B.date.getMonth()+1,0).getDate()>=B.day||B.day=="29"&&(!isFinite(B.rawyear)||B.rawyear===void 0||B.rawyear==="")||new Date(B.date.getFullYear(),isFinite(B.rawmonth)?B.month:B.date.getMonth()+1,0).getDate()>=B.day)return P;if(B.day=="29"){var z=J.call(this,P.pos,Q,this.maskset);if(z.targetMatch&&z.targetMatch[0]==="yyyy"&&P.pos-z.targetMatchIndex==2)return P.remove=P.pos+1,P}else if(B.date.getMonth()==2&&B.day=="30"&&P.c!==void 0)return B.day="03",B.date.setDate(3),B.date.setMonth(1),P.insert=[{pos:P.pos,c:"0"},{pos:P.pos+1,c:P.c}],P.caret=p.seekNext.call(this,P.pos+1),P;return!1}function j(B,P,Q,z){var $,ee,K="",ae=0,W={};for(L(Q).lastIndex=0;$=L(Q).exec(B);){if(P===void 0)if(ee=T($))K+="("+ee[0]+")",Q.placeholder&&Q.placeholder!==""?(W[ae]=Q.placeholder[$.index%Q.placeholder.length],W[Q.placeholder[$.index%Q.placeholder.length]]=$[0].charAt(0)):W[ae]=$[0].charAt(0);else switch($[0]){case"[":K+="(";break;case"]":K+=")?";break;default:K+=(0,c.default)($[0]),W[ae]=$[0].charAt(0)}else(ee=T($))?z!==!0&&ee[3]?K+=ee[3].call(P.date):ee[2]?K+=P["raw"+ee[2]]:K+=$[0]:K+=$[0];ae++}return P===void 0&&(Q.placeholder=W),K}function G(B,P,Q){for(B=String(B),P=P||2;B.length<P;)B=Q?B+"0":"0"+B;return B}function I(B,P,Q){return typeof B=="string"?new v(B,P,Q,this):B&&C(B)==="object"&&Object.prototype.hasOwnProperty.call(B,"date")?B:void 0}function V(B,P){return j(P.inputFormat,{date:B},P)}function J(B,P,Q){var z,$,ee=this,K=Q&&Q.tests[B]?P.placeholder[Q.tests[B][0].match.placeholder]||Q.tests[B][0].match.placeholder:"",ae=0,W=0;for(L(P).lastIndex=0;$=L(P).exec(P.inputFormat);){var H=/\d+$/.exec($[0]);if(H)W=parseInt(H[0]);else{for(var ne=$[0][0],ie=ae;ee&&(P.placeholder[h.getTest.call(ee,ie).match.placeholder]||h.getTest.call(ee,ie).match.placeholder)===ne;)ie++;(W=ie-ae)===0&&(W=$[0].length)}if(ae+=W,$[0].indexOf(K)!=-1||ae>=B+1){z=$,$=L(P).exec(P.inputFormat);break}}return{targetMatchIndex:ae-W,nextMatch:$,targetMatch:z}}d.default.extendAliases({datetime:{mask:function(B){return B.numericInput=!1,k.S=y.ordinalSuffix.join("|"),B.inputFormat=A[B.inputFormat]||B.inputFormat,B.displayFormat=A[B.displayFormat]||B.displayFormat||B.inputFormat,B.outputFormat=A[B.outputFormat]||B.outputFormat||B.inputFormat,B.regex=j(B.inputFormat,void 0,B),B.min=I(B.min,B.inputFormat,B),B.max=I(B.max,B.inputFormat,B),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(B,P,Q,z,$,ee,K,ae){if(ae)return!0;if(isNaN(Q)&&B[P]!==Q){var W=J.call(this,P,$,ee);if(W.nextMatch&&W.nextMatch[0]===Q&&W.targetMatch[0].length>1){var H=T(W.targetMatch)[0];if(new RegExp(H).test("0"+B[P-1]))return B[P]=B[P-1],B[P-1]="0",{fuzzy:!0,buffer:B,refreshFromBuffer:{start:P-1,end:P+1},pos:P+1}}}return!0},postValidation:function(B,P,Q,z,$,ee,K,ae){var W,H,ne=this;if(K)return!0;if(z===!1&&(((W=J.call(ne,P+1,$,ee)).targetMatch&&W.targetMatchIndex===P&&W.targetMatch[0].length>1&&k[W.targetMatch[0]]!==void 0||(W=J.call(ne,P+2,$,ee)).targetMatch&&W.targetMatchIndex===P+1&&W.targetMatch[0].length>1&&k[W.targetMatch[0]]!==void 0)&&(H=T(W.targetMatch)[0]),H!==void 0&&(ee.validPositions[P+1]!==void 0&&new RegExp(H).test(Q+"0")?(B[P]=Q,B[P+1]="0",z={pos:P+2,caret:P}):new RegExp(H).test("0"+Q)&&(B[P]="0",B[P+1]=Q,z={pos:P+2})),z===!1))return z;if(z.fuzzy&&(B=z.buffer,P=z.pos),(W=J.call(ne,P,$,ee)).targetMatch&&W.targetMatch[0]&&k[W.targetMatch[0]]!==void 0){var ie=T(W.targetMatch);H=ie[0];var te=B.slice(W.targetMatchIndex,W.targetMatchIndex+W.targetMatch[0].length);if(new RegExp(H).test(te.join(""))===!1&&W.targetMatch[0].length===2&&ee.validPositions[W.targetMatchIndex]&&ee.validPositions[W.targetMatchIndex+1]&&(ee.validPositions[W.targetMatchIndex+1].input="0"),ie[2]=="year")for(var fe=h.getMaskTemplate.call(ne,!1,1,void 0,!0),le=P+1;le<B.length;le++)B[le]=fe[le],ee.validPositions.splice(P+1,1)}var ve=z,ye=I.call(ne,B.join(""),$.inputFormat,$);return ve&&!isNaN(ye.date.getTime())&&($.prefillYear&&(ve=(function(ke,Pe,Ne){if(ke.year!==ke.rawyear){var Le=R.toString(),U=ke.rawyear.replace(/[^0-9]/g,""),q=Le.slice(0,U.length),X=Le.slice(U.length);if(U.length===2&&U===q){var de=new Date(R,ke.month-1,ke.day);ke.day==de.getDate()&&(!Ne.max||Ne.max.date.getTime()>=de.getTime())&&(ke.date.setFullYear(R),ke.year=Le,Pe.insert=[{pos:Pe.pos+1,c:X[0]},{pos:Pe.pos+2,c:X[1]}])}}return Pe})(ye,ve,$)),ve=(function(ke,Pe,Ne,Le,U){if(!Pe)return Pe;if(Pe&&Ne.min&&!isNaN(Ne.min.date.getTime())){var q;for(ke.reset(),L(Ne).lastIndex=0;q=L(Ne).exec(Ne.inputFormat);){var X;if((X=T(q))&&X[3]){for(var de=X[1],ue=ke[X[2]],Ee=Ne.min[X[2]],Be=Ne.max?Ne.max[X[2]]:Ee+1,xe=[],Re=!1,Ie=0;Ie<Ee.length;Ie++)Le.validPositions[Ie+q.index]!==void 0||Re?(xe[Ie]=ue[Ie],Re=Re||ue[Ie]>Ee[Ie]):(Ie+q.index==0&&ue[Ie]<Ee[Ie]?(xe[Ie]=ue[Ie],Re=!0):xe[Ie]=Ee[Ie],X[2]==="year"&&ue.length-1==Ie&&Ee!=Be&&(xe=(parseInt(xe.join(""))+1).toString().split("")),X[2]==="ampm"&&Ee!=Be&&Ne.min.date.getTime()>ke.date.getTime()&&(xe[Ie]=Be[Ie]));de.call(ke._date,xe.join(""))}}Pe=Ne.min.date.getTime()<=ke.date.getTime(),ke.reInit()}return Pe&&Ne.max&&(isNaN(Ne.max.date.getTime())||(Pe=Ne.max.date.getTime()>=ke.date.getTime())),Pe})(ye,ve=N.call(ne,ye,ve,$),$,ee)),P!==void 0&&ve&&z.pos!==P?{buffer:j($.inputFormat,ye,$).split(""),refreshFromBuffer:{start:P,end:z.pos},pos:z.caret||z.pos}:ve},onKeyDown:function(B,P,Q,z){B.ctrlKey&&B.key===f.keys.ArrowRight&&(this.inputmask._valueSet(V(new Date,z)),M(this).trigger("setvalue"))},onUnMask:function(B,P,Q){return P&&j(Q.outputFormat,I.call(this,B,Q.inputFormat,Q),Q,!0)},casing:function(B,P,Q,z){if(P.nativeDef.indexOf("[ap]")==0)return B.toLowerCase();if(P.nativeDef.indexOf("[AP]")==0)return B.toUpperCase();var $=h.getTest.call(this,[Q-1]);return $.match.def.indexOf("[AP]")==0||Q===0||$&&$.input===String.fromCharCode(f.keyCode.Space)||$&&$.match.def===String.fromCharCode(f.keyCode.Space)?B.toUpperCase():B.toLowerCase()},onBeforeMask:function(B,P){return Object.prototype.toString.call(B)==="[object Date]"&&(B=V(B,P)),B},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(a,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c};d.default.dependencyLib.extend(!0,d.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(a,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711),p=u(4713);function h(b){return(function(g){if(Array.isArray(g))return S(g)})(b)||(function(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)})(b)||(function(g,M){if(g){if(typeof g=="string")return S(g,M);var v=Object.prototype.toString.call(g).slice(8,-1);if(v==="Object"&&g.constructor&&(v=g.constructor.name),v==="Map"||v==="Set")return Array.from(g);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return S(g,M)}})(b)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function S(b,g){(g==null||g>b.length)&&(g=b.length);for(var M=0,v=new Array(g);M<g;M++)v[M]=b[M];return v}d.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var m=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function C(b,g,M,v,R){if(M-1>-1&&g.buffer[M-1]!=="."?(b=g.buffer[M-1]+b,b=M-2>-1&&g.buffer[M-2]!=="."?g.buffer[M-2]+b:"0"+b):b="00"+b,R.greedy&&parseInt(b)>255&&m.test("00"+b.charAt(2))){var y=[].concat(h(g.buffer.slice(0,M)),[".",b.charAt(2)]);if(y.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:y,caret:M+2}}return m.test(b)}d.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:C},j:{validator:C},k:{validator:C},l:{validator:C}},onUnMask:function(b,g,M){return b},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(b){var g=b.separator,M=b.quantifier,v="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",R=v;if(g)for(var y=0;y<M;y++)R+="[".concat(g).concat(v,"]");return R},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(b,g){return(b=b.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(b,g,M){return b},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(b,g,M,v,R,y,x){var k=p.getMaskTemplate.call(this,!0,f.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(k.join(""))}}})},207:function(a,l,u){var c=h(u(7184)),d=h(u(2394)),f=u(2839),p=u(8711);function h(v){return v&&v.__esModule?v:{default:v}}var S=d.default.dependencyLib;function m(v,R){for(var y="",x=0;x<v.length;x++)d.default.prototype.definitions[v.charAt(x)]||R.definitions[v.charAt(x)]||R.optionalmarker[0]===v.charAt(x)||R.optionalmarker[1]===v.charAt(x)||R.quantifiermarker[0]===v.charAt(x)||R.quantifiermarker[1]===v.charAt(x)||R.groupmarker[0]===v.charAt(x)||R.groupmarker[1]===v.charAt(x)||R.alternatormarker===v.charAt(x)?y+="\\"+v.charAt(x):y+=v.charAt(x);return y}function C(v,R,y,x){if(v.length>0&&R>0&&(!y.digitsOptional||x)){var k=v.indexOf(y.radixPoint),A=!1;y.negationSymbol.back===v[v.length-1]&&(A=!0,v.length--),k===-1&&(v.push(y.radixPoint),k=v.length-1);for(var w=1;w<=R;w++)isFinite(v[k+w])||(v[k+w]="0")}return A&&v.push(y.negationSymbol.back),v}function b(v,R){var y=0;for(var x in v==="+"&&(y=p.seekNext.call(this,R.validPositions.length-1)),R.tests)if((x=parseInt(x))>=y){for(var k=0,A=R.tests[x].length;k<A;k++)if((R.validPositions[x]===void 0||v==="-")&&R.tests[x][k].match.def===v)return x+(R.validPositions[x]!==void 0&&v!=="-"?1:0)}return y}function g(v,R){for(var y=-1,x=0,k=R.validPositions.length;x<k;x++){var A=R.validPositions[x];if(A&&A.match.def===v){y=x;break}}return y}function M(v,R,y,x,k){var A=R.buffer?R.buffer.indexOf(k.radixPoint):-1,w=(A!==-1||x&&k.jitMasking)&&new RegExp(k.definitions[9].validator).test(v);return!x&&k._radixDance&&A!==-1&&w&&R.validPositions[A]==null?{insert:{pos:A===y?A+1:A,c:k.radixPoint},pos:y}:w}d.default.extendAliases({numeric:{mask:function(v){v.repeat=0,v.groupSeparator===v.radixPoint&&v.digits&&v.digits!=="0"&&(v.radixPoint==="."?v.groupSeparator=",":v.radixPoint===","?v.groupSeparator=".":v.groupSeparator=""),v.groupSeparator===" "&&(v.skipOptionalPartCharacter=void 0),v.placeholder.length>1&&(v.placeholder=v.placeholder.charAt(0)),v.positionCaretOnClick==="radixFocus"&&v.placeholder===""&&(v.positionCaretOnClick="lvp");var R="0",y=v.radixPoint;v.numericInput===!0&&v.__financeInput===void 0?(R="1",v.positionCaretOnClick=v.positionCaretOnClick==="radixFocus"?"lvp":v.positionCaretOnClick,v.digitsOptional=!1,isNaN(v.digits)&&(v.digits=2),v._radixDance=!1,y=v.radixPoint===","?"?":"!",v.radixPoint!==""&&v.definitions[y]===void 0&&(v.definitions[y]={},v.definitions[y].validator="["+v.radixPoint+"]",v.definitions[y].placeholder=v.radixPoint,v.definitions[y].static=!0,v.definitions[y].generated=!0)):(v.__financeInput=!1,v.numericInput=!0);var x,k="[+]";if(k+=m(v.prefix,v),v.groupSeparator!==""?(v.definitions[v.groupSeparator]===void 0&&(v.definitions[v.groupSeparator]={},v.definitions[v.groupSeparator].validator="["+v.groupSeparator+"]",v.definitions[v.groupSeparator].placeholder=v.groupSeparator,v.definitions[v.groupSeparator].static=!0,v.definitions[v.groupSeparator].generated=!0),k+=v._mask(v)):k+="9{+}",v.digits!==void 0&&v.digits!==0){var A=v.digits.toString().split(",");isFinite(A[0])&&A[1]&&isFinite(A[1])?k+=y+R+"{"+v.digits+"}":(isNaN(v.digits)||parseInt(v.digits)>0)&&(v.digitsOptional||v.jitMasking?(x=k+y+R+"{0,"+v.digits+"}",v.keepStatic=!0):k+=y+R+"{"+v.digits+"}")}else v.inputmode="numeric";return k+=m(v.suffix,v),k+="[-]",x&&(k=[x+m(v.suffix,v)+"[-]",k]),v.greedy=!1,(function(w){w.parseMinMaxOptions===void 0&&(w.min!==null&&(w.min=w.min.toString().replace(new RegExp((0,c.default)(w.groupSeparator),"g"),""),w.radixPoint===","&&(w.min=w.min.replace(w.radixPoint,".")),w.min=isFinite(w.min)?parseFloat(w.min):NaN,isNaN(w.min)&&(w.min=Number.MIN_VALUE)),w.max!==null&&(w.max=w.max.toString().replace(new RegExp((0,c.default)(w.groupSeparator),"g"),""),w.radixPoint===","&&(w.max=w.max.replace(w.radixPoint,".")),w.max=isFinite(w.max)?parseFloat(w.max):NaN,isNaN(w.max)&&(w.max=Number.MAX_VALUE)),w.parseMinMaxOptions="done")})(v),v.radixPoint!==""&&v.substituteRadixPoint&&(v.substitutes[v.radixPoint=="."?",":"."]=v.radixPoint),k},_mask:function(v){return"("+v.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:M},1:{validator:M,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(v,R,y,x,k){return k.allowMinus&&(v==="-"||v===k.negationSymbol.front)}},"-":{validator:function(v,R,y,x,k){return k.allowMinus&&v===k.negationSymbol.back}}},preValidation:function(v,R,y,x,k,A,w,D){var T=this;if(k.__financeInput!==!1&&y===k.radixPoint)return!1;var L=v.indexOf(k.radixPoint),N=R;if(R=(function(J,B,P,Q,z){return z._radixDance&&z.numericInput&&B!==z.negationSymbol.back&&J<=P&&(P>0||B==z.radixPoint)&&(Q.validPositions[J-1]===void 0||Q.validPositions[J-1].input!==z.negationSymbol.back)&&(J-=1),J})(R,y,L,A,k),y==="-"||y===k.negationSymbol.front){if(k.allowMinus!==!0)return!1;var j=!1,G=g("+",A),I=g("-",A);return G!==-1&&(j=[G],I!==-1&&j.push(I)),j!==!1?{remove:j,caret:N-k.negationSymbol.back.length}:{insert:[{pos:b.call(T,"+",A),c:k.negationSymbol.front,fromIsValid:!0},{pos:b.call(T,"-",A),c:k.negationSymbol.back,fromIsValid:void 0}],caret:N+k.negationSymbol.back.length}}if(y===k.groupSeparator)return{caret:N};if(D)return!0;if(L!==-1&&k._radixDance===!0&&x===!1&&y===k.radixPoint&&k.digits!==void 0&&(isNaN(k.digits)||parseInt(k.digits)>0)&&L!==R){var V=b.call(T,k.radixPoint,A);return A.validPositions[V]&&(A.validPositions[V].generatedInput=A.validPositions[V].generated||!1),{caret:k._radixDance&&R===L-1?L+1:L}}if(k.__financeInput===!1){if(x){if(k.digitsOptional)return{rewritePosition:w.end};if(!k.digitsOptional){if(w.begin>L&&w.end<=L)return y===k.radixPoint?{insert:{pos:L+1,c:"0",fromIsValid:!0},rewritePosition:L}:{rewritePosition:L+1};if(w.begin<L)return{rewritePosition:w.begin-1}}}else if(!k.showMaskOnHover&&!k.showMaskOnFocus&&!k.digitsOptional&&k.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:L}}return{rewritePosition:R}},postValidation:function(v,R,y,x,k,A,w){if(x===!1)return x;if(w)return!0;if(k.min!==null||k.max!==null){var D=k.onUnMask(v.slice().reverse().join(""),void 0,S.extend({},k,{unmaskAsNumber:!0}));if(k.min!==null&&D<k.min&&(D.toString().length>k.min.toString().length||D<0))return!1;if(k.max!==null&&D>k.max)return!!k.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:C(k.max.toString().replace(".",k.radixPoint).split(""),k.digits,k).reverse()}}return x},onUnMask:function(v,R,y){if(R===""&&y.nullable===!0)return R;var x=v.replace(y.prefix,"");return x=(x=x.replace(y.suffix,"")).replace(new RegExp((0,c.default)(y.groupSeparator),"g"),""),y.placeholder.charAt(0)!==""&&(x=x.replace(new RegExp(y.placeholder.charAt(0),"g"),"0")),y.unmaskAsNumber?(y.radixPoint!==""&&x.indexOf(y.radixPoint)!==-1&&(x=x.replace(c.default.call(this,y.radixPoint),".")),x=(x=x.replace(new RegExp("^"+(0,c.default)(y.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(y.negationSymbol.back)+"$"),""),Number(x)):x},isComplete:function(v,R){var y=(R.numericInput?v.slice().reverse():v).join("");return y=(y=(y=(y=(y=y.replace(new RegExp("^"+(0,c.default)(R.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(R.negationSymbol.back)+"$"),"")).replace(R.prefix,"")).replace(R.suffix,"")).replace(new RegExp((0,c.default)(R.groupSeparator)+"([0-9]{3})","g"),"$1"),R.radixPoint===","&&(y=y.replace((0,c.default)(R.radixPoint),".")),isFinite(y)},onBeforeMask:function(v,R){var y;v=(y=v)!==null&&y!==void 0?y:"";var x=R.radixPoint||",";isFinite(R.digits)&&(R.digits=parseInt(R.digits)),typeof v!="number"&&R.inputType!=="number"||x===""||(v=v.toString().replace(".",x));var k=v.charAt(0)==="-"||v.charAt(0)===R.negationSymbol.front,A=v.split(x),w=A[0].replace(/[^\-0-9]/g,""),D=A.length>1?A[1].replace(/[^0-9]/g,""):"",T=A.length>1;v=w+(D!==""?x+D:D);var L=0;if(x!==""&&(L=R.digitsOptional?R.digits<D.length?R.digits:D.length:R.digits,D!==""||!R.digitsOptional)){var N=Math.pow(10,L||1);v=v.replace((0,c.default)(x),"."),isNaN(parseFloat(v))||(v=(R.roundingFN(parseFloat(v)*N)/N).toFixed(L)),v=v.toString().replace(".",x)}if(R.digits===0&&v.indexOf(x)!==-1&&(v=v.substring(0,v.indexOf(x))),R.min!==null||R.max!==null){var j=v.toString().replace(x,".");R.min!==null&&j<R.min?v=R.min.toString().replace(".",x):R.max!==null&&j>R.max&&(v=R.max.toString().replace(".",x))}return k&&v.charAt(0)!=="-"&&(v="-"+v),C(v.toString().split(""),L,R,T).join("")},onBeforeWrite:function(v,R,y,x){function k(I,V){if(x.__financeInput!==!1||V){var J=I.indexOf(x.radixPoint);J!==-1&&I.splice(J,1)}if(x.groupSeparator!=="")for(;(J=I.indexOf(x.groupSeparator))!==-1;)I.splice(J,1);return I}var A,w;if(x.stripLeadingZeroes&&(w=(function(I,V){var J=new RegExp("(^"+(V.negationSymbol.front!==""?(0,c.default)(V.negationSymbol.front)+"?":"")+(0,c.default)(V.prefix)+")(.*)("+(0,c.default)(V.suffix)+(V.negationSymbol.back!=""?(0,c.default)(V.negationSymbol.back)+"?":"")+"$)").exec(I.slice().reverse().join("")),B=J?J[2]:"",P=!1;return B&&(B=B.split(V.radixPoint.charAt(0))[0],P=new RegExp("^[0"+V.groupSeparator+"]*").exec(B)),!(!P||!(P[0].length>1||P[0].length>0&&P[0].length<B.length))&&P})(R,x)))for(var D=R.join("").lastIndexOf(w[0].split("").reverse().join(""))-(w[0]==w.input?0:1),T=w[0]==w.input?1:0,L=w[0].length-T;L>0;L--)this.maskset.validPositions.splice(D+L,1),delete R[D+L];if(v)switch(v.type){case"blur":case"checkval":if(x.min!==null){var N=x.onUnMask(R.slice().reverse().join(""),void 0,S.extend({},x,{unmaskAsNumber:!0}));if(x.min!==null&&N<x.min)return{refreshFromBuffer:!0,buffer:C(x.min.toString().replace(".",x.radixPoint).split(""),x.digits,x).reverse()}}if(R[R.length-1]===x.negationSymbol.front){var j=new RegExp("(^"+(x.negationSymbol.front!=""?(0,c.default)(x.negationSymbol.front)+"?":"")+(0,c.default)(x.prefix)+")(.*)("+(0,c.default)(x.suffix)+(x.negationSymbol.back!=""?(0,c.default)(x.negationSymbol.back)+"?":"")+"$)").exec(k(R.slice(),!0).reverse().join(""));(j?j[2]:"")==0&&(A={refreshFromBuffer:!0,buffer:[0]})}else x.radixPoint!==""&&R.indexOf(x.radixPoint)===x.suffix.length&&(A&&A.buffer?A.buffer.splice(0,1+x.suffix.length):(R.splice(0,1+x.suffix.length),A={refreshFromBuffer:!0,buffer:k(R)}));if(x.enforceDigitsOnBlur){var G=(A=A||{})&&A.buffer||R.slice().reverse();A.refreshFromBuffer=!0,A.buffer=C(G,x.digits,x,!0).reverse()}}return A},onKeyDown:function(v,R,y,x){var k,A=S(this);if(v.location!=3){var w,D=v.key;if((w=x.shortcuts&&x.shortcuts[D])&&w.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(w)),A.trigger("setvalue"),!1}if(v.ctrlKey)switch(v.key){case f.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(x.step)),A.trigger("setvalue"),!1;case f.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(x.step)),A.trigger("setvalue"),!1}if(!v.shiftKey&&(v.key===f.keys.Delete||v.key===f.keys.Backspace||v.key===f.keys.BACKSPACE_SAFARI)&&y.begin!==R.length){if(R[v.key===f.keys.Delete?y.begin-1:y.end]===x.negationSymbol.front)return k=R.slice().reverse(),x.negationSymbol.front!==""&&k.shift(),x.negationSymbol.back!==""&&k.pop(),A.trigger("setvalue",[k.join(""),y.begin]),!1;if(x._radixDance===!0){var T,L=R.indexOf(x.radixPoint);if(x.digitsOptional){if(L===0)return(k=R.slice().reverse()).pop(),A.trigger("setvalue",[k.join(""),y.begin>=k.length?k.length:y.begin]),!1}else if(L!==-1&&(y.begin<L||y.end<L||v.key===f.keys.Delete&&(y.begin===L||y.begin-1===L)))return y.begin===y.end&&(v.key===f.keys.Backspace||v.key===f.keys.BACKSPACE_SAFARI?y.begin++:v.key===f.keys.Delete&&y.begin-1===L&&(T=S.extend({},y),y.begin--,y.end--)),(k=R.slice().reverse()).splice(k.length-y.begin,y.begin-y.end+1),k=C(k,x.digits,x).join(""),T&&(y=T),A.trigger("setvalue",[k,y.begin>=k.length?L+1:y.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(v){return"("+v.groupSeparator+"99){*|1}("+v.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=!(typeof window>"u"||!window.document||!window.document.createElement);l.default=u?window:{}},7760:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.HandleNativePlaceholder=function(M,v){var R=M?M.inputmask:this;if(c.ie){if(M.inputmask._valueGet()!==v&&(M.placeholder!==v||M.placeholder==="")){var y=p.getBuffer.call(R).slice(),x=M.inputmask._valueGet();if(x!==v){var k=p.getLastValidPosition.call(R);k===-1&&x===p.getBufferTemplate.call(R).join("")?y=[]:k!==-1&&C.call(R,y),g(M,y)}}}else M.placeholder!==v&&(M.placeholder=v,M.placeholder===""&&M.removeAttribute("placeholder"))},l.applyInputValue=m,l.checkVal=b,l.clearOptionalTail=C,l.unmaskedvalue=function(M){var v=M?M.inputmask:this,R=v.opts,y=v.maskset;if(M){if(M.inputmask===void 0)return M.value;M.inputmask&&M.inputmask.refreshValue&&m(M,M.inputmask._valueGet(!0))}for(var x=[],k=y.validPositions,A=0,w=k.length;A<w;A++)k[A]&&k[A].match&&(k[A].match.static!=1||Array.isArray(y.metadata)&&k[A].generatedInput!==!0)&&x.push(k[A].input);var D=x.length===0?"":(v.isRTL?x.reverse():x).join("");if(typeof R.onUnMask=="function"){var T=(v.isRTL?p.getBuffer.call(v).slice().reverse():p.getBuffer.call(v)).join("");D=R.onUnMask.call(v,T,D,R)}return D},l.writeBuffer=g;var c=u(9845),d=u(6030),f=u(2839),p=u(8711),h=u(7215),S=u(4713);function m(M,v,R){var y=M?M.inputmask:this,x=y.opts;M.inputmask.refreshValue=!1,typeof x.onBeforeMask=="function"&&(v=x.onBeforeMask.call(y,v,x)||v),b(M,!0,!1,v=(v||"").toString().split(""),R),y.undoValue=y._valueGet(!0),(x.clearMaskOnLostFocus||x.clearIncomplete)&&M.inputmask._valueGet()===p.getBufferTemplate.call(y).join("")&&p.getLastValidPosition.call(y)===-1&&M.inputmask._valueSet("")}function C(M){M.length=0;for(var v,R=S.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(v=R.shift())!==void 0;)M.push(v);return M}function b(M,v,R,y,x){var k,A=M?M.inputmask:this,w=A.maskset,D=A.opts,T=A.dependencyLib,L=y.slice(),N="",j=-1,G=D.skipOptionalPartCharacter;D.skipOptionalPartCharacter="",p.resetMaskSet.call(A,!1),A.clicked=0,j=D.radixPoint?p.determineNewCaretPosition.call(A,{begin:0,end:0},!1,D.__financeInput===!1?"radixFocus":void 0).begin:0,w.p=j,A.caretPos={begin:j};var I=[],V=A.caretPos;if(L.forEach((function($,ee){if($!==void 0){var K=new T.Event("_checkval");K.key=$,N+=$;var ae=p.getLastValidPosition.call(A,void 0,!0);(function(W,H){for(var ne=S.getMaskTemplate.call(A,!0,0).slice(W,p.seekNext.call(A,W,!1,!1)).join("").replace(/'/g,""),ie=ne.indexOf(H);ie>0&&ne[ie-1]===" ";)ie--;var te=ie===0&&!p.isMask.call(A,W)&&(S.getTest.call(A,W).match.nativeDef===H.charAt(0)||S.getTest.call(A,W).match.static===!0&&S.getTest.call(A,W).match.nativeDef==="'"+H.charAt(0)||S.getTest.call(A,W).match.nativeDef===" "&&(S.getTest.call(A,W+1).match.nativeDef===H.charAt(0)||S.getTest.call(A,W+1).match.static===!0&&S.getTest.call(A,W+1).match.nativeDef==="'"+H.charAt(0)));if(!te&&ie>0&&!p.isMask.call(A,W,!1,!0)){var fe=p.seekNext.call(A,W);A.caretPos.begin<fe&&(A.caretPos={begin:fe})}return te})(j,N)?k=d.EventHandlers.keypressEvent.call(A,K,!0,!1,R,ae+1):(k=d.EventHandlers.keypressEvent.call(A,K,!0,!1,R,A.caretPos.begin))&&(j=A.caretPos.begin+1,N=""),k?(k.pos!==void 0&&w.validPositions[k.pos]&&w.validPositions[k.pos].match.static===!0&&w.validPositions[k.pos].alternation===void 0&&(I.push(k.pos),A.isRTL||(k.forwardPosition=k.pos+1)),g.call(A,void 0,p.getBuffer.call(A),k.forwardPosition,K,!1),A.caretPos={begin:k.forwardPosition,end:k.forwardPosition},V=A.caretPos):w.validPositions[ee]===void 0&&L[ee]===S.getPlaceholder.call(A,ee)&&p.isMask.call(A,ee,!0)?A.caretPos.begin++:A.caretPos=V}})),I.length>0){var J,B,P=p.seekNext.call(A,-1,void 0,!1);if(!h.isComplete.call(A,p.getBuffer.call(A))&&I.length<=P||h.isComplete.call(A,p.getBuffer.call(A))&&I.length>0&&I.length!==P&&I[0]===0){for(var Q=P;(J=I.shift())!==void 0;)if(J<Q){var z=new T.Event("_checkval");if((B=w.validPositions[J]).generatedInput=!0,z.key=B.input,(k=d.EventHandlers.keypressEvent.call(A,z,!0,!1,R,Q))&&k.pos!==void 0&&k.pos!==J&&w.validPositions[k.pos]&&w.validPositions[k.pos].match.static===!0)I.push(k.pos);else if(!k)break;Q++}}}v&&g.call(A,M,p.getBuffer.call(A),k?k.forwardPosition:A.caretPos.begin,x||new T.Event("checkval"),x&&(x.type==="input"&&A.undoValue!==p.getBuffer.call(A).join("")||x.type==="paste")),D.skipOptionalPartCharacter=G}function g(M,v,R,y,x){var k=M?M.inputmask:this,A=k.opts,w=k.dependencyLib;if(y&&typeof A.onBeforeWrite=="function"){var D=A.onBeforeWrite.call(k,y,v,R,A);if(D){if(D.refreshFromBuffer){var T=D.refreshFromBuffer;h.refreshFromBuffer.call(k,T===!0?T:T.start,T.end,D.buffer||v),v=p.getBuffer.call(k,!0)}R!==void 0&&(R=D.caret!==void 0?D.caret:R)}}if(M!==void 0&&(M.inputmask._valueSet(v.join("")),R===void 0||y!==void 0&&y.type==="blur"||p.caret.call(k,M,R,void 0,void 0,y!==void 0&&y.type==="keydown"&&(y.key===f.keys.Delete||y.key===f.keys.Backspace)),M.inputmask.writeBufferHook===void 0||M.inputmask.writeBufferHook(R),x===!0)){var L=w(M),N=M.inputmask._valueGet();M.inputmask.skipInputEvent=!0,L.trigger("input"),setTimeout((function(){N===p.getBufferTemplate.call(k).join("")?L.trigger("cleared"):h.isComplete.call(k,v)===!0&&L.trigger("complete")}),0)}}},2394:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=R(u(3976)),d=R(u(7392)),f=R(u(4963)),p=u(9716),h=R(u(9380)),S=u(7760),m=u(157),C=u(2391),b=u(8711),g=u(7215),M=u(4713);function v(w){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},v(w)}function R(w){return w&&w.__esModule?w:{default:w}}var y=h.default.document,x="_inputmask_opts";function k(w,D,T){if(!(this instanceof k))return new k(w,D,T);this.dependencyLib=f.default,this.el=void 0,this.events={},this.maskset=void 0,T!==!0&&(Object.prototype.toString.call(w)==="[object Object]"?D=w:(D=D||{},w&&(D.alias=w)),this.opts=f.default.extend(!0,{},this.defaults,D),this.noMasksCache=D&&D.definitions!==void 0,this.userOptions=D||{},A(this.opts.alias,D,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function A(w,D,T){var L=k.prototype.aliases[w];return L?(L.alias&&A(L.alias,void 0,T),f.default.extend(!0,T,L),f.default.extend(!0,T,D),!0):(T.mask===null&&(T.mask=w),!1)}k.prototype={dataAttribute:"data-inputmask",defaults:c.default,definitions:d.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(w){var D=this;return typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:Array.isArray(w)?w:[].slice.call(w)).forEach((function(T,L){var N=f.default.extend(!0,{},D.opts);if((function(G,I,V,J){function B(K,ae){var W=J===""?K:J+"-"+K;(ae=ae!==void 0?ae:G.getAttribute(W))!==null&&(typeof ae=="string"&&(K.indexOf("on")===0?ae=h.default[ae]:ae==="false"?ae=!1:ae==="true"&&(ae=!0)),V[K]=ae)}if(I.importDataAttributes===!0){var P,Q,z,$,ee=G.getAttribute(J);if(ee&&ee!==""&&(ee=ee.replace(/'/g,'"'),Q=JSON.parse("{"+ee+"}")),Q){for($ in z=void 0,Q)if($.toLowerCase()==="alias"){z=Q[$];break}}for(P in B("alias",z),V.alias&&A(V.alias,V,I),I){if(Q){for($ in z=void 0,Q)if($.toLowerCase()===P.toLowerCase()){z=Q[$];break}}B(P,z)}}return f.default.extend(!0,I,V),(G.dir==="rtl"||I.rightAlign)&&(G.style.textAlign="right"),(G.dir==="rtl"||I.numericInput)&&(G.dir="ltr",G.removeAttribute("dir"),I.isRTL=!0),Object.keys(V).length})(T,N,f.default.extend(!0,{},D.userOptions),D.dataAttribute)){var j=(0,C.generateMaskSet)(N,D.noMasksCache);j!==void 0&&(T.inputmask!==void 0&&(T.inputmask.opts.autoUnmask=!0,T.inputmask.remove()),T.inputmask=new k(void 0,void 0,!0),T.inputmask.opts=N,T.inputmask.noMasksCache=D.noMasksCache,T.inputmask.userOptions=f.default.extend(!0,{},D.userOptions),T.inputmask.el=T,T.inputmask.$el=(0,f.default)(T),T.inputmask.maskset=j,f.default.data(T,x,D.userOptions),m.mask.call(T.inputmask))}})),w&&w[0]&&w[0].inputmask||this},option:function(w,D){return typeof w=="string"?this.opts[w]:v(w)==="object"?(f.default.extend(this.userOptions,w),this.el&&D!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(w){if(this.maskset=this.maskset||(0,C.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||w!==void 0){var D=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!1,!1,D),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,b.getBuffer.call(this),0,this.opts)}return S.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){f.default.data(this.el,x,null);var w=this.opts.autoUnmask?(0,S.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);w!==b.getBufferTemplate.call(this).join("")?this._valueSet(w,this.opts.autoUnmask):this._valueSet(""),p.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):y.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,C.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?b.getBufferTemplate.call(this).reverse():b.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,C.generateMaskSet)(this.opts,this.noMasksCache),g.isComplete.call(this,b.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,C.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var w=M.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(D){return D.mask!==w||(w=D,!1)})),w}return this.maskset.metadata},isValid:function(w){if(this.maskset=this.maskset||(0,C.generateMaskSet)(this.opts,this.noMasksCache),w){var D=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!0,!1,D)}else w=this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join("");for(var T=b.getBuffer.call(this),L=b.determineLastRequiredPosition.call(this),N=T.length-1;N>L&&!b.isMask.call(this,N);N--);return T.splice(L,N+1-L),g.isComplete.call(this,T)&&w===(this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join(""))},format:function(w,D){this.maskset=this.maskset||(0,C.generateMaskSet)(this.opts,this.noMasksCache);var T=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!0,!1,T);var L=this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join("");return D?{value:L,metadata:this.getmetadata()}:L},setValue:function(w){this.el&&(0,f.default)(this.el).trigger("setvalue",[w])},analyseMask:C.analyseMask},k.extendDefaults=function(w){f.default.extend(!0,k.prototype.defaults,w)},k.extendDefinitions=function(w){f.default.extend(!0,k.prototype.definitions,w)},k.extendAliases=function(w){f.default.extend(!0,k.prototype.aliases,w)},k.format=function(w,D,T){return k(D).format(w,T)},k.unmask=function(w,D){return k(D).unmaskedvalue(w)},k.isValid=function(w,D){return k(D).isValid(w)},k.remove=function(w){typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:w).forEach((function(D){D.inputmask&&D.inputmask.remove()}))},k.setValue=function(w,D){typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:w).forEach((function(T){T.inputmask?T.inputmask.setValue(D):(0,f.default)(T).trigger("setvalue",[D])}))},k.dependencyLib=f.default,h.default.Inputmask=k,l.default=k},5296:function(a,l,u){function c(y){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},c(y)}var d=M(u(9380)),f=M(u(2394));function p(y,x){for(var k=0;k<x.length;k++){var A=x[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(y,(w=A.key,D=void 0,D=(function(T,L){if(c(T)!=="object"||T===null)return T;var N=T[Symbol.toPrimitive];if(N!==void 0){var j=N.call(T,L);if(c(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(T)})(w,"string"),c(D)==="symbol"?D:String(D)),A)}var w,D}function h(y){var x=C();return function(){var k,A=g(y);if(x){var w=g(this).constructor;k=Reflect.construct(A,arguments,w)}else k=A.apply(this,arguments);return(function(D,T){if(T&&(c(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L})(D)})(this,k)}}function S(y){var x=typeof Map=="function"?new Map:void 0;return S=function(k){if(k===null||!(function(w){try{return Function.toString.call(w).indexOf("[native code]")!==-1}catch{return typeof w=="function"}})(k))return k;if(typeof k!="function")throw new TypeError("Super expression must either be null or a function");if(x!==void 0){if(x.has(k))return x.get(k);x.set(k,A)}function A(){return m(k,arguments,g(this).constructor)}return A.prototype=Object.create(k.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),b(A,k)},S(y)}function m(y,x,k){return m=C()?Reflect.construct.bind():function(A,w,D){var T=[null];T.push.apply(T,w);var L=new(Function.bind.apply(A,T));return D&&b(L,D.prototype),L},m.apply(null,arguments)}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function b(y,x){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,A){return k.__proto__=A,k},b(y,x)}function g(y){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},g(y)}function M(y){return y&&y.__esModule?y:{default:y}}var v=d.default.document;if(v&&v.head&&v.head.attachShadow&&d.default.customElements&&d.default.customElements.get("input-mask")===void 0){var R=(function(y){(function(D,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(T&&T.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),T&&b(D,T)})(w,y);var x,k,A=h(w);function w(){var D;(function(G,I){if(!(G instanceof I))throw new TypeError("Cannot call a class as a function")})(this,w);var T=(D=A.call(this)).getAttributeNames(),L=D.attachShadow({mode:"closed"});for(var N in D.input=v.createElement("input"),D.input.type="text",L.appendChild(D.input),T)Object.prototype.hasOwnProperty.call(T,N)&&D.input.setAttribute(T[N],D.getAttribute(T[N]));var j=new f.default;return j.dataAttribute="",j.mask(D.input),D.input.inputmask.shadowRoot=L,D}return x=w,(k=[{key:"attributeChangedCallback",value:function(D,T,L){this.input.setAttribute(D,L)}},{key:"value",get:function(){return this.input.value},set:function(D){this.input.value=D}}])&&p(x.prototype,k),Object.defineProperty(x,"prototype",{writable:!1}),w})(S(HTMLElement));d.default.customElements.define("input-mask",R)}},2839:function(a,l){function u(m){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},u(m)}function c(m,C){return(function(b){if(Array.isArray(b))return b})(m)||(function(b,g){var M=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(M!=null){var v,R,y,x,k=[],A=!0,w=!1;try{if(y=(M=M.call(b)).next,g!==0)for(;!(A=(v=y.call(M)).done)&&(k.push(v.value),k.length!==g);A=!0);}catch(D){w=!0,R=D}finally{try{if(!A&&M.return!=null&&(x=M.return(),Object(x)!==x))return}finally{if(w)throw R}}return k}})(m,C)||(function(b,g){if(b){if(typeof b=="string")return d(b,g);var M=Object.prototype.toString.call(b).slice(8,-1);if(M==="Object"&&b.constructor&&(M=b.constructor.name),M==="Map"||M==="Set")return Array.from(b);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return d(b,g)}})(m,C)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function d(m,
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(G.split("["),2),J=V[0],B=V[1];B=B.replace("]",""),y=y.replace(new RegExp("".concat((0,d.default)(J),"\\[").concat((0,d.default)(B),"\\]")),J.charAt(0)===B.charAt(0)?"(".concat(J,"|").concat(J).concat(B,")"):"".concat(J,"[").concat(B,"]"))}))}return y}function v(y,x,k){var A,w,D=!1;return y!==null&&y!==""||((D=k.regex!==null)?y=(y=k.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(D=!0,y=".*")),y.length===1&&k.greedy===!1&&k.repeat!==0&&(k.placeholder=""),y=M(y,k),w=D?"regex_"+k.regex:k.numericInput?y.split("").reverse().join(""):y,k.keepStatic!==null&&(w="ks_"+k.keepStatic+w),h(k.placeholder)==="object"&&(w="ph_"+JSON.stringify(k.placeholder)+w),f.default.prototype.masksCache[w]===void 0||b===!0?(A={mask:y,maskToken:f.default.prototype.analyseMask(y,D,k),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:x,maskLength:void 0,jitOffset:{}},b!==!0&&(f.default.prototype.masksCache[w]=A,A=c.default.extend(!0,{},f.default.prototype.masksCache[w]))):A=c.default.extend(!0,{},f.default.prototype.masksCache[w]),A}if(typeof C.mask=="function"&&(C.mask=C.mask(C)),Array.isArray(C.mask)){if(C.mask.length>1){C.keepStatic===null&&(C.keepStatic=!0);var R=C.groupmarker[0];return(C.isRTL?C.mask.reverse():C.mask).forEach((function(y){R.length>1&&(R+=C.alternatormarker),y.mask!==void 0&&typeof y.mask!="function"?R+=y.mask:R+=y})),v(R+=C.groupmarker[1],C.mask,C)}C.mask=C.mask.pop()}return g=C.mask&&C.mask.mask!==void 0&&typeof C.mask.mask!="function"?v(C.mask.mask,C.mask,C):v(C.mask,C.mask,C),C.keepStatic===null&&(C.keepStatic=!1),g};var c=m(u(4963)),d=m(u(7184)),f=m(u(2394)),p=m(u(9695));function h(C){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},h(C)}function S(C,b){(b==null||b>C.length)&&(b=C.length);for(var g=0,M=new Array(b);g<b;g++)M[g]=C[g];return M}function m(C){return C&&C.__esModule?C:{default:C}}},157:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mask=function(){var m=this,C=this.opts,b=this.el,g=this.dependencyLib;f.EventRuler.off(b);var M=(function(y,x){var k=y.getAttribute("type"),A=y.tagName.toLowerCase()==="input"&&x.supportsInputType.includes(k)||y.isContentEditable||y.tagName.toLowerCase()==="textarea";if(!A)if(y.tagName.toLowerCase()==="input"){var w=document.createElement("input");w.setAttribute("type",k),A=w.type==="text",w=null}else A="partial";return A!==!1?(function(D){var T,L;function N(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():h.getLastValidPosition.call(m)!==-1||x.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&x.clearMaskOnLostFocus?(m.isRTL?p.clearOptionalTail.call(m,h.getBuffer.call(m).slice()).reverse():p.clearOptionalTail.call(m,h.getBuffer.call(m).slice())).join(""):T.call(this):"":T.call(this)}function j(I){L.call(this,I),this.inputmask&&(0,p.applyInputValue)(this,I)}if(!D.inputmask.__valueGet){if(x.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var G=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(D),"value"):void 0;G&&G.get&&G.set?(T=G.get,L=G.set,Object.defineProperty(D,"value",{get:N,set:j,configurable:!0})):D.tagName.toLowerCase()!=="input"&&(T=function(){return this.textContent},L=function(I){this.textContent=I},Object.defineProperty(D,"value",{get:N,set:j,configurable:!0}))}else document.__lookupGetter__&&D.__lookupGetter__("value")&&(T=D.__lookupGetter__("value"),L=D.__lookupSetter__("value"),D.__defineGetter__("value",N),D.__defineSetter__("value",j));D.inputmask.__valueGet=T,D.inputmask.__valueSet=L}D.inputmask._valueGet=function(I){return m.isRTL&&I!==!0?T.call(this.el).split("").reverse().join(""):T.call(this.el)},D.inputmask._valueSet=function(I,V){L.call(this.el,I==null?"":V!==!0&&m.isRTL?I.split("").reverse().join(""):I)},T===void 0&&(T=function(){return this.value},L=function(I){this.value=I},(function(I){if(g.valHooks&&(g.valHooks[I]===void 0||g.valHooks[I].inputmaskpatch!==!0)){var V=g.valHooks[I]&&g.valHooks[I].get?g.valHooks[I].get:function(B){return B.value},J=g.valHooks[I]&&g.valHooks[I].set?g.valHooks[I].set:function(B,P){return B.value=P,B};g.valHooks[I]={get:function(B){if(B.inputmask){if(B.inputmask.opts.autoUnmask)return B.inputmask.unmaskedvalue();var P=V(B);return h.getLastValidPosition.call(m,void 0,void 0,B.inputmask.maskset.validPositions)!==-1||x.nullable!==!0?P:""}return V(B)},set:function(B,P){var Q=J(B,P);return B.inputmask&&(0,p.applyInputValue)(B,P),Q},inputmaskpatch:!0}}})(D.type),(function(I){f.EventRuler.on(I,"mouseenter",(function(){var V=this,J=V.inputmask._valueGet(!0);J!=(V.inputmask.isRTL?h.getBuffer.call(V.inputmask).slice().reverse():h.getBuffer.call(V.inputmask)).join("")&&(0,p.applyInputValue)(V,J)}))})(D))}})(y):y.inputmask=void 0,A})(b,C);if(M!==!1){m.originalPlaceholder=b.placeholder,m.maxLength=b!==void 0?b.maxLength:void 0,m.maxLength===-1&&(m.maxLength=void 0),"inputMode"in b&&b.getAttribute("inputmode")===null&&(b.inputMode=C.inputmode,b.setAttribute("inputmode",C.inputmode)),M===!0&&(C.showMaskOnFocus=C.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(b.autocomplete)===-1,c.iphone&&(C.insertModeVisual=!1,b.setAttribute("autocorrect","off")),f.EventRuler.on(b,"submit",d.EventHandlers.submitEvent),f.EventRuler.on(b,"reset",d.EventHandlers.resetEvent),f.EventRuler.on(b,"blur",d.EventHandlers.blurEvent),f.EventRuler.on(b,"focus",d.EventHandlers.focusEvent),f.EventRuler.on(b,"invalid",d.EventHandlers.invalidEvent),f.EventRuler.on(b,"click",d.EventHandlers.clickEvent),f.EventRuler.on(b,"mouseleave",d.EventHandlers.mouseleaveEvent),f.EventRuler.on(b,"mouseenter",d.EventHandlers.mouseenterEvent),f.EventRuler.on(b,"paste",d.EventHandlers.pasteEvent),f.EventRuler.on(b,"cut",d.EventHandlers.cutEvent),f.EventRuler.on(b,"complete",C.oncomplete),f.EventRuler.on(b,"incomplete",C.onincomplete),f.EventRuler.on(b,"cleared",C.oncleared),C.inputEventOnly!==!0&&f.EventRuler.on(b,"keydown",d.EventHandlers.keyEvent),(c.mobile||C.inputEventOnly)&&b.removeAttribute("maxLength"),f.EventRuler.on(b,"input",d.EventHandlers.inputFallBackEvent)),f.EventRuler.on(b,"setvalue",d.EventHandlers.setValueEvent),m.applyMaskHook===void 0||m.applyMaskHook(),h.getBufferTemplate.call(m).join(""),m.undoValue=m._valueGet(!0);var v=(b.inputmask.shadowRoot||b.ownerDocument).activeElement;if(b.inputmask._valueGet(!0)!==""||C.clearMaskOnLostFocus===!1||v===b){(0,p.applyInputValue)(b,b.inputmask._valueGet(!0),C);var R=h.getBuffer.call(m).slice();S.isComplete.call(m,R)===!1&&C.clearIncomplete&&h.resetMaskSet.call(m,!1),C.clearMaskOnLostFocus&&v!==b&&(h.getLastValidPosition.call(m)===-1?R=[]:p.clearOptionalTail.call(m,R)),(C.clearMaskOnLostFocus===!1||C.showMaskOnFocus&&v===b||b.inputmask._valueGet(!0)!=="")&&(0,p.writeBuffer)(b,R),v===b&&h.caret.call(m,b,h.seekNext.call(m,h.getLastValidPosition.call(m)))}}};var c=u(9845),d=u(6030),f=u(9716),p=u(7760),h=u(8711),S=u(7215)},9695:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d,f){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=c||!1,this.isQuantifier=d||!1,this.isAlternator=f||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(a,l){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),c=u.length>>>0;if(c===0)return!1;for(var d=0|l,f=Math.max(d>=0?d:c-Math.abs(d),0);f<c;){if(u[f]===a)return!0;f++}return!1}})},9302:function(){var a=Function.bind.call(Function.call,Array.prototype.reduce),l=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),c=Object.keys;Object.entries||(Object.entries=function(d){return a(c(d),(function(f,p){return u(f,typeof p=="string"&&l(d,p)?[[p,d[p]]]:[])}),[])})},7149:function(){function a(l){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},a(l)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=a("test".__proto__)==="object"?function(l){return l.__proto__}:function(l){return l.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(a,l){return typeof l!="number"&&(l=0),!(l+a.length>this.length)&&this.indexOf(a,l)!==-1})},8711:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.caret=function(g,M,v,R,y){var x,k=this,A=this.opts;if(M===void 0)return"selectionStart"in g&&"selectionEnd"in g?(M=g.selectionStart,v=g.selectionEnd):d.default.getSelection?(x=d.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==g&&x.commonAncestorContainer!==g||(M=x.startOffset,v=x.endOffset):document.selection&&document.selection.createRange&&(v=(M=0-(x=document.selection.createRange()).duplicate().moveStart("character",-g.inputmask._valueGet().length))+x.text.length),{begin:R?M:b.call(k,M),end:R?v:b.call(k,v)};if(Array.isArray(M)&&(v=k.isRTL?M[0]:M[1],M=k.isRTL?M[1]:M[0]),M.begin!==void 0&&(v=k.isRTL?M.begin:M.end,M=k.isRTL?M.end:M.begin),typeof M=="number"){M=R?M:b.call(k,M),v=typeof(v=R?v:b.call(k,v))=="number"?v:M;var w=parseInt(((g.ownerDocument.defaultView||d.default).getComputedStyle?(g.ownerDocument.defaultView||d.default).getComputedStyle(g,null):g.currentStyle).fontSize)*v;if(g.scrollLeft=w>g.scrollWidth?w:0,g.inputmask.caretPos={begin:M,end:v},A.insertModeVisual&&A.insertMode===!1&&M===v&&(y||v++),g===(g.inputmask.shadowRoot||g.ownerDocument).activeElement){if("setSelectionRange"in g)g.setSelectionRange(M,v);else if(d.default.getSelection){if(x=document.createRange(),g.firstChild===void 0||g.firstChild===null){var D=document.createTextNode("");g.appendChild(D)}x.setStart(g.firstChild,M<g.inputmask._valueGet().length?M:g.inputmask._valueGet().length),x.setEnd(g.firstChild,v<g.inputmask._valueGet().length?v:g.inputmask._valueGet().length),x.collapse(!0);var T=d.default.getSelection();T.removeAllRanges(),T.addRange(x)}else g.createTextRange&&((x=g.createTextRange()).collapse(!0),x.moveEnd("character",v),x.moveStart("character",M),x.select());g.inputmask.caretHook===void 0||g.inputmask.caretHook.call(k,{begin:M,end:v})}}},l.determineLastRequiredPosition=function(g){var M,v,R=this,y=R.maskset,x=R.dependencyLib,k=S.call(R),A={},w=y.validPositions[k],D=p.getMaskTemplate.call(R,!0,S.call(R),!0,!0),T=D.length,L=w!==void 0?w.locator.slice():void 0;for(M=k+1;M<D.length;M++)L=(v=p.getTestTemplate.call(R,M,L,M-1)).locator.slice(),A[M]=x.extend(!0,{},v);var N=w&&w.alternation!==void 0?w.locator[w.alternation]:void 0;for(M=T-1;M>k&&((v=A[M]).match.optionality||v.match.optionalQuantifier&&v.match.newBlockMarker||N&&(N!==A[M].locator[w.alternation]&&v.match.static!==!0||v.match.static===!0&&v.locator[w.alternation]&&f.checkAlternationMatch.call(R,v.locator[w.alternation].toString().split(","),N.toString().split(","))&&p.getTests.call(R,M)[0].def!==""))&&D[M]===p.getPlaceholder.call(R,M,v.match);M--)T--;return g?{l:T,def:A[T]?A[T].match:void 0}:T},l.determineNewCaretPosition=function(g,M,v){var R,y,x,k=this,A=k.maskset,w=k.opts;if(M&&(k.isRTL?g.end=g.begin:g.begin=g.end),g.begin===g.end){switch(v=v||w.positionCaretOnClick){case"none":break;case"select":g={begin:0,end:h.call(k).length};break;case"ignore":g.end=g.begin=C.call(k,S.call(k));break;case"radixFocus":if(k.clicked>1&&A.validPositions.length===0)break;if((function(G){if(w.radixPoint!==""&&w.digits!==0){var I=A.validPositions;if(I[G]===void 0||I[G].input===void 0){if(G<C.call(k,-1))return!0;var V=h.call(k).indexOf(w.radixPoint);if(V!==-1){for(var J=0,B=I.length;J<B;J++)if(I[J]&&V<J&&I[J].input!==p.getPlaceholder.call(k,J))return!1;return!0}}}return!1})(g.begin)){var D=h.call(k).join("").indexOf(w.radixPoint);g.end=g.begin=w.numericInput?C.call(k,D):D;break}default:if(R=g.begin,y=S.call(k,R,!0),R<=(x=C.call(k,y!==-1||m.call(k,0)?y:-1)))g.end=g.begin=m.call(k,R,!1,!0)?R:C.call(k,R);else{var T=A.validPositions[y],L=p.getTestTemplate.call(k,x,T?T.match.locator:void 0,T),N=p.getPlaceholder.call(k,x,L.match);if(N!==""&&h.call(k)[x]!==N&&L.match.optionalQuantifier!==!0&&L.match.newBlockMarker!==!0||!m.call(k,x,w.keepStatic,!0)&&L.match.def===N){var j=C.call(k,x);(R>=j||R===x)&&(x=j)}g.end=g.begin=x}}return g}},l.getBuffer=h,l.getBufferTemplate=function(){var g=this.maskset;return g._buffer===void 0&&(g._buffer=p.getMaskTemplate.call(this,!1,1),g.buffer===void 0&&(g.buffer=g._buffer.slice())),g._buffer},l.getLastValidPosition=S,l.isMask=m,l.resetMaskSet=function(g){var M=this.maskset;M.buffer=void 0,g!==!0&&(M.validPositions=[],M.p=0),g===!1&&(M.tests={},M.jitOffset={})},l.seekNext=C,l.seekPrevious=function(g,M){var v=this,R=g-1;if(g<=0)return 0;for(;R>0&&(M===!0&&(p.getTest.call(v,R).match.newBlockMarker!==!0||!m.call(v,R,void 0,!0))||M!==!0&&!m.call(v,R,void 0,!0));)R--;return R},l.translatePosition=b;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=u(7215),p=u(4713);function h(g){var M=this,v=M.maskset;return v.buffer!==void 0&&g!==!0||(v.buffer=p.getMaskTemplate.call(M,!0,S.call(M),!0),v._buffer===void 0&&(v._buffer=v.buffer.slice())),v.buffer}function S(g,M,v){var R=this.maskset,y=-1,x=-1,k=v||R.validPositions;g===void 0&&(g=-1);for(var A=0,w=k.length;A<w;A++)k[A]&&(M||k[A].generatedInput!==!0)&&(A<=g&&(y=A),A>=g&&(x=A));return y===-1||y===g?x:x===-1||g-y<x-g?y:x}function m(g,M,v){var R=this,y=this.maskset,x=p.getTestTemplate.call(R,g).match;if(x.def===""&&(x=p.getTest.call(R,g).match),x.static!==!0)return x.fn;if(v===!0&&y.validPositions[g]!==void 0&&y.validPositions[g].generatedInput!==!0)return!0;if(M!==!0&&g>-1){if(v){var k=p.getTests.call(R,g);return k.length>1+(k[k.length-1].match.def===""?1:0)}var A=p.determineTestTemplate.call(R,g,p.getTests.call(R,g)),w=p.getPlaceholder.call(R,g,A.match);return A.match.def!==w}return!1}function C(g,M,v){var R=this;v===void 0&&(v=!0);for(var y=g+1;p.getTest.call(R,y).match.def!==""&&(M===!0&&(p.getTest.call(R,y).match.newBlockMarker!==!0||!m.call(R,y,void 0,!0))||M!==!0&&!m.call(R,y,void 0,v));)y++;return y}function b(g){var M=this.opts,v=this.el;return!this.isRTL||typeof g!="number"||M.greedy&&M.placeholder===""||!v||(g=this._valueGet().length-g)<0&&(g=0),g}},4713:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.determineTestTemplate=b,l.getDecisionTaker=S,l.getMaskTemplate=function(R,y,x,k,A){var w=this,D=this.opts,T=this.maskset,L=D.greedy;A&&D.greedy&&(D.greedy=!1,w.maskset.tests={}),y=y||0;var N,j,G,I,V=[],J=0;do{if(R===!0&&T.validPositions[J])j=(G=A&&T.validPositions[J].match.optionality&&T.validPositions[J+1]===void 0&&(T.validPositions[J].generatedInput===!0||T.validPositions[J].input==D.skipOptionalPartCharacter&&J>0)?b.call(w,J,v.call(w,J,N,J-1)):T.validPositions[J]).match,N=G.locator.slice(),V.push(x===!0?G.input:x===!1?j.nativeDef:m.call(w,J,j));else{j=(G=C.call(w,J,N,J-1)).match,N=G.locator.slice();var B=k!==!0&&(D.jitMasking!==!1?D.jitMasking:j.jit);(I=(I||T.validPositions[J-1])&&j.static&&j.def!==D.groupSeparator&&j.fn===null)||B===!1||B===void 0||typeof B=="number"&&isFinite(B)&&B>J?V.push(x===!1?j.nativeDef:m.call(w,V.length,j)):I=!1}J++}while(j.static!==!0||j.def!==""||y>J);return V[V.length-1]===""&&V.pop(),x===!1&&T.maskLength!==void 0||(T.maskLength=J-1),D.greedy=L,V},l.getPlaceholder=m,l.getTest=g,l.getTestTemplate=C,l.getTests=v,l.isSubsetOf=M;var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711);function p(R){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},p(R)}function h(R,y){var x=(R.alternation!=null?R.mloc[S(R)]:R.locator).join("");if(x!=="")for(x=x.split(":")[0];x.length<y;)x+="0";return x}function S(R){var y=R.locator[R.alternation];return typeof y=="string"&&y.length>0&&(y=y.split(",")[0]),y!==void 0?y.toString():""}function m(R,y,x){var k=this,A=this.opts,w=this.maskset;if((y=y||g.call(k,R).match).placeholder!==void 0||x===!0){if(y.placeholder!==""&&y.static===!0&&y.generated!==!0){var D=f.getLastValidPosition.call(k,R),T=f.seekNext.call(k,D);return(x?R<=T:R<T)?A.staticDefinitionSymbol&&y.static?y.nativeDef:y.def:typeof y.placeholder=="function"?y.placeholder(A):y.placeholder}return typeof y.placeholder=="function"?y.placeholder(A):y.placeholder}if(y.static===!0){if(R>-1&&w.validPositions[R]===void 0){var L,N=v.call(k,R),j=[];if(typeof A.placeholder=="string"&&N.length>1+(N[N.length-1].match.def===""?1:0)){for(var G=0;G<N.length;G++)if(N[G].match.def!==""&&N[G].match.optionality!==!0&&N[G].match.optionalQuantifier!==!0&&(N[G].match.static===!0||L===void 0||N[G].match.fn.test(L.match.def,w,R,!0,A)!==!1)&&(j.push(N[G]),N[G].match.static===!0&&(L=N[G]),j.length>1&&/[0-9a-bA-Z]/.test(j[0].match.def)))return A.placeholder.charAt(R%A.placeholder.length)}}return y.def}return p(A.placeholder)==="object"?y.def:A.placeholder.charAt(R%A.placeholder.length)}function C(R,y,x){return this.maskset.validPositions[R]||b.call(this,R,v.call(this,R,y&&y.slice(),x))}function b(R,y){var x=this.opts,k=0,A=(function(I,V){var J=0,B=!1;return V.forEach((function(P){P.match.optionality&&(J!==0&&J!==P.match.optionality&&(B=!0),(J===0||J>P.match.optionality)&&(J=P.match.optionality))})),J&&(I==0||V.length==1?J=0:B||(J=0)),J})(R,y);R=R>0?R-1:0;var w,D,T,L=h(g.call(this,R));x.greedy&&y.length>1&&y[y.length-1].match.def===""&&(k=1);for(var N=0;N<y.length-k;N++){var j=y[N];w=h(j,L.length);var G=Math.abs(w-L);(j.unMatchedAlternationStopped!==!0||y.filter((function(I){return I.unMatchedAlternationStopped!==!0})).length<=1)&&(D===void 0||w!==""&&G<D||T&&!x.greedy&&T.match.optionality&&T.match.optionality-A>0&&T.match.newBlockMarker==="master"&&(!j.match.optionality||j.match.optionality-A<1||!j.match.newBlockMarker)||T&&!x.greedy&&T.match.optionalQuantifier&&!j.match.optionalQuantifier)&&(D=G,T=j)}return T}function g(R,y){var x=this.maskset;return x.validPositions[R]?x.validPositions[R]:(y||v.call(this,R))[0]}function M(R,y,x){function k(A){for(var w,D=[],T=-1,L=0,N=A.length;L<N;L++)if(A.charAt(L)==="-")for(w=A.charCodeAt(L+1);++T<w;)D.push(String.fromCharCode(T));else T=A.charCodeAt(L),D.push(A.charAt(L));return D.join("")}return R.match.def===y.match.nativeDef||!(!(x.regex||R.match.fn instanceof RegExp&&y.match.fn instanceof RegExp)||R.match.static===!0||y.match.static===!0)&&(y.match.fn.source==="."||k(y.match.fn.source.replace(/[[\]/]/g,"")).indexOf(k(R.match.fn.source.replace(/[[\]/]/g,"")))!==-1)}function v(R,y,x){var k,A,w=this,D=this.dependencyLib,T=this.maskset,L=this.opts,N=this.el,j=T.maskToken,G=y?x:0,I=y?y.slice():[0],V=[],J=!1,B=y?y.join(""):"",P=!1;function Q(ae,W,H,ne){function ie(le,ve,ye){function ke(q,X){var de=X.matches.indexOf(q)===0;return de||X.matches.every((function(ue,Ee){return ue.isQuantifier===!0?de=ke(q,X.matches[Ee-1]):Object.prototype.hasOwnProperty.call(ue,"matches")&&(de=ke(q,ue)),!de})),de}function Pe(q,X,de){var ue,Ee;if((T.tests[q]||T.validPositions[q])&&(T.validPositions[q]?[T.validPositions[q]]:T.tests[q]).every((function(Re,Ie){if(Re.mloc[X])return ue=Re,!1;var ot=de!==void 0?de:Re.alternation,Qe=Re.locator[ot]!==void 0?Re.locator[ot].toString().indexOf(X):-1;return(Ee===void 0||Qe<Ee)&&Qe!==-1&&(ue=Re,Ee=Qe),!0})),ue){var Be=ue.locator[ue.alternation],xe=ue.mloc[X]||ue.mloc[Be]||ue.locator;return xe[xe.length-1].toString().indexOf(":")!==-1&&xe.pop(),xe.slice((de!==void 0?de:ue.alternation)+1)}return de!==void 0?Pe(q,X):void 0}function Ne(q,X){return q.match.static===!0&&X.match.static!==!0&&X.match.fn.test(q.match.def,T,R,!1,L,!1)}function Le(q,X){var de=q.alternation,ue=X===void 0||de<=X.alternation&&q.locator[de].toString().indexOf(X.locator[de])===-1;if(!ue&&de>X.alternation){for(var Ee=0;Ee<de;Ee++)if(q.locator[Ee]!==X.locator[Ee]){de=Ee,ue=!0;break}}return!!ue&&(function(Be){q.mloc=q.mloc||{};var xe=q.locator[Be];if(xe!==void 0){if(typeof xe=="string"&&(xe=xe.split(",")[0]),q.mloc[xe]===void 0&&(q.mloc[xe]=q.locator.slice(),q.mloc[xe].push(":".concat(q.alternation))),X!==void 0){for(var Re in X.mloc)typeof Re=="string"&&(Re=parseInt(Re.split(",")[0])),q.mloc[Re+0]=X.mloc[Re];q.locator[Be]=Object.keys(q.mloc).join(",")}return q.alternation>Be&&(q.alternation=Be),!0}return q.alternation=void 0,!1})(de)}function U(q,X){if(q.locator.length!==X.locator.length)return!1;for(var de=q.alternation+1;de<q.locator.length;de++)if(q.locator[de]!==X.locator[de])return!1;return!0}if(G>R+L._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(T.mask));if(G===R&&le.matches===void 0){if(V.push({match:le,locator:ve.reverse(),cd:B,mloc:{}}),!le.optionality||ye!==void 0||!(L.definitions&&L.definitions[le.nativeDef]&&L.definitions[le.nativeDef].optional||d.default.prototype.definitions[le.nativeDef]&&d.default.prototype.definitions[le.nativeDef].optional))return!0;J=!0,G=R}else if(le.matches!==void 0){if(le.isGroup&&ye!==le)return(function(){if(le=ie(ae.matches[ae.matches.indexOf(le)+1],ve,ye))return!0})();if(le.isOptional)return(function(){var q=le,X=V.length;if(le=Q(le,W,ve,ye),V.length>0){if(V.forEach((function(de,ue){ue>=X&&(de.match.optionality=de.match.optionality?de.match.optionality+1:1)})),k=V[V.length-1].match,ye!==void 0||!ke(k,q))return le;J=!0,G=R}})();if(le.isAlternator)return(function(){function q(F){for(var E,O=F.matches[0].matches?F.matches[0].matches.length:1,_=0;_<F.matches.length&&O===(E=F.matches[_].matches?F.matches[_].matches.length:1);_++);return O!==E}w.hasAlternator=!0;var X,de=le,ue=[],Ee=V.slice(),Be=ve.length,xe=W.length>0?W.shift():-1;if(xe===-1||typeof xe=="string"){var Re,Ie=G,ot=W.slice(),Qe=[];if(typeof xe=="string")Qe=xe.split(",");else for(Re=0;Re<de.matches.length;Re++)Qe.push(Re.toString());if(T.excludes[R]!==void 0){for(var ge=Qe.slice(),We=0,Me=T.excludes[R].length;We<Me;We++){var Z=T.excludes[R][We].toString().split(":");ve.length==Z[1]&&Qe.splice(Qe.indexOf(Z[0]),1)}Qe.length===0&&(delete T.excludes[R],Qe=ge)}(L.keepStatic===!0||isFinite(parseInt(L.keepStatic))&&Ie>=L.keepStatic)&&(Qe=Qe.slice(0,1));for(var re=0;re<Qe.length;re++){Re=parseInt(Qe[re]),V=[],W=typeof xe=="string"&&Pe(G,Re,Be)||ot.slice();var He=de.matches[Re];if(He&&ie(He,[Re].concat(ve),ye))le=!0;else if(re===0&&(P=q(de)),He&&He.matches&&He.matches.length>de.matches[0].matches.length)break;X=V.slice(),G=Ie,V=[];for(var Ue=0;Ue<X.length;Ue++){var Oe=X[Ue],Se=!1;Oe.alternation=Oe.alternation||Be,Le(Oe);for(var bt=0;bt<ue.length;bt++){var nt=ue[bt];if(typeof xe!="string"||Oe.alternation!==void 0&&Qe.includes(Oe.locator[Oe.alternation].toString())){if(Oe.match.nativeDef===nt.match.nativeDef){Se=!0,Le(nt,Oe);break}if(M(Oe,nt,L)){Le(Oe,nt)&&(Se=!0,ue.splice(ue.indexOf(nt),0,Oe));break}if(M(nt,Oe,L)){Le(nt,Oe);break}if(Ne(Oe,nt)){U(Oe,nt)||N.inputmask.userOptions.keepStatic!==void 0?Le(Oe,nt)&&(Se=!0,ue.splice(ue.indexOf(nt),0,Oe)):L.keepStatic=!0;break}if(Ne(nt,Oe)){Le(nt,Oe);break}}}Se||ue.push(Oe)}}V=Ee.concat(ue),G=R,J=V.length>0&&P,le=ue.length>0&&!P,P&&J&&!le&&V.forEach((function(F,E){F.unMatchedAlternationStopped=!0})),W=ot.slice()}else le=ie(de.matches[xe]||ae.matches[xe],[xe].concat(ve),ye);if(le)return!0})();if(le.isQuantifier&&ye!==ae.matches[ae.matches.indexOf(le)-1])return(function(){for(var q=le,X=!1,de=W.length>0?W.shift():0;de<(isNaN(q.quantifier.max)?de+1:q.quantifier.max)&&G<=R;de++){var ue=ae.matches[ae.matches.indexOf(q)-1];if(le=ie(ue,[de].concat(ve),ue)){if(V.forEach((function(Ee,Be){(k=z(ue,Ee.match)?Ee.match:V[V.length-1].match).optionalQuantifier=de>=q.quantifier.min,k.jit=(de+1)*(ue.matches.indexOf(k)+1)>q.quantifier.jit,k.optionalQuantifier&&ke(k,ue)&&(J=!0,G=R,L.greedy&&T.validPositions[R-1]==null&&de>q.quantifier.min&&["*","+"].indexOf(q.quantifier.max)!=-1&&(V.pop(),B=void 0),X=!0,le=!1),!X&&k.jit&&(T.jitOffset[R]=ue.matches.length-ue.matches.indexOf(k))})),X)break;return!0}}})();if(le=Q(le,W,ve,ye))return!0}else G++}for(var te=W.length>0?W.shift():0;te<ae.matches.length;te++)if(ae.matches[te].isQuantifier!==!0){var fe=ie(ae.matches[te],[te].concat(H),ne);if(fe&&G===R)return fe;if(G>R)break}}function z(ae,W){var H=ae.matches.indexOf(W)!=-1;return H||ae.matches.forEach((function(ne,ie){ne.matches===void 0||H||(H=z(ne,W))})),H}if(R>-1){if(y===void 0){for(var $,ee=R-1;($=T.validPositions[ee]||T.tests[ee])===void 0&&ee>-1;)ee--;$!==void 0&&ee>-1&&(I=(function(ae,W){var H,ne=[];return Array.isArray(W)||(W=[W]),W.length>0&&(W[0].alternation===void 0||L.keepStatic===!0?(ne=b.call(w,ae,W.slice()).locator.slice()).length===0&&(ne=W[0].locator.slice()):W.forEach((function(ie){ie.def!==""&&(ne.length===0?(H=ie.alternation,ne=ie.locator.slice()):ie.locator[H]&&ne[H].toString().indexOf(ie.locator[H])===-1&&(ne[H]+=","+ie.locator[H]))}))),ne})(ee,$),B=I.join(""),G=ee)}if(T.tests[R]&&T.tests[R][0].cd===B)return T.tests[R];for(var K=I.shift();K<j.length&&!(Q(j[K],I,[K])&&G===R||G>R);K++);}return(V.length===0||J)&&V.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:P&&V.filter((function(ae){return ae.unMatchedAlternationStopped!==!0})).length===0?[0]:[],mloc:{},cd:B}),y!==void 0&&T.tests[R]?A=D.extend(!0,[],V):(T.tests[R]=D.extend(!0,[],V),A=T.tests[R]),V.forEach((function(ae){ae.match.optionality=ae.match.defOptionality||!1})),A}},7215:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.alternate=h,l.checkAlternationMatch=function(y,x,k){for(var A,w=this.opts.greedy?x:x.slice(0,1),D=!1,T=k!==void 0?k.split(","):[],L=0;L<T.length;L++)(A=y.indexOf(T[L]))!==-1&&y.splice(A,1);for(var N=0;N<y.length;N++)if(w.includes(y[N])){D=!0;break}return D},l.handleRemove=function(y,x,k,A,w){var D=this,T=this.maskset,L=this.opts;if((L.numericInput||D.isRTL)&&(x===d.keys.Backspace?x=d.keys.Delete:x===d.keys.Delete&&(x=d.keys.Backspace),D.isRTL)){var N=k.end;k.end=k.begin,k.begin=N}var j,G=f.getLastValidPosition.call(D,void 0,!0);k.end>=f.getBuffer.call(D).length&&G>=k.end&&(k.end=G+1),x===d.keys.Backspace?k.end-k.begin<1&&(k.begin=f.seekPrevious.call(D,k.begin)):x===d.keys.Delete&&k.begin===k.end&&(k.end=f.isMask.call(D,k.end,!0,!0)?k.end+1:f.seekNext.call(D,k.end)+1),(j=R.call(D,k))!==!1&&((A!==!0&&L.keepStatic!==!1||L.regex!==null&&p.getTest.call(D,k.begin).match.def.indexOf("|")!==-1)&&h.call(D,!0),A!==!0&&(T.p=x===d.keys.Delete?k.begin+j:k.begin,T.p=f.determineNewCaretPosition.call(D,{begin:T.p,end:T.p},!1,L.insertMode===!1&&x===d.keys.Backspace?"none":void 0).begin))},l.isComplete=m,l.isSelection=C,l.isValid=b,l.refreshFromBuffer=M,l.revalidateMask=R;var c=u(6030),d=u(2839),f=u(8711),p=u(4713);function h(y,x,k,A,w,D){var T=this,L=this.dependencyLib,N=this.opts,j=T.maskset;if(!T.hasAlternator)return!1;var G,I,V,J,B,P,Q,z,$,ee,K,ae=L.extend(!0,[],j.validPositions),W=L.extend(!0,{},j.tests),H=!1,ne=!1,ie=w!==void 0?w:f.getLastValidPosition.call(T);if(D&&(ee=D.begin,K=D.end,D.begin>D.end&&(ee=D.end,K=D.begin)),ie===-1&&w===void 0)G=0,I=(J=p.getTest.call(T,G)).alternation;else for(;ie>=0;ie--)if((V=j.validPositions[ie])&&V.alternation!==void 0){if(ie<=(y||0)&&J&&J.locator[V.alternation]!==V.locator[V.alternation])break;G=ie,I=j.validPositions[G].alternation,J=V}if(I!==void 0){Q=parseInt(G),j.excludes[Q]=j.excludes[Q]||[],y!==!0&&j.excludes[Q].push((0,p.getDecisionTaker)(J)+":"+J.alternation);var te=[],fe=-1;for(B=Q;Q<f.getLastValidPosition.call(T,void 0,!0)+1;B++)fe===-1&&y<=B&&x!==void 0&&(te.push(x),fe=te.length-1),(P=j.validPositions[Q])&&P.generatedInput!==!0&&(D===void 0||B<ee||B>=K)&&te.push(P.input),j.validPositions.splice(Q,1);for(fe===-1&&x!==void 0&&(te.push(x),fe=te.length-1);j.excludes[Q]!==void 0&&j.excludes[Q].length<10;){for(j.tests={},f.resetMaskSet.call(T,!0),H=!0,B=0;B<te.length&&(z=H.caret||N.insertMode==0&&z!=null?f.seekNext.call(T,z):f.getLastValidPosition.call(T,void 0,!0)+1,$=te[B],H=b.call(T,z,$,!1,A,!0));B++)B===fe&&(ne=H),y==1&&H&&(ne={caretPos:B});if(H)break;if(f.resetMaskSet.call(T),J=p.getTest.call(T,Q),j.validPositions=L.extend(!0,[],ae),j.tests=L.extend(!0,{},W),!j.excludes[Q]){ne=h.call(T,y,x,k,A,Q-1,D);break}if(J.alternation!=null){var le=(0,p.getDecisionTaker)(J);if(j.excludes[Q].indexOf(le+":"+J.alternation)!==-1){ne=h.call(T,y,x,k,A,Q-1,D);break}for(j.excludes[Q].push(le+":"+J.alternation),B=Q;B<f.getLastValidPosition.call(T,void 0,!0)+1;B++)j.validPositions.splice(Q)}else delete j.excludes[Q]}}return ne&&N.keepStatic===!1||delete j.excludes[Q],ne}function S(y,x,k){var A=this.opts,w=this.maskset;switch(A.casing||x.casing){case"upper":y=y.toUpperCase();break;case"lower":y=y.toLowerCase();break;case"title":var D=w.validPositions[k-1];y=k===0||D&&D.input===String.fromCharCode(d.keyCode.Space)?y.toUpperCase():y.toLowerCase();break;default:if(typeof A.casing=="function"){var T=Array.prototype.slice.call(arguments);T.push(w.validPositions),y=A.casing.apply(this,T)}}return y}function m(y){var x=this,k=this.opts,A=this.maskset;if(typeof k.isComplete=="function")return k.isComplete(y,k);if(k.repeat!=="*"){var w=!1,D=f.determineLastRequiredPosition.call(x,!0),T=D.l;if(D.def===void 0||D.def.newBlockMarker||D.def.optionality||D.def.optionalQuantifier){w=!0;for(var L=0;L<=T;L++){var N=p.getTestTemplate.call(x,L).match;if(N.static!==!0&&A.validPositions[L]===void 0&&(N.optionality===!1||N.optionality===void 0||N.optionality&&N.newBlockMarker==0)&&(N.optionalQuantifier===!1||N.optionalQuantifier===void 0)||N.static===!0&&N.def!=""&&y[L]!==p.getPlaceholder.call(x,L,N)){w=!1;break}}}return w}}function C(y){var x=this.opts.insertMode?0:1;return this.isRTL?y.begin-y.end>x:y.end-y.begin>x}function b(y,x,k,A,w,D,T){var L=this,N=this.dependencyLib,j=this.opts,G=L.maskset;k=k===!0;var I=y;function V(H){if(H!==void 0){if(H.remove!==void 0&&(Array.isArray(H.remove)||(H.remove=[H.remove]),H.remove.sort((function(ie,te){return L.isRTL?ie.pos-te.pos:te.pos-ie.pos})).forEach((function(ie){R.call(L,{begin:ie,end:ie+1})})),H.remove=void 0),H.insert!==void 0&&(Array.isArray(H.insert)||(H.insert=[H.insert]),H.insert.sort((function(ie,te){return L.isRTL?te.pos-ie.pos:ie.pos-te.pos})).forEach((function(ie){ie.c!==""&&b.call(L,ie.pos,ie.c,ie.strict===void 0||ie.strict,ie.fromIsValid!==void 0?ie.fromIsValid:A)})),H.insert=void 0),H.refreshFromBuffer&&H.buffer){var ne=H.refreshFromBuffer;M.call(L,ne===!0?ne:ne.start,ne.end,H.buffer),H.refreshFromBuffer=void 0}H.rewritePosition!==void 0&&(I=H.rewritePosition,H=!0)}return H}function J(H,ne,ie){var te=!1;return p.getTests.call(L,H).every((function(fe,le){var ve=fe.match;if(f.getBuffer.call(L,!0),(te=(!ve.jit||G.validPositions[f.seekPrevious.call(L,H)]!==void 0)&&(ve.fn!=null?ve.fn.test(ne,G,H,ie,j,C.call(L,y)):(ne===ve.def||ne===j.skipOptionalPartCharacter)&&ve.def!==""&&{c:p.getPlaceholder.call(L,H,ve,!0)||ve.def,pos:H}))!==!1){var ye=te.c!==void 0?te.c:ne,ke=H;return ye=ye===j.skipOptionalPartCharacter&&ve.static===!0?p.getPlaceholder.call(L,H,ve,!0)||ve.def:ye,(te=V(te))!==!0&&te.pos!==void 0&&te.pos!==H&&(ke=te.pos),te!==!0&&te.pos===void 0&&te.c===void 0||R.call(L,y,N.extend({},fe,{input:S.call(L,ye,ve,ke)}),A,ke)===!1&&(te=!1),!1}return!0})),te}y.begin!==void 0&&(I=L.isRTL?y.end:y.begin);var B=!0,P=N.extend(!0,[],G.validPositions);if(j.keepStatic===!1&&G.excludes[I]!==void 0&&w!==!0&&A!==!0)for(var Q=I;Q<(L.isRTL?y.begin:y.end);Q++)G.excludes[Q]!==void 0&&(G.excludes[Q]=void 0,delete G.tests[Q]);if(typeof j.preValidation=="function"&&A!==!0&&D!==!0&&(B=V(B=j.preValidation.call(L,f.getBuffer.call(L),I,x,C.call(L,y),j,G,y,k||w))),B===!0){if(B=J(I,x,k),(!k||A===!0)&&B===!1&&D!==!0){var z=G.validPositions[I];if(!z||z.match.static!==!0||z.match.def!==x&&x!==j.skipOptionalPartCharacter){if(j.insertMode||G.validPositions[f.seekNext.call(L,I)]===void 0||y.end>I){var $=!1;if(G.jitOffset[I]&&G.validPositions[f.seekNext.call(L,I)]===void 0&&(B=b.call(L,I+G.jitOffset[I],x,!0,!0))!==!1&&(w!==!0&&(B.caret=I),$=!0),y.end>I&&(G.validPositions[I]=void 0),!$&&!f.isMask.call(L,I,j.keepStatic&&I===0)){for(var ee=I+1,K=f.seekNext.call(L,I,!1,I!==0);ee<=K;ee++)if((B=J(ee,x,k))!==!1){B=v.call(L,I,B.pos!==void 0?B.pos:ee)||B,I=ee;break}}}}else B={caret:f.seekNext.call(L,I)}}L.hasAlternator&&w!==!0&&!k&&(w=!0,B===!1&&j.keepStatic&&(m.call(L,f.getBuffer.call(L))||I===0)?B=h.call(L,I,x,k,A,void 0,y):(C.call(L,y)&&G.tests[I]&&G.tests[I].length>1&&j.keepStatic||B==1&&j.numericInput!==!0&&G.tests[I]&&G.tests[I].length>1&&f.getLastValidPosition.call(L,void 0,!0)>I)&&(B=h.call(L,!0))),B===!0&&(B={pos:I})}if(typeof j.postValidation=="function"&&A!==!0&&D!==!0){var ae=j.postValidation.call(L,f.getBuffer.call(L,!0),y.begin!==void 0?L.isRTL?y.end:y.begin:y,x,B,j,G,k,T);ae!==void 0&&(B=ae===!0?B:ae)}B&&B.pos===void 0&&(B.pos=I),B===!1||D===!0?(f.resetMaskSet.call(L,!0),G.validPositions=N.extend(!0,[],P)):v.call(L,void 0,I,!0);var W=V(B);return L.maxLength!==void 0&&f.getBuffer.call(L).length>L.maxLength&&!A&&(f.resetMaskSet.call(L,!0),G.validPositions=N.extend(!0,[],P),W=!1),W}function g(y,x,k){for(var A=this.maskset,w=!1,D=p.getTests.call(this,y),T=0;T<D.length;T++){if(D[T].match&&(D[T].match.nativeDef===x.match[k.shiftPositions?"def":"nativeDef"]&&(!k.shiftPositions||!x.match.static)||D[T].match.nativeDef===x.match.nativeDef||k.regex&&!D[T].match.static&&D[T].match.fn.test(x.input,A,y,!1,k))){w=!0;break}if(D[T].match&&D[T].match.def===x.match.nativeDef){w=void 0;break}}return w===!1&&A.jitOffset[y]!==void 0&&(w=g.call(this,y+A.jitOffset[y],x,k)),w}function M(y,x,k){var A,w,D=this,T=this.maskset,L=this.opts,N=this.dependencyLib,j=L.skipOptionalPartCharacter,G=D.isRTL?k.slice().reverse():k;if(L.skipOptionalPartCharacter="",y===!0)f.resetMaskSet.call(D,!1),y=0,x=k.length,w=f.determineNewCaretPosition.call(D,{begin:0,end:0},!1).begin;else{for(A=y;A<x;A++)T.validPositions.splice(y,0);w=y}var I=new N.Event("keypress");for(A=y;A<x;A++){I.key=G[A].toString(),D.ignorable=!1;var V=c.EventHandlers.keypressEvent.call(D,I,!0,!1,!1,w);V!==!1&&V!==void 0&&(w=V.forwardPosition)}L.skipOptionalPartCharacter=j}function v(y,x,k){var A=this,w=this.maskset,D=this.dependencyLib;if(y===void 0)for(y=x-1;y>0&&!w.validPositions[y];y--);for(var T=y;T<x;T++)if(w.validPositions[T]===void 0&&!f.isMask.call(A,T,!1)&&(T==0?p.getTest.call(A,T):w.validPositions[T-1])){var L=p.getTests.call(A,T).slice();L[L.length-1].match.def===""&&L.pop();var N,j=p.determineTestTemplate.call(A,T,L);if(j&&(j.match.jit!==!0||j.match.newBlockMarker==="master"&&(N=w.validPositions[T+1])&&N.match.optionalQuantifier===!0)&&((j=D.extend({},j,{input:p.getPlaceholder.call(A,T,j.match,!0)||j.match.def})).generatedInput=!0,R.call(A,T,j,!0),k!==!0)){var G=w.validPositions[x].input;return w.validPositions[x]=void 0,b.call(A,x,G,!0,!0)}}}function R(y,x,k,A){var w=this,D=this.maskset,T=this.opts,L=this.dependencyLib;function N(W,H,ne){var ie=H[W];if(ie!==void 0&&ie.match.static===!0&&ie.match.optionality!==!0&&(H[0]===void 0||H[0].alternation===void 0)){var te=ne.begin<=W-1?H[W-1]&&H[W-1].match.static===!0&&H[W-1]:H[W-1],fe=ne.end>W+1?H[W+1]&&H[W+1].match.static===!0&&H[W+1]:H[W+1];return te&&fe}return!1}var j=0,G=y.begin!==void 0?y.begin:y,I=y.end!==void 0?y.end:y,V=!0;if(y.begin>y.end&&(G=y.end,I=y.begin),A=A!==void 0?A:G,k===void 0&&(G!==I||T.insertMode&&D.validPositions[A]!==void 0||x===void 0||x.match.optionalQuantifier||x.match.optionality)){var J,B=L.extend(!0,[],D.validPositions),P=f.getLastValidPosition.call(w,void 0,!0);D.p=G;var Q=C.call(w,y)?G:A;for(J=P;J>=Q;J--)D.validPositions.splice(J,1),x===void 0&&delete D.tests[J+1];var z,$,ee=A,K=ee;for(x&&(D.validPositions[A]=L.extend(!0,{},x),K++,ee++),B[I]==null&&D.jitOffset[I]&&(I+=D.jitOffset[I]+1),J=x?I:I-1;J<=P;J++){if((z=B[J])!==void 0&&z.generatedInput!==!0&&(J>=I||J>=G&&N(J,B,{begin:G,end:I}))){for(;p.getTest.call(w,K).match.def!=="";){if(($=g.call(w,K,z,T))!==!1||z.match.def==="+"){z.match.def==="+"&&f.getBuffer.call(w,!0);var ae=b.call(w,K,z.input,z.match.def!=="+",!0);if(V=ae!==!1,ee=(ae.pos||K)+1,!V&&$)break}else V=!1;if(V){x===void 0&&z.match.static&&J===y.begin&&j++;break}if(!V&&f.getBuffer.call(w),K>D.maskLength)break;K++}p.getTest.call(w,K).match.def==""&&(V=!1),K=ee}if(!V)break}if(!V)return D.validPositions=L.extend(!0,[],B),f.resetMaskSet.call(w,!0),!1}else x&&p.getTest.call(w,A).match.cd===x.match.cd&&(D.validPositions[A]=L.extend(!0,{},x));return f.resetMaskSet.call(w,!0),j}}},i={};function r(a){var l=i[a];if(l!==void 0)return l.exports;var u=i[a]={exports:{}};return t[a](u,u.exports,r),u.exports}var s={};return(function(){var a=s;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(7149),r(3194),r(9302),r(4013),r(3851),r(219),r(207),r(5296);var l,u=(l=r(2394))&&l.__esModule?l:{default:l};a.default=u.default})(),s})()}))})(Dn)),Dn.exports}var wh=yh();const Ch=Ua(wh);//! moment.js
|
|
10
|
+
*/var vh=Dn.exports,Qo;function yh(){return Qo||(Qo=1,(function(n,e){(function(t,i){n.exports=i()})(typeof self<"u"?self:vh,(function(){return(function(){var t={3976:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(u,c){return typeof c.onBeforeMask=="function"?c.onBeforeMask.call(this,u,c):u},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d){if(d===void 0)return u.__data?u.__data[c]:null;u.__data=u.__data||{},u.__data[c]=d}},3776:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.Event=void 0,l.off=function(g,M){var v,R;return A(this[0])&&g&&(v=this[0].eventRegistry,R=this[0],g.split(" ").forEach((function(y){var x=p(y.split("."),2);(function(k,C){var w,D,T=[];if(k.length>0)if(M===void 0)for(w=0,D=v[k][C].length;w<D;w++)T.push({ev:k,namespace:C&&C.length>0?C:"global",handler:v[k][C][w]});else T.push({ev:k,namespace:C&&C.length>0?C:"global",handler:M});else if(C.length>0){for(var L in v)for(var N in v[L])if(N===C)if(M===void 0)for(w=0,D=v[L][N].length;w<D;w++)T.push({ev:L,namespace:N,handler:v[L][N][w]});else T.push({ev:L,namespace:N,handler:M})}return T})(x[0],x[1]).forEach((function(k){var C=k.ev,w=k.handler;(function(D,T,L){if(D in v==1)if(R.removeEventListener?R.removeEventListener(D,L,!1):R.detachEvent&&R.detachEvent("on".concat(D),L),T==="global")for(var N in v[D])v[D][N].splice(v[D][N].indexOf(L),1);else v[D][T].splice(v[D][T].indexOf(L),1)})(C,k.namespace,w)}))}))),this},l.on=function(g,M){if(A(this[0])){var v=this[0].eventRegistry,R=this[0];g.split(" ").forEach((function(y){var x=p(y.split("."),2),k=x[0],C=x[1];(function(w,D){R.addEventListener?R.addEventListener(w,M,!1):R.attachEvent&&R.attachEvent("on".concat(w),M),v[w]=v[w]||{},v[w][D]=v[w][D]||[],v[w][D].push(M)})(k,C===void 0?"global":C)}))}return this},l.trigger=function(g){var M=arguments;if(A(this[0]))for(var v=this[0].eventRegistry,R=this[0],y=typeof g=="string"?g.split(" "):[g.type],x=0;x<y.length;x++){var k=y[x].split("."),C=k[0],w=k[1]||"global";if(m!==void 0&&w==="global"){var D,T={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(m.createEvent){try{C==="input"?(T.inputType="insertText",D=new InputEvent(C,T)):D=new CustomEvent(C,T)}catch{(D=m.createEvent("CustomEvent")).initCustomEvent(C,T.bubbles,T.cancelable,T.detail)}g.type&&(0,d.default)(D,g),R.dispatchEvent(D)}else(D=m.createEventObject()).eventType=C,D.detail=arguments[1],g.type&&(0,d.default)(D,g),R.fireEvent("on"+D.eventType,D)}else if(v[C]!==void 0){arguments[0]=arguments[0].type?arguments[0]:f.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var L=v[C];(w==="global"?Object.values(L).flat():L[w]).forEach((function(N){return N.apply(R,M)}))}}return this};var c=S(u(9380)),d=S(u(600)),f=S(u(4963));function p(g,M){return(function(v){if(Array.isArray(v))return v})(g)||(function(v,R){var y=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(y!=null){var x,k,C,w,D=[],T=!0,L=!1;try{if(C=(y=y.call(v)).next,R!==0)for(;!(T=(x=C.call(y)).done)&&(D.push(x.value),D.length!==R);T=!0);}catch(N){L=!0,k=N}finally{try{if(!T&&y.return!=null&&(w=y.return(),Object(w)!==w))return}finally{if(L)throw k}}return D}})(g,M)||(function(v,R){if(v){if(typeof v=="string")return h(v,R);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return h(v,R)}})(g,M)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function h(g,M){(M==null||M>g.length)&&(M=g.length);for(var v=0,R=new Array(M);v<M;v++)R[v]=g[v];return R}function S(g){return g&&g.__esModule?g:{default:g}}var m=c.default.document;function A(g){return g instanceof Element}var b=l.Event=void 0;typeof c.default.CustomEvent=="function"?l.Event=b=c.default.CustomEvent:c.default.Event&&m&&m.createEvent?(l.Event=b=function(g,M){M=M||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var v=m.createEvent("CustomEvent");return v.initCustomEvent(g,M.bubbles,M.cancelable,M.detail),v},b.prototype=c.default.Event.prototype):typeof Event<"u"&&(l.Event=b=Event)},600:function(a,l){function u(c){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},u(c)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=function c(){var d,f,p,h,S,m,A=arguments[0]||{},b=1,g=arguments.length,M=!1;for(typeof A=="boolean"&&(M=A,A=arguments[b]||{},b++),u(A)!=="object"&&typeof A!="function"&&(A={});b<g;b++)if((d=arguments[b])!=null)for(f in d)p=A[f],A!==(h=d[f])&&(M&&h&&(Object.prototype.toString.call(h)==="[object Object]"||(S=Array.isArray(h)))?(S?(S=!1,m=p&&Array.isArray(p)?p:[]):m=p&&Object.prototype.toString.call(p)==="[object Object]"?p:{},A[f]=c(M,m,h)):h!==void 0&&(A[f]=h));return A}},4963:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=h(u(9380)),d=h(u(253)),f=u(3776),p=h(u(600));function h(A){return A&&A.__esModule?A:{default:A}}var S=c.default.document;function m(A){return A instanceof m?A:this instanceof m?void(A!=null&&A!==c.default&&(this[0]=A.nodeName?A:A[0]!==void 0&&A[0].nodeName?A[0]:S.querySelector(A),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new m(A)}m.prototype={on:f.on,off:f.off,trigger:f.trigger},m.extend=p.default,m.data=d.default,m.Event=f.Event,l.default=m},9845:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mobile=l.iphone=l.ie=void 0;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=d.default.navigator&&d.default.navigator.userAgent||"";l.ie=f.indexOf("MSIE ")>0||f.indexOf("Trident/")>0,l.mobile=d.default.navigator&&d.default.navigator.userAgentData&&d.default.navigator.userAgentData.mobile||d.default.navigator&&d.default.navigator.maxTouchPoints||"ontouchstart"in d.default,l.iphone=/iphone/i.test(f)},7184:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){return c.replace(u,"\\$1")};var u=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(a,l,u){function c(C){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},c(C)}Object.defineProperty(l,"__esModule",{value:!0}),l.EventHandlers=void 0;var d,f=u(9845),p=(d=u(9380))&&d.__esModule?d:{default:d},h=u(7760),S=u(2839),m=u(8711),A=u(7215),b=u(4713);function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return w};var C,w={},D=Object.prototype,T=D.hasOwnProperty,L=Object.defineProperty||function(U,q,X){U[q]=X.value},N=typeof Symbol=="function"?Symbol:{},j=N.iterator||"@@iterator",G=N.asyncIterator||"@@asyncIterator",I=N.toStringTag||"@@toStringTag";function V(U,q,X){return Object.defineProperty(U,q,{value:X,enumerable:!0,configurable:!0,writable:!0}),U[q]}try{V({},"")}catch{V=function(q,X,de){return q[X]=de}}function J(U,q,X,de){var ue=q&&q.prototype instanceof K?q:K,Ee=Object.create(ue.prototype),Be=new Ne(de||[]);return L(Ee,"_invoke",{value:ve(U,X,Be)}),Ee}function B(U,q,X){try{return{type:"normal",arg:U.call(q,X)}}catch(de){return{type:"throw",arg:de}}}w.wrap=J;var P="suspendedStart",Q="suspendedYield",z="executing",$="completed",ee={};function K(){}function ae(){}function W(){}var H={};V(H,j,(function(){return this}));var ne=Object.getPrototypeOf,ie=ne&&ne(ne(Le([])));ie&&ie!==D&&T.call(ie,j)&&(H=ie);var te=W.prototype=K.prototype=Object.create(H);function fe(U){["next","throw","return"].forEach((function(q){V(U,q,(function(X){return this._invoke(q,X)}))}))}function le(U,q){function X(ue,Ee,Be,xe){var Re=B(U[ue],U,Ee);if(Re.type!=="throw"){var Ie=Re.arg,ot=Ie.value;return ot&&c(ot)=="object"&&T.call(ot,"__await")?q.resolve(ot.__await).then((function(Qe){X("next",Qe,Be,xe)}),(function(Qe){X("throw",Qe,Be,xe)})):q.resolve(ot).then((function(Qe){Ie.value=Qe,Be(Ie)}),(function(Qe){return X("throw",Qe,Be,xe)}))}xe(Re.arg)}var de;L(this,"_invoke",{value:function(ue,Ee){function Be(){return new q((function(xe,Re){X(ue,Ee,xe,Re)}))}return de=de?de.then(Be,Be):Be()}})}function ve(U,q,X){var de=P;return function(ue,Ee){if(de===z)throw new Error("Generator is already running");if(de===$){if(ue==="throw")throw Ee;return{value:C,done:!0}}for(X.method=ue,X.arg=Ee;;){var Be=X.delegate;if(Be){var xe=ye(Be,X);if(xe){if(xe===ee)continue;return xe}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(de===P)throw de=$,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);de=z;var Re=B(U,q,X);if(Re.type==="normal"){if(de=X.done?$:Q,Re.arg===ee)continue;return{value:Re.arg,done:X.done}}Re.type==="throw"&&(de=$,X.method="throw",X.arg=Re.arg)}}}function ye(U,q){var X=q.method,de=U.iterator[X];if(de===C)return q.delegate=null,X==="throw"&&U.iterator.return&&(q.method="return",q.arg=C,ye(U,q),q.method==="throw")||X!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+X+"' method")),ee;var ue=B(de,U.iterator,q.arg);if(ue.type==="throw")return q.method="throw",q.arg=ue.arg,q.delegate=null,ee;var Ee=ue.arg;return Ee?Ee.done?(q[U.resultName]=Ee.value,q.next=U.nextLoc,q.method!=="return"&&(q.method="next",q.arg=C),q.delegate=null,ee):Ee:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,ee)}function ke(U){var q={tryLoc:U[0]};1 in U&&(q.catchLoc=U[1]),2 in U&&(q.finallyLoc=U[2],q.afterLoc=U[3]),this.tryEntries.push(q)}function Pe(U){var q=U.completion||{};q.type="normal",delete q.arg,U.completion=q}function Ne(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(ke,this),this.reset(!0)}function Le(U){if(U||U===""){var q=U[j];if(q)return q.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var X=-1,de=function ue(){for(;++X<U.length;)if(T.call(U,X))return ue.value=U[X],ue.done=!1,ue;return ue.value=C,ue.done=!0,ue};return de.next=de}}throw new TypeError(c(U)+" is not iterable")}return ae.prototype=W,L(te,"constructor",{value:W,configurable:!0}),L(W,"constructor",{value:ae,configurable:!0}),ae.displayName=V(W,I,"GeneratorFunction"),w.isGeneratorFunction=function(U){var q=typeof U=="function"&&U.constructor;return!!q&&(q===ae||(q.displayName||q.name)==="GeneratorFunction")},w.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,W):(U.__proto__=W,V(U,I,"GeneratorFunction")),U.prototype=Object.create(te),U},w.awrap=function(U){return{__await:U}},fe(le.prototype),V(le.prototype,G,(function(){return this})),w.AsyncIterator=le,w.async=function(U,q,X,de,ue){ue===void 0&&(ue=Promise);var Ee=new le(J(U,q,X,de),ue);return w.isGeneratorFunction(q)?Ee:Ee.next().then((function(Be){return Be.done?Be.value:Ee.next()}))},fe(te),V(te,I,"Generator"),V(te,j,(function(){return this})),V(te,"toString",(function(){return"[object Generator]"})),w.keys=function(U){var q=Object(U),X=[];for(var de in q)X.push(de);return X.reverse(),function ue(){for(;X.length;){var Ee=X.pop();if(Ee in q)return ue.value=Ee,ue.done=!1,ue}return ue.done=!0,ue}},w.values=Le,Ne.prototype={constructor:Ne,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=C,this.done=!1,this.delegate=null,this.method="next",this.arg=C,this.tryEntries.forEach(Pe),!U)for(var q in this)q.charAt(0)==="t"&&T.call(this,q)&&!isNaN(+q.slice(1))&&(this[q]=C)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var q=this;function X(Re,Ie){return Ee.type="throw",Ee.arg=U,q.next=Re,Ie&&(q.method="next",q.arg=C),!!Ie}for(var de=this.tryEntries.length-1;de>=0;--de){var ue=this.tryEntries[de],Ee=ue.completion;if(ue.tryLoc==="root")return X("end");if(ue.tryLoc<=this.prev){var Be=T.call(ue,"catchLoc"),xe=T.call(ue,"finallyLoc");if(Be&&xe){if(this.prev<ue.catchLoc)return X(ue.catchLoc,!0);if(this.prev<ue.finallyLoc)return X(ue.finallyLoc)}else if(Be){if(this.prev<ue.catchLoc)return X(ue.catchLoc,!0)}else{if(!xe)throw new Error("try statement without catch or finally");if(this.prev<ue.finallyLoc)return X(ue.finallyLoc)}}}},abrupt:function(U,q){for(var X=this.tryEntries.length-1;X>=0;--X){var de=this.tryEntries[X];if(de.tryLoc<=this.prev&&T.call(de,"finallyLoc")&&this.prev<de.finallyLoc){var ue=de;break}}ue&&(U==="break"||U==="continue")&&ue.tryLoc<=q&&q<=ue.finallyLoc&&(ue=null);var Ee=ue?ue.completion:{};return Ee.type=U,Ee.arg=q,ue?(this.method="next",this.next=ue.finallyLoc,ee):this.complete(Ee)},complete:function(U,q){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&q&&(this.next=q),ee},finish:function(U){for(var q=this.tryEntries.length-1;q>=0;--q){var X=this.tryEntries[q];if(X.finallyLoc===U)return this.complete(X.completion,X.afterLoc),Pe(X),ee}},catch:function(U){for(var q=this.tryEntries.length-1;q>=0;--q){var X=this.tryEntries[q];if(X.tryLoc===U){var de=X.completion;if(de.type==="throw"){var ue=de.arg;Pe(X)}return ue}}throw new Error("illegal catch attempt")},delegateYield:function(U,q,X){return this.delegate={iterator:Le(U),resultName:q,nextLoc:X},this.method==="next"&&(this.arg=C),ee}},w}function M(C,w){var D=typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(!D){if(Array.isArray(C)||(D=(function(I,V){if(I){if(typeof I=="string")return v(I,V);var J=Object.prototype.toString.call(I).slice(8,-1);if(J==="Object"&&I.constructor&&(J=I.constructor.name),J==="Map"||J==="Set")return Array.from(I);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return v(I,V)}})(C))||w){D&&(C=D);var T=0,L=function(){};return{s:L,n:function(){return T>=C.length?{done:!0}:{done:!1,value:C[T++]}},e:function(I){throw I},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N,j=!0,G=!1;return{s:function(){D=D.call(C)},n:function(){var I=D.next();return j=I.done,I},e:function(I){G=!0,N=I},f:function(){try{j||D.return==null||D.return()}finally{if(G)throw N}}}}function v(C,w){(w==null||w>C.length)&&(w=C.length);for(var D=0,T=new Array(w);D<w;D++)T[D]=C[D];return T}function R(C,w,D,T,L,N,j){try{var G=C[N](j),I=G.value}catch(V){return void D(V)}G.done?w(I):Promise.resolve(I).then(T,L)}var y,x,k=l.EventHandlers={keyEvent:function(C,w,D,T,L){var N=this.inputmask,j=N.opts,G=N.dependencyLib,I=N.maskset,V=this,J=G(V),B=C.key,P=m.caret.call(N,V),Q=j.onKeyDown.call(this,C,m.getBuffer.call(N),P,j);if(Q!==void 0)return Q;if(B===S.keys.Backspace||B===S.keys.Delete||f.iphone&&B===S.keys.BACKSPACE_SAFARI||C.ctrlKey&&B===S.keys.x&&!("oncut"in V))C.preventDefault(),A.handleRemove.call(N,V,B,P),(0,h.writeBuffer)(V,m.getBuffer.call(N,!0),I.p,C,V.inputmask._valueGet()!==m.getBuffer.call(N).join(""));else if(B===S.keys.End||B===S.keys.PageDown){C.preventDefault();var z=m.seekNext.call(N,m.getLastValidPosition.call(N));m.caret.call(N,V,C.shiftKey?P.begin:z,z,!0)}else B===S.keys.Home&&!C.shiftKey||B===S.keys.PageUp?(C.preventDefault(),m.caret.call(N,V,0,C.shiftKey?P.begin:0,!0)):j.undoOnEscape&&B===S.keys.Escape&&C.altKey!==!0?((0,h.checkVal)(V,!0,!1,N.undoValue.split("")),J.trigger("click")):B!==S.keys.Insert||C.shiftKey||C.ctrlKey||N.userOptions.insertMode!==void 0?j.tabThrough===!0&&B===S.keys.Tab?C.shiftKey===!0?(P.end=m.seekPrevious.call(N,P.end,!0),b.getTest.call(N,P.end-1).match.static===!0&&P.end--,P.begin=m.seekPrevious.call(N,P.end,!0),P.begin>=0&&P.end>0&&(C.preventDefault(),m.caret.call(N,V,P.begin,P.end))):(P.begin=m.seekNext.call(N,P.begin,!0),P.end=m.seekNext.call(N,P.begin,!0),P.end<I.maskLength&&P.end--,P.begin<=I.maskLength&&(C.preventDefault(),m.caret.call(N,V,P.begin,P.end))):C.shiftKey||(j.insertModeVisual&&j.insertMode===!1?B===S.keys.ArrowRight?setTimeout((function(){var $=m.caret.call(N,V);m.caret.call(N,V,$.begin)}),0):B===S.keys.ArrowLeft&&setTimeout((function(){var $=m.translatePosition.call(N,V.inputmask.caretPos.begin);m.translatePosition.call(N,V.inputmask.caretPos.end),N.isRTL?m.caret.call(N,V,$+($===I.maskLength?0:1)):m.caret.call(N,V,$-($===0?0:1))}),0):N.keyEventHook===void 0||N.keyEventHook(C)):A.isSelection.call(N,P)?j.insertMode=!j.insertMode:(j.insertMode=!j.insertMode,m.caret.call(N,V,P.begin,P.begin));return N.isComposing=B==S.keys.Process||B==S.keys.Unidentified,N.ignorable=B.length>1&&!(V.tagName.toLowerCase()==="textarea"&&B==S.keys.Enter),k.keypressEvent.call(this,C,w,D,T,L)},keypressEvent:function(C,w,D,T,L){var N=this.inputmask||this,j=N.opts,G=N.dependencyLib,I=N.maskset,V=N.el,J=G(V),B=C.key;if(w===!0||C.ctrlKey&&C.altKey&&!N.ignorable||!(C.ctrlKey||C.metaKey||N.ignorable)){if(B){var P,Q=w?{begin:L,end:L}:m.caret.call(N,V);w||(B=j.substitutes[B]||B),I.writeOutBuffer=!0;var z=A.isValid.call(N,Q,B,T,void 0,void 0,void 0,w);if(z!==!1&&(m.resetMaskSet.call(N,!0),P=z.caret!==void 0?z.caret:m.seekNext.call(N,z.pos.begin?z.pos.begin:z.pos),I.p=P),P=j.numericInput&&z.caret===void 0?m.seekPrevious.call(N,P):P,D!==!1&&(setTimeout((function(){j.onKeyValidation.call(V,B,z)}),0),I.writeOutBuffer&&z!==!1)){var $=m.getBuffer.call(N);(0,h.writeBuffer)(V,$,P,C,w!==!0)}if(C.preventDefault(),w)return z!==!1&&(z.forwardPosition=P),z}}else B===S.keys.Enter&&N.undoValue!==N._valueGet(!0)&&(N.undoValue=N._valueGet(!0),setTimeout((function(){J.trigger("change")}),0))},pasteEvent:(y=g().mark((function C(w){var D,T,L,N,j,G;return g().wrap((function(I){for(;;)switch(I.prev=I.next){case 0:D=function(V,J,B,P,Q){var z=m.caret.call(V,J,void 0,void 0,!0),$=B.substr(0,z.begin),ee=B.substr(z.end,B.length);if($==(V.isRTL?m.getBufferTemplate.call(V).slice().reverse():m.getBufferTemplate.call(V)).slice(0,z.begin).join("")&&($=""),ee==(V.isRTL?m.getBufferTemplate.call(V).slice().reverse():m.getBufferTemplate.call(V)).slice(z.end).join("")&&(ee=""),P=$+P+ee,V.isRTL&&N.numericInput!==!0){P=P.split("");var K,ae=M(m.getBufferTemplate.call(V));try{for(ae.s();!(K=ae.n()).done;){var W=K.value;P[0]===W&&P.shift()}}catch(ne){ae.e(ne)}finally{ae.f()}P=P.reverse().join("")}var H=P;if(typeof Q=="function"){if((H=Q.call(V,H,N))===!1)return!1;H||(H=B)}(0,h.checkVal)(J,!0,!1,H.toString().split(""),w)},T=this,L=this.inputmask,N=L.opts,j=L._valueGet(!0),L.skipInputEvent=!0,w.clipboardData&&w.clipboardData.getData?G=w.clipboardData.getData("text/plain"):p.default.clipboardData&&p.default.clipboardData.getData&&(G=p.default.clipboardData.getData("Text")),D(L,T,j,G,N.onBeforePaste),w.preventDefault();case 7:case"end":return I.stop()}}),C,this)})),x=function(){var C=this,w=arguments;return new Promise((function(D,T){var L=y.apply(C,w);function N(G){R(L,D,T,N,j,"next",G)}function j(G){R(L,D,T,N,j,"throw",G)}N(void 0)}))},function(C){return x.apply(this,arguments)}),inputFallBackEvent:function(C){var w=this.inputmask,D=w.opts,T=w.dependencyLib,L,N=this,j=N.inputmask._valueGet(!0),G=(w.isRTL?m.getBuffer.call(w).slice().reverse():m.getBuffer.call(w)).join(""),I=m.caret.call(w,N,void 0,void 0,!0);if(G!==j){if(L=(function(J,B,P){for(var Q,z,$,ee=J.substr(0,P.begin).split(""),K=J.substr(P.begin).split(""),ae=B.substr(0,P.begin).split(""),W=B.substr(P.begin).split(""),H=ee.length>=ae.length?ee.length:ae.length,ne=K.length>=W.length?K.length:W.length,ie="",te=[],fe="~";ee.length<H;)ee.push(fe);for(;ae.length<H;)ae.push(fe);for(;K.length<ne;)K.unshift(fe);for(;W.length<ne;)W.unshift(fe);var le=ee.concat(K),ve=ae.concat(W);for(z=0,Q=le.length;z<Q;z++)switch($=b.getPlaceholder.call(w,m.translatePosition.call(w,z)),ie){case"insertText":ve[z-1]===le[z]&&P.begin==le.length-1&&te.push(le[z]),z=Q;break;case"insertReplacementText":case"deleteContentBackward":le[z]===fe?P.end++:z=Q;break;default:le[z]!==ve[z]&&(le[z+1]!==fe&&le[z+1]!==$&&le[z+1]!==void 0||(ve[z]!==$||ve[z+1]!==fe)&&ve[z]!==fe?ve[z+1]===fe&&ve[z]===le[z+1]?(ie="insertText",te.push(le[z]),P.begin--,P.end--):le[z]!==$&&le[z]!==fe&&(le[z+1]===fe||ve[z]!==le[z]&&ve[z+1]===le[z+1])?(ie="insertReplacementText",te.push(le[z]),P.begin--):le[z]===fe?(ie="deleteContentBackward",(m.isMask.call(w,m.translatePosition.call(w,z),!0)||ve[z]===D.radixPoint)&&P.end++):z=Q:(ie="insertText",te.push(le[z]),P.begin--,P.end--))}return{action:ie,data:te,caret:P}})(j,G,I),(N.inputmask.shadowRoot||N.ownerDocument).activeElement!==N&&N.focus(),(0,h.writeBuffer)(N,m.getBuffer.call(w)),m.caret.call(w,N,I.begin,I.end,!0),!f.mobile&&w.skipNextInsert&&C.inputType==="insertText"&&L.action==="insertText"&&w.isComposing)return!1;switch(C.inputType==="insertCompositionText"&&L.action==="insertText"&&w.isComposing?w.skipNextInsert=!0:w.skipNextInsert=!1,L.action){case"insertText":case"insertReplacementText":L.data.forEach((function(J,B){var P=new T.Event("keypress");P.key=J,w.ignorable=!1,k.keypressEvent.call(N,P)})),setTimeout((function(){w.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var V=new T.Event("keydown");V.key=S.keys.Backspace,k.keyEvent.call(N,V);break;default:(0,h.applyInputValue)(N,j),m.caret.call(w,N,I.begin,I.end,!0)}C.preventDefault()}},setValueEvent:function(C){var w=this.inputmask,D=w.dependencyLib,T=this,L=C&&C.detail?C.detail[0]:arguments[1];L===void 0&&(L=T.inputmask._valueGet(!0)),(0,h.applyInputValue)(T,L,new D.Event("input")),(C.detail&&C.detail[1]!==void 0||arguments[2]!==void 0)&&m.caret.call(w,T,C.detail?C.detail[1]:arguments[2])},focusEvent:function(C){var w=this.inputmask,D=w.opts,T=w&&w._valueGet();D.showMaskOnFocus&&T!==m.getBuffer.call(w).join("")&&(0,h.writeBuffer)(this,m.getBuffer.call(w),m.seekNext.call(w,m.getLastValidPosition.call(w))),D.positionCaretOnTab!==!0||w.mouseEnter!==!1||A.isComplete.call(w,m.getBuffer.call(w))&&m.getLastValidPosition.call(w)!==-1||k.clickEvent.apply(this,[C,!0]),w.undoValue=w&&w._valueGet(!0)},invalidEvent:function(C){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var C=this.inputmask,w=C.opts,D=this;C.mouseEnter=!1,w.clearMaskOnLostFocus&&(D.inputmask.shadowRoot||D.ownerDocument).activeElement!==D&&(0,h.HandleNativePlaceholder)(D,C.originalPlaceholder)},clickEvent:function(C,w){var D=this.inputmask;D.clicked++;var T=this;if((T.inputmask.shadowRoot||T.ownerDocument).activeElement===T){var L=m.determineNewCaretPosition.call(D,m.caret.call(D,T),w);L!==void 0&&m.caret.call(D,T,L)}},cutEvent:function(C){var w=this.inputmask,D=w.maskset,T=this,L=m.caret.call(w,T),N=w.isRTL?m.getBuffer.call(w).slice(L.end,L.begin):m.getBuffer.call(w).slice(L.begin,L.end),j=w.isRTL?N.reverse().join(""):N.join("");p.default.navigator&&p.default.navigator.clipboard?p.default.navigator.clipboard.writeText(j):p.default.clipboardData&&p.default.clipboardData.getData&&p.default.clipboardData.setData("Text",j),A.handleRemove.call(w,T,S.keys.Delete,L),(0,h.writeBuffer)(T,m.getBuffer.call(w),D.p,C,w.undoValue!==w._valueGet(!0))},blurEvent:function(C){var w=this.inputmask,D=w.opts,T=w.dependencyLib;w.clicked=0;var L=T(this),N=this;if(N.inputmask){(0,h.HandleNativePlaceholder)(N,w.originalPlaceholder);var j=N.inputmask._valueGet(),G=m.getBuffer.call(w).slice();j!==""&&(D.clearMaskOnLostFocus&&(m.getLastValidPosition.call(w)===-1&&j===m.getBufferTemplate.call(w).join("")?G=[]:h.clearOptionalTail.call(w,G)),A.isComplete.call(w,G)===!1&&(setTimeout((function(){L.trigger("incomplete")}),0),D.clearIncomplete&&(m.resetMaskSet.call(w,!1),G=D.clearMaskOnLostFocus?[]:m.getBufferTemplate.call(w).slice())),(0,h.writeBuffer)(N,G,void 0,C)),j=w._valueGet(!0),w.undoValue!==j&&(j!=""||w.undoValue!=m.getBufferTemplate.call(w).join("")||w.undoValue==m.getBufferTemplate.call(w).join("")&&w.maskset.validPositions.length>0)&&(w.undoValue=j,L.trigger("change"))}},mouseenterEvent:function(){var C=this.inputmask,w=C.opts.showMaskOnHover,D=this;if(C.mouseEnter=!0,(D.inputmask.shadowRoot||D.ownerDocument).activeElement!==D){var T=(C.isRTL?m.getBufferTemplate.call(C).slice().reverse():m.getBufferTemplate.call(C)).join("");w&&(0,h.HandleNativePlaceholder)(D,T)}},submitEvent:function(){var C=this.inputmask,w=C.opts;C.undoValue!==C._valueGet(!0)&&C.$el.trigger("change"),m.getLastValidPosition.call(C)===-1&&C._valueGet&&C._valueGet()===m.getBufferTemplate.call(C).join("")&&C._valueSet(""),w.clearIncomplete&&A.isComplete.call(C,m.getBuffer.call(C))===!1&&C._valueSet(""),w.removeMaskOnSubmit&&(C._valueSet(C.unmaskedvalue(),!0),setTimeout((function(){(0,h.writeBuffer)(C.el,m.getBuffer.call(C))}),0))},resetEvent:function(){var C=this.inputmask;C.refreshValue=!0,setTimeout((function(){(0,h.applyInputValue)(C.el,C._valueGet(!0))}),0)}}},9716:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.EventRuler=void 0;var c,d=u(7760),f=(c=u(2394))&&c.__esModule?c:{default:c},p=u(2839),h=u(8711);l.EventRuler={on:function(S,m,A){var b=S.inputmask.dependencyLib,g=function(M){M.originalEvent&&(M=M.originalEvent||M,arguments[0]=M);var v,R=this,y=R.inputmask,x=y?y.opts:void 0;if(y===void 0&&this.nodeName!=="FORM"){var k=b.data(R,"_inputmask_opts");b(R).off(),k&&new f.default(k).mask(R)}else{if(["submit","reset","setvalue"].includes(M.type)||this.nodeName==="FORM"||!(R.disabled||R.readOnly&&!(M.type==="keydown"&&M.ctrlKey&&M.key===p.keys.c||x.tabThrough===!1&&M.key===p.keys.Tab))){switch(M.type){case"input":if(y.skipInputEvent===!0)return y.skipInputEvent=!1,M.preventDefault();break;case"click":case"focus":return y.validationEvent?(y.validationEvent=!1,S.blur(),(0,d.HandleNativePlaceholder)(S,(y.isRTL?h.getBufferTemplate.call(y).slice().reverse():h.getBufferTemplate.call(y)).join("")),setTimeout((function(){S.focus()}),x.validationEventTimeOut),!1):(v=arguments,void setTimeout((function(){S.inputmask&&A.apply(R,v)}),0))}var C=A.apply(R,arguments);return C===!1&&(M.preventDefault(),M.stopPropagation()),C}M.preventDefault()}};["submit","reset"].includes(m)?(g=g.bind(S),S.form!==null&&b(S.form).on(m,g)):b(S).on(m,g),S.inputmask.events[m]=S.inputmask.events[m]||[],S.inputmask.events[m].push(g)},off:function(S,m){if(S.inputmask&&S.inputmask.events){var A=S.inputmask.dependencyLib,b=S.inputmask.events;for(var g in m&&((b=[])[m]=S.inputmask.events[m]),b){for(var M=b[g];M.length>0;){var v=M.pop();["submit","reset"].includes(g)?S.form!==null&&A(S.form).off(g,v):A(S).off(g,v)}delete S.inputmask.events[g]}}}}},219:function(a,l,u){var c=g(u(7184)),d=g(u(2394)),f=u(2839),p=u(8711),h=u(4713);function S(B,P){return(function(Q){if(Array.isArray(Q))return Q})(B)||(function(Q,z){var $=Q==null?null:typeof Symbol<"u"&&Q[Symbol.iterator]||Q["@@iterator"];if($!=null){var ee,K,ae,W,H=[],ne=!0,ie=!1;try{if(ae=($=$.call(Q)).next,z!==0)for(;!(ne=(ee=ae.call($)).done)&&(H.push(ee.value),H.length!==z);ne=!0);}catch(te){ie=!0,K=te}finally{try{if(!ne&&$.return!=null&&(W=$.return(),Object(W)!==W))return}finally{if(ie)throw K}}return H}})(B,P)||(function(Q,z){if(Q){if(typeof Q=="string")return m(Q,z);var $=Object.prototype.toString.call(Q).slice(8,-1);if($==="Object"&&Q.constructor&&($=Q.constructor.name),$==="Map"||$==="Set")return Array.from(Q);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return m(Q,z)}})(B,P)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function m(B,P){(P==null||P>B.length)&&(P=B.length);for(var Q=0,z=new Array(P);Q<P;Q++)z[Q]=B[Q];return z}function A(B){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},A(B)}function b(B,P){for(var Q=0;Q<P.length;Q++){var z=P[Q];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(B,($=z.key,ee=void 0,ee=(function(K,ae){if(A(K)!=="object"||K===null)return K;var W=K[Symbol.toPrimitive];if(W!==void 0){var H=W.call(K,ae);if(A(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ae==="string"?String:Number)(K)})($,"string"),A(ee)==="symbol"?ee:String(ee)),z)}var $,ee}function g(B){return B&&B.__esModule?B:{default:B}}u(1313);var M=d.default.dependencyLib,v=(function(){function B(z,$,ee,K){(function(ae,W){if(!(ae instanceof W))throw new TypeError("Cannot call a class as a function")})(this,B),this.mask=z,this.format=$,this.opts=ee,this.inputmask=K,this._date=new Date(1,0,1),this.initDateObject(z,this.opts,this.inputmask)}var P,Q;return P=B,(Q=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(z,$,ee){var K;for(L($).lastIndex=0;K=L($).exec(this.format);){var ae=/\d+$/.exec(K[0]),W=ae?K[0][0]+"x":K[0],H=void 0;if(z!==void 0){if(ae){var ne=L($).lastIndex,ie=J.call(ee,K.index,$,ee&&ee.maskset);L($).lastIndex=ne,H=z.slice(0,z.indexOf(ie.nextMatch[0]))}else{for(var te=K[0][0],fe=K.index;ee&&($.placeholder[h.getTest.call(ee,fe).match.placeholder]||h.getTest.call(ee,fe).match.placeholder)===te;)fe++;var le=fe-K.index;H=z.slice(0,le||k[W]&&k[W][4]||W.length)}z=z.slice(H.length)}Object.prototype.hasOwnProperty.call(k,W)&&this.setValue(this,H,W,k[W][2],k[W][1])}}},{key:"setValue",value:function(z,$,ee,K,ae){if($!==void 0)switch(K){case"ampm":z[K]=$,z["raw"+K]=$.replace(/\s/g,"_");break;case"month":if(ee==="mmm"||ee==="mmmm"){z[K]=G(ee==="mmm"?y.monthNames.slice(0,12).findIndex((function(H){return $.toLowerCase()===H.toLowerCase()}))+1:y.monthNames.slice(12,24).findIndex((function(H){return $.toLowerCase()===H.toLowerCase()}))+1,2),z[K]=z[K]==="00"?"":z[K].toString(),z["raw"+K]=z[K];break}default:z[K]=$.replace(/[^0-9]/g,"0"),z["raw"+K]=$.replace(/\s/g,"_")}if(ae!==void 0){var W=z[K];(K==="day"&&parseInt(W)===29||K==="month"&&parseInt(W)===2)&&(parseInt(z.day)!==29||parseInt(z.month)!==2||z.year!==""&&z.year!==void 0||z._date.setFullYear(2012,1,29)),K==="day"&&(x=!0,parseInt(W)===0&&(W=1)),K==="month"&&(x=!0),K==="year"&&(x=!0,W.length<k[ee][4]&&(W=G(W,k[ee][4],!0))),(W!==""&&!isNaN(W)||K==="ampm")&&ae.call(z._date,W)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&b(P.prototype,Q),Object.defineProperty(P,"prototype",{writable:!1}),B})(),R=new Date().getFullYear(),y=d.default.prototype.i18n,x=!1,k={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return G(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(B){var P=B?parseInt(B):0;return P>0&&P--,Date.prototype.setMonth.call(this,P)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(B){var P=B?parseInt(B):0;return P>0&&P--,Date.prototype.setMonth.call(this,P)},"month",function(){return G(Date.prototype.getMonth.call(this)+1,2)}],mmm:[y.monthNames.slice(0,12).join("|"),function(B){var P=y.monthNames.slice(0,12).findIndex((function(Q){return B.toLowerCase()===Q.toLowerCase()}));return P!==-1&&Date.prototype.setMonth.call(this,P)},"month",function(){return y.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[y.monthNames.slice(12,24).join("|"),function(B){var P=y.monthNames.slice(12,24).findIndex((function(Q){return B.toLowerCase()===Q.toLowerCase()}));return P!==-1&&Date.prototype.setMonth.call(this,P)},"month",function(){return y.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(B){var P=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(P).concat(B))},"year",function(){return G(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return G(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],hx:[function(B){return"[0-9]{".concat(B,"}")},Date.prototype.setHours,"hours",function(B){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],Hx:[function(B){return"[0-9]{".concat(B,"}")},Date.prototype.setHours,"hours",function(B){return function(){return G(Date.prototype.getHours.call(this),B)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return G(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return G(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",w,"ampm",D,1],tt:["[ap]m",w,"ampm",D,2],T:["[AP]",w,"ampm",D,1],TT:["[AP]M",w,"ampm",D,2],Z:[".*",void 0,"Z",function(){var B=this.toString().match(/\((.+)\)/)[1];return B.includes(" ")&&(B=(B=B.replace("-"," ").toUpperCase()).split(" ").map((function(P){return S(P,1)[0]})).join("")),B}],o:[""],S:[""]},C={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function w(B){var P=this.getHours();B.toLowerCase().includes("p")?this.setHours(P+12):B.toLowerCase().includes("a")&&P>=12&&this.setHours(P-12)}function D(){var B=this.getHours();return(B=B||12)>=12?"PM":"AM"}function T(B){var P=/\d+$/.exec(B[0]);if(P&&P[0]!==void 0){var Q=k[B[0][0]+"x"].slice("");return Q[0]=Q[0](P[0]),Q[3]=Q[3](P[0]),Q}if(k[B[0]])return k[B[0]]}function L(B){if(!B.tokenizer){var P=[],Q=[];for(var z in k)if(/\.*x$/.test(z)){var $=z[0]+"\\d+";Q.indexOf($)===-1&&Q.push($)}else P.indexOf(z[0])===-1&&P.push(z[0]);B.tokenizer="("+(Q.length>0?Q.join("|")+"|":"")+P.join("+|")+")+?|.",B.tokenizer=new RegExp(B.tokenizer,"g")}return B.tokenizer}function N(B,P,Q){if(!x)return!0;if(B.rawday===void 0||!isFinite(B.rawday)&&new Date(B.date.getFullYear(),isFinite(B.rawmonth)?B.month:B.date.getMonth()+1,0).getDate()>=B.day||B.day=="29"&&(!isFinite(B.rawyear)||B.rawyear===void 0||B.rawyear==="")||new Date(B.date.getFullYear(),isFinite(B.rawmonth)?B.month:B.date.getMonth()+1,0).getDate()>=B.day)return P;if(B.day=="29"){var z=J.call(this,P.pos,Q,this.maskset);if(z.targetMatch&&z.targetMatch[0]==="yyyy"&&P.pos-z.targetMatchIndex==2)return P.remove=P.pos+1,P}else if(B.date.getMonth()==2&&B.day=="30"&&P.c!==void 0)return B.day="03",B.date.setDate(3),B.date.setMonth(1),P.insert=[{pos:P.pos,c:"0"},{pos:P.pos+1,c:P.c}],P.caret=p.seekNext.call(this,P.pos+1),P;return!1}function j(B,P,Q,z){var $,ee,K="",ae=0,W={};for(L(Q).lastIndex=0;$=L(Q).exec(B);){if(P===void 0)if(ee=T($))K+="("+ee[0]+")",Q.placeholder&&Q.placeholder!==""?(W[ae]=Q.placeholder[$.index%Q.placeholder.length],W[Q.placeholder[$.index%Q.placeholder.length]]=$[0].charAt(0)):W[ae]=$[0].charAt(0);else switch($[0]){case"[":K+="(";break;case"]":K+=")?";break;default:K+=(0,c.default)($[0]),W[ae]=$[0].charAt(0)}else(ee=T($))?z!==!0&&ee[3]?K+=ee[3].call(P.date):ee[2]?K+=P["raw"+ee[2]]:K+=$[0]:K+=$[0];ae++}return P===void 0&&(Q.placeholder=W),K}function G(B,P,Q){for(B=String(B),P=P||2;B.length<P;)B=Q?B+"0":"0"+B;return B}function I(B,P,Q){return typeof B=="string"?new v(B,P,Q,this):B&&A(B)==="object"&&Object.prototype.hasOwnProperty.call(B,"date")?B:void 0}function V(B,P){return j(P.inputFormat,{date:B},P)}function J(B,P,Q){var z,$,ee=this,K=Q&&Q.tests[B]?P.placeholder[Q.tests[B][0].match.placeholder]||Q.tests[B][0].match.placeholder:"",ae=0,W=0;for(L(P).lastIndex=0;$=L(P).exec(P.inputFormat);){var H=/\d+$/.exec($[0]);if(H)W=parseInt(H[0]);else{for(var ne=$[0][0],ie=ae;ee&&(P.placeholder[h.getTest.call(ee,ie).match.placeholder]||h.getTest.call(ee,ie).match.placeholder)===ne;)ie++;(W=ie-ae)===0&&(W=$[0].length)}if(ae+=W,$[0].indexOf(K)!=-1||ae>=B+1){z=$,$=L(P).exec(P.inputFormat);break}}return{targetMatchIndex:ae-W,nextMatch:$,targetMatch:z}}d.default.extendAliases({datetime:{mask:function(B){return B.numericInput=!1,k.S=y.ordinalSuffix.join("|"),B.inputFormat=C[B.inputFormat]||B.inputFormat,B.displayFormat=C[B.displayFormat]||B.displayFormat||B.inputFormat,B.outputFormat=C[B.outputFormat]||B.outputFormat||B.inputFormat,B.regex=j(B.inputFormat,void 0,B),B.min=I(B.min,B.inputFormat,B),B.max=I(B.max,B.inputFormat,B),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(B,P,Q,z,$,ee,K,ae){if(ae)return!0;if(isNaN(Q)&&B[P]!==Q){var W=J.call(this,P,$,ee);if(W.nextMatch&&W.nextMatch[0]===Q&&W.targetMatch[0].length>1){var H=T(W.targetMatch)[0];if(new RegExp(H).test("0"+B[P-1]))return B[P]=B[P-1],B[P-1]="0",{fuzzy:!0,buffer:B,refreshFromBuffer:{start:P-1,end:P+1},pos:P+1}}}return!0},postValidation:function(B,P,Q,z,$,ee,K,ae){var W,H,ne=this;if(K)return!0;if(z===!1&&(((W=J.call(ne,P+1,$,ee)).targetMatch&&W.targetMatchIndex===P&&W.targetMatch[0].length>1&&k[W.targetMatch[0]]!==void 0||(W=J.call(ne,P+2,$,ee)).targetMatch&&W.targetMatchIndex===P+1&&W.targetMatch[0].length>1&&k[W.targetMatch[0]]!==void 0)&&(H=T(W.targetMatch)[0]),H!==void 0&&(ee.validPositions[P+1]!==void 0&&new RegExp(H).test(Q+"0")?(B[P]=Q,B[P+1]="0",z={pos:P+2,caret:P}):new RegExp(H).test("0"+Q)&&(B[P]="0",B[P+1]=Q,z={pos:P+2})),z===!1))return z;if(z.fuzzy&&(B=z.buffer,P=z.pos),(W=J.call(ne,P,$,ee)).targetMatch&&W.targetMatch[0]&&k[W.targetMatch[0]]!==void 0){var ie=T(W.targetMatch);H=ie[0];var te=B.slice(W.targetMatchIndex,W.targetMatchIndex+W.targetMatch[0].length);if(new RegExp(H).test(te.join(""))===!1&&W.targetMatch[0].length===2&&ee.validPositions[W.targetMatchIndex]&&ee.validPositions[W.targetMatchIndex+1]&&(ee.validPositions[W.targetMatchIndex+1].input="0"),ie[2]=="year")for(var fe=h.getMaskTemplate.call(ne,!1,1,void 0,!0),le=P+1;le<B.length;le++)B[le]=fe[le],ee.validPositions.splice(P+1,1)}var ve=z,ye=I.call(ne,B.join(""),$.inputFormat,$);return ve&&!isNaN(ye.date.getTime())&&($.prefillYear&&(ve=(function(ke,Pe,Ne){if(ke.year!==ke.rawyear){var Le=R.toString(),U=ke.rawyear.replace(/[^0-9]/g,""),q=Le.slice(0,U.length),X=Le.slice(U.length);if(U.length===2&&U===q){var de=new Date(R,ke.month-1,ke.day);ke.day==de.getDate()&&(!Ne.max||Ne.max.date.getTime()>=de.getTime())&&(ke.date.setFullYear(R),ke.year=Le,Pe.insert=[{pos:Pe.pos+1,c:X[0]},{pos:Pe.pos+2,c:X[1]}])}}return Pe})(ye,ve,$)),ve=(function(ke,Pe,Ne,Le,U){if(!Pe)return Pe;if(Pe&&Ne.min&&!isNaN(Ne.min.date.getTime())){var q;for(ke.reset(),L(Ne).lastIndex=0;q=L(Ne).exec(Ne.inputFormat);){var X;if((X=T(q))&&X[3]){for(var de=X[1],ue=ke[X[2]],Ee=Ne.min[X[2]],Be=Ne.max?Ne.max[X[2]]:Ee+1,xe=[],Re=!1,Ie=0;Ie<Ee.length;Ie++)Le.validPositions[Ie+q.index]!==void 0||Re?(xe[Ie]=ue[Ie],Re=Re||ue[Ie]>Ee[Ie]):(Ie+q.index==0&&ue[Ie]<Ee[Ie]?(xe[Ie]=ue[Ie],Re=!0):xe[Ie]=Ee[Ie],X[2]==="year"&&ue.length-1==Ie&&Ee!=Be&&(xe=(parseInt(xe.join(""))+1).toString().split("")),X[2]==="ampm"&&Ee!=Be&&Ne.min.date.getTime()>ke.date.getTime()&&(xe[Ie]=Be[Ie]));de.call(ke._date,xe.join(""))}}Pe=Ne.min.date.getTime()<=ke.date.getTime(),ke.reInit()}return Pe&&Ne.max&&(isNaN(Ne.max.date.getTime())||(Pe=Ne.max.date.getTime()>=ke.date.getTime())),Pe})(ye,ve=N.call(ne,ye,ve,$),$,ee)),P!==void 0&&ve&&z.pos!==P?{buffer:j($.inputFormat,ye,$).split(""),refreshFromBuffer:{start:P,end:z.pos},pos:z.caret||z.pos}:ve},onKeyDown:function(B,P,Q,z){B.ctrlKey&&B.key===f.keys.ArrowRight&&(this.inputmask._valueSet(V(new Date,z)),M(this).trigger("setvalue"))},onUnMask:function(B,P,Q){return P&&j(Q.outputFormat,I.call(this,B,Q.inputFormat,Q),Q,!0)},casing:function(B,P,Q,z){if(P.nativeDef.indexOf("[ap]")==0)return B.toLowerCase();if(P.nativeDef.indexOf("[AP]")==0)return B.toUpperCase();var $=h.getTest.call(this,[Q-1]);return $.match.def.indexOf("[AP]")==0||Q===0||$&&$.input===String.fromCharCode(f.keyCode.Space)||$&&$.match.def===String.fromCharCode(f.keyCode.Space)?B.toUpperCase():B.toLowerCase()},onBeforeMask:function(B,P){return Object.prototype.toString.call(B)==="[object Date]"&&(B=V(B,P)),B},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(a,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c};d.default.dependencyLib.extend(!0,d.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(a,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711),p=u(4713);function h(b){return(function(g){if(Array.isArray(g))return S(g)})(b)||(function(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)})(b)||(function(g,M){if(g){if(typeof g=="string")return S(g,M);var v=Object.prototype.toString.call(g).slice(8,-1);if(v==="Object"&&g.constructor&&(v=g.constructor.name),v==="Map"||v==="Set")return Array.from(g);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return S(g,M)}})(b)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function S(b,g){(g==null||g>b.length)&&(g=b.length);for(var M=0,v=new Array(g);M<g;M++)v[M]=b[M];return v}d.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var m=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function A(b,g,M,v,R){if(M-1>-1&&g.buffer[M-1]!=="."?(b=g.buffer[M-1]+b,b=M-2>-1&&g.buffer[M-2]!=="."?g.buffer[M-2]+b:"0"+b):b="00"+b,R.greedy&&parseInt(b)>255&&m.test("00"+b.charAt(2))){var y=[].concat(h(g.buffer.slice(0,M)),[".",b.charAt(2)]);if(y.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:y,caret:M+2}}return m.test(b)}d.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:A},j:{validator:A},k:{validator:A},l:{validator:A}},onUnMask:function(b,g,M){return b},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(b){var g=b.separator,M=b.quantifier,v="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",R=v;if(g)for(var y=0;y<M;y++)R+="[".concat(g).concat(v,"]");return R},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(b,g){return(b=b.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(b,g,M){return b},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(b,g,M,v,R,y,x){var k=p.getMaskTemplate.call(this,!0,f.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(k.join(""))}}})},207:function(a,l,u){var c=h(u(7184)),d=h(u(2394)),f=u(2839),p=u(8711);function h(v){return v&&v.__esModule?v:{default:v}}var S=d.default.dependencyLib;function m(v,R){for(var y="",x=0;x<v.length;x++)d.default.prototype.definitions[v.charAt(x)]||R.definitions[v.charAt(x)]||R.optionalmarker[0]===v.charAt(x)||R.optionalmarker[1]===v.charAt(x)||R.quantifiermarker[0]===v.charAt(x)||R.quantifiermarker[1]===v.charAt(x)||R.groupmarker[0]===v.charAt(x)||R.groupmarker[1]===v.charAt(x)||R.alternatormarker===v.charAt(x)?y+="\\"+v.charAt(x):y+=v.charAt(x);return y}function A(v,R,y,x){if(v.length>0&&R>0&&(!y.digitsOptional||x)){var k=v.indexOf(y.radixPoint),C=!1;y.negationSymbol.back===v[v.length-1]&&(C=!0,v.length--),k===-1&&(v.push(y.radixPoint),k=v.length-1);for(var w=1;w<=R;w++)isFinite(v[k+w])||(v[k+w]="0")}return C&&v.push(y.negationSymbol.back),v}function b(v,R){var y=0;for(var x in v==="+"&&(y=p.seekNext.call(this,R.validPositions.length-1)),R.tests)if((x=parseInt(x))>=y){for(var k=0,C=R.tests[x].length;k<C;k++)if((R.validPositions[x]===void 0||v==="-")&&R.tests[x][k].match.def===v)return x+(R.validPositions[x]!==void 0&&v!=="-"?1:0)}return y}function g(v,R){for(var y=-1,x=0,k=R.validPositions.length;x<k;x++){var C=R.validPositions[x];if(C&&C.match.def===v){y=x;break}}return y}function M(v,R,y,x,k){var C=R.buffer?R.buffer.indexOf(k.radixPoint):-1,w=(C!==-1||x&&k.jitMasking)&&new RegExp(k.definitions[9].validator).test(v);return!x&&k._radixDance&&C!==-1&&w&&R.validPositions[C]==null?{insert:{pos:C===y?C+1:C,c:k.radixPoint},pos:y}:w}d.default.extendAliases({numeric:{mask:function(v){v.repeat=0,v.groupSeparator===v.radixPoint&&v.digits&&v.digits!=="0"&&(v.radixPoint==="."?v.groupSeparator=",":v.radixPoint===","?v.groupSeparator=".":v.groupSeparator=""),v.groupSeparator===" "&&(v.skipOptionalPartCharacter=void 0),v.placeholder.length>1&&(v.placeholder=v.placeholder.charAt(0)),v.positionCaretOnClick==="radixFocus"&&v.placeholder===""&&(v.positionCaretOnClick="lvp");var R="0",y=v.radixPoint;v.numericInput===!0&&v.__financeInput===void 0?(R="1",v.positionCaretOnClick=v.positionCaretOnClick==="radixFocus"?"lvp":v.positionCaretOnClick,v.digitsOptional=!1,isNaN(v.digits)&&(v.digits=2),v._radixDance=!1,y=v.radixPoint===","?"?":"!",v.radixPoint!==""&&v.definitions[y]===void 0&&(v.definitions[y]={},v.definitions[y].validator="["+v.radixPoint+"]",v.definitions[y].placeholder=v.radixPoint,v.definitions[y].static=!0,v.definitions[y].generated=!0)):(v.__financeInput=!1,v.numericInput=!0);var x,k="[+]";if(k+=m(v.prefix,v),v.groupSeparator!==""?(v.definitions[v.groupSeparator]===void 0&&(v.definitions[v.groupSeparator]={},v.definitions[v.groupSeparator].validator="["+v.groupSeparator+"]",v.definitions[v.groupSeparator].placeholder=v.groupSeparator,v.definitions[v.groupSeparator].static=!0,v.definitions[v.groupSeparator].generated=!0),k+=v._mask(v)):k+="9{+}",v.digits!==void 0&&v.digits!==0){var C=v.digits.toString().split(",");isFinite(C[0])&&C[1]&&isFinite(C[1])?k+=y+R+"{"+v.digits+"}":(isNaN(v.digits)||parseInt(v.digits)>0)&&(v.digitsOptional||v.jitMasking?(x=k+y+R+"{0,"+v.digits+"}",v.keepStatic=!0):k+=y+R+"{"+v.digits+"}")}else v.inputmode="numeric";return k+=m(v.suffix,v),k+="[-]",x&&(k=[x+m(v.suffix,v)+"[-]",k]),v.greedy=!1,(function(w){w.parseMinMaxOptions===void 0&&(w.min!==null&&(w.min=w.min.toString().replace(new RegExp((0,c.default)(w.groupSeparator),"g"),""),w.radixPoint===","&&(w.min=w.min.replace(w.radixPoint,".")),w.min=isFinite(w.min)?parseFloat(w.min):NaN,isNaN(w.min)&&(w.min=Number.MIN_VALUE)),w.max!==null&&(w.max=w.max.toString().replace(new RegExp((0,c.default)(w.groupSeparator),"g"),""),w.radixPoint===","&&(w.max=w.max.replace(w.radixPoint,".")),w.max=isFinite(w.max)?parseFloat(w.max):NaN,isNaN(w.max)&&(w.max=Number.MAX_VALUE)),w.parseMinMaxOptions="done")})(v),v.radixPoint!==""&&v.substituteRadixPoint&&(v.substitutes[v.radixPoint=="."?",":"."]=v.radixPoint),k},_mask:function(v){return"("+v.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:M},1:{validator:M,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(v,R,y,x,k){return k.allowMinus&&(v==="-"||v===k.negationSymbol.front)}},"-":{validator:function(v,R,y,x,k){return k.allowMinus&&v===k.negationSymbol.back}}},preValidation:function(v,R,y,x,k,C,w,D){var T=this;if(k.__financeInput!==!1&&y===k.radixPoint)return!1;var L=v.indexOf(k.radixPoint),N=R;if(R=(function(J,B,P,Q,z){return z._radixDance&&z.numericInput&&B!==z.negationSymbol.back&&J<=P&&(P>0||B==z.radixPoint)&&(Q.validPositions[J-1]===void 0||Q.validPositions[J-1].input!==z.negationSymbol.back)&&(J-=1),J})(R,y,L,C,k),y==="-"||y===k.negationSymbol.front){if(k.allowMinus!==!0)return!1;var j=!1,G=g("+",C),I=g("-",C);return G!==-1&&(j=[G],I!==-1&&j.push(I)),j!==!1?{remove:j,caret:N-k.negationSymbol.back.length}:{insert:[{pos:b.call(T,"+",C),c:k.negationSymbol.front,fromIsValid:!0},{pos:b.call(T,"-",C),c:k.negationSymbol.back,fromIsValid:void 0}],caret:N+k.negationSymbol.back.length}}if(y===k.groupSeparator)return{caret:N};if(D)return!0;if(L!==-1&&k._radixDance===!0&&x===!1&&y===k.radixPoint&&k.digits!==void 0&&(isNaN(k.digits)||parseInt(k.digits)>0)&&L!==R){var V=b.call(T,k.radixPoint,C);return C.validPositions[V]&&(C.validPositions[V].generatedInput=C.validPositions[V].generated||!1),{caret:k._radixDance&&R===L-1?L+1:L}}if(k.__financeInput===!1){if(x){if(k.digitsOptional)return{rewritePosition:w.end};if(!k.digitsOptional){if(w.begin>L&&w.end<=L)return y===k.radixPoint?{insert:{pos:L+1,c:"0",fromIsValid:!0},rewritePosition:L}:{rewritePosition:L+1};if(w.begin<L)return{rewritePosition:w.begin-1}}}else if(!k.showMaskOnHover&&!k.showMaskOnFocus&&!k.digitsOptional&&k.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:L}}return{rewritePosition:R}},postValidation:function(v,R,y,x,k,C,w){if(x===!1)return x;if(w)return!0;if(k.min!==null||k.max!==null){var D=k.onUnMask(v.slice().reverse().join(""),void 0,S.extend({},k,{unmaskAsNumber:!0}));if(k.min!==null&&D<k.min&&(D.toString().length>k.min.toString().length||D<0))return!1;if(k.max!==null&&D>k.max)return!!k.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:A(k.max.toString().replace(".",k.radixPoint).split(""),k.digits,k).reverse()}}return x},onUnMask:function(v,R,y){if(R===""&&y.nullable===!0)return R;var x=v.replace(y.prefix,"");return x=(x=x.replace(y.suffix,"")).replace(new RegExp((0,c.default)(y.groupSeparator),"g"),""),y.placeholder.charAt(0)!==""&&(x=x.replace(new RegExp(y.placeholder.charAt(0),"g"),"0")),y.unmaskAsNumber?(y.radixPoint!==""&&x.indexOf(y.radixPoint)!==-1&&(x=x.replace(c.default.call(this,y.radixPoint),".")),x=(x=x.replace(new RegExp("^"+(0,c.default)(y.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(y.negationSymbol.back)+"$"),""),Number(x)):x},isComplete:function(v,R){var y=(R.numericInput?v.slice().reverse():v).join("");return y=(y=(y=(y=(y=y.replace(new RegExp("^"+(0,c.default)(R.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(R.negationSymbol.back)+"$"),"")).replace(R.prefix,"")).replace(R.suffix,"")).replace(new RegExp((0,c.default)(R.groupSeparator)+"([0-9]{3})","g"),"$1"),R.radixPoint===","&&(y=y.replace((0,c.default)(R.radixPoint),".")),isFinite(y)},onBeforeMask:function(v,R){var y;v=(y=v)!==null&&y!==void 0?y:"";var x=R.radixPoint||",";isFinite(R.digits)&&(R.digits=parseInt(R.digits)),typeof v!="number"&&R.inputType!=="number"||x===""||(v=v.toString().replace(".",x));var k=v.charAt(0)==="-"||v.charAt(0)===R.negationSymbol.front,C=v.split(x),w=C[0].replace(/[^\-0-9]/g,""),D=C.length>1?C[1].replace(/[^0-9]/g,""):"",T=C.length>1;v=w+(D!==""?x+D:D);var L=0;if(x!==""&&(L=R.digitsOptional?R.digits<D.length?R.digits:D.length:R.digits,D!==""||!R.digitsOptional)){var N=Math.pow(10,L||1);v=v.replace((0,c.default)(x),"."),isNaN(parseFloat(v))||(v=(R.roundingFN(parseFloat(v)*N)/N).toFixed(L)),v=v.toString().replace(".",x)}if(R.digits===0&&v.indexOf(x)!==-1&&(v=v.substring(0,v.indexOf(x))),R.min!==null||R.max!==null){var j=v.toString().replace(x,".");R.min!==null&&j<R.min?v=R.min.toString().replace(".",x):R.max!==null&&j>R.max&&(v=R.max.toString().replace(".",x))}return k&&v.charAt(0)!=="-"&&(v="-"+v),A(v.toString().split(""),L,R,T).join("")},onBeforeWrite:function(v,R,y,x){function k(I,V){if(x.__financeInput!==!1||V){var J=I.indexOf(x.radixPoint);J!==-1&&I.splice(J,1)}if(x.groupSeparator!=="")for(;(J=I.indexOf(x.groupSeparator))!==-1;)I.splice(J,1);return I}var C,w;if(x.stripLeadingZeroes&&(w=(function(I,V){var J=new RegExp("(^"+(V.negationSymbol.front!==""?(0,c.default)(V.negationSymbol.front)+"?":"")+(0,c.default)(V.prefix)+")(.*)("+(0,c.default)(V.suffix)+(V.negationSymbol.back!=""?(0,c.default)(V.negationSymbol.back)+"?":"")+"$)").exec(I.slice().reverse().join("")),B=J?J[2]:"",P=!1;return B&&(B=B.split(V.radixPoint.charAt(0))[0],P=new RegExp("^[0"+V.groupSeparator+"]*").exec(B)),!(!P||!(P[0].length>1||P[0].length>0&&P[0].length<B.length))&&P})(R,x)))for(var D=R.join("").lastIndexOf(w[0].split("").reverse().join(""))-(w[0]==w.input?0:1),T=w[0]==w.input?1:0,L=w[0].length-T;L>0;L--)this.maskset.validPositions.splice(D+L,1),delete R[D+L];if(v)switch(v.type){case"blur":case"checkval":if(x.min!==null){var N=x.onUnMask(R.slice().reverse().join(""),void 0,S.extend({},x,{unmaskAsNumber:!0}));if(x.min!==null&&N<x.min)return{refreshFromBuffer:!0,buffer:A(x.min.toString().replace(".",x.radixPoint).split(""),x.digits,x).reverse()}}if(R[R.length-1]===x.negationSymbol.front){var j=new RegExp("(^"+(x.negationSymbol.front!=""?(0,c.default)(x.negationSymbol.front)+"?":"")+(0,c.default)(x.prefix)+")(.*)("+(0,c.default)(x.suffix)+(x.negationSymbol.back!=""?(0,c.default)(x.negationSymbol.back)+"?":"")+"$)").exec(k(R.slice(),!0).reverse().join(""));(j?j[2]:"")==0&&(C={refreshFromBuffer:!0,buffer:[0]})}else x.radixPoint!==""&&R.indexOf(x.radixPoint)===x.suffix.length&&(C&&C.buffer?C.buffer.splice(0,1+x.suffix.length):(R.splice(0,1+x.suffix.length),C={refreshFromBuffer:!0,buffer:k(R)}));if(x.enforceDigitsOnBlur){var G=(C=C||{})&&C.buffer||R.slice().reverse();C.refreshFromBuffer=!0,C.buffer=A(G,x.digits,x,!0).reverse()}}return C},onKeyDown:function(v,R,y,x){var k,C=S(this);if(v.location!=3){var w,D=v.key;if((w=x.shortcuts&&x.shortcuts[D])&&w.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(w)),C.trigger("setvalue"),!1}if(v.ctrlKey)switch(v.key){case f.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(x.step)),C.trigger("setvalue"),!1;case f.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(x.step)),C.trigger("setvalue"),!1}if(!v.shiftKey&&(v.key===f.keys.Delete||v.key===f.keys.Backspace||v.key===f.keys.BACKSPACE_SAFARI)&&y.begin!==R.length){if(R[v.key===f.keys.Delete?y.begin-1:y.end]===x.negationSymbol.front)return k=R.slice().reverse(),x.negationSymbol.front!==""&&k.shift(),x.negationSymbol.back!==""&&k.pop(),C.trigger("setvalue",[k.join(""),y.begin]),!1;if(x._radixDance===!0){var T,L=R.indexOf(x.radixPoint);if(x.digitsOptional){if(L===0)return(k=R.slice().reverse()).pop(),C.trigger("setvalue",[k.join(""),y.begin>=k.length?k.length:y.begin]),!1}else if(L!==-1&&(y.begin<L||y.end<L||v.key===f.keys.Delete&&(y.begin===L||y.begin-1===L)))return y.begin===y.end&&(v.key===f.keys.Backspace||v.key===f.keys.BACKSPACE_SAFARI?y.begin++:v.key===f.keys.Delete&&y.begin-1===L&&(T=S.extend({},y),y.begin--,y.end--)),(k=R.slice().reverse()).splice(k.length-y.begin,y.begin-y.end+1),k=A(k,x.digits,x).join(""),T&&(y=T),C.trigger("setvalue",[k,y.begin>=k.length?L+1:y.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(v){return"("+v.groupSeparator+"99){*|1}("+v.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=!(typeof window>"u"||!window.document||!window.document.createElement);l.default=u?window:{}},7760:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.HandleNativePlaceholder=function(M,v){var R=M?M.inputmask:this;if(c.ie){if(M.inputmask._valueGet()!==v&&(M.placeholder!==v||M.placeholder==="")){var y=p.getBuffer.call(R).slice(),x=M.inputmask._valueGet();if(x!==v){var k=p.getLastValidPosition.call(R);k===-1&&x===p.getBufferTemplate.call(R).join("")?y=[]:k!==-1&&A.call(R,y),g(M,y)}}}else M.placeholder!==v&&(M.placeholder=v,M.placeholder===""&&M.removeAttribute("placeholder"))},l.applyInputValue=m,l.checkVal=b,l.clearOptionalTail=A,l.unmaskedvalue=function(M){var v=M?M.inputmask:this,R=v.opts,y=v.maskset;if(M){if(M.inputmask===void 0)return M.value;M.inputmask&&M.inputmask.refreshValue&&m(M,M.inputmask._valueGet(!0))}for(var x=[],k=y.validPositions,C=0,w=k.length;C<w;C++)k[C]&&k[C].match&&(k[C].match.static!=1||Array.isArray(y.metadata)&&k[C].generatedInput!==!0)&&x.push(k[C].input);var D=x.length===0?"":(v.isRTL?x.reverse():x).join("");if(typeof R.onUnMask=="function"){var T=(v.isRTL?p.getBuffer.call(v).slice().reverse():p.getBuffer.call(v)).join("");D=R.onUnMask.call(v,T,D,R)}return D},l.writeBuffer=g;var c=u(9845),d=u(6030),f=u(2839),p=u(8711),h=u(7215),S=u(4713);function m(M,v,R){var y=M?M.inputmask:this,x=y.opts;M.inputmask.refreshValue=!1,typeof x.onBeforeMask=="function"&&(v=x.onBeforeMask.call(y,v,x)||v),b(M,!0,!1,v=(v||"").toString().split(""),R),y.undoValue=y._valueGet(!0),(x.clearMaskOnLostFocus||x.clearIncomplete)&&M.inputmask._valueGet()===p.getBufferTemplate.call(y).join("")&&p.getLastValidPosition.call(y)===-1&&M.inputmask._valueSet("")}function A(M){M.length=0;for(var v,R=S.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(v=R.shift())!==void 0;)M.push(v);return M}function b(M,v,R,y,x){var k,C=M?M.inputmask:this,w=C.maskset,D=C.opts,T=C.dependencyLib,L=y.slice(),N="",j=-1,G=D.skipOptionalPartCharacter;D.skipOptionalPartCharacter="",p.resetMaskSet.call(C,!1),C.clicked=0,j=D.radixPoint?p.determineNewCaretPosition.call(C,{begin:0,end:0},!1,D.__financeInput===!1?"radixFocus":void 0).begin:0,w.p=j,C.caretPos={begin:j};var I=[],V=C.caretPos;if(L.forEach((function($,ee){if($!==void 0){var K=new T.Event("_checkval");K.key=$,N+=$;var ae=p.getLastValidPosition.call(C,void 0,!0);(function(W,H){for(var ne=S.getMaskTemplate.call(C,!0,0).slice(W,p.seekNext.call(C,W,!1,!1)).join("").replace(/'/g,""),ie=ne.indexOf(H);ie>0&&ne[ie-1]===" ";)ie--;var te=ie===0&&!p.isMask.call(C,W)&&(S.getTest.call(C,W).match.nativeDef===H.charAt(0)||S.getTest.call(C,W).match.static===!0&&S.getTest.call(C,W).match.nativeDef==="'"+H.charAt(0)||S.getTest.call(C,W).match.nativeDef===" "&&(S.getTest.call(C,W+1).match.nativeDef===H.charAt(0)||S.getTest.call(C,W+1).match.static===!0&&S.getTest.call(C,W+1).match.nativeDef==="'"+H.charAt(0)));if(!te&&ie>0&&!p.isMask.call(C,W,!1,!0)){var fe=p.seekNext.call(C,W);C.caretPos.begin<fe&&(C.caretPos={begin:fe})}return te})(j,N)?k=d.EventHandlers.keypressEvent.call(C,K,!0,!1,R,ae+1):(k=d.EventHandlers.keypressEvent.call(C,K,!0,!1,R,C.caretPos.begin))&&(j=C.caretPos.begin+1,N=""),k?(k.pos!==void 0&&w.validPositions[k.pos]&&w.validPositions[k.pos].match.static===!0&&w.validPositions[k.pos].alternation===void 0&&(I.push(k.pos),C.isRTL||(k.forwardPosition=k.pos+1)),g.call(C,void 0,p.getBuffer.call(C),k.forwardPosition,K,!1),C.caretPos={begin:k.forwardPosition,end:k.forwardPosition},V=C.caretPos):w.validPositions[ee]===void 0&&L[ee]===S.getPlaceholder.call(C,ee)&&p.isMask.call(C,ee,!0)?C.caretPos.begin++:C.caretPos=V}})),I.length>0){var J,B,P=p.seekNext.call(C,-1,void 0,!1);if(!h.isComplete.call(C,p.getBuffer.call(C))&&I.length<=P||h.isComplete.call(C,p.getBuffer.call(C))&&I.length>0&&I.length!==P&&I[0]===0){for(var Q=P;(J=I.shift())!==void 0;)if(J<Q){var z=new T.Event("_checkval");if((B=w.validPositions[J]).generatedInput=!0,z.key=B.input,(k=d.EventHandlers.keypressEvent.call(C,z,!0,!1,R,Q))&&k.pos!==void 0&&k.pos!==J&&w.validPositions[k.pos]&&w.validPositions[k.pos].match.static===!0)I.push(k.pos);else if(!k)break;Q++}}}v&&g.call(C,M,p.getBuffer.call(C),k?k.forwardPosition:C.caretPos.begin,x||new T.Event("checkval"),x&&(x.type==="input"&&C.undoValue!==p.getBuffer.call(C).join("")||x.type==="paste")),D.skipOptionalPartCharacter=G}function g(M,v,R,y,x){var k=M?M.inputmask:this,C=k.opts,w=k.dependencyLib;if(y&&typeof C.onBeforeWrite=="function"){var D=C.onBeforeWrite.call(k,y,v,R,C);if(D){if(D.refreshFromBuffer){var T=D.refreshFromBuffer;h.refreshFromBuffer.call(k,T===!0?T:T.start,T.end,D.buffer||v),v=p.getBuffer.call(k,!0)}R!==void 0&&(R=D.caret!==void 0?D.caret:R)}}if(M!==void 0&&(M.inputmask._valueSet(v.join("")),R===void 0||y!==void 0&&y.type==="blur"||p.caret.call(k,M,R,void 0,void 0,y!==void 0&&y.type==="keydown"&&(y.key===f.keys.Delete||y.key===f.keys.Backspace)),M.inputmask.writeBufferHook===void 0||M.inputmask.writeBufferHook(R),x===!0)){var L=w(M),N=M.inputmask._valueGet();M.inputmask.skipInputEvent=!0,L.trigger("input"),setTimeout((function(){N===p.getBufferTemplate.call(k).join("")?L.trigger("cleared"):h.isComplete.call(k,v)===!0&&L.trigger("complete")}),0)}}},2394:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=R(u(3976)),d=R(u(7392)),f=R(u(4963)),p=u(9716),h=R(u(9380)),S=u(7760),m=u(157),A=u(2391),b=u(8711),g=u(7215),M=u(4713);function v(w){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},v(w)}function R(w){return w&&w.__esModule?w:{default:w}}var y=h.default.document,x="_inputmask_opts";function k(w,D,T){if(!(this instanceof k))return new k(w,D,T);this.dependencyLib=f.default,this.el=void 0,this.events={},this.maskset=void 0,T!==!0&&(Object.prototype.toString.call(w)==="[object Object]"?D=w:(D=D||{},w&&(D.alias=w)),this.opts=f.default.extend(!0,{},this.defaults,D),this.noMasksCache=D&&D.definitions!==void 0,this.userOptions=D||{},C(this.opts.alias,D,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function C(w,D,T){var L=k.prototype.aliases[w];return L?(L.alias&&C(L.alias,void 0,T),f.default.extend(!0,T,L),f.default.extend(!0,T,D),!0):(T.mask===null&&(T.mask=w),!1)}k.prototype={dataAttribute:"data-inputmask",defaults:c.default,definitions:d.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(w){var D=this;return typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:Array.isArray(w)?w:[].slice.call(w)).forEach((function(T,L){var N=f.default.extend(!0,{},D.opts);if((function(G,I,V,J){function B(K,ae){var W=J===""?K:J+"-"+K;(ae=ae!==void 0?ae:G.getAttribute(W))!==null&&(typeof ae=="string"&&(K.indexOf("on")===0?ae=h.default[ae]:ae==="false"?ae=!1:ae==="true"&&(ae=!0)),V[K]=ae)}if(I.importDataAttributes===!0){var P,Q,z,$,ee=G.getAttribute(J);if(ee&&ee!==""&&(ee=ee.replace(/'/g,'"'),Q=JSON.parse("{"+ee+"}")),Q){for($ in z=void 0,Q)if($.toLowerCase()==="alias"){z=Q[$];break}}for(P in B("alias",z),V.alias&&C(V.alias,V,I),I){if(Q){for($ in z=void 0,Q)if($.toLowerCase()===P.toLowerCase()){z=Q[$];break}}B(P,z)}}return f.default.extend(!0,I,V),(G.dir==="rtl"||I.rightAlign)&&(G.style.textAlign="right"),(G.dir==="rtl"||I.numericInput)&&(G.dir="ltr",G.removeAttribute("dir"),I.isRTL=!0),Object.keys(V).length})(T,N,f.default.extend(!0,{},D.userOptions),D.dataAttribute)){var j=(0,A.generateMaskSet)(N,D.noMasksCache);j!==void 0&&(T.inputmask!==void 0&&(T.inputmask.opts.autoUnmask=!0,T.inputmask.remove()),T.inputmask=new k(void 0,void 0,!0),T.inputmask.opts=N,T.inputmask.noMasksCache=D.noMasksCache,T.inputmask.userOptions=f.default.extend(!0,{},D.userOptions),T.inputmask.el=T,T.inputmask.$el=(0,f.default)(T),T.inputmask.maskset=j,f.default.data(T,x,D.userOptions),m.mask.call(T.inputmask))}})),w&&w[0]&&w[0].inputmask||this},option:function(w,D){return typeof w=="string"?this.opts[w]:v(w)==="object"?(f.default.extend(this.userOptions,w),this.el&&D!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(w){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||w!==void 0){var D=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!1,!1,D),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,b.getBuffer.call(this),0,this.opts)}return S.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){f.default.data(this.el,x,null);var w=this.opts.autoUnmask?(0,S.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);w!==b.getBufferTemplate.call(this).join("")?this._valueSet(w,this.opts.autoUnmask):this._valueSet(""),p.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):y.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?b.getBufferTemplate.call(this).reverse():b.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),g.isComplete.call(this,b.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var w=M.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(D){return D.mask!==w||(w=D,!1)})),w}return this.maskset.metadata},isValid:function(w){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),w){var D=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!0,!1,D)}else w=this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join("");for(var T=b.getBuffer.call(this),L=b.determineLastRequiredPosition.call(this),N=T.length-1;N>L&&!b.isMask.call(this,N);N--);return T.splice(L,N+1-L),g.isComplete.call(this,T)&&w===(this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join(""))},format:function(w,D){this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache);var T=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,w,this.opts)||w).split("");S.checkVal.call(this,void 0,!0,!1,T);var L=this.isRTL?b.getBuffer.call(this).slice().reverse().join(""):b.getBuffer.call(this).join("");return D?{value:L,metadata:this.getmetadata()}:L},setValue:function(w){this.el&&(0,f.default)(this.el).trigger("setvalue",[w])},analyseMask:A.analyseMask},k.extendDefaults=function(w){f.default.extend(!0,k.prototype.defaults,w)},k.extendDefinitions=function(w){f.default.extend(!0,k.prototype.definitions,w)},k.extendAliases=function(w){f.default.extend(!0,k.prototype.aliases,w)},k.format=function(w,D,T){return k(D).format(w,T)},k.unmask=function(w,D){return k(D).unmaskedvalue(w)},k.isValid=function(w,D){return k(D).isValid(w)},k.remove=function(w){typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:w).forEach((function(D){D.inputmask&&D.inputmask.remove()}))},k.setValue=function(w,D){typeof w=="string"&&(w=y.getElementById(w)||y.querySelectorAll(w)),(w=w.nodeName?[w]:w).forEach((function(T){T.inputmask?T.inputmask.setValue(D):(0,f.default)(T).trigger("setvalue",[D])}))},k.dependencyLib=f.default,h.default.Inputmask=k,l.default=k},5296:function(a,l,u){function c(y){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},c(y)}var d=M(u(9380)),f=M(u(2394));function p(y,x){for(var k=0;k<x.length;k++){var C=x[k];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(y,(w=C.key,D=void 0,D=(function(T,L){if(c(T)!=="object"||T===null)return T;var N=T[Symbol.toPrimitive];if(N!==void 0){var j=N.call(T,L);if(c(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(T)})(w,"string"),c(D)==="symbol"?D:String(D)),C)}var w,D}function h(y){var x=A();return function(){var k,C=g(y);if(x){var w=g(this).constructor;k=Reflect.construct(C,arguments,w)}else k=C.apply(this,arguments);return(function(D,T){if(T&&(c(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L})(D)})(this,k)}}function S(y){var x=typeof Map=="function"?new Map:void 0;return S=function(k){if(k===null||!(function(w){try{return Function.toString.call(w).indexOf("[native code]")!==-1}catch{return typeof w=="function"}})(k))return k;if(typeof k!="function")throw new TypeError("Super expression must either be null or a function");if(x!==void 0){if(x.has(k))return x.get(k);x.set(k,C)}function C(){return m(k,arguments,g(this).constructor)}return C.prototype=Object.create(k.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b(C,k)},S(y)}function m(y,x,k){return m=A()?Reflect.construct.bind():function(C,w,D){var T=[null];T.push.apply(T,w);var L=new(Function.bind.apply(C,T));return D&&b(L,D.prototype),L},m.apply(null,arguments)}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function b(y,x){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,C){return k.__proto__=C,k},b(y,x)}function g(y){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},g(y)}function M(y){return y&&y.__esModule?y:{default:y}}var v=d.default.document;if(v&&v.head&&v.head.attachShadow&&d.default.customElements&&d.default.customElements.get("input-mask")===void 0){var R=(function(y){(function(D,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(T&&T.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),T&&b(D,T)})(w,y);var x,k,C=h(w);function w(){var D;(function(G,I){if(!(G instanceof I))throw new TypeError("Cannot call a class as a function")})(this,w);var T=(D=C.call(this)).getAttributeNames(),L=D.attachShadow({mode:"closed"});for(var N in D.input=v.createElement("input"),D.input.type="text",L.appendChild(D.input),T)Object.prototype.hasOwnProperty.call(T,N)&&D.input.setAttribute(T[N],D.getAttribute(T[N]));var j=new f.default;return j.dataAttribute="",j.mask(D.input),D.input.inputmask.shadowRoot=L,D}return x=w,(k=[{key:"attributeChangedCallback",value:function(D,T,L){this.input.setAttribute(D,L)}},{key:"value",get:function(){return this.input.value},set:function(D){this.input.value=D}}])&&p(x.prototype,k),Object.defineProperty(x,"prototype",{writable:!1}),w})(S(HTMLElement));d.default.customElements.define("input-mask",R)}},2839:function(a,l){function u(m){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},u(m)}function c(m,A){return(function(b){if(Array.isArray(b))return b})(m)||(function(b,g){var M=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(M!=null){var v,R,y,x,k=[],C=!0,w=!1;try{if(y=(M=M.call(b)).next,g!==0)for(;!(C=(v=y.call(M)).done)&&(k.push(v.value),k.length!==g);C=!0);}catch(D){w=!0,R=D}finally{try{if(!C&&M.return!=null&&(x=M.return(),Object(x)!==x))return}finally{if(w)throw R}}return k}})(m,A)||(function(b,g){if(b){if(typeof b=="string")return d(b,g);var M=Object.prototype.toString.call(b).slice(8,-1);if(M==="Object"&&b.constructor&&(M=b.constructor.name),M==="Map"||M==="Set")return Array.from(b);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return d(b,g)}})(m,A)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function d(m,A){(A==null||A>m.length)&&(A=m.length);for(var b=0,g=new Array(A);b<A;b++)g[b]=m[b];return g}function f(m,A){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);A&&(g=g.filter((function(M){return Object.getOwnPropertyDescriptor(m,M).enumerable}))),b.push.apply(b,g)}return b}function p(m,A,b){return(A=(function(g){var M=(function(v,R){if(u(v)!=="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var x=y.call(v,R);if(u(x)!=="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(v)})(g,"string");return u(M)==="symbol"?M:String(M)})(A))in m?Object.defineProperty(m,A,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[A]=b,m}Object.defineProperty(l,"__esModule",{value:!0}),l.keys=l.keyCode=void 0,l.toKey=function(m,A){return S[m]||(A?String.fromCharCode(m):String.fromCharCode(m).toLowerCase())},l.toKeyCode=function(m){return h[m]};var h=l.keyCode=(function(m){for(var A=1;A<arguments.length;A++){var b=arguments[A]!=null?arguments[A]:{};A%2?f(Object(b),!0).forEach((function(g){p(m,g,b[g])})):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(b)):f(Object(b)).forEach((function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(b,g))}))}return m})({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),S=Object.entries(h).reduce((function(m,A){var b=c(A,2),g=b[0],M=b[1];return m[M]=m[M]===void 0?g:m[M],m}),{});l.keys=Object.entries(h).reduce((function(m,A){var b=c(A,2),g=b[0];return b[1],m[g]=g==="Space"?" ":g,m}),{})},2391:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.analyseMask=function(A,b,g){var M,v,R,y,x,k,C=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,w=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,D=!1,T=new p.default,L=[],N=[],j=!1;function G(ie,te,fe){fe=fe!==void 0?fe:ie.matches.length;var le=ie.matches[fe-1];if(b){if(te.indexOf("[")===0||D&&/\\d|\\s|\\w|\\p/i.test(te)||te==="."){var ve=g.casing?"i":"";/\\p\{.*}/i.test(te)&&(ve+="u"),ie.matches.splice(fe++,0,{fn:new RegExp(te,ve),static:!1,optionality:!1,newBlockMarker:le===void 0?"master":le.def!==te,casing:null,def:te,placeholder:h(g.placeholder)==="object"?g.placeholder[T.matches.length]:void 0,nativeDef:te})}else D&&(te=te[te.length-1]),te.split("").forEach((function(ke,Pe){le=ie.matches[fe-1],ie.matches.splice(fe++,0,{fn:/[a-z]/i.test(g.staticDefinitionSymbol||ke)?new RegExp("["+(g.staticDefinitionSymbol||ke)+"]",g.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:le===void 0?"master":le.def!==ke&&le.static!==!0,casing:null,def:g.staticDefinitionSymbol||ke,placeholder:g.staticDefinitionSymbol!==void 0?ke:h(g.placeholder)==="object"?g.placeholder[T.matches.length]:void 0,nativeDef:(D?"'":"")+ke})}));D=!1}else{var ye=g.definitions&&g.definitions[te]||g.usePrototypeDefinitions&&f.default.prototype.definitions[te];ye&&!D?ie.matches.splice(fe++,0,{fn:ye.validator?typeof ye.validator=="string"?new RegExp(ye.validator,g.casing?"i":""):new function(){this.test=ye.validator}:/./,static:ye.static||!1,optionality:ye.optional||!1,defOptionality:ye.optional||!1,newBlockMarker:le===void 0||ye.optional?"master":le.def!==(ye.definitionSymbol||te),casing:ye.casing,def:ye.definitionSymbol||te,placeholder:ye.placeholder,nativeDef:te,generated:ye.generated}):(ie.matches.splice(fe++,0,{fn:/[a-z]/i.test(g.staticDefinitionSymbol||te)?new RegExp("["+(g.staticDefinitionSymbol||te)+"]",g.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:le===void 0?"master":le.def!==te&&le.static!==!0,casing:null,def:g.staticDefinitionSymbol||te,placeholder:g.staticDefinitionSymbol!==void 0?te:void 0,nativeDef:(D?"'":"")+te}),D=!1)}}function I(){if(L.length>0){if(G(y=L[L.length-1],v),y.isAlternator){x=L.pop();for(var ie=0;ie<x.matches.length;ie++)x.matches[ie].isGroup&&(x.matches[ie].isGroup=!1);L.length>0?(y=L[L.length-1]).matches.push(x):T.matches.push(x)}}else G(T,v)}function V(ie){var te=new p.default(!0);return te.openGroup=!1,te.matches=ie,te}function J(){if((R=L.pop()).openGroup=!1,R!==void 0)if(L.length>0){if((y=L[L.length-1]).matches.push(R),y.isAlternator){x=L.pop();for(var ie=0;ie<x.matches.length;ie++)x.matches[ie].isGroup=!1,x.matches[ie].alternatorGroup=!1;L.length>0?(y=L[L.length-1]).matches.push(x):T.matches.push(x)}}else T.matches.push(R);else I()}function B(ie){var te=ie.pop();return te.isQuantifier&&(te=V([ie.pop(),te])),te}for(b&&(g.optionalmarker[0]=void 0,g.optionalmarker[1]=void 0);M=b?w.exec(A):C.exec(A);){if(v=M[0],b){switch(v.charAt(0)){case"?":v="{0,1}";break;case"+":case"*":v="{"+v+"}";break;case"|":if(L.length===0){var P=V(T.matches);P.openGroup=!0,L.push(P),T.matches=[],j=!0}}switch(v){case"\\d":v="[0-9]";break;case"\\p":v+=w.exec(A)[0],v+=w.exec(A)[0]}}if(D)I();else switch(v.charAt(0)){case"$":case"^":b||I();break;case g.escapeChar:D=!0,b&&I();break;case g.optionalmarker[1]:case g.groupmarker[1]:J();break;case g.optionalmarker[0]:L.push(new p.default(!1,!0));break;case g.groupmarker[0]:L.push(new p.default(!0));break;case g.quantifiermarker[0]:var Q=new p.default(!1,!1,!0),z=(v=v.replace(/[{}?]/g,"")).split("|"),$=z[0].split(","),ee=isNaN($[0])?$[0]:parseInt($[0]),K=$.length===1?ee:isNaN($[1])?$[1]:parseInt($[1]),ae=isNaN(z[1])?z[1]:parseInt(z[1]);ee!=="*"&&ee!=="+"||(ee=K==="*"?0:1),Q.quantifier={min:ee,max:K,jit:ae};var W=L.length>0?L[L.length-1].matches:T.matches;(M=W.pop()).isGroup||(M=V([M])),W.push(M),W.push(Q);break;case g.alternatormarker:if(L.length>0){var H=(y=L[L.length-1]).matches[y.matches.length-1];k=y.openGroup&&(H.matches===void 0||H.isGroup===!1&&H.isAlternator===!1)?L.pop():B(y.matches)}else k=B(T.matches);if(k.isAlternator)L.push(k);else if(k.alternatorGroup?(x=L.pop(),k.alternatorGroup=!1):x=new p.default(!1,!1,!1,!0),x.matches.push(k),L.push(x),k.openGroup){k.openGroup=!1;var ne=new p.default(!0);ne.alternatorGroup=!0,L.push(ne)}break;default:I()}}for(j&&J();L.length>0;)R=L.pop(),T.matches.push(R);return T.matches.length>0&&((function ie(te){te&&te.matches&&te.matches.forEach((function(fe,le){var ve=te.matches[le+1];(ve===void 0||ve.matches===void 0||ve.isQuantifier===!1)&&fe&&fe.isGroup&&(fe.isGroup=!1,b||(G(fe,g.groupmarker[0],0),fe.openGroup!==!0&&G(fe,g.groupmarker[1]))),ie(fe)}))})(T),N.push(T)),(g.numericInput||g.isRTL)&&(function ie(te){for(var fe in te.matches=te.matches.reverse(),te.matches)if(Object.prototype.hasOwnProperty.call(te.matches,fe)){var le=parseInt(fe);if(te.matches[fe].isQuantifier&&te.matches[le+1]&&te.matches[le+1].isGroup){var ve=te.matches[fe];te.matches.splice(fe,1),te.matches.splice(le+1,0,ve)}te.matches[fe].matches!==void 0?te.matches[fe]=ie(te.matches[fe]):te.matches[fe]=((ye=te.matches[fe])===g.optionalmarker[0]?ye=g.optionalmarker[1]:ye===g.optionalmarker[1]?ye=g.optionalmarker[0]:ye===g.groupmarker[0]?ye=g.groupmarker[1]:ye===g.groupmarker[1]&&(ye=g.groupmarker[0]),ye)}var ye;return te})(N[0]),N},l.generateMaskSet=function(A,b){var g;function M(y,x){var k=x.repeat,C=x.groupmarker,w=x.quantifiermarker,D=x.keepStatic;if(k>0||k==="*"||k==="+"){var T=k==="*"?0:k==="+"?1:k;if(T!=k)y=C[0]+y+C[1]+w[0]+T+","+k+w[1];else for(var L=y,N=1;N<T;N++)y+=L}if(D===!0){var j=y.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));j&&j.forEach((function(G,I){var V=(function(P,Q){return(function(z){if(Array.isArray(z))return z})(P)||(function(z,$){var ee=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(ee!=null){var K,ae,W,H,ne=[],ie=!0,te=!1;try{if(W=(ee=ee.call(z)).next,$!==0)for(;!(ie=(K=W.call(ee)).done)&&(ne.push(K.value),ne.length!==$);ie=!0);}catch(fe){te=!0,ae=fe}finally{try{if(!ie&&ee.return!=null&&(H=ee.return(),Object(H)!==H))return}finally{if(te)throw ae}}return ne}})(P,Q)||(function(z,$){if(z){if(typeof z=="string")return S(z,$);var ee=Object.prototype.toString.call(z).slice(8,-1);if(ee==="Object"&&z.constructor&&(ee=z.constructor.name),ee==="Map"||ee==="Set")return Array.from(z);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return S(z,$)}})(P,Q)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(G.split("["),2),J=V[0],B=V[1];B=B.replace("]",""),y=y.replace(new RegExp("".concat((0,d.default)(J),"\\[").concat((0,d.default)(B),"\\]")),J.charAt(0)===B.charAt(0)?"(".concat(J,"|").concat(J).concat(B,")"):"".concat(J,"[").concat(B,"]"))}))}return y}function v(y,x,k){var C,w,D=!1;return y!==null&&y!==""||((D=k.regex!==null)?y=(y=k.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(D=!0,y=".*")),y.length===1&&k.greedy===!1&&k.repeat!==0&&(k.placeholder=""),y=M(y,k),w=D?"regex_"+k.regex:k.numericInput?y.split("").reverse().join(""):y,k.keepStatic!==null&&(w="ks_"+k.keepStatic+w),h(k.placeholder)==="object"&&(w="ph_"+JSON.stringify(k.placeholder)+w),f.default.prototype.masksCache[w]===void 0||b===!0?(C={mask:y,maskToken:f.default.prototype.analyseMask(y,D,k),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:x,maskLength:void 0,jitOffset:{}},b!==!0&&(f.default.prototype.masksCache[w]=C,C=c.default.extend(!0,{},f.default.prototype.masksCache[w]))):C=c.default.extend(!0,{},f.default.prototype.masksCache[w]),C}if(typeof A.mask=="function"&&(A.mask=A.mask(A)),Array.isArray(A.mask)){if(A.mask.length>1){A.keepStatic===null&&(A.keepStatic=!0);var R=A.groupmarker[0];return(A.isRTL?A.mask.reverse():A.mask).forEach((function(y){R.length>1&&(R+=A.alternatormarker),y.mask!==void 0&&typeof y.mask!="function"?R+=y.mask:R+=y})),v(R+=A.groupmarker[1],A.mask,A)}A.mask=A.mask.pop()}return g=A.mask&&A.mask.mask!==void 0&&typeof A.mask.mask!="function"?v(A.mask.mask,A.mask,A):v(A.mask,A.mask,A),A.keepStatic===null&&(A.keepStatic=!1),g};var c=m(u(4963)),d=m(u(7184)),f=m(u(2394)),p=m(u(9695));function h(A){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},h(A)}function S(A,b){(b==null||b>A.length)&&(b=A.length);for(var g=0,M=new Array(b);g<b;g++)M[g]=A[g];return M}function m(A){return A&&A.__esModule?A:{default:A}}},157:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mask=function(){var m=this,A=this.opts,b=this.el,g=this.dependencyLib;f.EventRuler.off(b);var M=(function(y,x){var k=y.getAttribute("type"),C=y.tagName.toLowerCase()==="input"&&x.supportsInputType.includes(k)||y.isContentEditable||y.tagName.toLowerCase()==="textarea";if(!C)if(y.tagName.toLowerCase()==="input"){var w=document.createElement("input");w.setAttribute("type",k),C=w.type==="text",w=null}else C="partial";return C!==!1?(function(D){var T,L;function N(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():h.getLastValidPosition.call(m)!==-1||x.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&x.clearMaskOnLostFocus?(m.isRTL?p.clearOptionalTail.call(m,h.getBuffer.call(m).slice()).reverse():p.clearOptionalTail.call(m,h.getBuffer.call(m).slice())).join(""):T.call(this):"":T.call(this)}function j(I){L.call(this,I),this.inputmask&&(0,p.applyInputValue)(this,I)}if(!D.inputmask.__valueGet){if(x.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var G=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(D),"value"):void 0;G&&G.get&&G.set?(T=G.get,L=G.set,Object.defineProperty(D,"value",{get:N,set:j,configurable:!0})):D.tagName.toLowerCase()!=="input"&&(T=function(){return this.textContent},L=function(I){this.textContent=I},Object.defineProperty(D,"value",{get:N,set:j,configurable:!0}))}else document.__lookupGetter__&&D.__lookupGetter__("value")&&(T=D.__lookupGetter__("value"),L=D.__lookupSetter__("value"),D.__defineGetter__("value",N),D.__defineSetter__("value",j));D.inputmask.__valueGet=T,D.inputmask.__valueSet=L}D.inputmask._valueGet=function(I){return m.isRTL&&I!==!0?T.call(this.el).split("").reverse().join(""):T.call(this.el)},D.inputmask._valueSet=function(I,V){L.call(this.el,I==null?"":V!==!0&&m.isRTL?I.split("").reverse().join(""):I)},T===void 0&&(T=function(){return this.value},L=function(I){this.value=I},(function(I){if(g.valHooks&&(g.valHooks[I]===void 0||g.valHooks[I].inputmaskpatch!==!0)){var V=g.valHooks[I]&&g.valHooks[I].get?g.valHooks[I].get:function(B){return B.value},J=g.valHooks[I]&&g.valHooks[I].set?g.valHooks[I].set:function(B,P){return B.value=P,B};g.valHooks[I]={get:function(B){if(B.inputmask){if(B.inputmask.opts.autoUnmask)return B.inputmask.unmaskedvalue();var P=V(B);return h.getLastValidPosition.call(m,void 0,void 0,B.inputmask.maskset.validPositions)!==-1||x.nullable!==!0?P:""}return V(B)},set:function(B,P){var Q=J(B,P);return B.inputmask&&(0,p.applyInputValue)(B,P),Q},inputmaskpatch:!0}}})(D.type),(function(I){f.EventRuler.on(I,"mouseenter",(function(){var V=this,J=V.inputmask._valueGet(!0);J!=(V.inputmask.isRTL?h.getBuffer.call(V.inputmask).slice().reverse():h.getBuffer.call(V.inputmask)).join("")&&(0,p.applyInputValue)(V,J)}))})(D))}})(y):y.inputmask=void 0,C})(b,A);if(M!==!1){m.originalPlaceholder=b.placeholder,m.maxLength=b!==void 0?b.maxLength:void 0,m.maxLength===-1&&(m.maxLength=void 0),"inputMode"in b&&b.getAttribute("inputmode")===null&&(b.inputMode=A.inputmode,b.setAttribute("inputmode",A.inputmode)),M===!0&&(A.showMaskOnFocus=A.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(b.autocomplete)===-1,c.iphone&&(A.insertModeVisual=!1,b.setAttribute("autocorrect","off")),f.EventRuler.on(b,"submit",d.EventHandlers.submitEvent),f.EventRuler.on(b,"reset",d.EventHandlers.resetEvent),f.EventRuler.on(b,"blur",d.EventHandlers.blurEvent),f.EventRuler.on(b,"focus",d.EventHandlers.focusEvent),f.EventRuler.on(b,"invalid",d.EventHandlers.invalidEvent),f.EventRuler.on(b,"click",d.EventHandlers.clickEvent),f.EventRuler.on(b,"mouseleave",d.EventHandlers.mouseleaveEvent),f.EventRuler.on(b,"mouseenter",d.EventHandlers.mouseenterEvent),f.EventRuler.on(b,"paste",d.EventHandlers.pasteEvent),f.EventRuler.on(b,"cut",d.EventHandlers.cutEvent),f.EventRuler.on(b,"complete",A.oncomplete),f.EventRuler.on(b,"incomplete",A.onincomplete),f.EventRuler.on(b,"cleared",A.oncleared),A.inputEventOnly!==!0&&f.EventRuler.on(b,"keydown",d.EventHandlers.keyEvent),(c.mobile||A.inputEventOnly)&&b.removeAttribute("maxLength"),f.EventRuler.on(b,"input",d.EventHandlers.inputFallBackEvent)),f.EventRuler.on(b,"setvalue",d.EventHandlers.setValueEvent),m.applyMaskHook===void 0||m.applyMaskHook(),h.getBufferTemplate.call(m).join(""),m.undoValue=m._valueGet(!0);var v=(b.inputmask.shadowRoot||b.ownerDocument).activeElement;if(b.inputmask._valueGet(!0)!==""||A.clearMaskOnLostFocus===!1||v===b){(0,p.applyInputValue)(b,b.inputmask._valueGet(!0),A);var R=h.getBuffer.call(m).slice();S.isComplete.call(m,R)===!1&&A.clearIncomplete&&h.resetMaskSet.call(m,!1),A.clearMaskOnLostFocus&&v!==b&&(h.getLastValidPosition.call(m)===-1?R=[]:p.clearOptionalTail.call(m,R)),(A.clearMaskOnLostFocus===!1||A.showMaskOnFocus&&v===b||b.inputmask._valueGet(!0)!=="")&&(0,p.writeBuffer)(b,R),v===b&&h.caret.call(m,b,h.seekNext.call(m,h.getLastValidPosition.call(m)))}}};var c=u(9845),d=u(6030),f=u(9716),p=u(7760),h=u(8711),S=u(7215)},9695:function(a,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d,f){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=c||!1,this.isQuantifier=d||!1,this.isAlternator=f||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(a,l){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),c=u.length>>>0;if(c===0)return!1;for(var d=0|l,f=Math.max(d>=0?d:c-Math.abs(d),0);f<c;){if(u[f]===a)return!0;f++}return!1}})},9302:function(){var a=Function.bind.call(Function.call,Array.prototype.reduce),l=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),c=Object.keys;Object.entries||(Object.entries=function(d){return a(c(d),(function(f,p){return u(f,typeof p=="string"&&l(d,p)?[[p,d[p]]]:[])}),[])})},7149:function(){function a(l){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},a(l)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=a("test".__proto__)==="object"?function(l){return l.__proto__}:function(l){return l.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(a,l){return typeof l!="number"&&(l=0),!(l+a.length>this.length)&&this.indexOf(a,l)!==-1})},8711:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.caret=function(g,M,v,R,y){var x,k=this,C=this.opts;if(M===void 0)return"selectionStart"in g&&"selectionEnd"in g?(M=g.selectionStart,v=g.selectionEnd):d.default.getSelection?(x=d.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==g&&x.commonAncestorContainer!==g||(M=x.startOffset,v=x.endOffset):document.selection&&document.selection.createRange&&(v=(M=0-(x=document.selection.createRange()).duplicate().moveStart("character",-g.inputmask._valueGet().length))+x.text.length),{begin:R?M:b.call(k,M),end:R?v:b.call(k,v)};if(Array.isArray(M)&&(v=k.isRTL?M[0]:M[1],M=k.isRTL?M[1]:M[0]),M.begin!==void 0&&(v=k.isRTL?M.begin:M.end,M=k.isRTL?M.end:M.begin),typeof M=="number"){M=R?M:b.call(k,M),v=typeof(v=R?v:b.call(k,v))=="number"?v:M;var w=parseInt(((g.ownerDocument.defaultView||d.default).getComputedStyle?(g.ownerDocument.defaultView||d.default).getComputedStyle(g,null):g.currentStyle).fontSize)*v;if(g.scrollLeft=w>g.scrollWidth?w:0,g.inputmask.caretPos={begin:M,end:v},C.insertModeVisual&&C.insertMode===!1&&M===v&&(y||v++),g===(g.inputmask.shadowRoot||g.ownerDocument).activeElement){if("setSelectionRange"in g)g.setSelectionRange(M,v);else if(d.default.getSelection){if(x=document.createRange(),g.firstChild===void 0||g.firstChild===null){var D=document.createTextNode("");g.appendChild(D)}x.setStart(g.firstChild,M<g.inputmask._valueGet().length?M:g.inputmask._valueGet().length),x.setEnd(g.firstChild,v<g.inputmask._valueGet().length?v:g.inputmask._valueGet().length),x.collapse(!0);var T=d.default.getSelection();T.removeAllRanges(),T.addRange(x)}else g.createTextRange&&((x=g.createTextRange()).collapse(!0),x.moveEnd("character",v),x.moveStart("character",M),x.select());g.inputmask.caretHook===void 0||g.inputmask.caretHook.call(k,{begin:M,end:v})}}},l.determineLastRequiredPosition=function(g){var M,v,R=this,y=R.maskset,x=R.dependencyLib,k=S.call(R),C={},w=y.validPositions[k],D=p.getMaskTemplate.call(R,!0,S.call(R),!0,!0),T=D.length,L=w!==void 0?w.locator.slice():void 0;for(M=k+1;M<D.length;M++)L=(v=p.getTestTemplate.call(R,M,L,M-1)).locator.slice(),C[M]=x.extend(!0,{},v);var N=w&&w.alternation!==void 0?w.locator[w.alternation]:void 0;for(M=T-1;M>k&&((v=C[M]).match.optionality||v.match.optionalQuantifier&&v.match.newBlockMarker||N&&(N!==C[M].locator[w.alternation]&&v.match.static!==!0||v.match.static===!0&&v.locator[w.alternation]&&f.checkAlternationMatch.call(R,v.locator[w.alternation].toString().split(","),N.toString().split(","))&&p.getTests.call(R,M)[0].def!==""))&&D[M]===p.getPlaceholder.call(R,M,v.match);M--)T--;return g?{l:T,def:C[T]?C[T].match:void 0}:T},l.determineNewCaretPosition=function(g,M,v){var R,y,x,k=this,C=k.maskset,w=k.opts;if(M&&(k.isRTL?g.end=g.begin:g.begin=g.end),g.begin===g.end){switch(v=v||w.positionCaretOnClick){case"none":break;case"select":g={begin:0,end:h.call(k).length};break;case"ignore":g.end=g.begin=A.call(k,S.call(k));break;case"radixFocus":if(k.clicked>1&&C.validPositions.length===0)break;if((function(G){if(w.radixPoint!==""&&w.digits!==0){var I=C.validPositions;if(I[G]===void 0||I[G].input===void 0){if(G<A.call(k,-1))return!0;var V=h.call(k).indexOf(w.radixPoint);if(V!==-1){for(var J=0,B=I.length;J<B;J++)if(I[J]&&V<J&&I[J].input!==p.getPlaceholder.call(k,J))return!1;return!0}}}return!1})(g.begin)){var D=h.call(k).join("").indexOf(w.radixPoint);g.end=g.begin=w.numericInput?A.call(k,D):D;break}default:if(R=g.begin,y=S.call(k,R,!0),R<=(x=A.call(k,y!==-1||m.call(k,0)?y:-1)))g.end=g.begin=m.call(k,R,!1,!0)?R:A.call(k,R);else{var T=C.validPositions[y],L=p.getTestTemplate.call(k,x,T?T.match.locator:void 0,T),N=p.getPlaceholder.call(k,x,L.match);if(N!==""&&h.call(k)[x]!==N&&L.match.optionalQuantifier!==!0&&L.match.newBlockMarker!==!0||!m.call(k,x,w.keepStatic,!0)&&L.match.def===N){var j=A.call(k,x);(R>=j||R===x)&&(x=j)}g.end=g.begin=x}}return g}},l.getBuffer=h,l.getBufferTemplate=function(){var g=this.maskset;return g._buffer===void 0&&(g._buffer=p.getMaskTemplate.call(this,!1,1),g.buffer===void 0&&(g.buffer=g._buffer.slice())),g._buffer},l.getLastValidPosition=S,l.isMask=m,l.resetMaskSet=function(g){var M=this.maskset;M.buffer=void 0,g!==!0&&(M.validPositions=[],M.p=0),g===!1&&(M.tests={},M.jitOffset={})},l.seekNext=A,l.seekPrevious=function(g,M){var v=this,R=g-1;if(g<=0)return 0;for(;R>0&&(M===!0&&(p.getTest.call(v,R).match.newBlockMarker!==!0||!m.call(v,R,void 0,!0))||M!==!0&&!m.call(v,R,void 0,!0));)R--;return R},l.translatePosition=b;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=u(7215),p=u(4713);function h(g){var M=this,v=M.maskset;return v.buffer!==void 0&&g!==!0||(v.buffer=p.getMaskTemplate.call(M,!0,S.call(M),!0),v._buffer===void 0&&(v._buffer=v.buffer.slice())),v.buffer}function S(g,M,v){var R=this.maskset,y=-1,x=-1,k=v||R.validPositions;g===void 0&&(g=-1);for(var C=0,w=k.length;C<w;C++)k[C]&&(M||k[C].generatedInput!==!0)&&(C<=g&&(y=C),C>=g&&(x=C));return y===-1||y===g?x:x===-1||g-y<x-g?y:x}function m(g,M,v){var R=this,y=this.maskset,x=p.getTestTemplate.call(R,g).match;if(x.def===""&&(x=p.getTest.call(R,g).match),x.static!==!0)return x.fn;if(v===!0&&y.validPositions[g]!==void 0&&y.validPositions[g].generatedInput!==!0)return!0;if(M!==!0&&g>-1){if(v){var k=p.getTests.call(R,g);return k.length>1+(k[k.length-1].match.def===""?1:0)}var C=p.determineTestTemplate.call(R,g,p.getTests.call(R,g)),w=p.getPlaceholder.call(R,g,C.match);return C.match.def!==w}return!1}function A(g,M,v){var R=this;v===void 0&&(v=!0);for(var y=g+1;p.getTest.call(R,y).match.def!==""&&(M===!0&&(p.getTest.call(R,y).match.newBlockMarker!==!0||!m.call(R,y,void 0,!0))||M!==!0&&!m.call(R,y,void 0,v));)y++;return y}function b(g){var M=this.opts,v=this.el;return!this.isRTL||typeof g!="number"||M.greedy&&M.placeholder===""||!v||(g=this._valueGet().length-g)<0&&(g=0),g}},4713:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.determineTestTemplate=b,l.getDecisionTaker=S,l.getMaskTemplate=function(R,y,x,k,C){var w=this,D=this.opts,T=this.maskset,L=D.greedy;C&&D.greedy&&(D.greedy=!1,w.maskset.tests={}),y=y||0;var N,j,G,I,V=[],J=0;do{if(R===!0&&T.validPositions[J])j=(G=C&&T.validPositions[J].match.optionality&&T.validPositions[J+1]===void 0&&(T.validPositions[J].generatedInput===!0||T.validPositions[J].input==D.skipOptionalPartCharacter&&J>0)?b.call(w,J,v.call(w,J,N,J-1)):T.validPositions[J]).match,N=G.locator.slice(),V.push(x===!0?G.input:x===!1?j.nativeDef:m.call(w,J,j));else{j=(G=A.call(w,J,N,J-1)).match,N=G.locator.slice();var B=k!==!0&&(D.jitMasking!==!1?D.jitMasking:j.jit);(I=(I||T.validPositions[J-1])&&j.static&&j.def!==D.groupSeparator&&j.fn===null)||B===!1||B===void 0||typeof B=="number"&&isFinite(B)&&B>J?V.push(x===!1?j.nativeDef:m.call(w,V.length,j)):I=!1}J++}while(j.static!==!0||j.def!==""||y>J);return V[V.length-1]===""&&V.pop(),x===!1&&T.maskLength!==void 0||(T.maskLength=J-1),D.greedy=L,V},l.getPlaceholder=m,l.getTest=g,l.getTestTemplate=A,l.getTests=v,l.isSubsetOf=M;var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711);function p(R){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},p(R)}function h(R,y){var x=(R.alternation!=null?R.mloc[S(R)]:R.locator).join("");if(x!=="")for(x=x.split(":")[0];x.length<y;)x+="0";return x}function S(R){var y=R.locator[R.alternation];return typeof y=="string"&&y.length>0&&(y=y.split(",")[0]),y!==void 0?y.toString():""}function m(R,y,x){var k=this,C=this.opts,w=this.maskset;if((y=y||g.call(k,R).match).placeholder!==void 0||x===!0){if(y.placeholder!==""&&y.static===!0&&y.generated!==!0){var D=f.getLastValidPosition.call(k,R),T=f.seekNext.call(k,D);return(x?R<=T:R<T)?C.staticDefinitionSymbol&&y.static?y.nativeDef:y.def:typeof y.placeholder=="function"?y.placeholder(C):y.placeholder}return typeof y.placeholder=="function"?y.placeholder(C):y.placeholder}if(y.static===!0){if(R>-1&&w.validPositions[R]===void 0){var L,N=v.call(k,R),j=[];if(typeof C.placeholder=="string"&&N.length>1+(N[N.length-1].match.def===""?1:0)){for(var G=0;G<N.length;G++)if(N[G].match.def!==""&&N[G].match.optionality!==!0&&N[G].match.optionalQuantifier!==!0&&(N[G].match.static===!0||L===void 0||N[G].match.fn.test(L.match.def,w,R,!0,C)!==!1)&&(j.push(N[G]),N[G].match.static===!0&&(L=N[G]),j.length>1&&/[0-9a-bA-Z]/.test(j[0].match.def)))return C.placeholder.charAt(R%C.placeholder.length)}}return y.def}return p(C.placeholder)==="object"?y.def:C.placeholder.charAt(R%C.placeholder.length)}function A(R,y,x){return this.maskset.validPositions[R]||b.call(this,R,v.call(this,R,y&&y.slice(),x))}function b(R,y){var x=this.opts,k=0,C=(function(I,V){var J=0,B=!1;return V.forEach((function(P){P.match.optionality&&(J!==0&&J!==P.match.optionality&&(B=!0),(J===0||J>P.match.optionality)&&(J=P.match.optionality))})),J&&(I==0||V.length==1?J=0:B||(J=0)),J})(R,y);R=R>0?R-1:0;var w,D,T,L=h(g.call(this,R));x.greedy&&y.length>1&&y[y.length-1].match.def===""&&(k=1);for(var N=0;N<y.length-k;N++){var j=y[N];w=h(j,L.length);var G=Math.abs(w-L);(j.unMatchedAlternationStopped!==!0||y.filter((function(I){return I.unMatchedAlternationStopped!==!0})).length<=1)&&(D===void 0||w!==""&&G<D||T&&!x.greedy&&T.match.optionality&&T.match.optionality-C>0&&T.match.newBlockMarker==="master"&&(!j.match.optionality||j.match.optionality-C<1||!j.match.newBlockMarker)||T&&!x.greedy&&T.match.optionalQuantifier&&!j.match.optionalQuantifier)&&(D=G,T=j)}return T}function g(R,y){var x=this.maskset;return x.validPositions[R]?x.validPositions[R]:(y||v.call(this,R))[0]}function M(R,y,x){function k(C){for(var w,D=[],T=-1,L=0,N=C.length;L<N;L++)if(C.charAt(L)==="-")for(w=C.charCodeAt(L+1);++T<w;)D.push(String.fromCharCode(T));else T=C.charCodeAt(L),D.push(C.charAt(L));return D.join("")}return R.match.def===y.match.nativeDef||!(!(x.regex||R.match.fn instanceof RegExp&&y.match.fn instanceof RegExp)||R.match.static===!0||y.match.static===!0)&&(y.match.fn.source==="."||k(y.match.fn.source.replace(/[[\]/]/g,"")).indexOf(k(R.match.fn.source.replace(/[[\]/]/g,"")))!==-1)}function v(R,y,x){var k,C,w=this,D=this.dependencyLib,T=this.maskset,L=this.opts,N=this.el,j=T.maskToken,G=y?x:0,I=y?y.slice():[0],V=[],J=!1,B=y?y.join(""):"",P=!1;function Q(ae,W,H,ne){function ie(le,ve,ye){function ke(q,X){var de=X.matches.indexOf(q)===0;return de||X.matches.every((function(ue,Ee){return ue.isQuantifier===!0?de=ke(q,X.matches[Ee-1]):Object.prototype.hasOwnProperty.call(ue,"matches")&&(de=ke(q,ue)),!de})),de}function Pe(q,X,de){var ue,Ee;if((T.tests[q]||T.validPositions[q])&&(T.validPositions[q]?[T.validPositions[q]]:T.tests[q]).every((function(Re,Ie){if(Re.mloc[X])return ue=Re,!1;var ot=de!==void 0?de:Re.alternation,Qe=Re.locator[ot]!==void 0?Re.locator[ot].toString().indexOf(X):-1;return(Ee===void 0||Qe<Ee)&&Qe!==-1&&(ue=Re,Ee=Qe),!0})),ue){var Be=ue.locator[ue.alternation],xe=ue.mloc[X]||ue.mloc[Be]||ue.locator;return xe[xe.length-1].toString().indexOf(":")!==-1&&xe.pop(),xe.slice((de!==void 0?de:ue.alternation)+1)}return de!==void 0?Pe(q,X):void 0}function Ne(q,X){return q.match.static===!0&&X.match.static!==!0&&X.match.fn.test(q.match.def,T,R,!1,L,!1)}function Le(q,X){var de=q.alternation,ue=X===void 0||de<=X.alternation&&q.locator[de].toString().indexOf(X.locator[de])===-1;if(!ue&&de>X.alternation){for(var Ee=0;Ee<de;Ee++)if(q.locator[Ee]!==X.locator[Ee]){de=Ee,ue=!0;break}}return!!ue&&(function(Be){q.mloc=q.mloc||{};var xe=q.locator[Be];if(xe!==void 0){if(typeof xe=="string"&&(xe=xe.split(",")[0]),q.mloc[xe]===void 0&&(q.mloc[xe]=q.locator.slice(),q.mloc[xe].push(":".concat(q.alternation))),X!==void 0){for(var Re in X.mloc)typeof Re=="string"&&(Re=parseInt(Re.split(",")[0])),q.mloc[Re+0]=X.mloc[Re];q.locator[Be]=Object.keys(q.mloc).join(",")}return q.alternation>Be&&(q.alternation=Be),!0}return q.alternation=void 0,!1})(de)}function U(q,X){if(q.locator.length!==X.locator.length)return!1;for(var de=q.alternation+1;de<q.locator.length;de++)if(q.locator[de]!==X.locator[de])return!1;return!0}if(G>R+L._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(T.mask));if(G===R&&le.matches===void 0){if(V.push({match:le,locator:ve.reverse(),cd:B,mloc:{}}),!le.optionality||ye!==void 0||!(L.definitions&&L.definitions[le.nativeDef]&&L.definitions[le.nativeDef].optional||d.default.prototype.definitions[le.nativeDef]&&d.default.prototype.definitions[le.nativeDef].optional))return!0;J=!0,G=R}else if(le.matches!==void 0){if(le.isGroup&&ye!==le)return(function(){if(le=ie(ae.matches[ae.matches.indexOf(le)+1],ve,ye))return!0})();if(le.isOptional)return(function(){var q=le,X=V.length;if(le=Q(le,W,ve,ye),V.length>0){if(V.forEach((function(de,ue){ue>=X&&(de.match.optionality=de.match.optionality?de.match.optionality+1:1)})),k=V[V.length-1].match,ye!==void 0||!ke(k,q))return le;J=!0,G=R}})();if(le.isAlternator)return(function(){function q(F){for(var E,O=F.matches[0].matches?F.matches[0].matches.length:1,_=0;_<F.matches.length&&O===(E=F.matches[_].matches?F.matches[_].matches.length:1);_++);return O!==E}w.hasAlternator=!0;var X,de=le,ue=[],Ee=V.slice(),Be=ve.length,xe=W.length>0?W.shift():-1;if(xe===-1||typeof xe=="string"){var Re,Ie=G,ot=W.slice(),Qe=[];if(typeof xe=="string")Qe=xe.split(",");else for(Re=0;Re<de.matches.length;Re++)Qe.push(Re.toString());if(T.excludes[R]!==void 0){for(var ge=Qe.slice(),We=0,Me=T.excludes[R].length;We<Me;We++){var Z=T.excludes[R][We].toString().split(":");ve.length==Z[1]&&Qe.splice(Qe.indexOf(Z[0]),1)}Qe.length===0&&(delete T.excludes[R],Qe=ge)}(L.keepStatic===!0||isFinite(parseInt(L.keepStatic))&&Ie>=L.keepStatic)&&(Qe=Qe.slice(0,1));for(var re=0;re<Qe.length;re++){Re=parseInt(Qe[re]),V=[],W=typeof xe=="string"&&Pe(G,Re,Be)||ot.slice();var He=de.matches[Re];if(He&&ie(He,[Re].concat(ve),ye))le=!0;else if(re===0&&(P=q(de)),He&&He.matches&&He.matches.length>de.matches[0].matches.length)break;X=V.slice(),G=Ie,V=[];for(var Ue=0;Ue<X.length;Ue++){var Oe=X[Ue],Se=!1;Oe.alternation=Oe.alternation||Be,Le(Oe);for(var bt=0;bt<ue.length;bt++){var nt=ue[bt];if(typeof xe!="string"||Oe.alternation!==void 0&&Qe.includes(Oe.locator[Oe.alternation].toString())){if(Oe.match.nativeDef===nt.match.nativeDef){Se=!0,Le(nt,Oe);break}if(M(Oe,nt,L)){Le(Oe,nt)&&(Se=!0,ue.splice(ue.indexOf(nt),0,Oe));break}if(M(nt,Oe,L)){Le(nt,Oe);break}if(Ne(Oe,nt)){U(Oe,nt)||N.inputmask.userOptions.keepStatic!==void 0?Le(Oe,nt)&&(Se=!0,ue.splice(ue.indexOf(nt),0,Oe)):L.keepStatic=!0;break}if(Ne(nt,Oe)){Le(nt,Oe);break}}}Se||ue.push(Oe)}}V=Ee.concat(ue),G=R,J=V.length>0&&P,le=ue.length>0&&!P,P&&J&&!le&&V.forEach((function(F,E){F.unMatchedAlternationStopped=!0})),W=ot.slice()}else le=ie(de.matches[xe]||ae.matches[xe],[xe].concat(ve),ye);if(le)return!0})();if(le.isQuantifier&&ye!==ae.matches[ae.matches.indexOf(le)-1])return(function(){for(var q=le,X=!1,de=W.length>0?W.shift():0;de<(isNaN(q.quantifier.max)?de+1:q.quantifier.max)&&G<=R;de++){var ue=ae.matches[ae.matches.indexOf(q)-1];if(le=ie(ue,[de].concat(ve),ue)){if(V.forEach((function(Ee,Be){(k=z(ue,Ee.match)?Ee.match:V[V.length-1].match).optionalQuantifier=de>=q.quantifier.min,k.jit=(de+1)*(ue.matches.indexOf(k)+1)>q.quantifier.jit,k.optionalQuantifier&&ke(k,ue)&&(J=!0,G=R,L.greedy&&T.validPositions[R-1]==null&&de>q.quantifier.min&&["*","+"].indexOf(q.quantifier.max)!=-1&&(V.pop(),B=void 0),X=!0,le=!1),!X&&k.jit&&(T.jitOffset[R]=ue.matches.length-ue.matches.indexOf(k))})),X)break;return!0}}})();if(le=Q(le,W,ve,ye))return!0}else G++}for(var te=W.length>0?W.shift():0;te<ae.matches.length;te++)if(ae.matches[te].isQuantifier!==!0){var fe=ie(ae.matches[te],[te].concat(H),ne);if(fe&&G===R)return fe;if(G>R)break}}function z(ae,W){var H=ae.matches.indexOf(W)!=-1;return H||ae.matches.forEach((function(ne,ie){ne.matches===void 0||H||(H=z(ne,W))})),H}if(R>-1){if(y===void 0){for(var $,ee=R-1;($=T.validPositions[ee]||T.tests[ee])===void 0&&ee>-1;)ee--;$!==void 0&&ee>-1&&(I=(function(ae,W){var H,ne=[];return Array.isArray(W)||(W=[W]),W.length>0&&(W[0].alternation===void 0||L.keepStatic===!0?(ne=b.call(w,ae,W.slice()).locator.slice()).length===0&&(ne=W[0].locator.slice()):W.forEach((function(ie){ie.def!==""&&(ne.length===0?(H=ie.alternation,ne=ie.locator.slice()):ie.locator[H]&&ne[H].toString().indexOf(ie.locator[H])===-1&&(ne[H]+=","+ie.locator[H]))}))),ne})(ee,$),B=I.join(""),G=ee)}if(T.tests[R]&&T.tests[R][0].cd===B)return T.tests[R];for(var K=I.shift();K<j.length&&!(Q(j[K],I,[K])&&G===R||G>R);K++);}return(V.length===0||J)&&V.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:P&&V.filter((function(ae){return ae.unMatchedAlternationStopped!==!0})).length===0?[0]:[],mloc:{},cd:B}),y!==void 0&&T.tests[R]?C=D.extend(!0,[],V):(T.tests[R]=D.extend(!0,[],V),C=T.tests[R]),V.forEach((function(ae){ae.match.optionality=ae.match.defOptionality||!1})),C}},7215:function(a,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.alternate=h,l.checkAlternationMatch=function(y,x,k){for(var C,w=this.opts.greedy?x:x.slice(0,1),D=!1,T=k!==void 0?k.split(","):[],L=0;L<T.length;L++)(C=y.indexOf(T[L]))!==-1&&y.splice(C,1);for(var N=0;N<y.length;N++)if(w.includes(y[N])){D=!0;break}return D},l.handleRemove=function(y,x,k,C,w){var D=this,T=this.maskset,L=this.opts;if((L.numericInput||D.isRTL)&&(x===d.keys.Backspace?x=d.keys.Delete:x===d.keys.Delete&&(x=d.keys.Backspace),D.isRTL)){var N=k.end;k.end=k.begin,k.begin=N}var j,G=f.getLastValidPosition.call(D,void 0,!0);k.end>=f.getBuffer.call(D).length&&G>=k.end&&(k.end=G+1),x===d.keys.Backspace?k.end-k.begin<1&&(k.begin=f.seekPrevious.call(D,k.begin)):x===d.keys.Delete&&k.begin===k.end&&(k.end=f.isMask.call(D,k.end,!0,!0)?k.end+1:f.seekNext.call(D,k.end)+1),(j=R.call(D,k))!==!1&&((C!==!0&&L.keepStatic!==!1||L.regex!==null&&p.getTest.call(D,k.begin).match.def.indexOf("|")!==-1)&&h.call(D,!0),C!==!0&&(T.p=x===d.keys.Delete?k.begin+j:k.begin,T.p=f.determineNewCaretPosition.call(D,{begin:T.p,end:T.p},!1,L.insertMode===!1&&x===d.keys.Backspace?"none":void 0).begin))},l.isComplete=m,l.isSelection=A,l.isValid=b,l.refreshFromBuffer=M,l.revalidateMask=R;var c=u(6030),d=u(2839),f=u(8711),p=u(4713);function h(y,x,k,C,w,D){var T=this,L=this.dependencyLib,N=this.opts,j=T.maskset;if(!T.hasAlternator)return!1;var G,I,V,J,B,P,Q,z,$,ee,K,ae=L.extend(!0,[],j.validPositions),W=L.extend(!0,{},j.tests),H=!1,ne=!1,ie=w!==void 0?w:f.getLastValidPosition.call(T);if(D&&(ee=D.begin,K=D.end,D.begin>D.end&&(ee=D.end,K=D.begin)),ie===-1&&w===void 0)G=0,I=(J=p.getTest.call(T,G)).alternation;else for(;ie>=0;ie--)if((V=j.validPositions[ie])&&V.alternation!==void 0){if(ie<=(y||0)&&J&&J.locator[V.alternation]!==V.locator[V.alternation])break;G=ie,I=j.validPositions[G].alternation,J=V}if(I!==void 0){Q=parseInt(G),j.excludes[Q]=j.excludes[Q]||[],y!==!0&&j.excludes[Q].push((0,p.getDecisionTaker)(J)+":"+J.alternation);var te=[],fe=-1;for(B=Q;Q<f.getLastValidPosition.call(T,void 0,!0)+1;B++)fe===-1&&y<=B&&x!==void 0&&(te.push(x),fe=te.length-1),(P=j.validPositions[Q])&&P.generatedInput!==!0&&(D===void 0||B<ee||B>=K)&&te.push(P.input),j.validPositions.splice(Q,1);for(fe===-1&&x!==void 0&&(te.push(x),fe=te.length-1);j.excludes[Q]!==void 0&&j.excludes[Q].length<10;){for(j.tests={},f.resetMaskSet.call(T,!0),H=!0,B=0;B<te.length&&(z=H.caret||N.insertMode==0&&z!=null?f.seekNext.call(T,z):f.getLastValidPosition.call(T,void 0,!0)+1,$=te[B],H=b.call(T,z,$,!1,C,!0));B++)B===fe&&(ne=H),y==1&&H&&(ne={caretPos:B});if(H)break;if(f.resetMaskSet.call(T),J=p.getTest.call(T,Q),j.validPositions=L.extend(!0,[],ae),j.tests=L.extend(!0,{},W),!j.excludes[Q]){ne=h.call(T,y,x,k,C,Q-1,D);break}if(J.alternation!=null){var le=(0,p.getDecisionTaker)(J);if(j.excludes[Q].indexOf(le+":"+J.alternation)!==-1){ne=h.call(T,y,x,k,C,Q-1,D);break}for(j.excludes[Q].push(le+":"+J.alternation),B=Q;B<f.getLastValidPosition.call(T,void 0,!0)+1;B++)j.validPositions.splice(Q)}else delete j.excludes[Q]}}return ne&&N.keepStatic===!1||delete j.excludes[Q],ne}function S(y,x,k){var C=this.opts,w=this.maskset;switch(C.casing||x.casing){case"upper":y=y.toUpperCase();break;case"lower":y=y.toLowerCase();break;case"title":var D=w.validPositions[k-1];y=k===0||D&&D.input===String.fromCharCode(d.keyCode.Space)?y.toUpperCase():y.toLowerCase();break;default:if(typeof C.casing=="function"){var T=Array.prototype.slice.call(arguments);T.push(w.validPositions),y=C.casing.apply(this,T)}}return y}function m(y){var x=this,k=this.opts,C=this.maskset;if(typeof k.isComplete=="function")return k.isComplete(y,k);if(k.repeat!=="*"){var w=!1,D=f.determineLastRequiredPosition.call(x,!0),T=D.l;if(D.def===void 0||D.def.newBlockMarker||D.def.optionality||D.def.optionalQuantifier){w=!0;for(var L=0;L<=T;L++){var N=p.getTestTemplate.call(x,L).match;if(N.static!==!0&&C.validPositions[L]===void 0&&(N.optionality===!1||N.optionality===void 0||N.optionality&&N.newBlockMarker==0)&&(N.optionalQuantifier===!1||N.optionalQuantifier===void 0)||N.static===!0&&N.def!=""&&y[L]!==p.getPlaceholder.call(x,L,N)){w=!1;break}}}return w}}function A(y){var x=this.opts.insertMode?0:1;return this.isRTL?y.begin-y.end>x:y.end-y.begin>x}function b(y,x,k,C,w,D,T){var L=this,N=this.dependencyLib,j=this.opts,G=L.maskset;k=k===!0;var I=y;function V(H){if(H!==void 0){if(H.remove!==void 0&&(Array.isArray(H.remove)||(H.remove=[H.remove]),H.remove.sort((function(ie,te){return L.isRTL?ie.pos-te.pos:te.pos-ie.pos})).forEach((function(ie){R.call(L,{begin:ie,end:ie+1})})),H.remove=void 0),H.insert!==void 0&&(Array.isArray(H.insert)||(H.insert=[H.insert]),H.insert.sort((function(ie,te){return L.isRTL?te.pos-ie.pos:ie.pos-te.pos})).forEach((function(ie){ie.c!==""&&b.call(L,ie.pos,ie.c,ie.strict===void 0||ie.strict,ie.fromIsValid!==void 0?ie.fromIsValid:C)})),H.insert=void 0),H.refreshFromBuffer&&H.buffer){var ne=H.refreshFromBuffer;M.call(L,ne===!0?ne:ne.start,ne.end,H.buffer),H.refreshFromBuffer=void 0}H.rewritePosition!==void 0&&(I=H.rewritePosition,H=!0)}return H}function J(H,ne,ie){var te=!1;return p.getTests.call(L,H).every((function(fe,le){var ve=fe.match;if(f.getBuffer.call(L,!0),(te=(!ve.jit||G.validPositions[f.seekPrevious.call(L,H)]!==void 0)&&(ve.fn!=null?ve.fn.test(ne,G,H,ie,j,A.call(L,y)):(ne===ve.def||ne===j.skipOptionalPartCharacter)&&ve.def!==""&&{c:p.getPlaceholder.call(L,H,ve,!0)||ve.def,pos:H}))!==!1){var ye=te.c!==void 0?te.c:ne,ke=H;return ye=ye===j.skipOptionalPartCharacter&&ve.static===!0?p.getPlaceholder.call(L,H,ve,!0)||ve.def:ye,(te=V(te))!==!0&&te.pos!==void 0&&te.pos!==H&&(ke=te.pos),te!==!0&&te.pos===void 0&&te.c===void 0||R.call(L,y,N.extend({},fe,{input:S.call(L,ye,ve,ke)}),C,ke)===!1&&(te=!1),!1}return!0})),te}y.begin!==void 0&&(I=L.isRTL?y.end:y.begin);var B=!0,P=N.extend(!0,[],G.validPositions);if(j.keepStatic===!1&&G.excludes[I]!==void 0&&w!==!0&&C!==!0)for(var Q=I;Q<(L.isRTL?y.begin:y.end);Q++)G.excludes[Q]!==void 0&&(G.excludes[Q]=void 0,delete G.tests[Q]);if(typeof j.preValidation=="function"&&C!==!0&&D!==!0&&(B=V(B=j.preValidation.call(L,f.getBuffer.call(L),I,x,A.call(L,y),j,G,y,k||w))),B===!0){if(B=J(I,x,k),(!k||C===!0)&&B===!1&&D!==!0){var z=G.validPositions[I];if(!z||z.match.static!==!0||z.match.def!==x&&x!==j.skipOptionalPartCharacter){if(j.insertMode||G.validPositions[f.seekNext.call(L,I)]===void 0||y.end>I){var $=!1;if(G.jitOffset[I]&&G.validPositions[f.seekNext.call(L,I)]===void 0&&(B=b.call(L,I+G.jitOffset[I],x,!0,!0))!==!1&&(w!==!0&&(B.caret=I),$=!0),y.end>I&&(G.validPositions[I]=void 0),!$&&!f.isMask.call(L,I,j.keepStatic&&I===0)){for(var ee=I+1,K=f.seekNext.call(L,I,!1,I!==0);ee<=K;ee++)if((B=J(ee,x,k))!==!1){B=v.call(L,I,B.pos!==void 0?B.pos:ee)||B,I=ee;break}}}}else B={caret:f.seekNext.call(L,I)}}L.hasAlternator&&w!==!0&&!k&&(w=!0,B===!1&&j.keepStatic&&(m.call(L,f.getBuffer.call(L))||I===0)?B=h.call(L,I,x,k,C,void 0,y):(A.call(L,y)&&G.tests[I]&&G.tests[I].length>1&&j.keepStatic||B==1&&j.numericInput!==!0&&G.tests[I]&&G.tests[I].length>1&&f.getLastValidPosition.call(L,void 0,!0)>I)&&(B=h.call(L,!0))),B===!0&&(B={pos:I})}if(typeof j.postValidation=="function"&&C!==!0&&D!==!0){var ae=j.postValidation.call(L,f.getBuffer.call(L,!0),y.begin!==void 0?L.isRTL?y.end:y.begin:y,x,B,j,G,k,T);ae!==void 0&&(B=ae===!0?B:ae)}B&&B.pos===void 0&&(B.pos=I),B===!1||D===!0?(f.resetMaskSet.call(L,!0),G.validPositions=N.extend(!0,[],P)):v.call(L,void 0,I,!0);var W=V(B);return L.maxLength!==void 0&&f.getBuffer.call(L).length>L.maxLength&&!C&&(f.resetMaskSet.call(L,!0),G.validPositions=N.extend(!0,[],P),W=!1),W}function g(y,x,k){for(var C=this.maskset,w=!1,D=p.getTests.call(this,y),T=0;T<D.length;T++){if(D[T].match&&(D[T].match.nativeDef===x.match[k.shiftPositions?"def":"nativeDef"]&&(!k.shiftPositions||!x.match.static)||D[T].match.nativeDef===x.match.nativeDef||k.regex&&!D[T].match.static&&D[T].match.fn.test(x.input,C,y,!1,k))){w=!0;break}if(D[T].match&&D[T].match.def===x.match.nativeDef){w=void 0;break}}return w===!1&&C.jitOffset[y]!==void 0&&(w=g.call(this,y+C.jitOffset[y],x,k)),w}function M(y,x,k){var C,w,D=this,T=this.maskset,L=this.opts,N=this.dependencyLib,j=L.skipOptionalPartCharacter,G=D.isRTL?k.slice().reverse():k;if(L.skipOptionalPartCharacter="",y===!0)f.resetMaskSet.call(D,!1),y=0,x=k.length,w=f.determineNewCaretPosition.call(D,{begin:0,end:0},!1).begin;else{for(C=y;C<x;C++)T.validPositions.splice(y,0);w=y}var I=new N.Event("keypress");for(C=y;C<x;C++){I.key=G[C].toString(),D.ignorable=!1;var V=c.EventHandlers.keypressEvent.call(D,I,!0,!1,!1,w);V!==!1&&V!==void 0&&(w=V.forwardPosition)}L.skipOptionalPartCharacter=j}function v(y,x,k){var C=this,w=this.maskset,D=this.dependencyLib;if(y===void 0)for(y=x-1;y>0&&!w.validPositions[y];y--);for(var T=y;T<x;T++)if(w.validPositions[T]===void 0&&!f.isMask.call(C,T,!1)&&(T==0?p.getTest.call(C,T):w.validPositions[T-1])){var L=p.getTests.call(C,T).slice();L[L.length-1].match.def===""&&L.pop();var N,j=p.determineTestTemplate.call(C,T,L);if(j&&(j.match.jit!==!0||j.match.newBlockMarker==="master"&&(N=w.validPositions[T+1])&&N.match.optionalQuantifier===!0)&&((j=D.extend({},j,{input:p.getPlaceholder.call(C,T,j.match,!0)||j.match.def})).generatedInput=!0,R.call(C,T,j,!0),k!==!0)){var G=w.validPositions[x].input;return w.validPositions[x]=void 0,b.call(C,x,G,!0,!0)}}}function R(y,x,k,C){var w=this,D=this.maskset,T=this.opts,L=this.dependencyLib;function N(W,H,ne){var ie=H[W];if(ie!==void 0&&ie.match.static===!0&&ie.match.optionality!==!0&&(H[0]===void 0||H[0].alternation===void 0)){var te=ne.begin<=W-1?H[W-1]&&H[W-1].match.static===!0&&H[W-1]:H[W-1],fe=ne.end>W+1?H[W+1]&&H[W+1].match.static===!0&&H[W+1]:H[W+1];return te&&fe}return!1}var j=0,G=y.begin!==void 0?y.begin:y,I=y.end!==void 0?y.end:y,V=!0;if(y.begin>y.end&&(G=y.end,I=y.begin),C=C!==void 0?C:G,k===void 0&&(G!==I||T.insertMode&&D.validPositions[C]!==void 0||x===void 0||x.match.optionalQuantifier||x.match.optionality)){var J,B=L.extend(!0,[],D.validPositions),P=f.getLastValidPosition.call(w,void 0,!0);D.p=G;var Q=A.call(w,y)?G:C;for(J=P;J>=Q;J--)D.validPositions.splice(J,1),x===void 0&&delete D.tests[J+1];var z,$,ee=C,K=ee;for(x&&(D.validPositions[C]=L.extend(!0,{},x),K++,ee++),B[I]==null&&D.jitOffset[I]&&(I+=D.jitOffset[I]+1),J=x?I:I-1;J<=P;J++){if((z=B[J])!==void 0&&z.generatedInput!==!0&&(J>=I||J>=G&&N(J,B,{begin:G,end:I}))){for(;p.getTest.call(w,K).match.def!=="";){if(($=g.call(w,K,z,T))!==!1||z.match.def==="+"){z.match.def==="+"&&f.getBuffer.call(w,!0);var ae=b.call(w,K,z.input,z.match.def!=="+",!0);if(V=ae!==!1,ee=(ae.pos||K)+1,!V&&$)break}else V=!1;if(V){x===void 0&&z.match.static&&J===y.begin&&j++;break}if(!V&&f.getBuffer.call(w),K>D.maskLength)break;K++}p.getTest.call(w,K).match.def==""&&(V=!1),K=ee}if(!V)break}if(!V)return D.validPositions=L.extend(!0,[],B),f.resetMaskSet.call(w,!0),!1}else x&&p.getTest.call(w,C).match.cd===x.match.cd&&(D.validPositions[C]=L.extend(!0,{},x));return f.resetMaskSet.call(w,!0),j}}},i={};function r(a){var l=i[a];if(l!==void 0)return l.exports;var u=i[a]={exports:{}};return t[a](u,u.exports,r),u.exports}var s={};return(function(){var a=s;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(7149),r(3194),r(9302),r(4013),r(3851),r(219),r(207),r(5296);var l,u=(l=r(2394))&&l.__esModule?l:{default:l};a.default=u.default})(),s})()}))})(Dn)),Dn.exports}var wh=yh();const Ch=Ua(wh);//! moment.js
|
|
17
17
|
//! version : 2.30.1
|
|
18
18
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
19
19
|
//! license : MIT
|
|
@@ -22,18 +22,18 @@ var Ko;function we(){return Ko.apply(null,arguments)}function Ah(n){Ko=n}functio
|
|
|
22
22
|
[`+s+"] ";for(a in arguments[0])Ke(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[s];i.push(r)}$o(n+`
|
|
23
23
|
Arguments: `+Array.prototype.slice.call(i).join("")+`
|
|
24
24
|
`+new Error().stack),t=!1}return e.apply(this,arguments)},e)}var Zo={};function Xo(n,e){we.deprecationHandler!=null&&we.deprecationHandler(n,e),Zo[n]||($o(e),Zo[n]=!0)}we.suppressDeprecationWarnings=!1,we.deprecationHandler=null;function Wt(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function kh(n){var e,t;for(t in n)Ke(n,t)&&(e=n[t],Wt(e)?this[t]=e:this["_"+t]=e);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ss(n,e){var t=ui({},n),i;for(i in e)Ke(e,i)&&(vi(n[i])&&vi(e[i])?(t[i]={},ui(t[i],n[i]),ui(t[i],e[i])):e[i]!=null?t[i]=e[i]:delete t[i]);for(i in n)Ke(n,i)&&!Ke(e,i)&&vi(n[i])&&(t[i]=ui({},t[i]));return t}function xs(n){n!=null&&this.set(n)}var Rs;Object.keys?Rs=Object.keys:Rs=function(n){var e,t=[];for(e in n)Ke(n,e)&&t.push(e);return t};var Sh={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function xh(n,e,t){var i=this._calendar[n]||this._calendar.sameElse;return Wt(i)?i.call(e,t):i}function Ut(n,e,t){var i=""+Math.abs(n),r=e-i.length,s=n>=0;return(s?t?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var Ms=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ln=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ts={},Oi={};function Te(n,e,t,i){var r=i;typeof i=="string"&&(r=function(){return this[i]()}),n&&(Oi[n]=r),e&&(Oi[e[0]]=function(){return Ut(r.apply(this,arguments),e[1],e[2])}),t&&(Oi[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),n)})}function Rh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Mh(n){var e=n.match(Ms),t,i;for(t=0,i=e.length;t<i;t++)Oi[e[t]]?e[t]=Oi[e[t]]:e[t]=Rh(e[t]);return function(r){var s="",a;for(a=0;a<i;a++)s+=Wt(e[a])?e[a].call(r,n):e[a];return s}}function Bn(n,e){return n.isValid()?(e=el(e,n.localeData()),Ts[e]=Ts[e]||Mh(e),Ts[e](n)):n.localeData().invalidDate()}function el(n,e){var t=5;function i(r){return e.longDateFormat(r)||r}for(Ln.lastIndex=0;t>=0&&Ln.test(n);)n=n.replace(Ln,i),Ln.lastIndex=0,t-=1;return n}var Th={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Dh(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(Ms).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[n])}var Oh="Invalid date";function Lh(){return this._invalidDate}var Bh="%d",Fh=/\d{1,2}/;function _h(n){return this._ordinal.replace("%d",n)}var Ph={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Nh(n,e,t,i){var r=this._relativeTime[t];return Wt(r)?r(n,e,t,i):r.replace(/%d/i,n)}function Ih(n,e){var t=this._relativeTime[n>0?"future":"past"];return Wt(t)?t(e):t.replace(/%s/i,e)}var tl={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Tt(n){return typeof n=="string"?tl[n]||tl[n.toLowerCase()]:void 0}function Ds(n){var e={},t,i;for(i in n)Ke(n,i)&&(t=Tt(i),t&&(e[t]=n[i]));return e}var Hh={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Vh(n){var e=[],t;for(t in n)Ke(n,t)&&e.push({unit:t,priority:Hh[t]});return e.sort(function(i,r){return i.priority-r.priority}),e}var il=/\d/,kt=/\d\d/,nl=/\d{3}/,Os=/\d{4}/,Fn=/[+-]?\d{6}/,tt=/\d\d?/,rl=/\d\d\d\d?/,sl=/\d\d\d\d\d\d?/,_n=/\d{1,3}/,Ls=/\d{1,4}/,Pn=/[+-]?\d{1,6}/,Li=/\d+/,Nn=/[+-]?\d+/,zh=/Z|[+-]\d\d:?\d\d/gi,In=/Z|[+-]\d\d(?::?\d\d)?/gi,jh=/[+-]?\d+(\.\d{1,3})?/,en=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Bi=/^[1-9]\d?/,Bs=/^([1-9]\d|\d)/,Hn;Hn={};function Ae(n,e,t){Hn[n]=Wt(e)?e:function(i,r){return i&&t?t:e}}function Wh(n,e){return Ke(Hn,n)?Hn[n](e._strict,e._locale):new RegExp(Uh(n))}function Uh(n){return Zt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,s){return t||i||r||s}))}function Zt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Dt(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function Ge(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=Dt(e)),t}var Fs={};function Ze(n,e){var t,i=e,r;for(typeof n=="string"&&(n=[n]),$t(e)&&(i=function(s,a){a[e]=Ge(s)}),r=n.length,t=0;t<r;t++)Fs[n[t]]=i}function tn(n,e){Ze(n,function(t,i,r,s){r._w=r._w||{},e(t,r._w,r,s)})}function Gh(n,e,t){e!=null&&Ke(Fs,n)&&Fs[n](e,t._a,t,n)}function Vn(n){return n%4===0&&n%100!==0||n%400===0}var ft=0,Xt=1,Gt=2,dt=3,It=4,ei=5,yi=6,Yh=7,Qh=8;Te("Y",0,0,function(){var n=this.year();return n<=9999?Ut(n,4):"+"+n}),Te(0,["YY",2],0,function(){return this.year()%100}),Te(0,["YYYY",4],0,"year"),Te(0,["YYYYY",5],0,"year"),Te(0,["YYYYYY",6,!0],0,"year"),Ae("Y",Nn),Ae("YY",tt,kt),Ae("YYYY",Ls,Os),Ae("YYYYY",Pn,Fn),Ae("YYYYYY",Pn,Fn),Ze(["YYYYY","YYYYYY"],ft),Ze("YYYY",function(n,e){e[ft]=n.length===2?we.parseTwoDigitYear(n):Ge(n)}),Ze("YY",function(n,e){e[ft]=we.parseTwoDigitYear(n)}),Ze("Y",function(n,e){e[ft]=parseInt(n,10)});function nn(n){return Vn(n)?366:365}we.parseTwoDigitYear=function(n){return Ge(n)+(Ge(n)>68?1900:2e3)};var al=Fi("FullYear",!0);function Kh(){return Vn(this.year())}function Fi(n,e){return function(t){return t!=null?(ol(this,n,t),we.updateOffset(this,e),this):rn(this,n)}}function rn(n,e){if(!n.isValid())return NaN;var t=n._d,i=n._isUTC;switch(e){case"Milliseconds":return i?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return i?t.getUTCSeconds():t.getSeconds();case"Minutes":return i?t.getUTCMinutes():t.getMinutes();case"Hours":return i?t.getUTCHours():t.getHours();case"Date":return i?t.getUTCDate():t.getDate();case"Day":return i?t.getUTCDay():t.getDay();case"Month":return i?t.getUTCMonth():t.getMonth();case"FullYear":return i?t.getUTCFullYear():t.getFullYear();default:return NaN}}function ol(n,e,t){var i,r,s,a,l;if(!(!n.isValid()||isNaN(t))){switch(i=n._d,r=n._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(t):i.setMilliseconds(t));case"Seconds":return void(r?i.setUTCSeconds(t):i.setSeconds(t));case"Minutes":return void(r?i.setUTCMinutes(t):i.setMinutes(t));case"Hours":return void(r?i.setUTCHours(t):i.setHours(t));case"Date":return void(r?i.setUTCDate(t):i.setDate(t));case"FullYear":break;default:return}s=t,a=n.month(),l=n.date(),l=l===29&&a===1&&!Vn(s)?28:l,r?i.setUTCFullYear(s,a,l):i.setFullYear(s,a,l)}}function Jh(n){return n=Tt(n),Wt(this[n])?this[n]():this}function qh(n,e){if(typeof n=="object"){n=Ds(n);var t=Vh(n),i,r=t.length;for(i=0;i<r;i++)this[t[i].unit](n[t[i].unit])}else if(n=Tt(n),Wt(this[n]))return this[n](e);return this}function $h(n,e){return(n%e+e)%e}var ut;Array.prototype.indexOf?ut=Array.prototype.indexOf:ut=function(n){var e;for(e=0;e<this.length;++e)if(this[e]===n)return e;return-1};function _s(n,e){if(isNaN(n)||isNaN(e))return NaN;var t=$h(e,12);return n+=(e-t)/12,t===1?Vn(n)?29:28:31-t%7%2}Te("M",["MM",2],"Mo",function(){return this.month()+1}),Te("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),Te("MMMM",0,0,function(n){return this.localeData().months(this,n)}),Ae("M",tt,Bi),Ae("MM",tt,kt),Ae("MMM",function(n,e){return e.monthsShortRegex(n)}),Ae("MMMM",function(n,e){return e.monthsRegex(n)}),Ze(["M","MM"],function(n,e){e[Xt]=Ge(n)-1}),Ze(["MMM","MMMM"],function(n,e,t,i){var r=t._locale.monthsParse(n,i,t._strict);r!=null?e[Xt]=r:Ve(t).invalidMonth=n});var Zh="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ll="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ul=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xh=en,ef=en;function tf(n,e){return n?Pt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ul).test(e)?"format":"standalone"][n.month()]:Pt(this._months)?this._months:this._months.standalone}function nf(n,e){return n?Pt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ul.test(e)?"format":"standalone"][n.month()]:Pt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function rf(n,e,t){var i,r,s,a=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=jt([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return t?e==="MMM"?(r=ut.call(this._shortMonthsParse,a),r!==-1?r:null):(r=ut.call(this._longMonthsParse,a),r!==-1?r:null):e==="MMM"?(r=ut.call(this._shortMonthsParse,a),r!==-1?r:(r=ut.call(this._longMonthsParse,a),r!==-1?r:null)):(r=ut.call(this._longMonthsParse,a),r!==-1?r:(r=ut.call(this._shortMonthsParse,a),r!==-1?r:null))}function sf(n,e,t){var i,r,s;if(this._monthsParseExact)return rf.call(this,n,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=jt([2e3,i]),t&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!t&&!this._monthsParse[i]&&(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),t&&e==="MMMM"&&this._longMonthsParse[i].test(n))return i;if(t&&e==="MMM"&&this._shortMonthsParse[i].test(n))return i;if(!t&&this._monthsParse[i].test(n))return i}}function cl(n,e){if(!n.isValid())return n;if(typeof e=="string"){if(/^\d+$/.test(e))e=Ge(e);else if(e=n.localeData().monthsParse(e),!$t(e))return n}var t=e,i=n.date();return i=i<29?i:Math.min(i,_s(n.year(),t)),n._isUTC?n._d.setUTCMonth(t,i):n._d.setMonth(t,i),n}function dl(n){return n!=null?(cl(this,n),we.updateOffset(this,!0),this):rn(this,"Month")}function af(){return _s(this.year(),this.month())}function of(n){return this._monthsParseExact?(Ke(this,"_monthsRegex")||hl.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(Ke(this,"_monthsShortRegex")||(this._monthsShortRegex=Xh),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function lf(n){return this._monthsParseExact?(Ke(this,"_monthsRegex")||hl.call(this),n?this._monthsStrictRegex:this._monthsRegex):(Ke(this,"_monthsRegex")||(this._monthsRegex=ef),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function hl(){function n(u,c){return c.length-u.length}var e=[],t=[],i=[],r,s,a,l;for(r=0;r<12;r++)s=jt([2e3,r]),a=Zt(this.monthsShort(s,"")),l=Zt(this.months(s,"")),e.push(a),t.push(l),i.push(l),i.push(a);e.sort(n),t.sort(n),i.sort(n),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function uf(n,e,t,i,r,s,a){var l;return n<100&&n>=0?(l=new Date(n+400,e,t,i,r,s,a),isFinite(l.getFullYear())&&l.setFullYear(n)):l=new Date(n,e,t,i,r,s,a),l}function sn(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function zn(n,e,t){var i=7+e-t,r=(7+sn(n,0,i).getUTCDay()-e)%7;return-r+i-1}function fl(n,e,t,i,r){var s=(7+t-i)%7,a=zn(n,i,r),l=1+7*(e-1)+s+a,u,c;return l<=0?(u=n-1,c=nn(u)+l):l>nn(n)?(u=n+1,c=l-nn(n)):(u=n,c=l),{year:u,dayOfYear:c}}function an(n,e,t){var i=zn(n.year(),e,t),r=Math.floor((n.dayOfYear()-i-1)/7)+1,s,a;return r<1?(a=n.year()-1,s=r+ti(a,e,t)):r>ti(n.year(),e,t)?(s=r-ti(n.year(),e,t),a=n.year()+1):(a=n.year(),s=r),{week:s,year:a}}function ti(n,e,t){var i=zn(n,e,t),r=zn(n+1,e,t);return(nn(n)-i+r)/7}Te("w",["ww",2],"wo","week"),Te("W",["WW",2],"Wo","isoWeek"),Ae("w",tt,Bi),Ae("ww",tt,kt),Ae("W",tt,Bi),Ae("WW",tt,kt),tn(["w","ww","W","WW"],function(n,e,t,i){e[i.substr(0,1)]=Ge(n)});function cf(n){return an(n,this._week.dow,this._week.doy).week}var df={dow:0,doy:6};function hf(){return this._week.dow}function ff(){return this._week.doy}function pf(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function mf(n){var e=an(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Te("d",0,"do","day"),Te("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),Te("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),Te("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),Te("e",0,0,"weekday"),Te("E",0,0,"isoWeekday"),Ae("d",tt),Ae("e",tt),Ae("E",tt),Ae("dd",function(n,e){return e.weekdaysMinRegex(n)}),Ae("ddd",function(n,e){return e.weekdaysShortRegex(n)}),Ae("dddd",function(n,e){return e.weekdaysRegex(n)}),tn(["dd","ddd","dddd"],function(n,e,t,i){var r=t._locale.weekdaysParse(n,i,t._strict);r!=null?e.d=r:Ve(t).invalidWeekday=n}),tn(["d","e","E"],function(n,e,t,i){e[i]=Ge(n)});function gf(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function bf(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function Ps(n,e){return n.slice(e,7).concat(n.slice(0,e))}var vf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yf="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wf=en,Cf=en,Af=en;function Ef(n,e){var t=Pt(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?Ps(t,this._week.dow):n?t[n.day()]:t}function kf(n){return n===!0?Ps(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Sf(n){return n===!0?Ps(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function xf(n,e,t){var i,r,s,a=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=jt([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return t?e==="dddd"?(r=ut.call(this._weekdaysParse,a),r!==-1?r:null):e==="ddd"?(r=ut.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null):e==="dddd"?(r=ut.call(this._weekdaysParse,a),r!==-1||(r=ut.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null)):e==="ddd"?(r=ut.call(this._shortWeekdaysParse,a),r!==-1||(r=ut.call(this._weekdaysParse,a),r!==-1)?r:(r=ut.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=ut.call(this._minWeekdaysParse,a),r!==-1||(r=ut.call(this._weekdaysParse,a),r!==-1)?r:(r=ut.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function Rf(n,e,t){var i,r,s;if(this._weekdaysParseExact)return xf.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=jt([2e3,1]).day(i),t&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[i].test(n))return i;if(t&&e==="ddd"&&this._shortWeekdaysParse[i].test(n))return i;if(t&&e==="dd"&&this._minWeekdaysParse[i].test(n))return i;if(!t&&this._weekdaysParse[i].test(n))return i}}function Mf(n){if(!this.isValid())return n!=null?this:NaN;var e=rn(this,"Day");return n!=null?(n=gf(n,this.localeData()),this.add(n-e,"d")):e}function Tf(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Df(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=bf(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Of(n){return this._weekdaysParseExact?(Ke(this,"_weekdaysRegex")||Ns.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Ke(this,"_weekdaysRegex")||(this._weekdaysRegex=wf),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Lf(n){return this._weekdaysParseExact?(Ke(this,"_weekdaysRegex")||Ns.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ke(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cf),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Bf(n){return this._weekdaysParseExact?(Ke(this,"_weekdaysRegex")||Ns.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ke(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Af),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ns(){function n(d,f){return f.length-d.length}var e=[],t=[],i=[],r=[],s,a,l,u,c;for(s=0;s<7;s++)a=jt([2e3,1]).day(s),l=Zt(this.weekdaysMin(a,"")),u=Zt(this.weekdaysShort(a,"")),c=Zt(this.weekdays(a,"")),e.push(l),t.push(u),i.push(c),r.push(l),r.push(u),r.push(c);e.sort(n),t.sort(n),i.sort(n),r.sort(n),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Is(){return this.hours()%12||12}function Ff(){return this.hours()||24}Te("H",["HH",2],0,"hour"),Te("h",["hh",2],0,Is),Te("k",["kk",2],0,Ff),Te("hmm",0,0,function(){return""+Is.apply(this)+Ut(this.minutes(),2)}),Te("hmmss",0,0,function(){return""+Is.apply(this)+Ut(this.minutes(),2)+Ut(this.seconds(),2)}),Te("Hmm",0,0,function(){return""+this.hours()+Ut(this.minutes(),2)}),Te("Hmmss",0,0,function(){return""+this.hours()+Ut(this.minutes(),2)+Ut(this.seconds(),2)});function ml(n,e){Te(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}ml("a",!0),ml("A",!1);function gl(n,e){return e._meridiemParse}Ae("a",gl),Ae("A",gl),Ae("H",tt,Bs),Ae("h",tt,Bi),Ae("k",tt,Bi),Ae("HH",tt,kt),Ae("hh",tt,kt),Ae("kk",tt,kt),Ae("hmm",rl),Ae("hmmss",sl),Ae("Hmm",rl),Ae("Hmmss",sl),Ze(["H","HH"],dt),Ze(["k","kk"],function(n,e,t){var i=Ge(n);e[dt]=i===24?0:i}),Ze(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n}),Ze(["h","hh"],function(n,e,t){e[dt]=Ge(n),Ve(t).bigHour=!0}),Ze("hmm",function(n,e,t){var i=n.length-2;e[dt]=Ge(n.substr(0,i)),e[It]=Ge(n.substr(i)),Ve(t).bigHour=!0}),Ze("hmmss",function(n,e,t){var i=n.length-4,r=n.length-2;e[dt]=Ge(n.substr(0,i)),e[It]=Ge(n.substr(i,2)),e[ei]=Ge(n.substr(r)),Ve(t).bigHour=!0}),Ze("Hmm",function(n,e,t){var i=n.length-2;e[dt]=Ge(n.substr(0,i)),e[It]=Ge(n.substr(i))}),Ze("Hmmss",function(n,e,t){var i=n.length-4,r=n.length-2;e[dt]=Ge(n.substr(0,i)),e[It]=Ge(n.substr(i,2)),e[ei]=Ge(n.substr(r))});function _f(n){return(n+"").toLowerCase().charAt(0)==="p"}var Pf=/[ap]\.?m?\.?/i,Nf=Fi("Hours",!0);function If(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var bl={calendar:Sh,longDateFormat:Th,invalidDate:Oh,ordinal:Bh,dayOfMonthOrdinalParse:Fh,relativeTime:Ph,months:Zh,monthsShort:ll,week:df,weekdays:vf,weekdaysMin:yf,weekdaysShort:pl,meridiemParse:Pf},st={},on={},ln;function Hf(n,e){var t,i=Math.min(n.length,e.length);for(t=0;t<i;t+=1)if(n[t]!==e[t])return t;return i}function vl(n){return n&&n.toLowerCase().replace("_","-")}function Vf(n){for(var e=0,t,i,r,s;e<n.length;){for(s=vl(n[e]).split("-"),t=s.length,i=vl(n[e+1]),i=i?i.split("-"):null;t>0;){if(r=jn(s.slice(0,t).join("-")),r)return r;if(i&&i.length>=t&&Hf(s,i)>=t-1)break;t--}e++}return ln}function zf(n){return!!(n&&n.match("^[^/\\\\]*$"))}function jn(n){var e=null,t;if(st[n]===void 0&&typeof module<"u"&&module&&module.exports&&zf(n))try{e=ln._abbr,t=require,t("./locale/"+n),ci(e)}catch{st[n]=null}return st[n]}function ci(n,e){var t;return n&&(wt(e)?t=ii(n):t=Hs(n,e),t?ln=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ln._abbr}function Hs(n,e){if(e!==null){var t,i=bl;if(e.abbr=n,st[n]!=null)Xo("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=st[n]._config;else if(e.parentLocale!=null)if(st[e.parentLocale]!=null)i=st[e.parentLocale]._config;else if(t=jn(e.parentLocale),t!=null)i=t._config;else return on[e.parentLocale]||(on[e.parentLocale]=[]),on[e.parentLocale].push({name:n,config:e}),null;return st[n]=new xs(Ss(i,e)),on[n]&&on[n].forEach(function(r){Hs(r.name,r.config)}),ci(n),st[n]}else return delete st[n],null}function jf(n,e){if(e!=null){var t,i,r=bl;st[n]!=null&&st[n].parentLocale!=null?st[n].set(Ss(st[n]._config,e)):(i=jn(n),i!=null&&(r=i._config),e=Ss(r,e),i==null&&(e.abbr=n),t=new xs(e),t.parentLocale=st[n],st[n]=t),ci(n)}else st[n]!=null&&(st[n].parentLocale!=null?(st[n]=st[n].parentLocale,n===ci()&&ci(n)):st[n]!=null&&delete st[n]);return st[n]}function ii(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ln;if(!Pt(n)){if(e=jn(n),e)return e;n=[n]}return Vf(n)}function Wf(){return Rs(st)}function Vs(n){var e,t=n._a;return t&&Ve(n).overflow===-2&&(e=t[Xt]<0||t[Xt]>11?Xt:t[Gt]<1||t[Gt]>_s(t[ft],t[Xt])?Gt:t[dt]<0||t[dt]>24||t[dt]===24&&(t[It]!==0||t[ei]!==0||t[yi]!==0)?dt:t[It]<0||t[It]>59?It:t[ei]<0||t[ei]>59?ei:t[yi]<0||t[yi]>999?yi:-1,Ve(n)._overflowDayOfYear&&(e<ft||e>Gt)&&(e=Gt),Ve(n)._overflowWeeks&&e===-1&&(e=Yh),Ve(n)._overflowWeekday&&e===-1&&(e=Qh),Ve(n).overflow=e),n}var Uf=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gf=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yf=/Z|[+-]\d\d(?::?\d\d)?/,Wn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qf=/^\/?Date\((-?\d+)/i,Kf=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Jf={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yl(n){var e,t,i=n._i,r=Uf.exec(i)||Gf.exec(i),s,a,l,u,c=Wn.length,d=zs.length;if(r){for(Ve(n).iso=!0,e=0,t=c;e<t;e++)if(Wn[e][1].exec(r[1])){a=Wn[e][0],s=Wn[e][2]!==!1;break}if(a==null){n._isValid=!1;return}if(r[3]){for(e=0,t=d;e<t;e++)if(zs[e][1].exec(r[3])){l=(r[2]||" ")+zs[e][0];break}if(l==null){n._isValid=!1;return}}if(!s&&l!=null){n._isValid=!1;return}if(r[4])if(Yf.exec(r[4]))u="Z";else{n._isValid=!1;return}n._f=a+(l||"")+(u||""),Ws(n)}else n._isValid=!1}function qf(n,e,t,i,r,s){var a=[$f(n),ll.indexOf(e),parseInt(t,10),parseInt(i,10),parseInt(r,10)];return s&&a.push(parseInt(s,10)),a}function $f(n){var e=parseInt(n,10);return e<=49?2e3+e:e<=999?1900+e:e}function Zf(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Xf(n,e,t){if(n){var i=pl.indexOf(n),r=new Date(e[0],e[1],e[2]).getDay();if(i!==r)return Ve(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function ep(n,e,t){if(n)return Jf[n];if(e)return 0;var i=parseInt(t,10),r=i%100,s=(i-r)/100;return s*60+r}function wl(n){var e=Kf.exec(Zf(n._i)),t;if(e){if(t=qf(e[4],e[3],e[2],e[5],e[6],e[7]),!Xf(e[1],t,n))return;n._a=t,n._tzm=ep(e[8],e[9],e[10]),n._d=sn.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),Ve(n).rfc2822=!0}else n._isValid=!1}function tp(n){var e=Qf.exec(n._i);if(e!==null){n._d=new Date(+e[1]);return}if(yl(n),n._isValid===!1)delete n._isValid;else return;if(wl(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:we.createFromInputFallback(n)}we.createFromInputFallback=Mt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function _i(n,e,t){return n??e??t}function ip(n){var e=new Date(we.now());return n._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function js(n){var e,t,i=[],r,s,a;if(!n._d){for(r=ip(n),n._w&&n._a[Gt]==null&&n._a[Xt]==null&&np(n),n._dayOfYear!=null&&(a=_i(n._a[ft],r[ft]),(n._dayOfYear>nn(a)||n._dayOfYear===0)&&(Ve(n)._overflowDayOfYear=!0),t=sn(a,0,n._dayOfYear),n._a[Xt]=t.getUTCMonth(),n._a[Gt]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=i[e]=r[e];for(;e<7;e++)n._a[e]=i[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[dt]===24&&n._a[It]===0&&n._a[ei]===0&&n._a[yi]===0&&(n._nextDay=!0,n._a[dt]=0),n._d=(n._useUTC?sn:uf).apply(null,i),s=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[dt]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==s&&(Ve(n).weekdayMismatch=!0)}}function np(n){var e,t,i,r,s,a,l,u,c;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,a=4,t=_i(e.GG,n._a[ft],an(it(),1,4).year),i=_i(e.W,1),r=_i(e.E,1),(r<1||r>7)&&(u=!0)):(s=n._locale._week.dow,a=n._locale._week.doy,c=an(it(),s,a),t=_i(e.gg,n._a[ft],c.year),i=_i(e.w,c.week),e.d!=null?(r=e.d,(r<0||r>6)&&(u=!0)):e.e!=null?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),i<1||i>ti(t,s,a)?Ve(n)._overflowWeeks=!0:u!=null?Ve(n)._overflowWeekday=!0:(l=fl(t,i,r,s,a),n._a[ft]=l.year,n._dayOfYear=l.dayOfYear)}we.ISO_8601=function(){},we.RFC_2822=function(){};function Ws(n){if(n._f===we.ISO_8601){yl(n);return}if(n._f===we.RFC_2822){wl(n);return}n._a=[],Ve(n).empty=!0;var e=""+n._i,t,i,r,s,a,l=e.length,u=0,c,d;for(r=el(n._f,n._locale).match(Ms)||[],d=r.length,t=0;t<d;t++)s=r[t],i=(e.match(Wh(s,n))||[])[0],i&&(a=e.substr(0,e.indexOf(i)),a.length>0&&Ve(n).unusedInput.push(a),e=e.slice(e.indexOf(i)+i.length),u+=i.length),Oi[s]?(i?Ve(n).empty=!1:Ve(n).unusedTokens.push(s),Gh(s,i,n)):n._strict&&!i&&Ve(n).unusedTokens.push(s);Ve(n).charsLeftOver=l-u,e.length>0&&Ve(n).unusedInput.push(e),n._a[dt]<=12&&Ve(n).bigHour===!0&&n._a[dt]>0&&(Ve(n).bigHour=void 0),Ve(n).parsedDateParts=n._a.slice(0),Ve(n).meridiem=n._meridiem,n._a[dt]=rp(n._locale,n._a[dt],n._meridiem),c=Ve(n).era,c!==null&&(n._a[ft]=n._locale.erasConvertYear(c,n._a[ft])),js(n),Vs(n)}function rp(n,e,t){var i;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(i=n.isPM(t),i&&e<12&&(e+=12),!i&&e===12&&(e=0)),e)}function sp(n){var e,t,i,r,s,a,l=!1,u=n._f.length;if(u===0){Ve(n).invalidFormat=!0,n._d=new Date(NaN);return}for(r=0;r<u;r++)s=0,a=!1,e=ks({},n),n._useUTC!=null&&(e._useUTC=n._useUTC),e._f=n._f[r],Ws(e),As(e)&&(a=!0),s+=Ve(e).charsLeftOver,s+=Ve(e).unusedTokens.length*10,Ve(e).score=s,l?s<i&&(i=s,t=e):(i==null||s<i||a)&&(i=s,t=e,a&&(l=!0));ui(n,t||e)}function ap(n){if(!n._d){var e=Ds(n._i),t=e.day===void 0?e.date:e.day;n._a=Jo([e.year,e.month,t,e.hour,e.minute,e.second,e.millisecond],function(i){return i&&parseInt(i,10)}),js(n)}}function op(n){var e=new Xi(Vs(Cl(n)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Cl(n){var e=n._i,t=n._f;return n._locale=n._locale||ii(n._l),e===null||t===void 0&&e===""?On({nullInput:!0}):(typeof e=="string"&&(n._i=e=n._locale.preparse(e)),Nt(e)?new Xi(Vs(e)):(Zi(e)?n._d=e:Pt(t)?sp(n):t?Ws(n):lp(n),As(n)||(n._d=null),n))}function lp(n){var e=n._i;wt(e)?n._d=new Date(we.now()):Zi(e)?n._d=new Date(e.valueOf()):typeof e=="string"?tp(n):Pt(e)?(n._a=Jo(e.slice(0),function(t){return parseInt(t,10)}),js(n)):vi(e)?ap(n):$t(e)?n._d=new Date(e):we.createFromInputFallback(n)}function Al(n,e,t,i,r){var s={};return(e===!0||e===!1)&&(i=e,e=void 0),(t===!0||t===!1)&&(i=t,t=void 0),(vi(n)&&ws(n)||Pt(n)&&n.length===0)&&(n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=t,s._i=n,s._f=e,s._strict=i,op(s)}function it(n,e,t,i){return Al(n,e,t,i,!1)}var up=Mt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=it.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:On()}),cp=Mt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=it.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:On()});function El(n,e){var t,i;if(e.length===1&&Pt(e[0])&&(e=e[0]),!e.length)return it();for(t=e[0],i=1;i<e.length;++i)(!e[i].isValid()||e[i][n](t))&&(t=e[i]);return t}function dp(){var n=[].slice.call(arguments,0);return El("isBefore",n)}function hp(){var n=[].slice.call(arguments,0);return El("isAfter",n)}var fp=function(){return Date.now?Date.now():+new Date},un=["year","quarter","month","week","day","hour","minute","second","millisecond"];function pp(n){var e,t=!1,i,r=un.length;for(e in n)if(Ke(n,e)&&!(ut.call(un,e)!==-1&&(n[e]==null||!isNaN(n[e]))))return!1;for(i=0;i<r;++i)if(n[un[i]]){if(t)return!1;parseFloat(n[un[i]])!==Ge(n[un[i]])&&(t=!0)}return!0}function mp(){return this._isValid}function gp(){return Ht(NaN)}function Un(n){var e=Ds(n),t=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,u=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=pp(e),this._milliseconds=+d+c*1e3+u*6e4+l*1e3*60*60,this._days=+a+s*7,this._months=+r+i*3+t*12,this._data={},this._locale=ii(),this._bubble()}function Gn(n){return n instanceof Un}function Us(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function bp(n,e,t){var i=Math.min(n.length,e.length),r=Math.abs(n.length-e.length),s=0,a;for(a=0;a<i;a++)Ge(n[a])!==Ge(e[a])&&s++;return s+r}function kl(n,e){Te(n,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+Ut(~~(t/60),2)+e+Ut(~~t%60,2)})}kl("Z",":"),kl("ZZ",""),Ae("Z",In),Ae("ZZ",In),Ze(["Z","ZZ"],function(n,e,t){t._useUTC=!0,t._tzm=Gs(In,n)});var vp=/([\+\-]|\d\d)/gi;function Gs(n,e){var t=(e||"").match(n),i,r,s;return t===null?null:(i=t[t.length-1]||[],r=(i+"").match(vp)||["-",0,0],s=+(r[1]*60)+Ge(r[2]),s===0?0:r[0]==="+"?s:-s)}function Ys(n,e){var t,i;return e._isUTC?(t=e.clone(),i=(Nt(n)||Zi(n)?n.valueOf():it(n).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+i),we.updateOffset(t,!1),t):it(n).local()}function Qs(n){return-Math.round(n._d.getTimezoneOffset())}we.updateOffset=function(){};function yp(n,e,t){var i=this._offset||0,r;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=Gs(In,n),n===null)return this}else Math.abs(n)<16&&!t&&(n=n*60);return!this._isUTC&&e&&(r=Qs(this)),this._offset=n,this._isUTC=!0,r!=null&&this.add(r,"m"),i!==n&&(!e||this._changeInProgress?Ml(this,Ht(n-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,we.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:Qs(this)}function wp(n,e){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,e),this):-this.utcOffset()}function Cp(n){return this.utcOffset(0,n)}function Ap(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(Qs(this),"m")),this}function Ep(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=Gs(zh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function kp(n){return this.isValid()?(n=n?it(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function Sp(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xp(){if(!wt(this._isDSTShifted))return this._isDSTShifted;var n={},e;return ks(n,this),n=Cl(n),n._a?(e=n._isUTC?jt(n._a):it(n._a),this._isDSTShifted=this.isValid()&&bp(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Rp(){return this.isValid()?!this._isUTC:!1}function Mp(){return this.isValid()?this._isUTC:!1}function Sl(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Tp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(n,e){var t=n,i=null,r,s,a;return Gn(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:$t(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(i=Tp.exec(n))?(r=i[1]==="-"?-1:1,t={y:0,d:Ge(i[Gt])*r,h:Ge(i[dt])*r,m:Ge(i[It])*r,s:Ge(i[ei])*r,ms:Ge(Us(i[yi]*1e3))*r}):(i=Dp.exec(n))?(r=i[1]==="-"?-1:1,t={y:wi(i[2],r),M:wi(i[3],r),w:wi(i[4],r),d:wi(i[5],r),h:wi(i[6],r),m:wi(i[7],r),s:wi(i[8],r)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(a=Op(it(t.from),it(t.to)),t={},t.ms=a.milliseconds,t.M=a.months),s=new Un(t),Gn(n)&&Ke(n,"_locale")&&(s._locale=n._locale),Gn(n)&&Ke(n,"_isValid")&&(s._isValid=n._isValid),s}Ht.fn=Un.prototype,Ht.invalid=gp;function wi(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function xl(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Op(n,e){var t;return n.isValid()&&e.isValid()?(e=Ys(e,n),n.isBefore(e)?t=xl(n,e):(t=xl(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Rl(n,e){return function(t,i){var r,s;return i!==null&&!isNaN(+i)&&(Xo(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=t,t=i,i=s),r=Ht(t,i),Ml(this,r,n),this}}function Ml(n,e,t,i){var r=e._milliseconds,s=Us(e._days),a=Us(e._months);n.isValid()&&(i=i??!0,a&&cl(n,rn(n,"Month")+a*t),s&&ol(n,"Date",rn(n,"Date")+s*t),r&&n._d.setTime(n._d.valueOf()+r*t),i&&we.updateOffset(n,s||a))}var Lp=Rl(1,"add"),Bp=Rl(-1,"subtract");function Tl(n){return typeof n=="string"||n instanceof String}function Fp(n){return Nt(n)||Zi(n)||Tl(n)||$t(n)||Pp(n)||_p(n)||n===null||n===void 0}function _p(n){var e=vi(n)&&!ws(n),t=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,s,a=i.length;for(r=0;r<a;r+=1)s=i[r],t=t||Ke(n,s);return e&&t}function Pp(n){var e=Pt(n),t=!1;return e&&(t=n.filter(function(i){return!$t(i)&&Tl(n)}).length===0),e&&t}function Np(n){var e=vi(n)&&!ws(n),t=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,s;for(r=0;r<i.length;r+=1)s=i[r],t=t||Ke(n,s);return e&&t}function Ip(n,e){var t=n.diff(e,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function Hp(n,e){arguments.length===1&&(arguments[0]?Fp(arguments[0])?(n=arguments[0],e=void 0):Np(arguments[0])&&(e=arguments[0],n=void 0):(n=void 0,e=void 0));var t=n||it(),i=Ys(t,this).startOf("day"),r=we.calendarFormat(this,i)||"sameElse",s=e&&(Wt(e[r])?e[r].call(this,t):e[r]);return this.format(s||this.localeData().calendar(r,this,it(t)))}function Vp(){return new Xi(this)}function zp(n,e){var t=Nt(n)?n:it(n);return this.isValid()&&t.isValid()?(e=Tt(e)||"millisecond",e==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf()):!1}function jp(n,e){var t=Nt(n)?n:it(n);return this.isValid()&&t.isValid()?(e=Tt(e)||"millisecond",e==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf()):!1}function Wp(n,e,t,i){var r=Nt(n)?n:it(n),s=Nt(e)?e:it(e);return this.isValid()&&r.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(r,t):!this.isBefore(r,t))&&(i[1]===")"?this.isBefore(s,t):!this.isAfter(s,t))):!1}function Up(n,e){var t=Nt(n)?n:it(n),i;return this.isValid()&&t.isValid()?(e=Tt(e)||"millisecond",e==="millisecond"?this.valueOf()===t.valueOf():(i=t.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf())):!1}function Gp(n,e){return this.isSame(n,e)||this.isAfter(n,e)}function Yp(n,e){return this.isSame(n,e)||this.isBefore(n,e)}function Qp(n,e,t){var i,r,s;if(!this.isValid())return NaN;if(i=Ys(n,this),!i.isValid())return NaN;switch(r=(i.utcOffset()-this.utcOffset())*6e4,e=Tt(e),e){case"year":s=Yn(this,i)/12;break;case"month":s=Yn(this,i);break;case"quarter":s=Yn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return t?s:Dt(s)}function Yn(n,e){if(n.date()<e.date())return-Yn(e,n);var t=(e.year()-n.year())*12+(e.month()-n.month()),i=n.clone().add(t,"months"),r,s;return e-i<0?(r=n.clone().add(t-1,"months"),s=(e-i)/(i-r)):(r=n.clone().add(t+1,"months"),s=(e-i)/(r-i)),-(t+s)||0}we.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",we.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Kp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jp(n){if(!this.isValid())return null;var e=n!==!0,t=e?this.clone().utc():this;return t.year()<0||t.year()>9999?Bn(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Wt(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Bn(t,"Z")):Bn(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function qp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,i,r,s;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(t+i+r+s)}function $p(n){n||(n=this.isUtc()?we.defaultFormatUtc:we.defaultFormat);var e=Bn(this,n);return this.localeData().postformat(e)}function Zp(n,e){return this.isValid()&&(Nt(n)&&n.isValid()||it(n).isValid())?Ht({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Xp(n){return this.from(it(),n)}function em(n,e){return this.isValid()&&(Nt(n)&&n.isValid()||it(n).isValid())?Ht({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function tm(n){return this.to(it(),n)}function Dl(n){var e;return n===void 0?this._locale._abbr:(e=ii(n),e!=null&&(this._locale=e),this)}var Ol=Mt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Ll(){return this._locale}var Qn=1e3,Pi=60*Qn,Kn=60*Pi,Bl=(365*400+97)*24*Kn;function Ni(n,e){return(n%e+e)%e}function Fl(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Bl:new Date(n,e,t).valueOf()}function _l(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Bl:Date.UTC(n,e,t)}function im(n){var e,t;if(n=Tt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?_l:Fl,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ni(e+(this._isUTC?0:this.utcOffset()*Pi),Kn);break;case"minute":e=this._d.valueOf(),e-=Ni(e,Pi);break;case"second":e=this._d.valueOf(),e-=Ni(e,Qn);break}return this._d.setTime(e),we.updateOffset(this,!0),this}function nm(n){var e,t;if(n=Tt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?_l:Fl,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Kn-Ni(e+(this._isUTC?0:this.utcOffset()*Pi),Kn)-1;break;case"minute":e=this._d.valueOf(),e+=Pi-Ni(e,Pi)-1;break;case"second":e=this._d.valueOf(),e+=Qn-Ni(e,Qn)-1;break}return this._d.setTime(e),we.updateOffset(this,!0),this}function rm(){return this._d.valueOf()-(this._offset||0)*6e4}function sm(){return Math.floor(this.valueOf()/1e3)}function am(){return new Date(this.valueOf())}function om(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function lm(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function um(){return this.isValid()?this.toISOString():null}function cm(){return As(this)}function dm(){return ui({},Ve(this))}function hm(){return Ve(this).overflow}function fm(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Te("N",0,0,"eraAbbr"),Te("NN",0,0,"eraAbbr"),Te("NNN",0,0,"eraAbbr"),Te("NNNN",0,0,"eraName"),Te("NNNNN",0,0,"eraNarrow"),Te("y",["y",1],"yo","eraYear"),Te("y",["yy",2],0,"eraYear"),Te("y",["yyy",3],0,"eraYear"),Te("y",["yyyy",4],0,"eraYear"),Ae("N",Ks),Ae("NN",Ks),Ae("NNN",Ks),Ae("NNNN",km),Ae("NNNNN",Sm),Ze(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,i){var r=t._locale.erasParse(n,i,t._strict);r?Ve(t).era=r:Ve(t).invalidEra=n}),Ae("y",Li),Ae("yy",Li),Ae("yyy",Li),Ae("yyyy",Li),Ae("yo",xm),Ze(["y","yy","yyy","yyyy"],ft),Ze(["yo"],function(n,e,t,i){var r;t._locale._eraYearOrdinalRegex&&(r=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[ft]=t._locale.eraYearOrdinalParse(n,r):e[ft]=parseInt(n,10)});function pm(n,e){var t,i,r,s=this._eras||ii("en")._eras;for(t=0,i=s.length;t<i;++t){switch(typeof s[t].since){case"string":r=we(s[t].since).startOf("day"),s[t].since=r.valueOf();break}switch(typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":r=we(s[t].until).startOf("day").valueOf(),s[t].until=r.valueOf();break}}return s}function mm(n,e,t){var i,r,s=this.eras(),a,l,u;for(n=n.toUpperCase(),i=0,r=s.length;i<r;++i)if(a=s[i].name.toUpperCase(),l=s[i].abbr.toUpperCase(),u=s[i].narrow.toUpperCase(),t)switch(e){case"N":case"NN":case"NNN":if(l===n)return s[i];break;case"NNNN":if(a===n)return s[i];break;case"NNNNN":if(u===n)return s[i];break}else if([a,l,u].indexOf(n)>=0)return s[i]}function gm(n,e){var t=n.since<=n.until?1:-1;return e===void 0?we(n.since).year():we(n.since).year()+(e-n.offset)*t}function bm(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].name;return""}function vm(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].narrow;return""}function ym(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].abbr;return""}function wm(){var n,e,t,i,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=r[n].since<=r[n].until?1:-1,i=this.clone().startOf("day").valueOf(),r[n].since<=i&&i<=r[n].until||r[n].until<=i&&i<=r[n].since)return(this.year()-we(r[n].since).year())*t+r[n].offset;return this.year()}function Cm(n){return Ke(this,"_erasNameRegex")||Js.call(this),n?this._erasNameRegex:this._erasRegex}function Am(n){return Ke(this,"_erasAbbrRegex")||Js.call(this),n?this._erasAbbrRegex:this._erasRegex}function Em(n){return Ke(this,"_erasNarrowRegex")||Js.call(this),n?this._erasNarrowRegex:this._erasRegex}function Ks(n,e){return e.erasAbbrRegex(n)}function km(n,e){return e.erasNameRegex(n)}function Sm(n,e){return e.erasNarrowRegex(n)}function xm(n,e){return e._eraYearOrdinalRegex||Li}function Js(){var n=[],e=[],t=[],i=[],r,s,a,l,u,c=this.eras();for(r=0,s=c.length;r<s;++r)a=Zt(c[r].name),l=Zt(c[r].abbr),u=Zt(c[r].narrow),e.push(a),n.push(l),t.push(u),i.push(a),i.push(l),i.push(u);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}Te(0,["gg",2],0,function(){return this.weekYear()%100}),Te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Jn(n,e){Te(0,[n,n.length],0,e)}Jn("gggg","weekYear"),Jn("ggggg","weekYear"),Jn("GGGG","isoWeekYear"),Jn("GGGGG","isoWeekYear"),Ae("G",Nn),Ae("g",Nn),Ae("GG",tt,kt),Ae("gg",tt,kt),Ae("GGGG",Ls,Os),Ae("gggg",Ls,Os),Ae("GGGGG",Pn,Fn),Ae("ggggg",Pn,Fn),tn(["gggg","ggggg","GGGG","GGGGG"],function(n,e,t,i){e[i.substr(0,2)]=Ge(n)}),tn(["gg","GG"],function(n,e,t,i){e[i]=we.parseTwoDigitYear(n)});function Rm(n){return Pl.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Mm(n){return Pl.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function Tm(){return ti(this.year(),1,4)}function Dm(){return ti(this.isoWeekYear(),1,4)}function Om(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function Lm(){var n=this.localeData()._week;return ti(this.weekYear(),n.dow,n.doy)}function Pl(n,e,t,i,r){var s;return n==null?an(this,i,r).year:(s=ti(n,i,r),e>s&&(e=s),Bm.call(this,n,e,t,i,r))}function Bm(n,e,t,i,r){var s=fl(n,e,t,i,r),a=sn(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Te("Q",0,"Qo","quarter"),Ae("Q",il),Ze("Q",function(n,e){e[Xt]=(Ge(n)-1)*3});function Fm(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Te("D",["DD",2],"Do","date"),Ae("D",tt,Bi),Ae("DD",tt,kt),Ae("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Ze(["D","DD"],Gt),Ze("Do",function(n,e){e[Gt]=Ge(n.match(tt)[0])});var Nl=Fi("Date",!0);Te("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("DDD",_n),Ae("DDDD",nl),Ze(["DDD","DDDD"],function(n,e,t){t._dayOfYear=Ge(n)});function _m(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Te("m",["mm",2],0,"minute"),Ae("m",tt,Bs),Ae("mm",tt,kt),Ze(["m","mm"],It);var Pm=Fi("Minutes",!1);Te("s",["ss",2],0,"second"),Ae("s",tt,Bs),Ae("ss",tt,kt),Ze(["s","ss"],ei);var Nm=Fi("Seconds",!1);Te("S",0,0,function(){return~~(this.millisecond()/100)}),Te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Te(0,["SSS",3],0,"millisecond"),Te(0,["SSSS",4],0,function(){return this.millisecond()*10}),Te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ae("S",_n,il),Ae("SS",_n,kt),Ae("SSS",_n,nl);var di,Il;for(di="SSSS";di.length<=9;di+="S")Ae(di,Li);function Im(n,e){e[yi]=Ge(("0."+n)*1e3)}for(di="S";di.length<=9;di+="S")Ze(di,Im);Il=Fi("Milliseconds",!1),Te("z",0,0,"zoneAbbr"),Te("zz",0,0,"zoneName");function Hm(){return this._isUTC?"UTC":""}function Vm(){return this._isUTC?"Coordinated Universal Time":""}var me=Xi.prototype;me.add=Lp,me.calendar=Hp,me.clone=Vp,me.diff=Qp,me.endOf=nm,me.format=$p,me.from=Zp,me.fromNow=Xp,me.to=em,me.toNow=tm,me.get=Jh,me.invalidAt=hm,me.isAfter=zp,me.isBefore=jp,me.isBetween=Wp,me.isSame=Up,me.isSameOrAfter=Gp,me.isSameOrBefore=Yp,me.isValid=cm,me.lang=Ol,me.locale=Dl,me.localeData=Ll,me.max=cp,me.min=up,me.parsingFlags=dm,me.set=qh,me.startOf=im,me.subtract=Bp,me.toArray=om,me.toObject=lm,me.toDate=am,me.toISOString=Jp,me.inspect=qp,typeof Symbol<"u"&&Symbol.for!=null&&(me[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),me.toJSON=um,me.toString=Kp,me.unix=sm,me.valueOf=rm,me.creationData=fm,me.eraName=bm,me.eraNarrow=vm,me.eraAbbr=ym,me.eraYear=wm,me.year=al,me.isLeapYear=Kh,me.weekYear=Rm,me.isoWeekYear=Mm,me.quarter=me.quarters=Fm,me.month=dl,me.daysInMonth=af,me.week=me.weeks=pf,me.isoWeek=me.isoWeeks=mf,me.weeksInYear=Om,me.weeksInWeekYear=Lm,me.isoWeeksInYear=Tm,me.isoWeeksInISOWeekYear=Dm,me.date=Nl,me.day=me.days=Mf,me.weekday=Tf,me.isoWeekday=Df,me.dayOfYear=_m,me.hour=me.hours=Nf,me.minute=me.minutes=Pm,me.second=me.seconds=Nm,me.millisecond=me.milliseconds=Il,me.utcOffset=yp,me.utc=Cp,me.local=Ap,me.parseZone=Ep,me.hasAlignedHourOffset=kp,me.isDST=Sp,me.isLocal=Rp,me.isUtcOffset=Mp,me.isUtc=Sl,me.isUTC=Sl,me.zoneAbbr=Hm,me.zoneName=Vm,me.dates=Mt("dates accessor is deprecated. Use date instead.",Nl),me.months=Mt("months accessor is deprecated. Use month instead",dl),me.years=Mt("years accessor is deprecated. Use year instead",al),me.zone=Mt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wp),me.isDSTShifted=Mt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xp);function zm(n){return it(n*1e3)}function jm(){return it.apply(null,arguments).parseZone()}function Hl(n){return n}var Je=xs.prototype;Je.calendar=xh,Je.longDateFormat=Dh,Je.invalidDate=Lh,Je.ordinal=_h,Je.preparse=Hl,Je.postformat=Hl,Je.relativeTime=Nh,Je.pastFuture=Ih,Je.set=kh,Je.eras=pm,Je.erasParse=mm,Je.erasConvertYear=gm,Je.erasAbbrRegex=Am,Je.erasNameRegex=Cm,Je.erasNarrowRegex=Em,Je.months=tf,Je.monthsShort=nf,Je.monthsParse=sf,Je.monthsRegex=lf,Je.monthsShortRegex=of,Je.week=cf,Je.firstDayOfYear=ff,Je.firstDayOfWeek=hf,Je.weekdays=Ef,Je.weekdaysMin=Sf,Je.weekdaysShort=kf,Je.weekdaysParse=Rf,Je.weekdaysRegex=Of,Je.weekdaysShortRegex=Lf,Je.weekdaysMinRegex=Bf,Je.isPM=_f,Je.meridiem=If;function qn(n,e,t,i){var r=ii(),s=jt().set(i,e);return r[t](s,n)}function Vl(n,e,t){if($t(n)&&(e=n,n=void 0),n=n||"",e!=null)return qn(n,e,t,"month");var i,r=[];for(i=0;i<12;i++)r[i]=qn(n,i,t,"month");return r}function qs(n,e,t,i){typeof n=="boolean"?($t(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,$t(e)&&(t=e,e=void 0),e=e||"");var r=ii(),s=n?r._week.dow:0,a,l=[];if(t!=null)return qn(e,(t+s)%7,i,"day");for(a=0;a<7;a++)l[a]=qn(e,(a+s)%7,i,"day");return l}function Wm(n,e){return Vl(n,e,"months")}function Um(n,e){return Vl(n,e,"monthsShort")}function Gm(n,e,t){return qs(n,e,t,"weekdays")}function Ym(n,e,t){return qs(n,e,t,"weekdaysShort")}function Qm(n,e,t){return qs(n,e,t,"weekdaysMin")}ci("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=Ge(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}}),we.lang=Mt("moment.lang is deprecated. Use moment.locale instead.",ci),we.langData=Mt("moment.langData is deprecated. Use moment.localeData instead.",ii);var ni=Math.abs;function Km(){var n=this._data;return this._milliseconds=ni(this._milliseconds),this._days=ni(this._days),this._months=ni(this._months),n.milliseconds=ni(n.milliseconds),n.seconds=ni(n.seconds),n.minutes=ni(n.minutes),n.hours=ni(n.hours),n.months=ni(n.months),n.years=ni(n.years),this}function zl(n,e,t,i){var r=Ht(e,t);return n._milliseconds+=i*r._milliseconds,n._days+=i*r._days,n._months+=i*r._months,n._bubble()}function Jm(n,e){return zl(this,n,e,1)}function qm(n,e){return zl(this,n,e,-1)}function jl(n){return n<0?Math.floor(n):Math.ceil(n)}function $m(){var n=this._milliseconds,e=this._days,t=this._months,i=this._data,r,s,a,l,u;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=jl($s(t)+e)*864e5,e=0,t=0),i.milliseconds=n%1e3,r=Dt(n/1e3),i.seconds=r%60,s=Dt(r/60),i.minutes=s%60,a=Dt(s/60),i.hours=a%24,e+=Dt(a/24),u=Dt(Wl(e)),t+=u,e-=jl($s(u)),l=Dt(t/12),t%=12,i.days=e,i.months=t,i.years=l,this}function Wl(n){return n*4800/146097}function $s(n){return n*146097/4800}function Zm(n){if(!this.isValid())return NaN;var e,t,i=this._milliseconds;if(n=Tt(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+i/864e5,t=this._months+Wl(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round($s(this._months)),n){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return e*24+i/36e5;case"minute":return e*1440+i/6e4;case"second":return e*86400+i/1e3;case"millisecond":return Math.floor(e*864e5)+i;default:throw new Error("Unknown unit "+n)}}function ri(n){return function(){return this.as(n)}}var Ul=ri("ms"),Xm=ri("s"),eg=ri("m"),tg=ri("h"),ig=ri("d"),ng=ri("w"),rg=ri("M"),sg=ri("Q"),ag=ri("y"),og=Ul;function lg(){return Ht(this)}function ug(n){return n=Tt(n),this.isValid()?this[n+"s"]():NaN}function Ci(n){return function(){return this.isValid()?this._data[n]:NaN}}var cg=Ci("milliseconds"),dg=Ci("seconds"),hg=Ci("minutes"),fg=Ci("hours"),pg=Ci("days"),mg=Ci("months"),gg=Ci("years");function bg(){return Dt(this.days()/7)}var si=Math.round,Ii={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function vg(n,e,t,i,r){return r.relativeTime(e||1,!!t,n,i)}function yg(n,e,t,i){var r=Ht(n).abs(),s=si(r.as("s")),a=si(r.as("m")),l=si(r.as("h")),u=si(r.as("d")),c=si(r.as("M")),d=si(r.as("w")),f=si(r.as("y")),p=s<=t.ss&&["s",s]||s<t.s&&["ss",s]||a<=1&&["m"]||a<t.m&&["mm",a]||l<=1&&["h"]||l<t.h&&["hh",l]||u<=1&&["d"]||u<t.d&&["dd",u];return t.w!=null&&(p=p||d<=1&&["w"]||d<t.w&&["ww",d]),p=p||c<=1&&["M"]||c<t.M&&["MM",c]||f<=1&&["y"]||["yy",f],p[2]=e,p[3]=+n>0,p[4]=i,vg.apply(null,p)}function wg(n){return n===void 0?si:typeof n=="function"?(si=n,!0):!1}function Cg(n,e){return Ii[n]===void 0?!1:e===void 0?Ii[n]:(Ii[n]=e,n==="s"&&(Ii.ss=e-1),!0)}function Ag(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,i=Ii,r,s;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(i=Object.assign({},Ii,e),e.s!=null&&e.ss==null&&(i.ss=e.s-1)),r=this.localeData(),s=yg(this,!t,i,r),t&&(s=r.pastFuture(+this,s)),r.postformat(s)}var Zs=Math.abs;function Hi(n){return(n>0)-(n<0)||+n}function $n(){if(!this.isValid())return this.localeData().invalidDate();var n=Zs(this._milliseconds)/1e3,e=Zs(this._days),t=Zs(this._months),i,r,s,a,l=this.asSeconds(),u,c,d,f;return l?(i=Dt(n/60),r=Dt(i/60),n%=60,i%=60,s=Dt(t/12),t%=12,a=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=Hi(this._months)!==Hi(l)?"-":"",d=Hi(this._days)!==Hi(l)?"-":"",f=Hi(this._milliseconds)!==Hi(l)?"-":"",u+"P"+(s?c+s+"Y":"")+(t?c+t+"M":"")+(e?d+e+"D":"")+(r||i||n?"T":"")+(r?f+r+"H":"")+(i?f+i+"M":"")+(n?f+a+"S":"")):"P0D"}var Ye=Un.prototype;Ye.isValid=mp,Ye.abs=Km,Ye.add=Jm,Ye.subtract=qm,Ye.as=Zm,Ye.asMilliseconds=Ul,Ye.asSeconds=Xm,Ye.asMinutes=eg,Ye.asHours=tg,Ye.asDays=ig,Ye.asWeeks=ng,Ye.asMonths=rg,Ye.asQuarters=sg,Ye.asYears=ag,Ye.valueOf=og,Ye._bubble=$m,Ye.clone=lg,Ye.get=ug,Ye.milliseconds=cg,Ye.seconds=dg,Ye.minutes=hg,Ye.hours=fg,Ye.days=pg,Ye.weeks=bg,Ye.months=mg,Ye.years=gg,Ye.humanize=Ag,Ye.toISOString=$n,Ye.toString=$n,Ye.toJSON=$n,Ye.locale=Dl,Ye.localeData=Ll,Ye.toIsoString=Mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$n),Ye.lang=Ol,Te("X",0,0,"unix"),Te("x",0,0,"valueOf"),Ae("x",Nn),Ae("X",jh),Ze("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)}),Ze("x",function(n,e,t){t._d=new Date(Ge(n))});//! moment.js
|
|
25
|
-
we.version="2.30.1",Ah(it),we.fn=me,we.min=dp,we.max=hp,we.now=fp,we.utc=jt,we.unix=zm,we.months=Wm,we.isDate=Zi,we.locale=ci,we.invalid=On,we.duration=Ht,we.isMoment=Nt,we.weekdays=Gm,we.parseZone=jm,we.localeData=ii,we.isDuration=Gn,we.monthsShort=Um,we.weekdaysMin=Qm,we.defineLocale=Hs,we.updateLocale=jf,we.locales=Wf,we.weekdaysShort=Ym,we.normalizeUnits=Tt,we.relativeTimeRounding=wg,we.relativeTimeThreshold=Cg,we.calendarFormat=Ip,we.prototype=me,we.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Gl=n=>n===void 0||n==="auto"||n==="instant"||n==="smooth";function Eg(n,e){this.scrollLeft=n,this.scrollTop=e}const Yl=(n,e,t="cannot convert to dictionary.")=>`Failed to execute '${n}' on '${e}': ${t}`,Ql=(n,e,t)=>Yl(n,e,`The provided value '${t}' is not a valid enum value of type ScrollBehavior.`),Kl=(n,e,t)=>{var i;const r=`__SEAMLESS.BACKUP$${e}`;return!n[r]&&n[e]&&!(!((i=n[e])===null||i===void 0)&&i.__isPolyfill)&&(n[r]=n[e]),n[r]||t},kg=n=>{const e=typeof n;return n!==null&&(e==="object"||e==="function")},Xs=n=>n.ownerDocument.scrollingElement||n.ownerDocument.documentElement;function Sg(n){if(typeof Event=="function")return new Event("scrollend",{bubbles:n,cancelable:!1});const e=document.createEvent("Event");return e.initEvent("scrollend",n,!1),e}const xg=n=>.5*(1-Math.cos(Math.PI*n));function ea(){var n;let e;return!((n=window.performance)===null||n===void 0)&&n.now?e=()=>window.performance.now():e=()=>window.Date.now(),ea=e,e()}const Rg=500,Jl=n=>{const t=(ea()-n.timeStamp)/(n.duration||Rg);if(t>1){n.method(n.targetX,n.targetY),n.callback();return}const i=(n.timingFunc||xg)(t),r=n.startX+(n.targetX-n.startX)*i,s=n.startY+(n.targetY-n.startY)*i;n.method(r,s),n.rafId=window.requestAnimationFrame(()=>{Jl(n)})},Zn=n=>isFinite(n)?Number(n):0,Mg=n=>{var e;return(e=n.isConnected)!==null&&e!==void 0?e:!n.ownerDocument||!(n.ownerDocument.compareDocumentPosition(n)&1)},Tg=(n,e,t)=>{var i,r;if(!Mg(n))return;const s=n.scrollLeft,a=n.scrollTop,l=Zn((i=e.left)!==null&&i!==void 0?i:s),u=Zn((r=e.top)!==null&&r!==void 0?r:a);if(l===s&&u===a)return;const c=Kl(HTMLElement.prototype,"scroll",Eg),d=Kl(Object.getPrototypeOf(n),"scroll",c).bind(n);if(e.behavior!=="smooth"){d(l,u);return}const f=()=>{window.removeEventListener("wheel",S),window.removeEventListener("touchmove",S)},p=()=>{f();const m=n.nodeType===9;n.dispatchEvent(Sg(m))},h=Object.assign(Object.assign({},t),{timeStamp:ea(),startX:s,startY:a,targetX:l,targetY:u,rafId:0,method:d,callback:p}),S=()=>{window.cancelAnimationFrame(h.rafId),f()};window.addEventListener("wheel",S,{passive:!0,once:!0}),window.addEventListener("touchmove",S,{passive:!0,once:!0}),Jl(h)},Dg=n=>n.window===n,Og=(n=>(e,t,i)=>{const[r,s]=Dg(e)?[Xs(e.document.documentElement),"Window"]:[e,"Element"],a=t??{};if(!kg(a))throw new TypeError(Yl(n,s));if(!Gl(a.behavior))throw new TypeError(Ql(n,s,a.behavior));n==="scrollBy"&&(a.left=Zn(a.left)+r.scrollLeft,a.top=Zn(a.top)+r.scrollTop),Tg(r,a,i)})("scroll"),ql=n=>{switch(n){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},$l=(n,e,t,i)=>{let r=0;switch(e||(r^=2),n){case 0:r=r>>1|(r&1)<<1,[t,i]=[i,t];break;case 1:case 3:r^=1;break;case 4:r^=2;break}return[r,t,i]},Lg=n=>($l(ql(n.writingMode),n.direction!=="rtl",void 0,void 0)[0]&1)===1,Bg=(n,e,t)=>{const[i,r,s]=$l(e,t,n.block||"start",n.inline||"nearest");return[r,s].map((a,l)=>{switch(a){case"center":return 1;case"nearest":return 0;default:{const u=i>>l&1;return a==="start"==!u?2:3}}})},Zl=(n,e,t,i,r,s,a)=>n!==0?n:r<e&&s>t||r>e&&s<t?null:r<=e&&a<=i||s>=t&&a>=i?2:s>t&&a<i||r<e&&a>i?3:null,Xl=n=>n!=="visible"&&n!=="clip",Fg=n=>{var e;try{return((e=n.ownerDocument.defaultView)===null||e===void 0?void 0:e.frameElement)||null}catch{return null}},_g=(n,e)=>n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth?Xl(e.overflowY)||Xl(e.overflowX)||n===Xs(n):!1,eu=n=>{const e=n.parentNode,t=n.parentElement;if(t===null&&e!==null){if(e.nodeType===11)return e.host;if(e.nodeType===9)return Fg(n)}return t},ta=(n,e,t)=>n<e?e:n>t?t:n,Pg=n=>["scroll-margin","scroll-snap-margin"].filter(e=>e in n.documentElement.style)[0],Ng=(n,e,t)=>{const{top:i,right:r,bottom:s,left:a}=e,l=Pg(n.ownerDocument);if(!l)return[i,r,s,a];const u=c=>{const d=t.getPropertyValue(`${l}-${c}`);return parseInt(d,10)||0};return[i-u("top"),r+u("right"),s+u("bottom"),a-u("left")]},Xn=(n,e,t)=>{switch(n){case 1:return(e+t)/2;case 3:return t;case 2:case 0:return e}},Ig=(n,e)=>{var t,i,r;const s=(t=n.ownerDocument.defaultView)===null||t===void 0?void 0:t.visualViewport,[a,l,u,c]=n===Xs(n)?[0,0,(i=s?.width)!==null&&i!==void 0?i:n.clientWidth,(r=s?.height)!==null&&r!==void 0?r:n.clientHeight]:[e.left,e.top,n.clientWidth,n.clientHeight],d=a+n.clientLeft,f=l+n.clientTop,p=d+u,h=f+c;return[f,p,h,d]},Hg=(n,e)=>{const t=[];let i=n.ownerDocument,r=i.defaultView;if(!r)return t;const s=window.getComputedStyle(n),a=s.direction!=="rtl",l=ql(s.writingMode||s.getPropertyValue("-webkit-writing-mode")||s.getPropertyValue("-ms-writing-mode")),[u,c]=Bg(e,l,a);let[d,f,p,h]=Ng(n,n.getBoundingClientRect(),s);for(let S=eu(n);S!==null;S=eu(S)){if(i!==S.ownerDocument){if(i=S.ownerDocument,r=i.defaultView,!r)break;const{left:D,top:T}=S.getBoundingClientRect();d+=T,f+=D,p+=T,h+=D}const m=r.getComputedStyle(S);if(m.position==="fixed")break;if(!_g(S,m))continue;const C=S.getBoundingClientRect(),[b,g,M,v]=Ig(S,C),R=Zl(u,v,g,S.clientWidth,h,f,f-h),y=Zl(c,b,M,S.clientHeight,d,p,p-d),x=R===null?0:Xn(R,h,f)-Xn(R,v,g),k=y===null?0:Xn(y,d,p)-Xn(y,b,M),A=Lg(m)?ta(x,-S.scrollWidth+S.clientWidth-S.scrollLeft,-S.scrollLeft):ta(x,-S.scrollLeft,S.scrollWidth-S.clientWidth-S.scrollLeft),w=ta(k,-S.scrollTop,S.scrollHeight-S.clientHeight-S.scrollTop);t.push([S,{left:S.scrollLeft+A,top:S.scrollTop+w,behavior:e.behavior}]),d=Math.max(d-w,b),f=Math.min(f-A,g),p=Math.min(p-w,M),h=Math.max(h-A,v)}return t},tu=(n,e,t)=>{const i=e||{};if(!Gl(i.behavior))throw new TypeError(Ql("scrollIntoView","Element",i.behavior));Hg(n,i).forEach(([s,a])=>{Og(s,a,t)})},iu=(n,e)=>e.some(t=>n.includes(t)),nu=(n,e)=>e.every(t=>n.includes(t));function ru(n){return Array.isArray(n)?n.map(e=>({id:e.id,label:e.name,all:e})):[]}function su(){setTimeout(()=>{const e=document.querySelectorAll(".not-valid")[0];e&&tu(e,{behavior:"smooth",block:"center"})})}function au(n,e){const t=document.querySelector(n);t&&tu(t,{behavior:"smooth",block:"center",...e})}function ou(){return navigator?.language?.split("-")[0]}function ia(){return["ru","en","kz"]}function lu(n){return ia().includes(n)}function na(n,e){let t;return function(...i){t&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function uu(n,e){let t;return function(...i){t||(n(...i),t=!0,setTimeout(()=>t=!1,e))}}function ra(n){const e={};for(const[t,i]of Object.entries(n))i&&(e[t]=i);return e}function cu(n){return n.map(e=>ra(e))}function du(n){return n.reduce((e,t)=>e+t,0)}const hu=()=>({alias:"email"}),fu=(n="ru")=>({ru:{mask:"+7(999)999-99-99"},kz:{mask:"+7(999)999-99-99"},us:{mask:"+1(999)999-9999"}})[n],pu=()=>({regex:"^[0-9]{10,12}$"}),mu=()=>({mask:"999999999"}),gu=()=>({mask:"999-999-999 99"}),bu=()=>({mask:"9999 999999"});function sa(n){return typeof n!="string"?!1:we(n).isValid()}function vu(n,e={}){const{withTime:t=!1,locale:i="ru"}=e;if(!n||n.length===0||!sa(n))return"";const r=new Date(n),s=r.getHours()>=10?r.getHours():`0${r.getHours()}`,a=r.getMinutes()>=10?r.getMinutes():`0${r.getMinutes()}`,l=r.getFullYear(),u=r.getMonth()+1>=10?r.getMonth()+1:`0${r.getMonth()+1}`,c=r.getDate()>=10?r.getDate():`0${r.getDate()}`;return i==="ru"?t?`${c}.${u}.${l} ${s}:${a}`:`${c}.${u}.${l}`:t?`${u}.${c}.${l} ${s}:${a}`:`${u}.${c}.${l}`}function yu(n,e={}){const{locale:t="ru",currency:i="RUB"}=e,r={ru:"ru-RU",en:"en-US",kz:"kk-KZ"},a={style:"currency",maximumSignificantDigits:2,currency:{ru:"RUB",en:"USD",kz:"KZT"}[t]||i};return new Intl.NumberFormat(r[t]||"en-US",a).format(Number(n))}function wu(n){return we(new Date).format(n)}function Cu(n,e){const t=new Date(n);return t.setDate(t.getDate()+e),t}function Au(n,e){const t=new Date(n);return t.setMonth(t.getMonth()+e),t}function Eu(n,e){const t=new Date(n);return t.setFullYear(t.getFullYear()+e),t}function ku(n,e,t,i){let r=Math.abs(n);return r%=100,r>=5&&r<=20?i:(r%=10,r===1?e:r>=2&&r<=4?t:i)}function Su(n){return!n||n.length===0?n:n[0].toUpperCase()+n.slice(1)}function xu(n){return n.replace(/\b\w/g,e=>e.toUpperCase())}function Ru(n){return n.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>t===0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")}function Mu(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function Tu(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1_$2").toLowerCase()}function Du(n,e,t="..."){return n.length<=e?n:n.substring(0,e)+t}function Ou(n){let e=n.replace(/\D/g,"").slice(0,8);return e.length>=5?`${e.slice(0,2)}.${e.slice(2,4)}.${e.slice(4)}`:e.length>=3?`${e.slice(0,2)}.${e.slice(2)}`:e}function Lu({str:n,limit:e=null}){return!e||!n?n:n.substring(0,e)}function Bu(n,e){let t="";for(const[i,r]of n.entries()){const s=n.length>i+1?", ":" ";if(t+=`${r.name}${s}`,t.length>e){let a=n.length-(i+1);const l=a>0?`+${a}`:"";t=`${t.substr(0,e)}...${l}`;break}}return t}function Fu(n){return[...new Set(n)]}function _u(n,e){return n.reduce((t,i)=>{const r=String(i[e]);return t[r]=t[r]||[],t[r].push(i),t},{})}function Pu(n,e,t="asc"){return[...n].sort((i,r)=>{const s=i[e],a=r[e];return s<a?t==="asc"?-1:1:s>a?t==="asc"?1:-1:0})}function Nu(n,e){const t=[];for(let i=0;i<n.length;i+=e)t.push(n.slice(i,i+e));return t}function Iu(n){return typeof n=="object"&&n!==null}function hi(n){return n===void 0?n:JSON.parse(JSON.stringify(n))}function aa(n,e){return JSON.stringify(n)===JSON.stringify(e)}function Hu(n,e){return n.sort().toString()===e.sort().toString()}function Vu(n,e){let t=n.length,i=e.length;if(t!==i)return!1;n.sort(),e.sort();for(let r=0;r<t;r++)if(n[r]!==e[r])return!1;return!0}const zu=n=>{const e=hi(n),t={};for(const[i,r]of Object.entries(e)){const s=i.split(".");let a=t;for(const[u,c]of s.slice(0,-1).entries()){if(!a[c]){const d=Number.isInteger(Number(s[+u+1]));a[c]=d?[]:{}}a=a[c]}const l=s.pop();l&&(a[l]=r)}return t},oa=n=>{let e=hi(n),t={};for(const i in e){if(typeof e[i]!="object"||e[i]===null){t[i]=e[i];continue}const r=oa(e[i]);for(const s in r)t[`${i}.${s}`]=r[s]}return t};function ju(n,e){const t={};return e.forEach(i=>{i in n&&(t[i]=n[i])}),t}function Wu(n,e){const t={...n};return e.forEach(i=>{delete t[i]}),t}function cn(n,e,t,i=!1){if(i)return o.render(null,n),!0;const r=o.h(e,t);return o.render(r,n),!0}function Ai(){const n=Date.now(),e=Math.floor(Math.random()*9999);return n+e}function Uu(n=""){return`${n}${Date.now()}-${Math.random().toString(36).substr(2,9)}`}function Gu(n){throw new Error(`${n} is required.`)}function Yu(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)}function Qu(n){return/^[\+]?[1-9][\d]{0,15}$/.test(n.replace(/\D/g,""))}function Ku(n){try{return new URL(n),!0}catch{return!1}}function Ju(n,e){try{localStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to localStorage:",t)}}function qu(n,e){try{const t=localStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from localStorage:",t),e||null}}function $u(n){try{localStorage.removeItem(n)}catch(e){console.error("Error removing from localStorage:",e)}}function Zu(n,e){try{sessionStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to sessionStorage:",t)}}function Xu(n,e){try{const t=sessionStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from sessionStorage:",t),e||null}}function ec(n){try{sessionStorage.removeItem(n)}catch(e){console.error("Error removing from sessionStorage:",e)}}function tc(n){const e=new Map;return((...t)=>{const i=JSON.stringify(t);if(e.has(i))return e.get(i);const r=n(...t);return e.set(i,r),r})}function ic(n){let e=!1,t;return((...i)=>(e||(e=!0,t=n(...i)),t))}function nc(n,e,t){return Math.min(Math.max(n,e),t)}function rc(n,e,t){return n+(e-n)*t}function sc(n,e){return Math.floor(Math.random()*(e-n+1))+n}function ac(n,e){return Math.round(n*Math.pow(10,e))/Math.pow(10,e)}const Vg=Object.freeze(Object.defineProperty({__proto__:null,addDays:Cu,addMonths:Au,addYears:Eu,areArraysEqual:Vu,arrayToCutString:Bu,camelCase:Ru,capitalize:xu,chunk:Nu,clamp:nc,cutString:Lu,debounce:na,default:{prepareSelectOptions:ru,scrollToError:su,scrollToElement:au,getBrowserLocale:ou,getSupportedLocales:ia,isValidLocale:lu,debounce:na,throttle:uu,getValueFromObjectItem:ra,getValueFromArr:cu,sumOfArrayNumbers:du,initEmailMask:hu,initPhoneMask:fu,initInnMask:pu,initKppMask:mu,initSnilsMask:gu,initPassportMask:bu,isValidDate:sa,formatDate:vu,formatMoney:yu,getNowDate:wu,addDays:Cu,addMonths:Au,addYears:Eu,getDeclinationFromNumber:ku,firstToUppercase:Su,capitalize:xu,camelCase:Ru,kebabCase:Mu,snakeCase:Tu,truncate:Du,maskDate:Ou,cutString:Lu,arrayToCutString:Bu,findOne:iu,findAll:nu,unique:Fu,groupBy:_u,sortBy:Pu,chunk:Nu,isObject:Iu,getDeepCopyObject:hi,isEqual:aa,isArraysEqual:Hu,areArraysEqual:Vu,unflatenObject:zu,flattenObject:oa,pick:ju,omit:Wu,mountSubFilter:cn,getUniqueKey:Ai,generateId:Uu,required:Gu,isValidEmail:Yu,isValidPhone:Qu,isValidUrl:Ku,setLocalStorage:Ju,getLocalStorage:qu,removeLocalStorage:$u,setSessionStorage:Zu,getSessionStorage:Xu,removeSessionStorage:ec,memoize:tc,once:ic,clamp:nc,lerp:rc,random:sc,roundToDecimals:ac},findAll:nu,findOne:iu,firstToUppercase:Su,flattenObject:oa,formatDate:vu,formatMoney:yu,generateId:Uu,getBrowserLocale:ou,getDeclinationFromNumber:ku,getDeepCopyObject:hi,getLocalStorage:qu,getNowDate:wu,getSessionStorage:Xu,getSupportedLocales:ia,getUniqueKey:Ai,getValueFromArr:cu,getValueFromObjectItem:ra,groupBy:_u,initEmailMask:hu,initInnMask:pu,initKppMask:mu,initPassportMask:bu,initPhoneMask:fu,initSnilsMask:gu,isArraysEqual:Hu,isEqual:aa,isObject:Iu,isValidDate:sa,isValidEmail:Yu,isValidLocale:lu,isValidPhone:Qu,isValidUrl:Ku,kebabCase:Mu,lerp:rc,maskDate:Ou,memoize:tc,mountSubFilter:cn,omit:Wu,once:ic,pick:ju,prepareSelectOptions:ru,random:sc,removeLocalStorage:$u,removeSessionStorage:ec,required:Gu,roundToDecimals:ac,scrollToElement:au,scrollToError:su,setLocalStorage:Ju,setSessionStorage:Zu,snakeCase:Tu,sortBy:Pu,sumOfArrayNumbers:du,throttle:uu,truncate:Du,unflatenObject:zu,unique:Fu},Symbol.toStringTag,{value:"Module"})),zg={class:"lh-1","data-test":"FormError"},Ei={__name:"FormError",props:{errors:{type:Array,default:()=>[]}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",zg,[n.errors?.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(n.errors,(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:"text-danger small",key:r},o.toDisplayString(i),1))),128)):o.createCommentVNode("",!0)]))}},jg={class:"position-relative"},Wg=["type","name","value","placeholder","disabled"],er=_e({__name:"CustomInput",props:{modelValue:{type:[String,Number],default:""},titleClass:{type:String,default:""},title:{type:String,default:""},name:{type:String,default:""},min:{type:[String,Number],default:""},max:{type:[String,Number],default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},inputClass:{type:[String,Object],default:""},type:{type:String,default:"text"},error:{type:[String,Object,Array],default:""},maskOptions:{type:[String,Object],default:()=>({})},maxNumber:{type:[String,Number],default:null}},emits:["change","blur","update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(null),s=f=>{let p=f.target.value;t.max&&(p=a(p),f.target.value=p),t.maxNumber&&(Number(p)>=Number(t.maxNumber)&&(p=t.maxNumber.toString()),f.target.value=p),i("update:modelValue",p)},a=f=>f.substring(0,t.max),l=()=>{i("update:modelValue",null),i("change",null),r.value&&(r.value.value=null)},u=()=>{if(t.maskOptions===""||!r.value)return!1;Ch({...t.maskOptions}).mask(r.value)};o.onMounted(()=>{u()}),o.watch(()=>t.maskOptions,(f,p)=>{aa(f,p)||u()},{deep:!0});const c=o.computed(()=>!(!t.modelValue||t.disabled)),d=o.computed(()=>Array.isArray(t.error)?t.error.filter(Boolean):typeof t.error=="string"&&t.error?[t.error]:[]);return(f,p)=>(o.openBlock(),o.createElementBlock("div",null,[n.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["mb-1 fw-bold",[n.titleClass]])},o.toDisplayString(n.title),3)):o.createCommentVNode("",!0),o.createElementVNode("div",jg,[o.createElementVNode("input",{ref_key:"inputEl",ref:r,type:n.type,name:n.name,class:o.normalizeClass(["form-control outline-none",{[n.inputClass]:n.inputClass,"not-valid":d.value.length>0,"is-invalid":d.value.length>0}]),value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onBlur:p[0]||(p[0]=h=>i("blur")),onInput:s},null,42,Wg),c.value?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(["bi bi-x-lg remove-button position-absolute",[n.modelValue?"":"d-none",n.disabled?"d-none":""]]),onClick:l},null,2)):o.createCommentVNode("",!0)]),o.createVNode(Ei,{errors:d.value},null,8,["errors"])]))}},[["__scopeId","data-v-7b055e3b"]]),Ug={class:"position-relative"},Gg=["type","value"],Yg=_e({__name:"PasswordInput",props:{modelValue:{type:String,default:""},error:{type:[String,Array],default:""},initialVisibility:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n){const e=n,t=o.ref(e.initialVisibility);o.watch(()=>e.initialVisibility,r=>{t.value=r});const i=o.computed(()=>Array.isArray(e.error)?e.error.filter(Boolean):typeof e.error=="string"&&e.error?[e.error]:[]);return(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Ug,[o.createElementVNode("input",{class:o.normalizeClass(["form-control password-input outline-none",{"is-invalid":i.value.length>0}]),type:t.value?"text":"password",value:n.modelValue,autocomplete:"new-password",onInput:s[0]||(s[0]=a=>r.$emit("update:modelValue",a.target.value))},null,42,Gg),o.createElementVNode("div",{class:"toggle-pass",onClick:s[1]||(s[1]=a=>t.value=!t.value)},[o.createElementVNode("i",{class:o.normalizeClass(["bi",[t.value?"bi-eye-slash-fill":"bi-eye-fill"]]),style:{"font-size":"20px"}},null,2)])]),o.createVNode(Ei,{errors:i.value},null,8,["errors"])]))}},[["__scopeId","data-v-7b5f1918"]]),Qg={class:"form-check d-flex align-items-center"},Kg=["id","name","checked"],Jg=["for"],qg={__name:"Checkbox",props:{modelValue:{type:Boolean,default:!1},name:{type:String,required:!0},label:{type:String,default:""},id:{type:String,default:()=>`checkbox-${Math.random().toString(36).slice(2,9)}`},size:{type:String,default:"sm",validator:n=>["sm","md","lg"].includes(n)},clickableLabel:{type:Boolean,default:!0},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(null),s=o.computed(()=>t.size==="sm"?"5px":t.size==="md"?"10px":t.size==="lg"?"15px":"5px"),a=l=>{i("update:modelValue",l.target.checked)};return o.watch(()=>t.indeterminate,l=>{r.value&&(r.value.indeterminate=l)}),o.onMounted(()=>{r.value&&(r.value.indeterminate=t.indeterminate)}),(l,u)=>(o.openBlock(),o.createElementBlock("div",Qg,[o.createElementVNode("input",{ref_key:"inputRef",ref:r,class:"form-check-input mr-2 mt-0",type:"checkbox",id:n.id,name:n.name,style:o.normalizeStyle({padding:s.value}),checked:n.modelValue,onChange:a},null,44,Kg),n.label?(o.openBlock(),o.createElementBlock("label",{key:0,class:o.normalizeClass(["form-check-label lh-n",{"cursor-pointer":n.clickableLabel}]),for:n.clickableLabel?n.id:void 0},o.toDisplayString(n.label),11,Jg)):o.createCommentVNode("",!0)]))}};var $g=Object.defineProperty,Zg=Object.defineProperties,Xg=Object.getOwnPropertyDescriptors,oc=Object.getOwnPropertySymbols,eb=Object.prototype.hasOwnProperty,tb=Object.prototype.propertyIsEnumerable,lc=(n,e,t)=>e in n?$g(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Vi=(n,e)=>{for(var t in e||(e={}))eb.call(e,t)&&lc(n,t,e[t]);if(oc)for(var t of oc(e))tb.call(e,t)&&lc(n,t,e[t]);return n},uc=(n,e)=>Zg(n,Xg(e));const ib={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(n){this.autoscroll&&n&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var n;const e=((n=this.$refs.dropdownMenu)==null?void 0:n.children[this.typeAheadPointer])||!1;if(e){const t=this.getDropdownViewport(),{top:i,bottom:r,height:s}=e.getBoundingClientRect();if(i<t.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>t.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(t.height-s)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},nb={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let n=0;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},open(n){n&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let n=this.typeAheadPointer-1;n>=0;n--)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadDown(){for(let n=this.typeAheadPointer+1;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadSelect(){const n=this.filteredOptions[this.typeAheadPointer];n&&this.selectable(n)&&this.select(n)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},rb={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(n){this.mutableLoading=n}},methods:{toggleLoading(n=null){return n==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=n}}},la=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},sb={},ab={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},ob=o.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),lb=[ob];function ub(n,e){return o.openBlock(),o.createElementBlock("svg",ab,lb)}const cb=la(sb,[["render",ub]]),db={},hb={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},fb=o.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),pb=[fb];function mb(n,e){return o.openBlock(),o.createElementBlock("svg",hb,pb)}const gb=la(db,[["render",mb]]),cc={Deselect:cb,OpenIndicator:gb},bb={mounted(n,{instance:e}){if(e.appendToBody){const{height:t,top:i,left:r,width:s}=e.$refs.toggle.getBoundingClientRect();let a=window.scrollX||window.pageXOffset,l=window.scrollY||window.pageYOffset;n.unbindPosition=e.calculatePosition(n,e,{width:s+"px",left:a+r+"px",top:l+i+t+"px"}),document.body.appendChild(n)}},unmounted(n,{instance:e}){e.appendToBody&&(n.unbindPosition&&typeof n.unbindPosition=="function"&&n.unbindPosition(),n.parentNode&&n.parentNode.removeChild(n))}};function vb(n){const e={};return Object.keys(n).sort().forEach(t=>{e[t]=n[t]}),JSON.stringify(e)}let yb=0;function wb(){return++yb}const Cb={components:Vi({},cc),directives:{appendToBody:bb},mixins:[ib,nb,rb],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:n=>n},selectable:{type:Function,default:n=>!0},getOptionLabel:{type:Function,default(n){return typeof n=="object"?n.hasOwnProperty(this.label)?n[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(n)}.
|
|
25
|
+
we.version="2.30.1",Ah(it),we.fn=me,we.min=dp,we.max=hp,we.now=fp,we.utc=jt,we.unix=zm,we.months=Wm,we.isDate=Zi,we.locale=ci,we.invalid=On,we.duration=Ht,we.isMoment=Nt,we.weekdays=Gm,we.parseZone=jm,we.localeData=ii,we.isDuration=Gn,we.monthsShort=Um,we.weekdaysMin=Qm,we.defineLocale=Hs,we.updateLocale=jf,we.locales=Wf,we.weekdaysShort=Ym,we.normalizeUnits=Tt,we.relativeTimeRounding=wg,we.relativeTimeThreshold=Cg,we.calendarFormat=Ip,we.prototype=me,we.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Gl=n=>n===void 0||n==="auto"||n==="instant"||n==="smooth";function Eg(n,e){this.scrollLeft=n,this.scrollTop=e}const Yl=(n,e,t="cannot convert to dictionary.")=>`Failed to execute '${n}' on '${e}': ${t}`,Ql=(n,e,t)=>Yl(n,e,`The provided value '${t}' is not a valid enum value of type ScrollBehavior.`),Kl=(n,e,t)=>{var i;const r=`__SEAMLESS.BACKUP$${e}`;return!n[r]&&n[e]&&!(!((i=n[e])===null||i===void 0)&&i.__isPolyfill)&&(n[r]=n[e]),n[r]||t},kg=n=>{const e=typeof n;return n!==null&&(e==="object"||e==="function")},Xs=n=>n.ownerDocument.scrollingElement||n.ownerDocument.documentElement;function Sg(n){if(typeof Event=="function")return new Event("scrollend",{bubbles:n,cancelable:!1});const e=document.createEvent("Event");return e.initEvent("scrollend",n,!1),e}const xg=n=>.5*(1-Math.cos(Math.PI*n));function ea(){var n;let e;return!((n=window.performance)===null||n===void 0)&&n.now?e=()=>window.performance.now():e=()=>window.Date.now(),ea=e,e()}const Rg=500,Jl=n=>{const t=(ea()-n.timeStamp)/(n.duration||Rg);if(t>1){n.method(n.targetX,n.targetY),n.callback();return}const i=(n.timingFunc||xg)(t),r=n.startX+(n.targetX-n.startX)*i,s=n.startY+(n.targetY-n.startY)*i;n.method(r,s),n.rafId=window.requestAnimationFrame(()=>{Jl(n)})},Zn=n=>isFinite(n)?Number(n):0,Mg=n=>{var e;return(e=n.isConnected)!==null&&e!==void 0?e:!n.ownerDocument||!(n.ownerDocument.compareDocumentPosition(n)&1)},Tg=(n,e,t)=>{var i,r;if(!Mg(n))return;const s=n.scrollLeft,a=n.scrollTop,l=Zn((i=e.left)!==null&&i!==void 0?i:s),u=Zn((r=e.top)!==null&&r!==void 0?r:a);if(l===s&&u===a)return;const c=Kl(HTMLElement.prototype,"scroll",Eg),d=Kl(Object.getPrototypeOf(n),"scroll",c).bind(n);if(e.behavior!=="smooth"){d(l,u);return}const f=()=>{window.removeEventListener("wheel",S),window.removeEventListener("touchmove",S)},p=()=>{f();const m=n.nodeType===9;n.dispatchEvent(Sg(m))},h=Object.assign(Object.assign({},t),{timeStamp:ea(),startX:s,startY:a,targetX:l,targetY:u,rafId:0,method:d,callback:p}),S=()=>{window.cancelAnimationFrame(h.rafId),f()};window.addEventListener("wheel",S,{passive:!0,once:!0}),window.addEventListener("touchmove",S,{passive:!0,once:!0}),Jl(h)},Dg=n=>n.window===n,Og=(n=>(e,t,i)=>{const[r,s]=Dg(e)?[Xs(e.document.documentElement),"Window"]:[e,"Element"],a=t??{};if(!kg(a))throw new TypeError(Yl(n,s));if(!Gl(a.behavior))throw new TypeError(Ql(n,s,a.behavior));n==="scrollBy"&&(a.left=Zn(a.left)+r.scrollLeft,a.top=Zn(a.top)+r.scrollTop),Tg(r,a,i)})("scroll"),ql=n=>{switch(n){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},$l=(n,e,t,i)=>{let r=0;switch(e||(r^=2),n){case 0:r=r>>1|(r&1)<<1,[t,i]=[i,t];break;case 1:case 3:r^=1;break;case 4:r^=2;break}return[r,t,i]},Lg=n=>($l(ql(n.writingMode),n.direction!=="rtl",void 0,void 0)[0]&1)===1,Bg=(n,e,t)=>{const[i,r,s]=$l(e,t,n.block||"start",n.inline||"nearest");return[r,s].map((a,l)=>{switch(a){case"center":return 1;case"nearest":return 0;default:{const u=i>>l&1;return a==="start"==!u?2:3}}})},Zl=(n,e,t,i,r,s,a)=>n!==0?n:r<e&&s>t||r>e&&s<t?null:r<=e&&a<=i||s>=t&&a>=i?2:s>t&&a<i||r<e&&a>i?3:null,Xl=n=>n!=="visible"&&n!=="clip",Fg=n=>{var e;try{return((e=n.ownerDocument.defaultView)===null||e===void 0?void 0:e.frameElement)||null}catch{return null}},_g=(n,e)=>n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth?Xl(e.overflowY)||Xl(e.overflowX)||n===Xs(n):!1,eu=n=>{const e=n.parentNode,t=n.parentElement;if(t===null&&e!==null){if(e.nodeType===11)return e.host;if(e.nodeType===9)return Fg(n)}return t},ta=(n,e,t)=>n<e?e:n>t?t:n,Pg=n=>["scroll-margin","scroll-snap-margin"].filter(e=>e in n.documentElement.style)[0],Ng=(n,e,t)=>{const{top:i,right:r,bottom:s,left:a}=e,l=Pg(n.ownerDocument);if(!l)return[i,r,s,a];const u=c=>{const d=t.getPropertyValue(`${l}-${c}`);return parseInt(d,10)||0};return[i-u("top"),r+u("right"),s+u("bottom"),a-u("left")]},Xn=(n,e,t)=>{switch(n){case 1:return(e+t)/2;case 3:return t;case 2:case 0:return e}},Ig=(n,e)=>{var t,i,r;const s=(t=n.ownerDocument.defaultView)===null||t===void 0?void 0:t.visualViewport,[a,l,u,c]=n===Xs(n)?[0,0,(i=s?.width)!==null&&i!==void 0?i:n.clientWidth,(r=s?.height)!==null&&r!==void 0?r:n.clientHeight]:[e.left,e.top,n.clientWidth,n.clientHeight],d=a+n.clientLeft,f=l+n.clientTop,p=d+u,h=f+c;return[f,p,h,d]},Hg=(n,e)=>{const t=[];let i=n.ownerDocument,r=i.defaultView;if(!r)return t;const s=window.getComputedStyle(n),a=s.direction!=="rtl",l=ql(s.writingMode||s.getPropertyValue("-webkit-writing-mode")||s.getPropertyValue("-ms-writing-mode")),[u,c]=Bg(e,l,a);let[d,f,p,h]=Ng(n,n.getBoundingClientRect(),s);for(let S=eu(n);S!==null;S=eu(S)){if(i!==S.ownerDocument){if(i=S.ownerDocument,r=i.defaultView,!r)break;const{left:D,top:T}=S.getBoundingClientRect();d+=T,f+=D,p+=T,h+=D}const m=r.getComputedStyle(S);if(m.position==="fixed")break;if(!_g(S,m))continue;const A=S.getBoundingClientRect(),[b,g,M,v]=Ig(S,A),R=Zl(u,v,g,S.clientWidth,h,f,f-h),y=Zl(c,b,M,S.clientHeight,d,p,p-d),x=R===null?0:Xn(R,h,f)-Xn(R,v,g),k=y===null?0:Xn(y,d,p)-Xn(y,b,M),C=Lg(m)?ta(x,-S.scrollWidth+S.clientWidth-S.scrollLeft,-S.scrollLeft):ta(x,-S.scrollLeft,S.scrollWidth-S.clientWidth-S.scrollLeft),w=ta(k,-S.scrollTop,S.scrollHeight-S.clientHeight-S.scrollTop);t.push([S,{left:S.scrollLeft+C,top:S.scrollTop+w,behavior:e.behavior}]),d=Math.max(d-w,b),f=Math.min(f-C,g),p=Math.min(p-w,M),h=Math.max(h-C,v)}return t},tu=(n,e,t)=>{const i=e||{};if(!Gl(i.behavior))throw new TypeError(Ql("scrollIntoView","Element",i.behavior));Hg(n,i).forEach(([s,a])=>{Og(s,a,t)})},iu=(n,e)=>e.some(t=>n.includes(t)),nu=(n,e)=>e.every(t=>n.includes(t));function ru(n){return Array.isArray(n)?n.map(e=>({id:e.id,label:e.name,all:e})):[]}function su(){setTimeout(()=>{const e=document.querySelectorAll(".not-valid")[0];e&&tu(e,{behavior:"smooth",block:"center"})})}function au(n,e){const t=document.querySelector(n);t&&tu(t,{behavior:"smooth",block:"center",...e})}function ou(){return navigator?.language?.split("-")[0]}function ia(){return["ru","en","kz"]}function lu(n){return ia().includes(n)}function na(n,e){let t;return function(...i){t&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function uu(n,e){let t;return function(...i){t||(n(...i),t=!0,setTimeout(()=>t=!1,e))}}function ra(n){const e={};for(const[t,i]of Object.entries(n))i&&(e[t]=i);return e}function cu(n){return n.map(e=>ra(e))}function du(n){return n.reduce((e,t)=>e+t,0)}const hu=()=>({alias:"email"}),fu=(n="ru")=>({ru:{mask:"+7(999)999-99-99"},kz:{mask:"+7(999)999-99-99"},us:{mask:"+1(999)999-9999"}})[n],pu=()=>({regex:"^[0-9]{10,12}$"}),mu=()=>({mask:"999999999"}),gu=()=>({mask:"999-999-999 99"}),bu=()=>({mask:"9999 999999"});function sa(n){return typeof n!="string"?!1:we(n).isValid()}function vu(n,e={}){const{withTime:t=!1,locale:i="ru"}=e;if(!n||n.length===0||!sa(n))return"";const r=new Date(n),s=r.getHours()>=10?r.getHours():`0${r.getHours()}`,a=r.getMinutes()>=10?r.getMinutes():`0${r.getMinutes()}`,l=r.getFullYear(),u=r.getMonth()+1>=10?r.getMonth()+1:`0${r.getMonth()+1}`,c=r.getDate()>=10?r.getDate():`0${r.getDate()}`;return i==="ru"?t?`${c}.${u}.${l} ${s}:${a}`:`${c}.${u}.${l}`:t?`${u}.${c}.${l} ${s}:${a}`:`${u}.${c}.${l}`}function yu(n,e={}){const{locale:t="ru",currency:i="RUB"}=e,r={ru:"ru-RU",en:"en-US",kz:"kk-KZ"},a={style:"currency",maximumSignificantDigits:2,currency:{ru:"RUB",en:"USD",kz:"KZT"}[t]||i};return new Intl.NumberFormat(r[t]||"en-US",a).format(Number(n))}function wu(n){return we(new Date).format(n)}function Cu(n,e){const t=new Date(n);return t.setDate(t.getDate()+e),t}function Au(n,e){const t=new Date(n);return t.setMonth(t.getMonth()+e),t}function Eu(n,e){const t=new Date(n);return t.setFullYear(t.getFullYear()+e),t}function ku(n,e,t,i){let r=Math.abs(n);return r%=100,r>=5&&r<=20?i:(r%=10,r===1?e:r>=2&&r<=4?t:i)}function Su(n){return!n||n.length===0?n:n[0].toUpperCase()+n.slice(1)}function xu(n){return n.replace(/\b\w/g,e=>e.toUpperCase())}function Ru(n){return n.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>t===0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")}function Mu(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function Tu(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1_$2").toLowerCase()}function Du(n,e,t="..."){return n.length<=e?n:n.substring(0,e)+t}function Ou(n){let e=n.replace(/\D/g,"").slice(0,8);return e.length>=5?`${e.slice(0,2)}.${e.slice(2,4)}.${e.slice(4)}`:e.length>=3?`${e.slice(0,2)}.${e.slice(2)}`:e}function Lu({str:n,limit:e=null}){return!e||!n?n:n.substring(0,e)}function Bu(n,e){let t="";for(const[i,r]of n.entries()){const s=n.length>i+1?", ":" ";if(t+=`${r.name}${s}`,t.length>e){let a=n.length-(i+1);const l=a>0?`+${a}`:"";t=`${t.substr(0,e)}...${l}`;break}}return t}function Fu(n){return[...new Set(n)]}function _u(n,e){return n.reduce((t,i)=>{const r=String(i[e]);return t[r]=t[r]||[],t[r].push(i),t},{})}function Pu(n,e,t="asc"){return[...n].sort((i,r)=>{const s=i[e],a=r[e];return s<a?t==="asc"?-1:1:s>a?t==="asc"?1:-1:0})}function Nu(n,e){const t=[];for(let i=0;i<n.length;i+=e)t.push(n.slice(i,i+e));return t}function Iu(n){return typeof n=="object"&&n!==null}function hi(n){return n===void 0?n:JSON.parse(JSON.stringify(n))}function aa(n,e){return JSON.stringify(n)===JSON.stringify(e)}function Hu(n,e){return n.sort().toString()===e.sort().toString()}function Vu(n,e){let t=n.length,i=e.length;if(t!==i)return!1;n.sort(),e.sort();for(let r=0;r<t;r++)if(n[r]!==e[r])return!1;return!0}const zu=n=>{const e=hi(n),t={};for(const[i,r]of Object.entries(e)){const s=i.split(".");let a=t;for(const[u,c]of s.slice(0,-1).entries()){if(!a[c]){const d=Number.isInteger(Number(s[+u+1]));a[c]=d?[]:{}}a=a[c]}const l=s.pop();l&&(a[l]=r)}return t},oa=n=>{let e=hi(n),t={};for(const i in e){if(typeof e[i]!="object"||e[i]===null){t[i]=e[i];continue}const r=oa(e[i]);for(const s in r)t[`${i}.${s}`]=r[s]}return t};function ju(n,e){const t={};return e.forEach(i=>{i in n&&(t[i]=n[i])}),t}function Wu(n,e){const t={...n};return e.forEach(i=>{delete t[i]}),t}function cn(n,e,t,i=!1){if(i)return o.render(null,n),!0;const r=o.h(e,t);return o.render(r,n),!0}function Ai(){const n=Date.now(),e=Math.floor(Math.random()*9999);return n+e}function Uu(n=""){return`${n}${Date.now()}-${Math.random().toString(36).substr(2,9)}`}function Gu(n){throw new Error(`${n} is required.`)}function Yu(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)}function Qu(n){return/^[\+]?[1-9][\d]{0,15}$/.test(n.replace(/\D/g,""))}function Ku(n){try{return new URL(n),!0}catch{return!1}}function Ju(n,e){try{localStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to localStorage:",t)}}function qu(n,e){try{const t=localStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from localStorage:",t),e||null}}function $u(n){try{localStorage.removeItem(n)}catch(e){console.error("Error removing from localStorage:",e)}}function Zu(n,e){try{sessionStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to sessionStorage:",t)}}function Xu(n,e){try{const t=sessionStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from sessionStorage:",t),e||null}}function ec(n){try{sessionStorage.removeItem(n)}catch(e){console.error("Error removing from sessionStorage:",e)}}function tc(n){const e=new Map;return((...t)=>{const i=JSON.stringify(t);if(e.has(i))return e.get(i);const r=n(...t);return e.set(i,r),r})}function ic(n){let e=!1,t;return((...i)=>(e||(e=!0,t=n(...i)),t))}function nc(n,e,t){return Math.min(Math.max(n,e),t)}function rc(n,e,t){return n+(e-n)*t}function sc(n,e){return Math.floor(Math.random()*(e-n+1))+n}function ac(n,e){return Math.round(n*Math.pow(10,e))/Math.pow(10,e)}const Vg=Object.freeze(Object.defineProperty({__proto__:null,addDays:Cu,addMonths:Au,addYears:Eu,areArraysEqual:Vu,arrayToCutString:Bu,camelCase:Ru,capitalize:xu,chunk:Nu,clamp:nc,cutString:Lu,debounce:na,default:{prepareSelectOptions:ru,scrollToError:su,scrollToElement:au,getBrowserLocale:ou,getSupportedLocales:ia,isValidLocale:lu,debounce:na,throttle:uu,getValueFromObjectItem:ra,getValueFromArr:cu,sumOfArrayNumbers:du,initEmailMask:hu,initPhoneMask:fu,initInnMask:pu,initKppMask:mu,initSnilsMask:gu,initPassportMask:bu,isValidDate:sa,formatDate:vu,formatMoney:yu,getNowDate:wu,addDays:Cu,addMonths:Au,addYears:Eu,getDeclinationFromNumber:ku,firstToUppercase:Su,capitalize:xu,camelCase:Ru,kebabCase:Mu,snakeCase:Tu,truncate:Du,maskDate:Ou,cutString:Lu,arrayToCutString:Bu,findOne:iu,findAll:nu,unique:Fu,groupBy:_u,sortBy:Pu,chunk:Nu,isObject:Iu,getDeepCopyObject:hi,isEqual:aa,isArraysEqual:Hu,areArraysEqual:Vu,unflatenObject:zu,flattenObject:oa,pick:ju,omit:Wu,mountSubFilter:cn,getUniqueKey:Ai,generateId:Uu,required:Gu,isValidEmail:Yu,isValidPhone:Qu,isValidUrl:Ku,setLocalStorage:Ju,getLocalStorage:qu,removeLocalStorage:$u,setSessionStorage:Zu,getSessionStorage:Xu,removeSessionStorage:ec,memoize:tc,once:ic,clamp:nc,lerp:rc,random:sc,roundToDecimals:ac},findAll:nu,findOne:iu,firstToUppercase:Su,flattenObject:oa,formatDate:vu,formatMoney:yu,generateId:Uu,getBrowserLocale:ou,getDeclinationFromNumber:ku,getDeepCopyObject:hi,getLocalStorage:qu,getNowDate:wu,getSessionStorage:Xu,getSupportedLocales:ia,getUniqueKey:Ai,getValueFromArr:cu,getValueFromObjectItem:ra,groupBy:_u,initEmailMask:hu,initInnMask:pu,initKppMask:mu,initPassportMask:bu,initPhoneMask:fu,initSnilsMask:gu,isArraysEqual:Hu,isEqual:aa,isObject:Iu,isValidDate:sa,isValidEmail:Yu,isValidLocale:lu,isValidPhone:Qu,isValidUrl:Ku,kebabCase:Mu,lerp:rc,maskDate:Ou,memoize:tc,mountSubFilter:cn,omit:Wu,once:ic,pick:ju,prepareSelectOptions:ru,random:sc,removeLocalStorage:$u,removeSessionStorage:ec,required:Gu,roundToDecimals:ac,scrollToElement:au,scrollToError:su,setLocalStorage:Ju,setSessionStorage:Zu,snakeCase:Tu,sortBy:Pu,sumOfArrayNumbers:du,throttle:uu,truncate:Du,unflatenObject:zu,unique:Fu},Symbol.toStringTag,{value:"Module"})),zg={class:"lh-1","data-test":"FormError"},Ei={__name:"FormError",props:{errors:{type:Array,default:()=>[]}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",zg,[n.errors?.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(n.errors,(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:"text-danger small",key:r},o.toDisplayString(i),1))),128)):o.createCommentVNode("",!0)]))}},jg={class:"position-relative"},Wg=["type","name","value","placeholder","disabled"],er=_e({__name:"CustomInput",props:{modelValue:{type:[String,Number],default:""},titleClass:{type:String,default:""},title:{type:String,default:""},name:{type:String,default:""},min:{type:[String,Number],default:""},max:{type:[String,Number],default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},inputClass:{type:[String,Object],default:""},type:{type:String,default:"text"},error:{type:[String,Object,Array],default:""},maskOptions:{type:[String,Object],default:()=>({})},maxNumber:{type:[String,Number],default:null}},emits:["change","blur","update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(null),s=f=>{let p=f.target.value;t.max&&(p=a(p),f.target.value=p),t.maxNumber&&(Number(p)>=Number(t.maxNumber)&&(p=t.maxNumber.toString()),f.target.value=p),i("update:modelValue",p)},a=f=>f.substring(0,t.max),l=()=>{i("update:modelValue",null),i("change",null),r.value&&(r.value.value=null)},u=()=>{if(t.maskOptions===""||!r.value)return!1;Ch({...t.maskOptions}).mask(r.value)};o.onMounted(()=>{u()}),o.watch(()=>t.maskOptions,(f,p)=>{aa(f,p)||u()},{deep:!0});const c=o.computed(()=>!(!t.modelValue||t.disabled)),d=o.computed(()=>Array.isArray(t.error)?t.error.filter(Boolean):typeof t.error=="string"&&t.error?[t.error]:[]);return(f,p)=>(o.openBlock(),o.createElementBlock("div",null,[n.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["mb-1 fw-bold",[n.titleClass]])},o.toDisplayString(n.title),3)):o.createCommentVNode("",!0),o.createElementVNode("div",jg,[o.createElementVNode("input",{ref_key:"inputEl",ref:r,type:n.type,name:n.name,class:o.normalizeClass(["form-control outline-none",{[n.inputClass]:n.inputClass,"not-valid":d.value.length>0,"is-invalid":d.value.length>0}]),value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onBlur:p[0]||(p[0]=h=>i("blur")),onInput:s},null,42,Wg),c.value?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(["bi bi-x-lg remove-button position-absolute",[n.modelValue?"":"d-none",n.disabled?"d-none":""]]),onClick:l},null,2)):o.createCommentVNode("",!0)]),o.createVNode(Ei,{errors:d.value},null,8,["errors"])]))}},[["__scopeId","data-v-7b055e3b"]]),Ug={class:"position-relative"},Gg=["type","value"],Yg=_e({__name:"PasswordInput",props:{modelValue:{type:String,default:""},error:{type:[String,Array],default:""},initialVisibility:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n){const e=n,t=o.ref(e.initialVisibility);o.watch(()=>e.initialVisibility,r=>{t.value=r});const i=o.computed(()=>Array.isArray(e.error)?e.error.filter(Boolean):typeof e.error=="string"&&e.error?[e.error]:[]);return(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Ug,[o.createElementVNode("input",{class:o.normalizeClass(["form-control password-input outline-none",{"is-invalid":i.value.length>0}]),type:t.value?"text":"password",value:n.modelValue,autocomplete:"new-password",onInput:s[0]||(s[0]=a=>r.$emit("update:modelValue",a.target.value))},null,42,Gg),o.createElementVNode("div",{class:"toggle-pass",onClick:s[1]||(s[1]=a=>t.value=!t.value)},[o.createElementVNode("i",{class:o.normalizeClass(["bi",[t.value?"bi-eye-slash-fill":"bi-eye-fill"]]),style:{"font-size":"20px"}},null,2)])]),o.createVNode(Ei,{errors:i.value},null,8,["errors"])]))}},[["__scopeId","data-v-7b5f1918"]]),Qg={class:"form-check d-flex align-items-center"},Kg=["id","name","checked"],Jg=["for"],qg={__name:"Checkbox",props:{modelValue:{type:Boolean,default:!1},name:{type:String,required:!0},label:{type:String,default:""},id:{type:String,default:()=>`checkbox-${Math.random().toString(36).slice(2,9)}`},size:{type:String,default:"sm",validator:n=>["sm","md","lg"].includes(n)},clickableLabel:{type:Boolean,default:!0},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(null),s=o.computed(()=>t.size==="sm"?"5px":t.size==="md"?"10px":t.size==="lg"?"15px":"5px"),a=l=>{i("update:modelValue",l.target.checked)};return o.watch(()=>t.indeterminate,l=>{r.value&&(r.value.indeterminate=l)}),o.onMounted(()=>{r.value&&(r.value.indeterminate=t.indeterminate)}),(l,u)=>(o.openBlock(),o.createElementBlock("div",Qg,[o.createElementVNode("input",{ref_key:"inputRef",ref:r,class:"form-check-input mr-2 mt-0",type:"checkbox",id:n.id,name:n.name,style:o.normalizeStyle({padding:s.value}),checked:n.modelValue,onChange:a},null,44,Kg),n.label?(o.openBlock(),o.createElementBlock("label",{key:0,class:o.normalizeClass(["form-check-label lh-n",{"cursor-pointer":n.clickableLabel}]),for:n.clickableLabel?n.id:void 0},o.toDisplayString(n.label),11,Jg)):o.createCommentVNode("",!0)]))}};var $g=Object.defineProperty,Zg=Object.defineProperties,Xg=Object.getOwnPropertyDescriptors,oc=Object.getOwnPropertySymbols,eb=Object.prototype.hasOwnProperty,tb=Object.prototype.propertyIsEnumerable,lc=(n,e,t)=>e in n?$g(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Vi=(n,e)=>{for(var t in e||(e={}))eb.call(e,t)&&lc(n,t,e[t]);if(oc)for(var t of oc(e))tb.call(e,t)&&lc(n,t,e[t]);return n},uc=(n,e)=>Zg(n,Xg(e));const ib={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(n){this.autoscroll&&n&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var n;const e=((n=this.$refs.dropdownMenu)==null?void 0:n.children[this.typeAheadPointer])||!1;if(e){const t=this.getDropdownViewport(),{top:i,bottom:r,height:s}=e.getBoundingClientRect();if(i<t.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>t.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(t.height-s)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},nb={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let n=0;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},open(n){n&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let n=this.typeAheadPointer-1;n>=0;n--)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadDown(){for(let n=this.typeAheadPointer+1;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadSelect(){const n=this.filteredOptions[this.typeAheadPointer];n&&this.selectable(n)&&this.select(n)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},rb={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(n){this.mutableLoading=n}},methods:{toggleLoading(n=null){return n==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=n}}},la=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},sb={},ab={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},ob=o.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),lb=[ob];function ub(n,e){return o.openBlock(),o.createElementBlock("svg",ab,lb)}const cb=la(sb,[["render",ub]]),db={},hb={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},fb=o.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),pb=[fb];function mb(n,e){return o.openBlock(),o.createElementBlock("svg",hb,pb)}const gb=la(db,[["render",mb]]),cc={Deselect:cb,OpenIndicator:gb},bb={mounted(n,{instance:e}){if(e.appendToBody){const{height:t,top:i,left:r,width:s}=e.$refs.toggle.getBoundingClientRect();let a=window.scrollX||window.pageXOffset,l=window.scrollY||window.pageYOffset;n.unbindPosition=e.calculatePosition(n,e,{width:s+"px",left:a+r+"px",top:l+i+t+"px"}),document.body.appendChild(n)}},unmounted(n,{instance:e}){e.appendToBody&&(n.unbindPosition&&typeof n.unbindPosition=="function"&&n.unbindPosition(),n.parentNode&&n.parentNode.removeChild(n))}};function vb(n){const e={};return Object.keys(n).sort().forEach(t=>{e[t]=n[t]}),JSON.stringify(e)}let yb=0;function wb(){return++yb}const Cb={components:Vi({},cc),directives:{appendToBody:bb},mixins:[ib,nb,rb],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:n=>n},selectable:{type:Function,default:n=>!0},getOptionLabel:{type:Function,default(n){return typeof n=="object"?n.hasOwnProperty(this.label)?n[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(n)}.
|
|
26
26
|
https://vue-select.org/api/props.html#getoptionlabel`):n}},getOptionKey:{type:Function,default(n){if(typeof n!="object")return n;try{return n.hasOwnProperty("id")?n.id:vb(n)}catch(e){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
|
27
|
-
https://vue-select.org/api/props.html#getoptionkey`,n,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(n,e,t){return(e||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},filter:{type:Function,default(n,e){return n.filter(t=>{let i=this.getOptionLabel(t);return typeof i=="number"&&(i=i.toString()),this.filterBy(t,i,e)})}},createOption:{type:Function,default(n){return typeof this.optionList[0]=="object"?{[this.label]:n}:n}},resetOnOptionsChange:{default:!1,validator:n=>["function","boolean"].includes(typeof n)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:n,multiple:e}){return n&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(n,e)=>n},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(n,e,{width:t,top:i,left:r}){n.style.top=i,n.style.left=r,n.style.width=t}},dropdownShouldOpen:{type:Function,default({noDrop:n,open:e,mutableLoading:t}){return n?!1:e&&!t}},uid:{type:[String,Number],default:()=>wb()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let n=this.modelValue;return this.isTrackingValues&&(n=this.$data._value),n!=null&&n!==""?[].concat(n):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const n={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:Vi({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:n,listFooter:n,header:uc(Vi({},n),{deselect:this.deselect}),footer:uc(Vi({},n),{deselect:this.deselect})}},childComponents(){return Vi(Vi({},cc),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const n=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return n;const e=this.search.length?this.filter(n,this.search,this):n;if(this.taggable&&this.search.length){const t=this.createOption(this.search);this.optionExists(t)||e.unshift(t)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(n,e){const t=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(n,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&t()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(n){this.isTrackingValues&&this.setInternalValueFromOptions(n)}},multiple(){this.clearSelection()},open(n){this.$emit(n?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(n){Array.isArray(n)?this.$data._value=n.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(n)},select(n){this.$emit("option:selecting",n),this.isOptionSelected(n)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(n):(this.taggable&&!this.optionExists(n)&&(this.$emit("option:created",n),this.pushTag(n)),this.multiple&&(n=this.selectedValue.concat(n)),this.updateValue(n),this.$emit("option:selected",n)),this.onAfterSelect(n)},deselect(n){this.$emit("option:deselecting",n),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,n))),this.$emit("option:deselected",n)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(n){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(n){typeof this.modelValue>"u"&&(this.$data._value=n),n!==null&&(Array.isArray(n)?n=n.map(e=>this.reduce(e)):n=this.reduce(n)),this.$emit("update:modelValue",n)},toggleDropdown(n){const e=n.target!==this.searchEl;e&&n.preventDefault();const t=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||t.filter(Boolean).some(i=>i.contains(n.target)||i===n.target)){n.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(n){return this.selectedValue.some(e=>this.optionComparator(e,n))},isOptionDeselectable(n){return this.isOptionSelected(n)&&this.deselectFromDropdown},optionComparator(n,e){return this.getOptionKey(n)===this.getOptionKey(e)},findOptionFromReducedValue(n){const e=i=>JSON.stringify(this.reduce(i))===JSON.stringify(n),t=[...this.options,...this.pushedTags].filter(e);return t.length===1?t[0]:t.find(i=>this.optionComparator(i,this.$data._value))||n},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let n=null;this.multiple&&(n=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(n)}},optionExists(n){return this.optionList.some(e=>this.optionComparator(e,n))},normalizeOptionForSlot(n){return typeof n=="object"?n:{[this.label]:n}},pushTag(n){this.pushedTags.push(n)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:n,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:n,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(n){const e=r=>(r.preventDefault(),!this.isComposing&&this.typeAheadSelect()),t={8:r=>this.maybeDeleteValue(),9:r=>this.onTab(),27:r=>this.onEscape(),38:r=>(r.preventDefault(),this.typeAheadUp()),40:r=>(r.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(r=>t[r]=e);const i=this.mapKeydown(t,this);if(typeof i[n.keyCode]=="function")return i[n.keyCode](n)}}},Ab=["dir"],Eb=["id","aria-expanded","aria-owns"],kb={ref:"selectedOptions",class:"vs__selected-options"},Sb=["disabled","title","aria-label","onClick"],xb={ref:"actions",class:"vs__actions"},Rb=["disabled"],Mb={class:"vs__spinner"},Tb=["id"],Db=["id","aria-selected","onMouseover","onClick"],Ob={key:0,class:"vs__no-options"},Lb=o.createTextVNode(" Sorry, no matching options. "),Bb=["id"];function Fb(n,e,t,i,r,s){const a=o.resolveDirective("append-to-body");return o.openBlock(),o.createElementBlock("div",{dir:t.dir,class:o.normalizeClass(["v-select",s.stateClasses])},[o.renderSlot(n.$slots,"header",o.normalizeProps(o.guardReactiveProps(s.scope.header))),o.createElementVNode("div",{id:`vs${t.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":s.dropdownOpen.toString(),"aria-owns":`vs${t.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=l=>s.toggleDropdown(l))},[o.createElementVNode("div",kb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.selectedValue,(l,u)=>o.renderSlot(n.$slots,"selected-option-container",{option:s.normalizeOptionForSlot(l),deselect:s.deselect,multiple:t.multiple,disabled:t.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{key:t.getOptionKey(l),class:"vs__selected"},[o.renderSlot(n.$slots,"selected-option",o.normalizeProps(o.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[o.createTextVNode(o.toDisplayString(t.getOptionLabel(l)),1)]),t.multiple?(o.openBlock(),o.createElementBlock("button",{key:0,ref_for:!0,ref:c=>r.deselectButtons[u]=c,disabled:t.disabled,type:"button",class:"vs__deselect",title:`Deselect ${t.getOptionLabel(l)}`,"aria-label":`Deselect ${t.getOptionLabel(l)}`,onClick:c=>s.deselect(l)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.Deselect)))],8,Sb)):o.createCommentVNode("",!0)]))])),256)),o.renderSlot(n.$slots,"search",o.normalizeProps(o.guardReactiveProps(s.scope.search)),()=>[o.createElementVNode("input",o.mergeProps({class:"vs__search"},s.scope.search.attributes,o.toHandlers(s.scope.search.events)),null,16)])],512),o.createElementVNode("div",xb,[o.withDirectives(o.createElementVNode("button",{ref:"clearButton",disabled:t.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...l)=>s.clearSelection&&s.clearSelection(...l))},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.Deselect)))],8,Rb),[[o.vShow,s.showClearButton]]),o.renderSlot(n.$slots,"open-indicator",o.normalizeProps(o.guardReactiveProps(s.scope.openIndicator)),()=>[t.noDrop?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.OpenIndicator),o.normalizeProps(o.mergeProps({key:0},s.scope.openIndicator.attributes)),null,16))]),o.renderSlot(n.$slots,"spinner",o.normalizeProps(o.guardReactiveProps(s.scope.spinner)),()=>[o.withDirectives(o.createElementVNode("div",Mb,"Loading...",512),[[o.vShow,n.mutableLoading]])])],512)],40,Eb),o.createVNode(o.Transition,{name:t.transition},{default:o.withCtx(()=>[s.dropdownOpen?o.withDirectives((o.openBlock(),o.createElementBlock("ul",{id:`vs${t.uid}__listbox`,ref:"dropdownMenu",key:`vs${t.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=o.withModifiers((...l)=>s.onMousedown&&s.onMousedown(...l),["prevent"])),onMouseup:e[3]||(e[3]=(...l)=>s.onMouseUp&&s.onMouseUp(...l))},[o.renderSlot(n.$slots,"list-header",o.normalizeProps(o.guardReactiveProps(s.scope.listHeader))),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.filteredOptions,(l,u)=>(o.openBlock(),o.createElementBlock("li",{id:`vs${t.uid}__option-${u}`,key:t.getOptionKey(l),role:"option",class:o.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":s.isOptionDeselectable(l)&&u===n.typeAheadPointer,"vs__dropdown-option--selected":s.isOptionSelected(l),"vs__dropdown-option--highlight":u===n.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(l)}]),"aria-selected":u===n.typeAheadPointer?!0:null,onMouseover:c=>t.selectable(l)?n.typeAheadPointer=u:null,onClick:o.withModifiers(c=>t.selectable(l)?s.select(l):null,["prevent","stop"])},[o.renderSlot(n.$slots,"option",o.normalizeProps(o.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[o.createTextVNode(o.toDisplayString(t.getOptionLabel(l)),1)])],42,Db))),128)),s.filteredOptions.length===0?(o.openBlock(),o.createElementBlock("li",Ob,[o.renderSlot(n.$slots,"no-options",o.normalizeProps(o.guardReactiveProps(s.scope.noOptions)),()=>[Lb])])):o.createCommentVNode("",!0),o.renderSlot(n.$slots,"list-footer",o.normalizeProps(o.guardReactiveProps(s.scope.listFooter)))],40,Tb)),[[a]]):(o.openBlock(),o.createElementBlock("ul",{key:1,id:`vs${t.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Bb))]),_:3},8,["name"]),o.renderSlot(n.$slots,"footer",o.normalizeProps(o.guardReactiveProps(s.scope.footer)))],10,Ab)}const _b=la(Cb,[["render",Fb]]);var Ct="top",Ot="bottom",Lt="right",At="left",ua="auto",dn=[Ct,Ot,Lt,At],zi="start",hn="end",Pb="clippingParents",dc="viewport",fn="popper",Nb="reference",hc=dn.reduce(function(n,e){return n.concat([e+"-"+zi,e+"-"+hn])},[]),fc=[].concat(dn,[ua]).reduce(function(n,e){return n.concat([e,e+"-"+zi,e+"-"+hn])},[]),Ib="beforeRead",Hb="read",Vb="afterRead",zb="beforeMain",jb="main",Wb="afterMain",Ub="beforeWrite",Gb="write",Yb="afterWrite",Qb=[Ib,Hb,Vb,zb,jb,Wb,Ub,Gb,Yb];function Yt(n){return n?(n.nodeName||"").toLowerCase():null}function St(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function ki(n){var e=St(n).Element;return n instanceof e||n instanceof Element}function Bt(n){var e=St(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function ca(n){if(typeof ShadowRoot>"u")return!1;var e=St(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Kb(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!Bt(s)||!Yt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Jb(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),l=a.reduce(function(u,c){return u[c]="",u},{});!Bt(r)||!Yt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const qb={name:"applyStyles",enabled:!0,phase:"write",fn:Kb,effect:Jb,requires:["computeStyles"]};function Qt(n){return n.split("-")[0]}var Si=Math.max,tr=Math.min,ji=Math.round;function da(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function pc(){return!/^((?!chrome|android).)*safari/i.test(da())}function Wi(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&Bt(n)&&(r=n.offsetWidth>0&&ji(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&ji(i.height)/n.offsetHeight||1);var a=ki(n)?St(n):window,l=a.visualViewport,u=!pc()&&t,c=(i.left+(u&&l?l.offsetLeft:0))/r,d=(i.top+(u&&l?l.offsetTop:0))/s,f=i.width/r,p=i.height/s;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function ha(n){var e=Wi(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function mc(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&ca(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ai(n){return St(n).getComputedStyle(n)}function $b(n){return["table","td","th"].indexOf(Yt(n))>=0}function fi(n){return((ki(n)?n.ownerDocument:n.document)||window.document).documentElement}function ir(n){return Yt(n)==="html"?n:n.assignedSlot||n.parentNode||(ca(n)?n.host:null)||fi(n)}function gc(n){return!Bt(n)||ai(n).position==="fixed"?null:n.offsetParent}function Zb(n){var e=/firefox/i.test(da()),t=/Trident/i.test(da());if(t&&Bt(n)){var i=ai(n);if(i.position==="fixed")return null}var r=ir(n);for(ca(r)&&(r=r.host);Bt(r)&&["html","body"].indexOf(Yt(r))<0;){var s=ai(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function pn(n){for(var e=St(n),t=gc(n);t&&$b(t)&&ai(t).position==="static";)t=gc(t);return t&&(Yt(t)==="html"||Yt(t)==="body"&&ai(t).position==="static")?e:t||Zb(n)||e}function fa(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function mn(n,e,t){return Si(n,tr(e,t))}function Xb(n,e,t){var i=mn(n,e,t);return i>t?t:i}function bc(){return{top:0,right:0,bottom:0,left:0}}function vc(n){return Object.assign({},bc(),n)}function yc(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var ev=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vc(typeof e!="number"?e:yc(e,dn))};function tv(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,a=t.modifiersData.popperOffsets,l=Qt(t.placement),u=fa(l),c=[At,Lt].indexOf(l)>=0,d=c?"height":"width";if(!(!s||!a)){var f=ev(r.padding,t),p=ha(s),h=u==="y"?Ct:At,S=u==="y"?Ot:Lt,m=t.rects.reference[d]+t.rects.reference[u]-a[u]-t.rects.popper[d],C=a[u]-t.rects.reference[u],b=pn(s),g=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,M=m/2-C/2,v=f[h],R=g-p[d]-f[S],y=g/2-p[d]/2+M,x=mn(v,y,R),k=u;t.modifiersData[i]=(e={},e[k]=x,e.centerOffset=x-y,e)}}function iv(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||mc(e.elements.popper,r)&&(e.elements.arrow=r))}const nv={name:"arrow",enabled:!0,phase:"main",fn:tv,effect:iv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ui(n){return n.split("-")[1]}var rv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sv(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:ji(t*r)/r||0,y:ji(i*r)/r||0}}function wc(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,a=n.offsets,l=n.position,u=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,f=n.isFixed,p=a.x,h=p===void 0?0:p,S=a.y,m=S===void 0?0:S,C=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=C.x,m=C.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),M=At,v=Ct,R=window;if(c){var y=pn(t),x="clientHeight",k="clientWidth";if(y===St(t)&&(y=fi(t),ai(y).position!=="static"&&l==="absolute"&&(x="scrollHeight",k="scrollWidth")),y=y,r===Ct||(r===At||r===Lt)&&s===hn){v=Ot;var A=f&&y===R&&R.visualViewport?R.visualViewport.height:y[x];m-=A-i.height,m*=u?1:-1}if(r===At||(r===Ct||r===Ot)&&s===hn){M=Lt;var w=f&&y===R&&R.visualViewport?R.visualViewport.width:y[k];h-=w-i.width,h*=u?1:-1}}var D=Object.assign({position:l},c&&rv),T=d===!0?sv({x:h,y:m},St(t)):{x:h,y:m};if(h=T.x,m=T.y,u){var L;return Object.assign({},D,(L={},L[v]=g?"0":"",L[M]=b?"0":"",L.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",L))}return Object.assign({},D,(e={},e[v]=g?m+"px":"",e[M]=b?h+"px":"",e.transform="",e))}function av(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,a=s===void 0?!0:s,l=t.roundOffsets,u=l===void 0?!0:l,c={placement:Qt(e.placement),variation:Ui(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,wc(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,wc(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ov={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:av,data:{}};var nr={passive:!0};function lv(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,a=i.resize,l=a===void 0?!0:a,u=St(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",t.update,nr)}),l&&u.addEventListener("resize",t.update,nr),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",t.update,nr)}),l&&u.removeEventListener("resize",t.update,nr)}}const uv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lv,data:{}};var cv={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(n){return n.replace(/left|right|bottom|top/g,function(e){return cv[e]})}var dv={start:"end",end:"start"};function Cc(n){return n.replace(/start|end/g,function(e){return dv[e]})}function pa(n){var e=St(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function ma(n){return Wi(fi(n)).left+pa(n).scrollLeft}function hv(n,e){var t=St(n),i=fi(n),r=t.visualViewport,s=i.clientWidth,a=i.clientHeight,l=0,u=0;if(r){s=r.width,a=r.height;var c=pc();(c||!c&&e==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:a,x:l+ma(n),y:u}}function fv(n){var e,t=fi(n),i=pa(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=Si(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Si(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+ma(n),u=-i.scrollTop;return ai(r||t).direction==="rtl"&&(l+=Si(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:u}}function ga(n){var e=ai(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Ac(n){return["html","body","#document"].indexOf(Yt(n))>=0?n.ownerDocument.body:Bt(n)&&ga(n)?n:Ac(ir(n))}function gn(n,e){var t;e===void 0&&(e=[]);var i=Ac(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=St(i),a=r?[s].concat(s.visualViewport||[],ga(i)?i:[]):i,l=e.concat(a);return r?l:l.concat(gn(ir(a)))}function ba(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function pv(n,e){var t=Wi(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Ec(n,e,t){return e===dc?ba(hv(n,t)):ki(e)?pv(e,t):ba(fv(fi(n)))}function mv(n){var e=gn(ir(n)),t=["absolute","fixed"].indexOf(ai(n).position)>=0,i=t&&Bt(n)?pn(n):n;return ki(i)?e.filter(function(r){return ki(r)&&mc(r,i)&&Yt(r)!=="body"}):[]}function gv(n,e,t,i){var r=e==="clippingParents"?mv(n):[].concat(e),s=[].concat(r,[t]),a=s[0],l=s.reduce(function(u,c){var d=Ec(n,c,i);return u.top=Si(d.top,u.top),u.right=tr(d.right,u.right),u.bottom=tr(d.bottom,u.bottom),u.left=Si(d.left,u.left),u},Ec(n,a,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function kc(n){var e=n.reference,t=n.element,i=n.placement,r=i?Qt(i):null,s=i?Ui(i):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,u;switch(r){case Ct:u={x:a,y:e.y-t.height};break;case Ot:u={x:a,y:e.y+e.height};break;case Lt:u={x:e.x+e.width,y:l};break;case At:u={x:e.x-t.width,y:l};break;default:u={x:e.x,y:e.y}}var c=r?fa(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case zi:u[c]=u[c]-(e[d]/2-t[d]/2);break;case hn:u[c]=u[c]+(e[d]/2-t[d]/2);break}}return u}function bn(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,a=s===void 0?n.strategy:s,l=t.boundary,u=l===void 0?Pb:l,c=t.rootBoundary,d=c===void 0?dc:c,f=t.elementContext,p=f===void 0?fn:f,h=t.altBoundary,S=h===void 0?!1:h,m=t.padding,C=m===void 0?0:m,b=vc(typeof C!="number"?C:yc(C,dn)),g=p===fn?Nb:fn,M=n.rects.popper,v=n.elements[S?g:p],R=gv(ki(v)?v:v.contextElement||fi(n.elements.popper),u,d,a),y=Wi(n.elements.reference),x=kc({reference:y,element:M,placement:r}),k=ba(Object.assign({},M,x)),A=p===fn?k:y,w={top:R.top-A.top+b.top,bottom:A.bottom-R.bottom+b.bottom,left:R.left-A.left+b.left,right:A.right-R.right+b.right},D=n.modifiersData.offset;if(p===fn&&D){var T=D[r];Object.keys(w).forEach(function(L){var N=[Lt,Ot].indexOf(L)>=0?1:-1,j=[Ct,Ot].indexOf(L)>=0?"y":"x";w[L]+=T[j]*N})}return w}function bv(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,a=t.padding,l=t.flipVariations,u=t.allowedAutoPlacements,c=u===void 0?fc:u,d=Ui(i),f=d?l?hc:hc.filter(function(S){return Ui(S)===d}):dn,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var h=p.reduce(function(S,m){return S[m]=bn(n,{placement:m,boundary:r,rootBoundary:s,padding:a})[Qt(m)],S},{});return Object.keys(h).sort(function(S,m){return h[S]-h[m]})}function vv(n){if(Qt(n)===ua)return[];var e=rr(n);return[Cc(n),e,Cc(e)]}function yv(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!0:a,u=t.fallbackPlacements,c=t.padding,d=t.boundary,f=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,S=h===void 0?!0:h,m=t.allowedAutoPlacements,C=e.options.placement,b=Qt(C),g=b===C,M=u||(g||!S?[rr(C)]:vv(C)),v=[C].concat(M).reduce(function($,ee){return $.concat(Qt(ee)===ua?bv(e,{placement:ee,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:m}):ee)},[]),R=e.rects.reference,y=e.rects.popper,x=new Map,k=!0,A=v[0],w=0;w<v.length;w++){var D=v[w],T=Qt(D),L=Ui(D)===zi,N=[Ct,Ot].indexOf(T)>=0,j=N?"width":"height",G=bn(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),I=N?L?Lt:At:L?Ot:Ct;R[j]>y[j]&&(I=rr(I));var V=rr(I),J=[];if(s&&J.push(G[T]<=0),l&&J.push(G[I]<=0,G[V]<=0),J.every(function($){return $})){A=D,k=!1;break}x.set(D,J)}if(k)for(var B=S?3:1,P=function(ee){var K=v.find(function(ae){var W=x.get(ae);if(W)return W.slice(0,ee).every(function(H){return H})});if(K)return A=K,"break"},Q=B;Q>0;Q--){var z=P(Q);if(z==="break")break}e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}}const wv={name:"flip",enabled:!0,phase:"main",fn:yv,requiresIfExists:["offset"],data:{_skip:!1}};function Sc(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function xc(n){return[Ct,Lt,Ot,At].some(function(e){return n[e]>=0})}function Cv(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,a=bn(e,{elementContext:"reference"}),l=bn(e,{altBoundary:!0}),u=Sc(a,i),c=Sc(l,r,s),d=xc(u),f=xc(c);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Av={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cv};function Ev(n,e,t){var i=Qt(n),r=[At,Ct].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,a=s[0],l=s[1];return a=a||0,l=(l||0)*r,[At,Lt].indexOf(i)>=0?{x:l,y:a}:{x:a,y:l}}function kv(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,a=fc.reduce(function(d,f){return d[f]=Ev(f,e.rects,s),d},{}),l=a[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=a}const Sv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kv};function xv(n){var e=n.state,t=n.name;e.modifiersData[t]=kc({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Rv={name:"popperOffsets",enabled:!0,phase:"read",fn:xv,data:{}};function Mv(n){return n==="x"?"y":"x"}function Tv(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!1:a,u=t.boundary,c=t.rootBoundary,d=t.altBoundary,f=t.padding,p=t.tether,h=p===void 0?!0:p,S=t.tetherOffset,m=S===void 0?0:S,C=bn(e,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=Qt(e.placement),g=Ui(e.placement),M=!g,v=fa(b),R=Mv(v),y=e.modifiersData.popperOffsets,x=e.rects.reference,k=e.rects.popper,A=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,w=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(y){if(s){var L,N=v==="y"?Ct:At,j=v==="y"?Ot:Lt,G=v==="y"?"height":"width",I=y[v],V=I+C[N],J=I-C[j],B=h?-k[G]/2:0,P=g===zi?x[G]:k[G],Q=g===zi?-k[G]:-x[G],z=e.elements.arrow,$=h&&z?ha(z):{width:0,height:0},ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:bc(),K=ee[N],ae=ee[j],W=mn(0,x[G],$[G]),H=M?x[G]/2-B-W-K-w.mainAxis:P-W-K-w.mainAxis,ne=M?-x[G]/2+B+W+ae+w.mainAxis:Q+W+ae+w.mainAxis,ie=e.elements.arrow&&pn(e.elements.arrow),te=ie?v==="y"?ie.clientTop||0:ie.clientLeft||0:0,fe=(L=D?.[v])!=null?L:0,le=I+H-fe-te,ve=I+ne-fe,ye=mn(h?tr(V,le):V,I,h?Si(J,ve):J);y[v]=ye,T[v]=ye-I}if(l){var ke,Pe=v==="x"?Ct:At,Ne=v==="x"?Ot:Lt,Le=y[R],U=R==="y"?"height":"width",q=Le+C[Pe],X=Le-C[Ne],de=[Ct,At].indexOf(b)!==-1,ue=(ke=D?.[R])!=null?ke:0,Ee=de?q:Le-x[U]-k[U]-ue+w.altAxis,Be=de?Le+x[U]+k[U]-ue-w.altAxis:X,xe=h&&de?Xb(Ee,Le,Be):mn(h?Ee:q,Le,h?Be:X);y[R]=xe,T[R]=xe-Le}e.modifiersData[i]=T}}const Dv={name:"preventOverflow",enabled:!0,phase:"main",fn:Tv,requiresIfExists:["offset"]};function Ov(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Lv(n){return n===St(n)||!Bt(n)?pa(n):Ov(n)}function Bv(n){var e=n.getBoundingClientRect(),t=ji(e.width)/n.offsetWidth||1,i=ji(e.height)/n.offsetHeight||1;return t!==1||i!==1}function Fv(n,e,t){t===void 0&&(t=!1);var i=Bt(e),r=Bt(e)&&Bv(e),s=fi(e),a=Wi(n,r,t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!t)&&((Yt(e)!=="body"||ga(s))&&(l=Lv(e)),Bt(e)?(u=Wi(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=ma(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function _v(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var u=e.get(l);u&&r(u)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function Pv(n){var e=_v(n);return Qb.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Nv(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Iv(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var Rc={placement:"bottom",modifiers:[],strategy:"absolute"};function Mc(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Hv(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?Rc:r;return function(l,u,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rc,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var g=typeof b=="function"?b(d.options):b;m(),d.options=Object.assign({},s,d.options,g),d.scrollParents={reference:ki(l)?gn(l):l.contextElement?gn(l.contextElement):[],popper:gn(u)};var M=Pv(Iv([].concat(i,d.options.modifiers)));return d.orderedModifiers=M.filter(function(v){return v.enabled}),S(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,g=b.reference,M=b.popper;if(Mc(g,M)){d.rects={reference:Fv(g,pn(M),d.options.strategy==="fixed"),popper:ha(M)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(w){return d.modifiersData[w.name]=Object.assign({},w.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var R=d.orderedModifiers[v],y=R.fn,x=R.options,k=x===void 0?{}:x,A=R.name;typeof y=="function"&&(d=y({state:d,options:k,name:A,instance:h})||d)}}}},update:Nv(function(){return new Promise(function(C){h.forceUpdate(),C(d)})}),destroy:function(){m(),p=!0}};if(!Mc(l,u))return h;h.setOptions(c).then(function(C){!p&&c.onFirstUpdate&&c.onFirstUpdate(C)});function S(){d.orderedModifiers.forEach(function(C){var b=C.name,g=C.options,M=g===void 0?{}:g,v=C.effect;if(typeof v=="function"){var R=v({state:d,name:b,instance:h,options:M}),y=function(){};f.push(R||y)}})}function m(){f.forEach(function(C){return C()}),f=[]}return h}}var Vv=[uv,Rv,ov,qb,Sv,wv,Dv,nv,Av],zv=Hv({defaultModifiers:Vv});function jv(n,e,{width:t}){n.style.width=t;const i=zv(e.$refs.toggle,n,{placement:e.$attrs.placement,modifiers:[{name:"offset",options:{offset:[0,-1]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:r}){e.$el.classList.toggle("drop-up",r.placement==="top")}}]});return()=>i.destroy()}const Wv={class:"text-muted"},Uv={key:0,class:"py-1"},Gv={class:"text-wrap"},Yv=["innerHTML"],Qv={key:1,class:"text-muted p-0"},Kv={class:"text-wrap"},Jv={key:2,class:"text-muted p-0 small d-flex justify-content-center"},qv={class:"text-wrap px-2"},$v={class:"selected"},Zv=["innerHTML"],Xv={key:0,style:{"border-left-color":"rgba(88, 151, 251, 0.71)"},class:"vs__spinner"},oi={__name:"VSelect",props:{modelValue:[String,Object,Number],reduce:{type:Function,default:n=>n.id},hint:{type:String,default:""},classes:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},title:{type:String},disabled:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},searchTimout:{type:Number,default:1e3},dropDownPlacement:{type:String,default:"bottom",validator(n,e){return["bottom","top"].includes(n)}},error:{type:[Array,String],default:null}},emits:["update:modelValue","search","blur","focus"],setup(n,{emit:e}){const t=e,i=n,r=i.multiple?[]:null;o.getCurrentInstance();const s=o.ref(r),a=na(u,i.searchTimout),l=o.computed(()=>{const f=hi(i.options);return f?f.map(p=>{const h=i.modelValue;return h?{...p,disabled:p.id===h}:p}):[]});function u(f){t("search",f)}const c=f=>!(!f.id||f.disabled),d=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean):typeof i.error=="string"&&i.error?[i.error]:[]);return o.watch(()=>i.modelValue,f=>{s.value=i.modelValue},{deep:!0}),o.watch(()=>s.value,f=>{t("update:modelValue",f)},{deep:!0}),o.onMounted(()=>{s.value=i.modelValue}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[n.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(f.titleClass)},o.toDisplayString(n.title),3)):o.createCommentVNode("",!0),o.createVNode(o.unref(_b),o.mergeProps({class:"style-chooser"},f.$attrs,{modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=h=>s.value=h),reduce:n.reduce,options:l.value,multiple:n.multiple,placeholder:n.placeholder,disabled:n.disabled,loading:n.isLoading,clearable:n.allowClear,placement:n.dropDownPlacement,appendToBody:n.dropDownPlacement==="top","calculate-position":o.unref(jv),selectable:h=>c(h),"onSearch:blur":p[1]||(p[1]=h=>t("blur")),"onSearch:focus":p[2]||(p[2]=h=>t("focus")),onSearch:o.unref(a),class:[...n.classes,n.error?"not-valid":""]}),{"no-options":o.withCtx(({search:h,searching:S,loading:m})=>[o.createElementVNode("span",Wv,o.toDisplayString(n.hint),1)]),option:o.withCtx(({label:h,html:S,id:m,disabled:C})=>[m?(o.openBlock(),o.createElementBlock("div",Uv,[o.createElementVNode("div",Gv,o.toDisplayString(h),1),S?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:S},null,8,Yv)):o.createCommentVNode("",!0)])):C?(o.openBlock(),o.createElementBlock("div",Qv,[o.createElementVNode("div",Kv,o.toDisplayString(h)+"disabled",1)])):(o.openBlock(),o.createElementBlock("div",Jv,[p[3]||(p[3]=o.createElementVNode("span",null,"-",-1)),o.createElementVNode("span",qv,o.toDisplayString(h),1),p[4]||(p[4]=o.createElementVNode("span",null,"-",-1))]))]),"selected-option":o.withCtx(({label:h,html:S})=>[o.createElementVNode("div",$v,[o.createElementVNode("div",null,o.toDisplayString(h),1),S?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:S},null,8,Zv)):o.createCommentVNode("",!0)])]),spinner:o.withCtx(({loading:h})=>[h?(o.openBlock(),o.createElementBlock("div",Xv)):o.createCommentVNode("",!0)]),_:1},16,["modelValue","reduce","options","multiple","placeholder","disabled","loading","clearable","placement","appendToBody","calculate-position","selectable","onSearch","class"]),o.createVNode(Ei,{errors:d.value},null,8,["errors"])],64))}},ey={class:"form-check"},ty=["type","id","name"],iy=["for"],Tc=_e(o.defineComponent({__name:"BooleanCheckbox",props:{defaultValue:{default:null},trueValue:{default:"1"},modelValue:{default:void 0},name:{default:""},group:{default:""},type:{default:"checkbox"},label:{default:""},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(),s=Ai(),a=o.computed(()=>t.group.length?t.group:t.name),l=()=>{i("update:modelValue",r.value?.checked?t.trueValue:t.defaultValue)},u=o.computed(()=>!t.modelValue||t.modelValue!==t.trueValue?(r.value&&(r.value.checked=!1),c(),null):(r.value&&(r.value.checked=!0),c(),!0)),c=()=>{if(!t.setFilterParamsStringsHandler)return!1;const f=r.value?.checked?"Да":null;t.setFilterParamsStringsHandler(t.name,f)},d=o.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return o.watch(()=>t.modelValue,f=>{r.value&&(r.value.checked=!!f)}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",ey,[(o.openBlock(),o.createElementBlock("input",{class:o.normalizeClass(["form-check-input",[f.error?"not-valid":""]]),ref_key:"input",ref:r,type:f.type,id:String(o.unref(s)),name:a.value,key:String(u.value),onClick:l},null,10,ty)),o.createElementVNode("label",{class:o.normalizeClass(["form-check-label",[f.error?"text-danger":""]]),for:String(o.unref(s))},o.toDisplayString(f.label),11,iy)]),o.createVNode(Ei,{errors:d.value},null,8,["errors"])],64))}}),[["__scopeId","data-v-b2a37180"]]),ny={class:"multi-checkbox"},ry=["checked","onClick","id","value","name"],sy=["for"],ay=_e(o.defineComponent({__name:"MultiCheckbox",props:{modelValue:{default:()=>[]},inputClass:{default:""},options:{default:()=>[]},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.toRef(t,"modelValue"),s=o.toRef(t,"options"),a=o.toRef(t,"name");function l(f,p){const h=String(p);let S=[...r.value];r.value.includes(h)?S=r.value.filter(m=>String(m)!==h):S.push(h),i("update:modelValue",S)}const u=o.computed(()=>f=>r.value.includes(String(f)));function c(f){if(!t.setFilterParamsStringsHandler)return;let p=f.map(S=>String(S));const h=s.value.filter(S=>p.includes(String(S.id))).map(S=>S.text);if(p.length===0){t.setFilterParamsStringsHandler(a.value,null);return}t.setFilterParamsStringsHandler(a.value,h.join(", "))}const d=o.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return o.watch(()=>r.value,f=>{c(f)},{deep:!0}),(f,p)=>(o.openBlock(),o.createElementBlock("div",ny,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,h=>(o.openBlock(),o.createElementBlock("div",{class:"form-check",key:h.id},[o.createElementVNode("input",{class:o.normalizeClass(["form-check-input",[f.inputClass,{"not-valid":f.error}]]),type:"checkbox",checked:u.value(h.id),onClick:S=>l(S,h.id),id:`${a.value}-${h.id}`,value:h.id,name:`${a.value}-${h.id}`},null,10,ry),o.createElementVNode("label",{class:"form-check-label d-block",for:`${a.value}-${h.id}`},o.toDisplayString(h.text),9,sy)]))),128)),o.createVNode(Ei,{errors:d.value},null,8,["errors"])]))}}),[["__scopeId","data-v-e23ac74b"]]),oy={class:"multi-input"},ly={class:"col"},uy={class:"col-auto"},cy=["onClick"],dy=_e(o.defineComponent({__name:"MultiInput",props:{modelValue:{default:()=>[]},title:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},inputClass:{default:""},error:{default:""},maskOptions:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.toRef(t,"modelValue");o.toRef(t,"title");const s=o.toRef(t,"placeholder");o.toRef(t,"disabled");const a=o.toRef(t,"error"),l=o.toRef(t,"maskOptions"),u=o.ref([]),c=o.ref(!1),d={value:"",disabled:!1,uniqueKey:1};function f(){const b=hi(d);b.uniqueKey=Ai(),u.value.push(b)}function p(b,g){b.value=g}const h=o.computed(()=>u.value.length>1);function S(b){u.value=u.value.filter(g=>g.uniqueKey!==b.uniqueKey)}function m(){u.value=[],f()}function C(b){const g=b.map(v=>v.value);if(i("update:modelValue",g),!t.setFilterParamsStringsHandler)return;const M=g.filter(v=>v&&v.length>0);if(M.length===0){t.setFilterParamsStringsHandler(t.name,null);return}t.setFilterParamsStringsHandler(t.name,M.join(", "))}return o.watch(()=>u.value,b=>{c.value||C(b)},{deep:!0}),o.watch(()=>r.value,b=>{c.value=!0,!b||b.length===0?m():u.value.length!==b.length?u.value=b.map((g,M)=>({value:g,disabled:!1,uniqueKey:Ai()+M})):b.forEach((g,M)=>{u.value[M]&&(u.value[M].value=g)}),o.nextTick(()=>{c.value=!1})},{deep:!0}),o.onMounted(()=>{r.value&&r.value.length>0?u.value=r.value.map((b,g)=>({value:b,disabled:!1,uniqueKey:Ai()+g})):f()}),(b,g)=>(o.openBlock(),o.createElementBlock("div",oy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(M,v)=>(o.openBlock(),o.createElementBlock("div",{class:"row mb-2",key:M.uniqueKey},[o.createElementVNode("div",ly,[o.createVNode(er,{"model-value":M.value,"onUpdate:modelValue":R=>p(M,R),name:b.name,placeholder:s.value,class:o.normalizeClass(b.inputClass),disabled:M.disabled,"mask-options":l.value,error:a.value},null,8,["model-value","onUpdate:modelValue","name","placeholder","class","disabled","mask-options","error"])]),o.createElementVNode("div",uy,[h.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"d-flex remove-button p-2",style:{cursor:"pointer"},onClick:R=>S(M)},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-trash-fill"},null,-1)])],8,cy)):o.createCommentVNode("",!0)])]))),128)),o.createVNode(ja,{onClick:f})]))}}),[["__scopeId","data-v-9337052b"]]);var va=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Gi={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},vn={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Et=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},Ft=function(n){return n===!0?1:0};function Dc(n,e){var t;return function(){var i=this,r=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(i,r)},e)}}var ya=function(n){return n instanceof Array?n:[n]};function vt(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function qe(n,e,t){var i=window.document.createElement(n);return e=e||"",t=t||"",i.className=e,t!==void 0&&(i.textContent=t),i}function sr(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Oc(n,e){if(e(n))return n;if(n.parentNode)return Oc(n.parentNode,e)}function ar(n,e){var t=qe("div","numInputWrapper"),i=qe("input","numInput "+n),r=qe("span","arrowUp"),s=qe("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),e!==void 0)for(var a in e)i.setAttribute(a,e[a]);return t.appendChild(i),t.appendChild(r),t.appendChild(s),t}function xt(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var wa=function(){},or=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},hy={D:wa,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*Ft(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var i=parseInt(e),r=new Date(n.getFullYear(),0,2+(i-1)*7,0,0,0,0);return r.setDate(r.getDate()-r.getDay()+t.firstDayOfWeek),r},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:wa,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:wa,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},xi={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},yn={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[yn.w(n,e,t)]},F:function(n,e,t){return or(yn.n(n,e,t)-1,!1,e)},G:function(n,e,t){return Et(yn.h(n,e,t))},H:function(n){return Et(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[Ft(n.getHours()>11)]},M:function(n,e){return or(n.getMonth(),!0,e)},S:function(n){return Et(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return Et(n.getFullYear(),4)},d:function(n){return Et(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return Et(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return Et(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},Lc=function(n){var e=n.config,t=e===void 0?Gi:e,i=n.l10n,r=i===void 0?vn:i,s=n.isMobile,a=s===void 0?!1:s;return function(l,u,c){var d=c||r;return t.formatDate!==void 0&&!a?t.formatDate(l,u,d):u.split("").map(function(f,p,h){return yn[f]&&h[p-1]!=="\\"?yn[f](l,d,t):f!=="\\"?f:""}).join("")}},Ca=function(n){var e=n.config,t=e===void 0?Gi:e,i=n.l10n,r=i===void 0?vn:i;return function(s,a,l,u){if(!(s!==0&&!s)){var c=u||r,d,f=s;if(s instanceof Date)d=new Date(s.getTime());else if(typeof s!="string"&&s.toFixed!==void 0)d=new Date(s);else if(typeof s=="string"){var p=a||(t||Gi).dateFormat,h=String(s).trim();if(h==="today")d=new Date,l=!0;else if(t&&t.parseDate)d=t.parseDate(s,p);else if(/Z$/.test(h)||/GMT$/.test(h))d=new Date(s);else{for(var S=void 0,m=[],C=0,b=0,g="";C<p.length;C++){var M=p[C],v=M==="\\",R=p[C-1]==="\\"||v;if(xi[M]&&!R){g+=xi[M];var y=new RegExp(g).exec(s);y&&(S=!0)&&m[M!=="Y"?"push":"unshift"]({fn:hy[M],val:y[++b]})}else v||(g+=".")}d=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),m.forEach(function(x){var k=x.fn,A=x.val;return d=k(d,A,c)||d}),d=S?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){t.errorHandler(new Error("Invalid date provided: "+f));return}return l===!0&&d.setHours(0,0,0,0),d}}};function Rt(n,e,t){return t===void 0&&(t=!0),t!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):n.getTime()-e.getTime()}var fy=function(n,e,t){return n>Math.min(e,t)&&n<Math.max(e,t)},Aa=function(n,e,t){return n*3600+e*60+t},py=function(n){var e=Math.floor(n/3600),t=(n-e*3600)/60;return[e,t,n-e*3600-t*60]},my={DAY:864e5};function Ea(n){var e=n.defaultHour,t=n.defaultMinute,i=n.defaultSeconds;if(n.minDate!==void 0){var r=n.minDate.getHours(),s=n.minDate.getMinutes(),a=n.minDate.getSeconds();e<r&&(e=r),e===r&&t<s&&(t=s),e===r&&t===s&&i<a&&(i=n.minDate.getSeconds())}if(n.maxDate!==void 0){var l=n.maxDate.getHours(),u=n.maxDate.getMinutes();e=Math.min(e,l),e===l&&(t=Math.min(u,t)),e===l&&t===u&&(i=n.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:i}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var i=function(l){l&&Object.keys(l).forEach(function(u){return n[u]=l[u]})},r=0,s=e;r<s.length;r++){var a=s[r];i(a)}return n});var pt=function(){return pt=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},pt.apply(this,arguments)},Bc=function(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var i=Array(n),r=0,e=0;e<t;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,r++)i[r]=s[a];return i},gy=300;function by(n,e){var t={config:pt(pt({},Gi),ct.defaultConfig),l10n:vn};t.parseDate=Ca({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=m,t._setHoursFromDate=p,t._positionCalendar=Ne,t.changeMonth=P,t.changeYear=ae,t.clear=Q,t.close=z,t.onMouseOver=te,t._createElement=qe,t.createDay=y,t.destroy=$,t.isEnabled=W,t.jumpToDate=g,t.updateValue=Se,t.open=le,t.redraw=q,t.set=Ee,t.setDate=xe,t.toggle=We;function i(){t.utils={getDaysInMonth:function(F,E){return F===void 0&&(F=t.currentMonth),E===void 0&&(E=t.currentYear),F===1&&(E%4===0&&E%100!==0||E%400===0)?29:t.l10n.daysInMonth[F]}}}function r(){t.element=t.input=n,t.isOpen=!1,ye(),Pe(),ot(),Ie(),i(),t.isMobile||R(),b(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&p(t.config.noCalendar?t.latestSelectedDateObj:void 0),Se(!1)),l();var F=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&F&&Ne(),Me("onReady")}function s(){var F;return((F=t.calendarContainer)===null||F===void 0?void 0:F.getRootNode()).activeElement||document.activeElement}function a(F){return F.bind(t)}function l(){var F=t.config;F.weekNumbers===!1&&F.showMonths===1||F.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var E=(t.days.offsetWidth+1)*F.showMonths;t.daysContainer.style.width=E+"px",t.calendarContainer.style.width=E+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function u(F){if(t.selectedDates.length===0){var E=t.config.minDate===void 0||Rt(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),O=Ea(t.config);E.setHours(O.hours,O.minutes,O.seconds,E.getMilliseconds()),t.selectedDates=[E],t.latestSelectedDateObj=E}F!==void 0&&F.type!=="blur"&&nt(F);var _=t._input.value;f(),Se(),t._input.value!==_&&t._debouncedChange()}function c(F,E){return F%12+12*Ft(E===t.l10n.amPM[1])}function d(F){switch(F%24){case 0:case 12:return 12;default:return F%12}}function f(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var F=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,E=(parseInt(t.minuteElement.value,10)||0)%60,O=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(F=c(F,t.amPM.textContent));var _=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&Rt(t.latestSelectedDateObj,t.config.minDate,!0)===0,Y=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&Rt(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var se=Aa(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),oe=Aa(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),ce=Aa(F,E,O);if(ce>oe&&ce<se){var he=py(se);F=he[0],E=he[1],O=he[2]}}else{if(Y){var pe=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;F=Math.min(F,pe.getHours()),F===pe.getHours()&&(E=Math.min(E,pe.getMinutes())),E===pe.getMinutes()&&(O=Math.min(O,pe.getSeconds()))}if(_){var be=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;F=Math.max(F,be.getHours()),F===be.getHours()&&E<be.getMinutes()&&(E=be.getMinutes()),E===be.getMinutes()&&(O=Math.max(O,be.getSeconds()))}}h(F,E,O)}}function p(F){var E=F||t.latestSelectedDateObj;E&&E instanceof Date&&h(E.getHours(),E.getMinutes(),E.getSeconds())}function h(F,E,O){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(F%24,E,O||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=Et(t.config.time_24hr?F:(12+F)%12+12*Ft(F%12===0)),t.minuteElement.value=Et(E),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[Ft(F>=12)]),t.secondElement!==void 0&&(t.secondElement.value=Et(O)))}function S(F){var E=xt(F),O=parseInt(E.value)+(F.delta||0);(O/1e3>1||F.key==="Enter"&&!/[^\d]/.test(O.toString()))&&ae(O)}function m(F,E,O,_){if(E instanceof Array)return E.forEach(function(Y){return m(F,Y,O,_)});if(F instanceof Array)return F.forEach(function(Y){return m(Y,E,O,_)});F.addEventListener(E,O,_),t._handlers.push({remove:function(){return F.removeEventListener(E,O,_)}})}function C(){Me("onChange")}function b(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(O){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+O+"]"),function(_){return m(_,"click",t[O])})}),t.isMobile){ge();return}var F=Dc(fe,50);if(t._debouncedChange=Dc(C,gy),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(t.daysContainer,"mouseover",function(O){t.config.mode==="range"&&te(xt(O))}),m(t._input,"keydown",ie),t.calendarContainer!==void 0&&m(t.calendarContainer,"keydown",ie),!t.config.inline&&!t.config.static&&m(window,"resize",F),window.ontouchstart!==void 0?m(window.document,"touchstart",K):m(window.document,"mousedown",K),m(window.document,"focus",K,{capture:!0}),t.config.clickOpens===!0&&(m(t._input,"focus",t.open),m(t._input,"click",t.open)),t.daysContainer!==void 0&&(m(t.monthNav,"click",bt),m(t.monthNav,["keyup","increment"],S),m(t.daysContainer,"click",de)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var E=function(O){return xt(O).select()};m(t.timeContainer,["increment"],u),m(t.timeContainer,"blur",u,{capture:!0}),m(t.timeContainer,"click",M),m([t.hourElement,t.minuteElement],["focus","click"],E),t.secondElement!==void 0&&m(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&m(t.amPM,"click",function(O){u(O)})}t.config.allowInput&&m(t._input,"blur",ne)}function g(F,E){var O=F!==void 0?t.parseDate(F):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),_=t.currentYear,Y=t.currentMonth;try{O!==void 0&&(t.currentYear=O.getFullYear(),t.currentMonth=O.getMonth())}catch(se){se.message="Invalid date supplied: "+O,t.config.errorHandler(se)}E&&t.currentYear!==_&&(Me("onYearChange"),L()),E&&(t.currentYear!==_||t.currentMonth!==Y)&&Me("onMonthChange"),t.redraw()}function M(F){var E=xt(F);~E.className.indexOf("arrow")&&v(F,E.classList.contains("arrowUp")?1:-1)}function v(F,E,O){var _=F&&xt(F),Y=O||_&&_.parentNode&&_.parentNode.firstChild,se=Z("increment");se.delta=E,Y&&Y.dispatchEvent(se)}function R(){var F=window.document.createDocumentFragment();if(t.calendarContainer=qe("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(F.appendChild(G()),t.innerContainer=qe("div","flatpickr-innerContainer"),t.config.weekNumbers){var E=B(),O=E.weekWrapper,_=E.weekNumbers;t.innerContainer.appendChild(O),t.weekNumbers=_,t.weekWrapper=O}t.rContainer=qe("div","flatpickr-rContainer"),t.rContainer.appendChild(V()),t.daysContainer||(t.daysContainer=qe("div","flatpickr-days"),t.daysContainer.tabIndex=-1),T(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),F.appendChild(t.innerContainer)}t.config.enableTime&&F.appendChild(I()),vt(t.calendarContainer,"rangeMode",t.config.mode==="range"),vt(t.calendarContainer,"animate",t.config.animate===!0),vt(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(F);var Y=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Y&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var se=qe("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(se,t.element),se.appendChild(t.element),t.altInput&&se.appendChild(t.altInput),se.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function y(F,E,O,_){var Y=W(E,!0),se=qe("span",F,E.getDate().toString());return se.dateObj=E,se.$i=_,se.setAttribute("aria-label",t.formatDate(E,t.config.ariaDateFormat)),F.indexOf("hidden")===-1&&Rt(E,t.now)===0&&(t.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),Y?(se.tabIndex=-1,re(E)&&(se.classList.add("selected"),t.selectedDateElem=se,t.config.mode==="range"&&(vt(se,"startRange",t.selectedDates[0]&&Rt(E,t.selectedDates[0],!0)===0),vt(se,"endRange",t.selectedDates[1]&&Rt(E,t.selectedDates[1],!0)===0),F==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),t.config.mode==="range"&&He(E)&&!re(E)&&se.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&F!=="prevMonthDay"&&_%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(E)+"</span>"),Me("onDayCreate",se),se}function x(F){F.focus(),t.config.mode==="range"&&te(F)}function k(F){for(var E=F>0?0:t.config.showMonths-1,O=F>0?t.config.showMonths:-1,_=E;_!=O;_+=F)for(var Y=t.daysContainer.children[_],se=F>0?0:Y.children.length-1,oe=F>0?Y.children.length:-1,ce=se;ce!=oe;ce+=F){var he=Y.children[ce];if(he.className.indexOf("hidden")===-1&&W(he.dateObj))return he}}function A(F,E){for(var O=F.className.indexOf("Month")===-1?F.dateObj.getMonth():t.currentMonth,_=E>0?t.config.showMonths:-1,Y=E>0?1:-1,se=O-t.currentMonth;se!=_;se+=Y)for(var oe=t.daysContainer.children[se],ce=O-t.currentMonth===se?F.$i+E:E<0?oe.children.length-1:0,he=oe.children.length,pe=ce;pe>=0&&pe<he&&pe!=(E>0?he:-1);pe+=Y){var be=oe.children[pe];if(be.className.indexOf("hidden")===-1&&W(be.dateObj)&&Math.abs(F.$i-pe)>=Math.abs(E))return x(be)}t.changeMonth(Y),w(k(Y),0)}function w(F,E){var O=s(),_=H(O||document.body),Y=F!==void 0?F:_?O:t.selectedDateElem!==void 0&&H(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&H(t.todayDateElem)?t.todayDateElem:k(E>0?1:-1);Y===void 0?t._input.focus():_?A(Y,E):x(Y)}function D(F,E){for(var O=(new Date(F,E,1).getDay()-t.l10n.firstDayOfWeek+7)%7,_=t.utils.getDaysInMonth((E-1+12)%12,F),Y=t.utils.getDaysInMonth(E,F),se=window.document.createDocumentFragment(),oe=t.config.showMonths>1,ce=oe?"prevMonthDay hidden":"prevMonthDay",he=oe?"nextMonthDay hidden":"nextMonthDay",pe=_+1-O,be=0;pe<=_;pe++,be++)se.appendChild(y("flatpickr-day "+ce,new Date(F,E-1,pe),pe,be));for(pe=1;pe<=Y;pe++,be++)se.appendChild(y("flatpickr-day",new Date(F,E,pe),pe,be));for(var De=Y+1;De<=42-O&&(t.config.showMonths===1||be%7!==0);De++,be++)se.appendChild(y("flatpickr-day "+he,new Date(F,E+1,De%Y),De,be));var je=qe("div","dayContainer");return je.appendChild(se),je}function T(){if(t.daysContainer!==void 0){sr(t.daysContainer),t.weekNumbers&&sr(t.weekNumbers);for(var F=document.createDocumentFragment(),E=0;E<t.config.showMonths;E++){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+E),F.appendChild(D(O.getFullYear(),O.getMonth()))}t.daysContainer.appendChild(F),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&te()}}function L(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var F=function(_){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&_<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&_>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var E=0;E<12;E++)if(F(E)){var O=qe("option","flatpickr-monthDropdown-month");O.value=new Date(t.currentYear,E).getMonth().toString(),O.textContent=or(E,t.config.shorthandCurrentMonth,t.l10n),O.tabIndex=-1,t.currentMonth===E&&(O.selected=!0),t.monthsDropdownContainer.appendChild(O)}}}function N(){var F=qe("div","flatpickr-month"),E=window.document.createDocumentFragment(),O;t.config.showMonths>1||t.config.monthSelectorType==="static"?O=qe("span","cur-month"):(t.monthsDropdownContainer=qe("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),m(t.monthsDropdownContainer,"change",function(oe){var ce=xt(oe),he=parseInt(ce.value,10);t.changeMonth(he-t.currentMonth),Me("onMonthChange")}),L(),O=t.monthsDropdownContainer);var _=ar("cur-year",{tabindex:"-1"}),Y=_.getElementsByTagName("input")[0];Y.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Y.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Y.setAttribute("max",t.config.maxDate.getFullYear().toString()),Y.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var se=qe("div","flatpickr-current-month");return se.appendChild(O),se.appendChild(_),E.appendChild(se),F.appendChild(E),{container:F,yearElement:Y,monthElement:O}}function j(){sr(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var F=t.config.showMonths;F--;){var E=N();t.yearElements.push(E.yearElement),t.monthElements.push(E.monthElement),t.monthNav.appendChild(E.container)}t.monthNav.appendChild(t.nextMonthNav)}function G(){return t.monthNav=qe("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=qe("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=qe("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,j(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(F){t.__hidePrevMonthArrow!==F&&(vt(t.prevMonthNav,"flatpickr-disabled",F),t.__hidePrevMonthArrow=F)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(F){t.__hideNextMonthArrow!==F&&(vt(t.nextMonthNav,"flatpickr-disabled",F),t.__hideNextMonthArrow=F)}}),t.currentYearElement=t.yearElements[0],Ue(),t.monthNav}function I(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var F=Ea(t.config);t.timeContainer=qe("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var E=qe("span","flatpickr-time-separator",":"),O=ar("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=O.getElementsByTagName("input")[0];var _=ar("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=_.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=Et(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?F.hours:d(F.hours)),t.minuteElement.value=Et(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():F.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O),t.timeContainer.appendChild(E),t.timeContainer.appendChild(_),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Y=ar("flatpickr-second");t.secondElement=Y.getElementsByTagName("input")[0],t.secondElement.value=Et(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():F.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(qe("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Y)}return t.config.time_24hr||(t.amPM=qe("span","flatpickr-am-pm",t.l10n.amPM[Ft((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function V(){t.weekdayContainer?sr(t.weekdayContainer):t.weekdayContainer=qe("div","flatpickr-weekdays");for(var F=t.config.showMonths;F--;){var E=qe("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(E)}return J(),t.weekdayContainer}function J(){if(t.weekdayContainer){var F=t.l10n.firstDayOfWeek,E=Bc(t.l10n.weekdays.shorthand);F>0&&F<E.length&&(E=Bc(E.splice(F,E.length),E.splice(0,F)));for(var O=t.config.showMonths;O--;)t.weekdayContainer.children[O].innerHTML=`
|
|
27
|
+
https://vue-select.org/api/props.html#getoptionkey`,n,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(n,e,t){return(e||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},filter:{type:Function,default(n,e){return n.filter(t=>{let i=this.getOptionLabel(t);return typeof i=="number"&&(i=i.toString()),this.filterBy(t,i,e)})}},createOption:{type:Function,default(n){return typeof this.optionList[0]=="object"?{[this.label]:n}:n}},resetOnOptionsChange:{default:!1,validator:n=>["function","boolean"].includes(typeof n)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:n,multiple:e}){return n&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(n,e)=>n},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(n,e,{width:t,top:i,left:r}){n.style.top=i,n.style.left=r,n.style.width=t}},dropdownShouldOpen:{type:Function,default({noDrop:n,open:e,mutableLoading:t}){return n?!1:e&&!t}},uid:{type:[String,Number],default:()=>wb()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let n=this.modelValue;return this.isTrackingValues&&(n=this.$data._value),n!=null&&n!==""?[].concat(n):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const n={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:Vi({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:n,listFooter:n,header:uc(Vi({},n),{deselect:this.deselect}),footer:uc(Vi({},n),{deselect:this.deselect})}},childComponents(){return Vi(Vi({},cc),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const n=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return n;const e=this.search.length?this.filter(n,this.search,this):n;if(this.taggable&&this.search.length){const t=this.createOption(this.search);this.optionExists(t)||e.unshift(t)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(n,e){const t=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(n,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&t()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(n){this.isTrackingValues&&this.setInternalValueFromOptions(n)}},multiple(){this.clearSelection()},open(n){this.$emit(n?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(n){Array.isArray(n)?this.$data._value=n.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(n)},select(n){this.$emit("option:selecting",n),this.isOptionSelected(n)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(n):(this.taggable&&!this.optionExists(n)&&(this.$emit("option:created",n),this.pushTag(n)),this.multiple&&(n=this.selectedValue.concat(n)),this.updateValue(n),this.$emit("option:selected",n)),this.onAfterSelect(n)},deselect(n){this.$emit("option:deselecting",n),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,n))),this.$emit("option:deselected",n)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(n){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(n){typeof this.modelValue>"u"&&(this.$data._value=n),n!==null&&(Array.isArray(n)?n=n.map(e=>this.reduce(e)):n=this.reduce(n)),this.$emit("update:modelValue",n)},toggleDropdown(n){const e=n.target!==this.searchEl;e&&n.preventDefault();const t=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||t.filter(Boolean).some(i=>i.contains(n.target)||i===n.target)){n.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(n){return this.selectedValue.some(e=>this.optionComparator(e,n))},isOptionDeselectable(n){return this.isOptionSelected(n)&&this.deselectFromDropdown},optionComparator(n,e){return this.getOptionKey(n)===this.getOptionKey(e)},findOptionFromReducedValue(n){const e=i=>JSON.stringify(this.reduce(i))===JSON.stringify(n),t=[...this.options,...this.pushedTags].filter(e);return t.length===1?t[0]:t.find(i=>this.optionComparator(i,this.$data._value))||n},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let n=null;this.multiple&&(n=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(n)}},optionExists(n){return this.optionList.some(e=>this.optionComparator(e,n))},normalizeOptionForSlot(n){return typeof n=="object"?n:{[this.label]:n}},pushTag(n){this.pushedTags.push(n)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:n,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:n,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(n){const e=r=>(r.preventDefault(),!this.isComposing&&this.typeAheadSelect()),t={8:r=>this.maybeDeleteValue(),9:r=>this.onTab(),27:r=>this.onEscape(),38:r=>(r.preventDefault(),this.typeAheadUp()),40:r=>(r.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(r=>t[r]=e);const i=this.mapKeydown(t,this);if(typeof i[n.keyCode]=="function")return i[n.keyCode](n)}}},Ab=["dir"],Eb=["id","aria-expanded","aria-owns"],kb={ref:"selectedOptions",class:"vs__selected-options"},Sb=["disabled","title","aria-label","onClick"],xb={ref:"actions",class:"vs__actions"},Rb=["disabled"],Mb={class:"vs__spinner"},Tb=["id"],Db=["id","aria-selected","onMouseover","onClick"],Ob={key:0,class:"vs__no-options"},Lb=o.createTextVNode(" Sorry, no matching options. "),Bb=["id"];function Fb(n,e,t,i,r,s){const a=o.resolveDirective("append-to-body");return o.openBlock(),o.createElementBlock("div",{dir:t.dir,class:o.normalizeClass(["v-select",s.stateClasses])},[o.renderSlot(n.$slots,"header",o.normalizeProps(o.guardReactiveProps(s.scope.header))),o.createElementVNode("div",{id:`vs${t.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":s.dropdownOpen.toString(),"aria-owns":`vs${t.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=l=>s.toggleDropdown(l))},[o.createElementVNode("div",kb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.selectedValue,(l,u)=>o.renderSlot(n.$slots,"selected-option-container",{option:s.normalizeOptionForSlot(l),deselect:s.deselect,multiple:t.multiple,disabled:t.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{key:t.getOptionKey(l),class:"vs__selected"},[o.renderSlot(n.$slots,"selected-option",o.normalizeProps(o.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[o.createTextVNode(o.toDisplayString(t.getOptionLabel(l)),1)]),t.multiple?(o.openBlock(),o.createElementBlock("button",{key:0,ref_for:!0,ref:c=>r.deselectButtons[u]=c,disabled:t.disabled,type:"button",class:"vs__deselect",title:`Deselect ${t.getOptionLabel(l)}`,"aria-label":`Deselect ${t.getOptionLabel(l)}`,onClick:c=>s.deselect(l)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.Deselect)))],8,Sb)):o.createCommentVNode("",!0)]))])),256)),o.renderSlot(n.$slots,"search",o.normalizeProps(o.guardReactiveProps(s.scope.search)),()=>[o.createElementVNode("input",o.mergeProps({class:"vs__search"},s.scope.search.attributes,o.toHandlers(s.scope.search.events)),null,16)])],512),o.createElementVNode("div",xb,[o.withDirectives(o.createElementVNode("button",{ref:"clearButton",disabled:t.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...l)=>s.clearSelection&&s.clearSelection(...l))},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.Deselect)))],8,Rb),[[o.vShow,s.showClearButton]]),o.renderSlot(n.$slots,"open-indicator",o.normalizeProps(o.guardReactiveProps(s.scope.openIndicator)),()=>[t.noDrop?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.childComponents.OpenIndicator),o.normalizeProps(o.mergeProps({key:0},s.scope.openIndicator.attributes)),null,16))]),o.renderSlot(n.$slots,"spinner",o.normalizeProps(o.guardReactiveProps(s.scope.spinner)),()=>[o.withDirectives(o.createElementVNode("div",Mb,"Loading...",512),[[o.vShow,n.mutableLoading]])])],512)],40,Eb),o.createVNode(o.Transition,{name:t.transition},{default:o.withCtx(()=>[s.dropdownOpen?o.withDirectives((o.openBlock(),o.createElementBlock("ul",{id:`vs${t.uid}__listbox`,ref:"dropdownMenu",key:`vs${t.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=o.withModifiers((...l)=>s.onMousedown&&s.onMousedown(...l),["prevent"])),onMouseup:e[3]||(e[3]=(...l)=>s.onMouseUp&&s.onMouseUp(...l))},[o.renderSlot(n.$slots,"list-header",o.normalizeProps(o.guardReactiveProps(s.scope.listHeader))),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.filteredOptions,(l,u)=>(o.openBlock(),o.createElementBlock("li",{id:`vs${t.uid}__option-${u}`,key:t.getOptionKey(l),role:"option",class:o.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":s.isOptionDeselectable(l)&&u===n.typeAheadPointer,"vs__dropdown-option--selected":s.isOptionSelected(l),"vs__dropdown-option--highlight":u===n.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(l)}]),"aria-selected":u===n.typeAheadPointer?!0:null,onMouseover:c=>t.selectable(l)?n.typeAheadPointer=u:null,onClick:o.withModifiers(c=>t.selectable(l)?s.select(l):null,["prevent","stop"])},[o.renderSlot(n.$slots,"option",o.normalizeProps(o.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[o.createTextVNode(o.toDisplayString(t.getOptionLabel(l)),1)])],42,Db))),128)),s.filteredOptions.length===0?(o.openBlock(),o.createElementBlock("li",Ob,[o.renderSlot(n.$slots,"no-options",o.normalizeProps(o.guardReactiveProps(s.scope.noOptions)),()=>[Lb])])):o.createCommentVNode("",!0),o.renderSlot(n.$slots,"list-footer",o.normalizeProps(o.guardReactiveProps(s.scope.listFooter)))],40,Tb)),[[a]]):(o.openBlock(),o.createElementBlock("ul",{key:1,id:`vs${t.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Bb))]),_:3},8,["name"]),o.renderSlot(n.$slots,"footer",o.normalizeProps(o.guardReactiveProps(s.scope.footer)))],10,Ab)}const _b=la(Cb,[["render",Fb]]);var Ct="top",Ot="bottom",Lt="right",At="left",ua="auto",dn=[Ct,Ot,Lt,At],zi="start",hn="end",Pb="clippingParents",dc="viewport",fn="popper",Nb="reference",hc=dn.reduce(function(n,e){return n.concat([e+"-"+zi,e+"-"+hn])},[]),fc=[].concat(dn,[ua]).reduce(function(n,e){return n.concat([e,e+"-"+zi,e+"-"+hn])},[]),Ib="beforeRead",Hb="read",Vb="afterRead",zb="beforeMain",jb="main",Wb="afterMain",Ub="beforeWrite",Gb="write",Yb="afterWrite",Qb=[Ib,Hb,Vb,zb,jb,Wb,Ub,Gb,Yb];function Yt(n){return n?(n.nodeName||"").toLowerCase():null}function St(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function ki(n){var e=St(n).Element;return n instanceof e||n instanceof Element}function Bt(n){var e=St(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function ca(n){if(typeof ShadowRoot>"u")return!1;var e=St(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Kb(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!Bt(s)||!Yt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Jb(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),l=a.reduce(function(u,c){return u[c]="",u},{});!Bt(r)||!Yt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const qb={name:"applyStyles",enabled:!0,phase:"write",fn:Kb,effect:Jb,requires:["computeStyles"]};function Qt(n){return n.split("-")[0]}var Si=Math.max,tr=Math.min,ji=Math.round;function da(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function pc(){return!/^((?!chrome|android).)*safari/i.test(da())}function Wi(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&Bt(n)&&(r=n.offsetWidth>0&&ji(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&ji(i.height)/n.offsetHeight||1);var a=ki(n)?St(n):window,l=a.visualViewport,u=!pc()&&t,c=(i.left+(u&&l?l.offsetLeft:0))/r,d=(i.top+(u&&l?l.offsetTop:0))/s,f=i.width/r,p=i.height/s;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function ha(n){var e=Wi(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function mc(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&ca(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ai(n){return St(n).getComputedStyle(n)}function $b(n){return["table","td","th"].indexOf(Yt(n))>=0}function fi(n){return((ki(n)?n.ownerDocument:n.document)||window.document).documentElement}function ir(n){return Yt(n)==="html"?n:n.assignedSlot||n.parentNode||(ca(n)?n.host:null)||fi(n)}function gc(n){return!Bt(n)||ai(n).position==="fixed"?null:n.offsetParent}function Zb(n){var e=/firefox/i.test(da()),t=/Trident/i.test(da());if(t&&Bt(n)){var i=ai(n);if(i.position==="fixed")return null}var r=ir(n);for(ca(r)&&(r=r.host);Bt(r)&&["html","body"].indexOf(Yt(r))<0;){var s=ai(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function pn(n){for(var e=St(n),t=gc(n);t&&$b(t)&&ai(t).position==="static";)t=gc(t);return t&&(Yt(t)==="html"||Yt(t)==="body"&&ai(t).position==="static")?e:t||Zb(n)||e}function fa(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function mn(n,e,t){return Si(n,tr(e,t))}function Xb(n,e,t){var i=mn(n,e,t);return i>t?t:i}function bc(){return{top:0,right:0,bottom:0,left:0}}function vc(n){return Object.assign({},bc(),n)}function yc(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var ev=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vc(typeof e!="number"?e:yc(e,dn))};function tv(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,a=t.modifiersData.popperOffsets,l=Qt(t.placement),u=fa(l),c=[At,Lt].indexOf(l)>=0,d=c?"height":"width";if(!(!s||!a)){var f=ev(r.padding,t),p=ha(s),h=u==="y"?Ct:At,S=u==="y"?Ot:Lt,m=t.rects.reference[d]+t.rects.reference[u]-a[u]-t.rects.popper[d],A=a[u]-t.rects.reference[u],b=pn(s),g=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,M=m/2-A/2,v=f[h],R=g-p[d]-f[S],y=g/2-p[d]/2+M,x=mn(v,y,R),k=u;t.modifiersData[i]=(e={},e[k]=x,e.centerOffset=x-y,e)}}function iv(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||mc(e.elements.popper,r)&&(e.elements.arrow=r))}const nv={name:"arrow",enabled:!0,phase:"main",fn:tv,effect:iv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ui(n){return n.split("-")[1]}var rv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sv(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:ji(t*r)/r||0,y:ji(i*r)/r||0}}function wc(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,a=n.offsets,l=n.position,u=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,f=n.isFixed,p=a.x,h=p===void 0?0:p,S=a.y,m=S===void 0?0:S,A=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=A.x,m=A.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),M=At,v=Ct,R=window;if(c){var y=pn(t),x="clientHeight",k="clientWidth";if(y===St(t)&&(y=fi(t),ai(y).position!=="static"&&l==="absolute"&&(x="scrollHeight",k="scrollWidth")),y=y,r===Ct||(r===At||r===Lt)&&s===hn){v=Ot;var C=f&&y===R&&R.visualViewport?R.visualViewport.height:y[x];m-=C-i.height,m*=u?1:-1}if(r===At||(r===Ct||r===Ot)&&s===hn){M=Lt;var w=f&&y===R&&R.visualViewport?R.visualViewport.width:y[k];h-=w-i.width,h*=u?1:-1}}var D=Object.assign({position:l},c&&rv),T=d===!0?sv({x:h,y:m},St(t)):{x:h,y:m};if(h=T.x,m=T.y,u){var L;return Object.assign({},D,(L={},L[v]=g?"0":"",L[M]=b?"0":"",L.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",L))}return Object.assign({},D,(e={},e[v]=g?m+"px":"",e[M]=b?h+"px":"",e.transform="",e))}function av(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,a=s===void 0?!0:s,l=t.roundOffsets,u=l===void 0?!0:l,c={placement:Qt(e.placement),variation:Ui(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,wc(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,wc(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ov={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:av,data:{}};var nr={passive:!0};function lv(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,a=i.resize,l=a===void 0?!0:a,u=St(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",t.update,nr)}),l&&u.addEventListener("resize",t.update,nr),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",t.update,nr)}),l&&u.removeEventListener("resize",t.update,nr)}}const uv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lv,data:{}};var cv={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(n){return n.replace(/left|right|bottom|top/g,function(e){return cv[e]})}var dv={start:"end",end:"start"};function Cc(n){return n.replace(/start|end/g,function(e){return dv[e]})}function pa(n){var e=St(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function ma(n){return Wi(fi(n)).left+pa(n).scrollLeft}function hv(n,e){var t=St(n),i=fi(n),r=t.visualViewport,s=i.clientWidth,a=i.clientHeight,l=0,u=0;if(r){s=r.width,a=r.height;var c=pc();(c||!c&&e==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:a,x:l+ma(n),y:u}}function fv(n){var e,t=fi(n),i=pa(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=Si(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Si(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+ma(n),u=-i.scrollTop;return ai(r||t).direction==="rtl"&&(l+=Si(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:u}}function ga(n){var e=ai(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Ac(n){return["html","body","#document"].indexOf(Yt(n))>=0?n.ownerDocument.body:Bt(n)&&ga(n)?n:Ac(ir(n))}function gn(n,e){var t;e===void 0&&(e=[]);var i=Ac(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=St(i),a=r?[s].concat(s.visualViewport||[],ga(i)?i:[]):i,l=e.concat(a);return r?l:l.concat(gn(ir(a)))}function ba(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function pv(n,e){var t=Wi(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Ec(n,e,t){return e===dc?ba(hv(n,t)):ki(e)?pv(e,t):ba(fv(fi(n)))}function mv(n){var e=gn(ir(n)),t=["absolute","fixed"].indexOf(ai(n).position)>=0,i=t&&Bt(n)?pn(n):n;return ki(i)?e.filter(function(r){return ki(r)&&mc(r,i)&&Yt(r)!=="body"}):[]}function gv(n,e,t,i){var r=e==="clippingParents"?mv(n):[].concat(e),s=[].concat(r,[t]),a=s[0],l=s.reduce(function(u,c){var d=Ec(n,c,i);return u.top=Si(d.top,u.top),u.right=tr(d.right,u.right),u.bottom=tr(d.bottom,u.bottom),u.left=Si(d.left,u.left),u},Ec(n,a,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function kc(n){var e=n.reference,t=n.element,i=n.placement,r=i?Qt(i):null,s=i?Ui(i):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,u;switch(r){case Ct:u={x:a,y:e.y-t.height};break;case Ot:u={x:a,y:e.y+e.height};break;case Lt:u={x:e.x+e.width,y:l};break;case At:u={x:e.x-t.width,y:l};break;default:u={x:e.x,y:e.y}}var c=r?fa(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case zi:u[c]=u[c]-(e[d]/2-t[d]/2);break;case hn:u[c]=u[c]+(e[d]/2-t[d]/2);break}}return u}function bn(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,a=s===void 0?n.strategy:s,l=t.boundary,u=l===void 0?Pb:l,c=t.rootBoundary,d=c===void 0?dc:c,f=t.elementContext,p=f===void 0?fn:f,h=t.altBoundary,S=h===void 0?!1:h,m=t.padding,A=m===void 0?0:m,b=vc(typeof A!="number"?A:yc(A,dn)),g=p===fn?Nb:fn,M=n.rects.popper,v=n.elements[S?g:p],R=gv(ki(v)?v:v.contextElement||fi(n.elements.popper),u,d,a),y=Wi(n.elements.reference),x=kc({reference:y,element:M,placement:r}),k=ba(Object.assign({},M,x)),C=p===fn?k:y,w={top:R.top-C.top+b.top,bottom:C.bottom-R.bottom+b.bottom,left:R.left-C.left+b.left,right:C.right-R.right+b.right},D=n.modifiersData.offset;if(p===fn&&D){var T=D[r];Object.keys(w).forEach(function(L){var N=[Lt,Ot].indexOf(L)>=0?1:-1,j=[Ct,Ot].indexOf(L)>=0?"y":"x";w[L]+=T[j]*N})}return w}function bv(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,a=t.padding,l=t.flipVariations,u=t.allowedAutoPlacements,c=u===void 0?fc:u,d=Ui(i),f=d?l?hc:hc.filter(function(S){return Ui(S)===d}):dn,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var h=p.reduce(function(S,m){return S[m]=bn(n,{placement:m,boundary:r,rootBoundary:s,padding:a})[Qt(m)],S},{});return Object.keys(h).sort(function(S,m){return h[S]-h[m]})}function vv(n){if(Qt(n)===ua)return[];var e=rr(n);return[Cc(n),e,Cc(e)]}function yv(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!0:a,u=t.fallbackPlacements,c=t.padding,d=t.boundary,f=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,S=h===void 0?!0:h,m=t.allowedAutoPlacements,A=e.options.placement,b=Qt(A),g=b===A,M=u||(g||!S?[rr(A)]:vv(A)),v=[A].concat(M).reduce(function($,ee){return $.concat(Qt(ee)===ua?bv(e,{placement:ee,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:m}):ee)},[]),R=e.rects.reference,y=e.rects.popper,x=new Map,k=!0,C=v[0],w=0;w<v.length;w++){var D=v[w],T=Qt(D),L=Ui(D)===zi,N=[Ct,Ot].indexOf(T)>=0,j=N?"width":"height",G=bn(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),I=N?L?Lt:At:L?Ot:Ct;R[j]>y[j]&&(I=rr(I));var V=rr(I),J=[];if(s&&J.push(G[T]<=0),l&&J.push(G[I]<=0,G[V]<=0),J.every(function($){return $})){C=D,k=!1;break}x.set(D,J)}if(k)for(var B=S?3:1,P=function(ee){var K=v.find(function(ae){var W=x.get(ae);if(W)return W.slice(0,ee).every(function(H){return H})});if(K)return C=K,"break"},Q=B;Q>0;Q--){var z=P(Q);if(z==="break")break}e.placement!==C&&(e.modifiersData[i]._skip=!0,e.placement=C,e.reset=!0)}}const wv={name:"flip",enabled:!0,phase:"main",fn:yv,requiresIfExists:["offset"],data:{_skip:!1}};function Sc(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function xc(n){return[Ct,Lt,Ot,At].some(function(e){return n[e]>=0})}function Cv(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,a=bn(e,{elementContext:"reference"}),l=bn(e,{altBoundary:!0}),u=Sc(a,i),c=Sc(l,r,s),d=xc(u),f=xc(c);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Av={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cv};function Ev(n,e,t){var i=Qt(n),r=[At,Ct].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,a=s[0],l=s[1];return a=a||0,l=(l||0)*r,[At,Lt].indexOf(i)>=0?{x:l,y:a}:{x:a,y:l}}function kv(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,a=fc.reduce(function(d,f){return d[f]=Ev(f,e.rects,s),d},{}),l=a[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=a}const Sv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kv};function xv(n){var e=n.state,t=n.name;e.modifiersData[t]=kc({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Rv={name:"popperOffsets",enabled:!0,phase:"read",fn:xv,data:{}};function Mv(n){return n==="x"?"y":"x"}function Tv(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!1:a,u=t.boundary,c=t.rootBoundary,d=t.altBoundary,f=t.padding,p=t.tether,h=p===void 0?!0:p,S=t.tetherOffset,m=S===void 0?0:S,A=bn(e,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=Qt(e.placement),g=Ui(e.placement),M=!g,v=fa(b),R=Mv(v),y=e.modifiersData.popperOffsets,x=e.rects.reference,k=e.rects.popper,C=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,w=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(y){if(s){var L,N=v==="y"?Ct:At,j=v==="y"?Ot:Lt,G=v==="y"?"height":"width",I=y[v],V=I+A[N],J=I-A[j],B=h?-k[G]/2:0,P=g===zi?x[G]:k[G],Q=g===zi?-k[G]:-x[G],z=e.elements.arrow,$=h&&z?ha(z):{width:0,height:0},ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:bc(),K=ee[N],ae=ee[j],W=mn(0,x[G],$[G]),H=M?x[G]/2-B-W-K-w.mainAxis:P-W-K-w.mainAxis,ne=M?-x[G]/2+B+W+ae+w.mainAxis:Q+W+ae+w.mainAxis,ie=e.elements.arrow&&pn(e.elements.arrow),te=ie?v==="y"?ie.clientTop||0:ie.clientLeft||0:0,fe=(L=D?.[v])!=null?L:0,le=I+H-fe-te,ve=I+ne-fe,ye=mn(h?tr(V,le):V,I,h?Si(J,ve):J);y[v]=ye,T[v]=ye-I}if(l){var ke,Pe=v==="x"?Ct:At,Ne=v==="x"?Ot:Lt,Le=y[R],U=R==="y"?"height":"width",q=Le+A[Pe],X=Le-A[Ne],de=[Ct,At].indexOf(b)!==-1,ue=(ke=D?.[R])!=null?ke:0,Ee=de?q:Le-x[U]-k[U]-ue+w.altAxis,Be=de?Le+x[U]+k[U]-ue-w.altAxis:X,xe=h&&de?Xb(Ee,Le,Be):mn(h?Ee:q,Le,h?Be:X);y[R]=xe,T[R]=xe-Le}e.modifiersData[i]=T}}const Dv={name:"preventOverflow",enabled:!0,phase:"main",fn:Tv,requiresIfExists:["offset"]};function Ov(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Lv(n){return n===St(n)||!Bt(n)?pa(n):Ov(n)}function Bv(n){var e=n.getBoundingClientRect(),t=ji(e.width)/n.offsetWidth||1,i=ji(e.height)/n.offsetHeight||1;return t!==1||i!==1}function Fv(n,e,t){t===void 0&&(t=!1);var i=Bt(e),r=Bt(e)&&Bv(e),s=fi(e),a=Wi(n,r,t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!t)&&((Yt(e)!=="body"||ga(s))&&(l=Lv(e)),Bt(e)?(u=Wi(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=ma(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function _v(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var u=e.get(l);u&&r(u)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function Pv(n){var e=_v(n);return Qb.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Nv(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Iv(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var Rc={placement:"bottom",modifiers:[],strategy:"absolute"};function Mc(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Hv(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?Rc:r;return function(l,u,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rc,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var g=typeof b=="function"?b(d.options):b;m(),d.options=Object.assign({},s,d.options,g),d.scrollParents={reference:ki(l)?gn(l):l.contextElement?gn(l.contextElement):[],popper:gn(u)};var M=Pv(Iv([].concat(i,d.options.modifiers)));return d.orderedModifiers=M.filter(function(v){return v.enabled}),S(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,g=b.reference,M=b.popper;if(Mc(g,M)){d.rects={reference:Fv(g,pn(M),d.options.strategy==="fixed"),popper:ha(M)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(w){return d.modifiersData[w.name]=Object.assign({},w.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var R=d.orderedModifiers[v],y=R.fn,x=R.options,k=x===void 0?{}:x,C=R.name;typeof y=="function"&&(d=y({state:d,options:k,name:C,instance:h})||d)}}}},update:Nv(function(){return new Promise(function(A){h.forceUpdate(),A(d)})}),destroy:function(){m(),p=!0}};if(!Mc(l,u))return h;h.setOptions(c).then(function(A){!p&&c.onFirstUpdate&&c.onFirstUpdate(A)});function S(){d.orderedModifiers.forEach(function(A){var b=A.name,g=A.options,M=g===void 0?{}:g,v=A.effect;if(typeof v=="function"){var R=v({state:d,name:b,instance:h,options:M}),y=function(){};f.push(R||y)}})}function m(){f.forEach(function(A){return A()}),f=[]}return h}}var Vv=[uv,Rv,ov,qb,Sv,wv,Dv,nv,Av],zv=Hv({defaultModifiers:Vv});function jv(n,e,{width:t}){n.style.width=t;const i=zv(e.$refs.toggle,n,{placement:e.$attrs.placement,modifiers:[{name:"offset",options:{offset:[0,-1]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:r}){e.$el.classList.toggle("drop-up",r.placement==="top")}}]});return()=>i.destroy()}const Wv={class:"text-muted"},Uv={key:0,class:"py-1"},Gv={class:"text-wrap"},Yv=["innerHTML"],Qv={key:1,class:"text-muted p-0"},Kv={class:"text-wrap"},Jv={key:2,class:"text-muted p-0 small d-flex justify-content-center"},qv={class:"text-wrap px-2"},$v={class:"selected"},Zv=["innerHTML"],Xv={key:0,style:{"border-left-color":"rgba(88, 151, 251, 0.71)"},class:"vs__spinner"},oi={__name:"VSelect",props:{modelValue:[String,Object,Number],reduce:{type:Function,default:n=>n.id},hint:{type:String,default:""},classes:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},title:{type:String},disabled:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},searchTimout:{type:Number,default:1e3},dropDownPlacement:{type:String,default:"bottom",validator(n,e){return["bottom","top"].includes(n)}},error:{type:[Array,String],default:null}},emits:["update:modelValue","search","blur","focus"],setup(n,{emit:e}){const t=e,i=n,r=i.multiple?[]:null;o.getCurrentInstance();const s=o.ref(r),a=na(u,i.searchTimout),l=o.computed(()=>{const f=hi(i.options);return f?f.map(p=>{const h=i.modelValue;return h?{...p,disabled:p.id===h}:p}):[]});function u(f){t("search",f)}const c=f=>!(!f.id||f.disabled),d=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean):typeof i.error=="string"&&i.error?[i.error]:[]);return o.watch(()=>i.modelValue,f=>{s.value=i.modelValue},{deep:!0}),o.watch(()=>s.value,f=>{t("update:modelValue",f)},{deep:!0}),o.onMounted(()=>{s.value=i.modelValue}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[n.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(f.titleClass)},o.toDisplayString(n.title),3)):o.createCommentVNode("",!0),o.createVNode(o.unref(_b),o.mergeProps({class:"style-chooser"},f.$attrs,{modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=h=>s.value=h),reduce:n.reduce,options:l.value,multiple:n.multiple,placeholder:n.placeholder,disabled:n.disabled,loading:n.isLoading,clearable:n.allowClear,placement:n.dropDownPlacement,appendToBody:n.dropDownPlacement==="top","calculate-position":o.unref(jv),selectable:h=>c(h),"onSearch:blur":p[1]||(p[1]=h=>t("blur")),"onSearch:focus":p[2]||(p[2]=h=>t("focus")),onSearch:o.unref(a),class:[...n.classes,n.error?"not-valid":""]}),{"no-options":o.withCtx(({search:h,searching:S,loading:m})=>[o.createElementVNode("span",Wv,o.toDisplayString(n.hint),1)]),option:o.withCtx(({label:h,html:S,id:m,disabled:A})=>[m?(o.openBlock(),o.createElementBlock("div",Uv,[o.createElementVNode("div",Gv,o.toDisplayString(h),1),S?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:S},null,8,Yv)):o.createCommentVNode("",!0)])):A?(o.openBlock(),o.createElementBlock("div",Qv,[o.createElementVNode("div",Kv,o.toDisplayString(h)+"disabled",1)])):(o.openBlock(),o.createElementBlock("div",Jv,[p[3]||(p[3]=o.createElementVNode("span",null,"-",-1)),o.createElementVNode("span",qv,o.toDisplayString(h),1),p[4]||(p[4]=o.createElementVNode("span",null,"-",-1))]))]),"selected-option":o.withCtx(({label:h,html:S})=>[o.createElementVNode("div",$v,[o.createElementVNode("div",null,o.toDisplayString(h),1),S?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:S},null,8,Zv)):o.createCommentVNode("",!0)])]),spinner:o.withCtx(({loading:h})=>[h?(o.openBlock(),o.createElementBlock("div",Xv)):o.createCommentVNode("",!0)]),_:1},16,["modelValue","reduce","options","multiple","placeholder","disabled","loading","clearable","placement","appendToBody","calculate-position","selectable","onSearch","class"]),o.createVNode(Ei,{errors:d.value},null,8,["errors"])],64))}},ey={class:"form-check"},ty=["type","id","name"],iy=["for"],Tc=_e(o.defineComponent({__name:"BooleanCheckbox",props:{defaultValue:{default:null},trueValue:{default:"1"},modelValue:{default:void 0},name:{default:""},group:{default:""},type:{default:"checkbox"},label:{default:""},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(),s=Ai(),a=o.computed(()=>t.group.length?t.group:t.name),l=()=>{i("update:modelValue",r.value?.checked?t.trueValue:t.defaultValue)},u=o.computed(()=>!t.modelValue||t.modelValue!==t.trueValue?(r.value&&(r.value.checked=!1),c(),null):(r.value&&(r.value.checked=!0),c(),!0)),c=()=>{if(!t.setFilterParamsStringsHandler)return!1;const f=r.value?.checked?"Да":null;t.setFilterParamsStringsHandler(t.name,f)},d=o.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return o.watch(()=>t.modelValue,f=>{r.value&&(r.value.checked=!!f)}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",ey,[(o.openBlock(),o.createElementBlock("input",{class:o.normalizeClass(["form-check-input",[f.error?"not-valid":""]]),ref_key:"input",ref:r,type:f.type,id:String(o.unref(s)),name:a.value,key:String(u.value),onClick:l},null,10,ty)),o.createElementVNode("label",{class:o.normalizeClass(["form-check-label",[f.error?"text-danger":""]]),for:String(o.unref(s))},o.toDisplayString(f.label),11,iy)]),o.createVNode(Ei,{errors:d.value},null,8,["errors"])],64))}}),[["__scopeId","data-v-b2a37180"]]),ny={class:"multi-checkbox"},ry=["checked","onClick","id","value","name"],sy=["for"],ay=_e(o.defineComponent({__name:"MultiCheckbox",props:{modelValue:{default:()=>[]},inputClass:{default:""},options:{default:()=>[]},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.toRef(t,"modelValue"),s=o.toRef(t,"options"),a=o.toRef(t,"name");function l(f,p){const h=String(p);let S=[...r.value];r.value.includes(h)?S=r.value.filter(m=>String(m)!==h):S.push(h),i("update:modelValue",S)}const u=o.computed(()=>f=>r.value.includes(String(f)));function c(f){if(!t.setFilterParamsStringsHandler)return;let p=f.map(S=>String(S));const h=s.value.filter(S=>p.includes(String(S.id))).map(S=>S.text);if(p.length===0){t.setFilterParamsStringsHandler(a.value,null);return}t.setFilterParamsStringsHandler(a.value,h.join(", "))}const d=o.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return o.watch(()=>r.value,f=>{c(f)},{deep:!0}),(f,p)=>(o.openBlock(),o.createElementBlock("div",ny,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,h=>(o.openBlock(),o.createElementBlock("div",{class:"form-check",key:h.id},[o.createElementVNode("input",{class:o.normalizeClass(["form-check-input",[f.inputClass,{"not-valid":f.error}]]),type:"checkbox",checked:u.value(h.id),onClick:S=>l(S,h.id),id:`${a.value}-${h.id}`,value:h.id,name:`${a.value}-${h.id}`},null,10,ry),o.createElementVNode("label",{class:"form-check-label d-block",for:`${a.value}-${h.id}`},o.toDisplayString(h.text),9,sy)]))),128)),o.createVNode(Ei,{errors:d.value},null,8,["errors"])]))}}),[["__scopeId","data-v-e23ac74b"]]),oy={class:"multi-input"},ly={class:"col"},uy={class:"col-auto"},cy=["onClick"],dy=_e(o.defineComponent({__name:"MultiInput",props:{modelValue:{default:()=>[]},title:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},inputClass:{default:""},error:{default:""},maskOptions:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=o.toRef(t,"modelValue");o.toRef(t,"title");const s=o.toRef(t,"placeholder");o.toRef(t,"disabled");const a=o.toRef(t,"error"),l=o.toRef(t,"maskOptions"),u=o.ref([]),c=o.ref(!1),d={value:"",disabled:!1,uniqueKey:1};function f(){const b=hi(d);b.uniqueKey=Ai(),u.value.push(b)}function p(b,g){b.value=g}const h=o.computed(()=>u.value.length>1);function S(b){u.value=u.value.filter(g=>g.uniqueKey!==b.uniqueKey)}function m(){u.value=[],f()}function A(b){const g=b.map(v=>v.value);if(i("update:modelValue",g),!t.setFilterParamsStringsHandler)return;const M=g.filter(v=>v&&v.length>0);if(M.length===0){t.setFilterParamsStringsHandler(t.name,null);return}t.setFilterParamsStringsHandler(t.name,M.join(", "))}return o.watch(()=>u.value,b=>{c.value||A(b)},{deep:!0}),o.watch(()=>r.value,b=>{c.value=!0,!b||b.length===0?m():u.value.length!==b.length?u.value=b.map((g,M)=>({value:g,disabled:!1,uniqueKey:Ai()+M})):b.forEach((g,M)=>{u.value[M]&&(u.value[M].value=g)}),o.nextTick(()=>{c.value=!1})},{deep:!0}),o.onMounted(()=>{r.value&&r.value.length>0?u.value=r.value.map((b,g)=>({value:b,disabled:!1,uniqueKey:Ai()+g})):f()}),(b,g)=>(o.openBlock(),o.createElementBlock("div",oy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(M,v)=>(o.openBlock(),o.createElementBlock("div",{class:"row mb-2",key:M.uniqueKey},[o.createElementVNode("div",ly,[o.createVNode(er,{"model-value":M.value,"onUpdate:modelValue":R=>p(M,R),name:b.name,placeholder:s.value,class:o.normalizeClass(b.inputClass),disabled:M.disabled,"mask-options":l.value,error:a.value},null,8,["model-value","onUpdate:modelValue","name","placeholder","class","disabled","mask-options","error"])]),o.createElementVNode("div",uy,[h.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"d-flex remove-button p-2",style:{cursor:"pointer"},onClick:R=>S(M)},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-trash-fill"},null,-1)])],8,cy)):o.createCommentVNode("",!0)])]))),128)),o.createVNode(ja,{onClick:f})]))}}),[["__scopeId","data-v-9337052b"]]);var va=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Gi={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},vn={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Et=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},Ft=function(n){return n===!0?1:0};function Dc(n,e){var t;return function(){var i=this,r=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(i,r)},e)}}var ya=function(n){return n instanceof Array?n:[n]};function vt(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function qe(n,e,t){var i=window.document.createElement(n);return e=e||"",t=t||"",i.className=e,t!==void 0&&(i.textContent=t),i}function sr(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Oc(n,e){if(e(n))return n;if(n.parentNode)return Oc(n.parentNode,e)}function ar(n,e){var t=qe("div","numInputWrapper"),i=qe("input","numInput "+n),r=qe("span","arrowUp"),s=qe("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),e!==void 0)for(var a in e)i.setAttribute(a,e[a]);return t.appendChild(i),t.appendChild(r),t.appendChild(s),t}function xt(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var wa=function(){},or=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},hy={D:wa,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*Ft(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var i=parseInt(e),r=new Date(n.getFullYear(),0,2+(i-1)*7,0,0,0,0);return r.setDate(r.getDate()-r.getDay()+t.firstDayOfWeek),r},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:wa,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:wa,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},xi={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},yn={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[yn.w(n,e,t)]},F:function(n,e,t){return or(yn.n(n,e,t)-1,!1,e)},G:function(n,e,t){return Et(yn.h(n,e,t))},H:function(n){return Et(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[Ft(n.getHours()>11)]},M:function(n,e){return or(n.getMonth(),!0,e)},S:function(n){return Et(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return Et(n.getFullYear(),4)},d:function(n){return Et(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return Et(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return Et(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},Lc=function(n){var e=n.config,t=e===void 0?Gi:e,i=n.l10n,r=i===void 0?vn:i,s=n.isMobile,a=s===void 0?!1:s;return function(l,u,c){var d=c||r;return t.formatDate!==void 0&&!a?t.formatDate(l,u,d):u.split("").map(function(f,p,h){return yn[f]&&h[p-1]!=="\\"?yn[f](l,d,t):f!=="\\"?f:""}).join("")}},Ca=function(n){var e=n.config,t=e===void 0?Gi:e,i=n.l10n,r=i===void 0?vn:i;return function(s,a,l,u){if(!(s!==0&&!s)){var c=u||r,d,f=s;if(s instanceof Date)d=new Date(s.getTime());else if(typeof s!="string"&&s.toFixed!==void 0)d=new Date(s);else if(typeof s=="string"){var p=a||(t||Gi).dateFormat,h=String(s).trim();if(h==="today")d=new Date,l=!0;else if(t&&t.parseDate)d=t.parseDate(s,p);else if(/Z$/.test(h)||/GMT$/.test(h))d=new Date(s);else{for(var S=void 0,m=[],A=0,b=0,g="";A<p.length;A++){var M=p[A],v=M==="\\",R=p[A-1]==="\\"||v;if(xi[M]&&!R){g+=xi[M];var y=new RegExp(g).exec(s);y&&(S=!0)&&m[M!=="Y"?"push":"unshift"]({fn:hy[M],val:y[++b]})}else v||(g+=".")}d=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),m.forEach(function(x){var k=x.fn,C=x.val;return d=k(d,C,c)||d}),d=S?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){t.errorHandler(new Error("Invalid date provided: "+f));return}return l===!0&&d.setHours(0,0,0,0),d}}};function Rt(n,e,t){return t===void 0&&(t=!0),t!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):n.getTime()-e.getTime()}var fy=function(n,e,t){return n>Math.min(e,t)&&n<Math.max(e,t)},Aa=function(n,e,t){return n*3600+e*60+t},py=function(n){var e=Math.floor(n/3600),t=(n-e*3600)/60;return[e,t,n-e*3600-t*60]},my={DAY:864e5};function Ea(n){var e=n.defaultHour,t=n.defaultMinute,i=n.defaultSeconds;if(n.minDate!==void 0){var r=n.minDate.getHours(),s=n.minDate.getMinutes(),a=n.minDate.getSeconds();e<r&&(e=r),e===r&&t<s&&(t=s),e===r&&t===s&&i<a&&(i=n.minDate.getSeconds())}if(n.maxDate!==void 0){var l=n.maxDate.getHours(),u=n.maxDate.getMinutes();e=Math.min(e,l),e===l&&(t=Math.min(u,t)),e===l&&t===u&&(i=n.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:i}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var i=function(l){l&&Object.keys(l).forEach(function(u){return n[u]=l[u]})},r=0,s=e;r<s.length;r++){var a=s[r];i(a)}return n});var pt=function(){return pt=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},pt.apply(this,arguments)},Bc=function(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var i=Array(n),r=0,e=0;e<t;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,r++)i[r]=s[a];return i},gy=300;function by(n,e){var t={config:pt(pt({},Gi),ct.defaultConfig),l10n:vn};t.parseDate=Ca({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=m,t._setHoursFromDate=p,t._positionCalendar=Ne,t.changeMonth=P,t.changeYear=ae,t.clear=Q,t.close=z,t.onMouseOver=te,t._createElement=qe,t.createDay=y,t.destroy=$,t.isEnabled=W,t.jumpToDate=g,t.updateValue=Se,t.open=le,t.redraw=q,t.set=Ee,t.setDate=xe,t.toggle=We;function i(){t.utils={getDaysInMonth:function(F,E){return F===void 0&&(F=t.currentMonth),E===void 0&&(E=t.currentYear),F===1&&(E%4===0&&E%100!==0||E%400===0)?29:t.l10n.daysInMonth[F]}}}function r(){t.element=t.input=n,t.isOpen=!1,ye(),Pe(),ot(),Ie(),i(),t.isMobile||R(),b(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&p(t.config.noCalendar?t.latestSelectedDateObj:void 0),Se(!1)),l();var F=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&F&&Ne(),Me("onReady")}function s(){var F;return((F=t.calendarContainer)===null||F===void 0?void 0:F.getRootNode()).activeElement||document.activeElement}function a(F){return F.bind(t)}function l(){var F=t.config;F.weekNumbers===!1&&F.showMonths===1||F.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var E=(t.days.offsetWidth+1)*F.showMonths;t.daysContainer.style.width=E+"px",t.calendarContainer.style.width=E+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function u(F){if(t.selectedDates.length===0){var E=t.config.minDate===void 0||Rt(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),O=Ea(t.config);E.setHours(O.hours,O.minutes,O.seconds,E.getMilliseconds()),t.selectedDates=[E],t.latestSelectedDateObj=E}F!==void 0&&F.type!=="blur"&&nt(F);var _=t._input.value;f(),Se(),t._input.value!==_&&t._debouncedChange()}function c(F,E){return F%12+12*Ft(E===t.l10n.amPM[1])}function d(F){switch(F%24){case 0:case 12:return 12;default:return F%12}}function f(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var F=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,E=(parseInt(t.minuteElement.value,10)||0)%60,O=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(F=c(F,t.amPM.textContent));var _=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&Rt(t.latestSelectedDateObj,t.config.minDate,!0)===0,Y=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&Rt(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var se=Aa(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),oe=Aa(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),ce=Aa(F,E,O);if(ce>oe&&ce<se){var he=py(se);F=he[0],E=he[1],O=he[2]}}else{if(Y){var pe=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;F=Math.min(F,pe.getHours()),F===pe.getHours()&&(E=Math.min(E,pe.getMinutes())),E===pe.getMinutes()&&(O=Math.min(O,pe.getSeconds()))}if(_){var be=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;F=Math.max(F,be.getHours()),F===be.getHours()&&E<be.getMinutes()&&(E=be.getMinutes()),E===be.getMinutes()&&(O=Math.max(O,be.getSeconds()))}}h(F,E,O)}}function p(F){var E=F||t.latestSelectedDateObj;E&&E instanceof Date&&h(E.getHours(),E.getMinutes(),E.getSeconds())}function h(F,E,O){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(F%24,E,O||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=Et(t.config.time_24hr?F:(12+F)%12+12*Ft(F%12===0)),t.minuteElement.value=Et(E),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[Ft(F>=12)]),t.secondElement!==void 0&&(t.secondElement.value=Et(O)))}function S(F){var E=xt(F),O=parseInt(E.value)+(F.delta||0);(O/1e3>1||F.key==="Enter"&&!/[^\d]/.test(O.toString()))&&ae(O)}function m(F,E,O,_){if(E instanceof Array)return E.forEach(function(Y){return m(F,Y,O,_)});if(F instanceof Array)return F.forEach(function(Y){return m(Y,E,O,_)});F.addEventListener(E,O,_),t._handlers.push({remove:function(){return F.removeEventListener(E,O,_)}})}function A(){Me("onChange")}function b(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(O){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+O+"]"),function(_){return m(_,"click",t[O])})}),t.isMobile){ge();return}var F=Dc(fe,50);if(t._debouncedChange=Dc(A,gy),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(t.daysContainer,"mouseover",function(O){t.config.mode==="range"&&te(xt(O))}),m(t._input,"keydown",ie),t.calendarContainer!==void 0&&m(t.calendarContainer,"keydown",ie),!t.config.inline&&!t.config.static&&m(window,"resize",F),window.ontouchstart!==void 0?m(window.document,"touchstart",K):m(window.document,"mousedown",K),m(window.document,"focus",K,{capture:!0}),t.config.clickOpens===!0&&(m(t._input,"focus",t.open),m(t._input,"click",t.open)),t.daysContainer!==void 0&&(m(t.monthNav,"click",bt),m(t.monthNav,["keyup","increment"],S),m(t.daysContainer,"click",de)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var E=function(O){return xt(O).select()};m(t.timeContainer,["increment"],u),m(t.timeContainer,"blur",u,{capture:!0}),m(t.timeContainer,"click",M),m([t.hourElement,t.minuteElement],["focus","click"],E),t.secondElement!==void 0&&m(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&m(t.amPM,"click",function(O){u(O)})}t.config.allowInput&&m(t._input,"blur",ne)}function g(F,E){var O=F!==void 0?t.parseDate(F):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),_=t.currentYear,Y=t.currentMonth;try{O!==void 0&&(t.currentYear=O.getFullYear(),t.currentMonth=O.getMonth())}catch(se){se.message="Invalid date supplied: "+O,t.config.errorHandler(se)}E&&t.currentYear!==_&&(Me("onYearChange"),L()),E&&(t.currentYear!==_||t.currentMonth!==Y)&&Me("onMonthChange"),t.redraw()}function M(F){var E=xt(F);~E.className.indexOf("arrow")&&v(F,E.classList.contains("arrowUp")?1:-1)}function v(F,E,O){var _=F&&xt(F),Y=O||_&&_.parentNode&&_.parentNode.firstChild,se=Z("increment");se.delta=E,Y&&Y.dispatchEvent(se)}function R(){var F=window.document.createDocumentFragment();if(t.calendarContainer=qe("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(F.appendChild(G()),t.innerContainer=qe("div","flatpickr-innerContainer"),t.config.weekNumbers){var E=B(),O=E.weekWrapper,_=E.weekNumbers;t.innerContainer.appendChild(O),t.weekNumbers=_,t.weekWrapper=O}t.rContainer=qe("div","flatpickr-rContainer"),t.rContainer.appendChild(V()),t.daysContainer||(t.daysContainer=qe("div","flatpickr-days"),t.daysContainer.tabIndex=-1),T(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),F.appendChild(t.innerContainer)}t.config.enableTime&&F.appendChild(I()),vt(t.calendarContainer,"rangeMode",t.config.mode==="range"),vt(t.calendarContainer,"animate",t.config.animate===!0),vt(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(F);var Y=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Y&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var se=qe("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(se,t.element),se.appendChild(t.element),t.altInput&&se.appendChild(t.altInput),se.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function y(F,E,O,_){var Y=W(E,!0),se=qe("span",F,E.getDate().toString());return se.dateObj=E,se.$i=_,se.setAttribute("aria-label",t.formatDate(E,t.config.ariaDateFormat)),F.indexOf("hidden")===-1&&Rt(E,t.now)===0&&(t.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),Y?(se.tabIndex=-1,re(E)&&(se.classList.add("selected"),t.selectedDateElem=se,t.config.mode==="range"&&(vt(se,"startRange",t.selectedDates[0]&&Rt(E,t.selectedDates[0],!0)===0),vt(se,"endRange",t.selectedDates[1]&&Rt(E,t.selectedDates[1],!0)===0),F==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),t.config.mode==="range"&&He(E)&&!re(E)&&se.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&F!=="prevMonthDay"&&_%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(E)+"</span>"),Me("onDayCreate",se),se}function x(F){F.focus(),t.config.mode==="range"&&te(F)}function k(F){for(var E=F>0?0:t.config.showMonths-1,O=F>0?t.config.showMonths:-1,_=E;_!=O;_+=F)for(var Y=t.daysContainer.children[_],se=F>0?0:Y.children.length-1,oe=F>0?Y.children.length:-1,ce=se;ce!=oe;ce+=F){var he=Y.children[ce];if(he.className.indexOf("hidden")===-1&&W(he.dateObj))return he}}function C(F,E){for(var O=F.className.indexOf("Month")===-1?F.dateObj.getMonth():t.currentMonth,_=E>0?t.config.showMonths:-1,Y=E>0?1:-1,se=O-t.currentMonth;se!=_;se+=Y)for(var oe=t.daysContainer.children[se],ce=O-t.currentMonth===se?F.$i+E:E<0?oe.children.length-1:0,he=oe.children.length,pe=ce;pe>=0&&pe<he&&pe!=(E>0?he:-1);pe+=Y){var be=oe.children[pe];if(be.className.indexOf("hidden")===-1&&W(be.dateObj)&&Math.abs(F.$i-pe)>=Math.abs(E))return x(be)}t.changeMonth(Y),w(k(Y),0)}function w(F,E){var O=s(),_=H(O||document.body),Y=F!==void 0?F:_?O:t.selectedDateElem!==void 0&&H(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&H(t.todayDateElem)?t.todayDateElem:k(E>0?1:-1);Y===void 0?t._input.focus():_?C(Y,E):x(Y)}function D(F,E){for(var O=(new Date(F,E,1).getDay()-t.l10n.firstDayOfWeek+7)%7,_=t.utils.getDaysInMonth((E-1+12)%12,F),Y=t.utils.getDaysInMonth(E,F),se=window.document.createDocumentFragment(),oe=t.config.showMonths>1,ce=oe?"prevMonthDay hidden":"prevMonthDay",he=oe?"nextMonthDay hidden":"nextMonthDay",pe=_+1-O,be=0;pe<=_;pe++,be++)se.appendChild(y("flatpickr-day "+ce,new Date(F,E-1,pe),pe,be));for(pe=1;pe<=Y;pe++,be++)se.appendChild(y("flatpickr-day",new Date(F,E,pe),pe,be));for(var De=Y+1;De<=42-O&&(t.config.showMonths===1||be%7!==0);De++,be++)se.appendChild(y("flatpickr-day "+he,new Date(F,E+1,De%Y),De,be));var je=qe("div","dayContainer");return je.appendChild(se),je}function T(){if(t.daysContainer!==void 0){sr(t.daysContainer),t.weekNumbers&&sr(t.weekNumbers);for(var F=document.createDocumentFragment(),E=0;E<t.config.showMonths;E++){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+E),F.appendChild(D(O.getFullYear(),O.getMonth()))}t.daysContainer.appendChild(F),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&te()}}function L(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var F=function(_){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&_<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&_>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var E=0;E<12;E++)if(F(E)){var O=qe("option","flatpickr-monthDropdown-month");O.value=new Date(t.currentYear,E).getMonth().toString(),O.textContent=or(E,t.config.shorthandCurrentMonth,t.l10n),O.tabIndex=-1,t.currentMonth===E&&(O.selected=!0),t.monthsDropdownContainer.appendChild(O)}}}function N(){var F=qe("div","flatpickr-month"),E=window.document.createDocumentFragment(),O;t.config.showMonths>1||t.config.monthSelectorType==="static"?O=qe("span","cur-month"):(t.monthsDropdownContainer=qe("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),m(t.monthsDropdownContainer,"change",function(oe){var ce=xt(oe),he=parseInt(ce.value,10);t.changeMonth(he-t.currentMonth),Me("onMonthChange")}),L(),O=t.monthsDropdownContainer);var _=ar("cur-year",{tabindex:"-1"}),Y=_.getElementsByTagName("input")[0];Y.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Y.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Y.setAttribute("max",t.config.maxDate.getFullYear().toString()),Y.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var se=qe("div","flatpickr-current-month");return se.appendChild(O),se.appendChild(_),E.appendChild(se),F.appendChild(E),{container:F,yearElement:Y,monthElement:O}}function j(){sr(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var F=t.config.showMonths;F--;){var E=N();t.yearElements.push(E.yearElement),t.monthElements.push(E.monthElement),t.monthNav.appendChild(E.container)}t.monthNav.appendChild(t.nextMonthNav)}function G(){return t.monthNav=qe("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=qe("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=qe("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,j(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(F){t.__hidePrevMonthArrow!==F&&(vt(t.prevMonthNav,"flatpickr-disabled",F),t.__hidePrevMonthArrow=F)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(F){t.__hideNextMonthArrow!==F&&(vt(t.nextMonthNav,"flatpickr-disabled",F),t.__hideNextMonthArrow=F)}}),t.currentYearElement=t.yearElements[0],Ue(),t.monthNav}function I(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var F=Ea(t.config);t.timeContainer=qe("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var E=qe("span","flatpickr-time-separator",":"),O=ar("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=O.getElementsByTagName("input")[0];var _=ar("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=_.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=Et(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?F.hours:d(F.hours)),t.minuteElement.value=Et(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():F.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O),t.timeContainer.appendChild(E),t.timeContainer.appendChild(_),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Y=ar("flatpickr-second");t.secondElement=Y.getElementsByTagName("input")[0],t.secondElement.value=Et(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():F.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(qe("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Y)}return t.config.time_24hr||(t.amPM=qe("span","flatpickr-am-pm",t.l10n.amPM[Ft((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function V(){t.weekdayContainer?sr(t.weekdayContainer):t.weekdayContainer=qe("div","flatpickr-weekdays");for(var F=t.config.showMonths;F--;){var E=qe("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(E)}return J(),t.weekdayContainer}function J(){if(t.weekdayContainer){var F=t.l10n.firstDayOfWeek,E=Bc(t.l10n.weekdays.shorthand);F>0&&F<E.length&&(E=Bc(E.splice(F,E.length),E.splice(0,F)));for(var O=t.config.showMonths;O--;)t.weekdayContainer.children[O].innerHTML=`
|
|
28
28
|
<span class='flatpickr-weekday'>
|
|
29
29
|
`+E.join("</span><span class='flatpickr-weekday'>")+`
|
|
30
30
|
</span>
|
|
31
|
-
`}}function B(){t.calendarContainer.classList.add("hasWeeks");var F=qe("div","flatpickr-weekwrapper");F.appendChild(qe("span","flatpickr-weekday",t.l10n.weekAbbreviation));var E=qe("div","flatpickr-weeks");return F.appendChild(E),{weekWrapper:F,weekNumbers:E}}function P(F,E){E===void 0&&(E=!0);var O=E?F:F-t.currentMonth;O<0&&t._hidePrevMonthArrow===!0||O>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=O,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Me("onYearChange"),L()),T(),Me("onMonthChange"),Ue())}function Q(F,E){if(F===void 0&&(F=!0),E===void 0&&(E=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,E===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var O=Ea(t.config),_=O.hours,Y=O.minutes,se=O.seconds;h(_,Y,se)}t.redraw(),F&&Me("onChange")}function z(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Me("onClose")}function $(){t.config!==void 0&&Me("onDestroy");for(var F=t._handlers.length;F--;)t._handlers[F].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var E=t.calendarContainer.parentNode;if(E.lastChild&&E.removeChild(E.lastChild),E.parentNode){for(;E.firstChild;)E.parentNode.insertBefore(E.firstChild,E);E.parentNode.removeChild(E)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(O){try{delete t[O]}catch{}})}function ee(F){return t.calendarContainer.contains(F)}function K(F){if(t.isOpen&&!t.config.inline){var E=xt(F),O=ee(E),_=E===t.input||E===t.altInput||t.element.contains(E)||F.path&&F.path.indexOf&&(~F.path.indexOf(t.input)||~F.path.indexOf(t.altInput)),Y=!_&&!O&&!ee(F.relatedTarget),se=!t.config.ignoredFocusElements.some(function(oe){return oe.contains(E)});Y&&se&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&u(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function ae(F){if(!(!F||t.config.minDate&&F<t.config.minDate.getFullYear()||t.config.maxDate&&F>t.config.maxDate.getFullYear())){var E=F,O=t.currentYear!==E;t.currentYear=E||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),O&&(t.redraw(),Me("onYearChange"),L())}}function W(F,E){var O;E===void 0&&(E=!0);var _=t.parseDate(F,void 0,E);if(t.config.minDate&&_&&Rt(_,t.config.minDate,E!==void 0?E:!t.minDateHasTime)<0||t.config.maxDate&&_&&Rt(_,t.config.maxDate,E!==void 0?E:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(_===void 0)return!1;for(var Y=!!t.config.enable,se=(O=t.config.enable)!==null&&O!==void 0?O:t.config.disable,oe=0,ce=void 0;oe<se.length;oe++){if(ce=se[oe],typeof ce=="function"&&ce(_))return Y;if(ce instanceof Date&&_!==void 0&&ce.getTime()===_.getTime())return Y;if(typeof ce=="string"){var he=t.parseDate(ce,void 0,!0);return he&&he.getTime()===_.getTime()?Y:!Y}else if(typeof ce=="object"&&_!==void 0&&ce.from&&ce.to&&_.getTime()>=ce.from.getTime()&&_.getTime()<=ce.to.getTime())return Y}return!Y}function H(F){return t.daysContainer!==void 0?F.className.indexOf("hidden")===-1&&F.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(F):!1}function ne(F){var E=F.target===t._input,O=t._input.value.trimEnd()!==Oe();E&&O&&!(F.relatedTarget&&ee(F.relatedTarget))&&t.setDate(t._input.value,!0,F.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ie(F){var E=xt(F),O=t.config.wrap?n.contains(E):E===t._input,_=t.config.allowInput,Y=t.isOpen&&(!_||!O),se=t.config.inline&&O&&!_;if(F.keyCode===13&&O){if(_)return t.setDate(t._input.value,!0,E===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),E.blur();t.open()}else if(ee(E)||Y||se){var oe=!!t.timeContainer&&t.timeContainer.contains(E);switch(F.keyCode){case 13:oe?(F.preventDefault(),u(),X()):de(F);break;case 27:F.preventDefault(),X();break;case 8:case 46:O&&!t.config.allowInput&&(F.preventDefault(),t.clear());break;case 37:case 39:if(!oe&&!O){F.preventDefault();var ce=s();if(t.daysContainer!==void 0&&(_===!1||ce&&H(ce))){var he=F.keyCode===39?1:-1;F.ctrlKey?(F.stopPropagation(),P(he),w(k(1),0)):w(void 0,he)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:F.preventDefault();var pe=F.keyCode===40?1:-1;t.daysContainer&&E.$i!==void 0||E===t.input||E===t.altInput?F.ctrlKey?(F.stopPropagation(),ae(t.currentYear-pe),w(k(1),0)):oe||w(void 0,pe*7):E===t.currentYearElement?ae(t.currentYear-pe):t.config.enableTime&&(!oe&&t.hourElement&&t.hourElement.focus(),u(F),t._debouncedChange());break;case 9:if(oe){var be=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Fe){return Fe}),De=be.indexOf(E);if(De!==-1){var je=be[De+(F.shiftKey?-1:1)];F.preventDefault(),(je||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(E)&&F.shiftKey&&(F.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&E===t.amPM)switch(F.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),Se();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),Se();break}(O||ee(E))&&Me("onKeyDown",F)}function te(F,E){if(E===void 0&&(E="flatpickr-day"),!(t.selectedDates.length!==1||F&&(!F.classList.contains(E)||F.classList.contains("flatpickr-disabled")))){for(var O=F?F.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),_=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),Y=Math.min(O,t.selectedDates[0].getTime()),se=Math.max(O,t.selectedDates[0].getTime()),oe=!1,ce=0,he=0,pe=Y;pe<se;pe+=my.DAY)W(new Date(pe),!0)||(oe=oe||pe>Y&&pe<se,pe<_&&(!ce||pe>ce)?ce=pe:pe>_&&(!he||pe<he)&&(he=pe));var be=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+E));be.forEach(function(De){var je=De.dateObj,Fe=je.getTime(),$e=ce>0&&Fe<ce||he>0&&Fe>he;if($e){De.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(et){De.classList.remove(et)});return}else if(oe&&!$e)return;["startRange","inRange","endRange","notAllowed"].forEach(function(et){De.classList.remove(et)}),F!==void 0&&(F.classList.add(O<=t.selectedDates[0].getTime()?"startRange":"endRange"),_<O&&Fe===_?De.classList.add("startRange"):_>O&&Fe===_&&De.classList.add("endRange"),Fe>=ce&&(he===0||Fe<=he)&&fy(Fe,_,O)&&De.classList.add("inRange"))})}}function fe(){t.isOpen&&!t.config.static&&!t.config.inline&&Ne()}function le(F,E){if(E===void 0&&(E=t._positionElement),t.isMobile===!0){if(F){F.preventDefault();var O=xt(F);O&&O.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Me("onOpen");return}else if(t._input.disabled||t.config.inline)return;var _=t.isOpen;t.isOpen=!0,_||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Me("onOpen"),Ne(E)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(F===void 0||!t.timeContainer.contains(F.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ve(F){return function(E){var O=t.config["_"+F+"Date"]=t.parseDate(E,t.config.dateFormat),_=t.config["_"+(F==="min"?"max":"min")+"Date"];O!==void 0&&(t[F==="min"?"minDateHasTime":"maxDateHasTime"]=O.getHours()>0||O.getMinutes()>0||O.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(Y){return W(Y)}),!t.selectedDates.length&&F==="min"&&p(O),Se()),t.daysContainer&&(q(),O!==void 0?t.currentYearElement[F]=O.getFullYear().toString():t.currentYearElement.removeAttribute(F),t.currentYearElement.disabled=!!_&&O!==void 0&&_.getFullYear()===O.getFullYear())}}function ye(){var F=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],E=pt(pt({},JSON.parse(JSON.stringify(n.dataset||{}))),e),O={};t.config.parseDate=E.parseDate,t.config.formatDate=E.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(be){t.config._enable=Re(be)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(be){t.config._disable=Re(be)}});var _=E.mode==="time";if(!E.dateFormat&&(E.enableTime||_)){var Y=ct.defaultConfig.dateFormat||Gi.dateFormat;O.dateFormat=E.noCalendar||_?"H:i"+(E.enableSeconds?":S":""):Y+" H:i"+(E.enableSeconds?":S":"")}if(E.altInput&&(E.enableTime||_)&&!E.altFormat){var se=ct.defaultConfig.altFormat||Gi.altFormat;O.altFormat=E.noCalendar||_?"h:i"+(E.enableSeconds?":S K":" K"):se+(" h:i"+(E.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ve("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ve("max")});var oe=function(be){return function(De){t.config[be==="min"?"_minTime":"_maxTime"]=t.parseDate(De,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:oe("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:oe("max")}),E.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,O,E);for(var ce=0;ce<F.length;ce++)t.config[F[ce]]=t.config[F[ce]]===!0||t.config[F[ce]]==="true";va.filter(function(be){return t.config[be]!==void 0}).forEach(function(be){t.config[be]=ya(t.config[be]||[]).map(a)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ce=0;ce<t.config.plugins.length;ce++){var he=t.config.plugins[ce](t)||{};for(var pe in he)va.indexOf(pe)>-1?t.config[pe]=ya(he[pe]).map(a).concat(t.config[pe]):typeof E[pe]>"u"&&(t.config[pe]=he[pe])}E.altInputClass||(t.config.altInputClass=ke().className+" "+t.config.altInputClass),Me("onParseConfig")}function ke(){return t.config.wrap?n.querySelector("[data-input]"):n}function Pe(){typeof t.config.locale!="object"&&typeof ct.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=pt(pt({},ct.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ct.l10ns[t.config.locale]:void 0),xi.D="("+t.l10n.weekdays.shorthand.join("|")+")",xi.l="("+t.l10n.weekdays.longhand.join("|")+")",xi.M="("+t.l10n.months.shorthand.join("|")+")",xi.F="("+t.l10n.months.longhand.join("|")+")",xi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var F=pt(pt({},e),JSON.parse(JSON.stringify(n.dataset||{})));F.time_24hr===void 0&&ct.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Lc(t),t.parseDate=Ca({config:t.config,l10n:t.l10n})}function Ne(F){if(typeof t.config.position=="function")return void t.config.position(t,F);if(t.calendarContainer!==void 0){Me("onPreCalendarPosition");var E=F||t._positionElement,O=Array.prototype.reduce.call(t.calendarContainer.children,(function(Ti,U1){return Ti+U1.offsetHeight}),0),_=t.calendarContainer.offsetWidth,Y=t.config.position.split(" "),se=Y[0],oe=Y.length>1?Y[1]:null,ce=E.getBoundingClientRect(),he=window.innerHeight-ce.bottom,pe=se==="above"||se!=="below"&&he<O&&ce.top>O,be=window.pageYOffset+ce.top+(pe?-O-2:E.offsetHeight+2);if(vt(t.calendarContainer,"arrowTop",!pe),vt(t.calendarContainer,"arrowBottom",pe),!t.config.inline){var De=window.pageXOffset+ce.left,je=!1,Fe=!1;oe==="center"?(De-=(_-ce.width)/2,je=!0):oe==="right"&&(De-=_-ce.width,Fe=!0),vt(t.calendarContainer,"arrowLeft",!je&&!Fe),vt(t.calendarContainer,"arrowCenter",je),vt(t.calendarContainer,"arrowRight",Fe);var $e=window.document.body.offsetWidth-(window.pageXOffset+ce.right),et=De+_>window.document.body.offsetWidth,lt=$e+_>window.document.body.offsetWidth;if(vt(t.calendarContainer,"rightMost",et),!t.config.static)if(t.calendarContainer.style.top=be+"px",!et)t.calendarContainer.style.left=De+"px",t.calendarContainer.style.right="auto";else if(!lt)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=$e+"px";else{var rt=Le();if(rt===void 0)return;var bi=window.document.body.offsetWidth,Mi=Math.max(0,bi/2-_/2),li=".flatpickr-calendar.centerMost:before",zt=".flatpickr-calendar.centerMost:after",qt=rt.cssRules.length,$i="{left:"+ce.left+"px;right:auto;}";vt(t.calendarContainer,"rightMost",!1),vt(t.calendarContainer,"centerMost",!0),rt.insertRule(li+","+zt+$i,qt),t.calendarContainer.style.left=Mi+"px",t.calendarContainer.style.right="auto"}}}}function Le(){for(var F=null,E=0;E<document.styleSheets.length;E++){var O=document.styleSheets[E];if(O.cssRules){try{O.cssRules}catch{continue}F=O;break}}return F??U()}function U(){var F=document.createElement("style");return document.head.appendChild(F),F.sheet}function q(){t.config.noCalendar||t.isMobile||(L(),Ue(),T())}function X(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function de(F){F.preventDefault(),F.stopPropagation();var E=function(be){return be.classList&&be.classList.contains("flatpickr-day")&&!be.classList.contains("flatpickr-disabled")&&!be.classList.contains("notAllowed")},O=Oc(xt(F),E);if(O!==void 0){var _=O,Y=t.latestSelectedDateObj=new Date(_.dateObj.getTime()),se=(Y.getMonth()<t.currentMonth||Y.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=_,t.config.mode==="single")t.selectedDates=[Y];else if(t.config.mode==="multiple"){var oe=re(Y);oe?t.selectedDates.splice(parseInt(oe),1):t.selectedDates.push(Y)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=Y,t.selectedDates.push(Y),Rt(Y,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(be,De){return be.getTime()-De.getTime()}));if(f(),se){var ce=t.currentYear!==Y.getFullYear();t.currentYear=Y.getFullYear(),t.currentMonth=Y.getMonth(),ce&&(Me("onYearChange"),L()),Me("onMonthChange")}if(Ue(),T(),Se(),!se&&t.config.mode!=="range"&&t.config.showMonths===1?x(_):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var he=t.config.mode==="single"&&!t.config.enableTime,pe=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(he||pe)&&X()}C()}}var ue={locale:[Pe,J],showMonths:[j,l,V],minDate:[g],maxDate:[g],positionElement:[Qe],clickOpens:[function(){t.config.clickOpens===!0?(m(t._input,"focus",t.open),m(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function Ee(F,E){if(F!==null&&typeof F=="object"){Object.assign(t.config,F);for(var O in F)ue[O]!==void 0&&ue[O].forEach(function(_){return _()})}else t.config[F]=E,ue[F]!==void 0?ue[F].forEach(function(_){return _()}):va.indexOf(F)>-1&&(t.config[F]=ya(E));t.redraw(),Se(!0)}function Be(F,E){var O=[];if(F instanceof Array)O=F.map(function(_){return t.parseDate(_,E)});else if(F instanceof Date||typeof F=="number")O=[t.parseDate(F,E)];else if(typeof F=="string")switch(t.config.mode){case"single":case"time":O=[t.parseDate(F,E)];break;case"multiple":O=F.split(t.config.conjunction).map(function(_){return t.parseDate(_,E)});break;case"range":O=F.split(t.l10n.rangeSeparator).map(function(_){return t.parseDate(_,E)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(F)));t.selectedDates=t.config.allowInvalidPreload?O:O.filter(function(_){return _ instanceof Date&&W(_,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(_,Y){return _.getTime()-Y.getTime()})}function xe(F,E,O){if(E===void 0&&(E=!1),O===void 0&&(O=t.config.dateFormat),F!==0&&!F||F instanceof Array&&F.length===0)return t.clear(E);Be(F,O),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),g(void 0,E),p(),t.selectedDates.length===0&&t.clear(!1),Se(E),E&&Me("onChange")}function Re(F){return F.slice().map(function(E){return typeof E=="string"||typeof E=="number"||E instanceof Date?t.parseDate(E,void 0,!0):E&&typeof E=="object"&&E.from&&E.to?{from:t.parseDate(E.from,void 0),to:t.parseDate(E.to,void 0)}:E}).filter(function(E){return E})}function Ie(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var F=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);F&&Be(F,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function ot(){if(t.input=ke(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=qe(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),Qe()}function Qe(){t._positionElement=t.config.positionElement||t._input}function ge(){var F=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=qe("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=F,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=F==="datetime-local"?"Y-m-d\\TH:i:S":F==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}m(t.mobileInput,"change",function(E){t.setDate(xt(E).value,!1,t.mobileFormatStr),Me("onChange"),Me("onClose")})}function We(F){if(t.isOpen===!0)return t.close();t.open(F)}function Me(F,E){if(t.config!==void 0){var O=t.config[F];if(O!==void 0&&O.length>0)for(var _=0;O[_]&&_<O.length;_++)O[_](t.selectedDates,t.input.value,t,E);F==="onChange"&&(t.input.dispatchEvent(Z("change")),t.input.dispatchEvent(Z("input")))}}function Z(F){var E=document.createEvent("Event");return E.initEvent(F,!0,!0),E}function re(F){for(var E=0;E<t.selectedDates.length;E++){var O=t.selectedDates[E];if(O instanceof Date&&Rt(O,F)===0)return""+E}return!1}function He(F){return t.config.mode!=="range"||t.selectedDates.length<2?!1:Rt(F,t.selectedDates[0])>=0&&Rt(F,t.selectedDates[1])<=0}function Ue(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(F,E){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+E),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[E].textContent=or(O.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=O.getMonth().toString(),F.value=O.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function Oe(F){var E=F||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(O){return t.formatDate(O,E)}).filter(function(O,_,Y){return t.config.mode!=="range"||t.config.enableTime||Y.indexOf(O)===_}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Se(F){F===void 0&&(F=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Oe(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Oe(t.config.altFormat)),F!==!1&&Me("onValueUpdate")}function bt(F){var E=xt(F),O=t.prevMonthNav.contains(E),_=t.nextMonthNav.contains(E);O||_?P(O?-1:1):t.yearElements.indexOf(E)>=0?E.select():E.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):E.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function nt(F){F.preventDefault();var E=F.type==="keydown",O=xt(F),_=O;t.amPM!==void 0&&O===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]);var Y=parseFloat(_.getAttribute("min")),se=parseFloat(_.getAttribute("max")),oe=parseFloat(_.getAttribute("step")),ce=parseInt(_.value,10),he=F.delta||(E?F.which===38?1:-1:0),pe=ce+oe*he;if(typeof _.value<"u"&&_.value.length===2){var be=_===t.hourElement,De=_===t.minuteElement;pe<Y?(pe=se+pe+Ft(!be)+(Ft(be)&&Ft(!t.amPM)),De&&v(void 0,-1,t.hourElement)):pe>se&&(pe=_===t.hourElement?pe-se-Ft(!t.amPM):Y,De&&v(void 0,1,t.hourElement)),t.amPM&&be&&(oe===1?pe+ce===23:Math.abs(pe-ce)>oe)&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]),_.value=Et(pe)}}return r(),t}function Yi(n,e){for(var t=Array.prototype.slice.call(n).filter(function(a){return a instanceof HTMLElement}),i=[],r=0;r<t.length;r++){var s=t[r];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=by(s,e||{}),i.push(s._flatpickr)}catch(a){console.error(a)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Yi(this,n)},HTMLElement.prototype.flatpickr=function(n){return Yi([this],n)});var ct=function(n,e){return typeof n=="string"?Yi(window.document.querySelectorAll(n),e):n instanceof Node?Yi([n],e):Yi(n,e)};ct.defaultConfig={},ct.l10ns={en:pt({},vn),default:pt({},vn)},ct.localize=function(n){ct.l10ns.default=pt(pt({},ct.l10ns.default),n)},ct.setDefaults=function(n){ct.defaultConfig=pt(pt({},ct.defaultConfig),n)},ct.parseDate=Ca({}),ct.formatDate=Lc({}),ct.compareDates=Rt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Yi(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=ct);var wn={exports:{}},vy=wn.exports,Fc;function yy(){return Fc||(Fc=1,(function(n,e){(function(t,i){i(e)})(vy,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};i.l10ns.ru=r;var s=i.l10ns;t.Russian=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(wn,wn.exports)),wn.exports}var wy=yy();const Cy=["value","id","name","disabled","required","placeholder"],Ay=["title"],Ey=["title"],ky=_e(o.defineComponent({__name:"Flatpickr",props:{modelValue:{default:""},id:{default:"flatpickr-input"},error:{default:""},name:{default:"flatpickr"},placeholder:{default:"Выберите дату"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},config:{default:()=>({})},format:{default:"DD.MM.YYYY"},locale:{default:"ru"},resetTitle:{default:"Очистить"},calendarTitle:{default:"Выбрать дату"},allowInput:{type:Boolean,default:!0},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!0},dateFormat:{default:"d.m.Y"},minDate:{default:void 0},maxDate:{default:void 0},defaultDate:{default:void 0},mode:{default:"single"}},emits:["update:modelValue","change","open","close","ready"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(),a=o.ref(null),l=o.ref(!1),u=o.ref(""),c=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),d=b=>{if(!b)return"";const g=new Date(b);if(isNaN(g.getTime()))return"";const M=String(g.getDate()).padStart(2,"0"),v=String(g.getMonth()+1).padStart(2,"0"),R=g.getFullYear();return i.format==="DD.MM.YYYY"?`${M}.${v}.${R}`:i.format==="MM/DD/YYYY"?`${v}/${M}/${R}`:i.format==="YYYY-MM-DD"?`${R}-${v}-${M}`:`${M}.${v}.${R}`},f=b=>{if(!b)return"";if(/^\d{4}-\d{2}-\d{2}/.test(b))return b;if(i.format==="DD.MM.YYYY"){const g=b.split(".");if(g.length===3){const[M,v,R]=g;return`${R}-${v.padStart(2,"0")}-${M.padStart(2,"0")}`}}if(i.format==="MM/DD/YYYY"){const g=b.split("/");if(g.length===3){const[M,v,R]=g;return`${R}-${M.padStart(2,"0")}-${v.padStart(2,"0")}`}}return i.format==="YYYY-MM-DD",b},p=()=>{if(!s.value)return;const b={locale:i.locale==="ru"?wy.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(g,M,v)=>{const R=g.length>0;if(!(i.modelValue!==M))return!1;if(!R)return h({instance:v}),!1;o.nextTick(()=>{if(i.mode==="multiple"){const x=g.map(k=>d(k));r("update:modelValue",x)}else if(i.mode==="range"){const x=g.map(k=>d(k));r("update:modelValue",x)}else r("update:modelValue",M);r("change",g.map(x=>x.toISOString()),M,v)})},onOpen:g=>{r("open",g)},onReady:g=>{r("ready",g)},...i.config};i.minDate&&i.minDate&&(b.minDate=i.minDate),i.maxDate&&(b.maxDate=i.maxDate),i.defaultDate&&(b.defaultDate=i.defaultDate),a.value=ct(s.value,b),h({instance:a.value})},h=({instance:b})=>{b?._input&&(i.modelValue?o.nextTick(()=>{Array.isArray(i.modelValue)?b._input.value=i.modelValue.map(g=>d(g)).join(", "):b._input.value=d(i.modelValue),l.value=!0}):o.nextTick(()=>{b._input.value="",l.value=!1}))},S=()=>{i.disabled||!a.value||(a.value.clear(),a.value._input.value="",r("update:modelValue",""),l.value=!1)},m=b=>{const g=b.target;u.value=g.value},C=()=>{if(u.value){const b=f(u.value);b&&r("update:modelValue",b)}};return o.watch(()=>i.modelValue,b=>{if(!b){l.value=!1,a.value?._input&&(a.value._input.value=""),u.value="";return}Array.isArray(b)?u.value=b.map(g=>d(g)).join(", "):u.value=d(b),l.value=!0},{deep:!0}),o.watch(()=>i.disabled,b=>{a.value?._input&&(a.value._input.disabled=b)}),o.onMounted(()=>{p()}),o.onBeforeUnmount(()=>{a.value&&a.value.destroy()}),e({datapicker:a}),(b,g)=>(o.openBlock(),o.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[o.createElementVNode("div",{class:o.normalizeClass({"not-valid":c.value.length})},[o.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:b.id,name:b.name,disabled:b.disabled,required:b.required,placeholder:b.placeholder,"data-input":"",onInput:m,onBlur:C},null,40,Cy)],2),l.value&&!b.disabled?(o.openBlock(),o.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:S,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:b.resetTitle},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Ay)):o.createCommentVNode("",!0),o.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:b.calendarTitle},[...g[1]||(g[1]=[o.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,Ey),o.createVNode(Ei,{errors:c.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-805e83fd"]]);function Sy(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,a=o.ref(""),l=o.ref([]),u=o.ref(!1),c=o.ref(r),d=o.ref(!1),f=o.ref(!1),p=o.computed(()=>a.value&&a.value.length>0&&a.value.length<s?`Введите минимум ${s} символа`:t),h=o.computed(()=>i);return{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:y=>{a.value=y||"",y&&y.length>=s},onSelect:y=>{},clearSearch:()=>{a.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:y=>{l.value=y},setLoading:y=>{u.value=y},setGlobalLoading:y=>{f.value=y}}}const xy=["disabled"],Ry={key:1,class:"bi bi-three-dots-vertical"},My=_e(o.defineComponent({__name:"HeaderSearchForm",props:{placeholder:{default:"Поиск..."},searchHint:{default:"Введите минимум 3 символа"},searchTypes:{default:()=>[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}]},defaultSearchType:{default:"partial"},minSearchLength:{default:3},searchTypeName:{default:"searchType"},options:{default:()=>[]},isLoading:{type:Boolean,default:!1},isSearchLoading:{type:Boolean,default:!1}},emits:["search","select","searchTypeChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={placeholder:i.placeholder,searchHint:i.searchHint,searchTypes:i.searchTypes,defaultSearchType:i.defaultSearchType,minSearchLength:i.minSearchLength},{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:S,onSelect:m,clearSearch:C,toggleSettings:b,hideSettings:g}=Sy(s),M=o.ref();o.computed(()=>i.options.length>0?i.options:l.value),o.computed(()=>i.isSearchLoading||u.value),o.computed(()=>i.isLoading||f.value);const v=A=>{const w=A||"";S(w),r("search",w,c.value)},R=A=>{m(A),r("select",A)},y=o.computed(()=>i.searchTypeName);o.watch(c,A=>{r("searchTypeChange",A),g()});const x=A=>{const w=A.target;k.value?.contains(w)||g()},k=o.ref();return o.onMounted(()=>{document.addEventListener("click",x)}),o.onUnmounted(()=>{document.removeEventListener("click",x)}),e({clearSearch:C,setOptions:A=>{l.value=A},setLoading:A=>{u.value=A},setGlobalLoading:A=>{f.value=A},focus:()=>{M.value?.$el?.querySelector("input")?.focus()}}),(A,w)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:k,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(o.openBlock(),o.createBlock(oi,{ref_key:"selectRef",ref:M,key:o.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:o.unref(a),"onUpdate:modelValue":[w[0]||(w[0]=D=>o.isRef(a)?a.value=D:null),R],reduce:D=>D,options:A.options,placeholder:A.placeholder,onSearch:v,onBlur:o.unref(C),onFocus:o.unref(g),isLoading:A.isSearchLoading,hint:o.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),o.createElementVNode("button",{class:"btn btn-light px-2",onClick:w[1]||(w[1]=(...D)=>o.unref(b)&&o.unref(b)(...D)),disabled:A.isLoading},[A.isLoading?(o.openBlock(),o.createBlock(Er,{key:0,isSmall:!0})):(o.openBlock(),o.createElementBlock("i",Ry))],8,xy),o.unref(d)?(o.openBlock(),o.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:w[3]||(w[3]=o.withModifiers(()=>{},["stop"]))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),D=>(o.openBlock(),o.createElementBlock("li",{key:D.value,class:"setting-item"},[o.createVNode(Tc,{name:y.value,label:D.label,modelValue:o.unref(c),"onUpdate:modelValue":w[2]||(w[2]=T=>o.isRef(c)?c.value=T:null),type:"radio",group:y.value,trueValue:D.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function Ty(n={}){const{loadRegions:e,loadDistricts:t,loadLocalities:i,loadStreets:r,regionKey:s="region_id",districtKey:a="district_id",localityKey:l="locality_id",streetKey:u="street_id",houseKey:c="house",buildingKey:d="building",apartmentKey:f="apartment",regionLabel:p="Регион",districtLabel:h="Район",localityLabel:S="Населенный пункт",streetLabel:m="Улица",houseLabel:C="Дом",buildingLabel:b="Корпус",apartmentLabel:g="Квартира",columnWidth:M="12",prefix:v="",multiLocalities:R=!1,multiStreets:y=!1,showHouseFields:x=!0}=n,k=o.ref(!1),A=o.ref({}),w=o.ref(!1),D=o.ref(!1),T=o.ref(!1),L=o.ref(!1),N=o.ref(!1),j=o.ref([]),G=o.ref([]),I=o.ref([]),V=o.ref([]),J=o.computed(()=>`${v}${s}`),B=o.computed(()=>`${v}${a}`),P=o.computed(()=>`${v}${l}`),Q=o.computed(()=>`${v}${u}`),z=o.computed(()=>`${v}${c}`),$=o.computed(()=>`${v}${d}`),ee=o.computed(()=>`${v}${f}`),K=o.computed(()=>({region:p,district:h,locality:S,street:m,house:C,building:b,apartment:g})),ae=async ge=>{if(e){D.value=!0;try{j.value=await e(ge)}finally{D.value=!1}}},W=async ge=>{if(t){T.value=!0;try{G.value=await t(ge)}finally{T.value=!1}}},H=async ge=>{if(i){L.value=!0;try{I.value=await i(ge)}finally{L.value=!1}}},ne=async ge=>{if(r){N.value=!0;try{V.value=await r(ge)}finally{N.value=!1}}},ie=(ge,We=!1)=>{if(k.value)return;if(We){const Z={...A.value,[J.value]:ge};A.value=Z;return}const Me={...A.value,[J.value]:ge,[B.value]:null,[P.value]:null,[Q.value]:null,[z.value]:null,[$.value]:null,[ee.value]:null};A.value=Me,G.value=[],I.value=[],V.value=[]},te=(ge,We=!1)=>{if(k.value)return;if(We){const Z={...A.value,[B.value]:ge};A.value=Z;return}const Me={...A.value,[B.value]:ge,[P.value]:null,[Q.value]:null,[z.value]:null,[$.value]:null,[ee.value]:null};A.value=Me},fe=(ge,We=!1)=>{if(k.value)return;if(We){const Z={...A.value,[P.value]:ge};A.value=Z;return}const Me={...A.value,[P.value]:ge,[Q.value]:null,[z.value]:null,[$.value]:null,[ee.value]:null};A.value=Me,V.value=[]},le=async ge=>{k.value||(ie(ge),ge&&(await W(ge),await H(ge)))},ve=async ge=>{if(!k.value){if(te(ge),!ge){const We=A.value[J.value];We&&await le(We);return}await H(ge)}},ye=async ge=>{k.value||(fe(ge),ge&&await ne(ge))},ke=(ge,We=!1)=>{if(k.value)return;if(We){const Z={...A.value,[Q.value]:ge};A.value=Z;return}const Me={...A.value,[Q.value]:ge,[z.value]:null,[$.value]:null,[ee.value]:null};A.value=Me},Pe=ge=>{const We=ge.target,Me={...A.value,[z.value]:We.value};A.value=Me},Ne=ge=>{const We=ge.target,Me={...A.value,[$.value]:We.value};A.value=Me},Le=ge=>{const We=ge.target,Me={...A.value,[ee.value]:We.value};A.value=Me},U=async(ge,We)=>{Object.assign(A.value,ge)},q=async(ge,We)=>{k.value=!0;const Me=ge[J.value],Z=ge[B.value],re=ge[P.value];ge[Q.value];try{e&&Me&&await ae(We),t&&Me&&await W(Me),i&&Z?await H(Z):i&&Me&&await H(Me),r&&re&&await ne(re),Object.assign(A.value,ge)}catch(He){console.error("❌ Error during auto-fill (skip reset mode):",He)}finally{o.nextTick(()=>{k.value=!1})}},X=o.computed(()=>{const ge=A.value[J.value];return ge&&j.value.find(Me=>String(Me.id)===String(ge))?.label||""}),de=o.computed(()=>{const ge=A.value[B.value];return ge&&G.value.find(We=>String(We.id)===String(ge))?.label||""}),ue=o.computed(()=>{const ge=A.value[P.value];return ge&&I.value.find(We=>String(We.id)===String(ge))?.label||""}),Ee=o.computed(()=>{const ge=A.value[Q.value];return ge&&V.value.find(Me=>String(Me.id)===String(ge))?.label||""}),Be=o.computed(()=>{const ge=A.value[z.value];return ge?`${C} ${ge}`:""}),xe=o.computed(()=>{const ge=A.value[$.value];return ge?`${b} ${ge}`:""}),Re=o.computed(()=>{const ge=A.value[ee.value];return ge?`${g} ${ge}`:""}),Ie=o.computed(()=>[X.value,de.value,ue.value,Ee.value,Be.value,xe.value,Re.value].filter(Boolean).join(", ")),ot=o.computed(()=>{const ge=A.value[P.value];return Array.isArray(ge)?ge.length>1:!1}),Qe=o.computed(()=>y?!1:x);return{modelValue:A,isLoading:w,isRegionLoading:D,isDistrictLoading:T,isLocalityLoading:L,isStreetLoading:N,regionOptions:j,districtOptions:G,localityOptions:I,streetOptions:V,finalRegionKey:J,finalDistrictKey:B,finalLocalityKey:P,finalStreetKey:Q,finalHouseKey:z,finalBuildingKey:$,finalApartmentKey:ee,labels:K,selectedRegionLabel:X,selectedDistrictLabel:de,selectedLocalityLabel:ue,selectedStreetLabel:Ee,selectedHouseLabel:Be,selectedBuildingLabel:xe,selectedApartmentLabel:Re,fullAddress:Ie,isMultiLocalitiesSelected:ot,shouldShowHouseFields:Qe,loadRegionOptions:ae,loadDistrictOptions:W,loadLocalityOptions:H,loadStreetOptions:ne,onRegionSelect:le,onDistrictSelect:ve,onLocalitySelect:ye,onStreetSelect:ke,onHouseInput:Pe,onBuildingInput:Ne,onApartmentInput:Le,resetFieldsByRegion:ie,resetFieldsByDistrict:te,resetFieldsByLocality:fe,autoFillForm:U,autoFillFormSkipReset:q}}const Dy={class:"address-form"},Oy={class:"row"},Ly={class:"form-label"},By={class:"form-label"},Fy={class:"form-label"},_y={class:"form-label"},Py={class:"form-label"},Ny=["value","disabled"],Iy={class:"form-label"},Hy=["value","disabled"],Vy={class:"form-label"},zy=["value","disabled"],jy={key:0,class:"mt-3"},Wy={class:"alert alert-info"},Uy=_e(o.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},regionKey:{default:"region_id"},districtKey:{default:"district_id"},localityKey:{default:"locality_id"},streetKey:{default:"street_id"},houseKey:{default:"house"},buildingKey:{default:"building"},apartmentKey:{default:"apartment"},regionLabel:{default:"Регион"},districtLabel:{default:"Район"},localityLabel:{default:"Населенный пункт"},streetLabel:{default:"Улица"},houseLabel:{default:"Дом"},buildingLabel:{default:"Корпус"},apartmentLabel:{default:"Квартира"},columnWidth:{default:"12"},prefix:{default:""},multiLocalities:{type:Boolean,default:!1},multiStreets:{type:Boolean,default:!1},showHouseFields:{type:Boolean,default:!0},showFullAddress:{type:Boolean,default:!1},disabledFields:{default:()=>({})},allowClear:{default:()=>({})},countryId:{default:void 0},setFilterParamsStringsHandler:{type:Function,default:void 0},filterName:{default:"address"},isParentComponentReady:{type:Boolean,default:!0}},emits:["update:modelValue","change","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,regionLabel:i.regionLabel,districtLabel:i.districtLabel,localityLabel:i.localityLabel,streetLabel:i.streetLabel,houseLabel:i.houseLabel,buildingLabel:i.buildingLabel,apartmentLabel:i.apartmentLabel,columnWidth:i.columnWidth,prefix:i.prefix,multiLocalities:i.multiLocalities,multiStreets:i.multiStreets,showHouseFields:i.showHouseFields},{modelValue:a,isRegionLoading:l,isDistrictLoading:u,isLocalityLoading:c,isStreetLoading:d,regionOptions:f,districtOptions:p,localityOptions:h,streetOptions:S,finalRegionKey:m,finalDistrictKey:C,finalLocalityKey:b,finalStreetKey:g,finalHouseKey:M,finalBuildingKey:v,finalApartmentKey:R,labels:y,selectedRegionLabel:x,selectedDistrictLabel:k,selectedLocalityLabel:A,selectedStreetLabel:w,selectedHouseLabel:D,selectedBuildingLabel:T,selectedApartmentLabel:L,fullAddress:N,isMultiLocalitiesSelected:j,shouldShowHouseFields:G,loadRegionOptions:I,onRegionSelect:V,onDistrictSelect:J,onLocalitySelect:B,onStreetSelect:P,onHouseInput:Q,onBuildingInput:z,onApartmentInput:$,autoFillForm:ee,autoFillFormSkipReset:K}=Ty(s);let ae=!1,W=!1,H=!1;const ne=(U,q)=>{if(U===q)return!0;if(!U||!q||typeof U!="object"||typeof q!="object")return!1;const X=Object.keys(U),de=Object.keys(q);if(X.length!==de.length)return!1;for(const ue of X)if(U[ue]!==q[ue])return!1;return!0};o.watch(()=>i.modelValue,async U=>{if(ae||W||H||ne(a.value,U))return;if(U&&(U[m.value]||U[C.value]||U[b.value]||U[g.value])){if(!W){W=!0;try{await K(U,i.countryId)}catch(X){console.error("❌ Error during auto-fill:",X)}finally{W=!1}}}else a.value={...U}},{immediate:!0,deep:!0}),o.watch(a,U=>{H||W||ne(i.modelValue,U)||(ae=!0,H=!0,r("update:modelValue",{...U}),r("change",{...U}),o.nextTick(()=>{ae=!1,H=!1}))},{deep:!0});let ie=!1;o.watch(()=>i.countryId,async(U,q)=>{if(!ie&&!W&&U!=null&&i.loadRegions){if(U!==q){const X={...a.value,[m.value]:null,[C.value]:null,[b.value]:null,[g.value]:null,[M.value]:null,[v.value]:null,[R.value]:null};a.value=X}try{ie=!0,await I(U)}catch(X){console.error("❌ AddressForm: Error loading regions",X)}finally{ie=!1}}},{immediate:!0});const te=async U=>{await V(U),r("regionChange",U)},fe=async U=>{await J(U),r("districtChange",U)},le=async U=>{await B(U),r("localityChange",U)},ve=U=>{P(U),r("streetChange",U)},ye=U=>{Q(U)},ke=U=>{z(U)},Pe=U=>{$(U)},Ne=o.computed(()=>{if(!i.multiLocalities)return!1;const U=a.value[g.value];return!Array.isArray(U)||U?.length<2});function Le(){return[x.value,k.value,A.value,w.value,D.value,T.value,L.value].filter(Boolean).join(", ")}return o.watch(()=>D.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>T.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>L.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>w.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>A.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>k.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>x.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),e({loadRegionOptions:I,resetForm:()=>{a.value={},f.value=[],p.value=[],h.value=[],S.value=[]},getFullAddress:()=>N.value,getValue:()=>Le(),autoFillForm:async U=>{W=!0;try{await ee(U)}finally{W=!1}},autoFillFormSkipReset:async U=>{W=!0;try{await K(U,i.countryId)}finally{W=!1}}}),(U,q)=>(o.openBlock(),o.createElementBlock("div",Dy,[o.createElementVNode("div",Oy,[o.createElementVNode("div",{class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Ly,o.toDisplayString(o.unref(y).region),1),o.createVNode(oi,{modelValue:U.modelValue[o.unref(m)],options:o.unref(f),disabled:U.disabledFields?.region||o.unref(l),"onUpdate:modelValue":te,allowClear:U.allowClear?.region,isLoading:o.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",By,o.toDisplayString(o.unref(y).district),1),o.createVNode(oi,{modelValue:U.modelValue[o.unref(C)],disabled:U.disabledFields?.district||o.unref(u),options:o.unref(p),"onUpdate:modelValue":fe,allowClear:U.allowClear?.district,isLoading:o.unref(u)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Fy,o.toDisplayString(o.unref(y).locality),1),o.createVNode(oi,{modelValue:U.modelValue[o.unref(b)],disabled:U.disabledFields?.locality||o.unref(c),"onUpdate:modelValue":le,options:o.unref(h),name:o.unref(b),showAddButton:Ne.value,isLoading:o.unref(c),multiple:U.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),o.unref(j)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",_y,o.toDisplayString(o.unref(y).street),1),o.createVNode(oi,{modelValue:U.modelValue[o.unref(g)],disabled:U.disabledFields?.street||o.unref(d),options:o.unref(S),"onUpdate:modelValue":ve,allowClear:U.allowClear?.street,isLoading:o.unref(d),multiple:U.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),o.unref(G)?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Py,o.toDisplayString(o.unref(y).house),1),o.createElementVNode("input",{type:"text",class:"form-control",value:U.modelValue[o.unref(M)]||"",disabled:U.disabledFields?.house,onInput:ye},null,40,Ny)],2)):o.createCommentVNode("",!0),o.unref(G)?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Iy,o.toDisplayString(o.unref(y).building),1),o.createElementVNode("input",{type:"text",class:"form-control",value:U.modelValue[o.unref(v)]||"",disabled:U.disabledFields?.building,onInput:ke},null,40,Hy)],2)):o.createCommentVNode("",!0),o.unref(G)?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Vy,o.toDisplayString(o.unref(y).apartment),1),o.createElementVNode("input",{type:"text",class:"form-control",value:U.modelValue[o.unref(R)]||"",disabled:U.disabledFields?.apartment,onInput:Pe},null,40,zy)],2)):o.createCommentVNode("",!0)],64))]),U.showFullAddress&&o.unref(N)?(o.openBlock(),o.createElementBlock("div",jy,[o.createElementVNode("div",Wy,[q[0]||(q[0]=o.createElementVNode("strong",null,"Полный адрес:",-1)),o.createTextVNode(" "+o.toDisplayString(o.unref(N)),1)])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-df67cfbd"]]),Gy={class:"age-from-to-form"},Yy={class:"form-group"},Qy={key:0,class:"form-label mb-2"},Ky={class:"row align-items-center mb-2"},Jy={class:"col-auto"},qy={class:"form-label mb-0"},$y={class:"col"},Zy={class:"col"},Xy={class:"row align-items-center mb-2"},ew={class:"col-auto"},tw={class:"form-label mb-0"},iw={class:"col"},nw={class:"col"},rw=_e(o.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:"От"},placeholderTo:{default:"До"},timeTypeOptions:{default:()=>[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}]},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={age_from:null,age_to:null,time_type_from:null,time_type_to:null},a=o.ref({...s}),l=o.computed(()=>{const h=a.value.age_from;if(!h)return null;const S=a.value.time_type_from,m=i.timeTypeOptions.find(({id:C})=>Number(C)===Number(S))?.label;return m?`${h} ${m}`:null}),u=o.computed(()=>{const h=a.value.age_to;if(!h)return null;const S=a.value.time_type_to,m=i.timeTypeOptions.find(({id:C})=>Number(C)===Number(S))?.label;return m?`${h} ${m}`:null}),c=()=>{a.value={...s}},d=()=>{i.onFilterUpdate&&(i.onFilterUpdate(i.nameFrom,l.value),i.onFilterUpdate(i.nameTo,u.value))},f=h=>{if(!h.age_from&&!h.age_to&&!h.time_type_from&&!h.time_type_to){r("update:modelValue",null),r("change",{...s}),d();return}const m=[];h.age_from&&h.time_type_from&&m.push(`age_from[time_type]=${h.time_type_from}&age_from[value]=${h.age_from}`),h.age_to&&h.time_type_to&&m.push(`age_to[time_type]=${h.time_type_to}&age_to[value]=${h.age_to}`);const C=m.length>0?m.join("&")+"&":"";r("update:modelValue",C||null),r("change",{...h}),d()},p=h=>{if(h)try{const S=new URLSearchParams(h),m=S.get("age_from[value]"),C=S.get("age_from[time_type]"),b=S.get("age_to[value]"),g=S.get("age_to[time_type]");a.value={age_from:m?Number(m):null,age_to:b?Number(b):null,time_type_from:C?Number(C):null,time_type_to:g?Number(g):null}}catch(S){console.warn("Error parsing query string:",S)}};return o.watch(()=>i.modelValue,(h,S)=>{h!==S&&(h===null?c():p(h))},{immediate:!0}),o.watch(()=>a.value,h=>{f(h)},{deep:!0}),o.onMounted(()=>{i.modelValue&&p(i.modelValue)}),e({reset:c,getFormData:()=>({age_from:a.value.age_from?Number(a.value.age_from):null,age_to:a.value.age_to?Number(a.value.age_to):null,time_type_from:a.value.time_type_from?Number(a.value.time_type_from):null,time_type_to:a.value.time_type_to?Number(a.value.time_type_to):null}),getFilterStrings:()=>({from:l.value,to:u.value})}),(h,S)=>(o.openBlock(),o.createElementBlock("div",Gy,[o.createElementVNode("div",Yy,[h.title?(o.openBlock(),o.createElementBlock("label",Qy,o.toDisplayString(h.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Ky,[o.createElementVNode("div",Jy,[o.createElementVNode("label",qy,o.toDisplayString(h.placeholderFrom),1)]),o.createElementVNode("div",$y,[o.createVNode(er,{modelValue:a.value.age_from,"onUpdate:modelValue":S[0]||(S[0]=m=>a.value.age_from=m),name:h.nameFrom,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderFrom.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",Zy,[o.createVNode(oi,{modelValue:a.value.time_type_from,"onUpdate:modelValue":S[1]||(S[1]=m=>a.value.time_type_from=m),name:`${h.nameFrom}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])]),o.createElementVNode("div",Xy,[o.createElementVNode("div",ew,[o.createElementVNode("label",tw,o.toDisplayString(h.placeholderTo),1)]),o.createElementVNode("div",iw,[o.createVNode(er,{modelValue:a.value.age_to,"onUpdate:modelValue":S[2]||(S[2]=m=>a.value.age_to=m),name:h.nameTo,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderTo.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",nw,[o.createVNode(oi,{modelValue:a.value.time_type_to,"onUpdate:modelValue":S[3]||(S[3]=m=>a.value.time_type_to=m),name:`${h.nameTo}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])])])]))}}),[["__scopeId","data-v-4b5f9814"]]),sw={key:0,class:"r3ui-modal-wrapper"},aw={class:"modal-header pb-4 border-bottom-0"},ow={key:0,class:"modal-title"},lw={key:0,class:"modal-body pt-0"},uw={key:1,class:"modal-footer row justify-content-start pt-3"},_c=_e(o.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!1},centered:{type:Boolean,default:!0},size:{type:String,default:""},style:{type:String,default:""},modalVisibility:{type:Boolean,default:!1}},emits:["update:modelValue","emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},a=l=>{l.key==="Escape"&&s()};return o.watch(()=>t.modelValue,l=>{l?(document.body.style.overflow="hidden",window.addEventListener("keydown",a)):(document.body.style.overflow="",window.removeEventListener("keydown",a))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",a)}),(l,u)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(o.openBlock(),o.createElementBlock("div",sw,[o.createElementVNode("div",{class:"overlay",onClick:s}),o.createElementVNode("div",{class:o.normalizeClass(["modal-dialog",{"modal-dialog-scrollable":n.scrollable,"modal-dialog-centered":n.centered,"modal-sm":n.size==="sm","modal-lg":n.size==="lg","modal-xl":n.size==="xl"}])},[o.createElementVNode("div",{class:"modal-content p-3",style:o.normalizeStyle(n.style)},[o.createElementVNode("div",aw,[n.title?(o.openBlock(),o.createElementBlock("h4",ow,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),o.unref(r)["modal-body"]||o.unref(r).body?(o.openBlock(),o.createElementBlock("div",lw,[o.renderSlot(l.$slots,"modal-body",{},void 0,!0),o.renderSlot(l.$slots,"body",{},void 0,!0)])):o.createCommentVNode("",!0),o.unref(r)["modal-footer"]||o.unref(r).footer?(o.openBlock(),o.createElementBlock("div",uw,[o.renderSlot(l.$slots,"modal-footer",{},void 0,!0),o.renderSlot(l.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],4)],2)])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f04e4482"]]),cw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItFWAUVgUOoRvCkqATxgr1V0wUGufeKjUaRbQKiV+5Ss7fsFUp2NWkjDn+FbK7+JWIWuYhIThTsCZwEAnzF0r3hn5ZOFFcJFRfNVlo/OECqREe8NoaediLq5WiHTuVwi7ErlDLIjDkkLEkMPVYcqBMnZjh5+GTH9whVnklajoe+qVcuLIqXhz9Avlp3kICPwNGYEHgoFrWII3TwoqwRqprlOzFT8kldR8rRYYfkamuACP4LfBCtSyFSa9lVVgjJPSCxe1l1KPpM6/7rfRwweXyO8I5+AoM4KfANO2539hIY+zc74irX3hcqkXm0iYJwnZhVNtH8Bk/BKbeSiY5ZPzBmBFC/ZoVgUqnvGG/kQLKR0Kw3dcvqtcCB5GICAW1jdRrb7xGrFr5rFSN3oYgHJdOb1vvl8n2UuAgTMQ9XZ3L/mF5oFyd+rSgt+KjyF4JHISJuDnZ2LdldVZ5bzHJp4REbmvbIIyFp19kLwSmMbcOBnEnXijUvPZc4M0+Ie7/aZNisfVeiuyFwCSubo5L4m57O1CJvojH5lqEu9BUiIurRVFOl4/3K1UOYiA8wE2BKYihm+fSmEtmGX0dEvmIdK3yL/SDy7glcBCJCFUn5C2/tiywvI+NuekRxWwMDFwCl3FrDP4MGqeK5rnrXwo83qunQhZRI161bka83OjBtCoU1DZQEIOLa46sKJe4OR473YODSPTeTiaOE2q3rQtUgJMWSYh/IYySq+ACATjLI9oKjbtPLpbWw2d2NckDmj5H//qGxGL92Weh9Y6bpSgYQVbE85Td0ng3TLWTPTiERLSqk7tmixV+rQpRFsbKKmVi7XZl8rE0WRhnq1799G+KW++ajR2hIsnvIaRNOhlbKVyENjiIkwLrHCv14UX3/z3rcXhMuEbOnrc4XnaKjAtTrp0mVD37cKB6tI9evgRsF0bHtsNBnHKyymBwrF5dFngBHvOTX8mF18+PL+mpuMR7m5WSy26ILaEvCHxCBsY7PTd2qgeTaQ4lK344VncvkYtWvBGfa2wnS3LpRUL9hDHCvulTEE2myW6tU/LNkugoU/OPy8Vyv0y2073YCYEpFFmnbXjvlcBPvZwWUa+7+o74E9o2mnsvnC9W/uJHUv2pfve2hXLx6j/FZ2nbaGxWh5fH4A+OjsVOmOiF2grlJXk957353vgD2jp57xRY6UpcgpIMKp8WH6MvRLKtuQXDSua3l8Af+uG0rPFwCLsC01JgmbZhdqnoaVbGPUvkFC+5pwkEt98k7Vs0T9QtgGyqUYp3NWEAfIDGYjiEXYFv1Fao5zzxoLQDHvLulrgubZXGfysW5Oc/lupzz0NnBmdbDAPKX5QL4A/9lAiGwAHsCqxzagrGCl2aRKcxesx2AivXTRVrtPWdu5Xu7lFynlggCAewI3Byf24nC2Z6G9T49QpZJ64aoYraGf9v+baoy8E+eAi+TZnK1Lk8Ett4ymADO6HKkLZC5vm7Nwuehv9ouqOt9z/NXpAib6jQqq0faPanB5NfUfnW/wQm6DUCixvbHBPYD/M8fYoYzT4L5Z2fYZzoqPf+jX7+RLWi+xWj5SBfJwwL2BF4mrZSdLHwCTyGzHGxgwGJdRvlYdq6XYtglQI1KPPuZkXbNA0WsToGJw846eTOWdKnyHDer1V0Y/rwocI++MC8W1P2YyUPk+kxVgXWiUvOzehekIqzdbt+p6AfVomgZ0khU0NzEBZwRODBZ2Z+tkbp/PZSbcDEjzm9lpF5KV8uS2eCWBU4qK2MHA5mFs+tQOL+WV1N0rbNLhF9TVQ4NyelB3sqcJ62MuECIWMFNhN3yiSh2u/tq7lDUqzimbCAVS9aN+DnDEYrMox0iQGUu/27JwOu5Ef1hPODzvRgqwIHtRWn559uc9t9cvHbG+MlX8f0gRKW9kslnmlc22TJi3akBxsjQCwTmtM+64NtSrG2LUP2J/sncKZMkczEJW/5+UcCy2+/yZ85bzpMYuqeCpxxkFk2itsXtrD2CYHJoVLXjXXi0nkgfWGXo9vbR5lg1TvINwYxnntUWo0+gFWBdUf1+ZXa0l2MWR8UxGB9r5TJM7V0PKIjAjd9rvQHwxjnug/c5V8IsruYPFP/BN7REPct86ErXl0r6xbtM2VhxOSZRmABqwLresCnETAr8MFD0PWETFkYMWarqByFBRzpwSYZCMxyTg4yQmA6oNzQFIEFrAqsS8850IwcMIrRugwckBlz3j3RlHywCCxgdR6sE3jPXqXHm728YsoliEb3C51Lf9MnC0yfXpvk8JGUTmMp583q3iQKmx3WNvy7OmtRb8jqYAGaIl1QHFtmaB4MC560nTFY9436/Wr5fHAc4eVVstEiWr6oy04ka7O2UvNPZQw4jrBha9y4ZWYzLGJH4LXayoc7FUsL0pxUdjfB2FnCsIgdgXVmg2K9xq0knJ5DgRmTM0XCsIgdgVPG4U217HrTmcKKVcpkQ9PbsHFNj93VpJQ9tWAMOkLp+vntpSOmxh6gwrqVMRnq1sIGEuwRUcvdajmNKnIcWWogoXHyxezkaF14rbz4w5249NhxZFPZ+IFSxNpnTEJ3MqlWcKqmiXruPWo5CYvY7cH0AXS9+DevxEvBCNRb6TgGY7tqBpmzNARduGVoot5r2TwTTiz460wILc2xYgbTLYKc/Jq95U3KOjE5/ulZ2MQJgcMweHms9GJa99UerpLksokic+vBDz4VNx76EobF8KQWp1J2HtVWWOnFFDqlS7a0bXQK0BuMpcdS7637GMYr8hzJF3PyKEPdYWh0oMlnW7LKwQB0/dymD+K5487HITpRB4wx5LLYz5q/1PkKEbWMgAPY9aK1NEFzngR5rPsPoqVkuuj7Ax2ZK7QWXyEemDBWPAbGoOMa/rpN5zkTN8Hi8qARJ7MqwzCMxZVvxWexnpDnJ2SaV1Wl+CsVcPCiaTcOBKdjDTuz8PNHoL5hY5bnB5NmApNuiM01GXvJNEfgEE6aaILmbDQFCSUbWo7g3IbdaL3lW+Jn4HRCOy1U3+A6QzM5q7YiV0bcSHxfCoN7v25DvMTPY3pZg54F7W40NEdguKnGCdza2UBOQmcEho4FpAND+XicEJeehWHrKj2rq+ACbgkcgWFuTEtgV86K9WmRaeFjzqL4vSbLgfSsInABp8dgLX9DIo/o8mTDiVacsfUf8TO/N0eyHaHJRK6cKS/YmxqOJHGfhEt4cTmlLgBCTByH2m3rsirQh5g0o72sriFlrTcMl0xzEi92F6ZM2usaMHnSjFhZXzDXZJbTiBtB4tm4iq8XRNPR+a8vE5czcKWNK5BDRWOuyZJlBImeG4HLeCUwEYSJyH5fguEWr6+Rh33/UVOHKgKPxCW8FJgIwkRkWtKbcY1Yxdoqj1XSneIDj8Ul3PSizUhmgJBnHUw2UqpPw6fKhev/Es/Jz0M0mCtm3LlbBI235Clv2aYU0//J8OMwEuIegId4LTBB+UUkMlmPkPYHB5qRu3ajUhjZhxMsrEL1BFoVuueh+H3/aYHZIeKUmTEHNnKrrOK1iTZyPxIXWqYcEUQbtV9/RnyB9bG5fIWc//wr8dI0t62RxaJ57jPwCb8FJoIwGZeT0Jz56cXietaE7kJYgoI5jq3rWoUFgZMsheF6Wi2UITJ7hljdncuu3KQbwlKvJZO8FAzAksBEEIkHMzfdG2haNWEs6u+cKdZ6dQcwibqpVhkTrlGmm3jGWsJqmQefe60W1gROEkLiSpngqd5EYo8ajsarp4r182eicXSe5Mj+ZPKGX3oT+bXb4/kf7kRhuvuHNYSRGGvDYAxWBU5ShkRvDnXnzRQZG3wGDo0cLkTHjxX25QzCicJxaMkbilaj+NUd69N0K/iuCLLpnJEDzUrOnr36Q9O6IAxGhc00aL9OBRKnCig+F/oM5BWHwHGc5GWYa+C9qO93/G1Lp776Besm+lQkr9ajMg0WT0Q/BeSt0876tbBxhILfZLLARpJ3OVEJInGvxKCOfw9Cas87oikk4NGOVyoRZKigHA6Hw+FwOBwOh8PhcDgcDofD4XA4jvJfXpsrRXCs/isAAAAASUVORK5CYII=",dw="data:image/png;base64,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",hw="data:image/png;base64,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",fw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAx0SURBVHgB7Z0LcFTVGce/u5uEsIEERCwqCWuxCegIEeuMoNWlGa1aHNEp4LMkU6TYcSo01WmnCrRDW6yNaOvQglDCDMprBoIB2pEiQcqjDyCI5RFeSwKKQiAE2Lx293r/7N7M3ZPdkNx77mM35zdzZnPOLiS5/3znfOec73yHSCAQCAQCgUAgEAgEAoFAIBAIBAKBwAASpQ79lOJVSqFSRkbrhdFXtWhpiBa/5vWkUqqjpYFSgGQWWBXwcaX4ol/zBCJXKWVr9DUlBHc6ELVYKVuUckEpsoVlbfR79yMBd3xKmUfWi5qoLCH+PYYpOL2L9illVvT1mmRnSfVD81w1gwZK5/JudNUPHSLVj7otrX7wzdRUkJcW0H72cG3Qc+o09d5zIDigvoE8nx4KDT5eG8493ygPOHtezqWuUaWUpUopJ4fiVIF91AVhIeiI4a7qe0el1ZRMSKthRdQLxF+yOpj/0bbgyKN1oYJLl2nANf6JXyklFBHcUThNYC9Fuj9fog9kpFOgaHTa5rH3uGte+VFmDVnAsoq2wQtWt4zZdyhUeA2xy5UygxzkkDlJYFjsdErgxOTdKB1+6fmM9VaJmohflDUXflDZWlT3hZyf4CMQ+G1yCE4Q2EsRDzWu0+IUYVk27wwOeOWN5nF7D4bGMG+hqy4nh2C3wC8rZTbFsVqnCssCoUt+GSiGReNn/nBB1syR91zeKN1Al8kB2Ckwpj3T2UaMsSVPpq/66288OylZkaRWCkm7peEX9pPN2CEwrBVdso99o+AWV/W6hb2X8vKGbccV3i9965Ktf6hWC+ylyCqUV9sIqx3/YPr6lfM8mynVkORL1K+x0q4u20qBvRRH3L59qH7tu1llytSnnlIVG0W2SmAvxRH3+gF06l8rsspSpkvuDIgckj+Shl+y9A/ZCoEx5u4lRtw7h7t3LP9T5uoeIa7KVecrVGmlyFYIDHFj5rgQd09Fn6XUE7G4u3aRuWB1SoirRZb6UkP2Y/JX1IcswEyB1UWMdjDmolumng5Ers/5nvwZZZDJmCWwlxhx4S2vKMua36PG3M5wKZsWvfreRSZj1hh8gjROFea5G9/LmpPSUyG9hF07zVzxMsOCMe56tQ1YxBDiJsAt32XmeMzbgr0Usd527rzNvXPP2j7lJEiMFP5cyr+0nkyAtwXP0lYw7r75amYlCTpHdt0kH+x/B5kAT4F9FIk6bOeZ76dXiq65i6CrNsGr5tlFxzhWA6+T6r7amT2HBF0nTMoW48XdxBFeFlxMjGO1/C3PX0jQPdzSHbytmJfAk7UVOFaia9aBLGeQO4frWMxDYCxF+rQNwrEyAGcr5iHwy9oK4pKE9RqAsxUbFVg9K9TOc+MyUi8qw2oUKyZOGBV4vLaCee9vf565j3oIOAGRN7axVCq4uKDg4cYXUSceKFYs+z03EgeMCvy4tjJymLuaeggQ8ztPBUrrPo8EwNeckAtnzmsdTbxocnuJA0YERvccY8FTf5CevKGu3eTxqU2Tz9bLg7Vt/fsSt52y4l81F1PkGE8xGSCN9OPTVtA9P/9ErzrqAYx64nLx4RPhmEAG7HXPmJLBZXiaNrNp9NI1bcXRKl79pPNgmxEL9mkrt+a5HX0CgRf3P3tl4t4DoZiumPded+0XYfaA23jSiRGBH9BWHrk3bS+lOI9OvfLYtv8Fi7RtZoT9jhjmPsU0PUA60Suwmh+jnR9OTDtCKQzE/fvW4Dhtm1kx3VMm9GJ7QzWZTLfRK3CMuNhYSOVQHCvFBbfmSQEcbmeavaQDLgL3z6GUXbmyWlyVoXmuw0yTrpwgegX2aitDc90p6T2/MCswhhUX8WXzX/fMN3s5dtDADhZsqcBDtJU7C1JPYIi7aEVbzC4ZxF08x1P23Pj0U2QySCLDNOWQDow4We1c15+aKIVATg5WXDCjJH2pFeICZAhimuzrogtvS53dI4g75bWmUrb9hUnp5XNLPZYtxY7q+Ewt9aJjvhnyUFEKgHQMELelTY7ZNJj4aPqqhRZnHBhys5t9pvYJnApTJIj75EuBDuI+cn9apR0H0zFVYposFdgyTNuS06CK23hZjlkihLgb38syJV7ZKhwv8LxFbSO1W3LYouMpciqLCxwvcEOj3Ftbxxbdg5MDLxIHUl1coFfgmFR9ZnSbKnN+1nuXshQaMzWBRWPLjgyAnzmeuPd9273ZCeIerZXZZ6orPSIXgZG1lUwCzsaOlX3LWJGxZadXZDUagxUXh9O3vd9nFTmAk6dD7DO1T+DqA8FrZWM1BERe/pZnPtaAte16RYa4bDQGcnQ5KfPAno7P1E860CtwTOTCkZOyqQIDrP1igT+eyNgQ6Or/gz8IVlxEYyABGzkI5LBmmi6SDrhYcJwIBFNIJDI2BLoiMsRlozGcmsoJCcqZJj/pQK/AMUt2Z87J15NF6BUZ75kdasOTY3UhNuu8n3TAReBjteF8spDuimzXnq4RLlwk1mh0rYPrFdivrcAbNXOqFI+uipyM4mKKdPa8zHbRugR2kz6aKRLpN0htyM50HS8ak/YlWcg3c11Nud9wH96wte3uUJjS1fajJ8P5/9kfkt6vbCtINnHBHxa13L59d+huTRPEfYd0YGQla6u28sneYAHZAPZnsQmPzXhtO4SNF42RDIlPcRkI07SVdGJE4Apt5dNDYdvuEUokshY1GiMZTj4eqwuzxlJFOtHbRQNMlaYpJROVllby9PVQzZhR9jzAEcPcjZm96MSm7R3uULhK+e89c62KxjDC0nUtuSs3BB9mmrH23kw6MGLBEDhm4N+8K2SpN82C+x0QeaG1ZHyNtmQQFyxeFWQPsK0jA9f0GE3CUkyRA1JXwcNs+SxnBtkMdonK/tYyOidLCkyZlLEvmQ6k59zV+DtmjdzQLS5GBUaUwQnSRBv88dVeZaUOvynFqeBOpjcWtmi3QmG5t5ABCza6H4xvHLOG+86y1i6vCwti+WB9axHTBEdWt7iAx4Z/jDeNvdqyxc22jsXJCIYVNXJFg665rxYeAlcR48YLK+4+uEWNaaoinatXWniF7PxaWxFW3D1gvXGuyOOyfckzlSFuVfGpldybpJraLdllJLgmN4xufJ1Ze/ZTxLkyDM+guw5WjFQEJOgUPKM4GwslxAmeAlcRMxYvWdM60epdpmQCXfPyDW2sv1JOHC+aNiMhOFI5tM+L82+Rqg//I1skJo3DqPGXJ8cZe9E1+4kTRtai44E5G6IBfWpDfQMNOng83DTh4fQTJGhn0oxAkWLB7JozhrkK4ogZge+ziXHvKza1jUN3RIKr4Fms2xRkp0V+Ym6q4YFZJxueIM0KTGsbXQ0yF+NxwkNueFZjyQTMEthPjFeNBXTe54qSDfzuT5cGfsIG3FPkWfnJBHiPwVp2KaW/Uu5RGwJNlL19dzjnx09lWHaQ2kk8VBx49lht+HamGeLOJZOw4nLKmAUQ0BOv2okXk02R6ZApXbOKFacLMR77tQ3qkZOe0F3jd0wgrp8iz8ZUbL0geuAA6dTyMvNTEtkFHCqMuexRGYqIO5ZMGne12H7Fe3YfqX7Nu8kRDNcdEp09JgvFBVYKDLwUR2SE+uB+QztyYZgBFjEwz2XzfZDF4gIzveh4qBEg8Ky9aiOC1v9/JHz7hx8Hr791iKsOAe2UhGC8vW/SlSmf/DdUpA3Ej1JFEXHPkIVYLTBA+CdERu/h075x5qycW/HPYOHJ0+HAuLHJEQWpgl2haa+1/PTLejk3ztuIzHiadIa+GsHqLpplOkUutOyQIggZbHF7mtPH5jcXN+f/eVnrY3HCbQB6LMxz3yabsFtg4KU447IK5sy4aMtpQl9DWIDFnA5TRKtxgsAqs4m5nlYLIkSeGZexeW5ppq2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",pw={class:"row mb-3 flex-column mx-0"},mw={class:"col-auto mb-3"},gw={class:"image-container",style:{width:"90px",height:"90px"}},bw=["src","alt"],vw=["src"],yw=["src"],ww=["src"],Cw=["src"],Aw={class:"col"},Ew={class:"confirmation-content"},kw={key:0,class:"mb-3"},Sw={key:1,class:"text-muted"},xw={key:0,class:"row"},Rw={class:"col-auto"},Mw=["disabled"],Tw={class:"col"},Dw=["disabled"],Ow={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Lw=_e(o.defineComponent({__name:"ConfirmationModal",props:{title:{default:""},message:{default:""},description:{default:""},modalVisibility:{type:Boolean,default:!1},size:{default:""},confirmText:{default:"Да"},cancelText:{default:"Нет"},imageSrc:{default:""},imageAlt:{default:""},loading:{type:Boolean,default:!1},mode:{default:"confirmation"},showButtons:{type:Boolean,default:!0}},emits:["update:modalVisibility","confirm","cancel"],setup(n,{emit:e}){const t=n,i=e,r=d=>{i("update:modalVisibility",d)},s=()=>{switch(t.mode){case"success":return"btn btn-success";case"warning":return"btn btn-warning";case"error":return"btn btn-danger";default:return"btn btn-primary"}},a=()=>{switch(t.mode){case"success":return"Отлично";case"warning":return"Понятно";case"error":return"Понятно";default:return t.confirmText}},l=()=>{t.loading||i("confirm")},u=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},c=d=>{console.warn("Failed to load image:",d.target.src)};return(d,f)=>(o.openBlock(),o.createBlock(_c,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":o.withCtx(()=>[o.createElementVNode("div",pw,[o.createElementVNode("div",mw,[o.createElementVNode("div",gw,[d.imageSrc?(o.openBlock(),o.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,bw)):d.mode==="success"?(o.openBlock(),o.createElementBlock("img",{key:1,class:"w-100",src:o.unref(fw),alt:"Успех",onError:c},null,40,vw)):d.mode==="warning"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"w-100",src:o.unref(hw),alt:"Предупреждение",onError:c},null,40,yw)):d.mode==="error"?(o.openBlock(),o.createElementBlock("img",{key:3,class:"w-100",src:o.unref(dw),alt:"Ошибка",onError:c},null,40,ww)):(o.openBlock(),o.createElementBlock("img",{key:4,class:"w-100",src:o.unref(cw),alt:"Подтверждение",onError:c},null,40,Cw))])]),o.createElementVNode("div",Aw,[o.createElementVNode("div",Ew,[d.message?(o.openBlock(),o.createElementBlock("h5",kw,o.toDisplayString(d.message),1)):o.createCommentVNode("",!0),d.description?(o.openBlock(),o.createElementBlock("p",Sw,o.toDisplayString(d.description),1)):o.createCommentVNode("",!0)])])]),o.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":o.withCtx(()=>[o.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(o.openBlock(),o.createElementBlock("div",xw,[o.createElementVNode("div",Rw,[d.mode==="confirmation"?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},o.toDisplayString(d.cancelText),9,Mw)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Tw,[o.createElementVNode("button",{class:o.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(o.openBlock(),o.createElementBlock("span",Ow)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(a()),1)],10,Dw)])])):o.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),Bw={key:0,class:"filter-modal-wrapper"},Fw={class:"filter-modal-dialog"},_w={class:"filter-modal-content"},Pw={class:"filter-modal-header"},Nw={key:0,class:"filter-modal-title"},Iw={class:"filter-modal-body"},Hw={class:"filter-modal-footer"},Vw=_e(o.defineComponent({__name:"TableFilterModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=()=>{i("emitModalVisibility",!1)},s=a=>{a.key==="Escape"&&r()};return o.watch(()=>t.modalVisibility,a=>{a?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(a,l)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[a.modalVisibility?(o.openBlock(),o.createElementBlock("div",Bw,[o.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),o.createElementVNode("div",Fw,[o.createElementVNode("div",_w,[o.createElementVNode("div",Pw,[a.title?(o.openBlock(),o.createElementBlock("h4",Nw,o.toDisplayString(a.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),o.createElementVNode("div",Iw,[o.renderSlot(a.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",Hw,[o.renderSlot(a.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),zw={key:0,class:"px-0"},jw={class:"modal-dialog modal-dialog-centered modal-xl"},Ww={class:"modal-content py-2 px-4"},Uw={class:"modal-header mb-3"},Gw={class:"modal-title"},Yw={class:"modal-body row"},Qw={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Pc=_e(o.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(o.openBlock(),o.createElementBlock("div",zw,[o.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),o.createElementVNode("div",jw,[o.createElementVNode("div",Ww,[o.createElementVNode("div",Uw,[o.createElementVNode("h3",Gw,o.toDisplayString(t.title),1),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),o.createElementVNode("div",Yw,[o.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",Qw,[o.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),Kw={class:"row mb-4 mx-0","data-test":"PageTitle"},Jw={class:"col-12"},qw={class:"row align-items-center"},$w={class:"col-auto"},Zw={class:"col d-flex justify-content-end"},Xw=_e(o.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",Kw,[o.createElementVNode("div",Jw,[o.createElementVNode("div",qw,[o.createElementVNode("div",$w,[o.createElementVNode("h2",{class:o.normalizeClass(["mb-0",e.titleClass]),style:o.normalizeStyle(e.titleStyle)},o.toDisplayString(e.title),7),e.subtitle?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:o.normalizeStyle(e.subtitleStyle)},o.toDisplayString(e.subtitle),7)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Zw,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),eC={class:"card-body"},tC={class:"card-text"},iC=_e({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",n.bodyClass])},[o.createElementVNode("div",eC,[o.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),o.createElementVNode("p",tC,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),nC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},rC=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("footer",nC,o.toDisplayString(e.copyrightText)+" "+o.toDisplayString(o.unref(we)().year()),1))}}),sC={class:"custom-dropdown"},aC={style:{"border-bottom":"2px solid #000"}},oC={class:"dropdown-list-wrapper"},lC={key:0,class:"custom-dropdown-menu"},uC=["onClick"],ka=_e({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(n){return["actions","profile"].includes(n)}}},setup(n){const e=n,t=o.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},a=o.computed(()=>e.type==="profile");return(l,u)=>(o.openBlock(),o.createElementBlock("div",sC,[a.value?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:i,onBlur:s},[u[0]||(u[0]=o.createElementVNode("div",{class:"circl"},null,-1)),o.createTextVNode(" "+o.toDisplayString(n.title),1)],32)):(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[o.createElementVNode("span",aC,o.toDisplayString(n.title),1),u[1]||(u[1]=o.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),o.createElementVNode("div",oC,[t.value?(o.openBlock(),o.createElementBlock("ul",lC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.links,(c,d)=>(o.openBlock(),o.createElementBlock("li",{key:d},[c.hidden?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onClick:f=>r(c?.action)},o.toDisplayString(c?.title),11,uC))]))),128))])):o.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-efc16eec"]]),cC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,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'/%3e%3c/defs%3e%3c/svg%3e",dC=["src","alt"],Nc=_e(o.defineComponent({__name:"Logo",props:{src:{default:cC},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=o.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=o.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=o.computed(()=>"r3ui-logo-container"),a=o.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3ui-logo-container",s.value])},[o.createElementVNode("img",{src:t.value,alt:l.alt,class:o.normalizeClass(i.value),style:o.normalizeStyle(r.value)},null,14,dC),l.brandText&&l.brandText.trim()&&l.showText?(o.openBlock(),o.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:o.normalizeStyle(a.value)},o.toDisplayString(l.brandText),5)):o.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),hC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},fC={class:"row align-items-center"},pC={class:"col-auto pe-0"},mC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},gC={class:"row"},bC={class:"col-auto d-flex align-items-center"},vC={key:1,class:"text-muted"},yC={class:"col-auto"},wC=_e(o.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,a)=>(o.openBlock(),o.createElementBlock("div",hC,[o.createElementVNode("div",{class:o.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[o.createElementVNode("a",{href:"/",onClick:a[0]||(a[0]=o.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[o.createElementVNode("div",fC,[o.createElementVNode("div",pC,[o.renderSlot(s.$slots,"logo",{},()=>[o.createVNode(Nc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),o.createElementVNode("div",mC,o.toDisplayString(t.brandText),1)])]),o.createElementVNode("div",gC,[o.createElementVNode("div",bC,[t.isAuthenticated?(o.openBlock(),o.createBlock(ka,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):o.createCommentVNode("",!0),t.isAuthenticated?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vC,o.toDisplayString(t.loginText),1))]),o.createElementVNode("div",yC,[o.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),CC={class:"col-12 divider divider__wrapper","data-test":"Divider"},Sa={__name:"Divider",props:{height:{type:[Number,String],default:4},className:{type:String,default:"mb-4"},colorHEX:{type:String,default:"#EFEFEF"}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("div",CC,[o.createElementVNode("div",{class:o.normalizeClass(e.className),style:o.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},AC=n=>{const e=o.inject("sidebarContentVisibility"),t=o.inject("toggleSidebar"),i=o.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=o.computed(()=>n.value),a=()=>{if(i.value={},!e?.value)return;const l=u=>{u.childrens?.length&&u.childrens.forEach(l),u.isActive&&u.uniqueKey&&r(u.uniqueKey,u.level)};n.value.forEach(l)};return o.provide("expandAccordion",r),o.provide("expandedAccordion",i),o.watch(n,()=>{a()},{deep:!0}),o.watch(()=>e?.value,()=>{a()},{deep:!0}),o.onMounted(()=>{a()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},EC={key:0},kC=["href","target","rel"],SC=["innerHTML"],xC={key:1},RC=["id"],MC=["innerHTML"],TC=["id"],DC={class:"accordion-body"},Ic=_e(o.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?a.openInNewWindow!==!1?window.open(a.href,"_blank","noopener,noreferrer"):window.location.href=a.href:t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("SidebarLink",!0);return o.openBlock(),o.createElementBlock("div",null,[n.sidebarLink.childrens?.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",EC,[o.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"_blank":void 0,rel:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=o.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.sidebarLink.level===0?"nested-links":"extended-menu-item",n.sidebarLink.isActive?"fw-bolder":""]]),style:{background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,SC),o.createElementVNode("span",null,o.toDisplayString(n.sidebarLink.label),1)],2)):o.createCommentVNode("",!0)],8,kC)])),n.sidebarLink.childrens?.length?(o.openBlock(),o.createElementBlock("div",xC,[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[o.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:o.unref(r)&&o.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>o.unref(i)&&o.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,MC),o.createTextVNode(" "+o.toDisplayString(n.sidebarLink.label),1)],2)],8,RC),o.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:o.normalizeClass(["accordion-collapse collapse",{show:o.unref(r)&&o.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[o.createElementVNode("div",DC,[o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.sidebarLink.childrens,c=>(o.openBlock(),o.createElementBlock("li",{key:c.uniqueKey},[o.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,TC)],2)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-0a6fd930"]]),OC={key:0},LC={key:0},BC=["title"],FC=["innerHTML"],_C={key:1},PC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},NC={class:"hidden-div"},IC={key:1},HC=["href","target","rel"],VC=["title"],zC=["innerHTML"],jC={key:0,class:"ms-2"},WC={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},UC={key:0,class:"ms-2"},Hc=_e(o.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?a.openInNewWindow!==!1?window.open(a.href,"_blank","noopener,noreferrer"):window.location.href=a.href:t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(o.openBlock(),o.createElementBlock("div",OC,[n.link.childrens?.length?(o.openBlock(),o.createElementBlock("div",LC,[o.createElementVNode("button",{title:n.link.label,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.link.icon?"icon":"text-align-left bg-white"]]),type:"button",onClick:l[0]||(l[0]=c=>o.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,FC)):(o.openBlock(),o.createElementBlock("span",_C,o.toDisplayString(n.link.label),1))],10,BC),o.unref(r)&&o.unref(r)[n.link.level]===n.link.uniqueKey?(o.openBlock(),o.createElementBlock("div",PC,[o.createElementVNode("div",NC,[o.createElementVNode("h5",null,o.toDisplayString(n.link.label),1),l[3]||(l[3]=o.createElementVNode("hr",{size:"1"},null,-1)),o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.link.childrens,c=>(o.openBlock(),o.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[o.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",IC,[o.createElementVNode("a",{href:n.link.href,target:n.link.isExternal&&n.link.openInNewWindow!==!1?"_blank":void 0,rel:n.link.isExternal&&n.link.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=o.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(o.openBlock(),o.createElementBlock("button",{key:0,title:n.link.label,class:"btn btn-light w-100 text-start border-0",type:"button",style:{padding:"15px 20px",background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.link.icon},null,8,zC),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",jC,"↗")):o.createCommentVNode("",!0)],8,VC)):(o.openBlock(),o.createElementBlock("button",WC,[o.createElementVNode("span",null,o.toDisplayString(n.link.label),1),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",UC,"↗")):o.createCommentVNode("",!0)]))],8,HC)]))])):o.createCommentVNode("",!0)}}}),[["__scopeId","data-v-6d9f8db2"]]),GC={key:0},YC={class:"accordion accordion-flush",id:"accordionMenu"},QC={key:1},KC={class:"row"},JC={class:"col-12"},qC={class:"sidebar-footer p-3"},Vc=o.defineComponent({__name:"Sidebar",props:{links:{type:Array,required:!0},isCollapsed:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:a}=AC(o.computed(()=>t.links));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{id:"sidebarContent",class:o.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(o.openBlock(),o.createElementBlock("div",GC,[o.createElementVNode("div",YC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Ic,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",QC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Hc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),o.createElementVNode("div",KC,[o.createElementVNode("div",JC,[o.createVNode(Sa)])]),o.createElementVNode("div",qC,[o.renderSlot(l.$slots,"footer")])],2))}}),$C=n=>{const e=o.ref(!0),t=o.ref(null),i=o.ref(null),r=o.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},a=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():a()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():a()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;d>0&&f>0&&(i.value=d-f-20)},50)};return o.provide("sidebarContentVisibility",e),o.provide("toggleSidebar",l),o.watch(r,()=>{c()},{deep:!0}),o.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},ZC={class:"container-fluid p-0"},XC={class:"py-4",style:{"min-height":"90vh"}},eA=o.defineComponent({__name:"MainComponent",props:{sidebarLinks:{type:Array,required:!0},isAuthenticated:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,{contentWidth:r,clientWidth:s,sidebarWidth:a,sidebarContentVisibility:l}=$C(o.computed(()=>t.isAuthenticated));return(u,c)=>(o.openBlock(),o.createElementBlock("div",ZC,[o.createElementVNode("div",{class:o.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(o.openBlock(),o.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:o.normalizeStyle(`background: #efefef; transition: .2s; width:${o.unref(a)}px;`)},[o.createVNode(Vc,{links:t.sidebarLinks,"is-collapsed":!o.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{id:"content-div",style:o.normalizeStyle(`transition: .2s; width:${o.unref(r)}px;`)},[o.createElementVNode("div",XC,[o.renderSlot(u.$slots,"breadcrumbs"),o.renderSlot(u.$slots,"default")])],4)],2)]))}}),tA={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},iA={class:"col"},nA={"aria-label":"breadcrumb"},rA={class:"breadcrumb row"},sA=["aria-current"],aA=["href","onClick"],oA={key:1,class:"text-nowrap"},lA=_e(o.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(o.openBlock(),o.createElementBlock("div",tA,[o.createElementVNode("div",iA,[o.createElementVNode("nav",nA,[o.createElementVNode("ol",rA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.crumbs,(a,l)=>(o.openBlock(),o.createElementBlock("li",{key:l,class:o.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:a.isActive}]),"aria-current":a.isActive?"page":void 0},[a.isActive?(o.openBlock(),o.createElementBlock("span",oA,o.toDisplayString(a.text),1)):(o.openBlock(),o.createElementBlock("a",{key:0,href:a.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:o.withModifiers(()=>i("navigate",a.href),["prevent"])},o.toDisplayString(a.text),9,aA))],10,sA))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),uA={key:0,class:"card-header"},cA={class:"card-title mb-0"},dA={class:"card-body"},hA={class:"row"},fA={class:"row align-items-center"},pA={class:"col-auto label pe-0"},mA={class:"col-auto"},gA={key:0,class:"mt-3"},bA=_e(o.defineComponent({__name:"CardInfo",props:{title:{default:""},fields:{default:()=>[]},cardClass:{default:""},variant:{default:"default"},size:{default:"md"},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>{const i=["card-info"];return e.variant!=="default"&&i.push(`card-info--${e.variant}`),e.size!=="md"&&i.push(`card-info--${e.size}`),e.bordered&&i.push("card-info--bordered"),e.shadow&&i.push("card-info--shadow"),e.cardClass&&i.push(e.cardClass),i.join(" ")});return(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",t.value])},[i.title?(o.openBlock(),o.createElementBlock("div",uA,[o.createElementVNode("h5",cA,o.toDisplayString(i.title),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",dA,[o.createElementVNode("div",hA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.fields,(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"col-12 mb-2",key:a},[o.createElementVNode("div",fA,[o.createElementVNode("div",pA,o.toDisplayString(s.label)+":",1),o.createElementVNode("div",mA,[o.createElementVNode("span",{class:o.normalizeClass(["value",s.valueClass]),style:o.normalizeStyle(s.valueStyle)},o.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(o.openBlock(),o.createElementBlock("div",gA,[o.renderSlot(i.$slots,"default",{},void 0,!0)])):o.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),vA={class:"page-card"},yA={class:"row hide-to-print card-header mx-0 w-100"},wA={class:"col"},CA={class:"row flex-nowrap align-items-center"},AA={class:"col-auto"},EA={key:0,class:"col-auto"},kA={class:"row",style:{padding:"20px"}},SA={class:"d-flex align-items-start"},xA={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},RA=["onClick"],MA={class:"tab-content",id:"v-pills-tabContent"},TA={key:0,class:"title"},DA={key:1},OA={key:0},LA={key:0},BA=["title"],FA={key:2},_A={class:"row"},PA={class:"col-12"},NA=_e(o.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(0),s=o.ref(!1),a=o.ref(!1),l=o.useSlots(),u=p=>{i("click",p)},c=()=>{a.value=!!l.header&&l.header().length>0},d=()=>{s.value=!!l.footer&&l.footer().length>0},f=p=>{r.value=p,i("active-tab",t.tabs[p])};return o.onMounted(()=>{c(),d()}),(p,h)=>(o.openBlock(),o.createElementBlock("div",vA,[o.createElementVNode("div",yA,[o.createElementVNode("div",wA,[o.createElementVNode("div",CA,[o.createElementVNode("div",AA,[a.value?o.renderSlot(p.$slots,"header",{key:0},void 0,!0):o.createCommentVNode("",!0)])])]),p.actionLinks.length>0?(o.openBlock(),o.createElementBlock("div",EA,[o.createVNode(ka,{title:p.actionsTitle,links:p.actionLinks,onClick:u},null,8,["title","links"])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",kA,[o.createElementVNode("div",SA,[o.createElementVNode("div",xA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:m,class:o.normalizeClass(["nav-link me-5",[m===r.value?"active":""]]),onClick:C=>f(m)},o.toDisplayString(S.navLink),11,RA)),[[o.vShow,S.navLink]])),128))]),o.createElementVNode("div",MA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:o.normalizeClass(["tab-pane fade row",[m===r.value?"show active d-flex":""]])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.contents,(C,b)=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass(`col-${p.col} mb-3`)},[C.subtitle?(o.openBlock(),o.createElementBlock("div",TA,o.toDisplayString(C.subtitle)+": ",1)):o.createCommentVNode("",!0),!C.type||C.type==="text"?(o.openBlock(),o.createElementBlock("div",DA,[typeof C.text=="string"?(o.openBlock(),o.createElementBlock("div",OA,o.toDisplayString(C.text),1)):C.text?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(C.text,(g,M)=>(o.openBlock(),o.createElementBlock("div",{key:M},[typeof g=="string"?(o.openBlock(),o.createElementBlock("div",LA,o.toDisplayString(g),1)):o.createCommentVNode("",!0),typeof g=="object"?(o.openBlock(),o.createElementBlock("div",{key:1,title:g?.description||""},o.toDisplayString(g.name),9,BA)):o.createCommentVNode("",!0)]))),128)):o.createCommentVNode("",!0)])):C.type==="custom"&&C.slotName?(o.openBlock(),o.createElementBlock("div",FA,[o.renderSlot(p.$slots,C.slotName,{content:C},void 0,!0)])):o.createCommentVNode("",!0)],2))),128))],2))),128))])]),s.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(Sa,{class:"mt-3"}),o.createElementVNode("div",_A,[o.createElementVNode("div",PA,[o.renderSlot(p.$slots,"footer",{},void 0,!0)])])],64)):o.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-a9172596"]]),IA={key:0,class:"row w-100 parent"},HA={class:"col-12 wrapper w-100"},VA=["innerHTML"],zc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=o.ref(e.message);o.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(o.openBlock(),o.createElementBlock("div",IA,[o.createElementVNode("div",HA,[o.createElementVNode("div",{class:o.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,VA),o.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):o.createCommentVNode("",!0)}},zA={key:0,class:"row","data-test":"ErrorMessageComponent"},jA={class:"col-12",id:"alert"},WA={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},UA=["innerHTML"],GA=_e(o.defineComponent({__name:"ErrorMessageComponent",props:{message:{default:""},warningIcon:{type:Boolean,default:!1},type:{default:"danger"},asHtml:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>e.message===null||e.message===void 0?!1:Array.isArray(e.message)?e.message.length>0:!!(e.message&&typeof e.message=="string"&&e.message.length>0&&e.message.trim()!=="")),i=o.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(o.openBlock(),o.createElementBlock("div",zA,[o.createElementVNode("div",jA,[o.createElementVNode("div",{class:o.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(o.openBlock(),o.createElementBlock("i",WA)):o.createCommentVNode("",!0),r.asHtml?(o.openBlock(),o.createElementBlock("div",{key:1,innerHTML:i.value},null,8,UA)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(i.value),1)],64))],2)])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),YA={class:"accordion-header",style:{background:"transparent"}},QA=["aria-expanded","aria-controls"],KA={key:0},JA=["id"],qA={class:"accordion-body px-0"},$A=_e(o.defineComponent({__name:"DefaultAccordion",props:{title:{},titleFontSize:{default:16},isCollapsed:{type:Boolean,default:!0},isVisibleBorderBottom:{type:Boolean,default:!0},isCollapsedDefault:{type:Boolean,default:!0},isTitleBold:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["update-visibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=o.ref(Math.random().toString(36).substr(2,9)),a=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return o.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[o.createElementVNode("div",{class:o.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[o.createElementVNode("h2",YA,[o.createElementVNode("button",{onClick:l,class:o.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:o.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},o.toDisplayString(u.title),15,QA)]),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[a("accordion-body")?(o.openBlock(),o.createElementBlock("div",KA,[o.withDirectives(o.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[o.createElementVNode("div",qA,[o.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,JA),[[o.vShow,!u.isCollapsed]])])):o.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),ZA={class:"accordion-header",style:{background:"transparent"}},XA=["onClick"],eE={class:"d-flex align-items-center w-100"},tE={class:"d-flex align-items-center flex-grow-1"},iE=["value","id","onChange"],nE={class:"form-check-label ps-2 text-body flex-grow-1"},rE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},sE={class:"col d-flex flex-wrap px-4"},aE={class:"form-check"},oE=["value","id"],lE=["for"],uE=_e(o.defineComponent({__name:"KindCheckboxesAccordion",props:{checkboxName:{default:"kinds"},kindGroups:{default:()=>[]},defaultSelectedKinds:{default:()=>[]},defaultSelectedKindGroups:{default:()=>[]}},emits:["emitSelectedKinds","emitSelectedKindGroups"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref([]),a=o.ref([]),l=o.ref(null),u=o.ref([]),c=(S,m)=>{const C=S.target;if(C.tagName==="INPUT"||C.closest(".form-check-input"))return!1;if(C.tagName==="SPAN"||C.closest(".form-check-label"))return l.value!==Number(m)?(l.value=Number(m),!0):(l.value=null,!0);if(l.value!==Number(m))return l.value=Number(m),!0;l.value=null},d=S=>{const m=i.kindGroups.find(b=>b.id===S);if(!m)return;if(s.value.includes(String(S))){const b=m.kinds.map(M=>String(M.id)),g=[...a.value];b.forEach(M=>{g.includes(M)||g.push(M)}),a.value=g}else{const b=m.kinds.map(g=>String(g.id));a.value=a.value.filter(g=>!b.includes(String(g)))}},f=()=>{o.nextTick(()=>{p()})},p=()=>{const S=[];i.kindGroups.forEach((b,g)=>{const M=u.value?.[g];if(!M)return;const v=b.kinds.map(y=>String(y.id)),R=a.value.filter(y=>v.includes(String(y)));R.length===0?(M.indeterminate=!1,M.checked=!1):R.length===v.length?(M.indeterminate=!1,M.checked=!0,S.push(String(b.id))):(M.indeterminate=!0,M.checked=!1)});const m=s.value.map(String).sort(),C=S.map(String).sort();JSON.stringify(m)!==JSON.stringify(C)&&(s.value=S)};o.watch(()=>a.value,S=>{r("emitSelectedKinds",S)},{deep:!0}),o.watch(()=>s.value,S=>{r("emitSelectedKindGroups",S)},{deep:!0}),o.onMounted(()=>{i.defaultSelectedKinds.length>0&&(a.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),o.nextTick(()=>{p()})});const h=o.computed(()=>c);return e({toggleAccordion:c}),(S,m)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups,(C,b)=>(o.openBlock(),o.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:C.id},[S.kindGroups[b].kinds.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",ZA,[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(b)}]),type:"button",style:{background:"transparent"},onClick:g=>h.value(g,b)},[o.createElementVNode("div",eE,[o.createElementVNode("div",tE,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${C.id}`,id:`${S.checkboxName}_${b}`,name:"kind_group","onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),onClick:m[1]||(m[1]=o.withModifiers(()=>{},["stop"])),onChange:g=>d(C.id)},null,40,iE),[[o.vModelCheckbox,s.value]]),o.createElementVNode("span",nE,o.toDisplayString(C.name),1)]),o.createElementVNode("i",{class:o.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(b)}])},null,2)])],10,XA)]),o.withDirectives(o.createElementVNode("div",rE,[o.createElementVNode("div",sE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups[b].kinds,(g,M)=>(o.openBlock(),o.createElementBlock("div",{class:"col-6 mb-2",key:M},[o.createElementVNode("div",aE,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${g.id}`,id:`${S.checkboxName}_${g.id}`,name:"kinds","onUpdate:modelValue":m[2]||(m[2]=v=>a.value=v),onChange:f},null,40,oE),[[o.vModelCheckbox,a.value]]),o.createElementVNode("label",{class:"form-check-label",for:`${S.checkboxName}_${g.id}`},[o.createElementVNode("small",null,o.toDisplayString(g.name),1)],8,lE)])]))),128))])],512),[[o.vShow,l.value===Number(b)]])],64)):o.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class ht{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 Xe{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 r=e?t.split(e):[t],s=r.length,a;for(let l=0;l<s&&(i=i[r[l]],a=i,!!i);l++);return a}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var a in e){let l=e[a],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[a]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[a]=this.deepClone(l,c,i)))}return t}}let cE=class bd extends ht{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,r=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=Xe.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Xe.elOffset(e),r,s,a;switch(this.container!==document.body&&(r=Xe.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,a=i.top-1;break;case"bottom":s=i.left,a=i.top+e.offsetHeight;break;case"left":s=i.left,a=i.top-1;break;case"top":s=i.left,a=i.top;break;case"center":s=i.left+e.offsetWidth/2,a=i.top+e.offsetHeight/2;break}return{x:s,y:a,offset:i}}show(e,t){var i,r,s,a,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),a=l.offset,i=l.x,r=l.y):typeof e=="number"?(a={top:0,left:0},i=e,r=t):(l=this.containerEventCoords(e),i=l.x,r=l.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,r,s,a,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",u=>{u.stopPropagation()}),this)}_fitToScreen(e,t,i,r,s){var a=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-r.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,a?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(s){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 bd(this.table,e,this),this.childPopup}};class ze extends ht{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(r=>r.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 cE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var dE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class lr extends ze{static moduleName="accessor";static accessors=dE;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(r=>{var s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1)),a;e.definition[s]&&(a=this.lookupAccessor(e.definition[s]),a&&(t=!0,i[s]={accessor:a,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":lr.accessors[e]?t=lr.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)),r=e.getComponent(),s=Xe.deepClone(e.data||{});return this.table.columnManager.traverse(function(a){var l,u,c,d;a.modules.accessor&&(u=a.modules.accessor[i]||a.modules.accessor.accessor||!1,u&&(l=a.getFieldValue(s),l!="undefined"&&(d=a.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,a.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var hE={method:"GET"};function xa(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(xa(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(xa(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function fE(n){var e=xa(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function jc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+fE(t)),n}function pE(n,e,t){var i;return new Promise((r,s)=>{if(n=this.urlGenerator.call(this.table,n,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 a in i.headers)e.headers||(e.headers={}),typeof e.headers[a]>"u"&&(e.headers[a]=i.headers[a]);e.body=i.body.call(this,n,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);n?(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(n,e).then(l=>{l.ok?l.json().then(u=>{r(u)}).catch(u=>{s(u),console.warn("Ajax Load Error - Invalid JSON returned",u)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),s(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),s(l)})):(console.warn("Ajax Load Error - No URL Set"),r([]))})}function Ra(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ra(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ra(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var mE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Ra(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class Qi extends ze{static moduleName="ajax";static defaultConfig=hE;static defaultURLGenerator=jc;static defaultLoaderPromise=pE;static contentTypeFormatters=mE;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=Qi.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Qi.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Qi.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,r){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),r=Object.assign(Object.assign({},s),r)),r}requestDataCheck(e,t,i,r){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,r,s){var a;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),a=this.generateConfig(i),this.sendRequest(this.url,t,a)):s}setDefaultConfig(e={}){this.config=Object.assign({},Qi.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(r=>(this.table.options.ajaxResponse&&(r=this.table.options.ajaxResponse.call(this.table,e,t,r)),r)):Promise.reject()}}var gE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},bE={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
|
|
31
|
+
`}}function B(){t.calendarContainer.classList.add("hasWeeks");var F=qe("div","flatpickr-weekwrapper");F.appendChild(qe("span","flatpickr-weekday",t.l10n.weekAbbreviation));var E=qe("div","flatpickr-weeks");return F.appendChild(E),{weekWrapper:F,weekNumbers:E}}function P(F,E){E===void 0&&(E=!0);var O=E?F:F-t.currentMonth;O<0&&t._hidePrevMonthArrow===!0||O>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=O,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Me("onYearChange"),L()),T(),Me("onMonthChange"),Ue())}function Q(F,E){if(F===void 0&&(F=!0),E===void 0&&(E=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,E===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var O=Ea(t.config),_=O.hours,Y=O.minutes,se=O.seconds;h(_,Y,se)}t.redraw(),F&&Me("onChange")}function z(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Me("onClose")}function $(){t.config!==void 0&&Me("onDestroy");for(var F=t._handlers.length;F--;)t._handlers[F].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var E=t.calendarContainer.parentNode;if(E.lastChild&&E.removeChild(E.lastChild),E.parentNode){for(;E.firstChild;)E.parentNode.insertBefore(E.firstChild,E);E.parentNode.removeChild(E)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(O){try{delete t[O]}catch{}})}function ee(F){return t.calendarContainer.contains(F)}function K(F){if(t.isOpen&&!t.config.inline){var E=xt(F),O=ee(E),_=E===t.input||E===t.altInput||t.element.contains(E)||F.path&&F.path.indexOf&&(~F.path.indexOf(t.input)||~F.path.indexOf(t.altInput)),Y=!_&&!O&&!ee(F.relatedTarget),se=!t.config.ignoredFocusElements.some(function(oe){return oe.contains(E)});Y&&se&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&u(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function ae(F){if(!(!F||t.config.minDate&&F<t.config.minDate.getFullYear()||t.config.maxDate&&F>t.config.maxDate.getFullYear())){var E=F,O=t.currentYear!==E;t.currentYear=E||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),O&&(t.redraw(),Me("onYearChange"),L())}}function W(F,E){var O;E===void 0&&(E=!0);var _=t.parseDate(F,void 0,E);if(t.config.minDate&&_&&Rt(_,t.config.minDate,E!==void 0?E:!t.minDateHasTime)<0||t.config.maxDate&&_&&Rt(_,t.config.maxDate,E!==void 0?E:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(_===void 0)return!1;for(var Y=!!t.config.enable,se=(O=t.config.enable)!==null&&O!==void 0?O:t.config.disable,oe=0,ce=void 0;oe<se.length;oe++){if(ce=se[oe],typeof ce=="function"&&ce(_))return Y;if(ce instanceof Date&&_!==void 0&&ce.getTime()===_.getTime())return Y;if(typeof ce=="string"){var he=t.parseDate(ce,void 0,!0);return he&&he.getTime()===_.getTime()?Y:!Y}else if(typeof ce=="object"&&_!==void 0&&ce.from&&ce.to&&_.getTime()>=ce.from.getTime()&&_.getTime()<=ce.to.getTime())return Y}return!Y}function H(F){return t.daysContainer!==void 0?F.className.indexOf("hidden")===-1&&F.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(F):!1}function ne(F){var E=F.target===t._input,O=t._input.value.trimEnd()!==Oe();E&&O&&!(F.relatedTarget&&ee(F.relatedTarget))&&t.setDate(t._input.value,!0,F.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ie(F){var E=xt(F),O=t.config.wrap?n.contains(E):E===t._input,_=t.config.allowInput,Y=t.isOpen&&(!_||!O),se=t.config.inline&&O&&!_;if(F.keyCode===13&&O){if(_)return t.setDate(t._input.value,!0,E===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),E.blur();t.open()}else if(ee(E)||Y||se){var oe=!!t.timeContainer&&t.timeContainer.contains(E);switch(F.keyCode){case 13:oe?(F.preventDefault(),u(),X()):de(F);break;case 27:F.preventDefault(),X();break;case 8:case 46:O&&!t.config.allowInput&&(F.preventDefault(),t.clear());break;case 37:case 39:if(!oe&&!O){F.preventDefault();var ce=s();if(t.daysContainer!==void 0&&(_===!1||ce&&H(ce))){var he=F.keyCode===39?1:-1;F.ctrlKey?(F.stopPropagation(),P(he),w(k(1),0)):w(void 0,he)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:F.preventDefault();var pe=F.keyCode===40?1:-1;t.daysContainer&&E.$i!==void 0||E===t.input||E===t.altInput?F.ctrlKey?(F.stopPropagation(),ae(t.currentYear-pe),w(k(1),0)):oe||w(void 0,pe*7):E===t.currentYearElement?ae(t.currentYear-pe):t.config.enableTime&&(!oe&&t.hourElement&&t.hourElement.focus(),u(F),t._debouncedChange());break;case 9:if(oe){var be=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Fe){return Fe}),De=be.indexOf(E);if(De!==-1){var je=be[De+(F.shiftKey?-1:1)];F.preventDefault(),(je||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(E)&&F.shiftKey&&(F.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&E===t.amPM)switch(F.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),Se();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),Se();break}(O||ee(E))&&Me("onKeyDown",F)}function te(F,E){if(E===void 0&&(E="flatpickr-day"),!(t.selectedDates.length!==1||F&&(!F.classList.contains(E)||F.classList.contains("flatpickr-disabled")))){for(var O=F?F.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),_=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),Y=Math.min(O,t.selectedDates[0].getTime()),se=Math.max(O,t.selectedDates[0].getTime()),oe=!1,ce=0,he=0,pe=Y;pe<se;pe+=my.DAY)W(new Date(pe),!0)||(oe=oe||pe>Y&&pe<se,pe<_&&(!ce||pe>ce)?ce=pe:pe>_&&(!he||pe<he)&&(he=pe));var be=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+E));be.forEach(function(De){var je=De.dateObj,Fe=je.getTime(),$e=ce>0&&Fe<ce||he>0&&Fe>he;if($e){De.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(et){De.classList.remove(et)});return}else if(oe&&!$e)return;["startRange","inRange","endRange","notAllowed"].forEach(function(et){De.classList.remove(et)}),F!==void 0&&(F.classList.add(O<=t.selectedDates[0].getTime()?"startRange":"endRange"),_<O&&Fe===_?De.classList.add("startRange"):_>O&&Fe===_&&De.classList.add("endRange"),Fe>=ce&&(he===0||Fe<=he)&&fy(Fe,_,O)&&De.classList.add("inRange"))})}}function fe(){t.isOpen&&!t.config.static&&!t.config.inline&&Ne()}function le(F,E){if(E===void 0&&(E=t._positionElement),t.isMobile===!0){if(F){F.preventDefault();var O=xt(F);O&&O.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Me("onOpen");return}else if(t._input.disabled||t.config.inline)return;var _=t.isOpen;t.isOpen=!0,_||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Me("onOpen"),Ne(E)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(F===void 0||!t.timeContainer.contains(F.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ve(F){return function(E){var O=t.config["_"+F+"Date"]=t.parseDate(E,t.config.dateFormat),_=t.config["_"+(F==="min"?"max":"min")+"Date"];O!==void 0&&(t[F==="min"?"minDateHasTime":"maxDateHasTime"]=O.getHours()>0||O.getMinutes()>0||O.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(Y){return W(Y)}),!t.selectedDates.length&&F==="min"&&p(O),Se()),t.daysContainer&&(q(),O!==void 0?t.currentYearElement[F]=O.getFullYear().toString():t.currentYearElement.removeAttribute(F),t.currentYearElement.disabled=!!_&&O!==void 0&&_.getFullYear()===O.getFullYear())}}function ye(){var F=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],E=pt(pt({},JSON.parse(JSON.stringify(n.dataset||{}))),e),O={};t.config.parseDate=E.parseDate,t.config.formatDate=E.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(be){t.config._enable=Re(be)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(be){t.config._disable=Re(be)}});var _=E.mode==="time";if(!E.dateFormat&&(E.enableTime||_)){var Y=ct.defaultConfig.dateFormat||Gi.dateFormat;O.dateFormat=E.noCalendar||_?"H:i"+(E.enableSeconds?":S":""):Y+" H:i"+(E.enableSeconds?":S":"")}if(E.altInput&&(E.enableTime||_)&&!E.altFormat){var se=ct.defaultConfig.altFormat||Gi.altFormat;O.altFormat=E.noCalendar||_?"h:i"+(E.enableSeconds?":S K":" K"):se+(" h:i"+(E.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ve("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ve("max")});var oe=function(be){return function(De){t.config[be==="min"?"_minTime":"_maxTime"]=t.parseDate(De,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:oe("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:oe("max")}),E.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,O,E);for(var ce=0;ce<F.length;ce++)t.config[F[ce]]=t.config[F[ce]]===!0||t.config[F[ce]]==="true";va.filter(function(be){return t.config[be]!==void 0}).forEach(function(be){t.config[be]=ya(t.config[be]||[]).map(a)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ce=0;ce<t.config.plugins.length;ce++){var he=t.config.plugins[ce](t)||{};for(var pe in he)va.indexOf(pe)>-1?t.config[pe]=ya(he[pe]).map(a).concat(t.config[pe]):typeof E[pe]>"u"&&(t.config[pe]=he[pe])}E.altInputClass||(t.config.altInputClass=ke().className+" "+t.config.altInputClass),Me("onParseConfig")}function ke(){return t.config.wrap?n.querySelector("[data-input]"):n}function Pe(){typeof t.config.locale!="object"&&typeof ct.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=pt(pt({},ct.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ct.l10ns[t.config.locale]:void 0),xi.D="("+t.l10n.weekdays.shorthand.join("|")+")",xi.l="("+t.l10n.weekdays.longhand.join("|")+")",xi.M="("+t.l10n.months.shorthand.join("|")+")",xi.F="("+t.l10n.months.longhand.join("|")+")",xi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var F=pt(pt({},e),JSON.parse(JSON.stringify(n.dataset||{})));F.time_24hr===void 0&&ct.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Lc(t),t.parseDate=Ca({config:t.config,l10n:t.l10n})}function Ne(F){if(typeof t.config.position=="function")return void t.config.position(t,F);if(t.calendarContainer!==void 0){Me("onPreCalendarPosition");var E=F||t._positionElement,O=Array.prototype.reduce.call(t.calendarContainer.children,(function(Ti,G1){return Ti+G1.offsetHeight}),0),_=t.calendarContainer.offsetWidth,Y=t.config.position.split(" "),se=Y[0],oe=Y.length>1?Y[1]:null,ce=E.getBoundingClientRect(),he=window.innerHeight-ce.bottom,pe=se==="above"||se!=="below"&&he<O&&ce.top>O,be=window.pageYOffset+ce.top+(pe?-O-2:E.offsetHeight+2);if(vt(t.calendarContainer,"arrowTop",!pe),vt(t.calendarContainer,"arrowBottom",pe),!t.config.inline){var De=window.pageXOffset+ce.left,je=!1,Fe=!1;oe==="center"?(De-=(_-ce.width)/2,je=!0):oe==="right"&&(De-=_-ce.width,Fe=!0),vt(t.calendarContainer,"arrowLeft",!je&&!Fe),vt(t.calendarContainer,"arrowCenter",je),vt(t.calendarContainer,"arrowRight",Fe);var $e=window.document.body.offsetWidth-(window.pageXOffset+ce.right),et=De+_>window.document.body.offsetWidth,lt=$e+_>window.document.body.offsetWidth;if(vt(t.calendarContainer,"rightMost",et),!t.config.static)if(t.calendarContainer.style.top=be+"px",!et)t.calendarContainer.style.left=De+"px",t.calendarContainer.style.right="auto";else if(!lt)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=$e+"px";else{var rt=Le();if(rt===void 0)return;var bi=window.document.body.offsetWidth,Mi=Math.max(0,bi/2-_/2),li=".flatpickr-calendar.centerMost:before",zt=".flatpickr-calendar.centerMost:after",qt=rt.cssRules.length,$i="{left:"+ce.left+"px;right:auto;}";vt(t.calendarContainer,"rightMost",!1),vt(t.calendarContainer,"centerMost",!0),rt.insertRule(li+","+zt+$i,qt),t.calendarContainer.style.left=Mi+"px",t.calendarContainer.style.right="auto"}}}}function Le(){for(var F=null,E=0;E<document.styleSheets.length;E++){var O=document.styleSheets[E];if(O.cssRules){try{O.cssRules}catch{continue}F=O;break}}return F??U()}function U(){var F=document.createElement("style");return document.head.appendChild(F),F.sheet}function q(){t.config.noCalendar||t.isMobile||(L(),Ue(),T())}function X(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function de(F){F.preventDefault(),F.stopPropagation();var E=function(be){return be.classList&&be.classList.contains("flatpickr-day")&&!be.classList.contains("flatpickr-disabled")&&!be.classList.contains("notAllowed")},O=Oc(xt(F),E);if(O!==void 0){var _=O,Y=t.latestSelectedDateObj=new Date(_.dateObj.getTime()),se=(Y.getMonth()<t.currentMonth||Y.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=_,t.config.mode==="single")t.selectedDates=[Y];else if(t.config.mode==="multiple"){var oe=re(Y);oe?t.selectedDates.splice(parseInt(oe),1):t.selectedDates.push(Y)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=Y,t.selectedDates.push(Y),Rt(Y,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(be,De){return be.getTime()-De.getTime()}));if(f(),se){var ce=t.currentYear!==Y.getFullYear();t.currentYear=Y.getFullYear(),t.currentMonth=Y.getMonth(),ce&&(Me("onYearChange"),L()),Me("onMonthChange")}if(Ue(),T(),Se(),!se&&t.config.mode!=="range"&&t.config.showMonths===1?x(_):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var he=t.config.mode==="single"&&!t.config.enableTime,pe=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(he||pe)&&X()}A()}}var ue={locale:[Pe,J],showMonths:[j,l,V],minDate:[g],maxDate:[g],positionElement:[Qe],clickOpens:[function(){t.config.clickOpens===!0?(m(t._input,"focus",t.open),m(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function Ee(F,E){if(F!==null&&typeof F=="object"){Object.assign(t.config,F);for(var O in F)ue[O]!==void 0&&ue[O].forEach(function(_){return _()})}else t.config[F]=E,ue[F]!==void 0?ue[F].forEach(function(_){return _()}):va.indexOf(F)>-1&&(t.config[F]=ya(E));t.redraw(),Se(!0)}function Be(F,E){var O=[];if(F instanceof Array)O=F.map(function(_){return t.parseDate(_,E)});else if(F instanceof Date||typeof F=="number")O=[t.parseDate(F,E)];else if(typeof F=="string")switch(t.config.mode){case"single":case"time":O=[t.parseDate(F,E)];break;case"multiple":O=F.split(t.config.conjunction).map(function(_){return t.parseDate(_,E)});break;case"range":O=F.split(t.l10n.rangeSeparator).map(function(_){return t.parseDate(_,E)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(F)));t.selectedDates=t.config.allowInvalidPreload?O:O.filter(function(_){return _ instanceof Date&&W(_,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(_,Y){return _.getTime()-Y.getTime()})}function xe(F,E,O){if(E===void 0&&(E=!1),O===void 0&&(O=t.config.dateFormat),F!==0&&!F||F instanceof Array&&F.length===0)return t.clear(E);Be(F,O),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),g(void 0,E),p(),t.selectedDates.length===0&&t.clear(!1),Se(E),E&&Me("onChange")}function Re(F){return F.slice().map(function(E){return typeof E=="string"||typeof E=="number"||E instanceof Date?t.parseDate(E,void 0,!0):E&&typeof E=="object"&&E.from&&E.to?{from:t.parseDate(E.from,void 0),to:t.parseDate(E.to,void 0)}:E}).filter(function(E){return E})}function Ie(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var F=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);F&&Be(F,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function ot(){if(t.input=ke(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=qe(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),Qe()}function Qe(){t._positionElement=t.config.positionElement||t._input}function ge(){var F=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=qe("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=F,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=F==="datetime-local"?"Y-m-d\\TH:i:S":F==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}m(t.mobileInput,"change",function(E){t.setDate(xt(E).value,!1,t.mobileFormatStr),Me("onChange"),Me("onClose")})}function We(F){if(t.isOpen===!0)return t.close();t.open(F)}function Me(F,E){if(t.config!==void 0){var O=t.config[F];if(O!==void 0&&O.length>0)for(var _=0;O[_]&&_<O.length;_++)O[_](t.selectedDates,t.input.value,t,E);F==="onChange"&&(t.input.dispatchEvent(Z("change")),t.input.dispatchEvent(Z("input")))}}function Z(F){var E=document.createEvent("Event");return E.initEvent(F,!0,!0),E}function re(F){for(var E=0;E<t.selectedDates.length;E++){var O=t.selectedDates[E];if(O instanceof Date&&Rt(O,F)===0)return""+E}return!1}function He(F){return t.config.mode!=="range"||t.selectedDates.length<2?!1:Rt(F,t.selectedDates[0])>=0&&Rt(F,t.selectedDates[1])<=0}function Ue(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(F,E){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+E),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[E].textContent=or(O.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=O.getMonth().toString(),F.value=O.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function Oe(F){var E=F||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(O){return t.formatDate(O,E)}).filter(function(O,_,Y){return t.config.mode!=="range"||t.config.enableTime||Y.indexOf(O)===_}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Se(F){F===void 0&&(F=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Oe(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Oe(t.config.altFormat)),F!==!1&&Me("onValueUpdate")}function bt(F){var E=xt(F),O=t.prevMonthNav.contains(E),_=t.nextMonthNav.contains(E);O||_?P(O?-1:1):t.yearElements.indexOf(E)>=0?E.select():E.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):E.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function nt(F){F.preventDefault();var E=F.type==="keydown",O=xt(F),_=O;t.amPM!==void 0&&O===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]);var Y=parseFloat(_.getAttribute("min")),se=parseFloat(_.getAttribute("max")),oe=parseFloat(_.getAttribute("step")),ce=parseInt(_.value,10),he=F.delta||(E?F.which===38?1:-1:0),pe=ce+oe*he;if(typeof _.value<"u"&&_.value.length===2){var be=_===t.hourElement,De=_===t.minuteElement;pe<Y?(pe=se+pe+Ft(!be)+(Ft(be)&&Ft(!t.amPM)),De&&v(void 0,-1,t.hourElement)):pe>se&&(pe=_===t.hourElement?pe-se-Ft(!t.amPM):Y,De&&v(void 0,1,t.hourElement)),t.amPM&&be&&(oe===1?pe+ce===23:Math.abs(pe-ce)>oe)&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]),_.value=Et(pe)}}return r(),t}function Yi(n,e){for(var t=Array.prototype.slice.call(n).filter(function(a){return a instanceof HTMLElement}),i=[],r=0;r<t.length;r++){var s=t[r];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=by(s,e||{}),i.push(s._flatpickr)}catch(a){console.error(a)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Yi(this,n)},HTMLElement.prototype.flatpickr=function(n){return Yi([this],n)});var ct=function(n,e){return typeof n=="string"?Yi(window.document.querySelectorAll(n),e):n instanceof Node?Yi([n],e):Yi(n,e)};ct.defaultConfig={},ct.l10ns={en:pt({},vn),default:pt({},vn)},ct.localize=function(n){ct.l10ns.default=pt(pt({},ct.l10ns.default),n)},ct.setDefaults=function(n){ct.defaultConfig=pt(pt({},ct.defaultConfig),n)},ct.parseDate=Ca({}),ct.formatDate=Lc({}),ct.compareDates=Rt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Yi(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=ct);var wn={exports:{}},vy=wn.exports,Fc;function yy(){return Fc||(Fc=1,(function(n,e){(function(t,i){i(e)})(vy,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};i.l10ns.ru=r;var s=i.l10ns;t.Russian=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(wn,wn.exports)),wn.exports}var wy=yy();const Cy=["value","id","name","disabled","required","placeholder"],Ay=["title"],Ey=["title"],ky=_e(o.defineComponent({__name:"Flatpickr",props:{modelValue:{default:""},id:{default:"flatpickr-input"},error:{default:""},name:{default:"flatpickr"},placeholder:{default:"Выберите дату"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},config:{default:()=>({})},format:{default:"DD.MM.YYYY"},locale:{default:"ru"},resetTitle:{default:"Очистить"},calendarTitle:{default:"Выбрать дату"},allowInput:{type:Boolean,default:!0},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!0},dateFormat:{default:"d.m.Y"},minDate:{default:void 0},maxDate:{default:void 0},defaultDate:{default:void 0},mode:{default:"single"}},emits:["update:modelValue","change","open","close","ready"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(),a=o.ref(null),l=o.ref(!1),u=o.ref(""),c=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),d=b=>{if(!b)return"";const g=new Date(b);if(isNaN(g.getTime()))return"";const M=String(g.getDate()).padStart(2,"0"),v=String(g.getMonth()+1).padStart(2,"0"),R=g.getFullYear();return i.format==="DD.MM.YYYY"?`${M}.${v}.${R}`:i.format==="MM/DD/YYYY"?`${v}/${M}/${R}`:i.format==="YYYY-MM-DD"?`${R}-${v}-${M}`:`${M}.${v}.${R}`},f=b=>{if(!b)return"";if(/^\d{4}-\d{2}-\d{2}/.test(b))return b;if(i.format==="DD.MM.YYYY"){const g=b.split(".");if(g.length===3){const[M,v,R]=g;return`${R}-${v.padStart(2,"0")}-${M.padStart(2,"0")}`}}if(i.format==="MM/DD/YYYY"){const g=b.split("/");if(g.length===3){const[M,v,R]=g;return`${R}-${M.padStart(2,"0")}-${v.padStart(2,"0")}`}}return i.format==="YYYY-MM-DD",b},p=()=>{if(!s.value)return;const b={locale:i.locale==="ru"?wy.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(g,M,v)=>{const R=g.length>0;if(!(i.modelValue!==M))return!1;if(!R)return h({instance:v}),!1;o.nextTick(()=>{if(i.mode==="multiple"){const x=g.map(k=>d(k));r("update:modelValue",x)}else if(i.mode==="range"){const x=g.map(k=>d(k));r("update:modelValue",x)}else r("update:modelValue",M);r("change",g.map(x=>x.toISOString()),M,v)})},onOpen:g=>{r("open",g)},onReady:g=>{r("ready",g)},...i.config};i.minDate&&i.minDate&&(b.minDate=i.minDate),i.maxDate&&(b.maxDate=i.maxDate),i.defaultDate&&(b.defaultDate=i.defaultDate),a.value=ct(s.value,b),h({instance:a.value})},h=({instance:b})=>{b?._input&&(i.modelValue?o.nextTick(()=>{Array.isArray(i.modelValue)?b._input.value=i.modelValue.map(g=>d(g)).join(", "):b._input.value=d(i.modelValue),l.value=!0}):o.nextTick(()=>{b._input.value="",l.value=!1}))},S=()=>{i.disabled||!a.value||(a.value.clear(),a.value._input.value="",r("update:modelValue",""),l.value=!1)},m=b=>{const g=b.target;u.value=g.value},A=()=>{if(u.value){const b=f(u.value);b&&r("update:modelValue",b)}};return o.watch(()=>i.modelValue,b=>{if(!b){l.value=!1,a.value?._input&&(a.value._input.value=""),u.value="";return}Array.isArray(b)?u.value=b.map(g=>d(g)).join(", "):u.value=d(b),l.value=!0},{deep:!0}),o.watch(()=>i.disabled,b=>{a.value?._input&&(a.value._input.disabled=b)}),o.onMounted(()=>{p()}),o.onBeforeUnmount(()=>{a.value&&a.value.destroy()}),e({datapicker:a}),(b,g)=>(o.openBlock(),o.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[o.createElementVNode("div",{class:o.normalizeClass({"not-valid":c.value.length})},[o.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:b.id,name:b.name,disabled:b.disabled,required:b.required,placeholder:b.placeholder,"data-input":"",onInput:m,onBlur:A},null,40,Cy)],2),l.value&&!b.disabled?(o.openBlock(),o.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:S,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:b.resetTitle},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Ay)):o.createCommentVNode("",!0),o.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:b.calendarTitle},[...g[1]||(g[1]=[o.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,Ey),o.createVNode(Ei,{errors:c.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-805e83fd"]]);function Sy(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,a=o.ref(""),l=o.ref([]),u=o.ref(!1),c=o.ref(r),d=o.ref(!1),f=o.ref(!1),p=o.computed(()=>a.value&&a.value.length>0&&a.value.length<s?`Введите минимум ${s} символа`:t),h=o.computed(()=>i);return{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:y=>{a.value=y||"",y&&y.length>=s},onSelect:y=>{},clearSearch:()=>{a.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:y=>{l.value=y},setLoading:y=>{u.value=y},setGlobalLoading:y=>{f.value=y}}}const xy=["disabled"],Ry={key:1,class:"bi bi-three-dots-vertical"},My=_e(o.defineComponent({__name:"HeaderSearchForm",props:{placeholder:{default:"Поиск..."},searchHint:{default:"Введите минимум 3 символа"},searchTypes:{default:()=>[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}]},defaultSearchType:{default:"partial"},minSearchLength:{default:3},searchTypeName:{default:"searchType"},options:{default:()=>[]},isLoading:{type:Boolean,default:!1},isSearchLoading:{type:Boolean,default:!1}},emits:["search","select","searchTypeChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={placeholder:i.placeholder,searchHint:i.searchHint,searchTypes:i.searchTypes,defaultSearchType:i.defaultSearchType,minSearchLength:i.minSearchLength},{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:S,onSelect:m,clearSearch:A,toggleSettings:b,hideSettings:g}=Sy(s),M=o.ref();o.computed(()=>i.options.length>0?i.options:l.value),o.computed(()=>i.isSearchLoading||u.value),o.computed(()=>i.isLoading||f.value);const v=C=>{const w=C||"";S(w),r("search",w,c.value)},R=C=>{m(C),r("select",C)},y=o.computed(()=>i.searchTypeName);o.watch(c,C=>{r("searchTypeChange",C),g()});const x=C=>{const w=C.target;k.value?.contains(w)||g()},k=o.ref();return o.onMounted(()=>{document.addEventListener("click",x)}),o.onUnmounted(()=>{document.removeEventListener("click",x)}),e({clearSearch:A,setOptions:C=>{l.value=C},setLoading:C=>{u.value=C},setGlobalLoading:C=>{f.value=C},focus:()=>{M.value?.$el?.querySelector("input")?.focus()}}),(C,w)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:k,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(o.openBlock(),o.createBlock(oi,{ref_key:"selectRef",ref:M,key:o.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:o.unref(a),"onUpdate:modelValue":[w[0]||(w[0]=D=>o.isRef(a)?a.value=D:null),R],reduce:D=>D,options:C.options,placeholder:C.placeholder,onSearch:v,onBlur:o.unref(A),onFocus:o.unref(g),isLoading:C.isSearchLoading,hint:o.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),o.createElementVNode("button",{class:"btn btn-light px-2",onClick:w[1]||(w[1]=(...D)=>o.unref(b)&&o.unref(b)(...D)),disabled:C.isLoading},[C.isLoading?(o.openBlock(),o.createBlock(Er,{key:0,isSmall:!0})):(o.openBlock(),o.createElementBlock("i",Ry))],8,xy),o.unref(d)?(o.openBlock(),o.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:w[3]||(w[3]=o.withModifiers(()=>{},["stop"]))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),D=>(o.openBlock(),o.createElementBlock("li",{key:D.value,class:"setting-item"},[o.createVNode(Tc,{name:y.value,label:D.label,modelValue:o.unref(c),"onUpdate:modelValue":w[2]||(w[2]=T=>o.isRef(c)?c.value=T:null),type:"radio",group:y.value,trueValue:D.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function Ty(n={}){const{loadRegions:e,loadDistricts:t,loadLocalities:i,loadStreets:r,regionKey:s="region_id",districtKey:a="district_id",localityKey:l="locality_id",streetKey:u="street_id",houseKey:c="house",buildingKey:d="building",apartmentKey:f="apartment",regionLabel:p="Регион",districtLabel:h="Район",localityLabel:S="Населенный пункт",streetLabel:m="Улица",houseLabel:A="Дом",buildingLabel:b="Корпус",apartmentLabel:g="Квартира",columnWidth:M="12",prefix:v="",multiLocalities:R=!1,multiStreets:y=!1,showHouseFields:x=!0}=n,k=o.ref(!1),C=o.ref({}),w=o.ref(!1),D=o.ref(!1),T=o.ref(!1),L=o.ref(!1),N=o.ref(!1),j=o.ref([]),G=o.ref([]),I=o.ref([]),V=o.ref([]),J=o.computed(()=>`${v}${s}`),B=o.computed(()=>`${v}${a}`),P=o.computed(()=>`${v}${l}`),Q=o.computed(()=>`${v}${u}`),z=o.computed(()=>`${v}${c}`),$=o.computed(()=>`${v}${d}`),ee=o.computed(()=>`${v}${f}`),K=o.computed(()=>({region:p,district:h,locality:S,street:m,house:A,building:b,apartment:g})),ae=async ge=>{if(e){D.value=!0;try{j.value=await e(ge)}finally{D.value=!1}}},W=async ge=>{if(t){T.value=!0;try{G.value=await t(ge)}finally{T.value=!1}}},H=async ge=>{if(i){L.value=!0;try{I.value=await i(ge)}finally{L.value=!1}}},ne=async ge=>{if(r){N.value=!0;try{V.value=await r(ge)}finally{N.value=!1}}},ie=(ge,We=!1)=>{if(k.value)return;if(We){const Z={...C.value,[J.value]:ge};C.value=Z;return}const Me={...C.value,[J.value]:ge,[B.value]:null,[P.value]:null,[Q.value]:null,[z.value]:null,[$.value]:null,[ee.value]:null};C.value=Me,G.value=[],I.value=[],V.value=[]},te=(ge,We=!1)=>{if(k.value)return;if(We){const Z={...C.value,[B.value]:ge};C.value=Z;return}const Me={...C.value,[B.value]:ge,[P.value]:null,[Q.value]:null,[z.value]:null,[$.value]:null,[ee.value]:null};C.value=Me},fe=(ge,We=!1)=>{if(k.value)return;if(We){const Z={...C.value,[P.value]:ge};C.value=Z;return}const Me={...C.value,[P.value]:ge,[Q.value]:null,[z.value]:null,[$.value]:null,[ee.value]:null};C.value=Me,V.value=[]},le=async ge=>{k.value||(ie(ge),ge&&(await W(ge),await H(ge)))},ve=async ge=>{if(!k.value){if(te(ge),!ge){const We=C.value[J.value];We&&await le(We);return}await H(ge)}},ye=async ge=>{k.value||(fe(ge),ge&&await ne(ge))},ke=(ge,We=!1)=>{if(k.value)return;if(We){const Z={...C.value,[Q.value]:ge};C.value=Z;return}const Me={...C.value,[Q.value]:ge,[z.value]:null,[$.value]:null,[ee.value]:null};C.value=Me},Pe=ge=>{const We=ge.target,Me={...C.value,[z.value]:We.value};C.value=Me},Ne=ge=>{const We=ge.target,Me={...C.value,[$.value]:We.value};C.value=Me},Le=ge=>{const We=ge.target,Me={...C.value,[ee.value]:We.value};C.value=Me},U=async(ge,We)=>{Object.assign(C.value,ge)},q=async(ge,We)=>{k.value=!0;const Me=ge[J.value],Z=ge[B.value],re=ge[P.value];ge[Q.value];try{e&&Me&&await ae(We),t&&Me&&await W(Me),i&&Z?await H(Z):i&&Me&&await H(Me),r&&re&&await ne(re),Object.assign(C.value,ge)}catch(He){console.error("❌ Error during auto-fill (skip reset mode):",He)}finally{o.nextTick(()=>{k.value=!1})}},X=o.computed(()=>{const ge=C.value[J.value];return ge&&j.value.find(Me=>String(Me.id)===String(ge))?.label||""}),de=o.computed(()=>{const ge=C.value[B.value];return ge&&G.value.find(We=>String(We.id)===String(ge))?.label||""}),ue=o.computed(()=>{const ge=C.value[P.value];return ge&&I.value.find(We=>String(We.id)===String(ge))?.label||""}),Ee=o.computed(()=>{const ge=C.value[Q.value];return ge&&V.value.find(Me=>String(Me.id)===String(ge))?.label||""}),Be=o.computed(()=>{const ge=C.value[z.value];return ge?`${A} ${ge}`:""}),xe=o.computed(()=>{const ge=C.value[$.value];return ge?`${b} ${ge}`:""}),Re=o.computed(()=>{const ge=C.value[ee.value];return ge?`${g} ${ge}`:""}),Ie=o.computed(()=>[X.value,de.value,ue.value,Ee.value,Be.value,xe.value,Re.value].filter(Boolean).join(", ")),ot=o.computed(()=>{const ge=C.value[P.value];return Array.isArray(ge)?ge.length>1:!1}),Qe=o.computed(()=>y?!1:x);return{modelValue:C,isLoading:w,isRegionLoading:D,isDistrictLoading:T,isLocalityLoading:L,isStreetLoading:N,regionOptions:j,districtOptions:G,localityOptions:I,streetOptions:V,finalRegionKey:J,finalDistrictKey:B,finalLocalityKey:P,finalStreetKey:Q,finalHouseKey:z,finalBuildingKey:$,finalApartmentKey:ee,labels:K,selectedRegionLabel:X,selectedDistrictLabel:de,selectedLocalityLabel:ue,selectedStreetLabel:Ee,selectedHouseLabel:Be,selectedBuildingLabel:xe,selectedApartmentLabel:Re,fullAddress:Ie,isMultiLocalitiesSelected:ot,shouldShowHouseFields:Qe,loadRegionOptions:ae,loadDistrictOptions:W,loadLocalityOptions:H,loadStreetOptions:ne,onRegionSelect:le,onDistrictSelect:ve,onLocalitySelect:ye,onStreetSelect:ke,onHouseInput:Pe,onBuildingInput:Ne,onApartmentInput:Le,resetFieldsByRegion:ie,resetFieldsByDistrict:te,resetFieldsByLocality:fe,autoFillForm:U,autoFillFormSkipReset:q}}const Dy={class:"address-form"},Oy={class:"row"},Ly={class:"form-label"},By={class:"form-label"},Fy={class:"form-label"},_y={class:"form-label"},Py={class:"form-label"},Ny=["value","disabled"],Iy={class:"form-label"},Hy=["value","disabled"],Vy={class:"form-label"},zy=["value","disabled"],jy={key:0,class:"mt-3"},Wy={class:"alert alert-info"},Uy=_e(o.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},regionKey:{default:"region_id"},districtKey:{default:"district_id"},localityKey:{default:"locality_id"},streetKey:{default:"street_id"},houseKey:{default:"house"},buildingKey:{default:"building"},apartmentKey:{default:"apartment"},regionLabel:{default:"Регион"},districtLabel:{default:"Район"},localityLabel:{default:"Населенный пункт"},streetLabel:{default:"Улица"},houseLabel:{default:"Дом"},buildingLabel:{default:"Корпус"},apartmentLabel:{default:"Квартира"},columnWidth:{default:"12"},prefix:{default:""},multiLocalities:{type:Boolean,default:!1},multiStreets:{type:Boolean,default:!1},showHouseFields:{type:Boolean,default:!0},showFullAddress:{type:Boolean,default:!1},disabledFields:{default:()=>({})},allowClear:{default:()=>({})},countryId:{default:void 0},setFilterParamsStringsHandler:{type:Function,default:void 0},filterName:{default:"address"},isParentComponentReady:{type:Boolean,default:!0}},emits:["update:modelValue","change","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,regionLabel:i.regionLabel,districtLabel:i.districtLabel,localityLabel:i.localityLabel,streetLabel:i.streetLabel,houseLabel:i.houseLabel,buildingLabel:i.buildingLabel,apartmentLabel:i.apartmentLabel,columnWidth:i.columnWidth,prefix:i.prefix,multiLocalities:i.multiLocalities,multiStreets:i.multiStreets,showHouseFields:i.showHouseFields},{modelValue:a,isRegionLoading:l,isDistrictLoading:u,isLocalityLoading:c,isStreetLoading:d,regionOptions:f,districtOptions:p,localityOptions:h,streetOptions:S,finalRegionKey:m,finalDistrictKey:A,finalLocalityKey:b,finalStreetKey:g,finalHouseKey:M,finalBuildingKey:v,finalApartmentKey:R,labels:y,selectedRegionLabel:x,selectedDistrictLabel:k,selectedLocalityLabel:C,selectedStreetLabel:w,selectedHouseLabel:D,selectedBuildingLabel:T,selectedApartmentLabel:L,fullAddress:N,isMultiLocalitiesSelected:j,shouldShowHouseFields:G,loadRegionOptions:I,onRegionSelect:V,onDistrictSelect:J,onLocalitySelect:B,onStreetSelect:P,onHouseInput:Q,onBuildingInput:z,onApartmentInput:$,autoFillForm:ee,autoFillFormSkipReset:K}=Ty(s);let ae=!1,W=!1,H=!1;const ne=(U,q)=>{if(U===q)return!0;if(!U||!q||typeof U!="object"||typeof q!="object")return!1;const X=Object.keys(U),de=Object.keys(q);if(X.length!==de.length)return!1;for(const ue of X)if(U[ue]!==q[ue])return!1;return!0};o.watch(()=>i.modelValue,async U=>{if(ae||W||H||ne(a.value,U))return;if(U&&(U[m.value]||U[A.value]||U[b.value]||U[g.value])){if(!W){W=!0;try{await K(U,i.countryId)}catch(X){console.error("❌ Error during auto-fill:",X)}finally{W=!1}}}else a.value={...U}},{immediate:!0,deep:!0}),o.watch(a,U=>{H||W||ne(i.modelValue,U)||(ae=!0,H=!0,r("update:modelValue",{...U}),r("change",{...U}),o.nextTick(()=>{ae=!1,H=!1}))},{deep:!0});let ie=!1;o.watch(()=>i.countryId,async(U,q)=>{if(!ie&&!W&&U!=null&&i.loadRegions){if(U!==q){const X={...a.value,[m.value]:null,[A.value]:null,[b.value]:null,[g.value]:null,[M.value]:null,[v.value]:null,[R.value]:null};a.value=X}try{ie=!0,await I(U)}catch(X){console.error("❌ AddressForm: Error loading regions",X)}finally{ie=!1}}},{immediate:!0});const te=async U=>{await V(U),r("regionChange",U)},fe=async U=>{await J(U),r("districtChange",U)},le=async U=>{await B(U),r("localityChange",U)},ve=U=>{P(U),r("streetChange",U)},ye=U=>{Q(U)},ke=U=>{z(U)},Pe=U=>{$(U)},Ne=o.computed(()=>{if(!i.multiLocalities)return!1;const U=a.value[g.value];return!Array.isArray(U)||U?.length<2});function Le(){return[x.value,k.value,C.value,w.value,D.value,T.value,L.value].filter(Boolean).join(", ")}return o.watch(()=>D.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>T.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>L.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>w.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>C.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>k.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),o.watch(()=>x.value,async U=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Le())},{deep:!0}),e({loadRegionOptions:I,resetForm:()=>{a.value={},f.value=[],p.value=[],h.value=[],S.value=[],r("update:modelValue",{})},getFullAddress:()=>N.value,getValue:()=>Le(),autoFillForm:async U=>{W=!0;try{await ee(U)}finally{W=!1}},autoFillFormSkipReset:async U=>{W=!0;try{await K(U,i.countryId)}finally{W=!1}}}),(U,q)=>(o.openBlock(),o.createElementBlock("div",Dy,[o.createElementVNode("div",Oy,[o.createElementVNode("div",{class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Ly,o.toDisplayString(o.unref(y).region),1),o.createVNode(oi,{modelValue:U.modelValue[o.unref(m)],options:o.unref(f),disabled:U.disabledFields?.region||o.unref(l),"onUpdate:modelValue":te,allowClear:U.allowClear?.region,isLoading:o.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",By,o.toDisplayString(o.unref(y).district),1),o.createVNode(oi,{modelValue:U.modelValue[o.unref(A)],disabled:U.disabledFields?.district||o.unref(u),options:o.unref(p),"onUpdate:modelValue":fe,allowClear:U.allowClear?.district,isLoading:o.unref(u)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Fy,o.toDisplayString(o.unref(y).locality),1),o.createVNode(oi,{modelValue:U.modelValue[o.unref(b)],disabled:U.disabledFields?.locality||o.unref(c),"onUpdate:modelValue":le,options:o.unref(h),name:o.unref(b),showAddButton:Ne.value,isLoading:o.unref(c),multiple:U.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),o.unref(j)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",_y,o.toDisplayString(o.unref(y).street),1),o.createVNode(oi,{modelValue:U.modelValue[o.unref(g)],disabled:U.disabledFields?.street||o.unref(d),options:o.unref(S),"onUpdate:modelValue":ve,allowClear:U.allowClear?.street,isLoading:o.unref(d),multiple:U.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),o.unref(G)?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Py,o.toDisplayString(o.unref(y).house),1),o.createElementVNode("input",{type:"text",class:"form-control",value:U.modelValue[o.unref(M)]||"",disabled:U.disabledFields?.house,onInput:ye},null,40,Ny)],2)):o.createCommentVNode("",!0),o.unref(G)?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Iy,o.toDisplayString(o.unref(y).building),1),o.createElementVNode("input",{type:"text",class:"form-control",value:U.modelValue[o.unref(v)]||"",disabled:U.disabledFields?.building,onInput:ke},null,40,Hy)],2)):o.createCommentVNode("",!0),o.unref(G)?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(`col-${U.columnWidth} mb-2`)},[o.createElementVNode("label",Vy,o.toDisplayString(o.unref(y).apartment),1),o.createElementVNode("input",{type:"text",class:"form-control",value:U.modelValue[o.unref(R)]||"",disabled:U.disabledFields?.apartment,onInput:Pe},null,40,zy)],2)):o.createCommentVNode("",!0)],64))]),U.showFullAddress&&o.unref(N)?(o.openBlock(),o.createElementBlock("div",jy,[o.createElementVNode("div",Wy,[q[0]||(q[0]=o.createElementVNode("strong",null,"Полный адрес:",-1)),o.createTextVNode(" "+o.toDisplayString(o.unref(N)),1)])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-80731459"]]),Gy={class:"age-from-to-form"},Yy={class:"form-group"},Qy={key:0,class:"form-label mb-2"},Ky={class:"row align-items-center mb-2"},Jy={class:"col-auto"},qy={class:"form-label mb-0"},$y={class:"col"},Zy={class:"col"},Xy={class:"row align-items-center mb-2"},ew={class:"col-auto"},tw={class:"form-label mb-0"},iw={class:"col"},nw={class:"col"},rw=_e(o.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:"От"},placeholderTo:{default:"До"},timeTypeOptions:{default:()=>[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}]},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={age_from:null,age_to:null,time_type_from:null,time_type_to:null},a=o.ref({...s}),l=o.computed(()=>{const h=a.value.age_from;if(!h)return null;const S=a.value.time_type_from,m=i.timeTypeOptions.find(({id:A})=>Number(A)===Number(S))?.label;return m?`${h} ${m}`:null}),u=o.computed(()=>{const h=a.value.age_to;if(!h)return null;const S=a.value.time_type_to,m=i.timeTypeOptions.find(({id:A})=>Number(A)===Number(S))?.label;return m?`${h} ${m}`:null}),c=()=>{a.value={...s}},d=()=>{i.onFilterUpdate&&(i.onFilterUpdate(i.nameFrom,l.value),i.onFilterUpdate(i.nameTo,u.value))},f=h=>{if(!h.age_from&&!h.age_to&&!h.time_type_from&&!h.time_type_to){r("update:modelValue",null),r("change",{...s}),d();return}const m=[];h.age_from&&h.time_type_from&&m.push(`age_from[time_type]=${h.time_type_from}&age_from[value]=${h.age_from}`),h.age_to&&h.time_type_to&&m.push(`age_to[time_type]=${h.time_type_to}&age_to[value]=${h.age_to}`);const A=m.length>0?m.join("&")+"&":"";r("update:modelValue",A||null),r("change",{...h}),d()},p=h=>{if(h)try{const S=new URLSearchParams(h),m=S.get("age_from[value]"),A=S.get("age_from[time_type]"),b=S.get("age_to[value]"),g=S.get("age_to[time_type]");a.value={age_from:m?Number(m):null,age_to:b?Number(b):null,time_type_from:A?Number(A):null,time_type_to:g?Number(g):null}}catch(S){console.warn("Error parsing query string:",S)}};return o.watch(()=>i.modelValue,(h,S)=>{h!==S&&(h===null?c():p(h))},{immediate:!0}),o.watch(()=>a.value,h=>{f(h)},{deep:!0}),o.onMounted(()=>{i.modelValue&&p(i.modelValue)}),e({reset:c,getFormData:()=>({age_from:a.value.age_from?Number(a.value.age_from):null,age_to:a.value.age_to?Number(a.value.age_to):null,time_type_from:a.value.time_type_from?Number(a.value.time_type_from):null,time_type_to:a.value.time_type_to?Number(a.value.time_type_to):null}),getFilterStrings:()=>({from:l.value,to:u.value})}),(h,S)=>(o.openBlock(),o.createElementBlock("div",Gy,[o.createElementVNode("div",Yy,[h.title?(o.openBlock(),o.createElementBlock("label",Qy,o.toDisplayString(h.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Ky,[o.createElementVNode("div",Jy,[o.createElementVNode("label",qy,o.toDisplayString(h.placeholderFrom),1)]),o.createElementVNode("div",$y,[o.createVNode(er,{modelValue:a.value.age_from,"onUpdate:modelValue":S[0]||(S[0]=m=>a.value.age_from=m),name:h.nameFrom,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderFrom.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",Zy,[o.createVNode(oi,{modelValue:a.value.time_type_from,"onUpdate:modelValue":S[1]||(S[1]=m=>a.value.time_type_from=m),name:`${h.nameFrom}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])]),o.createElementVNode("div",Xy,[o.createElementVNode("div",ew,[o.createElementVNode("label",tw,o.toDisplayString(h.placeholderTo),1)]),o.createElementVNode("div",iw,[o.createVNode(er,{modelValue:a.value.age_to,"onUpdate:modelValue":S[2]||(S[2]=m=>a.value.age_to=m),name:h.nameTo,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderTo.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",nw,[o.createVNode(oi,{modelValue:a.value.time_type_to,"onUpdate:modelValue":S[3]||(S[3]=m=>a.value.time_type_to=m),name:`${h.nameTo}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])])])]))}}),[["__scopeId","data-v-4b5f9814"]]),sw={key:0,class:"r3ui-modal-wrapper"},aw={class:"modal-header pb-4 border-bottom-0"},ow={key:0,class:"modal-title"},lw={key:0,class:"modal-body pt-0"},uw={key:1,class:"modal-footer row justify-content-start pt-3"},_c=_e(o.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!1},centered:{type:Boolean,default:!0},size:{type:String,default:""},style:{type:String,default:""},modalVisibility:{type:Boolean,default:!1}},emits:["update:modelValue","emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},a=l=>{l.key==="Escape"&&s()};return o.watch(()=>t.modelValue,l=>{l?(document.body.style.overflow="hidden",window.addEventListener("keydown",a)):(document.body.style.overflow="",window.removeEventListener("keydown",a))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",a)}),(l,u)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(o.openBlock(),o.createElementBlock("div",sw,[o.createElementVNode("div",{class:"overlay",onClick:s}),o.createElementVNode("div",{class:o.normalizeClass(["modal-dialog",{"modal-dialog-scrollable":n.scrollable,"modal-dialog-centered":n.centered,"modal-sm":n.size==="sm","modal-lg":n.size==="lg","modal-xl":n.size==="xl"}])},[o.createElementVNode("div",{class:"modal-content p-3",style:o.normalizeStyle(n.style)},[o.createElementVNode("div",aw,[n.title?(o.openBlock(),o.createElementBlock("h4",ow,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),o.unref(r)["modal-body"]||o.unref(r).body?(o.openBlock(),o.createElementBlock("div",lw,[o.renderSlot(l.$slots,"modal-body",{},void 0,!0),o.renderSlot(l.$slots,"body",{},void 0,!0)])):o.createCommentVNode("",!0),o.unref(r)["modal-footer"]||o.unref(r).footer?(o.openBlock(),o.createElementBlock("div",uw,[o.renderSlot(l.$slots,"modal-footer",{},void 0,!0),o.renderSlot(l.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],4)],2)])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f04e4482"]]),cw="data:image/png;base64,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",dw="data:image/png;base64,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",hw="data:image/png;base64,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",fw="data:image/png;base64,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",pw={class:"row mb-3 flex-column mx-0"},mw={class:"col-auto mb-3"},gw={class:"image-container",style:{width:"90px",height:"90px"}},bw=["src","alt"],vw=["src"],yw=["src"],ww=["src"],Cw=["src"],Aw={class:"col"},Ew={class:"confirmation-content"},kw={key:0,class:"mb-3"},Sw={key:1,class:"text-muted"},xw={key:0,class:"row"},Rw={class:"col-auto"},Mw=["disabled"],Tw={class:"col"},Dw=["disabled"],Ow={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Lw=_e(o.defineComponent({__name:"ConfirmationModal",props:{title:{default:""},message:{default:""},description:{default:""},modalVisibility:{type:Boolean,default:!1},size:{default:""},confirmText:{default:"Да"},cancelText:{default:"Нет"},imageSrc:{default:""},imageAlt:{default:""},loading:{type:Boolean,default:!1},mode:{default:"confirmation"},showButtons:{type:Boolean,default:!0}},emits:["update:modalVisibility","confirm","cancel"],setup(n,{emit:e}){const t=n,i=e,r=d=>{i("update:modalVisibility",d)},s=()=>{switch(t.mode){case"success":return"btn btn-success";case"warning":return"btn btn-warning";case"error":return"btn btn-danger";default:return"btn btn-primary"}},a=()=>{switch(t.mode){case"success":return"Отлично";case"warning":return"Понятно";case"error":return"Понятно";default:return t.confirmText}},l=()=>{t.loading||i("confirm")},u=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},c=d=>{console.warn("Failed to load image:",d.target.src)};return(d,f)=>(o.openBlock(),o.createBlock(_c,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":o.withCtx(()=>[o.createElementVNode("div",pw,[o.createElementVNode("div",mw,[o.createElementVNode("div",gw,[d.imageSrc?(o.openBlock(),o.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,bw)):d.mode==="success"?(o.openBlock(),o.createElementBlock("img",{key:1,class:"w-100",src:o.unref(fw),alt:"Успех",onError:c},null,40,vw)):d.mode==="warning"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"w-100",src:o.unref(hw),alt:"Предупреждение",onError:c},null,40,yw)):d.mode==="error"?(o.openBlock(),o.createElementBlock("img",{key:3,class:"w-100",src:o.unref(dw),alt:"Ошибка",onError:c},null,40,ww)):(o.openBlock(),o.createElementBlock("img",{key:4,class:"w-100",src:o.unref(cw),alt:"Подтверждение",onError:c},null,40,Cw))])]),o.createElementVNode("div",Aw,[o.createElementVNode("div",Ew,[d.message?(o.openBlock(),o.createElementBlock("h5",kw,o.toDisplayString(d.message),1)):o.createCommentVNode("",!0),d.description?(o.openBlock(),o.createElementBlock("p",Sw,o.toDisplayString(d.description),1)):o.createCommentVNode("",!0)])])]),o.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":o.withCtx(()=>[o.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(o.openBlock(),o.createElementBlock("div",xw,[o.createElementVNode("div",Rw,[d.mode==="confirmation"?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},o.toDisplayString(d.cancelText),9,Mw)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Tw,[o.createElementVNode("button",{class:o.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(o.openBlock(),o.createElementBlock("span",Ow)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(a()),1)],10,Dw)])])):o.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),Bw={key:0,class:"filter-modal-wrapper"},Fw={class:"filter-modal-dialog"},_w={class:"filter-modal-content"},Pw={class:"filter-modal-header"},Nw={key:0,class:"filter-modal-title"},Iw={class:"filter-modal-body"},Hw={class:"filter-modal-footer"},Vw=_e(o.defineComponent({__name:"TableFilterModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=()=>{i("emitModalVisibility",!1)},s=a=>{a.key==="Escape"&&r()};return o.watch(()=>t.modalVisibility,a=>{a?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(a,l)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[a.modalVisibility?(o.openBlock(),o.createElementBlock("div",Bw,[o.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),o.createElementVNode("div",Fw,[o.createElementVNode("div",_w,[o.createElementVNode("div",Pw,[a.title?(o.openBlock(),o.createElementBlock("h4",Nw,o.toDisplayString(a.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),o.createElementVNode("div",Iw,[o.renderSlot(a.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",Hw,[o.renderSlot(a.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),zw={key:0,class:"px-0"},jw={class:"modal-dialog modal-dialog-centered modal-xl"},Ww={class:"modal-content py-2 px-4"},Uw={class:"modal-header mb-3"},Gw={class:"modal-title"},Yw={class:"modal-body row"},Qw={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Pc=_e(o.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(o.openBlock(),o.createElementBlock("div",zw,[o.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),o.createElementVNode("div",jw,[o.createElementVNode("div",Ww,[o.createElementVNode("div",Uw,[o.createElementVNode("h3",Gw,o.toDisplayString(t.title),1),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),o.createElementVNode("div",Yw,[o.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",Qw,[o.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),Kw={class:"row mb-4 mx-0","data-test":"PageTitle"},Jw={class:"col-12"},qw={class:"row align-items-center"},$w={class:"col-auto"},Zw={class:"col d-flex justify-content-end"},Xw=_e(o.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",Kw,[o.createElementVNode("div",Jw,[o.createElementVNode("div",qw,[o.createElementVNode("div",$w,[o.createElementVNode("h2",{class:o.normalizeClass(["mb-0",e.titleClass]),style:o.normalizeStyle(e.titleStyle)},o.toDisplayString(e.title),7),e.subtitle?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:o.normalizeStyle(e.subtitleStyle)},o.toDisplayString(e.subtitle),7)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Zw,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),eC={class:"card-body"},tC={class:"card-text"},iC=_e({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",n.bodyClass])},[o.createElementVNode("div",eC,[o.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),o.createElementVNode("p",tC,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),nC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},rC=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("footer",nC,o.toDisplayString(e.copyrightText)+" "+o.toDisplayString(o.unref(we)().year()),1))}}),sC={class:"custom-dropdown"},aC={style:{"border-bottom":"2px solid #000"}},oC={class:"dropdown-list-wrapper"},lC={key:0,class:"custom-dropdown-menu"},uC=["onClick"],ka=_e({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(n){return["actions","profile"].includes(n)}}},setup(n){const e=n,t=o.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},a=o.computed(()=>e.type==="profile");return(l,u)=>(o.openBlock(),o.createElementBlock("div",sC,[a.value?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:i,onBlur:s},[u[0]||(u[0]=o.createElementVNode("div",{class:"circl"},null,-1)),o.createTextVNode(" "+o.toDisplayString(n.title),1)],32)):(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[o.createElementVNode("span",aC,o.toDisplayString(n.title),1),u[1]||(u[1]=o.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),o.createElementVNode("div",oC,[t.value?(o.openBlock(),o.createElementBlock("ul",lC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.links,(c,d)=>(o.openBlock(),o.createElementBlock("li",{key:d},[c.hidden?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onClick:f=>r(c?.action)},o.toDisplayString(c?.title),11,uC))]))),128))])):o.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-efc16eec"]]),cC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,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'/%3e%3c/defs%3e%3c/svg%3e",dC=["src","alt"],Nc=_e(o.defineComponent({__name:"Logo",props:{src:{default:cC},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=o.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=o.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=o.computed(()=>"r3ui-logo-container"),a=o.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3ui-logo-container",s.value])},[o.createElementVNode("img",{src:t.value,alt:l.alt,class:o.normalizeClass(i.value),style:o.normalizeStyle(r.value)},null,14,dC),l.brandText&&l.brandText.trim()&&l.showText?(o.openBlock(),o.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:o.normalizeStyle(a.value)},o.toDisplayString(l.brandText),5)):o.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),hC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},fC={class:"row align-items-center"},pC={class:"col-auto pe-0"},mC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},gC={class:"row"},bC={class:"col-auto d-flex align-items-center"},vC={key:1,class:"text-muted"},yC={class:"col-auto"},wC=_e(o.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,a)=>(o.openBlock(),o.createElementBlock("div",hC,[o.createElementVNode("div",{class:o.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[o.createElementVNode("a",{href:"/",onClick:a[0]||(a[0]=o.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[o.createElementVNode("div",fC,[o.createElementVNode("div",pC,[o.renderSlot(s.$slots,"logo",{},()=>[o.createVNode(Nc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),o.createElementVNode("div",mC,o.toDisplayString(t.brandText),1)])]),o.createElementVNode("div",gC,[o.createElementVNode("div",bC,[t.isAuthenticated?(o.openBlock(),o.createBlock(ka,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):o.createCommentVNode("",!0),t.isAuthenticated?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vC,o.toDisplayString(t.loginText),1))]),o.createElementVNode("div",yC,[o.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),CC={class:"col-12 divider divider__wrapper","data-test":"Divider"},Sa={__name:"Divider",props:{height:{type:[Number,String],default:4},className:{type:String,default:"mb-4"},colorHEX:{type:String,default:"#EFEFEF"}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("div",CC,[o.createElementVNode("div",{class:o.normalizeClass(e.className),style:o.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},AC=n=>{const e=o.inject("sidebarContentVisibility"),t=o.inject("toggleSidebar"),i=o.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=o.computed(()=>n.value),a=()=>{if(i.value={},!e?.value)return;const l=u=>{u.childrens?.length&&u.childrens.forEach(l),u.isActive&&u.uniqueKey&&r(u.uniqueKey,u.level)};n.value.forEach(l)};return o.provide("expandAccordion",r),o.provide("expandedAccordion",i),o.watch(n,()=>{a()},{deep:!0}),o.watch(()=>e?.value,()=>{a()},{deep:!0}),o.onMounted(()=>{a()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},EC={key:0},kC=["href","target","rel"],SC=["innerHTML"],xC={key:1},RC=["id"],MC=["innerHTML"],TC=["id"],DC={class:"accordion-body"},Ic=_e(o.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?a.openInNewWindow!==!1?window.open(a.href,"_blank","noopener,noreferrer"):window.location.href=a.href:t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("SidebarLink",!0);return o.openBlock(),o.createElementBlock("div",null,[n.sidebarLink.childrens?.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",EC,[o.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"_blank":void 0,rel:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=o.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.sidebarLink.level===0?"nested-links":"extended-menu-item",n.sidebarLink.isActive?"fw-bolder":""]]),style:{background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,SC),o.createElementVNode("span",null,o.toDisplayString(n.sidebarLink.label),1)],2)):o.createCommentVNode("",!0)],8,kC)])),n.sidebarLink.childrens?.length?(o.openBlock(),o.createElementBlock("div",xC,[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[o.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:o.unref(r)&&o.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>o.unref(i)&&o.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,MC),o.createTextVNode(" "+o.toDisplayString(n.sidebarLink.label),1)],2)],8,RC),o.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:o.normalizeClass(["accordion-collapse collapse",{show:o.unref(r)&&o.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[o.createElementVNode("div",DC,[o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.sidebarLink.childrens,c=>(o.openBlock(),o.createElementBlock("li",{key:c.uniqueKey},[o.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,TC)],2)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-0a6fd930"]]),OC={key:0},LC={key:0},BC=["title"],FC=["innerHTML"],_C={key:1},PC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},NC={class:"hidden-div"},IC={key:1},HC=["href","target","rel"],VC=["title"],zC=["innerHTML"],jC={key:0,class:"ms-2"},WC={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},UC={key:0,class:"ms-2"},Hc=_e(o.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?a.openInNewWindow!==!1?window.open(a.href,"_blank","noopener,noreferrer"):window.location.href=a.href:t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(o.openBlock(),o.createElementBlock("div",OC,[n.link.childrens?.length?(o.openBlock(),o.createElementBlock("div",LC,[o.createElementVNode("button",{title:n.link.label,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.link.icon?"icon":"text-align-left bg-white"]]),type:"button",onClick:l[0]||(l[0]=c=>o.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,FC)):(o.openBlock(),o.createElementBlock("span",_C,o.toDisplayString(n.link.label),1))],10,BC),o.unref(r)&&o.unref(r)[n.link.level]===n.link.uniqueKey?(o.openBlock(),o.createElementBlock("div",PC,[o.createElementVNode("div",NC,[o.createElementVNode("h5",null,o.toDisplayString(n.link.label),1),l[3]||(l[3]=o.createElementVNode("hr",{size:"1"},null,-1)),o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.link.childrens,c=>(o.openBlock(),o.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[o.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",IC,[o.createElementVNode("a",{href:n.link.href,target:n.link.isExternal&&n.link.openInNewWindow!==!1?"_blank":void 0,rel:n.link.isExternal&&n.link.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=o.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(o.openBlock(),o.createElementBlock("button",{key:0,title:n.link.label,class:"btn btn-light w-100 text-start border-0",type:"button",style:{padding:"15px 20px",background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.link.icon},null,8,zC),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",jC,"↗")):o.createCommentVNode("",!0)],8,VC)):(o.openBlock(),o.createElementBlock("button",WC,[o.createElementVNode("span",null,o.toDisplayString(n.link.label),1),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",UC,"↗")):o.createCommentVNode("",!0)]))],8,HC)]))])):o.createCommentVNode("",!0)}}}),[["__scopeId","data-v-6d9f8db2"]]),GC={key:0},YC={class:"accordion accordion-flush",id:"accordionMenu"},QC={key:1},KC={class:"row"},JC={class:"col-12"},qC={class:"sidebar-footer p-3"},Vc=o.defineComponent({__name:"Sidebar",props:{links:{type:Array,required:!0},isCollapsed:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:a}=AC(o.computed(()=>t.links));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{id:"sidebarContent",class:o.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(o.openBlock(),o.createElementBlock("div",GC,[o.createElementVNode("div",YC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Ic,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",QC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Hc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),o.createElementVNode("div",KC,[o.createElementVNode("div",JC,[o.createVNode(Sa)])]),o.createElementVNode("div",qC,[o.renderSlot(l.$slots,"footer")])],2))}}),$C=n=>{const e=o.ref(!0),t=o.ref(null),i=o.ref(null),r=o.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},a=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():a()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():a()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;d>0&&f>0&&(i.value=d-f-20)},50)};return o.provide("sidebarContentVisibility",e),o.provide("toggleSidebar",l),o.watch(r,()=>{c()},{deep:!0}),o.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},ZC={class:"container-fluid p-0"},XC={class:"py-4",style:{"min-height":"90vh"}},eA=o.defineComponent({__name:"MainComponent",props:{sidebarLinks:{type:Array,required:!0},isAuthenticated:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,{contentWidth:r,clientWidth:s,sidebarWidth:a,sidebarContentVisibility:l}=$C(o.computed(()=>t.isAuthenticated));return(u,c)=>(o.openBlock(),o.createElementBlock("div",ZC,[o.createElementVNode("div",{class:o.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(o.openBlock(),o.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:o.normalizeStyle(`background: #efefef; transition: .2s; width:${o.unref(a)}px;`)},[o.createVNode(Vc,{links:t.sidebarLinks,"is-collapsed":!o.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{id:"content-div",style:o.normalizeStyle(`transition: .2s; width:${o.unref(r)}px;`)},[o.createElementVNode("div",XC,[o.renderSlot(u.$slots,"breadcrumbs"),o.renderSlot(u.$slots,"default")])],4)],2)]))}}),tA={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},iA={class:"col"},nA={"aria-label":"breadcrumb"},rA={class:"breadcrumb row"},sA=["aria-current"],aA=["href","onClick"],oA={key:1,class:"text-nowrap"},lA=_e(o.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(o.openBlock(),o.createElementBlock("div",tA,[o.createElementVNode("div",iA,[o.createElementVNode("nav",nA,[o.createElementVNode("ol",rA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.crumbs,(a,l)=>(o.openBlock(),o.createElementBlock("li",{key:l,class:o.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:a.isActive}]),"aria-current":a.isActive?"page":void 0},[a.isActive?(o.openBlock(),o.createElementBlock("span",oA,o.toDisplayString(a.text),1)):(o.openBlock(),o.createElementBlock("a",{key:0,href:a.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:o.withModifiers(()=>i("navigate",a.href),["prevent"])},o.toDisplayString(a.text),9,aA))],10,sA))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),uA={key:0,class:"card-header"},cA={class:"card-title mb-0"},dA={class:"card-body"},hA={class:"row"},fA={class:"row align-items-center"},pA={class:"col-auto label pe-0"},mA={class:"col-auto"},gA={key:0,class:"mt-3"},bA=_e(o.defineComponent({__name:"CardInfo",props:{title:{default:""},fields:{default:()=>[]},cardClass:{default:""},variant:{default:"default"},size:{default:"md"},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>{const i=["card-info"];return e.variant!=="default"&&i.push(`card-info--${e.variant}`),e.size!=="md"&&i.push(`card-info--${e.size}`),e.bordered&&i.push("card-info--bordered"),e.shadow&&i.push("card-info--shadow"),e.cardClass&&i.push(e.cardClass),i.join(" ")});return(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",t.value])},[i.title?(o.openBlock(),o.createElementBlock("div",uA,[o.createElementVNode("h5",cA,o.toDisplayString(i.title),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",dA,[o.createElementVNode("div",hA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.fields,(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"col-12 mb-2",key:a},[o.createElementVNode("div",fA,[o.createElementVNode("div",pA,o.toDisplayString(s.label)+":",1),o.createElementVNode("div",mA,[o.createElementVNode("span",{class:o.normalizeClass(["value",s.valueClass]),style:o.normalizeStyle(s.valueStyle)},o.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(o.openBlock(),o.createElementBlock("div",gA,[o.renderSlot(i.$slots,"default",{},void 0,!0)])):o.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),vA={class:"page-card"},yA={class:"row hide-to-print card-header mx-0 w-100"},wA={class:"col"},CA={class:"row flex-nowrap align-items-center"},AA={class:"col-auto"},EA={key:0,class:"col-auto"},kA={class:"row",style:{padding:"20px"}},SA={class:"d-flex align-items-start"},xA={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},RA=["onClick"],MA={class:"tab-content",id:"v-pills-tabContent"},TA={key:0,class:"title"},DA={key:1},OA={key:0},LA={key:0},BA=["title"],FA={key:2},_A={class:"row"},PA={class:"col-12"},NA=_e(o.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(0),s=o.useSlots(),a=d=>{i("click",d)},l=o.computed(()=>!!s.header),u=o.computed(()=>!!s.footer),c=d=>{r.value=d,i("active-tab",t.tabs[d])};return o.onMounted(()=>{}),(d,f)=>(o.openBlock(),o.createElementBlock("div",vA,[o.createElementVNode("div",yA,[o.createElementVNode("div",wA,[o.createElementVNode("div",CA,[o.createElementVNode("div",AA,[l.value?o.renderSlot(d.$slots,"header",{key:0},void 0,!0):o.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(o.openBlock(),o.createElementBlock("div",EA,[o.createVNode(ka,{title:d.actionsTitle,links:d.actionLinks,onClick:a},null,8,["title","links"])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",kA,[o.createElementVNode("div",SA,[o.createElementVNode("div",xA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.tabs,(p,h)=>o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:h,class:o.normalizeClass(["nav-link me-5",[h===r.value?"active":""]]),onClick:S=>c(h)},o.toDisplayString(p.navLink),11,RA)),[[o.vShow,p.navLink]])),128))]),o.createElementVNode("div",MA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.tabs,(p,h)=>(o.openBlock(),o.createElementBlock("div",{key:h,class:o.normalizeClass(["tab-pane fade row",[h===r.value?"show active d-flex":""]])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.contents,(S,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:o.normalizeClass(`col-${d.col} mb-3`)},[S.subtitle?(o.openBlock(),o.createElementBlock("div",TA,o.toDisplayString(S.subtitle)+": ",1)):o.createCommentVNode("",!0),!S.type||S.type==="text"?(o.openBlock(),o.createElementBlock("div",DA,[typeof S.text=="string"?(o.openBlock(),o.createElementBlock("div",OA,o.toDisplayString(S.text),1)):S.text?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(S.text,(A,b)=>(o.openBlock(),o.createElementBlock("div",{key:b},[typeof A=="string"?(o.openBlock(),o.createElementBlock("div",LA,o.toDisplayString(A),1)):o.createCommentVNode("",!0),typeof A=="object"?(o.openBlock(),o.createElementBlock("div",{key:1,title:A?.description||""},o.toDisplayString(A.name),9,BA)):o.createCommentVNode("",!0)]))),128)):o.createCommentVNode("",!0)])):S.type==="custom"&&S.slotName?(o.openBlock(),o.createElementBlock("div",FA,[o.renderSlot(d.$slots,S.slotName,{content:S},void 0,!0)])):o.createCommentVNode("",!0)],2))),128))],2))),128))])]),u.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(Sa,{class:"mt-3"}),o.createElementVNode("div",_A,[o.createElementVNode("div",PA,[o.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):o.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-92e92458"]]),IA={key:0,class:"row w-100 parent"},HA={class:"col-12 wrapper w-100"},VA=["innerHTML"],zc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=o.ref(e.message);o.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(o.openBlock(),o.createElementBlock("div",IA,[o.createElementVNode("div",HA,[o.createElementVNode("div",{class:o.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,VA),o.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):o.createCommentVNode("",!0)}},zA={key:0,class:"row","data-test":"ErrorMessageComponent"},jA={class:"col-12",id:"alert"},WA={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},UA=["innerHTML"],GA=_e(o.defineComponent({__name:"ErrorMessageComponent",props:{message:{default:""},warningIcon:{type:Boolean,default:!1},type:{default:"danger"},asHtml:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>e.message===null||e.message===void 0?!1:Array.isArray(e.message)?e.message.length>0:!!(e.message&&typeof e.message=="string"&&e.message.length>0&&e.message.trim()!=="")),i=o.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(o.openBlock(),o.createElementBlock("div",zA,[o.createElementVNode("div",jA,[o.createElementVNode("div",{class:o.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(o.openBlock(),o.createElementBlock("i",WA)):o.createCommentVNode("",!0),r.asHtml?(o.openBlock(),o.createElementBlock("div",{key:1,innerHTML:i.value},null,8,UA)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(i.value),1)],64))],2)])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),YA={class:"accordion-header",style:{background:"transparent"}},QA=["aria-expanded","aria-controls"],KA={key:0},JA=["id"],qA={class:"accordion-body px-0"},$A=_e(o.defineComponent({__name:"DefaultAccordion",props:{title:{},titleFontSize:{default:16},isCollapsed:{type:Boolean,default:!0},isVisibleBorderBottom:{type:Boolean,default:!0},isCollapsedDefault:{type:Boolean,default:!0},isTitleBold:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["update-visibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=o.ref(Math.random().toString(36).substr(2,9)),a=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return o.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[o.createElementVNode("div",{class:o.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[o.createElementVNode("h2",YA,[o.createElementVNode("button",{onClick:l,class:o.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:o.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},o.toDisplayString(u.title),15,QA)]),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[a("accordion-body")?(o.openBlock(),o.createElementBlock("div",KA,[o.withDirectives(o.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[o.createElementVNode("div",qA,[o.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,JA),[[o.vShow,!u.isCollapsed]])])):o.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),ZA={class:"accordion-header",style:{background:"transparent"}},XA=["onClick"],eE={class:"d-flex align-items-center w-100"},tE={class:"d-flex align-items-center flex-grow-1"},iE=["value","id","onChange"],nE={class:"form-check-label ps-2 text-body flex-grow-1"},rE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},sE={class:"col d-flex flex-wrap px-4"},aE={class:"form-check"},oE=["value","id"],lE=["for"],uE=_e(o.defineComponent({__name:"KindCheckboxesAccordion",props:{checkboxName:{default:"kinds"},kindGroups:{default:()=>[]},defaultSelectedKinds:{default:()=>[]},defaultSelectedKindGroups:{default:()=>[]}},emits:["emitSelectedKinds","emitSelectedKindGroups"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref([]),a=o.ref([]),l=o.ref(null),u=o.ref([]),c=(S,m)=>{const A=S.target;if(A.tagName==="INPUT"||A.closest(".form-check-input"))return!1;if(A.tagName==="SPAN"||A.closest(".form-check-label"))return l.value!==Number(m)?(l.value=Number(m),!0):(l.value=null,!0);if(l.value!==Number(m))return l.value=Number(m),!0;l.value=null},d=S=>{const m=i.kindGroups.find(b=>b.id===S);if(!m)return;if(s.value.includes(String(S))){const b=m.kinds.map(M=>String(M.id)),g=[...a.value];b.forEach(M=>{g.includes(M)||g.push(M)}),a.value=g}else{const b=m.kinds.map(g=>String(g.id));a.value=a.value.filter(g=>!b.includes(String(g)))}},f=()=>{o.nextTick(()=>{p()})},p=()=>{const S=[];i.kindGroups.forEach((b,g)=>{const M=u.value?.[g];if(!M)return;const v=b.kinds.map(y=>String(y.id)),R=a.value.filter(y=>v.includes(String(y)));R.length===0?(M.indeterminate=!1,M.checked=!1):R.length===v.length?(M.indeterminate=!1,M.checked=!0,S.push(String(b.id))):(M.indeterminate=!0,M.checked=!1)});const m=s.value.map(String).sort(),A=S.map(String).sort();JSON.stringify(m)!==JSON.stringify(A)&&(s.value=S)};o.watch(()=>a.value,S=>{r("emitSelectedKinds",S)},{deep:!0}),o.watch(()=>s.value,S=>{r("emitSelectedKindGroups",S)},{deep:!0}),o.onMounted(()=>{i.defaultSelectedKinds.length>0&&(a.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),o.nextTick(()=>{p()})});const h=o.computed(()=>c);return e({toggleAccordion:c}),(S,m)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups,(A,b)=>(o.openBlock(),o.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:A.id},[S.kindGroups[b].kinds.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",ZA,[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(b)}]),type:"button",style:{background:"transparent"},onClick:g=>h.value(g,b)},[o.createElementVNode("div",eE,[o.createElementVNode("div",tE,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${A.id}`,id:`${S.checkboxName}_${b}`,name:"kind_group","onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),onClick:m[1]||(m[1]=o.withModifiers(()=>{},["stop"])),onChange:g=>d(A.id)},null,40,iE),[[o.vModelCheckbox,s.value]]),o.createElementVNode("span",nE,o.toDisplayString(A.name),1)]),o.createElementVNode("i",{class:o.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(b)}])},null,2)])],10,XA)]),o.withDirectives(o.createElementVNode("div",rE,[o.createElementVNode("div",sE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups[b].kinds,(g,M)=>(o.openBlock(),o.createElementBlock("div",{class:"col-6 mb-2",key:M},[o.createElementVNode("div",aE,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${g.id}`,id:`${S.checkboxName}_${g.id}`,name:"kinds","onUpdate:modelValue":m[2]||(m[2]=v=>a.value=v),onChange:f},null,40,oE),[[o.vModelCheckbox,a.value]]),o.createElementVNode("label",{class:"form-check-label",for:`${S.checkboxName}_${g.id}`},[o.createElementVNode("small",null,o.toDisplayString(g.name),1)],8,lE)])]))),128))])],512),[[o.vShow,l.value===Number(b)]])],64)):o.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class ht{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 Xe{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 r=e?t.split(e):[t],s=r.length,a;for(let l=0;l<s&&(i=i[r[l]],a=i,!!i);l++);return a}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var a in e){let l=e[a],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[a]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[a]=this.deepClone(l,c,i)))}return t}}let cE=class bd extends ht{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,r=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=Xe.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Xe.elOffset(e),r,s,a;switch(this.container!==document.body&&(r=Xe.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,a=i.top-1;break;case"bottom":s=i.left,a=i.top+e.offsetHeight;break;case"left":s=i.left,a=i.top-1;break;case"top":s=i.left,a=i.top;break;case"center":s=i.left+e.offsetWidth/2,a=i.top+e.offsetHeight/2;break}return{x:s,y:a,offset:i}}show(e,t){var i,r,s,a,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),a=l.offset,i=l.x,r=l.y):typeof e=="number"?(a={top:0,left:0},i=e,r=t):(l=this.containerEventCoords(e),i=l.x,r=l.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,r,s,a,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",u=>{u.stopPropagation()}),this)}_fitToScreen(e,t,i,r,s){var a=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-r.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,a?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(s){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 bd(this.table,e,this),this.childPopup}};class ze extends ht{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(r=>r.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 cE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var dE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class lr extends ze{static moduleName="accessor";static accessors=dE;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(r=>{var s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1)),a;e.definition[s]&&(a=this.lookupAccessor(e.definition[s]),a&&(t=!0,i[s]={accessor:a,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":lr.accessors[e]?t=lr.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)),r=e.getComponent(),s=Xe.deepClone(e.data||{});return this.table.columnManager.traverse(function(a){var l,u,c,d;a.modules.accessor&&(u=a.modules.accessor[i]||a.modules.accessor.accessor||!1,u&&(l=a.getFieldValue(s),l!="undefined"&&(d=a.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,a.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var hE={method:"GET"};function xa(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(xa(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(xa(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function fE(n){var e=xa(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function jc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+fE(t)),n}function pE(n,e,t){var i;return new Promise((r,s)=>{if(n=this.urlGenerator.call(this.table,n,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 a in i.headers)e.headers||(e.headers={}),typeof e.headers[a]>"u"&&(e.headers[a]=i.headers[a]);e.body=i.body.call(this,n,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);n?(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(n,e).then(l=>{l.ok?l.json().then(u=>{r(u)}).catch(u=>{s(u),console.warn("Ajax Load Error - Invalid JSON returned",u)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),s(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),s(l)})):(console.warn("Ajax Load Error - No URL Set"),r([]))})}function Ra(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ra(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ra(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var mE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Ra(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class Qi extends ze{static moduleName="ajax";static defaultConfig=hE;static defaultURLGenerator=jc;static defaultLoaderPromise=pE;static contentTypeFormatters=mE;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=Qi.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Qi.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Qi.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,r){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),r=Object.assign(Object.assign({},s),r)),r}requestDataCheck(e,t,i,r){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,r,s){var a;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),a=this.generateConfig(i),this.sendRequest(this.url,t,a)):s}setDefaultConfig(e={}){this.config=Object.assign({},Qi.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(r=>(this.table.options.ajaxResponse&&(r=this.table.options.ajaxResponse.call(this.table,e,t,r)),r)):Promise.reject()}}var gE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},bE={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
|
|
32
32
|
`),n.forEach(function(a){e.push(a.split(" "))}),e.length&&!(e.length===1&&e[0].length<2)?(e[0].forEach(function(a){var l=i.find(function(u){return a&&u.definition.title&&a.trim()&&u.definition.title.trim()===a.trim()});l?r.push(l):t=!1}),t||(t=!0,r=[],e[0].forEach(function(a){var l=i.find(function(u){return a&&u.field&&a.trim()&&u.field.trim()===a.trim()});l?r.push(l):t=!1}),t||(r=this.table.columnManager.columnsByIndex)),t&&e.shift(),e.forEach(function(a){var l={};a.forEach(function(u,c){r[c]&&(l[r[c].field]=u)}),s.push(l)}),s):!1}},vE={copyToClipboard:["ctrl + 67","meta + 67"]},yE={copyToClipboard:function(n){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},wE={keybindings:{bindings:vE,actions:yE}};class ur extends ze{static moduleName="clipboard";static moduleExtensions=wE;static pasteActions=gE;static pasteParsers=bE;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,r;this.blocked||(e.preventDefault(),this.customSelection?(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t))):(r=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),i=this.table.modules.export.generateHTMLTable(r),t=i?this.generatePlainContent(r):"",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 r=[];i.columns.forEach(s=>{var a="";if(s)if(i.type==="group"&&(s.value=s.component.getKey()),s.value===null)a="";else switch(typeof s.value){case"object":a=JSON.stringify(s.value);break;case"undefined":a="";break;default:a=s.value}r.push(a)}),t.push(r.join(" "))}),t.join(`
|
|
33
33
|
`)}copy(e,t){var i,r;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"&&(r=document.body.createTextRange(),r.moveToElementText(this.table.element),r.select()),document.execCommand("copy"),i&&i.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=ur.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=ur.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,r;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),i=this.pasteParser.call(this,t),i?(e.preventDefault(),this.table.modExists("mutator")&&(i=this.mutateData(i)),r=this.pasteAction.call(this,i),this.dispatchExternal("clipboardPasted",t,i,r)):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}}class CE{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,r){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 Wc{constructor(e){return this._cell=e,new Proxy(this,{get:function(t,i,r){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 Cn extends ht{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"},r={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=r[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass){var s=this.column.definition.cssClass.split(" ");s.forEach(a=>{e.classList.add(a)})}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 r=this.setValueProcessData(e,t,i);r&&(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 r=!1;return(this.value!==e||i)&&(r=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),r&&this.dispatch("cell-value-changed",this),r}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 Wc(this)),this.component}}class Uc{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(t,i,r){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 Gc={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};class Kt extends ht{static defaultOptionList=Gc;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((r,s)=>{var a=new Kt(r,this);this.attachColumn(a)}),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(Kt.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{Kt.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",r=>{r.stopPropagation(),i.focus()}),i.addEventListener("mousedown",r=>{r.stopPropagation()}),i.addEventListener("change",()=>{e.title=i.value,this.dispatchExternal("columnTitleChanged",this.getComponent())}),t.appendChild(i),e.field?this.langBind("columns|"+e.field,r=>{i.value=r||e.title||" "}):i.value=e.title||" "}else e.field?this.langBind("columns|"+e.field,r=>{this._formatColumnHeaderTitle(t,r||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,r=i.length,s;for(let a=0;a<r&&(t=t[i[a]],s=t,!!t);a++);return s}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var i=e,r=this.fieldStructure,s=r.length;for(let a=0;a<s;a++)if(a==s-1)i[r[a]]=t;else{if(!i[r[a]])if(typeof t<"u")i[r[a]]={};else break;i=i[r[a]]}}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(r){r.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(r){r.delete()}),this.dispatch("column-delete",this);var i=this.cells.length;for(let r=0;r<i;r++)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 Cn(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(r=>{r.clearWidth()}));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach(r=>{var s=r.getWidth();s>t&&(t=s)}),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 Uc(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Kt?this.parent.getComponent():!1}}class cr{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,r){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 mt extends ht{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&&Xe.elVisible(this.element),i={},r;return new Promise((s,a)=>{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)),r=this.chain("row-data-changing",[this,i,e],null,e);for(let l in r)this.data[l]=r[l];this.dispatch("row-data-save-after",this);for(let l in e)this.table.columnManager.getColumnsByFieldRoot(l).forEach(c=>{let d=this.getCell(c.getField());if(d){let f=c.getFieldValue(r);d.getValue()!==f&&(d.setValueProcessData(f),t&&d.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()),s()})}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 cr(this)),this.component}}var AE={avg:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:2;return n.length&&(i=n.reduce(function(s,a){return Number(s)+Number(a)}),i=i/n.length,i=r!==!1?i.toFixed(r):i),parseFloat(i).toString()},max:function(n,e,t){var i=null,r=typeof t.precision<"u"?t.precision:!1;return n.forEach(function(s){s=Number(s),(s>i||i===null)&&(i=s)}),i!==null?r!==!1?i.toFixed(r):i:""},min:function(n,e,t){var i=null,r=typeof t.precision<"u"?t.precision:!1;return n.forEach(function(s){s=Number(s),(s<i||i===null)&&(i=s)}),i!==null?r!==!1?i.toFixed(r):i:""},sum:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:!1;return n.length&&n.forEach(function(s){s=Number(s),i+=isNaN(s)?0:Number(s)}),r!==!1?i.toFixed(r):i},concat:function(n,e,t){var i=0;return n.length&&(i=n.reduce(function(r,s){return String(r)+String(s)})),i},count:function(n,e,t){var i=0;return n.length&&n.forEach(function(r){r&&i++}),i},unique:function(n,e,t){var i=n.filter((r,s)=>(n||r===0)&&n.indexOf(r)===s);return i.length}};class Ki extends ze{static moduleName="columnCalcs";static calculations=AE;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 Kt({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":Ki.calculations[t.topCalc]?i.topCalc=Ki.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":Ki.calculations[t.bottomCalc]?i.botCalc=Ki.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,r=this.table.modules.dataTree;return e.forEach(s=>{t.push(s.getData()),i&&s.modules.dataTree?.open&&this.rowsToData(r.getFilteredTreeChildren(s)).forEach(a=>{t.push(s)})}),t}generateRow(e,t){var i=this.generateRowData(e,t),r;return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),r=new mt(i,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),r.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),r.component=!1,r.getComponent=()=>(r.component||(r.component=new CE(r)),r.component),r.generateCells=()=>{var s=[];this.table.columnManager.columnsByIndex.forEach(a=>{this.genColumn.setField(a.getField()),this.genColumn.hozAlign=a.hozAlign,a.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(a.definition[e+"CalcFormatter"]),params:a.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=a.definition.cssClass;var l=new Cn(this.genColumn,r);l.getElement(),l.column=a,l.setWidth(),a.cells.push(l),s.push(l),a.visible||l.hide()}),r.cells=s},r}generateRowData(e,t){var i={},r=e=="top"?this.topCalcs:this.botCalcs,s=e=="top"?"topCalc":"botCalc",a,l;return r.forEach(function(u){var c=[];u.modules.columnCalcs&&u.modules.columnCalcs[s]&&(t.forEach(function(d){c.push(u.getFieldValue(d))}),l=s+"Params",a=typeof u.modules.columnCalcs[l]=="function"?u.modules.columnCalcs[l](c,t):u.modules.columnCalcs[l],u.setFieldValue(i,u.modules.columnCalcs[s](c,t,a)))}),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(),r={},s={};return i.forEach(a=>{r[a.getKey()]=this.getGroupResults(a)}),s={top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:r},s}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}}class EE extends ze{static moduleName="dataTree";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,r){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(i,r){return t.dataTreeStartExpanded[r]};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),r=i||!i&&typeof t=="object"&&t!==null;!r&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!r&&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:r?e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0):!1,controlEl:e.modules.dataTree&&r?e.modules.dataTree.controlEl:!1,branchEl:e.modules.dataTree&&r?e.modules.dataTree.branchEl:!1,parent:e.modules.dataTree?e.modules.dataTree.parent:!1,children:r}}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(),r=e.modules.dataTree;r.branchEl&&(r.branchEl.parentNode&&r.branchEl.parentNode.removeChild(r.branchEl),r.branchEl=!1),r.controlEl&&(r.controlEl.parentNode&&r.controlEl.parentNode.removeChild(r.controlEl),r.controlEl=!1),this.generateControlElement(e,i),e.getElement().classList.add("tabulator-tree-level-"+r.index),r.index&&(this.branchEl?(r.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(r.branchEl,i.firstChild),this.table.rtl?r.branchEl.style.marginRight=(r.branchEl.offsetWidth+r.branchEl.style.marginLeft)*(r.index-1)+r.index*this.indent+"px":r.branchEl.style.marginLeft=(r.branchEl.offsetWidth+r.branchEl.style.marginRight)*(r.index-1)+r.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+r.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+r.index*this.indent+"px")}generateControlElement(e,t){var i=e.modules.dataTree,r=i.controlEl;t=t||e.getCells()[0].getElement(),i.children!==!1&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",s=>{s.stopPropagation(),this.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",s=>{s.stopPropagation(),this.expandRow(e)})),i.controlEl.addEventListener("mousedown",s=>{s.stopPropagation()}),r&&r.parentNode===t?r.parentNode.replaceChild(i.controlEl,r):t.insertBefore(i.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach((i,r)=>{var s,a;t.push(i),i instanceof mt&&(i.create(),s=i.modules.dataTree,!s.index&&s.children!==!1&&(a=this.getChildren(i,!1,!0),a.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var r=e.modules.dataTree,s=[],a=[];return r.children!==!1&&(r.open||t)&&(Array.isArray(r.children)||(r.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?s=this.table.modules.filter.filter(r.children):s=r.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(s,i),s.forEach(l=>{a.push(l);var u=this.getChildren(l,!1,!0);u.forEach(c=>{a.push(c)})})),a}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(r=>{var s=new mt(r||{},this.table.rowManager);s.create(),s.modules.dataTree.index=e.modules.dataTree.index+1,s.modules.dataTree.parent=e,s.modules.dataTree.children&&(s.modules.dataTree.open=this.startOpen(s.getComponent(),s.modules.dataTree.index)),t.push(s)}),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=[],r;return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?r=this.table.modules.filter.filter(t.children):r=t.children,r.forEach(s=>{s instanceof mt&&i.push(s)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof mt&&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,r){var s=!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 r<"u"&&(s=this.findChildIndex(r,e),s!==!1&&e.data[this.field].splice(i?s:s+1,0,t)),s===!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 mt?i=e.data:e instanceof cr?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(r=>r instanceof mt?r.element===e:!1),i&&(i=i.data)):e===null&&(i=!1):typeof e>"u"?i=!1:i=t.data[this.field].find(r=>r.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 r=e.modules.dataTree,s=[];return r&&r.children&&(Array.isArray(r.children)||(r.children=this.generateChildren(e)),r.children.forEach(a=>{a instanceof mt&&(s.push(t?a.getComponent():a),i&&this.getTreeChildren(a,t,i).forEach(l=>{s.push(l)}))})),s}getChildField(){return this.field}redrawNeeded(e){return(this.field?typeof e[this.field]<"u":!1)||(this.elementField?typeof e[this.elementField]<"u":!1)}}function kE(n,e={},t){var i=e.delimiter?e.delimiter:",",r=[],s=[];n.forEach(a=>{var l=[];switch(a.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":a.columns.forEach((u,c)=>{u&&u.depth===1&&(s[c]=typeof u.value>"u"||u.value===null?"":'"'+String(u.value).split('"').join('""')+'"')});break;case"row":a.columns.forEach(u=>{if(u){switch(typeof u.value){case"object":u.value=u.value!==null?JSON.stringify(u.value):"";break;case"undefined":u.value="";break}l.push('"'+String(u.value).split('"').join('""')+'"')}}),r.push(l.join(i));break}}),s.length&&r.unshift(s.join(i)),r=r.join(`
|
|
34
|
-
`),e.bom&&(r="\uFEFF"+r),t(r,"text/csv")}function SE(n,e,t){var i=[];n.forEach(r=>{var s={};switch(r.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":r.columns.forEach(a=>{a&&(s[a.component.getTitleDownload()||a.component.getField()]=a.value)}),i.push(s);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function xE(n,e={},t){var i=[],r=[],s={},a=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},l=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},u=e.jsPDF||{},c=e.title?e.title:"",d,f;u.orientation||(u.orientation=e.orientation||"landscape"),u.unit||(u.unit="pt"),n.forEach(h=>{switch(h.type){case"header":i.push(p(h));break;case"group":r.push(p(h,a));break;case"calc":r.push(p(h,l));break;case"row":r.push(p(h));break}});function p(h,S){var m=[];return h.columns.forEach(
|
|
35
|
-
`),"application/x-ndjson")}var DE={csv:kE,json:SE,jsonLines:TE,pdf:xE,xlsx:RE,html:ME};class dr extends ze{static moduleName="download";static downloaders=DE;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,r){this.download(e,t,i,r,!0)}download(e,t,i,r,s){var a=!1;function l(c,d){s?s===!0?this.triggerDownload(c,d,e,t,!0):s(c):this.triggerDownload(c,d,e,t)}if(typeof e=="function"?a=e:dr.downloaders[e]?a=dr.downloaders[e]:console.warn("Download Error - No such download type found: ",e),a){var u=this.generateExportList(r);a.call(this.table,u,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(r=>{var s;r.type==="group"&&(s=r.columns[0],i&&i[r.indent]&&(s.value=i[r.indent](s.value,r.component._group.getRowCount(),r.component._group.getData(),r.component)))}),t}triggerDownload(e,t,i,r,s){var a=document.createElement("a"),l=this.table.options.downloadEncoder(e,t);l&&(s?window.open(window.URL.createObjectURL(l)):(r=r||"Tabulator."+(typeof i=="function"?"txt":i),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(l,r):(a.setAttribute("href",window.URL.createObjectURL(l)),a.setAttribute("download",r),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a))),this.dispatchExternal("downloadComplete"))}commsReceived(e,t,i){switch(t){case"intercept":this.download(i.type,"",i.options,i.active,i.intercept);break}}}function hr(n,e){var t=e.mask,i=typeof e.maskLetterChar<"u"?e.maskLetterChar:"A",r=typeof e.maskNumberChar<"u"?e.maskNumberChar:"9",s=typeof e.maskWildcardChar<"u"?e.maskWildcardChar:"*";function a(l){var u=t[l];typeof u<"u"&&u!==s&&u!==i&&u!==r&&(n.value=n.value+""+u,a(l+1))}n.addEventListener("keydown",l=>{var u=n.value.length,c=l.key;if(l.keyCode>46&&!l.ctrlKey&&!l.metaKey){if(u>=t.length)return l.preventDefault(),l.stopPropagation(),!1;switch(t[u]){case i:if(c.toUpperCase()==c.toLowerCase())return l.preventDefault(),l.stopPropagation(),!1;break;case r:if(isNaN(c))return l.preventDefault(),l.stopPropagation(),!1;break;case s:break;default:if(c!==t[u])return l.preventDefault(),l.stopPropagation(),!1}}}),n.addEventListener("keyup",l=>{l.keyCode>46&&e.maskAutoFill&&a(n.value.length)}),n.placeholder||(n.placeholder=t),e.maskAutoFill&&a(n.value.length)}function OE(n,e,t,i,r){var s=n.getValue(),a=document.createElement("input");if(a.setAttribute("type",r.search?"search":"text"),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let u in r.elementAttributes)u.charAt(0)=="+"?(u=u.slice(1),a.setAttribute(u,a.getAttribute(u)+r.elementAttributes["+"+u])):a.setAttribute(u,r.elementAttributes[u]);a.value=typeof s<"u"?s:"",e(function(){n.getType()==="cell"&&(a.focus({preventScroll:!0}),a.style.height="100%",r.selectContents&&a.select())});function l(u){(s===null||typeof s>"u")&&a.value!==""||a.value!==s?t(a.value)&&(s=a.value):i()}return a.addEventListener("change",l),a.addEventListener("blur",l),a.addEventListener("keydown",function(u){switch(u.keyCode){case 13:l();break;case 27:i();break;case 35:case 36:u.stopPropagation();break}}),r.mask&&hr(a,r),a}function LE(n,e,t,i,r){var s=n.getValue(),a=r.verticalNavigation||"hybrid",l=String(s!==null&&typeof s<"u"?s:""),u=document.createElement("textarea"),c=0;if(u.style.display="block",u.style.padding="2px",u.style.height="100%",u.style.width="100%",u.style.boxSizing="border-box",u.style.whiteSpace="pre-wrap",u.style.resize="none",r.elementAttributes&&typeof r.elementAttributes=="object")for(let f in r.elementAttributes)f.charAt(0)=="+"?(f=f.slice(1),u.setAttribute(f,u.getAttribute(f)+r.elementAttributes["+"+f])):u.setAttribute(f,r.elementAttributes[f]);u.value=l,e(function(){n.getType()==="cell"&&(u.focus({preventScroll:!0}),u.style.height="100%",u.scrollHeight,u.style.height=u.scrollHeight+"px",n.getRow().normalizeHeight(),r.selectContents&&u.select())});function d(f){(s===null||typeof s>"u")&&u.value!==""||u.value!==s?(t(u.value)&&(s=u.value),setTimeout(function(){n.getRow().normalizeHeight()},300)):i()}return u.addEventListener("change",d),u.addEventListener("blur",d),u.addEventListener("keyup",function(){u.style.height="";var f=u.scrollHeight;u.style.height=f+"px",f!=c&&(c=f,n.getRow().normalizeHeight())}),u.addEventListener("keydown",function(f){switch(f.keyCode){case 13:f.shiftKey&&r.shiftEnterSubmit&&d();break;case 27:i();break;case 38:(a=="editor"||a=="hybrid"&&u.selectionStart)&&(f.stopImmediatePropagation(),f.stopPropagation());break;case 40:(a=="editor"||a=="hybrid"&&u.selectionStart!==u.value.length)&&(f.stopImmediatePropagation(),f.stopPropagation());break;case 35:case 36:f.stopPropagation();break}}),r.mask&&hr(u,r),u}function BE(n,e,t,i,r){var s=n.getValue(),a=r.verticalNavigation||"editor",l=document.createElement("input");if(l.setAttribute("type","number"),typeof r.max<"u"&&l.setAttribute("max",r.max),typeof r.min<"u"&&l.setAttribute("min",r.min),typeof r.step<"u"&&l.setAttribute("step",r.step),l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let d in r.elementAttributes)d.charAt(0)=="+"?(d=d.slice(1),l.setAttribute(d,l.getAttribute(d)+r.elementAttributes["+"+d])):l.setAttribute(d,r.elementAttributes[d]);l.value=s;var u=function(d){c()};e(function(){n.getType()==="cell"&&(l.removeEventListener("blur",u),l.focus({preventScroll:!0}),l.style.height="100%",l.addEventListener("blur",u),r.selectContents&&l.select())});function c(){var d=l.value;!isNaN(d)&&d!==""&&(d=Number(d)),d!==s?t(d)&&(s=d):i()}return l.addEventListener("keydown",function(d){switch(d.keyCode){case 13:c();break;case 27:i();break;case 38:case 40:a=="editor"&&(d.stopImmediatePropagation(),d.stopPropagation());break;case 35:case 36:d.stopPropagation();break}}),r.mask&&hr(l,r),l}function FE(n,e,t,i,r){var s=n.getValue(),a=document.createElement("input");if(a.setAttribute("type","range"),typeof r.max<"u"&&a.setAttribute("max",r.max),typeof r.min<"u"&&a.setAttribute("min",r.min),typeof r.step<"u"&&a.setAttribute("step",r.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let u in r.elementAttributes)u.charAt(0)=="+"?(u=u.slice(1),a.setAttribute(u,a.getAttribute(u)+r.elementAttributes["+"+u])):a.setAttribute(u,r.elementAttributes[u]);a.value=s,e(function(){n.getType()==="cell"&&(a.focus({preventScroll:!0}),a.style.height="100%")});function l(){var u=a.value;!isNaN(u)&&u!==""&&(u=Number(u)),u!=s?t(u)&&(s=u):i()}return a.addEventListener("blur",function(u){l()}),a.addEventListener("keydown",function(u){switch(u.keyCode){case 13:l();break;case 27:i();break}}),a}function _E(n,e,t,i,r){var s=r.format,a=r.verticalNavigation||"editor",l=s?window.DateTime||luxon.DateTime:null,u=n.getValue(),c=document.createElement("input");function d(p){var h;return l.isDateTime(p)?h=p:s==="iso"?h=l.fromISO(String(p)):h=l.fromFormat(String(p),s),h.toFormat("yyyy-MM-dd")}if(c.type="date",c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",r.max&&c.setAttribute("max",s?d(r.max):r.max),r.min&&c.setAttribute("min",s?d(r.min):r.min),r.elementAttributes&&typeof r.elementAttributes=="object")for(let p in r.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),c.setAttribute(p,c.getAttribute(p)+r.elementAttributes["+"+p])):c.setAttribute(p,r.elementAttributes[p]);u=typeof u<"u"?u:"",s&&(l?u=d(u):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),c.value=u,e(function(){n.getType()==="cell"&&(c.focus({preventScroll:!0}),c.style.height="100%",r.selectContents&&c.select())});function f(){var p=c.value,h;if((u===null||typeof u>"u")&&p!==""||p!==u){if(p&&s)switch(h=l.fromFormat(String(p),"yyyy-MM-dd"),s){case!0:p=h;break;case"iso":p=h.toISO();break;default:p=h.toFormat(s)}t(p)&&(u=c.value)}else i()}return c.addEventListener("blur",function(p){(p.relatedTarget||p.rangeParent||p.explicitOriginalTarget!==c)&&f()}),c.addEventListener("keydown",function(p){switch(p.keyCode){case 13:f();break;case 27:i();break;case 35:case 36:p.stopPropagation();break;case 38:case 40:a=="editor"&&(p.stopImmediatePropagation(),p.stopPropagation());break}}),c}function PE(n,e,t,i,r){var s=r.format,a=r.verticalNavigation||"editor",l=s?window.DateTime||luxon.DateTime:null,u,c=n.getValue(),d=document.createElement("input");if(d.type="time",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let p in r.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),d.setAttribute(p,d.getAttribute(p)+r.elementAttributes["+"+p])):d.setAttribute(p,r.elementAttributes[p]);c=typeof c<"u"?c:"",s&&(l?(l.isDateTime(c)?u=c:s==="iso"?u=l.fromISO(String(c)):u=l.fromFormat(String(c),s),c=u.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=c,e(function(){n.getType()=="cell"&&(d.focus({preventScroll:!0}),d.style.height="100%",r.selectContents&&d.select())});function f(){var p=d.value,h;if((c===null||typeof c>"u")&&p!==""||p!==c){if(p&&s)switch(h=l.fromFormat(String(p),"hh:mm"),s){case!0:p=h;break;case"iso":p=h.toISO();break;default:p=h.toFormat(s)}t(p)&&(c=d.value)}else i()}return d.addEventListener("blur",function(p){(p.relatedTarget||p.rangeParent||p.explicitOriginalTarget!==d)&&f()}),d.addEventListener("keydown",function(p){switch(p.keyCode){case 13:f();break;case 27:i();break;case 35:case 36:p.stopPropagation();break;case 38:case 40:a=="editor"&&(p.stopImmediatePropagation(),p.stopPropagation());break}}),d}function NE(n,e,t,i,r){var s=r.format,a=r.verticalNavigation||"editor",l=s?this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"):null,u,c=n.getValue(),d=document.createElement("input");if(d.type="datetime-local",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let p in r.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),d.setAttribute(p,d.getAttribute(p)+r.elementAttributes["+"+p])):d.setAttribute(p,r.elementAttributes[p]);c=typeof c<"u"?c:"",s&&(l?(l.isDateTime(c)?u=c:s==="iso"?u=l.fromISO(String(c)):u=l.fromFormat(String(c),s),c=u.toFormat("yyyy-MM-dd")+"T"+u.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=c,e(function(){n.getType()==="cell"&&(d.focus({preventScroll:!0}),d.style.height="100%",r.selectContents&&d.select())});function f(){var p=d.value,h;if((c===null||typeof c>"u")&&p!==""||p!==c){if(p&&s)switch(h=l.fromISO(String(p)),s){case!0:p=h;break;case"iso":p=h.toISO();break;default:p=h.toFormat(s)}t(p)&&(c=d.value)}else i()}return d.addEventListener("blur",function(p){(p.relatedTarget||p.rangeParent||p.explicitOriginalTarget!==d)&&f()}),d.addEventListener("keydown",function(p){switch(p.keyCode){case 13:f();break;case 27:i();break;case 35:case 36:p.stopPropagation();break;case 38:case 40:a=="editor"&&(p.stopImmediatePropagation(),p.stopPropagation());break}}),d}let IE=class{constructor(e,t,i,r,s,a){this.edit=e,this.table=e.table,this.cell=t,this.params=this._initializeParams(a),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:r,cancel:s},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&&hr(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(r=>t.includes(r)).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(r=>typeof r.label<"u"&&r.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(r=>this.listIteration===i?this._parseList(r):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=jc(e,{},i),fetch(e).then(r=>r.ok?r.json().catch(s=>(console.warn("List Ajax Load Error - Invalid JSON returned",s),Promise.reject(s))):(console.error("List Ajax Load Error - Connection Error: "+r.status,r.statusText),Promise.reject(r))).catch(r=>(console.error("List Ajax Load Error - Connection Error: ",r),Promise.reject(r)))}_uniqueColumnValues(e){var t={},i=this.table.getData(this.params.valuesLookup),r;return e?r=this.table.columnManager.getColumnByField(e):r=this.cell.getColumn()._getSelf(),r?i.forEach(s=>{var a=r.getFieldValue(s);this._emptyValueCheck(a)||(this.params.multiselect&&Array.isArray(a)?a.forEach(l=>{this._emptyValueCheck(l)||(t[l]=!0)}):t[a]=!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,r])=>({label:r,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 r={};e.options?r=this._parseListGroup(e,i+1):(r={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(r,!0)),t.push(r)}_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(r=>{this._parseListItem(r,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,r)=>e(i.label,r.label,i.value,r.value,i.original,r.original)),t.forEach(i=>{i.group&&this._sortGroup(e,i.options)})}_defaultSortFunction(e,t){var i,r,s,a,l=0,u,c=/(\d+)|(\D+)/g,d=/\d/,f=0;if(this.params.sort==="desc"&&([e,t]=[t,e]),!e&&e!==0)f=!t&&t!==0?0:-1;else if(!t&&t!==0)f=1;else{if(isFinite(e)&&isFinite(t))return e-t;if(i=String(e).toLowerCase(),r=String(t).toLowerCase(),i===r)return 0;if(!(d.test(i)&&d.test(r)))return i>r?1:-1;for(i=i.match(c),r=r.match(c),u=i.length>r.length?r.length:i.length;l<u;)if(s=i[l],a=r[l++],s!==a)return isFinite(s)&&isFinite(a)?(s.charAt(0)==="0"&&(s="."+s),a.charAt(0)==="0"&&(a="."+a),s-a):s>a?1:-1;return i.length>r.length}return f}_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 r=!1;return i.group?(i.options.forEach(s=>{this._filterItem(e,t,s)&&(r=!0)}),i.visible=r):i.visible=e(t,i.label,i.value,i.original),i.visible}_defaultFilterFunc(e,t,i,r){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 r in e.elementAttributes)r.charAt(0)=="+"?(r=r.slice(1),t.setAttribute(r,this.input.getAttribute(r)+e.elementAttributes["+"+r])):t.setAttribute(r,e.elementAttributes[r]);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(r=>{this._buildItem(r)}):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(r=>r.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(r=>r.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 HE(n,e,t,i,r){var s=new IE(this,n,e,t,i,r);return s.input}function VE(n,e,t,i,r){var s=this,a=n.getElement(),l=n.getValue(),u=a.getElementsByTagName("svg").length||5,c=a.getElementsByTagName("svg")[0]?a.getElementsByTagName("svg")[0].getAttribute("width"):14,d=[],f=document.createElement("div"),p=document.createElementNS("http://www.w3.org/2000/svg","svg");function h(b){d.forEach(function(g,M){M<b?(s.table.browser=="ie"?g.setAttribute("class","tabulator-star-active"):g.classList.replace("tabulator-star-inactive","tabulator-star-active"),g.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 "/>'):(s.table.browser=="ie"?g.setAttribute("class","tabulator-star-inactive"):g.classList.replace("tabulator-star-active","tabulator-star-inactive"),g.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 S(b){var g=document.createElement("span"),M=p.cloneNode(!0);d.push(M),g.addEventListener("mouseenter",function(v){v.stopPropagation(),v.stopImmediatePropagation(),h(b)}),g.addEventListener("mousemove",function(v){v.stopPropagation(),v.stopImmediatePropagation()}),g.addEventListener("click",function(v){v.stopPropagation(),v.stopImmediatePropagation(),t(b),a.blur()}),g.appendChild(M),f.appendChild(g)}function m(b){l=b,h(b)}if(a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",f.style.verticalAlign="middle",f.style.display="inline-block",f.style.padding="4px",p.setAttribute("width",c),p.setAttribute("height",c),p.setAttribute("viewBox","0 0 512 512"),p.setAttribute("xml:space","preserve"),p.style.padding="0 1px",r.elementAttributes&&typeof r.elementAttributes=="object")for(let b in r.elementAttributes)b.charAt(0)=="+"?(b=b.slice(1),f.setAttribute(b,f.getAttribute(b)+r.elementAttributes["+"+b])):f.setAttribute(b,r.elementAttributes[b]);for(var C=1;C<=u;C++)S(C);return l=Math.min(parseInt(l),u),h(l),f.addEventListener("mousemove",function(b){h(0)}),f.addEventListener("click",function(b){t(0)}),a.addEventListener("blur",function(b){i()}),a.addEventListener("keydown",function(b){switch(b.keyCode){case 39:m(l+1);break;case 37:m(l-1);break;case 13:t(l);break;case 27:i();break}}),f}function zE(n,e,t,i,r){var s=n.getElement(),a=typeof r.max>"u"?s.getElementsByTagName("div")[0]&&s.getElementsByTagName("div")[0].getAttribute("max")||100:r.max,l=typeof r.min>"u"?s.getElementsByTagName("div")[0]&&s.getElementsByTagName("div")[0].getAttribute("min")||0:r.min,u=(a-l)/100,c=n.getValue()||0,d=document.createElement("div"),f=document.createElement("div"),p,h;function S(){var m=window.getComputedStyle(s,null),C=u*Math.round(f.offsetWidth/((s.clientWidth-parseInt(m.getPropertyValue("padding-left"))-parseInt(m.getPropertyValue("padding-right")))/100))+l;t(C),s.setAttribute("aria-valuenow",C),s.setAttribute("aria-label",c)}if(d.style.position="absolute",d.style.right="0",d.style.top="0",d.style.bottom="0",d.style.width="5px",d.classList.add("tabulator-progress-handle"),f.style.display="inline-block",f.style.position="relative",f.style.height="100%",f.style.backgroundColor="#488CE9",f.style.maxWidth="100%",f.style.minWidth="0%",r.elementAttributes&&typeof r.elementAttributes=="object")for(let m in r.elementAttributes)m.charAt(0)=="+"?(m=m.slice(1),f.setAttribute(m,f.getAttribute(m)+r.elementAttributes["+"+m])):f.setAttribute(m,r.elementAttributes[m]);return s.style.padding="4px 4px",c=Math.min(parseFloat(c),a),c=Math.max(parseFloat(c),l),c=Math.round((c-l)/u),f.style.width=c+"%",s.setAttribute("aria-valuemin",l),s.setAttribute("aria-valuemax",a),f.appendChild(d),d.addEventListener("mousedown",function(m){p=m.screenX,h=f.offsetWidth}),d.addEventListener("mouseover",function(){d.style.cursor="ew-resize"}),s.addEventListener("mousemove",function(m){p&&(f.style.width=h+m.screenX-p+"px")}),s.addEventListener("mouseup",function(m){p&&(m.stopPropagation(),m.stopImmediatePropagation(),p=!1,h=!1,S())}),s.addEventListener("keydown",function(m){switch(m.keyCode){case 39:m.preventDefault(),f.style.width=f.clientWidth+s.clientWidth/100+"px";break;case 37:m.preventDefault(),f.style.width=f.clientWidth-s.clientWidth/100+"px";break;case 9:case 13:S();break;case 27:i();break}}),s.addEventListener("blur",function(){i()}),f}function jE(n,e,t,i,r){var s=n.getValue(),a=document.createElement("input"),l=r.tristate,u=typeof r.indeterminateValue>"u"?null:r.indeterminateValue,c=!1,d=Object.keys(r).includes("trueValue"),f=Object.keys(r).includes("falseValue");if(a.setAttribute("type","checkbox"),a.style.marginTop="5px",a.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let h in r.elementAttributes)h.charAt(0)=="+"?(h=h.slice(1),a.setAttribute(h,a.getAttribute(h)+r.elementAttributes["+"+h])):a.setAttribute(h,r.elementAttributes[h]);a.value=s,l&&(typeof s>"u"||s===u||s==="")&&(c=!0,a.indeterminate=!0),this.table.browser!="firefox"&&this.table.browser!="safari"&&e(function(){n.getType()==="cell"&&a.focus({preventScroll:!0})}),a.checked=d?s===r.trueValue:s===!0||s==="true"||s==="True"||s===1;function p(h){var S=a.checked;return d&&S?S=r.trueValue:f&&!S&&(S=r.falseValue),l?h?c?u:S:a.checked&&!c?(a.checked=!1,a.indeterminate=!0,c=!0,u):(c=!1,S):S}return a.addEventListener("change",function(h){t(p())}),a.addEventListener("blur",function(h){t(p(!0))}),a.addEventListener("keydown",function(h){h.keyCode==13&&t(p()),h.keyCode==27&&i()}),a}function WE(n,e,t,i,r){var s=n._getSelf().column,a,l,u;function c(d){var f=d.getValue(),p="input";switch(typeof f){case"number":p="number";break;case"boolean":p="tickCross";break;case"string":f.includes(`
|
|
36
|
-
`)&&(p="textarea");break}return p}return a=r.editorLookup?r.editorLookup(n):c(n),r.paramsLookup&&(u=typeof r.paramsLookup=="function"?r.paramsLookup(a,n):r.paramsLookup[a]),l=this.table.modules.edit.lookupEditor(a,s),l.call(this,n,e,t,i,u||{})}var UE={input:OE,textarea:LE,number:BE,range:FE,date:_E,time:PE,datetime:NE,list:HE,star:VE,progress:zE,tickCross:jE,adaptable:WE};class Ma extends ze{static moduleName="edit";static editors=UE;constructor(e){super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.convertEmptyValues=!1,this.editors=Ma.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,r;if(e){if(t&&t.preventDefault(),i=this.navigateLeft(),i)return!0;if(r=this.table.rowManager.prevDisplayRow(e.row,!0),r&&(i=this.findPrevEditableCell(r,r.cells.length),i))return i.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var i,r;if(e){if(t&&t.preventDefault(),i=this.navigateRight(),i)return!0;if(r=this.table.rowManager.nextDisplayRow(e.row,!0),r&&(i=this.findNextEditableCell(r,-1),i))return i.getComponent().edit(),!0}return!1}navigateLeft(e=this.currentCell,t){var i,r;return e&&(t&&t.preventDefault(),i=e.getIndex(),r=this.findPrevEditableCell(e.row,i),r)?(r.getComponent().edit(),!0):!1}navigateRight(e=this.currentCell,t){var i,r;return e&&(t&&t.preventDefault(),i=e.getIndex(),r=this.findNextEditableCell(e.row,i),r)?(r.getComponent().edit(),!0):!1}navigateUp(e=this.currentCell,t){var i,r;return e&&(t&&t.preventDefault(),i=e.getIndex(),r=this.table.rowManager.prevDisplayRow(e.row,!0),r)?(r.cells[i].getComponent().edit(),!0):!1}navigateDown(e=this.currentCell,t){var i,r;return e&&(t&&t.preventDefault(),i=e.getIndex(),r=this.table.rowManager.nextDisplayRow(e.row,!0),r)?(r.cells[i].getComponent().edit(),!0):!1}findNextEditableCell(e,t){var i=!1;if(t<e.cells.length-1)for(var r=t+1;r<e.cells.length;r++){let s=e.cells[r];if(s.column.modules.edit&&Xe.elVisible(s.getElement())&&this.allowEdit(s)){i=s;break}}return i}findPrevEditableCell(e,t){var i=!1;if(t>0)for(var r=t-1;r>=0;r--){let s=e.cells[r];if(s.column.modules.edit&&Xe.elVisible(s.getElement())&&this.allowEdit(s)){i=s;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(r){r.button===2?r.preventDefault():t.mouseClick=!0}),this.options("editTriggerEvent")==="dblclick"&&i.addEventListener("dblclick",function(r){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,r,!1))}),(this.options("editTriggerEvent")==="focus"||this.options("editTriggerEvent")==="click")&&i.addEventListener("click",function(r){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,r,!1))}),this.options("editTriggerEvent")==="focus"&&i.addEventListener("focus",function(r){t.recursionBlock||t.edit(e,r,!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,r=e.row.getElement();r.offsetTop<t?this.table.rowManager.element.scrollTop-=t-r.offsetTop:r.offsetTop+r.offsetHeight>i&&(this.table.rowManager.element.scrollTop+=r.offsetTop+r.offsetHeight-i);var s=this.table.rowManager.element.scrollLeft,a=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,l=e.getElement();this.table.modExists("frozenColumns")&&(s+=parseInt(this.table.modules.frozenColumns.leftMargin||0),a-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),this.table.options.renderHorizontal==="virtual"&&(s-=parseInt(this.table.columnManager.renderer.vDomPadLeft),a-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),l.offsetLeft<s?this.table.rowManager.element.scrollLeft-=s-l.offsetLeft:l.offsetLeft+l.offsetWidth>a&&(this.table.rowManager.element.scrollLeft+=l.offsetLeft+l.offsetWidth-a)}}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 r=this,s=!0,a=function(){},l=e.getElement(),u=!1,c,d,f;if(this.currentCell){!this.invalidEdit&&this.currentCell!==e&&this.cancelEdit();return}function p(b){if(r.currentCell===e&&!u){var g=r.chain("edit-success",[e,b],!0,!0);return g===!0||r.table.options.validationMode==="highlight"?(u=!0,r.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,r.editedCells.indexOf(e)==-1&&r.editedCells.push(e),b=r.transformEmptyValues(b,e),e.setValue(b,!0),g===!0):(u=!0,r.invalidEdit=!0,r.focusCellNoEvent(e,!0),a(),setTimeout(()=>{u=!1},10),!1)}}function h(){r.currentCell===e&&!u&&r.cancelEdit()}function S(b){a=b}if(e.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(l),!1;if(t&&t.stopPropagation(),s=this.allowEdit(e),s||i){if(r.cancelEdit(),r.currentCell=e,this.focusScrollAdjust(e),d=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,d)),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,d),this.dispatch("cell-editing",e),this.dispatchExternal("cellEditing",d),f=typeof e.column.modules.edit.params=="function"?e.column.modules.edit.params(d):e.column.modules.edit.params,c=e.column.modules.edit.editor.call(r,d,S,p,h,f),this.currentCell&&c!==!1)if(c 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(c),a();for(var m=l.children,C=0;C<m.length;C++)m[C].addEventListener("click",function(b){b.stopPropagation()})}else return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",c),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,r=i.convertEmptyValues||this.convertEmptyValues,s;return r&&(s=i.editorEmptyValueFunc||this.options("editorEmptyValueFunc"),s&&s(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)}}class Yc{constructor(e,t,i,r){this.type=e,this.columns=t,this.component=i||!1,this.indent=r||0}}class Ta{constructor(e,t,i,r,s){this.value=e,this.component=t||!1,this.width=i,this.height=r,this.depth=s}}var GE={},YE={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()}};class An extends ze{static moduleName="export";static columnLookups=GE;static rowLookups=YE;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,r){var s,a,l,u;return this.cloneTableStyle=t,this.config=e||{},this.colVisProp=r,this.colVisPropAttach=this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1),u=An.columnLookups[i],u&&(l=u.call(this.table),l=l.filter(c=>this.columnVisCheck(c))),s=this.config.columnHeaders!==!1?this.headersToExportRows(this.generateColumnGroupHeaders(l)):[],l&&(l=l.map(c=>c.getComponent())),a=this.bodyToExportRows(this.rowLookup(i),l),s.concat(a)}generateTable(e,t,i,r){var s=this.generateExportList(e,t,i,r);return this.generateTableElement(s)}rowLookup(e){var t=[],i;return typeof e=="function"?e.call(this.table).forEach(r=>{r=this.table.rowManager.findRow(r),r&&t.push(r)}):(i=An.rowLookups[e]||An.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 r=this.processColumnGroup(i);r&&t.push(r)}),t}processColumnGroup(e){var t=e.columns,i=0,r=e.definition["title"+this.colVisPropAttach]||e.definition.title,s={title:r,column:e,depth:1};if(t.length){if(s.subGroups=[],s.width=0,t.forEach(a=>{var l=this.processColumnGroup(a);l&&(s.width+=l.width,s.subGroups.push(l),l.depth>i&&(i=l.depth))}),s.depth+=i,!s.width)return!1}else if(this.columnVisCheck(e))s.width=1;else return!1;return s}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,r=[];function s(a,l){var u=i-l;if(typeof t[l]>"u"&&(t[l]=[]),a.height=a.subGroups?1:u-a.depth+1,t[l].push(a),a.height>1)for(let c=1;c<a.height;c++)typeof t[l+c]>"u"&&(t[l+c]=[]),t[l+c].push(!1);if(a.width>1)for(let c=1;c<a.width;c++)t[l].push(!1);a.subGroups&&a.subGroups.forEach(function(c){s(c,l+1)})}return e.forEach(function(a){a.depth>i&&(i=a.depth)}),e.forEach(function(a){s(a,0)}),t.forEach(a=>{var l=[];a.forEach(u=>{if(u){let c=typeof u.title>"u"?"":u.title;l.push(new Ta(c,u.column.getComponent(),u.width,u.height,u.depth))}else l.push(null)}),r.push(new Yc("header",l))}),r}bodyToExportRows(e,t=[]){var i=[];return t.length===0&&this.table.columnManager.columnsByIndex.forEach(r=>{this.columnVisCheck(r)&&t.push(r.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(r=>{switch(r.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&&r.modules.dataTree.parent)}return!0}),e.forEach((r,s)=>{var a=r.getData(this.colVisProp),l=[],u=0;switch(r.type){case"group":u=r.level,l.push(new Ta(r.key,r.getComponent(),t.length,1));break;case"calc":case"row":t.forEach(c=>{l.push(new Ta(c._column.getFieldValue(a),c,1,1))}),this.table.options.dataTree&&this.config.dataTree!==!1&&(u=r.modules.dataTree.index);break}i.push(new Yc(r.type,l,r.getComponent(),u))}),i}generateTableElement(e){var t=document.createElement("table"),i=document.createElement("thead"),r=document.createElement("tbody"),s=this.lookupTableStyles(),a=this.table.options["rowFormatter"+this.colVisPropAttach],l={};return l.rowFormatter=a!==null?a: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((u,c)=>{let d;switch(u.type){case"header":i.appendChild(this.generateHeaderElement(u,l,s));break;case"group":r.appendChild(this.generateGroupElement(u,l,s));break;case"calc":r.appendChild(this.generateCalcElement(u,l,s));break;case"row":d=this.generateRowElement(u,l,s),this.mapElementStyles(c%2&&s.evenRow?s.evenRow:s.oddRow,d,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),r.appendChild(d);break}}),i.innerHTML&&t.appendChild(i),t.appendChild(r),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 r=document.createElement("tr");return e.columns.forEach(s=>{if(s){var a=document.createElement("th"),l=s.component._column.definition.cssClass?s.component._column.definition.cssClass.split(" "):[];a.colSpan=s.width,a.rowSpan=s.height,a.innerHTML=s.value,this.cloneTableStyle&&(a.style.boxSizing="border-box"),l.forEach(function(u){a.classList.add(u)}),this.mapElementStyles(s.component.getElement(),a,["text-align","border-left","border-right","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(s.component._column.contentElement,a,["padding-top","padding-left","padding-right","padding-bottom"]),s.component._column.visible?this.mapElementStyles(s.component.getElement(),a,["width"]):s.component._column.definition.width&&(a.style.width=s.component._column.definition.width+"px"),s.component._column.parent&&s.component._column.parent.isGroup?this.mapElementStyles(s.component._column.parent.groupElement,a,["border-top"]):this.mapElementStyles(s.component.getElement(),a,["border-top"]),s.component._column.isGroup?this.mapElementStyles(s.component.getElement(),a,["border-bottom"]):this.mapElementStyles(this.table.columnManager.getElement(),a,["border-bottom"]),r.appendChild(a)}}),r}generateGroupElement(e,t,i){var r=document.createElement("tr"),s=document.createElement("td"),a=e.columns[0];return r.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?a.value=t.groupHeader[e.indent](a.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):t.groupHeader!==!1&&(a.value=e.component._group.generator(a.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)),s.colSpan=a.width,s.innerHTML=a.value,r.classList.add("tabulator-print-table-group"),r.classList.add("tabulator-group-level-"+e.indent),a.component.isVisible()&&r.classList.add("tabulator-group-visible"),this.mapElementStyles(i.firstGroup,r,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(i.firstGroup,s,["padding-top","padding-left","padding-right","padding-bottom"]),r.appendChild(s),r}generateCalcElement(e,t,i){var r=this.generateRowElement(e,t,i);return r.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(i.calcRow,r,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),r}generateRowElement(e,t,i){var r=document.createElement("tr");if(r.classList.add("tabulator-print-table-row"),e.columns.forEach((s,a)=>{if(s){var l=document.createElement("td"),u=s.component._column,c=this.table,d=c.columnManager.findColumnIndex(u),f=s.value,p,h,S={modules:{},getValue:function(){return f},getField:function(){return u.definition.field},getElement:function(){return l},getType:function(){return"cell"},getColumn:function(){return u.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getTable:function(){return c},getComponent:function(){return S},column:u},m=u.definition.cssClass?u.definition.cssClass.split(" "):[];if(m.forEach(function(C){l.classList.add(C)}),this.table.modExists("format")&&this.config.formatCells!==!1)f=this.table.modules.format.formatExportValue(S,this.colVisProp);else switch(typeof f){case"object":f=f!==null?JSON.stringify(f):"";break;case"undefined":f="";break}f instanceof Node?l.appendChild(f):l.innerHTML=f,h=["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"],u.isRowHeader?(p=i.styleRowHeader,h.push("background-color")):p=i.styleCells&&i.styleCells[d]?i.styleCells[d]:i.firstCell,p&&(this.mapElementStyles(p,l,h),u.definition.align&&(l.style.textAlign=u.definition.align)),this.table.options.dataTree&&this.config.dataTree!==!1&&(t.treeElementField&&t.treeElementField==u.field||!t.treeElementField&&a==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)),r.appendChild(l),S.modules.format&&S.modules.format.renderedCallback&&S.modules.format.renderedCallback()}}),t.rowFormatter&&e.type==="row"&&this.config.formatCells!==!1){let s=Object.assign(e.component);s.getElement=function(){return r},t.rowFormatter(e.component)}return r}generateHTMLTable(e){var t=document.createElement("div");return t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,i,r){var s=this.generateExportList(i||this.table.options.htmlOutputConfig,t,e,r||"htmlOutput");return this.generateHTMLTable(s)}mapElementStyles(e,t,i){if(this.cloneTableStyle&&e&&t){var r={"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 s=window.getComputedStyle(e);i.forEach(function(a){t.style[r[a]]||(t.style[r[a]]=s.getPropertyValue(a))})}}}}var QE={"=":function(n,e,t,i){return e==n},"<":function(n,e,t,i){return e<n},"<=":function(n,e,t,i){return e<=n},">":function(n,e,t,i){return e>n},">=":function(n,e,t,i){return e>=n},"!=":function(n,e,t,i){return e!=n},regex:function(n,e,t,i){return typeof n=="string"&&(n=new RegExp(n)),n.test(e)},like:function(n,e,t,i){return n===null||typeof n>"u"?e===n:typeof e<"u"&&e!==null?String(e).toLowerCase().indexOf(n.toLowerCase())>-1:!1},keywords:function(n,e,t,i){var r=n.toLowerCase().split(typeof i.separator>"u"?" ":i.separator),s=String(e===null||typeof e>"u"?"":e).toLowerCase(),a=[];return r.forEach(l=>{s.includes(l)&&a.push(!0)}),i.matchAll?a.length===r.length:!!a.length},starts:function(n,e,t,i){return n===null||typeof n>"u"?e===n:typeof e<"u"&&e!==null?String(e).toLowerCase().startsWith(n.toLowerCase()):!1},ends:function(n,e,t,i){return n===null||typeof n>"u"?e===n:typeof e<"u"&&e!==null?String(e).toLowerCase().endsWith(n.toLowerCase()):!1},in:function(n,e,t,i){return Array.isArray(n)?n.length?n.indexOf(e)>-1:!0:(console.warn("Filter Error - filter value is not an array:",n),!1)}};class Ri extends ze{static moduleName="filter";static filters=QE;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,r){return r.filter=this.getFilters(!0,!0),r}generatePlaceholder(e){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,i,r){this.setFilter(e,t,i,r),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(e,t,i,r){this.addFilter(e,t,i,r),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,r=e.getField();function s(a){var l=e.modules.filter.tagType=="input"&&e.modules.filter.attrType=="text"||e.modules.filter.tagType=="textarea"?"partial":"match",u="",c="",d;if(typeof e.modules.filter.prevSuccess>"u"||e.modules.filter.prevSuccess!==a){if(e.modules.filter.prevSuccess=a,e.modules.filter.emptyFunc(a))delete i.headerFilters[r];else{switch(e.modules.filter.value=a,typeof e.definition.headerFilterFunc){case"string":Ri.filters[e.definition.headerFilterFunc]?(u=e.definition.headerFilterFunc,d=function(f){var p=e.definition.headerFilterFuncParams||{},h=e.getFieldValue(f);return p=typeof p=="function"?p(a,h,f):p,Ri.filters[e.definition.headerFilterFunc](a,h,f,p)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":d=function(f){var p=e.definition.headerFilterFuncParams||{},h=e.getFieldValue(f);return p=typeof p=="function"?p(a,h,f):p,e.definition.headerFilterFunc(a,h,f,p)},u=d;break}if(!d)switch(l){case"partial":d=function(f){var p=e.getFieldValue(f);return typeof p<"u"&&p!==null?String(p).toLowerCase().indexOf(String(a).toLowerCase())>-1:!1},u="like";break;default:d=function(f){return e.getFieldValue(f)==a},u="="}i.headerFilters[r]={value:a,func:d,type:u}}e.modules.filter.value=a,c=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==c&&(i.prevHeaderFilterChangeCheck=c,i.trackChanges(),i.refreshFilter())}return!0}e.modules.filter={success:s,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,i){var r=this,s=e.modules.filter.success,a=e.getField(),l,u,c,d,f,p,h,S;e.modules.filter.value=t;function m(){}function C(b){S=b}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),a){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(b){return!b&&b!==0},l=document.createElement("div"),l.classList.add("tabulator-header-filter"),typeof e.definition.headerFilter){case"string":r.table.modules.edit.editors[e.definition.headerFilter]?(u=r.table.modules.edit.editors[e.definition.headerFilter],(e.definition.headerFilter==="tick"||e.definition.headerFilter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(b){return b!==!0&&b!==!1})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":u=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?u=e.modules.edit.editor:e.definition.formatter&&r.table.modules.edit.editors[e.definition.formatter]?(u=r.table.modules.edit.editors[e.definition.formatter],(e.definition.formatter==="tick"||e.definition.formatter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(b){return b!==!0&&b!==!1})):u=r.table.modules.edit.editors.input;break}if(u){if(d={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(){}}}},h=e.definition.headerFilterParams||{},h=typeof h=="function"?h.call(r.table,d):h,c=u.call(this.table.modules.edit,d,C,s,m,h),!c){console.warn("Filter Error - Cannot add filter to "+a+" column, editor returned a value of false");return}if(!(c instanceof Node)){console.warn("Filter Error - Cannot add filter to "+a+" column, editor should return an instance of Node, the editor returned:",c);return}r.langBind("headerFilters|columns|"+e.definition.field,function(b){c.setAttribute("placeholder",typeof b<"u"&&b?b:e.definition.headerFilterPlaceholder||r.langText("headerFilters|default"))}),c.addEventListener("click",function(b){b.stopPropagation(),c.focus()}),c.addEventListener("focus",b=>{var g=this.table.columnManager.contentsElement.scrollLeft,M=this.table.rowManager.element.scrollLeft;g!==M&&(this.table.rowManager.scrollHorizontal(g),this.table.columnManager.scrollHorizontal(g))}),f=!1,p=function(b){f&&clearTimeout(f),f=setTimeout(function(){s(c.value)},r.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=c,e.modules.filter.attrType=c.hasAttribute("type")?c.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=c.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||(c.addEventListener("keyup",p),c.addEventListener("search",p),e.modules.filter.attrType=="number"&&c.addEventListener("change",function(b){s(c.value)}),e.modules.filter.attrType=="text"&&this.table.browser!=="ie"&&c.setAttribute("type","search")),(e.modules.filter.tagType=="input"||e.modules.filter.tagType=="select"||e.modules.filter.tagType=="textarea")&&c.addEventListener("mousedown",function(b){b.stopPropagation()})),l.appendChild(c),e.contentElement.appendChild(l),i||r.headerFilterColumns.push(e),S&&S()}}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,r){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:i,params:r}]),this.addFilter(e)}addFilter(e,t,i,r){var s=!1;Array.isArray(e)||(e=[{field:e,type:t,value:i,params:r}]),e.forEach(a=>{a=this.findFilter(a),a&&(this.filterList.push(a),s=!0)}),s&&this.trackChanges()}findFilter(e){var t;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return typeof e.field=="function"?i=function(r){return e.field(r,e.type||{})}:Ri.filters[e.type]?(t=this.table.columnManager.getColumnByField(e.field),t?i=function(r){return Ri.filters[e.type](e.value,t.getFieldValue(r),r,e.params||{})}:i=function(r){return Ri.filters[e.type](e.value,r[e.field],r,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(r){typeof r.type=="function"&&(r.type="function")}),i=i.concat(this.filtersToArray(this.filterList,t)),i}filtersToArray(e,t){var i=[];return e.forEach(r=>{var s;Array.isArray(r)?i.push(this.filtersToArray(r,t)):(s={field:r.field,type:r.type,value:r.value},t&&typeof s.type=="function"&&(s.type="function"),i.push(s))}),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(r=>{var s=-1;typeof r.field=="object"?s=this.filterList.findIndex(a=>r===a):s=this.filterList.findIndex(a=>r.field===a.field&&r.type===a.type&&r.value===a.value),s>-1?this.filterList.splice(s,1):console.warn("Filter Error - No matching filter type found, ignoring: ",r.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,r){var s=[],a=[];return Array.isArray(t)||(t=[{field:t,type:i,value:r}]),t.forEach(l=>{l=this.findFilter(l),l&&a.push(l)}),this.table.rowManager.rows.forEach(l=>{var u=!0;a.forEach(c=>{this.filterRecurse(c,l.getData())||(u=!1)}),u&&s.push(e==="data"?l.getData("data"):l.getComponent())}),s}filter(e,t){var i=[],r=[];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(s=>{this.filterRow(s)&&i.push(s)}):i=e.slice(0),this.subscribedExternal("dataFiltered")&&(i.forEach(s=>{r.push(s.getComponent())}),this.dispatchExternal("dataFiltered",this.getFilters(!0),r)),i}filterRow(e,t){var i=!0,r=e.getData();this.filterList.forEach(a=>{this.filterRecurse(a,r)||(i=!1)});for(var s in this.headerFilters)this.headerFilters[s].func(r)||(i=!1);return i}filterRecurse(e,t){var i=!1;return Array.isArray(e)?e.forEach(r=>{this.filterRecurse(r,t)&&(i=!0)}):i=e.func(t),i}}function KE(n,e,t){return this.emptyToSpace(this.sanitizeHTML(n.getValue()))}function JE(n,e,t){return n.getValue()}function qE(n,e,t){return n.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(n.getValue()))}function $E(n,e,t){var i=parseFloat(n.getValue()),r="",s,a,l,u,c,d=e.decimal||".",f=e.thousand||",",p=e.negativeSign||"-",h=e.symbol||"",S=!!e.symbolAfter,m=typeof e.precision<"u"?e.precision:2;if(isNaN(i))return this.emptyToSpace(this.sanitizeHTML(n.getValue()));if(i<0&&(i=Math.abs(i),r=p),s=m!==!1?i.toFixed(m):i,s=String(s).split("."),a=s[0],l=s.length>1?d+s[1]:"",e.thousand!==!1)for(u=/(\d+)(\d{3})/;u.test(a);)a=a.replace(u,"$1"+f+"$2");return c=a+l,r===!0?(c="("+c+")",S?c+h:h+c):S?r+c+h:r+h+c}function ZE(n,e,t){var i=n.getValue(),r=e.urlPrefix||"",s=e.download,a=i,l=document.createElement("a"),u;function c(d,f){var p=d.shift(),h=f[p];return d.length&&typeof h=="object"?c(d,h):h}if(e.labelField&&(u=n.getData(),a=c(e.labelField.split(this.table.options.nestedFieldSeparator),u)),e.label)switch(typeof e.label){case"string":a=e.label;break;case"function":a=e.label(n);break}if(a){if(e.urlField&&(u=n.getData(),i=Xe.retrieveNestedData(this.table.options.nestedFieldSeparator,e.urlField,u)),e.url)switch(typeof e.url){case"string":i=e.url;break;case"function":i=e.url(n);break}return l.setAttribute("href",r+i),e.target&&l.setAttribute("target",e.target),e.download&&(typeof s=="function"?s=s(n):s=s===!0?"":s,l.setAttribute("download",s)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(a)),l}else return" "}function XE(n,e,t){var i=document.createElement("img"),r=n.getValue();switch(e.urlPrefix&&(r=e.urlPrefix+n.getValue()),e.urlSuffix&&(r=r+e.urlSuffix),i.setAttribute("src",r),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(){n.getRow().normalizeHeight()}),i}function e0(n,e,t){var i=n.getValue(),r=n.getElement(),s=e.allowEmpty,a=e.allowTruthy,l=Object.keys(e).includes("trueValue"),u=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>',c=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&&(a&&i||i===!0||i==="true"||i==="True"||i===1||i==="1")?(r.setAttribute("aria-checked",!0),u||""):s&&(i==="null"||i===""||i===null||typeof i>"u")?(r.setAttribute("aria-checked","mixed"),""):(r.setAttribute("aria-checked",!1),c||"")}function t0(n,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),r=e.inputFormat||"yyyy-MM-dd HH:mm:ss",s=e.outputFormat||"dd/MM/yyyy HH:mm:ss",a=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",l=n.getValue();if(typeof i<"u"){var u;return i.isDateTime(l)?u=l:r==="iso"?u=i.fromISO(String(l)):u=i.fromFormat(String(l),r),u.isValid?(e.timezone&&(u=u.setZone(e.timezone)),u.toFormat(s)):a===!0||!l?l:typeof a=="function"?a(l):a}else console.error("Format Error - 'datetime' formatter is dependant on luxon.js")}function i0(n,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),r=e.inputFormat||"yyyy-MM-dd HH:mm:ss",s=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",a=typeof e.suffix<"u"?e.suffix:!1,l=typeof e.unit<"u"?e.unit:"days",u=typeof e.humanize<"u"?e.humanize:!1,c=typeof e.date<"u"?e.date:i.now(),d=n.getValue();if(typeof i<"u"){var f;return i.isDateTime(d)?f=d:r==="iso"?f=i.fromISO(String(d)):f=i.fromFormat(String(d),r),f.isValid?u?f.diff(c,l).toHuman()+(a?" "+a:""):parseInt(f.diff(c,l)[l])+(a?" "+a:""):s===!0?d:typeof s=="function"?s(d):s}else console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")}function n0(n,e,t){var i=n.getValue();return typeof e[i]>"u"?(console.warn("Missing display value for "+i),i):e[i]}function r0(n,e,t){var i=n.getValue(),r=n.getElement(),s=e&&e.stars?e.stars:5,a=document.createElement("span"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),u='<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 "/>',c='<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 "/>';a.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,s));for(var d=1;d<=s;d++){var f=l.cloneNode(!0);f.innerHTML=d<=i?u:c,a.appendChild(f)}return r.style.whiteSpace="nowrap",r.style.overflow="hidden",r.style.textOverflow="ellipsis",r.setAttribute("aria-label",i),a}function s0(n,e,t){var i=this.sanitizeHTML(n.getValue())||0,r=document.createElement("span"),s=e&&e.max?e.max:100,a=e&&e.min?e.min:0,l=e&&typeof e.color<"u"?e.color:["red","orange","green"],u="#666666",c,d;if(!(isNaN(i)||typeof n.getValue()>"u")){switch(r.classList.add("tabulator-traffic-light"),d=parseFloat(i)<=s?parseFloat(i):s,d=parseFloat(d)>=a?parseFloat(d):a,c=(s-a)/100,d=Math.round((d-a)/c),typeof l){case"string":u=l;break;case"function":u=l(i);break;case"object":if(Array.isArray(l)){var f=100/l.length,p=Math.floor(d/f);p=Math.min(p,l.length-1),p=Math.max(p,0),u=l[p];break}}return r.style.backgroundColor=u,r}}function a0(n,e={},t){var i=this.sanitizeHTML(n.getValue())||0,r=n.getElement(),s=e.max?e.max:100,a=e.min?e.min:0,l=e.legendAlign?e.legendAlign:"center",u,c,d,f,p;switch(c=parseFloat(i)<=s?parseFloat(i):s,c=parseFloat(c)>=a?parseFloat(c):a,u=(s-a)/100,c=Math.round((c-a)/u),typeof e.color){case"string":d=e.color;break;case"function":d=e.color(i);break;case"object":if(Array.isArray(e.color)){let C=100/e.color.length,b=Math.floor(c/C);b=Math.min(b,e.color.length-1),b=Math.max(b,0),d=e.color[b];break}default:d="#2DC214"}switch(typeof e.legend){case"string":f=e.legend;break;case"function":f=e.legend(i);break;case"boolean":f=i;break;default:f=!1}switch(typeof e.legendColor){case"string":p=e.legendColor;break;case"function":p=e.legendColor(i);break;case"object":if(Array.isArray(e.legendColor)){let C=100/e.legendColor.length,b=Math.floor(c/C);b=Math.min(b,e.legendColor.length-1),b=Math.max(b,0),p=e.legendColor[b]}break;default:p="#000"}r.style.minWidth="30px",r.style.position="relative",r.setAttribute("aria-label",c);var h=document.createElement("div");h.style.display="inline-block",h.style.width=c+"%",h.style.backgroundColor=d,h.style.height="100%",h.setAttribute("data-max",s),h.setAttribute("data-min",a);var S=document.createElement("div");if(S.style.position="relative",S.style.width="100%",S.style.height="100%",f){var m=document.createElement("div");m.style.position="absolute",m.style.top=0,m.style.left=0,m.style.textAlign=l,m.style.width="100%",m.style.color=p,m.innerHTML=f}return t(function(){if(!(n instanceof Wc)){var C=document.createElement("div");C.style.position="absolute",C.style.top="4px",C.style.bottom="4px",C.style.left="4px",C.style.right="4px",r.appendChild(C),r=C}r.appendChild(S),S.appendChild(h),f&&S.appendChild(m)}),""}function o0(n,e,t){return n.getElement().style.backgroundColor=this.sanitizeHTML(n.getValue()),""}function l0(n,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 u0(n,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 c0(n,e,t){var i=n.getValue(),r=e.size||15,s=r+"px",a,l,u=e.hasOwnProperty("onValue")?e.onValue:!0,c=e.hasOwnProperty("offValue")?e.offValue:!1,d=e.onTruthy?i:i===u;return a=document.createElement("div"),a.classList.add("tabulator-toggle"),d?(a.classList.add("tabulator-toggle-on"),a.style.flexDirection="row-reverse",e.onColor&&(a.style.background=e.onColor)):e.offColor&&(a.style.background=e.offColor),a.style.width=2.5*r+"px",a.style.borderRadius=s,e.clickable&&a.addEventListener("click",f=>{n.setValue(d?c:u)}),l=document.createElement("div"),l.classList.add("tabulator-toggle-switch"),l.style.height=s,l.style.width=s,l.style.borderRadius=s,a.appendChild(l),a}function d0(n,e,t){var i=document.createElement("span"),r=n.getRow(),s=n.getTable();return r.watchPosition(a=>{e.relativeToPage&&(a+=s.modules.page.getPageSize()*(s.modules.page.getPage()-1)),i.innerText=a}),i}function h0(n,e,t){return n.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 f0(n,e,t){var i,r,s;function a(l){var u=l.getValue(),c="plaintext";switch(typeof u){case"boolean":c="tickCross";break;case"string":u.includes(`
|
|
34
|
+
`),e.bom&&(r="\uFEFF"+r),t(r,"text/csv")}function SE(n,e,t){var i=[];n.forEach(r=>{var s={};switch(r.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":r.columns.forEach(a=>{a&&(s[a.component.getTitleDownload()||a.component.getField()]=a.value)}),i.push(s);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function xE(n,e={},t){var i=[],r=[],s={},a=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},l=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},u=e.jsPDF||{},c=e.title?e.title:"",d,f;u.orientation||(u.orientation=e.orientation||"landscape"),u.unit||(u.unit="pt"),n.forEach(h=>{switch(h.type){case"header":i.push(p(h));break;case"group":r.push(p(h,a));break;case"calc":r.push(p(h,l));break;case"row":r.push(p(h));break}});function p(h,S){var m=[];return h.columns.forEach(A=>{var b;if(A){switch(typeof A.value){case"object":A.value=A.value!==null?JSON.stringify(A.value):"";break;case"undefined":A.value="";break}b={content:A.value,colSpan:A.width,rowSpan:A.height},S&&(b.styles=S),m.push(b)}}),m}d=this.dependencyRegistry.lookup("jspdf","jsPDF"),f=new d(u),e.autoTable&&(typeof e.autoTable=="function"?s=e.autoTable(f)||{}:s=e.autoTable),c&&(s.didDrawPage=function(h){f.text(c,40,30)}),s.head=i,s.body=r,f.autoTable(s),e.documentProcessing&&e.documentProcessing(f),t(f.output("arraybuffer"),"application/pdf")}function RE(n,e,t){var i=this,r=e.sheetName||"Sheet1",s=this.dependencyRegistry.lookup("XLSX"),a=s.utils.book_new(),l=new ht(this),u="compress"in e?e.compress:!0,c=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:u},d;c.type="binary",a.SheetNames=[],a.Sheets={};function f(){var S=[],m=[],A={},b={s:{c:0,r:0},e:{c:n[0]?n[0].columns.reduce((g,M)=>g+(M&&M.width?M.width:1),0):0,r:n.length}};return n.forEach((g,M)=>{var v=[];g.columns.forEach(function(R,y){R?(v.push(!(R.value instanceof Date)&&typeof R.value=="object"?JSON.stringify(R.value):R.value),(R.width>1||R.height>-1)&&(R.height>1||R.width>1)&&m.push({s:{r:M,c:y},e:{r:M+R.height-1,c:y+R.width-1}})):v.push("")}),S.push(v)}),s.utils.sheet_add_aoa(A,S),A["!ref"]=s.utils.encode_range(b),m.length&&(A["!merges"]=m),A}if(e.sheetOnly){t(f());return}if(e.sheets)for(var p in e.sheets)e.sheets[p]===!0?(a.SheetNames.push(p),a.Sheets[p]=f()):(a.SheetNames.push(p),l.commsSend(e.sheets[p],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(S){a.Sheets[p]=S}}));else a.SheetNames.push(r),a.Sheets[r]=f();e.documentProcessing&&(a=e.documentProcessing(a));function h(S){for(var m=new ArrayBuffer(S.length),A=new Uint8Array(m),b=0;b!=S.length;++b)A[b]=S.charCodeAt(b)&255;return m}d=s.write(a,c),t(h(d),"application/octet-stream")}function ME(n,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(n),"text/html")}function TE(n,e,t){const i=[];n.forEach(r=>{const s={};switch(r.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":r.columns.forEach(a=>{a&&(s[a.component.getTitleDownload()||a.component.getField()]=a.value)}),i.push(JSON.stringify(s));break}}),t(i.join(`
|
|
35
|
+
`),"application/x-ndjson")}var DE={csv:kE,json:SE,jsonLines:TE,pdf:xE,xlsx:RE,html:ME};class dr extends ze{static moduleName="download";static downloaders=DE;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,r){this.download(e,t,i,r,!0)}download(e,t,i,r,s){var a=!1;function l(c,d){s?s===!0?this.triggerDownload(c,d,e,t,!0):s(c):this.triggerDownload(c,d,e,t)}if(typeof e=="function"?a=e:dr.downloaders[e]?a=dr.downloaders[e]:console.warn("Download Error - No such download type found: ",e),a){var u=this.generateExportList(r);a.call(this.table,u,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(r=>{var s;r.type==="group"&&(s=r.columns[0],i&&i[r.indent]&&(s.value=i[r.indent](s.value,r.component._group.getRowCount(),r.component._group.getData(),r.component)))}),t}triggerDownload(e,t,i,r,s){var a=document.createElement("a"),l=this.table.options.downloadEncoder(e,t);l&&(s?window.open(window.URL.createObjectURL(l)):(r=r||"Tabulator."+(typeof i=="function"?"txt":i),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(l,r):(a.setAttribute("href",window.URL.createObjectURL(l)),a.setAttribute("download",r),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a))),this.dispatchExternal("downloadComplete"))}commsReceived(e,t,i){switch(t){case"intercept":this.download(i.type,"",i.options,i.active,i.intercept);break}}}function hr(n,e){var t=e.mask,i=typeof e.maskLetterChar<"u"?e.maskLetterChar:"A",r=typeof e.maskNumberChar<"u"?e.maskNumberChar:"9",s=typeof e.maskWildcardChar<"u"?e.maskWildcardChar:"*";function a(l){var u=t[l];typeof u<"u"&&u!==s&&u!==i&&u!==r&&(n.value=n.value+""+u,a(l+1))}n.addEventListener("keydown",l=>{var u=n.value.length,c=l.key;if(l.keyCode>46&&!l.ctrlKey&&!l.metaKey){if(u>=t.length)return l.preventDefault(),l.stopPropagation(),!1;switch(t[u]){case i:if(c.toUpperCase()==c.toLowerCase())return l.preventDefault(),l.stopPropagation(),!1;break;case r:if(isNaN(c))return l.preventDefault(),l.stopPropagation(),!1;break;case s:break;default:if(c!==t[u])return l.preventDefault(),l.stopPropagation(),!1}}}),n.addEventListener("keyup",l=>{l.keyCode>46&&e.maskAutoFill&&a(n.value.length)}),n.placeholder||(n.placeholder=t),e.maskAutoFill&&a(n.value.length)}function OE(n,e,t,i,r){var s=n.getValue(),a=document.createElement("input");if(a.setAttribute("type",r.search?"search":"text"),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let u in r.elementAttributes)u.charAt(0)=="+"?(u=u.slice(1),a.setAttribute(u,a.getAttribute(u)+r.elementAttributes["+"+u])):a.setAttribute(u,r.elementAttributes[u]);a.value=typeof s<"u"?s:"",e(function(){n.getType()==="cell"&&(a.focus({preventScroll:!0}),a.style.height="100%",r.selectContents&&a.select())});function l(u){(s===null||typeof s>"u")&&a.value!==""||a.value!==s?t(a.value)&&(s=a.value):i()}return a.addEventListener("change",l),a.addEventListener("blur",l),a.addEventListener("keydown",function(u){switch(u.keyCode){case 13:l();break;case 27:i();break;case 35:case 36:u.stopPropagation();break}}),r.mask&&hr(a,r),a}function LE(n,e,t,i,r){var s=n.getValue(),a=r.verticalNavigation||"hybrid",l=String(s!==null&&typeof s<"u"?s:""),u=document.createElement("textarea"),c=0;if(u.style.display="block",u.style.padding="2px",u.style.height="100%",u.style.width="100%",u.style.boxSizing="border-box",u.style.whiteSpace="pre-wrap",u.style.resize="none",r.elementAttributes&&typeof r.elementAttributes=="object")for(let f in r.elementAttributes)f.charAt(0)=="+"?(f=f.slice(1),u.setAttribute(f,u.getAttribute(f)+r.elementAttributes["+"+f])):u.setAttribute(f,r.elementAttributes[f]);u.value=l,e(function(){n.getType()==="cell"&&(u.focus({preventScroll:!0}),u.style.height="100%",u.scrollHeight,u.style.height=u.scrollHeight+"px",n.getRow().normalizeHeight(),r.selectContents&&u.select())});function d(f){(s===null||typeof s>"u")&&u.value!==""||u.value!==s?(t(u.value)&&(s=u.value),setTimeout(function(){n.getRow().normalizeHeight()},300)):i()}return u.addEventListener("change",d),u.addEventListener("blur",d),u.addEventListener("keyup",function(){u.style.height="";var f=u.scrollHeight;u.style.height=f+"px",f!=c&&(c=f,n.getRow().normalizeHeight())}),u.addEventListener("keydown",function(f){switch(f.keyCode){case 13:f.shiftKey&&r.shiftEnterSubmit&&d();break;case 27:i();break;case 38:(a=="editor"||a=="hybrid"&&u.selectionStart)&&(f.stopImmediatePropagation(),f.stopPropagation());break;case 40:(a=="editor"||a=="hybrid"&&u.selectionStart!==u.value.length)&&(f.stopImmediatePropagation(),f.stopPropagation());break;case 35:case 36:f.stopPropagation();break}}),r.mask&&hr(u,r),u}function BE(n,e,t,i,r){var s=n.getValue(),a=r.verticalNavigation||"editor",l=document.createElement("input");if(l.setAttribute("type","number"),typeof r.max<"u"&&l.setAttribute("max",r.max),typeof r.min<"u"&&l.setAttribute("min",r.min),typeof r.step<"u"&&l.setAttribute("step",r.step),l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let d in r.elementAttributes)d.charAt(0)=="+"?(d=d.slice(1),l.setAttribute(d,l.getAttribute(d)+r.elementAttributes["+"+d])):l.setAttribute(d,r.elementAttributes[d]);l.value=s;var u=function(d){c()};e(function(){n.getType()==="cell"&&(l.removeEventListener("blur",u),l.focus({preventScroll:!0}),l.style.height="100%",l.addEventListener("blur",u),r.selectContents&&l.select())});function c(){var d=l.value;!isNaN(d)&&d!==""&&(d=Number(d)),d!==s?t(d)&&(s=d):i()}return l.addEventListener("keydown",function(d){switch(d.keyCode){case 13:c();break;case 27:i();break;case 38:case 40:a=="editor"&&(d.stopImmediatePropagation(),d.stopPropagation());break;case 35:case 36:d.stopPropagation();break}}),r.mask&&hr(l,r),l}function FE(n,e,t,i,r){var s=n.getValue(),a=document.createElement("input");if(a.setAttribute("type","range"),typeof r.max<"u"&&a.setAttribute("max",r.max),typeof r.min<"u"&&a.setAttribute("min",r.min),typeof r.step<"u"&&a.setAttribute("step",r.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let u in r.elementAttributes)u.charAt(0)=="+"?(u=u.slice(1),a.setAttribute(u,a.getAttribute(u)+r.elementAttributes["+"+u])):a.setAttribute(u,r.elementAttributes[u]);a.value=s,e(function(){n.getType()==="cell"&&(a.focus({preventScroll:!0}),a.style.height="100%")});function l(){var u=a.value;!isNaN(u)&&u!==""&&(u=Number(u)),u!=s?t(u)&&(s=u):i()}return a.addEventListener("blur",function(u){l()}),a.addEventListener("keydown",function(u){switch(u.keyCode){case 13:l();break;case 27:i();break}}),a}function _E(n,e,t,i,r){var s=r.format,a=r.verticalNavigation||"editor",l=s?window.DateTime||luxon.DateTime:null,u=n.getValue(),c=document.createElement("input");function d(p){var h;return l.isDateTime(p)?h=p:s==="iso"?h=l.fromISO(String(p)):h=l.fromFormat(String(p),s),h.toFormat("yyyy-MM-dd")}if(c.type="date",c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",r.max&&c.setAttribute("max",s?d(r.max):r.max),r.min&&c.setAttribute("min",s?d(r.min):r.min),r.elementAttributes&&typeof r.elementAttributes=="object")for(let p in r.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),c.setAttribute(p,c.getAttribute(p)+r.elementAttributes["+"+p])):c.setAttribute(p,r.elementAttributes[p]);u=typeof u<"u"?u:"",s&&(l?u=d(u):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),c.value=u,e(function(){n.getType()==="cell"&&(c.focus({preventScroll:!0}),c.style.height="100%",r.selectContents&&c.select())});function f(){var p=c.value,h;if((u===null||typeof u>"u")&&p!==""||p!==u){if(p&&s)switch(h=l.fromFormat(String(p),"yyyy-MM-dd"),s){case!0:p=h;break;case"iso":p=h.toISO();break;default:p=h.toFormat(s)}t(p)&&(u=c.value)}else i()}return c.addEventListener("blur",function(p){(p.relatedTarget||p.rangeParent||p.explicitOriginalTarget!==c)&&f()}),c.addEventListener("keydown",function(p){switch(p.keyCode){case 13:f();break;case 27:i();break;case 35:case 36:p.stopPropagation();break;case 38:case 40:a=="editor"&&(p.stopImmediatePropagation(),p.stopPropagation());break}}),c}function PE(n,e,t,i,r){var s=r.format,a=r.verticalNavigation||"editor",l=s?window.DateTime||luxon.DateTime:null,u,c=n.getValue(),d=document.createElement("input");if(d.type="time",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let p in r.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),d.setAttribute(p,d.getAttribute(p)+r.elementAttributes["+"+p])):d.setAttribute(p,r.elementAttributes[p]);c=typeof c<"u"?c:"",s&&(l?(l.isDateTime(c)?u=c:s==="iso"?u=l.fromISO(String(c)):u=l.fromFormat(String(c),s),c=u.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=c,e(function(){n.getType()=="cell"&&(d.focus({preventScroll:!0}),d.style.height="100%",r.selectContents&&d.select())});function f(){var p=d.value,h;if((c===null||typeof c>"u")&&p!==""||p!==c){if(p&&s)switch(h=l.fromFormat(String(p),"hh:mm"),s){case!0:p=h;break;case"iso":p=h.toISO();break;default:p=h.toFormat(s)}t(p)&&(c=d.value)}else i()}return d.addEventListener("blur",function(p){(p.relatedTarget||p.rangeParent||p.explicitOriginalTarget!==d)&&f()}),d.addEventListener("keydown",function(p){switch(p.keyCode){case 13:f();break;case 27:i();break;case 35:case 36:p.stopPropagation();break;case 38:case 40:a=="editor"&&(p.stopImmediatePropagation(),p.stopPropagation());break}}),d}function NE(n,e,t,i,r){var s=r.format,a=r.verticalNavigation||"editor",l=s?this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"):null,u,c=n.getValue(),d=document.createElement("input");if(d.type="datetime-local",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let p in r.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),d.setAttribute(p,d.getAttribute(p)+r.elementAttributes["+"+p])):d.setAttribute(p,r.elementAttributes[p]);c=typeof c<"u"?c:"",s&&(l?(l.isDateTime(c)?u=c:s==="iso"?u=l.fromISO(String(c)):u=l.fromFormat(String(c),s),c=u.toFormat("yyyy-MM-dd")+"T"+u.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=c,e(function(){n.getType()==="cell"&&(d.focus({preventScroll:!0}),d.style.height="100%",r.selectContents&&d.select())});function f(){var p=d.value,h;if((c===null||typeof c>"u")&&p!==""||p!==c){if(p&&s)switch(h=l.fromISO(String(p)),s){case!0:p=h;break;case"iso":p=h.toISO();break;default:p=h.toFormat(s)}t(p)&&(c=d.value)}else i()}return d.addEventListener("blur",function(p){(p.relatedTarget||p.rangeParent||p.explicitOriginalTarget!==d)&&f()}),d.addEventListener("keydown",function(p){switch(p.keyCode){case 13:f();break;case 27:i();break;case 35:case 36:p.stopPropagation();break;case 38:case 40:a=="editor"&&(p.stopImmediatePropagation(),p.stopPropagation());break}}),d}let IE=class{constructor(e,t,i,r,s,a){this.edit=e,this.table=e.table,this.cell=t,this.params=this._initializeParams(a),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:r,cancel:s},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&&hr(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(r=>t.includes(r)).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(r=>typeof r.label<"u"&&r.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(r=>this.listIteration===i?this._parseList(r):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=jc(e,{},i),fetch(e).then(r=>r.ok?r.json().catch(s=>(console.warn("List Ajax Load Error - Invalid JSON returned",s),Promise.reject(s))):(console.error("List Ajax Load Error - Connection Error: "+r.status,r.statusText),Promise.reject(r))).catch(r=>(console.error("List Ajax Load Error - Connection Error: ",r),Promise.reject(r)))}_uniqueColumnValues(e){var t={},i=this.table.getData(this.params.valuesLookup),r;return e?r=this.table.columnManager.getColumnByField(e):r=this.cell.getColumn()._getSelf(),r?i.forEach(s=>{var a=r.getFieldValue(s);this._emptyValueCheck(a)||(this.params.multiselect&&Array.isArray(a)?a.forEach(l=>{this._emptyValueCheck(l)||(t[l]=!0)}):t[a]=!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,r])=>({label:r,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 r={};e.options?r=this._parseListGroup(e,i+1):(r={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(r,!0)),t.push(r)}_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(r=>{this._parseListItem(r,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,r)=>e(i.label,r.label,i.value,r.value,i.original,r.original)),t.forEach(i=>{i.group&&this._sortGroup(e,i.options)})}_defaultSortFunction(e,t){var i,r,s,a,l=0,u,c=/(\d+)|(\D+)/g,d=/\d/,f=0;if(this.params.sort==="desc"&&([e,t]=[t,e]),!e&&e!==0)f=!t&&t!==0?0:-1;else if(!t&&t!==0)f=1;else{if(isFinite(e)&&isFinite(t))return e-t;if(i=String(e).toLowerCase(),r=String(t).toLowerCase(),i===r)return 0;if(!(d.test(i)&&d.test(r)))return i>r?1:-1;for(i=i.match(c),r=r.match(c),u=i.length>r.length?r.length:i.length;l<u;)if(s=i[l],a=r[l++],s!==a)return isFinite(s)&&isFinite(a)?(s.charAt(0)==="0"&&(s="."+s),a.charAt(0)==="0"&&(a="."+a),s-a):s>a?1:-1;return i.length>r.length}return f}_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 r=!1;return i.group?(i.options.forEach(s=>{this._filterItem(e,t,s)&&(r=!0)}),i.visible=r):i.visible=e(t,i.label,i.value,i.original),i.visible}_defaultFilterFunc(e,t,i,r){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 r in e.elementAttributes)r.charAt(0)=="+"?(r=r.slice(1),t.setAttribute(r,this.input.getAttribute(r)+e.elementAttributes["+"+r])):t.setAttribute(r,e.elementAttributes[r]);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(r=>{this._buildItem(r)}):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(r=>r.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(r=>r.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 HE(n,e,t,i,r){var s=new IE(this,n,e,t,i,r);return s.input}function VE(n,e,t,i,r){var s=this,a=n.getElement(),l=n.getValue(),u=a.getElementsByTagName("svg").length||5,c=a.getElementsByTagName("svg")[0]?a.getElementsByTagName("svg")[0].getAttribute("width"):14,d=[],f=document.createElement("div"),p=document.createElementNS("http://www.w3.org/2000/svg","svg");function h(b){d.forEach(function(g,M){M<b?(s.table.browser=="ie"?g.setAttribute("class","tabulator-star-active"):g.classList.replace("tabulator-star-inactive","tabulator-star-active"),g.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 "/>'):(s.table.browser=="ie"?g.setAttribute("class","tabulator-star-inactive"):g.classList.replace("tabulator-star-active","tabulator-star-inactive"),g.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 S(b){var g=document.createElement("span"),M=p.cloneNode(!0);d.push(M),g.addEventListener("mouseenter",function(v){v.stopPropagation(),v.stopImmediatePropagation(),h(b)}),g.addEventListener("mousemove",function(v){v.stopPropagation(),v.stopImmediatePropagation()}),g.addEventListener("click",function(v){v.stopPropagation(),v.stopImmediatePropagation(),t(b),a.blur()}),g.appendChild(M),f.appendChild(g)}function m(b){l=b,h(b)}if(a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",f.style.verticalAlign="middle",f.style.display="inline-block",f.style.padding="4px",p.setAttribute("width",c),p.setAttribute("height",c),p.setAttribute("viewBox","0 0 512 512"),p.setAttribute("xml:space","preserve"),p.style.padding="0 1px",r.elementAttributes&&typeof r.elementAttributes=="object")for(let b in r.elementAttributes)b.charAt(0)=="+"?(b=b.slice(1),f.setAttribute(b,f.getAttribute(b)+r.elementAttributes["+"+b])):f.setAttribute(b,r.elementAttributes[b]);for(var A=1;A<=u;A++)S(A);return l=Math.min(parseInt(l),u),h(l),f.addEventListener("mousemove",function(b){h(0)}),f.addEventListener("click",function(b){t(0)}),a.addEventListener("blur",function(b){i()}),a.addEventListener("keydown",function(b){switch(b.keyCode){case 39:m(l+1);break;case 37:m(l-1);break;case 13:t(l);break;case 27:i();break}}),f}function zE(n,e,t,i,r){var s=n.getElement(),a=typeof r.max>"u"?s.getElementsByTagName("div")[0]&&s.getElementsByTagName("div")[0].getAttribute("max")||100:r.max,l=typeof r.min>"u"?s.getElementsByTagName("div")[0]&&s.getElementsByTagName("div")[0].getAttribute("min")||0:r.min,u=(a-l)/100,c=n.getValue()||0,d=document.createElement("div"),f=document.createElement("div"),p,h;function S(){var m=window.getComputedStyle(s,null),A=u*Math.round(f.offsetWidth/((s.clientWidth-parseInt(m.getPropertyValue("padding-left"))-parseInt(m.getPropertyValue("padding-right")))/100))+l;t(A),s.setAttribute("aria-valuenow",A),s.setAttribute("aria-label",c)}if(d.style.position="absolute",d.style.right="0",d.style.top="0",d.style.bottom="0",d.style.width="5px",d.classList.add("tabulator-progress-handle"),f.style.display="inline-block",f.style.position="relative",f.style.height="100%",f.style.backgroundColor="#488CE9",f.style.maxWidth="100%",f.style.minWidth="0%",r.elementAttributes&&typeof r.elementAttributes=="object")for(let m in r.elementAttributes)m.charAt(0)=="+"?(m=m.slice(1),f.setAttribute(m,f.getAttribute(m)+r.elementAttributes["+"+m])):f.setAttribute(m,r.elementAttributes[m]);return s.style.padding="4px 4px",c=Math.min(parseFloat(c),a),c=Math.max(parseFloat(c),l),c=Math.round((c-l)/u),f.style.width=c+"%",s.setAttribute("aria-valuemin",l),s.setAttribute("aria-valuemax",a),f.appendChild(d),d.addEventListener("mousedown",function(m){p=m.screenX,h=f.offsetWidth}),d.addEventListener("mouseover",function(){d.style.cursor="ew-resize"}),s.addEventListener("mousemove",function(m){p&&(f.style.width=h+m.screenX-p+"px")}),s.addEventListener("mouseup",function(m){p&&(m.stopPropagation(),m.stopImmediatePropagation(),p=!1,h=!1,S())}),s.addEventListener("keydown",function(m){switch(m.keyCode){case 39:m.preventDefault(),f.style.width=f.clientWidth+s.clientWidth/100+"px";break;case 37:m.preventDefault(),f.style.width=f.clientWidth-s.clientWidth/100+"px";break;case 9:case 13:S();break;case 27:i();break}}),s.addEventListener("blur",function(){i()}),f}function jE(n,e,t,i,r){var s=n.getValue(),a=document.createElement("input"),l=r.tristate,u=typeof r.indeterminateValue>"u"?null:r.indeterminateValue,c=!1,d=Object.keys(r).includes("trueValue"),f=Object.keys(r).includes("falseValue");if(a.setAttribute("type","checkbox"),a.style.marginTop="5px",a.style.boxSizing="border-box",r.elementAttributes&&typeof r.elementAttributes=="object")for(let h in r.elementAttributes)h.charAt(0)=="+"?(h=h.slice(1),a.setAttribute(h,a.getAttribute(h)+r.elementAttributes["+"+h])):a.setAttribute(h,r.elementAttributes[h]);a.value=s,l&&(typeof s>"u"||s===u||s==="")&&(c=!0,a.indeterminate=!0),this.table.browser!="firefox"&&this.table.browser!="safari"&&e(function(){n.getType()==="cell"&&a.focus({preventScroll:!0})}),a.checked=d?s===r.trueValue:s===!0||s==="true"||s==="True"||s===1;function p(h){var S=a.checked;return d&&S?S=r.trueValue:f&&!S&&(S=r.falseValue),l?h?c?u:S:a.checked&&!c?(a.checked=!1,a.indeterminate=!0,c=!0,u):(c=!1,S):S}return a.addEventListener("change",function(h){t(p())}),a.addEventListener("blur",function(h){t(p(!0))}),a.addEventListener("keydown",function(h){h.keyCode==13&&t(p()),h.keyCode==27&&i()}),a}function WE(n,e,t,i,r){var s=n._getSelf().column,a,l,u;function c(d){var f=d.getValue(),p="input";switch(typeof f){case"number":p="number";break;case"boolean":p="tickCross";break;case"string":f.includes(`
|
|
36
|
+
`)&&(p="textarea");break}return p}return a=r.editorLookup?r.editorLookup(n):c(n),r.paramsLookup&&(u=typeof r.paramsLookup=="function"?r.paramsLookup(a,n):r.paramsLookup[a]),l=this.table.modules.edit.lookupEditor(a,s),l.call(this,n,e,t,i,u||{})}var UE={input:OE,textarea:LE,number:BE,range:FE,date:_E,time:PE,datetime:NE,list:HE,star:VE,progress:zE,tickCross:jE,adaptable:WE};class Ma extends ze{static moduleName="edit";static editors=UE;constructor(e){super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.convertEmptyValues=!1,this.editors=Ma.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,r;if(e){if(t&&t.preventDefault(),i=this.navigateLeft(),i)return!0;if(r=this.table.rowManager.prevDisplayRow(e.row,!0),r&&(i=this.findPrevEditableCell(r,r.cells.length),i))return i.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var i,r;if(e){if(t&&t.preventDefault(),i=this.navigateRight(),i)return!0;if(r=this.table.rowManager.nextDisplayRow(e.row,!0),r&&(i=this.findNextEditableCell(r,-1),i))return i.getComponent().edit(),!0}return!1}navigateLeft(e=this.currentCell,t){var i,r;return e&&(t&&t.preventDefault(),i=e.getIndex(),r=this.findPrevEditableCell(e.row,i),r)?(r.getComponent().edit(),!0):!1}navigateRight(e=this.currentCell,t){var i,r;return e&&(t&&t.preventDefault(),i=e.getIndex(),r=this.findNextEditableCell(e.row,i),r)?(r.getComponent().edit(),!0):!1}navigateUp(e=this.currentCell,t){var i,r;return e&&(t&&t.preventDefault(),i=e.getIndex(),r=this.table.rowManager.prevDisplayRow(e.row,!0),r)?(r.cells[i].getComponent().edit(),!0):!1}navigateDown(e=this.currentCell,t){var i,r;return e&&(t&&t.preventDefault(),i=e.getIndex(),r=this.table.rowManager.nextDisplayRow(e.row,!0),r)?(r.cells[i].getComponent().edit(),!0):!1}findNextEditableCell(e,t){var i=!1;if(t<e.cells.length-1)for(var r=t+1;r<e.cells.length;r++){let s=e.cells[r];if(s.column.modules.edit&&Xe.elVisible(s.getElement())&&this.allowEdit(s)){i=s;break}}return i}findPrevEditableCell(e,t){var i=!1;if(t>0)for(var r=t-1;r>=0;r--){let s=e.cells[r];if(s.column.modules.edit&&Xe.elVisible(s.getElement())&&this.allowEdit(s)){i=s;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(r){r.button===2?r.preventDefault():t.mouseClick=!0}),this.options("editTriggerEvent")==="dblclick"&&i.addEventListener("dblclick",function(r){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,r,!1))}),(this.options("editTriggerEvent")==="focus"||this.options("editTriggerEvent")==="click")&&i.addEventListener("click",function(r){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,r,!1))}),this.options("editTriggerEvent")==="focus"&&i.addEventListener("focus",function(r){t.recursionBlock||t.edit(e,r,!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,r=e.row.getElement();r.offsetTop<t?this.table.rowManager.element.scrollTop-=t-r.offsetTop:r.offsetTop+r.offsetHeight>i&&(this.table.rowManager.element.scrollTop+=r.offsetTop+r.offsetHeight-i);var s=this.table.rowManager.element.scrollLeft,a=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,l=e.getElement();this.table.modExists("frozenColumns")&&(s+=parseInt(this.table.modules.frozenColumns.leftMargin||0),a-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),this.table.options.renderHorizontal==="virtual"&&(s-=parseInt(this.table.columnManager.renderer.vDomPadLeft),a-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),l.offsetLeft<s?this.table.rowManager.element.scrollLeft-=s-l.offsetLeft:l.offsetLeft+l.offsetWidth>a&&(this.table.rowManager.element.scrollLeft+=l.offsetLeft+l.offsetWidth-a)}}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 r=this,s=!0,a=function(){},l=e.getElement(),u=!1,c,d,f;if(this.currentCell){!this.invalidEdit&&this.currentCell!==e&&this.cancelEdit();return}function p(b){if(r.currentCell===e&&!u){var g=r.chain("edit-success",[e,b],!0,!0);return g===!0||r.table.options.validationMode==="highlight"?(u=!0,r.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,r.editedCells.indexOf(e)==-1&&r.editedCells.push(e),b=r.transformEmptyValues(b,e),e.setValue(b,!0),g===!0):(u=!0,r.invalidEdit=!0,r.focusCellNoEvent(e,!0),a(),setTimeout(()=>{u=!1},10),!1)}}function h(){r.currentCell===e&&!u&&r.cancelEdit()}function S(b){a=b}if(e.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(l),!1;if(t&&t.stopPropagation(),s=this.allowEdit(e),s||i){if(r.cancelEdit(),r.currentCell=e,this.focusScrollAdjust(e),d=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,d)),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,d),this.dispatch("cell-editing",e),this.dispatchExternal("cellEditing",d),f=typeof e.column.modules.edit.params=="function"?e.column.modules.edit.params(d):e.column.modules.edit.params,c=e.column.modules.edit.editor.call(r,d,S,p,h,f),this.currentCell&&c!==!1)if(c 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(c),a();for(var m=l.children,A=0;A<m.length;A++)m[A].addEventListener("click",function(b){b.stopPropagation()})}else return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",c),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,r=i.convertEmptyValues||this.convertEmptyValues,s;return r&&(s=i.editorEmptyValueFunc||this.options("editorEmptyValueFunc"),s&&s(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)}}class Yc{constructor(e,t,i,r){this.type=e,this.columns=t,this.component=i||!1,this.indent=r||0}}class Ta{constructor(e,t,i,r,s){this.value=e,this.component=t||!1,this.width=i,this.height=r,this.depth=s}}var GE={},YE={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()}};class An extends ze{static moduleName="export";static columnLookups=GE;static rowLookups=YE;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,r){var s,a,l,u;return this.cloneTableStyle=t,this.config=e||{},this.colVisProp=r,this.colVisPropAttach=this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1),u=An.columnLookups[i],u&&(l=u.call(this.table),l=l.filter(c=>this.columnVisCheck(c))),s=this.config.columnHeaders!==!1?this.headersToExportRows(this.generateColumnGroupHeaders(l)):[],l&&(l=l.map(c=>c.getComponent())),a=this.bodyToExportRows(this.rowLookup(i),l),s.concat(a)}generateTable(e,t,i,r){var s=this.generateExportList(e,t,i,r);return this.generateTableElement(s)}rowLookup(e){var t=[],i;return typeof e=="function"?e.call(this.table).forEach(r=>{r=this.table.rowManager.findRow(r),r&&t.push(r)}):(i=An.rowLookups[e]||An.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 r=this.processColumnGroup(i);r&&t.push(r)}),t}processColumnGroup(e){var t=e.columns,i=0,r=e.definition["title"+this.colVisPropAttach]||e.definition.title,s={title:r,column:e,depth:1};if(t.length){if(s.subGroups=[],s.width=0,t.forEach(a=>{var l=this.processColumnGroup(a);l&&(s.width+=l.width,s.subGroups.push(l),l.depth>i&&(i=l.depth))}),s.depth+=i,!s.width)return!1}else if(this.columnVisCheck(e))s.width=1;else return!1;return s}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,r=[];function s(a,l){var u=i-l;if(typeof t[l]>"u"&&(t[l]=[]),a.height=a.subGroups?1:u-a.depth+1,t[l].push(a),a.height>1)for(let c=1;c<a.height;c++)typeof t[l+c]>"u"&&(t[l+c]=[]),t[l+c].push(!1);if(a.width>1)for(let c=1;c<a.width;c++)t[l].push(!1);a.subGroups&&a.subGroups.forEach(function(c){s(c,l+1)})}return e.forEach(function(a){a.depth>i&&(i=a.depth)}),e.forEach(function(a){s(a,0)}),t.forEach(a=>{var l=[];a.forEach(u=>{if(u){let c=typeof u.title>"u"?"":u.title;l.push(new Ta(c,u.column.getComponent(),u.width,u.height,u.depth))}else l.push(null)}),r.push(new Yc("header",l))}),r}bodyToExportRows(e,t=[]){var i=[];return t.length===0&&this.table.columnManager.columnsByIndex.forEach(r=>{this.columnVisCheck(r)&&t.push(r.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(r=>{switch(r.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&&r.modules.dataTree.parent)}return!0}),e.forEach((r,s)=>{var a=r.getData(this.colVisProp),l=[],u=0;switch(r.type){case"group":u=r.level,l.push(new Ta(r.key,r.getComponent(),t.length,1));break;case"calc":case"row":t.forEach(c=>{l.push(new Ta(c._column.getFieldValue(a),c,1,1))}),this.table.options.dataTree&&this.config.dataTree!==!1&&(u=r.modules.dataTree.index);break}i.push(new Yc(r.type,l,r.getComponent(),u))}),i}generateTableElement(e){var t=document.createElement("table"),i=document.createElement("thead"),r=document.createElement("tbody"),s=this.lookupTableStyles(),a=this.table.options["rowFormatter"+this.colVisPropAttach],l={};return l.rowFormatter=a!==null?a: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((u,c)=>{let d;switch(u.type){case"header":i.appendChild(this.generateHeaderElement(u,l,s));break;case"group":r.appendChild(this.generateGroupElement(u,l,s));break;case"calc":r.appendChild(this.generateCalcElement(u,l,s));break;case"row":d=this.generateRowElement(u,l,s),this.mapElementStyles(c%2&&s.evenRow?s.evenRow:s.oddRow,d,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),r.appendChild(d);break}}),i.innerHTML&&t.appendChild(i),t.appendChild(r),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 r=document.createElement("tr");return e.columns.forEach(s=>{if(s){var a=document.createElement("th"),l=s.component._column.definition.cssClass?s.component._column.definition.cssClass.split(" "):[];a.colSpan=s.width,a.rowSpan=s.height,a.innerHTML=s.value,this.cloneTableStyle&&(a.style.boxSizing="border-box"),l.forEach(function(u){a.classList.add(u)}),this.mapElementStyles(s.component.getElement(),a,["text-align","border-left","border-right","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(s.component._column.contentElement,a,["padding-top","padding-left","padding-right","padding-bottom"]),s.component._column.visible?this.mapElementStyles(s.component.getElement(),a,["width"]):s.component._column.definition.width&&(a.style.width=s.component._column.definition.width+"px"),s.component._column.parent&&s.component._column.parent.isGroup?this.mapElementStyles(s.component._column.parent.groupElement,a,["border-top"]):this.mapElementStyles(s.component.getElement(),a,["border-top"]),s.component._column.isGroup?this.mapElementStyles(s.component.getElement(),a,["border-bottom"]):this.mapElementStyles(this.table.columnManager.getElement(),a,["border-bottom"]),r.appendChild(a)}}),r}generateGroupElement(e,t,i){var r=document.createElement("tr"),s=document.createElement("td"),a=e.columns[0];return r.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?a.value=t.groupHeader[e.indent](a.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):t.groupHeader!==!1&&(a.value=e.component._group.generator(a.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)),s.colSpan=a.width,s.innerHTML=a.value,r.classList.add("tabulator-print-table-group"),r.classList.add("tabulator-group-level-"+e.indent),a.component.isVisible()&&r.classList.add("tabulator-group-visible"),this.mapElementStyles(i.firstGroup,r,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(i.firstGroup,s,["padding-top","padding-left","padding-right","padding-bottom"]),r.appendChild(s),r}generateCalcElement(e,t,i){var r=this.generateRowElement(e,t,i);return r.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(i.calcRow,r,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),r}generateRowElement(e,t,i){var r=document.createElement("tr");if(r.classList.add("tabulator-print-table-row"),e.columns.forEach((s,a)=>{if(s){var l=document.createElement("td"),u=s.component._column,c=this.table,d=c.columnManager.findColumnIndex(u),f=s.value,p,h,S={modules:{},getValue:function(){return f},getField:function(){return u.definition.field},getElement:function(){return l},getType:function(){return"cell"},getColumn:function(){return u.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getTable:function(){return c},getComponent:function(){return S},column:u},m=u.definition.cssClass?u.definition.cssClass.split(" "):[];if(m.forEach(function(A){l.classList.add(A)}),this.table.modExists("format")&&this.config.formatCells!==!1)f=this.table.modules.format.formatExportValue(S,this.colVisProp);else switch(typeof f){case"object":f=f!==null?JSON.stringify(f):"";break;case"undefined":f="";break}f instanceof Node?l.appendChild(f):l.innerHTML=f,h=["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"],u.isRowHeader?(p=i.styleRowHeader,h.push("background-color")):p=i.styleCells&&i.styleCells[d]?i.styleCells[d]:i.firstCell,p&&(this.mapElementStyles(p,l,h),u.definition.align&&(l.style.textAlign=u.definition.align)),this.table.options.dataTree&&this.config.dataTree!==!1&&(t.treeElementField&&t.treeElementField==u.field||!t.treeElementField&&a==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)),r.appendChild(l),S.modules.format&&S.modules.format.renderedCallback&&S.modules.format.renderedCallback()}}),t.rowFormatter&&e.type==="row"&&this.config.formatCells!==!1){let s=Object.assign(e.component);s.getElement=function(){return r},t.rowFormatter(e.component)}return r}generateHTMLTable(e){var t=document.createElement("div");return t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,i,r){var s=this.generateExportList(i||this.table.options.htmlOutputConfig,t,e,r||"htmlOutput");return this.generateHTMLTable(s)}mapElementStyles(e,t,i){if(this.cloneTableStyle&&e&&t){var r={"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 s=window.getComputedStyle(e);i.forEach(function(a){t.style[r[a]]||(t.style[r[a]]=s.getPropertyValue(a))})}}}}var QE={"=":function(n,e,t,i){return e==n},"<":function(n,e,t,i){return e<n},"<=":function(n,e,t,i){return e<=n},">":function(n,e,t,i){return e>n},">=":function(n,e,t,i){return e>=n},"!=":function(n,e,t,i){return e!=n},regex:function(n,e,t,i){return typeof n=="string"&&(n=new RegExp(n)),n.test(e)},like:function(n,e,t,i){return n===null||typeof n>"u"?e===n:typeof e<"u"&&e!==null?String(e).toLowerCase().indexOf(n.toLowerCase())>-1:!1},keywords:function(n,e,t,i){var r=n.toLowerCase().split(typeof i.separator>"u"?" ":i.separator),s=String(e===null||typeof e>"u"?"":e).toLowerCase(),a=[];return r.forEach(l=>{s.includes(l)&&a.push(!0)}),i.matchAll?a.length===r.length:!!a.length},starts:function(n,e,t,i){return n===null||typeof n>"u"?e===n:typeof e<"u"&&e!==null?String(e).toLowerCase().startsWith(n.toLowerCase()):!1},ends:function(n,e,t,i){return n===null||typeof n>"u"?e===n:typeof e<"u"&&e!==null?String(e).toLowerCase().endsWith(n.toLowerCase()):!1},in:function(n,e,t,i){return Array.isArray(n)?n.length?n.indexOf(e)>-1:!0:(console.warn("Filter Error - filter value is not an array:",n),!1)}};class Ri extends ze{static moduleName="filter";static filters=QE;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,r){return r.filter=this.getFilters(!0,!0),r}generatePlaceholder(e){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,i,r){this.setFilter(e,t,i,r),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(e,t,i,r){this.addFilter(e,t,i,r),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,r=e.getField();function s(a){var l=e.modules.filter.tagType=="input"&&e.modules.filter.attrType=="text"||e.modules.filter.tagType=="textarea"?"partial":"match",u="",c="",d;if(typeof e.modules.filter.prevSuccess>"u"||e.modules.filter.prevSuccess!==a){if(e.modules.filter.prevSuccess=a,e.modules.filter.emptyFunc(a))delete i.headerFilters[r];else{switch(e.modules.filter.value=a,typeof e.definition.headerFilterFunc){case"string":Ri.filters[e.definition.headerFilterFunc]?(u=e.definition.headerFilterFunc,d=function(f){var p=e.definition.headerFilterFuncParams||{},h=e.getFieldValue(f);return p=typeof p=="function"?p(a,h,f):p,Ri.filters[e.definition.headerFilterFunc](a,h,f,p)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":d=function(f){var p=e.definition.headerFilterFuncParams||{},h=e.getFieldValue(f);return p=typeof p=="function"?p(a,h,f):p,e.definition.headerFilterFunc(a,h,f,p)},u=d;break}if(!d)switch(l){case"partial":d=function(f){var p=e.getFieldValue(f);return typeof p<"u"&&p!==null?String(p).toLowerCase().indexOf(String(a).toLowerCase())>-1:!1},u="like";break;default:d=function(f){return e.getFieldValue(f)==a},u="="}i.headerFilters[r]={value:a,func:d,type:u}}e.modules.filter.value=a,c=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==c&&(i.prevHeaderFilterChangeCheck=c,i.trackChanges(),i.refreshFilter())}return!0}e.modules.filter={success:s,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,i){var r=this,s=e.modules.filter.success,a=e.getField(),l,u,c,d,f,p,h,S;e.modules.filter.value=t;function m(){}function A(b){S=b}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),a){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(b){return!b&&b!==0},l=document.createElement("div"),l.classList.add("tabulator-header-filter"),typeof e.definition.headerFilter){case"string":r.table.modules.edit.editors[e.definition.headerFilter]?(u=r.table.modules.edit.editors[e.definition.headerFilter],(e.definition.headerFilter==="tick"||e.definition.headerFilter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(b){return b!==!0&&b!==!1})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":u=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?u=e.modules.edit.editor:e.definition.formatter&&r.table.modules.edit.editors[e.definition.formatter]?(u=r.table.modules.edit.editors[e.definition.formatter],(e.definition.formatter==="tick"||e.definition.formatter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(b){return b!==!0&&b!==!1})):u=r.table.modules.edit.editors.input;break}if(u){if(d={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(){}}}},h=e.definition.headerFilterParams||{},h=typeof h=="function"?h.call(r.table,d):h,c=u.call(this.table.modules.edit,d,A,s,m,h),!c){console.warn("Filter Error - Cannot add filter to "+a+" column, editor returned a value of false");return}if(!(c instanceof Node)){console.warn("Filter Error - Cannot add filter to "+a+" column, editor should return an instance of Node, the editor returned:",c);return}r.langBind("headerFilters|columns|"+e.definition.field,function(b){c.setAttribute("placeholder",typeof b<"u"&&b?b:e.definition.headerFilterPlaceholder||r.langText("headerFilters|default"))}),c.addEventListener("click",function(b){b.stopPropagation(),c.focus()}),c.addEventListener("focus",b=>{var g=this.table.columnManager.contentsElement.scrollLeft,M=this.table.rowManager.element.scrollLeft;g!==M&&(this.table.rowManager.scrollHorizontal(g),this.table.columnManager.scrollHorizontal(g))}),f=!1,p=function(b){f&&clearTimeout(f),f=setTimeout(function(){s(c.value)},r.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=c,e.modules.filter.attrType=c.hasAttribute("type")?c.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=c.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||(c.addEventListener("keyup",p),c.addEventListener("search",p),e.modules.filter.attrType=="number"&&c.addEventListener("change",function(b){s(c.value)}),e.modules.filter.attrType=="text"&&this.table.browser!=="ie"&&c.setAttribute("type","search")),(e.modules.filter.tagType=="input"||e.modules.filter.tagType=="select"||e.modules.filter.tagType=="textarea")&&c.addEventListener("mousedown",function(b){b.stopPropagation()})),l.appendChild(c),e.contentElement.appendChild(l),i||r.headerFilterColumns.push(e),S&&S()}}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,r){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:i,params:r}]),this.addFilter(e)}addFilter(e,t,i,r){var s=!1;Array.isArray(e)||(e=[{field:e,type:t,value:i,params:r}]),e.forEach(a=>{a=this.findFilter(a),a&&(this.filterList.push(a),s=!0)}),s&&this.trackChanges()}findFilter(e){var t;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return typeof e.field=="function"?i=function(r){return e.field(r,e.type||{})}:Ri.filters[e.type]?(t=this.table.columnManager.getColumnByField(e.field),t?i=function(r){return Ri.filters[e.type](e.value,t.getFieldValue(r),r,e.params||{})}:i=function(r){return Ri.filters[e.type](e.value,r[e.field],r,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(r){typeof r.type=="function"&&(r.type="function")}),i=i.concat(this.filtersToArray(this.filterList,t)),i}filtersToArray(e,t){var i=[];return e.forEach(r=>{var s;Array.isArray(r)?i.push(this.filtersToArray(r,t)):(s={field:r.field,type:r.type,value:r.value},t&&typeof s.type=="function"&&(s.type="function"),i.push(s))}),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(r=>{var s=-1;typeof r.field=="object"?s=this.filterList.findIndex(a=>r===a):s=this.filterList.findIndex(a=>r.field===a.field&&r.type===a.type&&r.value===a.value),s>-1?this.filterList.splice(s,1):console.warn("Filter Error - No matching filter type found, ignoring: ",r.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,r){var s=[],a=[];return Array.isArray(t)||(t=[{field:t,type:i,value:r}]),t.forEach(l=>{l=this.findFilter(l),l&&a.push(l)}),this.table.rowManager.rows.forEach(l=>{var u=!0;a.forEach(c=>{this.filterRecurse(c,l.getData())||(u=!1)}),u&&s.push(e==="data"?l.getData("data"):l.getComponent())}),s}filter(e,t){var i=[],r=[];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(s=>{this.filterRow(s)&&i.push(s)}):i=e.slice(0),this.subscribedExternal("dataFiltered")&&(i.forEach(s=>{r.push(s.getComponent())}),this.dispatchExternal("dataFiltered",this.getFilters(!0),r)),i}filterRow(e,t){var i=!0,r=e.getData();this.filterList.forEach(a=>{this.filterRecurse(a,r)||(i=!1)});for(var s in this.headerFilters)this.headerFilters[s].func(r)||(i=!1);return i}filterRecurse(e,t){var i=!1;return Array.isArray(e)?e.forEach(r=>{this.filterRecurse(r,t)&&(i=!0)}):i=e.func(t),i}}function KE(n,e,t){return this.emptyToSpace(this.sanitizeHTML(n.getValue()))}function JE(n,e,t){return n.getValue()}function qE(n,e,t){return n.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(n.getValue()))}function $E(n,e,t){var i=parseFloat(n.getValue()),r="",s,a,l,u,c,d=e.decimal||".",f=e.thousand||",",p=e.negativeSign||"-",h=e.symbol||"",S=!!e.symbolAfter,m=typeof e.precision<"u"?e.precision:2;if(isNaN(i))return this.emptyToSpace(this.sanitizeHTML(n.getValue()));if(i<0&&(i=Math.abs(i),r=p),s=m!==!1?i.toFixed(m):i,s=String(s).split("."),a=s[0],l=s.length>1?d+s[1]:"",e.thousand!==!1)for(u=/(\d+)(\d{3})/;u.test(a);)a=a.replace(u,"$1"+f+"$2");return c=a+l,r===!0?(c="("+c+")",S?c+h:h+c):S?r+c+h:r+h+c}function ZE(n,e,t){var i=n.getValue(),r=e.urlPrefix||"",s=e.download,a=i,l=document.createElement("a"),u;function c(d,f){var p=d.shift(),h=f[p];return d.length&&typeof h=="object"?c(d,h):h}if(e.labelField&&(u=n.getData(),a=c(e.labelField.split(this.table.options.nestedFieldSeparator),u)),e.label)switch(typeof e.label){case"string":a=e.label;break;case"function":a=e.label(n);break}if(a){if(e.urlField&&(u=n.getData(),i=Xe.retrieveNestedData(this.table.options.nestedFieldSeparator,e.urlField,u)),e.url)switch(typeof e.url){case"string":i=e.url;break;case"function":i=e.url(n);break}return l.setAttribute("href",r+i),e.target&&l.setAttribute("target",e.target),e.download&&(typeof s=="function"?s=s(n):s=s===!0?"":s,l.setAttribute("download",s)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(a)),l}else return" "}function XE(n,e,t){var i=document.createElement("img"),r=n.getValue();switch(e.urlPrefix&&(r=e.urlPrefix+n.getValue()),e.urlSuffix&&(r=r+e.urlSuffix),i.setAttribute("src",r),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(){n.getRow().normalizeHeight()}),i}function e0(n,e,t){var i=n.getValue(),r=n.getElement(),s=e.allowEmpty,a=e.allowTruthy,l=Object.keys(e).includes("trueValue"),u=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>',c=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&&(a&&i||i===!0||i==="true"||i==="True"||i===1||i==="1")?(r.setAttribute("aria-checked",!0),u||""):s&&(i==="null"||i===""||i===null||typeof i>"u")?(r.setAttribute("aria-checked","mixed"),""):(r.setAttribute("aria-checked",!1),c||"")}function t0(n,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),r=e.inputFormat||"yyyy-MM-dd HH:mm:ss",s=e.outputFormat||"dd/MM/yyyy HH:mm:ss",a=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",l=n.getValue();if(typeof i<"u"){var u;return i.isDateTime(l)?u=l:r==="iso"?u=i.fromISO(String(l)):u=i.fromFormat(String(l),r),u.isValid?(e.timezone&&(u=u.setZone(e.timezone)),u.toFormat(s)):a===!0||!l?l:typeof a=="function"?a(l):a}else console.error("Format Error - 'datetime' formatter is dependant on luxon.js")}function i0(n,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),r=e.inputFormat||"yyyy-MM-dd HH:mm:ss",s=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",a=typeof e.suffix<"u"?e.suffix:!1,l=typeof e.unit<"u"?e.unit:"days",u=typeof e.humanize<"u"?e.humanize:!1,c=typeof e.date<"u"?e.date:i.now(),d=n.getValue();if(typeof i<"u"){var f;return i.isDateTime(d)?f=d:r==="iso"?f=i.fromISO(String(d)):f=i.fromFormat(String(d),r),f.isValid?u?f.diff(c,l).toHuman()+(a?" "+a:""):parseInt(f.diff(c,l)[l])+(a?" "+a:""):s===!0?d:typeof s=="function"?s(d):s}else console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")}function n0(n,e,t){var i=n.getValue();return typeof e[i]>"u"?(console.warn("Missing display value for "+i),i):e[i]}function r0(n,e,t){var i=n.getValue(),r=n.getElement(),s=e&&e.stars?e.stars:5,a=document.createElement("span"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),u='<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 "/>',c='<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 "/>';a.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,s));for(var d=1;d<=s;d++){var f=l.cloneNode(!0);f.innerHTML=d<=i?u:c,a.appendChild(f)}return r.style.whiteSpace="nowrap",r.style.overflow="hidden",r.style.textOverflow="ellipsis",r.setAttribute("aria-label",i),a}function s0(n,e,t){var i=this.sanitizeHTML(n.getValue())||0,r=document.createElement("span"),s=e&&e.max?e.max:100,a=e&&e.min?e.min:0,l=e&&typeof e.color<"u"?e.color:["red","orange","green"],u="#666666",c,d;if(!(isNaN(i)||typeof n.getValue()>"u")){switch(r.classList.add("tabulator-traffic-light"),d=parseFloat(i)<=s?parseFloat(i):s,d=parseFloat(d)>=a?parseFloat(d):a,c=(s-a)/100,d=Math.round((d-a)/c),typeof l){case"string":u=l;break;case"function":u=l(i);break;case"object":if(Array.isArray(l)){var f=100/l.length,p=Math.floor(d/f);p=Math.min(p,l.length-1),p=Math.max(p,0),u=l[p];break}}return r.style.backgroundColor=u,r}}function a0(n,e={},t){var i=this.sanitizeHTML(n.getValue())||0,r=n.getElement(),s=e.max?e.max:100,a=e.min?e.min:0,l=e.legendAlign?e.legendAlign:"center",u,c,d,f,p;switch(c=parseFloat(i)<=s?parseFloat(i):s,c=parseFloat(c)>=a?parseFloat(c):a,u=(s-a)/100,c=Math.round((c-a)/u),typeof e.color){case"string":d=e.color;break;case"function":d=e.color(i);break;case"object":if(Array.isArray(e.color)){let A=100/e.color.length,b=Math.floor(c/A);b=Math.min(b,e.color.length-1),b=Math.max(b,0),d=e.color[b];break}default:d="#2DC214"}switch(typeof e.legend){case"string":f=e.legend;break;case"function":f=e.legend(i);break;case"boolean":f=i;break;default:f=!1}switch(typeof e.legendColor){case"string":p=e.legendColor;break;case"function":p=e.legendColor(i);break;case"object":if(Array.isArray(e.legendColor)){let A=100/e.legendColor.length,b=Math.floor(c/A);b=Math.min(b,e.legendColor.length-1),b=Math.max(b,0),p=e.legendColor[b]}break;default:p="#000"}r.style.minWidth="30px",r.style.position="relative",r.setAttribute("aria-label",c);var h=document.createElement("div");h.style.display="inline-block",h.style.width=c+"%",h.style.backgroundColor=d,h.style.height="100%",h.setAttribute("data-max",s),h.setAttribute("data-min",a);var S=document.createElement("div");if(S.style.position="relative",S.style.width="100%",S.style.height="100%",f){var m=document.createElement("div");m.style.position="absolute",m.style.top=0,m.style.left=0,m.style.textAlign=l,m.style.width="100%",m.style.color=p,m.innerHTML=f}return t(function(){if(!(n instanceof Wc)){var A=document.createElement("div");A.style.position="absolute",A.style.top="4px",A.style.bottom="4px",A.style.left="4px",A.style.right="4px",r.appendChild(A),r=A}r.appendChild(S),S.appendChild(h),f&&S.appendChild(m)}),""}function o0(n,e,t){return n.getElement().style.backgroundColor=this.sanitizeHTML(n.getValue()),""}function l0(n,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 u0(n,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 c0(n,e,t){var i=n.getValue(),r=e.size||15,s=r+"px",a,l,u=e.hasOwnProperty("onValue")?e.onValue:!0,c=e.hasOwnProperty("offValue")?e.offValue:!1,d=e.onTruthy?i:i===u;return a=document.createElement("div"),a.classList.add("tabulator-toggle"),d?(a.classList.add("tabulator-toggle-on"),a.style.flexDirection="row-reverse",e.onColor&&(a.style.background=e.onColor)):e.offColor&&(a.style.background=e.offColor),a.style.width=2.5*r+"px",a.style.borderRadius=s,e.clickable&&a.addEventListener("click",f=>{n.setValue(d?c:u)}),l=document.createElement("div"),l.classList.add("tabulator-toggle-switch"),l.style.height=s,l.style.width=s,l.style.borderRadius=s,a.appendChild(l),a}function d0(n,e,t){var i=document.createElement("span"),r=n.getRow(),s=n.getTable();return r.watchPosition(a=>{e.relativeToPage&&(a+=s.modules.page.getPageSize()*(s.modules.page.getPage()-1)),i.innerText=a}),i}function h0(n,e,t){return n.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 f0(n,e,t){var i,r,s;function a(l){var u=l.getValue(),c="plaintext";switch(typeof u){case"boolean":c="tickCross";break;case"string":u.includes(`
|
|
37
37
|
`)&&(c="textarea");break}return c}return i=e.formatterLookup?e.formatterLookup(n):a(n),e.paramsLookup&&(s=typeof e.paramsLookup=="function"?e.paramsLookup(i,n):e.paramsLookup[i]),r=this.table.modules.format.lookupFormatter(i),r.call(this,n,s||{},t)}function p0(n,e,t){var i=e.delimiter||",",r=n.getValue(),s=this.table,a;return e.valueMap&&(typeof e.valueMap=="string"?a=function(l){return l.map(u=>Xe.retrieveNestedData(s.options.nestedFieldSeparator,e.valueMap,u))}:a=e.valueMap),Array.isArray(r)?(a&&(r=a(r)),r.join(i)):r}function m0(n,e,t){var i=e.indent||" ",r=typeof e.multiline>"u"?!0:e.multiline,s=e.replacer||null,a=n.getValue();return r&&(n.getElement().style.whiteSpace="pre-wrap"),JSON.stringify(a,s,i)}var g0={plaintext:KE,html:JE,textarea:qE,money:$E,link:ZE,image:XE,tickCross:e0,datetime:t0,datetimediff:i0,lookup:n0,star:r0,traffic:s0,progress:a0,color:o0,buttonTick:l0,buttonCross:u0,toggle:c0,rownum:d0,handle:h0,adaptable:f0,array:p0,json:m0};class Ji extends ze{static moduleName="format";static formatters=g0;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"]||{}},r=e.definition["formatter"+t];return i.formatter=this.lookupFormatter(r),i}lookupFormatter(e){var t;switch(typeof e){case"string":Ji.formatters[e]?t=Ji.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),t=Ji.formatters.plaintext);break;case"function":t=e;break;default:t=Ji.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 r,s,a,l;return e.definition.titleFormatter?(r=this.lookupFormatter(e.definition.titleFormatter),a=u=>{e.titleFormatterRendered=u},l={getValue:function(){return t},getElement:function(){return i},getType:function(){return"header"},getColumn:function(){return e.getComponent()},getTable:()=>this.table},s=e.definition.titleFormatterParams||{},s=typeof s=="function"?s():s,r.call(this,l,s,a)):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 r(s){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=s,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,i,r)}formatExportValue(e,t){var i=e.column.modules.format[t],r;if(i){let s=function(a){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=a,e.modules.format.rendered=!1};return r=typeof i.params=="function"?i.params(e.getComponent()):i.params,i.formatter.call(this,e.getComponent(),r,s)}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}}class b0 extends ze{static moduleName="frozenColumns";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,r=0;this.leftColumns.forEach((s,a)=>{if(s.modules.frozen.marginValue=i,s.modules.frozen.margin=s.modules.frozen.marginValue+"px",s.visible&&(i+=s.getWidth()),a==this.leftColumns.length-1?s.modules.frozen.edge=!0:s.modules.frozen.edge=!1,s.parent.isGroup){var l=this.getColGroupParentElement(s);t.includes(l)||(this.layoutElement(l,s),t.push(l)),l.classList.toggle("tabulator-frozen-left",s.modules.frozen.edge&&s.modules.frozen.position==="left"),l.classList.toggle("tabulator-frozen-right",s.modules.frozen.edge&&s.modules.frozen.position==="right")}else this.layoutElement(s.getElement(),s);e&&s.cells.forEach(u=>{this.layoutElement(u.getElement(!0),s)})}),this.rightColumns.forEach((s,a)=>{s.modules.frozen.marginValue=r,s.modules.frozen.margin=s.modules.frozen.marginValue+"px",s.visible&&(r+=s.getWidth()),a==this.rightColumns.length-1?s.modules.frozen.edge=!0:s.modules.frozen.edge=!1,s.parent.isGroup?this.layoutElement(this.getColGroupParentElement(s),s):this.layoutElement(s.getElement(),s),e&&s.cells.forEach(l=>{this.layoutElement(l.getElement(!0),s)})})}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 r=0;r<t;r++)e[r].visible&&(i+=e[r].getWidth());return i}}class v0 extends ze{static moduleName="frozenRows";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 r=t.indexOf(i);r>-1&&t.splice(r,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)})}}class y0{constructor(e){return this._group=e,this.type="GroupComponent",new Proxy(this,{get:function(t,i,r){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}}class qi{constructor(e,t,i,r,s,a,l){this.groupManager=e,this.parent=t,this.key=r,this.level=i,this.field=s,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=a,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,r=new qi(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]=r,this.groupList.push(r)}_addRowToGroup(e){var t=this.level+1;if(this.hasSubGroups){var i=this.groupManager.groupIDLookups[t].func(e.getData()),r=t+"_"+i;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]?this.groups[r]&&this.groups[r].addRow(e):(this.groups[r]||this._createGroup(i,t),this.groups[r].addRow(e))}}_addRow(e){this.rows.push(e),e.modules.group=this}insertRow(e,t,i){var r=this.conformRowData({});e.updateData(r);var s=this.rows.indexOf(t);s>-1?i?this.rows.splice(s+1,0,e):this.rows.splice(s,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(r=>{i.push(r.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(r=>{var s=r.getElement();e.parentNode.insertBefore(s,e.nextSibling),r.initialize(),e=s})}):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 r=i.getRowGroup(e);r&&(t=r)}):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(r=>{i=i.concat(r.getRows(e,t))}):this.rows.forEach(function(r){i.push(e?r.getComponent():r)}),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,Xe.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 y0(this)),this.component}}class w0 extends ze{static moduleName="groupRows";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",(s,a)=>{this.headerGenerator[0]=(l,u,c)=>(typeof l>"u"?"":l)+"<span>("+u+" "+(u===1?s:a.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 r=this.table.columnManager.getRealColumns();r.forEach(s=>{s.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),s.definition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(e)||(e=[e]),e.forEach((s,a)=>{var l,u;typeof s=="function"?l=s:(u=this.table.columnManager.getColumnByField(s),u?l=function(c){return u.getFieldValue(c)}:l=function(c){return c[s]}),this.groupIDLookups.push({field:typeof s=="function"?!1:s,func:l,values:this.allowedValues?this.allowedValues[a]:!1})}),t&&(Array.isArray(t)||(t=[t]),t.forEach(s=>{}),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 r=e.modules.group.rows;return r.length>1&&(!t||t&&r.indexOf(t)==-1?i?r[0]!==e&&(t=r[0],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):r[r.length-1]!==e&&(t=r[r.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 qi&&(t=this.table.rowManager.prevDisplayRow(e)||t);var r=t instanceof qi?t:t.modules.group,s=e instanceof qi?e:e.modules.group;r===s?this.table.rowManager.moveRowInArray(r.rows,e,t,i):(s&&s.removeRow(e),r.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 r={};r.level=0,r.rowCount=0,r.headerContent="";var s=[];i.hasSubGroups?(s=this.pullGroupListData(i.groupList),r.level=i.level,r.rowCount=s.length-i.groupList.length,r.headerContent=i.generator(i.key,r.rowCount,i.rows,i),t.push(r),t=t.concat(s)):(r.level=i.level,r.headerContent=i.generator(i.key,i.rows.length,i.rows,i),r.rowCount=i.getRows().length,t.push(r),i.getRows().forEach(a=>{t.push(a.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 r=i.getRowGroup(e);r&&(t=r)}),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 r=t+"_"+e,s;i=i||[],s=new qi(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],i[r]),this.groups[r]=s,this.groupList.push(s)}assignRowToExistingGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),r="0_"+i;this.groups[r]&&this.groups[r].addRow(e)}assignRowToGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),r=!this.groups["0_"+i];return r&&this.createGroup(i,0,t),this.groups["0_"+i].addRow(e),!r}reassignRowToGroup(e){if(e.type==="row"){var t=e.modules.group,i=t.getPath(),r=this.getExpectedPath(e),s;s=i.length==r.length&&i.every((a,l)=>a===r[l]),s||(t.removeRow(e),this.assignRowToGroup(e,this.groups),this.refreshData(!0))}}getExpectedPath(e){var t=[],i=e.getData();return this.groupIDLookups.forEach(r=>{t.push(r.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,r)=>{this.table.rowManager.styleRow(i,r),e.appendChild(i.getElement()),i.initialize(!0),i.type!=="group"&&(t=!1)}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}}var C0={cellEdit:function(n){n.component.setValueProcessData(n.data.oldValue),n.component.cellRendered()},rowAdd:function(n){n.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowDelete:function(n){var e=this.table.rowManager.addRowActual(n.data.data,n.data.pos,n.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(n.component,e),this.table.rowManager.checkPlaceholder()},rowMove:function(n){var e=n.data.posFrom-n.data.posTo>0;this.table.rowManager.moveRowActual(n.component,this.table.rowManager.getRowFromPosition(n.data.posFrom),e),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},A0={cellEdit:function(n){n.component.setValueProcessData(n.data.newValue),n.component.cellRendered()},rowAdd:function(n){var e=this.table.rowManager.addRowActual(n.data.data,n.data.pos,n.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(n.component,e),this.table.rowManager.checkPlaceholder()},rowDelete:function(n){n.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowMove:function(n){this.table.rowManager.moveRowActual(n.component,this.table.rowManager.getRowFromPosition(n.data.posTo),n.data.after),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},E0={undo:["ctrl + 90","meta + 90"],redo:["ctrl + 89","meta + 89"]},k0={undo:function(n){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(n.preventDefault(),this.table.modules.history.undo()))},redo:function(n){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(n.preventDefault(),this.table.modules.history.redo()))}},S0={keybindings:{bindings:E0,actions:k0}};class fr extends ze{static moduleName="history";static moduleExtensions=S0;static undoers=C0;static redoers=A0;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,r){this.action("rowAdd",e,{data:t,pos:i,index:r})}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 fr.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 fr.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 mt)i.component===e&&(i.component=t);else if(i.component instanceof Cn&&i.component.row===e){var r=i.component.column.getField();r&&(i.component=t.getCell(r))}})}}class x0 extends ze{static moduleName="htmlTableImport";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"),r=e.getElementsByTagName("tbody")[0],s=[];this.hasIndex=!1,this.dispatchExternal("htmlImporting"),r=r?r.getElementsByTagName("tr"):[],this._extractOptions(e,t),i.length?this._extractHeaders(i,r):this._generateBlankHeaders(i,r);for(var a=0;a<r.length;a++){var l=r[a],u=l.getElementsByTagName("td"),c={};this.hasIndex||(c[t.index]=a);for(var d=0;d<u.length;d++){var f=u[d];typeof this.fieldIndex[d]<"u"&&(c[this.fieldIndex[d]]=f.innerHTML)}s.push(c)}t.data=s,this.dispatchExternal("htmlImported")}_extractOptions(e,t,i){var r=e.attributes,s=Object.keys(i||t),a={};s.forEach(d=>{a[d.toLowerCase()]=d});for(var l in r){var u=r[l],c;u&&typeof u=="object"&&u.name&&u.name.indexOf("tabulator-")===0&&(c=u.name.replace("tabulator-",""),typeof a[c]<"u"&&(t[a[c]]=this._attribValue(u.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 r=e[i],s=!1,a=this._findCol(r.textContent),l;a?s=!0:a={title:r.textContent.trim()},a.field||(a.field=r.textContent.trim().toLowerCase().replaceAll(" ","_")),l=r.getAttribute("width"),l&&!a.width&&(a.width=l),this._extractOptions(r,a,this.table.columnManager.optionsList.registeredDefaults),this.fieldIndex[i]=a.field,a.field==this.table.options.index&&(this.hasIndex=!0),s||this.table.options.columns.push(a)}}_generateBlankHeaders(e,t){for(var i=0;i<e.length;i++){var r=e[i],s={title:"",field:"col"+i};this.fieldIndex[i]=s.field;var a=r.getAttribute("width");a&&(s.width=a),this.table.options.columns.push(s)}}}function R0(n){var e=[],t=0,i=0,r=!1;for(let s=0;s<n.length;s++){let a=n[s],l=n[s+1];if(e[t]||(e[t]=[]),e[t][i]||(e[t][i]=""),a=='"'&&r&&l=='"'){e[t][i]+=a,s++;continue}if(a=='"'){r=!r;continue}if(a==","&&!r){i++;continue}if(a=="\r"&&l==`
|
|
38
38
|
`&&!r){i=0,t++,s++;continue}if((a=="\r"||a==`
|
|
39
39
|
`)&&!r){i=0,t++;continue}e[t][i]+=a}return e}function M0(n){try{return JSON.parse(n)}catch(e){return console.warn("JSON Import Error - File contents is invalid JSON",e),Promise.reject()}}function T0(n){return n}function D0(n){var e=this.dependencyRegistry.lookup("XLSX"),t=e.read(n),i=t.Sheets[t.SheetNames[0]];return e.utils.sheet_to_json(i,{header:1})}var O0={csv:R0,json:M0,array:T0,xlsx:D0};class Da extends ze{static moduleName="import";static importers=O0;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,r,s){return this.importData(this.lookupImporter(),e).then(this.structureData.bind(this)).catch(a=>(console.error("Import Error:",a||"Unable to import data"),Promise.reject(a)))}lookupImporter(e){var t;return e||(e=this.table.options.importFormat),typeof e=="string"?t=Da.importers[e]:t=e,t||console.error("Import Error - Importer not found:",e),t}importFromFile(e,t,i){var r=this.lookupImporter(e);if(r)return this.pickFile(t,i).then(this.importData.bind(this,r)).then(this.structureData.bind(this)).then(this.mutateData.bind(this)).then(this.validateData.bind(this)).then(this.setData.bind(this)).catch(s=>(this.dispatch("import-error",s),this.dispatchExternal("importError",s),console.error("Import Error:",s||"Unable to import file"),this.table.dataLoader.alertError(),setTimeout(()=>{this.table.dataLoader.clearAlert()},3e3),Promise.reject(s)))}pickFile(e,t){return new Promise((i,r)=>{var s=document.createElement("input");s.type="file",s.accept=e,s.addEventListener("change",a=>{var l=s.files[0],u=new FileReader,c=this.validateFile(l);if(c===!0){switch(this.dispatch("import-importing",s.files),this.dispatchExternal("importImporting",s.files),t||this.table.options.importReader){case"buffer":u.readAsArrayBuffer(l);break;case"binary":u.readAsBinaryString(l);break;case"url":u.readAsDataURL(l);break;case"text":default:u.readAsText(l)}u.onload=d=>{i(u.result)},u.onerror=d=>{console.warn("File Load Error - Unable to read file"),r(d)}}else r(c)}),this.dispatch("import-choose"),this.dispatchExternal("importChoose"),s.click()})}importData(e,t){var i;return this.table.dataLoader.alertLoader(),new Promise((r,s)=>{setTimeout(()=>{i=e.call(this.table,t),i instanceof Promise||i?r(i):s()},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(r=>{var s={};return r=this.transformData(r),t.forEach((a,l)=>{s[a]=r[l]}),s});return i}structureArrayToColumns(e){var t=[],i=this.transformHeader(e[0]),r=this.table.getColumns();return r[0]&&i[0]&&r[0].getDefinition().title===i[0]&&e.shift(),e.forEach(s=>{var a={};s=this.transformData(s),s.forEach((l,u)=>{var c=r[u];c&&(a[c.getField()]=l)}),t.push(a)}),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)}}class L0 extends ze{static moduleName="interaction";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 r in this.eventMap)this.eventMap[r]===i&&this.subscribers[r]&&(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,r){var s=this.touchWatchers[e];switch(e==="column"&&(e="header"),t){case"start":s.tap=!0,clearTimeout(s.tapHold),s.tapHold=setTimeout(()=>{clearTimeout(s.tapHold),s.tapHold=null,s.tap=null,clearTimeout(s.tapDbl),s.tapDbl=null,this.dispatchEvent(e+"TapHold",i,r)},1e3);break;case"end":s.tap&&(s.tap=null,this.dispatchEvent(e+"Tap",i,r)),s.tapDbl?(clearTimeout(s.tapDbl),s.tapDbl=null,this.dispatchEvent(e+"DblTap",i,r)):s.tapDbl=setTimeout(()=>{clearTimeout(s.tapDbl),s.tapDbl=null},300),clearTimeout(s.tapHold),s.tapHold=null;break}}dispatchEvent(e,t,i){var r=i.getComponent(),s;this.columnSubscribers[e]&&(i instanceof Cn?s=i.column.definition[e]:i instanceof Kt&&(s=i.definition[e]),s&&s(t,r)),this.dispatchExternal(e,t,r)}}var B0={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,navLeft:37,navRight:39,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35},F0={keyBlock:function(n){n.stopPropagation(),n.preventDefault()},scrollPageUp:function(n){var e=this.table.rowManager,t=e.scrollTop-e.element.clientHeight;n.preventDefault(),e.displayRowsCount&&(t>=0?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(n){var e=this.table.rowManager,t=e.scrollTop+e.element.clientHeight,i=e.element.scrollHeight;n.preventDefault(),e.displayRowsCount&&(t<=i?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(n){var e=this.table.rowManager;n.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(n){var e=this.table.rowManager;n.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1]),this.table.element.focus()},navPrev:function(n){this.dispatch("keybinding-nav-prev",n)},navNext:function(n){this.dispatch("keybinding-nav-next",n)},navLeft:function(n){this.dispatch("keybinding-nav-left",n)},navRight:function(n){this.dispatch("keybinding-nav-right",n)},navUp:function(n){this.dispatch("keybinding-nav-up",n)},navDown:function(n){this.dispatch("keybinding-nav-down",n)}};class En extends ze{static moduleName="keybindings";static bindings=B0;static actions=F0;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,En.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)En.actions[t]?e[t]&&(typeof e[t]!="object"&&(e[t]=[e[t]]),e[t].forEach(i=>{var r=Array.isArray(i)?i:[i];r.forEach(s=>{this.mapBinding(t,s)})})):console.warn("Key Binding Error - no such action:",t)}mapBinding(e,t){var i={action:En.actions[e],keys:[],ctrl:!1,shift:!1,meta:!1},r=t.toString().toLowerCase().split(" ").join("").split("+");r.forEach(s=>{switch(s){case"ctrl":i.ctrl=!0;break;case"shift":i.shift=!0;break;case"meta":i.meta=!0;break;default:s=isNaN(s)?s.toUpperCase().charCodeAt(0):parseInt(s),i.keys.push(s),this.watchKeys[s]||(this.watchKeys[s]=[]),this.watchKeys[s].push(i)}})}bindEvents(){var e=this;this.keyupBinding=function(t){var i=t.keyCode,r=e.watchKeys[i];r&&(e.pressedKeys.push(i),r.forEach(function(s){e.checkBinding(t,s)}))},this.keydownBinding=function(t){var i=t.keyCode,r=e.watchKeys[i];if(r){var s=e.pressedKeys.indexOf(i);s>-1&&e.pressedKeys.splice(s,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(r=>{var s=this.pressedKeys.indexOf(r);s==-1&&(i=!1)}),i&&t.action.call(this,e),!0):!1}}class _0 extends ze{static moduleName="menu";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",r=>{r.stopPropagation(),r.preventDefault(),this.loadMenuEvent(e.definition.headerMenu,r,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,r,s){var a=!(e instanceof MouseEvent),l=document.createElement("div"),u;if(l.classList.add("tabulator-menu"),a||e.preventDefault(),!(!i||!i.length)){if(r)u=s.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=u=this.popup(l)}i.forEach(c=>{var d=document.createElement("div"),f=c.label,p=c.disabled;c.separator?d.classList.add("tabulator-menu-separator"):(d.classList.add("tabulator-menu-item"),typeof f=="function"&&(f=f.call(this.table,t.getComponent())),f instanceof Node?d.appendChild(f):d.innerHTML=f,typeof p=="function"&&(p=p.call(this.table,t.getComponent())),p?(d.classList.add("tabulator-menu-item-disabled"),d.addEventListener("click",h=>{h.stopPropagation()})):c.menu&&c.menu.length?d.addEventListener("click",h=>{h.stopPropagation(),this.loadMenu(h,t,c.menu,d,u)}):c.action&&d.addEventListener("click",h=>{c.action(h,t.getComponent())}),c.menu&&c.menu.length&&d.classList.add("tabulator-menu-item-submenu")),l.appendChild(d)}),l.addEventListener("click",c=>{this.rootPopup&&this.rootPopup.hide()}),u.show(r||e),u===this.rootPopup&&(this.rootPopup.hideOnBlur(()=>{this.rootPopup=null,this.currentComponent&&(this.dispatch("menu-closed",i,u),this.dispatchExternal("menuClosed",this.currentComponent.getComponent()),this.currentComponent=null)}),this.currentComponent=t,this.dispatch("menu-opened",i,u),this.dispatchExternal("menuOpened",t.getComponent()))}}}class P0 extends ze{static moduleName="moveColumn";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={},r;!e.modules.frozen&&!e.isGroup&&!e.isRowHeader&&(r=e.getElement(),i.mousemove=(function(s){e.parent===t.moving.parent&&((t.touchMove?s.touches[0].pageX:s.pageX)-Xe.elOffset(r).left+t.table.columnManager.contentsElement.scrollLeft>e.getWidth()/2?(t.toCol!==e||!t.toColAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r.nextSibling),t.moveColumn(e,!0)):(t.toCol!==e||t.toColAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r),t.moveColumn(e,!1)))}).bind(t),r.addEventListener("mousedown",function(s){t.touchMove=!1,s.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(s,e)},t.checkPeriod))}),r.addEventListener("mouseup",function(s){s.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),t.bindTouchEvents(e)),e.modules.moveColumn=i}bindTouchEvents(e){var t=e.getElement(),i=!1,r,s,a,l,u,c;t.addEventListener("touchstart",d=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,r=e.nextColumn(),a=r?r.getWidth()/2:0,s=e.prevColumn(),l=s?s.getWidth()/2:0,u=0,c=0,i=!1,this.startMove(d,e)},this.checkPeriod)},{passive:!0}),t.addEventListener("touchmove",d=>{var f,p;this.moving&&(this.moveHover(d),i||(i=d.touches[0].pageX),f=d.touches[0].pageX-i,f>0?r&&f-u>a&&(p=r,p!==e&&(i=d.touches[0].pageX,p.getElement().parentNode.insertBefore(this.placeholderElement,p.getElement().nextSibling),this.moveColumn(p,!0))):s&&-f-c>l&&(p=s,p!==e&&(i=d.touches[0].pageX,p.getElement().parentNode.insertBefore(this.placeholderElement,p.getElement()),this.moveColumn(p,!1))),p&&(r=p.nextColumn(),u=a,a=r?r.getWidth()/2:0,s=p.prevColumn(),c=l,l=s?s.getWidth()/2:0))},{passive:!0}),t.addEventListener("touchend",d=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(d)})}startMove(e,t){var i=t.getElement(),r=this.table.columnManager.getContentsElement(),s=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)-Xe.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"),r.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom=r.clientHeight-s.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(r,s){var a=r.getElement(!0);a.parentNode&&i[s]&&a.parentNode.insertBefore(i[s].getElement(),a.nextSibling)}):e.getCells().forEach(function(r,s){var a=r.getElement(!0);a.parentNode&&i[s]&&a.parentNode.insertBefore(i[s].getElement(),a)})}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,r=(this.touchMove?e.touches[0].pageX:e.pageX)-Xe.elOffset(t).left+i,s;this.hoverElement.style.left=r-this.startX+"px",r-i<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{s=Math.max(0,i-5),this.table.rowManager.getElement().scrollLeft=s,this.autoScrollTimeout=!1},1))),i+t.clientWidth-r<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{s=Math.min(t.clientWidth,i+5),this.table.rowManager.getElement().scrollLeft=s,this.autoScrollTimeout=!1},1)))}}var N0={delete:function(n,e,t){n.delete()}},I0={insert:function(n,e,t){return this.table.addRow(n.getData(),void 0,e),!0},add:function(n,e,t){return this.table.addRow(n.getData()),!0},update:function(n,e,t){return e?(e.update(n.getData()),!0):!1},replace:function(n,e,t){return e?(this.table.addRow(n.getData(),void 0,e),e.delete(),!0):!1}};class pr extends ze{static moduleName="moveRow";static senders=N0;static receivers=I0;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(r){t.tableRowDrop(r,e)}).bind(t),i.mousemove=(function(r){var s;r.pageY-Xe.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(s=e.getElement(),s.parentNode.insertBefore(t.placeholderElement,s.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(s=e.getElement(),s.previousSibling&&(s.parentNode.insertBefore(t.placeholderElement,s),t.moveRow(e,!1)))}).bind(t),e.modules.moveRow=i}initializeRow(e){var t=this,i={},r;i.mouseup=(function(s){t.tableRowDrop(s,e)}).bind(t),i.mousemove=(function(s){var a=e.getElement();s.pageY-Xe.elOffset(a).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a),t.moveRow(e,!1))}).bind(t),this.hasHandle||(r=e.getElement(),r.addEventListener("mousedown",function(s){s.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(s,e)},t.checkPeriod))}),r.addEventListener("mouseup",function(s){s.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(r){r.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(r,e.row)},t.checkPeriod))}),i.addEventListener("mouseup",function(r){r.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,i)}}bindTouchEvents(e,t){var i=!1,r,s,a,l,u,c;t.addEventListener("touchstart",d=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,r=e.nextRow(),a=r?r.getHeight()/2:0,s=e.prevRow(),l=s?s.getHeight()/2:0,u=0,c=0,i=!1,this.startMove(d,e)},this.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",d=>{var f,p;this.moving&&(d.preventDefault(),this.moveHover(d),i||(i=d.touches[0].pageY),f=d.touches[0].pageY-i,f>0?r&&f-u>a&&(p=r,p!==e&&(i=d.touches[0].pageY,p.getElement().parentNode.insertBefore(this.placeholderElement,p.getElement().nextSibling),this.moveRow(p,!0))):s&&-f-c>l&&(p=s,p!==e&&(i=d.touches[0].pageY,p.getElement().parentNode.insertBefore(this.placeholderElement,p.getElement()),this.moveRow(p,!1))),p&&(r=p.nextRow(),u=a,a=r?r.getHeight()/2:0,s=p.prevRow(),c=l,l=s?s.getHeight()/2:0))}),t.addEventListener("touchend",d=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(d),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,r=this.touchMove?e.touches[0].pageY:e.pageY,s,a;s=t.getElement(),this.connection?(a=s.getBoundingClientRect(),this.startX=a.left-i+window.pageXOffset,this.startY=a.top-r+window.pageYOffset):this.startY=r-s.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,r=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+i;this.hoverElement.style.top=Math.min(r-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 r=s=>{this.elementRowDrop(s,i,this.moving)};i.addEventListener("mouseup",r),i.tabulatorElementDropEvent=r,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 r=!1;if(i){switch(typeof this.table.options.movableRowsSender){case"string":r=pr.senders[this.table.options.movableRowsSender];break;case"function":r=this.table.options.movableRowsSender;break}r?r.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,r=!1;switch(e.stopImmediatePropagation(),typeof this.table.options.movableRowsReceiver){case"string":i=pr.receivers[this.table.options.movableRowsReceiver];break;case"function":i=this.table.options.movableRowsReceiver;break}i?r=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),r?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:r})}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)}}}var H0={};class mr extends ze{static moduleName="mutator";static mutators=H0;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(r=>{var s="mutator"+(r.charAt(0).toUpperCase()+r.slice(1)),a;e.definition[s]&&(a=this.lookupMutator(e.definition[s]),a&&(t=!0,i[s]={mutator:a,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.mutate=i)}lookupMutator(e){var t=!1;switch(typeof e){case"string":mr.mutators[e]?t=mr.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 r="mutator"+(t.charAt(0).toUpperCase()+t.slice(1)),s;return this.enabled&&this.table.columnManager.traverse(a=>{var l,u,c;a.modules.mutate&&(l=a.modules.mutate[r]||a.modules.mutate.mutator||!1,l&&(s=a.getFieldValue(typeof i<"u"?i:e),(t=="data"&&!i||typeof s<"u")&&(c=a.getComponent(),u=typeof l.params=="function"?l.params(s,e,t,c):l.params,a.setFieldValue(e,l.mutator(s,e,t,u,c)))))}),e}transformCell(e,t){if(e.column.modules.mutate){var i=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,r={};if(i)return r=Object.assign(r,e.row.getData()),e.column.setFieldValue(r,t),i.mutator(t,r,"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 r=e.row.getCell(i);r&&r.setValue(r.getValue(),!0,!0)}))}enable(){this.enabled=!0}disable(){this.enabled=!1}}function V0(n,e,t,i,r){var s=document.createElement("span"),a=document.createElement("span"),l=document.createElement("span"),u=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",f=>{a.innerHTML=f}),this.table.modules.localize.langBind("pagination|counter|of",f=>{u.innerHTML=f}),this.table.modules.localize.langBind("pagination|counter|rows",f=>{d.innerHTML=f}),i?(l.innerHTML=" "+e+"-"+Math.min(e+n-1,i)+" ",c.innerHTML=" "+i+" ",s.appendChild(a),s.appendChild(l),s.appendChild(u),s.appendChild(c),s.appendChild(d)):(l.innerHTML=" 0 ",s.appendChild(a),s.appendChild(l),s.appendChild(d)),s}function z0(n,e,t,i,r){var s=document.createElement("span"),a=document.createElement("span"),l=document.createElement("span"),u=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",f=>{a.innerHTML=f}),l.innerHTML=" "+t+" ",this.table.modules.localize.langBind("pagination|counter|of",f=>{u.innerHTML=f}),c.innerHTML=" "+r+" ",this.table.modules.localize.langBind("pagination|counter|pages",f=>{d.innerHTML=f}),s.appendChild(a),s.appendChild(l),s.appendChild(u),s.appendChild(c),s.appendChild(d),s}var j0={rows:V0,pages:z0};class Oa extends ze{static moduleName="page";static pageCounters=j0;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,r=i.getDisplayRows(),s;return t?r.length?s=r[0]:i.activeRows.length&&(s=i.activeRows[i.activeRows.length-1],t=!1):r.length&&(s=r[r.length-1],t=!(r.length<this.size)),{index:s,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,r){return this.initialLoad||(this.progressiveLoad&&!i||!this.progressiveLoad&&!this.dataChanging)&&this.reset(!0),r.page=this.page,this.size&&(r.size=this.size),r}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,r,s;!t&&!this.table.dataLoader.loading&&(i=this.table.rowManager.getElement(),r=i.scrollHeight-i.clientHeight-e,s=this.table.options.progressiveLoadScrollMargin||i.clientHeight*2,r<s&&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(r){i.innerHTML=r}):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=Oa.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",r=>{this.firstBut.innerHTML=r}),this.langBind("pagination|first_title",r=>{this.firstBut.setAttribute("aria-label",r),this.firstBut.setAttribute("title",r)}),this.langBind("pagination|prev",r=>{this.prevBut.innerHTML=r}),this.langBind("pagination|prev_title",r=>{this.prevBut.setAttribute("aria-label",r),this.prevBut.setAttribute("title",r)}),this.langBind("pagination|next",r=>{this.nextBut.innerHTML=r}),this.langBind("pagination|next_title",r=>{this.nextBut.setAttribute("aria-label",r),this.nextBut.setAttribute("title",r)}),this.langBind("pagination|last",r=>{this.lastBut.innerHTML=r}),this.langBind("pagination|last_title",r=>{this.lastBut.setAttribute("aria-label",r),this.lastBut.setAttribute("title",r)}),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",r=>{this.pageSizeSelect.setAttribute("aria-label",r),this.pageSizeSelect.setAttribute("title",r),t.innerHTML=r}),this.element.appendChild(t),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.addEventListener("change",r=>{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 r=this.size===!0?1:Math.ceil((i+1)/this.size);return this.setPage(r)}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 r;if(this.pageCounter)switch(this.mode==="remote"&&(t=this.size,i=(this.page-1)*this.size+1,e=this.remoteRowCountEstimate),r=this.pageCounter.call(this,t,i,this.page,e,this.max),typeof r){case"object":if(r instanceof Node){for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.pageCounterElement.firstChild);this.pageCounterElement.appendChild(r)}else this.pageCounterElement.innerHTML="",r!=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:",r);break;case"undefined":this.pageCounterElement.innerHTML="";break;default:this.pageCounterElement.innerHTML=r}}_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),r=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 s=i;s<=r;s++)s>0&&s<=this.max&&this.pagesElement.appendChild(this._generatePageButton(s));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,r,s,a,l=e.filter(u=>u.type==="row");if(this.mode=="local"){i=[],this.setMaxRows(e.length),this.size===!0?(r=0,s=e.length):(r=this.size*(this.page-1),s=r+parseInt(this.size)),this._setPageButtons();for(let u=r;u<s;u++){let c=e[u];c&&(i.push(c),c.type==="row"&&(a||(a=c),t++))}return this._setPageCounter(l.length,t,a?l.indexOf(a)+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"))}}var W0={local:function(n,e){var t=localStorage.getItem(n+"-"+e);return t?JSON.parse(t):!1},cookie:function(n,e){var t=document.cookie,i=n+"-"+e,r=t.indexOf(i+"="),s,a;return r>-1&&(t=t.slice(r),s=t.indexOf(";"),s>-1&&(t=t.slice(0,s)),a=t.replace(i+"=","")),a?JSON.parse(a):!1}},U0={local:function(n,e,t){localStorage.setItem(n+"-"+e,JSON.stringify(t))},cookie:function(n,e,t){var i=new Date;i.setDate(i.getDate()+1e4),document.cookie=n+"-"+e+"="+JSON.stringify(t)+"; expires="+i.toUTCString()}};class Jt extends ze{static moduleName="persistence";static moduleInitOrder=-10;static readers=W0;static writers=U0;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:Jt.readers[this.table.options.persistenceReaderFunc]?this.readFunc=Jt.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):Jt.readers[this.mode]?this.readFunc=Jt.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:Jt.writers[this.table.options.persistenceWriterFunc]?this.writeFunc=Jt.writers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):Jt.writers[this.mode]?this.writeFunc=Jt.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(r=>{var s=Object.getOwnPropertyDescriptor(t,r),a=t[r];s&&Object.defineProperty(t,r,{set:l=>{a=l,this.defWatcherBlock||this.save("columns"),s.set&&s.set(l)},get:()=>(s.get&&s.get(),a)})}),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 r=[];return t=t||[],t.forEach((s,a)=>{var l=this._findColumn(e,s),u;l&&(i?u=Object.keys(s):this.config.columns===!0||this.config.columns==null?(u=Object.keys(l),u.push("width")):u=this.config.columns,u.forEach(c=>{c!=="columns"&&typeof s[c]<"u"&&(l[c]=s[c])}),l.columns&&(l.columns=this.mergeDefinition(l.columns,s.columns)),r.push(l))}),e.forEach((s,a)=>{var l=this._findColumn(t,s);l||(r.length>a?r.splice(a,0,s):r.push(s))}),r}_findColumn(e,t){var i=t.columns?"group":t.field?"field":"object";return e.find(function(r){switch(i){case"group":return r.title===t.title&&r.columns.length===t.columns.length;case"field":return r.field===t.field;case"object":return r===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(r=>{var s={},a=r.getDefinition(),l;r.isGroup?(s.title=a.title,s.columns=this.parseColumns(r.getColumns())):(s.field=r.getField(),this.config.columns===!0||this.config.columns==null?(l=Object.keys(a),l.push("width"),l.push("visible")):l=this.config.columns,l.forEach(u=>{switch(u){case"width":s.width=r.getWidth();break;case"visible":s.visible=r.visible;break;default:typeof a[u]!="function"&&i.indexOf(u)===-1&&(s[u]=a[u])}})),t.push(s)}),t}}class G0 extends ze{static moduleName="popup";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",r=>{r.stopPropagation(),r.preventDefault(),this.loadPopupEvent(e.definition.headerPopup,r,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,r){var s;function a(l){s=l}i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent(),a):e,this.loadPopup(t,i,e,s,r)}loadPopup(e,t,i,r,s){var a=!(e instanceof MouseEvent),l,u;i instanceof HTMLElement?l=i:(l=document.createElement("div"),l.innerHTML=i),l.classList.add("tabulator-popup"),l.addEventListener("click",c=>{c.stopPropagation()}),a||e.preventDefault(),u=this.popup(l),typeof r=="function"&&u.renderCallback(r),e?u.show(e):u.show(t.getElement(),s||"center"),u.hideOnBlur(()=>{this.dispatchExternal("popupClosed",t.getComponent())}),this.dispatchExternal("popupOpened",t.getComponent())}}class Y0 extends ze{static moduleName="print";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 r=window.scrollX,s=window.scrollY,a=document.createElement("div"),l=document.createElement("div"),u=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"),c,d;this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(a.classList.add("tabulator-print-header"),c=typeof this.table.options.printHeader=="function"?this.table.options.printHeader.call(this.table):this.table.options.printHeader,typeof c=="string"?a.innerHTML=c:a.appendChild(c),this.element.appendChild(a)),this.element.appendChild(u),this.table.options.printFooter&&(l.classList.add("tabulator-print-footer"),d=typeof this.table.options.printFooter=="function"?this.table.options.printFooter.call(this.table):this.table.options.printFooter,typeof d=="string"?l.innerHTML=d:l.appendChild(d),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,u),window.print(),this.cleanup(),window.scrollTo(r,s),this.manualBlock=!1}}class Q0 extends ze{static moduleName="reactiveData";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 r=Array.from(arguments),s;return!t.blocked&&i===t.currentVersion&&(t.block("data-push"),r.forEach(a=>{t.table.rowManager.addRowActual(a,!1)}),s=t.origFuncs.push.apply(e,arguments),t.unblock("data-push")),s}}),this.origFuncs.unshift=e.unshift,Object.defineProperty(this.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var r=Array.from(arguments),s;return!t.blocked&&i===t.currentVersion&&(t.block("data-unshift"),r.forEach(a=>{t.table.rowManager.addRowActual(a,!0)}),s=t.origFuncs.unshift.apply(e,arguments),t.unblock("data-unshift")),s}}),this.origFuncs.shift=e.shift,Object.defineProperty(this.data,"shift",{enumerable:!1,configurable:!0,value:function(){var r,s;return!t.blocked&&i===t.currentVersion&&(t.block("data-shift"),t.data.length&&(r=t.table.rowManager.getRowFromDataObject(t.data[0]),r&&r.deleteActual()),s=t.origFuncs.shift.call(e),t.unblock("data-shift")),s}}),this.origFuncs.pop=e.pop,Object.defineProperty(this.data,"pop",{enumerable:!1,configurable:!0,value:function(){var r,s;return!t.blocked&&i===t.currentVersion&&(t.block("data-pop"),t.data.length&&(r=t.table.rowManager.getRowFromDataObject(t.data[t.data.length-1]),r&&r.deleteActual()),s=t.origFuncs.pop.call(e),t.unblock("data-pop")),s}}),this.origFuncs.splice=e.splice,Object.defineProperty(this.data,"splice",{enumerable:!1,configurable:!0,value:function(){var r=Array.from(arguments),s=r[0]<0?e.length+r[0]:r[0],a=r[1],l=r[2]?r.slice(2):!1,u,c;if(!t.blocked&&i===t.currentVersion){if(t.block("data-splice"),l&&(u=e[s]?t.table.rowManager.getRowFromDataObject(e[s]):!1,u?l.forEach(f=>{t.table.rowManager.addRowActual(f,!0,u,!0)}):(l=l.slice().reverse(),l.forEach(f=>{t.table.rowManager.addRowActual(f,!0,!1,!0)}))),a!==0){var d=e.slice(s,typeof r[1]>"u"?r[1]:s+a);d.forEach((f,p)=>{var h=t.table.rowManager.getRowFromDataObject(f);h&&h.deleteActual(p!==d.length-1)})}(l||a!==0)&&t.table.rowManager.reRenderInPosition(),c=t.origFuncs.splice.apply(e,arguments),t.unblock("data-splice")}return c}})}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],r={};i&&(r.push=i.push,Object.defineProperty(i,"push",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-push");var s=r.push.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-push")}return s}}),r.unshift=i.unshift,Object.defineProperty(i,"unshift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-unshift");var s=r.unshift.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-unshift")}return s}}),r.shift=i.shift,Object.defineProperty(i,"shift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-shift");var s=r.shift.call(i);this.rebuildTree(e),t.unblock("tree-shift")}return s}}),r.pop=i.pop,Object.defineProperty(i,"pop",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-pop");var s=r.pop.call(i);this.rebuildTree(e),t.unblock("tree-pop")}return s}}),r.splice=i.splice,Object.defineProperty(i,"splice",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-splice");var s=r.splice.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-splice")}return s}}))}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 r=this,s=Object.getOwnPropertyDescriptor(t,i),a=t[i],l=this.currentVersion;Object.defineProperty(t,i,{set:u=>{if(a=u,!r.blocked&&l===r.currentVersion){r.block("key");var c={};c[i]=u,e.updateData(c),r.unblock("key")}s.set&&s.set(u)},get:()=>(s.get&&s.get(),a)})}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)}}class K0 extends ze{static moduleName="resizeColumns";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,r){var s=this,a=!1,l=i.definition.resizable,u={},c=i.getLastColumn();if(e==="header"&&(a=i.definition.formatter=="textarea"||i.definition.variableHeight,u={variableHeight:a}),(l===!0||l==e)&&this._checkResizability(c)){var d=document.createElement("span");d.className="tabulator-col-resize-handle",d.addEventListener("click",function(p){p.stopPropagation()});var f=function(p){s.startColumn=i,s.initialNextColumn=s.nextColumn=c.nextColumn(),s._mouseDown(p,c,d)};d.addEventListener("mousedown",f),d.addEventListener("touchstart",f,{passive:!0}),d.addEventListener("dblclick",p=>{var h=c.getWidth();p.stopPropagation(),c.reinitializeWidth(!0),h!==c.getWidth()&&(s.dispatch("column-resized",c),s.dispatchExternal("columnResized",c.getComponent()))}),i.modules.frozen&&(d.style.position="sticky",d.style[i.modules.frozen.position]=this.frozenColumnOffset(i)),u.handleEl=d,r.parentNode&&i.visible&&r.after(d)}t.modules.resize=u}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,r=i-this.startX,s=i-this.latestX,a,l;if(this.latestX=i,this.table.rtl&&(r=-r,s=-s),a=t.width==t.minWidth||t.width==t.maxWidth,t.setWidth(this.startWidth+r),l=t.width==t.minWidth||t.width==t.maxWidth,s<0&&(this.nextColumn=this.initialNextColumn),this.table.options.resizableColumnFit&&this.nextColumn&&!(a&&l)){let u=this.nextColumn.getWidth();s>0&&u<=this.nextColumn.minWidth&&(this.nextColumn=this.nextColumn.nextColumn()),this.nextColumn&&this.nextColumn.setWidth(this.nextColumn.getWidth()-s)}this.table.columnManager.rerenderColumns(!0),!this.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}calcGuidePosition(e,t,i){var r=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,s=i.getBoundingClientRect().x-this.table.element.getBoundingClientRect().x,a=this.table.element.getBoundingClientRect().x,l=t.element.getBoundingClientRect().left-a,u=r-this.startX,c=Math.max(s+u,l+t.minWidth);return t.maxWidth&&(c=Math.min(c,l+t.maxWidth)),c}_checkResizability(e){return e.definition.resizable}_mouseDown(e,t,i){var r=this,s;this.dispatchExternal("columnResizing",t.getComponent()),r.table.options.resizableColumnGuide&&(s=document.createElement("span"),s.classList.add("tabulator-col-resize-guide"),r.table.element.appendChild(s),setTimeout(()=>{s.style.left=r.calcGuidePosition(e,t,i)+"px"})),r.table.element.classList.add("tabulator-block-select");function a(u){r.table.options.resizableColumnGuide?s.style.left=r.calcGuidePosition(u,t,i)+"px":r.resize(u,t)}function l(u){r.table.options.resizableColumnGuide&&(r.resize(u,t),s.remove()),r.startColumn.modules.edit&&(r.startColumn.modules.edit.blocked=!1),r.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",l),document.body.removeEventListener("mousemove",a),i.removeEventListener("touchmove",a),i.removeEventListener("touchend",l),r.table.element.classList.remove("tabulator-block-select"),r.startWidth!==t.getWidth()&&(r.table.columnManager.verticalAlignHeaders(),r.dispatch("column-resized",t),r.dispatchExternal("columnResized",t.getComponent()))}e.stopPropagation(),r.startColumn.modules.edit&&(r.startColumn.modules.edit.blocked=!0),r.startX=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,r.latestX=r.startX,r.startWidth=t.getWidth(),document.body.addEventListener("mousemove",a),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",a,{passive:!0}),i.addEventListener("touchend",l)}}class J0 extends ze{static moduleName="resizeRows";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(),r=document.createElement("div");r.className="tabulator-row-resize-handle";var s=document.createElement("div");s.className="tabulator-row-resize-handle prev",r.addEventListener("click",function(u){u.stopPropagation()});var a=function(u){t.startRow=e,t._mouseDown(u,e,r)};r.addEventListener("mousedown",a),r.addEventListener("touchstart",a,{passive:!0}),s.addEventListener("click",function(u){u.stopPropagation()});var l=function(u){var c=t.table.rowManager.prevDisplayRow(e);c&&(t.startRow=c,t._mouseDown(u,c,s))};s.addEventListener("mousedown",l),s.addEventListener("touchstart",l,{passive:!0}),i.appendChild(r),i.appendChild(s)}resize(e,t){t.setHeight(this.startHeight+((typeof e.screenY>"u"?e.touches[0].screenY:e.screenY)-this.startY))}calcGuidePosition(e,t,i){var r=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,s=i.getBoundingClientRect().y-this.table.element.getBoundingClientRect().y,a=this.table.element.getBoundingClientRect().y,l=t.element.getBoundingClientRect().top-a,u=r-this.startY;return Math.max(s+u,l)}_mouseDown(e,t,i){var r=this,s;r.dispatchExternal("rowResizing",t.getComponent()),r.table.options.resizableRowGuide&&(s=document.createElement("span"),s.classList.add("tabulator-row-resize-guide"),r.table.element.appendChild(s),setTimeout(()=>{s.style.top=r.calcGuidePosition(e,t,i)+"px"})),r.table.element.classList.add("tabulator-block-select");function a(u){r.table.options.resizableRowGuide?s.style.top=r.calcGuidePosition(u,t,i)+"px":r.resize(u,t)}function l(u){r.table.options.resizableRowGuide&&(r.resize(u,t),s.remove()),document.body.removeEventListener("mouseup",a),document.body.removeEventListener("mousemove",a),i.removeEventListener("touchmove",a),i.removeEventListener("touchend",l),r.table.element.classList.remove("tabulator-block-select"),r.dispatchExternal("rowResized",t.getComponent())}e.stopPropagation(),r.startY=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,r.startHeight=t.getHeight(),document.body.addEventListener("mousemove",a),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",a,{passive:!0}),i.addEventListener("touchend",l)}}class q0 extends ze{static moduleName="resizeTable";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 r=Math.floor(i[0].contentRect.height),s=Math.floor(i[0].contentRect.width);(this.tableHeight!=r||this.tableWidth!=s)&&(this.tableHeight=r,this.tableWidth=s,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 r=Math.floor(i[0].contentRect.height),s=Math.floor(i[0].contentRect.width);(this.containerHeight!=r||this.containerWidth!=s)&&(this.containerHeight=r,this.containerWidth=s,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)}}function $0(n,e,t){var i=document.createElement("div"),r=n.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">
|
|
@@ -44,11 +44,11 @@ https://vue-select.org/api/props.html#getoptionkey`,n,e)}}},onTab:{type:Function
|
|
|
44
44
|
<svg class='tabulator-responsive-collapse-toggle-close' viewbox="0 0 24 24">
|
|
45
45
|
<line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />
|
|
46
46
|
</svg>`,n.getElement().classList.add("tabulator-row-handle");function s(a){var l=r.element;r.open=a,l&&(r.open?(i.classList.add("open"),l.style.display=""):(i.classList.remove("open"),l.style.display="none"))}return i.addEventListener("click",function(a){a.stopImmediatePropagation(),s(!r.open),n.getTable().rowManager.adjustTableSize()}),s(r.open),i}var Z0={format:{formatters:{responsiveCollapse:$0}}};class X0 extends ze{static moduleName="responsiveLayout";static moduleExtensions=Z0;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 r=i.modules.responsive.order-t.modules.responsive.order;return r||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 r=this.columns[this.index];r?(this.hideColumn(r),this.index++):e=!1}else{let r=this.columns[this.index-1];r&&i>0&&i>=r.getWidth()?(this.showColumn(r),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=[],r;return this.hiddenColumns.forEach(s=>{var a=s.getFieldValue(t);if(s.definition.title&&s.field)if(s.modules.format&&this.table.options.responsiveLayoutCollapseUseFormatters){let l=function(u){u()};r={value:!1,data:{},getValue:function(){return a},getData:function(){return t},getType:function(){return"cell"},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return s.getComponent()},getTable:()=>this.table},i.push({field:s.field,title:s.definition.title,value:s.modules.format.formatter.call(this.table.modules.format,r,s.modules.format.params,l)})}else i.push({field:s.field,title:s.definition.title,value:a})}),i}formatCollapsedData(e){var t=document.createElement("table");return e.forEach(i=>{var r=document.createElement("tr"),s=document.createElement("td"),a=document.createElement("td"),l,u=document.createElement("strong");s.appendChild(u),this.modules.localize.bind("columns|"+i.field,function(c){u.innerHTML=c||i.title}),i.value instanceof Node?(l=document.createElement("div"),l.appendChild(i.value),a.appendChild(l)):a.innerHTML=i.value,r.appendChild(s),r.appendChild(a),t.appendChild(r)}),Object.keys(e).length?t:""}}function ek(n,e,t){var i=document.createElement("input"),r=!1;if(i.type="checkbox",i.setAttribute("aria-label","Select Row"),this.table.modExists("selectRow",!0))if(i.addEventListener("click",a=>{a.stopPropagation()}),typeof n.getRow=="function"){var s=n.getRow();s instanceof cr?(i.addEventListener("change",a=>{this.table.options.selectableRowsRangeMode==="click"&&r?r=!1:s.toggleSelect()}),this.table.options.selectableRowsRangeMode==="click"&&i.addEventListener("click",a=>{r=!0,this.table.modules.selectRow.handleComplexRowClick(s._row,a)}),i.checked=s.isSelected&&s.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(s,i)):i=""}else i.addEventListener("change",a=>{this.table.modules.selectRow.selectedRows.length?this.table.deselectRow():this.table.selectRow(e.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(i);return i}var tk={format:{formatters:{rowSelection:ek}}};class ik extends ze{static moduleName="selectRow";static moduleExtensions=tk;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),r=e.getElement(),s=function(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",s)};e.modules.select={selected:!1},r.classList.toggle("tabulator-selectable",i),r.classList.toggle("tabulator-unselectable",!i),t.checkRowSelectability(e)&&t.table.options.selectableRows&&t.table.options.selectableRows!="highlight"&&(t.table.options.selectableRowsRangeMode==="click"?r.addEventListener("click",this.handleComplexRowClick.bind(this,e)):(r.addEventListener("click",function(a){(!t.table.modExists("edit")||!t.table.modules.edit.getCurrentCell())&&t.table._clearSelection(),t.selecting||t.toggleRow(e)}),r.addEventListener("mousedown",function(a){if(a.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",s),document.body.addEventListener("keyup",s),t.toggleRow(e),!1}),r.addEventListener("mouseenter",function(a){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),r.addEventListener("mouseout",function(a){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),r=this.table.rowManager.getDisplayRowIndex(e),s=i<=r?i:r,a=i>=r?i:r,l=this.table.rowManager.getDisplayRows().slice(0),u=l.splice(s,a-s+1);t.ctrlKey||t.metaKey?(u.forEach(c=>{c!==this.lastClickedRow&&(this.table.options.selectableRows!==!0&&!this.isRowSelected(e)?this.selectedRows.length<this.table.options.selectableRows&&this.toggleRow(c):this.toggleRow(c))}),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.table.options.selectableRows!==!0&&u.length>this.table.options.selectableRows&&(u=u.slice(0,this.table.options.selectableRows)),this.selectRows(u)),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,r;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(s=>{r=this._selectRow(s,!0,!0),r&&t.push(r)}),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 r=this.table.rowManager.findRow(e);if(r){if(this.selectedRows.indexOf(r)==-1)return r.getElement().classList.add("tabulator-selected"),r.modules.select||(r.modules.select={}),r.modules.select.selected=!0,r.modules.select.checkboxEl&&(r.modules.select.checkboxEl.checked=!0),this.selectedRows.push(r),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(r,!0),this.dispatchExternal("rowSelected",r.getComponent()),this._rowSelectionChanged(t,r),r}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=[],r,s;switch(typeof e){case"undefined":r=Object.assign([],this.selectedRows);break;case"number":r=this.table.rowManager.findRow(e);break;case"string":r=this.table.rowManager.findRow(e),r||(r=this.table.rowManager.getRows(e));break;default:r=e;break}Array.isArray(r)?r.length&&(r.forEach(a=>{s=this._deselectRow(a,!0,!0),s&&i.push(s)}),this._rowSelectionChanged(t,[],i)):r&&this._deselectRow(r,t,!0)}_deselectRow(e,t){var i=this,r=i.table.rowManager.findRow(e),s,a;if(r){if(s=i.selectedRows.findIndex(function(l){return l==r}),s>-1)return a=r.getElement(),a&&a.classList.remove("tabulator-selected"),r.modules.select||(r.modules.select={}),r.modules.select.selected=!1,r.modules.select.checkboxEl&&(r.modules.select.checkboxEl.checked=!1),i.selectedRows.splice(s,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(r,!1),this.dispatchExternal("rowDeselected",r.getComponent()),i._rowSelectionChanged(t,void 0,r),r}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(r=>r.getComponent()),Array.isArray(i)||(i=[i]),i=i.map(r=>r.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 r of i)this._selectRow(r,!0);else for(let r of i)this._deselectRow(r,!0)}}class nk{constructor(e){return this._range=e,new Proxy(this,{get:function(t,i,r){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 rk extends ht{constructor(e,t,i,r){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,r)})}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,r,s;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,r=e.column.getPosition()-1,s=e.column===this.rangeManager.rowHeader,this.rangeManager.selecting==="row"?this.setEnd(i,this._getTableColumns().length-1):this.rangeManager.selecting!=="row"&&s?this.setEnd(i,0):this.rangeManager.selecting==="column"?this.setEnd(t-1,r):this.setEnd(i,r))}_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,r=this.table.columnManager.renderer.rightCol,s,a,l,u,c,d,f,p,h,S;this.table.options.renderHorizontal==="virtual"&&this.rangeManager.rowHeader&&(r+=1),e==null&&(e=0),t==null&&(t=1/0),i==null&&(i=0),r==null&&(r=1/0),this.overlaps(i,e,r,t)&&(s=Math.max(this.top,e),a=Math.min(this.bottom,t),l=Math.max(this.left,i),u=Math.min(this.right,r),c=this.rangeManager.getCell(s,l),d=this.rangeManager.getCell(a,u),f=c.getElement(),p=d.getElement(),h=c.row.getElement(),S=d.row.getElement(),this.element.classList.add("tabulator-range-active"),this.table.rtl?(this.element.style.right=h.offsetWidth-f.offsetLeft-f.offsetWidth+"px",this.element.style.width=f.offsetLeft+f.offsetWidth-p.offsetLeft+"px"):(this.element.style.left=h.offsetLeft+f.offsetLeft+"px",this.element.style.width=p.offsetLeft+p.offsetWidth-f.offsetLeft+"px"),this.element.style.top=h.offsetTop+"px",this.element.style.height=S.offsetTop+S.offsetHeight-h.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,r){return!(this.left>i||e>this.right||this.top>r||t>this.bottom)}getData(){var e=[],t=this.getRows(),i=this.getColumns();return t.forEach(r=>{var s=r.getData(),a={};i.forEach(l=>{a[l.field]=s[l.field]}),e.push(a)}),e}getCells(e,t){var i=[],r=this.getRows(),s=this.getColumns();return e?i=r.map(a=>{var l=[];return a.getCells().forEach(u=>{s.includes(u.column)&&l.push(t?u.getComponent():u)}),l}):r.forEach(a=>{a.getCells().forEach(l=>{s.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 nk(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 sk={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"]},ak={rangeJumpLeft:function(n){this.dispatch("keybinding-nav-range",n,"left",!0,!1)},rangeJumpRight:function(n){this.dispatch("keybinding-nav-range",n,"right",!0,!1)},rangeJumpUp:function(n){this.dispatch("keybinding-nav-range",n,"up",!0,!1)},rangeJumpDown:function(n){this.dispatch("keybinding-nav-range",n,"down",!0,!1)},rangeExpandLeft:function(n){this.dispatch("keybinding-nav-range",n,"left",!1,!0)},rangeExpandRight:function(n){this.dispatch("keybinding-nav-range",n,"right",!1,!0)},rangeExpandUp:function(n){this.dispatch("keybinding-nav-range",n,"up",!1,!0)},rangeExpandDown:function(n){this.dispatch("keybinding-nav-range",n,"down",!1,!0)},rangeExpandJumpLeft:function(n){this.dispatch("keybinding-nav-range",n,"left",!0,!0)},rangeExpandJumpRight:function(n){this.dispatch("keybinding-nav-range",n,"right",!0,!0)},rangeExpandJumpUp:function(n){this.dispatch("keybinding-nav-range",n,"up",!0,!0)},rangeExpandJumpDown:function(n){this.dispatch("keybinding-nav-range",n,"down",!0,!0)}},ok={range:function(n){var e=[],t=this.table.modules.selectRange.activeRange,i=!1,r,s,a,l,u;return u=n.length,t&&(r=t.getBounds(),s=r.start,r.start===r.end&&(i=!0),s&&(e=this.table.rowManager.activeRows.slice(),a=e.indexOf(s.row),i?l=n.length:l=e.indexOf(r.end.row)-a+1,a>-1&&(this.table.blockRedraw(),e=e.slice(a,a+l),e.forEach((c,d)=>{c.updateData(n[d%u])}),this.table.restoreRedraw()))),e}},lk={range:function(n){var e=[],t=[],i=this.table.modules.selectRange.activeRange,r=!1,s,a,l,u,c;return i&&(s=i.getBounds(),a=s.start,s.start===s.end&&(r=!0),a&&(n=n.split(`
|
|
47
|
-
`),n.forEach(function(d){e.push(d.split(" "))}),e.length&&(u=this.table.columnManager.getVisibleColumnsByIndex(),c=u.indexOf(a.column),c>-1)))?(r?l=e[0].length:l=u.indexOf(s.end.column)-c+1,u=u.slice(c,c+l),e.forEach(d=>{var f={},p=d.length;u.forEach(function(h,S){f[h.field]=d[S%p]}),t.push(f)}),t):!1}},uk={range:function(){var n=this.modules.selectRange.selectedColumns();return this.columnManager.rowHeader&&n.unshift(this.columnManager.rowHeader),n}},ck={range:function(){return this.modules.selectRange.selectedRows()}},dk={keybindings:{bindings:sk,actions:ak},clipboard:{pasteActions:ok,pasteParsers:lk},export:{columnLookups:uk,rowLookups:ck}};class hk extends ze{static moduleName="selectRange";static moduleInitOrder=1;static moduleExtensions=dk;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 r=i.getColumns(!0);r.forEach(s=>{s!==e&&s.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(r=>r.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,r){this.navigate(i,r,t),e.preventDefault()}navigate(e,t,i){var r=!1,s,a,l,u,c,d,f,p,h,S,m;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter(C=>C===this.activeRange?(C.setEnd(C.start.row,C.start.col),!0):(C.destroy(),!1))),s=this.activeRange,l={top:s.top,bottom:s.bottom,left:s.left,right:s.right},a=t?s.end:s.start,u=a.row,c=a.col,e)switch(i){case"left":c=this.findJumpCellLeft(s.start.row,a.col);break;case"right":c=this.findJumpCellRight(s.start.row,a.col);break;case"up":u=this.findJumpCellUp(a.row,s.start.col);break;case"down":u=this.findJumpCellDown(a.row,s.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":c=Math.max(c-1,0);break;case"right":c=Math.min(c+1,this.getTableColumns().length-1);break;case"up":u=Math.max(u-1,0);break;case"down":u=Math.min(u+1,this.getTableRows().length-1);break}}if(this.rowHeader&&c===0&&(c=1),t||s.setStart(u,c),s.setEnd(u,c),t||(this.selecting="cell"),r=l.top!==s.top||l.bottom!==s.bottom||l.left!==s.left||l.right!==s.right,r)return d=this.getRowByRangePos(s.end.row),f=this.getColumnByRangePos(s.end.col),p=d.getElement().getBoundingClientRect(),S=f.getElement().getBoundingClientRect(),h=this.table.rowManager.getElement().getBoundingClientRect(),m=this.table.columnManager.getElement().getBoundingClientRect(),p.top>=h.top&&p.bottom<=h.bottom||(d.getElement().parentNode&&f.getElement().parentNode?this.autoScroll(s,d.getElement(),f.getElement()):d.getComponent().scrollTo(void 0,!1)),S.left>=m.left+this.getRowHeaderWidth()&&S.right<=m.right||(d.getElement().parentNode&&f.getElement().parentNode?this.autoScroll(s,d.getElement(),f.getElement()):f.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,r,s){return i&&(t=t.reverse()),this.findJumpItem(r,s,t,function(a){return a.getData()[e.getField()]})}findJumpCol(e,t,i,r,s){return i&&(t=t.reverse()),this.findJumpItem(r,s,t,function(a){return e.getData()[a.getField()]})}findJumpItem(e,t,i,r){var s;for(let a of i){let l=r(a);if(e){if(s=a,l)break}else if(t){if(s=a,l)break}else if(l)s=a;else break}return s}findJumpCellLeft(e,t){var i=this.getRowByRangePos(e),r=this.getTableColumns(),s=this.isEmpty(i.getData()[r[t].getField()]),a=r[t-1]?this.isEmpty(i.getData()[r[t-1].getField()]):!1,l=this.rowHeader?r.slice(1,t):r.slice(0,t),u=this.findJumpCol(i,l,!0,s,a);return u?u.getPosition()-1:t}findJumpCellRight(e,t){var i=this.getRowByRangePos(e),r=this.getTableColumns(),s=this.isEmpty(i.getData()[r[t].getField()]),a=r[t+1]?this.isEmpty(i.getData()[r[t+1].getField()]):!1,l=this.findJumpCol(i,r.slice(t+1,r.length),!1,s,a);return l?l.getPosition()-1:t}findJumpCellUp(e,t){var i=this.getColumnByRangePos(t),r=this.getTableRows(),s=this.isEmpty(r[e].getData()[i.getField()]),a=r[e-1]?this.isEmpty(r[e-1].getData()[i.getField()]):!1,l=this.findJumpRow(i,r.slice(0,e),!0,s,a);return l?l.position-1:e}findJumpCellDown(e,t){var i=this.getColumnByRangePos(t),r=this.getTableRows(),s=this.isEmpty(r[e].getData()[i.getField()]),a=r[e+1]?this.isEmpty(r[e+1].getData()[i.getField()]):!1,l=this.findJumpRow(i,r.slice(e+1,r.length),!1,s,a);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 r,s=this.getCell(-1,-1);this.rowHeader?r=this.getCell(0,1):r=this.getCell(0,0),i.setBounds(r,s);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 r=this.table.rowManager.element,s,a,l,u;typeof t>"u"&&(t=this.getRowByRangePos(e.end.row).getElement()),typeof i>"u"&&(i=this.getColumnByRangePos(e.end.col).getElement()),s={left:i.offsetLeft,right:i.offsetLeft+i.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight},a={left:r.scrollLeft+this.getRowHeaderWidth(),right:Math.ceil(r.scrollLeft+r.clientWidth),top:r.scrollTop,bottom:r.scrollTop+r.offsetHeight-this.table.rowManager.scrollbarWidth},l=a.left<s.left&&s.left<a.right&&a.left<s.right&&s.right<a.right,u=a.top<s.top&&s.top<a.bottom&&a.top<s.bottom&&s.bottom<a.bottom,l||(s.left<a.left?r.scrollLeft=s.left-this.getRowHeaderWidth():s.right>a.right&&(r.scrollLeft=Math.min(s.right-r.clientWidth,s.left-this.getRowHeaderWidth()))),u||(s.top<a.top?r.scrollTop=s.top:s.bottom>a.bottom&&(r.scrollTop=s.bottom-r.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(r=>this.renderCell(r)))}),this.getTableColumns().forEach(i=>{this.layoutColumn(i)}),this.layoutRanges()}layoutRow(e){var t=e.getElement(),i=!1,r=this.ranges.some(s=>s.occupiesRow(e));this.selecting==="row"?i=r:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",r)}layoutColumn(e){var t=e.getElement(),i=!1,r=this.ranges.some(s=>s.occupiesColumn(e));this.selecting==="column"?i=r:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",r)}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(r=>r.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(r=>r.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 rk(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(r=>r.destroy()),this.ranges=[],e=this.addRange(),this.table.rowManager.activeRows.length&&(i=this.table.rowManager.activeRows[0].cells.filter(r=>r.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===""}}function fk(n,e,t,i,r,s,a){var l=a.alignEmptyValues,u=a.decimalSeparator,c=a.thousandSeparator,d=0;if(n=String(n),e=String(e),c&&(n=n.split(c).join(""),e=e.split(c).join("")),u&&(n=n.split(u).join("."),e=e.split(u).join(".")),n=parseFloat(n),e=parseFloat(e),isNaN(n))d=isNaN(e)?0:-1;else if(isNaN(e))d=1;else return n-e;return(l==="top"&&s==="desc"||l==="bottom"&&s==="asc")&&(d*=-1),d}function pk(n,e,t,i,r,s,a){var l=a.alignEmptyValues,u=0,c;if(!n)u=e?-1:0;else if(!e)u=1;else{switch(typeof a.locale){case"boolean":a.locale&&(c=this.langLocale());break;case"string":c=a.locale;break}return String(n).toLowerCase().localeCompare(String(e).toLowerCase(),c)}return(l==="top"&&s==="desc"||l==="bottom"&&s==="asc")&&(u*=-1),u}function La(n,e,t,i,r,s,a){var l=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),u=a.format||"dd/MM/yyyy HH:mm:ss",c=a.alignEmptyValues,d=0;if(typeof l<"u"){if(l.isDateTime(n)||(u==="iso"?n=l.fromISO(String(n)):n=l.fromFormat(String(n),u)),l.isDateTime(e)||(u==="iso"?e=l.fromISO(String(e)):e=l.fromFormat(String(e),u)),!n.isValid)d=e.isValid?-1:0;else if(!e.isValid)d=1;else return n-e;return(c==="top"&&s==="desc"||c==="bottom"&&s==="asc")&&(d*=-1),d}else console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}function mk(n,e,t,i,r,s,a){return a.format||(a.format="dd/MM/yyyy"),La.call(this,n,e,t,i,r,s,a)}function gk(n,e,t,i,r,s,a){return a.format||(a.format="HH:mm"),La.call(this,n,e,t,i,r,s,a)}function bk(n,e,t,i,r,s,a){var l=n===!0||n==="true"||n==="True"||n===1?1:0,u=e===!0||e==="true"||e==="True"||e===1?1:0;return l-u}function vk(n,e,t,i,r,s,a){var l=a.type||"length",u=a.alignEmptyValues,c=0,d=this.table,f;a.valueMap&&(typeof a.valueMap=="string"?f=function(h){return h.map(S=>Xe.retrieveNestedData(d.options.nestedFieldSeparator,a.valueMap,S))}:f=a.valueMap);function p(h){var S;switch(f&&(h=f(h)),l){case"length":S=h.length;break;case"sum":S=h.reduce(function(m,C){return m+C});break;case"max":S=Math.max.apply(null,h);break;case"min":S=Math.min.apply(null,h);break;case"avg":S=h.reduce(function(m,C){return m+C})/h.length;break;case"string":S=h.join("");break}return S}if(!Array.isArray(n))c=Array.isArray(e)?-1:0;else if(!Array.isArray(e))c=1;else return l==="string"?String(p(n)).toLowerCase().localeCompare(String(p(e)).toLowerCase()):p(e)-p(n);return(u==="top"&&s==="desc"||u==="bottom"&&s==="asc")&&(c*=-1),c}function yk(n,e,t,i,r,s,a){var l=typeof n>"u"?0:1,u=typeof e>"u"?0:1;return l-u}function wk(n,e,t,i,r,s,a){var l,u,c,d,f=0,p,h=/(\d+)|(\D+)/g,S=/\d/,m=a.alignEmptyValues,C=0;if(!n&&n!==0)C=!e&&e!==0?0:-1;else if(!e&&e!==0)C=1;else{if(isFinite(n)&&isFinite(e))return n-e;if(l=String(n).toLowerCase(),u=String(e).toLowerCase(),l===u)return 0;if(!(S.test(l)&&S.test(u)))return l>u?1:-1;for(l=l.match(h),u=u.match(h),p=l.length>u.length?u.length:l.length;f<p;)if(c=l[f],d=u[f++],c!==d)return isFinite(c)&&isFinite(d)?(c.charAt(0)==="0"&&(c="."+c),d.charAt(0)==="0"&&(d="."+d),c-d):c>d?1:-1;return l.length>u.length}return(m==="top"&&s==="desc"||m==="bottom"&&s==="asc")&&(C*=-1),C}var Ck={number:fk,string:pk,date:mk,time:gk,datetime:La,boolean:bk,array:vk,exists:yk,alphanum:wk};class kn extends ze{static moduleName="sort";static sorters=Ck;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,r){var s=this.getSort();return s.forEach(a=>{delete a.column}),r.sort=s,r}userSetSort(e,t){this.setSort(e,t),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(e){var t=!1,i,r;switch(typeof e.definition.sorter){case"string":kn.sorters[e.definition.sorter]?t=kn.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"),r=document.createElement("div"),r.classList.add("tabulator-col-sorter"),this.table.options.headerSortClickElement){case"icon":r.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":r.appendChild(this.table.options.headerSortElement);break;default:r.innerHTML=this.table.options.headerSortElement}e.titleHolderElement.appendChild(r),e.modules.sort.element=r,this.setColumnHeaderSortIcon(e,"none"),this.table.options.headerSortClickElement==="icon"&&r.addEventListener("mousedown",s=>{s.stopPropagation()}),(this.table.options.headerSortClickElement==="icon"?r:i).addEventListener("click",s=>{var a="",l=[],u=!1;if(e.modules.sort){if(e.modules.sort.tristate)e.modules.sort.dir=="none"?a=e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?a=e.modules.sort.dir=="asc"?"desc":"asc":a="none";else switch(e.modules.sort.dir){case"asc":a="desc";break;case"desc":a="asc";break;default:a=e.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(s.shiftKey||s.ctrlKey)?(l=this.getSort(),u=l.findIndex(c=>c.field===e.getField()),u>-1?(l[u].dir=a,u=l.splice(u,1)[0],a!="none"&&l.push(u)):a!="none"&&l.push({column:e,dir:a}),this.setSort(l)):a=="none"?this.clear():this.setSort(e,a),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,r=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(s){var a;a=i.table.columnManager.findColumn(s.column),a?(s.column=a,r.push(s),i.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",s.column)}),i.sortList=r,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(e){var t=this.table.rowManager.activeRows[0],i="string",r,s;if(t&&(t=t.getData(),r=e.getField(),r))switch(s=e.getFieldValue(t),typeof s){case"undefined":i="string";break;case"boolean":i="boolean";break;default:!isNaN(s)&&s!==""?i="number":s.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(i="alphanum");break}return kn.sorters[i]}sort(e,t){var i=this,r=this.table.options.sortOrderReverse?i.sortList.slice().reverse():i.sortList,s=[],a=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",i.getSort()),t||i.clearColumnHeaders(),this.table.options.sortMode!=="remote"?(r.forEach(function(l,u){var c;l.column&&(c=l.column.modules.sort,c&&(c.sorter||(c.sorter=i.findSorter(l.column)),l.params=typeof c.params=="function"?c.params(l.column.getComponent(),l.dir):c.params,s.push(l)),t||i.setColumnHeader(l.column,l.dir))}),s.length&&i._sortItems(e,s)):t||r.forEach(function(l,u){i.setColumnHeader(l.column,l.dir)}),this.subscribedExternal("dataSorted")&&(e.forEach(l=>{a.push(l.getComponent())}),this.dispatchExternal("dataSorted",i.getSort(),a)),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,r;if(e.definition.headerSort&&typeof this.table.options.headerSortElement=="function"){for(;i.firstChild;)i.removeChild(i.firstChild);r=this.table.options.headerSortElement.call(this.table,e.getComponent(),t),typeof r=="object"?i.appendChild(r):i.innerHTML=r}}_sortItems(e,t){var i=t.length-1;e.sort((r,s)=>{for(var a,l=i;l>=0;l--){let u=t[l];if(a=this._sortRow(r,s,u.column,u.dir,u.params),a!==0)break}return a})}_sortRow(e,t,i,r,s){var a,l,u=r=="asc"?e:t,c=r=="asc"?t:e;return e=i.getFieldValue(u.getData()),t=i.getFieldValue(c.getData()),e=typeof e<"u"?e:"",t=typeof t<"u"?t:"",a=u.getComponent(),l=c.getComponent(),i.modules.sort.sorter.call(this,e,t,a,l,i.getComponent(),r,s)}}class Ak{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 Qc{constructor(e){return this._sheet=e,new Proxy(this,{get:function(t,i,r){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)}}class Kc extends ht{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 Ak(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 r={_id:t},s=this.data[i];s&&s.forEach((a,l)=>{var u=this.columnFields[l];u&&(r[u]=a)}),this.rowDefs.push(r)})}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 Qc(this)}getDefinition(){return{title:this.title,key:this.key,rows:this.rowCount,columns:this.columnCount,data:this.getData()}}getData(e){var t=[],i,r,s;return this.rowDefs.forEach(a=>{var l=[];this.columnFields.forEach(u=>{l.push(a[u])}),t.push(l)}),!e&&!this.options("spreadsheetOutputFull")&&(i=t.map(a=>a.findLastIndex(l=>typeof l<"u")+1),r=Math.max(...i),s=i.findLastIndex(a=>a>0)+1,t=t.slice(0,s),t=t.map(a=>a.slice(0,r))),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 Ek extends ze{static moduleName="spreadsheet";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
|
|
47
|
+
`),n.forEach(function(d){e.push(d.split(" "))}),e.length&&(u=this.table.columnManager.getVisibleColumnsByIndex(),c=u.indexOf(a.column),c>-1)))?(r?l=e[0].length:l=u.indexOf(s.end.column)-c+1,u=u.slice(c,c+l),e.forEach(d=>{var f={},p=d.length;u.forEach(function(h,S){f[h.field]=d[S%p]}),t.push(f)}),t):!1}},uk={range:function(){var n=this.modules.selectRange.selectedColumns();return this.columnManager.rowHeader&&n.unshift(this.columnManager.rowHeader),n}},ck={range:function(){return this.modules.selectRange.selectedRows()}},dk={keybindings:{bindings:sk,actions:ak},clipboard:{pasteActions:ok,pasteParsers:lk},export:{columnLookups:uk,rowLookups:ck}};class hk extends ze{static moduleName="selectRange";static moduleInitOrder=1;static moduleExtensions=dk;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 r=i.getColumns(!0);r.forEach(s=>{s!==e&&s.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(r=>r.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,r){this.navigate(i,r,t),e.preventDefault()}navigate(e,t,i){var r=!1,s,a,l,u,c,d,f,p,h,S,m;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter(A=>A===this.activeRange?(A.setEnd(A.start.row,A.start.col),!0):(A.destroy(),!1))),s=this.activeRange,l={top:s.top,bottom:s.bottom,left:s.left,right:s.right},a=t?s.end:s.start,u=a.row,c=a.col,e)switch(i){case"left":c=this.findJumpCellLeft(s.start.row,a.col);break;case"right":c=this.findJumpCellRight(s.start.row,a.col);break;case"up":u=this.findJumpCellUp(a.row,s.start.col);break;case"down":u=this.findJumpCellDown(a.row,s.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":c=Math.max(c-1,0);break;case"right":c=Math.min(c+1,this.getTableColumns().length-1);break;case"up":u=Math.max(u-1,0);break;case"down":u=Math.min(u+1,this.getTableRows().length-1);break}}if(this.rowHeader&&c===0&&(c=1),t||s.setStart(u,c),s.setEnd(u,c),t||(this.selecting="cell"),r=l.top!==s.top||l.bottom!==s.bottom||l.left!==s.left||l.right!==s.right,r)return d=this.getRowByRangePos(s.end.row),f=this.getColumnByRangePos(s.end.col),p=d.getElement().getBoundingClientRect(),S=f.getElement().getBoundingClientRect(),h=this.table.rowManager.getElement().getBoundingClientRect(),m=this.table.columnManager.getElement().getBoundingClientRect(),p.top>=h.top&&p.bottom<=h.bottom||(d.getElement().parentNode&&f.getElement().parentNode?this.autoScroll(s,d.getElement(),f.getElement()):d.getComponent().scrollTo(void 0,!1)),S.left>=m.left+this.getRowHeaderWidth()&&S.right<=m.right||(d.getElement().parentNode&&f.getElement().parentNode?this.autoScroll(s,d.getElement(),f.getElement()):f.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,r,s){return i&&(t=t.reverse()),this.findJumpItem(r,s,t,function(a){return a.getData()[e.getField()]})}findJumpCol(e,t,i,r,s){return i&&(t=t.reverse()),this.findJumpItem(r,s,t,function(a){return e.getData()[a.getField()]})}findJumpItem(e,t,i,r){var s;for(let a of i){let l=r(a);if(e){if(s=a,l)break}else if(t){if(s=a,l)break}else if(l)s=a;else break}return s}findJumpCellLeft(e,t){var i=this.getRowByRangePos(e),r=this.getTableColumns(),s=this.isEmpty(i.getData()[r[t].getField()]),a=r[t-1]?this.isEmpty(i.getData()[r[t-1].getField()]):!1,l=this.rowHeader?r.slice(1,t):r.slice(0,t),u=this.findJumpCol(i,l,!0,s,a);return u?u.getPosition()-1:t}findJumpCellRight(e,t){var i=this.getRowByRangePos(e),r=this.getTableColumns(),s=this.isEmpty(i.getData()[r[t].getField()]),a=r[t+1]?this.isEmpty(i.getData()[r[t+1].getField()]):!1,l=this.findJumpCol(i,r.slice(t+1,r.length),!1,s,a);return l?l.getPosition()-1:t}findJumpCellUp(e,t){var i=this.getColumnByRangePos(t),r=this.getTableRows(),s=this.isEmpty(r[e].getData()[i.getField()]),a=r[e-1]?this.isEmpty(r[e-1].getData()[i.getField()]):!1,l=this.findJumpRow(i,r.slice(0,e),!0,s,a);return l?l.position-1:e}findJumpCellDown(e,t){var i=this.getColumnByRangePos(t),r=this.getTableRows(),s=this.isEmpty(r[e].getData()[i.getField()]),a=r[e+1]?this.isEmpty(r[e+1].getData()[i.getField()]):!1,l=this.findJumpRow(i,r.slice(e+1,r.length),!1,s,a);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 r,s=this.getCell(-1,-1);this.rowHeader?r=this.getCell(0,1):r=this.getCell(0,0),i.setBounds(r,s);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 r=this.table.rowManager.element,s,a,l,u;typeof t>"u"&&(t=this.getRowByRangePos(e.end.row).getElement()),typeof i>"u"&&(i=this.getColumnByRangePos(e.end.col).getElement()),s={left:i.offsetLeft,right:i.offsetLeft+i.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight},a={left:r.scrollLeft+this.getRowHeaderWidth(),right:Math.ceil(r.scrollLeft+r.clientWidth),top:r.scrollTop,bottom:r.scrollTop+r.offsetHeight-this.table.rowManager.scrollbarWidth},l=a.left<s.left&&s.left<a.right&&a.left<s.right&&s.right<a.right,u=a.top<s.top&&s.top<a.bottom&&a.top<s.bottom&&s.bottom<a.bottom,l||(s.left<a.left?r.scrollLeft=s.left-this.getRowHeaderWidth():s.right>a.right&&(r.scrollLeft=Math.min(s.right-r.clientWidth,s.left-this.getRowHeaderWidth()))),u||(s.top<a.top?r.scrollTop=s.top:s.bottom>a.bottom&&(r.scrollTop=s.bottom-r.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(r=>this.renderCell(r)))}),this.getTableColumns().forEach(i=>{this.layoutColumn(i)}),this.layoutRanges()}layoutRow(e){var t=e.getElement(),i=!1,r=this.ranges.some(s=>s.occupiesRow(e));this.selecting==="row"?i=r:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",r)}layoutColumn(e){var t=e.getElement(),i=!1,r=this.ranges.some(s=>s.occupiesColumn(e));this.selecting==="column"?i=r:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",r)}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(r=>r.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(r=>r.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 rk(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(r=>r.destroy()),this.ranges=[],e=this.addRange(),this.table.rowManager.activeRows.length&&(i=this.table.rowManager.activeRows[0].cells.filter(r=>r.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===""}}function fk(n,e,t,i,r,s,a){var l=a.alignEmptyValues,u=a.decimalSeparator,c=a.thousandSeparator,d=0;if(n=String(n),e=String(e),c&&(n=n.split(c).join(""),e=e.split(c).join("")),u&&(n=n.split(u).join("."),e=e.split(u).join(".")),n=parseFloat(n),e=parseFloat(e),isNaN(n))d=isNaN(e)?0:-1;else if(isNaN(e))d=1;else return n-e;return(l==="top"&&s==="desc"||l==="bottom"&&s==="asc")&&(d*=-1),d}function pk(n,e,t,i,r,s,a){var l=a.alignEmptyValues,u=0,c;if(!n)u=e?-1:0;else if(!e)u=1;else{switch(typeof a.locale){case"boolean":a.locale&&(c=this.langLocale());break;case"string":c=a.locale;break}return String(n).toLowerCase().localeCompare(String(e).toLowerCase(),c)}return(l==="top"&&s==="desc"||l==="bottom"&&s==="asc")&&(u*=-1),u}function La(n,e,t,i,r,s,a){var l=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),u=a.format||"dd/MM/yyyy HH:mm:ss",c=a.alignEmptyValues,d=0;if(typeof l<"u"){if(l.isDateTime(n)||(u==="iso"?n=l.fromISO(String(n)):n=l.fromFormat(String(n),u)),l.isDateTime(e)||(u==="iso"?e=l.fromISO(String(e)):e=l.fromFormat(String(e),u)),!n.isValid)d=e.isValid?-1:0;else if(!e.isValid)d=1;else return n-e;return(c==="top"&&s==="desc"||c==="bottom"&&s==="asc")&&(d*=-1),d}else console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}function mk(n,e,t,i,r,s,a){return a.format||(a.format="dd/MM/yyyy"),La.call(this,n,e,t,i,r,s,a)}function gk(n,e,t,i,r,s,a){return a.format||(a.format="HH:mm"),La.call(this,n,e,t,i,r,s,a)}function bk(n,e,t,i,r,s,a){var l=n===!0||n==="true"||n==="True"||n===1?1:0,u=e===!0||e==="true"||e==="True"||e===1?1:0;return l-u}function vk(n,e,t,i,r,s,a){var l=a.type||"length",u=a.alignEmptyValues,c=0,d=this.table,f;a.valueMap&&(typeof a.valueMap=="string"?f=function(h){return h.map(S=>Xe.retrieveNestedData(d.options.nestedFieldSeparator,a.valueMap,S))}:f=a.valueMap);function p(h){var S;switch(f&&(h=f(h)),l){case"length":S=h.length;break;case"sum":S=h.reduce(function(m,A){return m+A});break;case"max":S=Math.max.apply(null,h);break;case"min":S=Math.min.apply(null,h);break;case"avg":S=h.reduce(function(m,A){return m+A})/h.length;break;case"string":S=h.join("");break}return S}if(!Array.isArray(n))c=Array.isArray(e)?-1:0;else if(!Array.isArray(e))c=1;else return l==="string"?String(p(n)).toLowerCase().localeCompare(String(p(e)).toLowerCase()):p(e)-p(n);return(u==="top"&&s==="desc"||u==="bottom"&&s==="asc")&&(c*=-1),c}function yk(n,e,t,i,r,s,a){var l=typeof n>"u"?0:1,u=typeof e>"u"?0:1;return l-u}function wk(n,e,t,i,r,s,a){var l,u,c,d,f=0,p,h=/(\d+)|(\D+)/g,S=/\d/,m=a.alignEmptyValues,A=0;if(!n&&n!==0)A=!e&&e!==0?0:-1;else if(!e&&e!==0)A=1;else{if(isFinite(n)&&isFinite(e))return n-e;if(l=String(n).toLowerCase(),u=String(e).toLowerCase(),l===u)return 0;if(!(S.test(l)&&S.test(u)))return l>u?1:-1;for(l=l.match(h),u=u.match(h),p=l.length>u.length?u.length:l.length;f<p;)if(c=l[f],d=u[f++],c!==d)return isFinite(c)&&isFinite(d)?(c.charAt(0)==="0"&&(c="."+c),d.charAt(0)==="0"&&(d="."+d),c-d):c>d?1:-1;return l.length>u.length}return(m==="top"&&s==="desc"||m==="bottom"&&s==="asc")&&(A*=-1),A}var Ck={number:fk,string:pk,date:mk,time:gk,datetime:La,boolean:bk,array:vk,exists:yk,alphanum:wk};class kn extends ze{static moduleName="sort";static sorters=Ck;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,r){var s=this.getSort();return s.forEach(a=>{delete a.column}),r.sort=s,r}userSetSort(e,t){this.setSort(e,t),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(e){var t=!1,i,r;switch(typeof e.definition.sorter){case"string":kn.sorters[e.definition.sorter]?t=kn.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"),r=document.createElement("div"),r.classList.add("tabulator-col-sorter"),this.table.options.headerSortClickElement){case"icon":r.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":r.appendChild(this.table.options.headerSortElement);break;default:r.innerHTML=this.table.options.headerSortElement}e.titleHolderElement.appendChild(r),e.modules.sort.element=r,this.setColumnHeaderSortIcon(e,"none"),this.table.options.headerSortClickElement==="icon"&&r.addEventListener("mousedown",s=>{s.stopPropagation()}),(this.table.options.headerSortClickElement==="icon"?r:i).addEventListener("click",s=>{var a="",l=[],u=!1;if(e.modules.sort){if(e.modules.sort.tristate)e.modules.sort.dir=="none"?a=e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?a=e.modules.sort.dir=="asc"?"desc":"asc":a="none";else switch(e.modules.sort.dir){case"asc":a="desc";break;case"desc":a="asc";break;default:a=e.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(s.shiftKey||s.ctrlKey)?(l=this.getSort(),u=l.findIndex(c=>c.field===e.getField()),u>-1?(l[u].dir=a,u=l.splice(u,1)[0],a!="none"&&l.push(u)):a!="none"&&l.push({column:e,dir:a}),this.setSort(l)):a=="none"?this.clear():this.setSort(e,a),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,r=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(s){var a;a=i.table.columnManager.findColumn(s.column),a?(s.column=a,r.push(s),i.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",s.column)}),i.sortList=r,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(e){var t=this.table.rowManager.activeRows[0],i="string",r,s;if(t&&(t=t.getData(),r=e.getField(),r))switch(s=e.getFieldValue(t),typeof s){case"undefined":i="string";break;case"boolean":i="boolean";break;default:!isNaN(s)&&s!==""?i="number":s.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(i="alphanum");break}return kn.sorters[i]}sort(e,t){var i=this,r=this.table.options.sortOrderReverse?i.sortList.slice().reverse():i.sortList,s=[],a=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",i.getSort()),t||i.clearColumnHeaders(),this.table.options.sortMode!=="remote"?(r.forEach(function(l,u){var c;l.column&&(c=l.column.modules.sort,c&&(c.sorter||(c.sorter=i.findSorter(l.column)),l.params=typeof c.params=="function"?c.params(l.column.getComponent(),l.dir):c.params,s.push(l)),t||i.setColumnHeader(l.column,l.dir))}),s.length&&i._sortItems(e,s)):t||r.forEach(function(l,u){i.setColumnHeader(l.column,l.dir)}),this.subscribedExternal("dataSorted")&&(e.forEach(l=>{a.push(l.getComponent())}),this.dispatchExternal("dataSorted",i.getSort(),a)),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,r;if(e.definition.headerSort&&typeof this.table.options.headerSortElement=="function"){for(;i.firstChild;)i.removeChild(i.firstChild);r=this.table.options.headerSortElement.call(this.table,e.getComponent(),t),typeof r=="object"?i.appendChild(r):i.innerHTML=r}}_sortItems(e,t){var i=t.length-1;e.sort((r,s)=>{for(var a,l=i;l>=0;l--){let u=t[l];if(a=this._sortRow(r,s,u.column,u.dir,u.params),a!==0)break}return a})}_sortRow(e,t,i,r,s){var a,l,u=r=="asc"?e:t,c=r=="asc"?t:e;return e=i.getFieldValue(u.getData()),t=i.getFieldValue(c.getData()),e=typeof e<"u"?e:"",t=typeof t<"u"?t:"",a=u.getComponent(),l=c.getComponent(),i.modules.sort.sorter.call(this,e,t,a,l,i.getComponent(),r,s)}}class Ak{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 Qc{constructor(e){return this._sheet=e,new Proxy(this,{get:function(t,i,r){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)}}class Kc extends ht{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 Ak(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 r={_id:t},s=this.data[i];s&&s.forEach((a,l)=>{var u=this.columnFields[l];u&&(r[u]=a)}),this.rowDefs.push(r)})}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 Qc(this)}getDefinition(){return{title:this.title,key:this.key,rows:this.rowCount,columns:this.columnCount,data:this.getData()}}getData(e){var t=[],i,r,s;return this.rowDefs.forEach(a=>{var l=[];this.columnFields.forEach(u=>{l.push(a[u])}),t.push(l)}),!e&&!this.options("spreadsheetOutputFull")&&(i=t.map(a=>a.findLastIndex(l=>typeof l<"u")+1),r=Math.max(...i),s=i.findLastIndex(a=>a>0)+1,t=t.slice(0,s),t=t.map(a=>a.slice(0,r))),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 Ek extends ze{static moduleName="spreadsheet";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
|
|
48
48
|
Expecting: array
|
|
49
49
|
Received: `,typeof e,`
|
|
50
|
-
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 Kc(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 Kc?e:e instanceof Qc?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}}class kk extends ze{static moduleName="tooltip";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 r=e==="tooltip"?i.column.definition.tooltip:i.definition.headerTooltip;r&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,i,r),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 r,s,a;function l(u){s=u}typeof i=="function"&&(i=i(e,t.getComponent(),l)),i instanceof HTMLElement?r=i:(r=document.createElement("div"),i===!0&&(t instanceof Cn?i=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,u=>{r.innerHTML=i=u||t.definition.title}):i=t.definition.title),r.innerHTML=i),(i||i===0||i===!1)&&(r.classList.add("tabulator-tooltip"),r.addEventListener("mousemove",u=>u.preventDefault()),this.popupInstance=this.popup(r),typeof s=="function"&&this.popupInstance.renderCallback(s),a=this.popupInstance.containerEventCoords(e),this.popupInstance.show(a.x+15,a.y+15).hideOnBlur(()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null}),this.dispatchExternal("TooltipOpened",t.getComponent()))}}var Sk={integer:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&Math.floor(e)===e)},float:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&e%1!==0)},numeric:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:!isNaN(e)},string:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:isNaN(e)},alphanumeric:function(n,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(n,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)<=t},min:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)>=t},starts:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().startsWith(String(t).toLowerCase())},ends:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().endsWith(String(t).toLowerCase())},minLength:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length>=t},maxLength:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length<=t},in:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(typeof t=="string"&&(t=t.split("|")),t.indexOf(e)>-1)},regex:function(n,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(t);return i.test(e)},unique:function(n,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=!0,r=n.getData(),s=n.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(a){var l=a.getData();l!==r&&e==s.getFieldValue(l)&&(i=!1)}),i},required:function(n,e,t){return e!==""&&e!==null&&typeof e<"u"}};class Ba extends ze{static moduleName="validate";static validators=Sk;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 r=this.table.options.validationMode!=="manual"?this.validate(e.column.modules.validate,e,t):!0;return r!==!0&&setTimeout(()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,r)}),r}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 r=i.validate();r!==!0&&(t=t.concat(r))}),t.length?t:!0}initializeColumnCheck(e){typeof e.definition.validator<"u"&&this.initializeColumn(e)}initializeColumn(e){var t=this,i=[],r;e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(s=>{r=t._extractValidator(s),r&&i.push(r)}):(r=this._extractValidator(e.definition.validator),r&&i.push(r)),e.modules.validate=i.length?i:!1)}_extractValidator(e){var t,i,r;switch(typeof e){case"string":return r=e.indexOf(":"),r>-1?(t=e.substring(0,r),i=e.substring(r+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:Ba.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 r=this,s=[],a=this.invalidCells.indexOf(t);return e&&e.forEach(l=>{l.func.call(r,t.getComponent(),i,l.params)||s.push({type:l.type,parameters:l.params})}),t.modules.validate||(t.modules.validate={}),s.length?(t.modules.validate.invalid=s,this.table.options.validationMode!=="manual"&&t.getElement().classList.add("tabulator-validation-fail"),a==-1&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),a>-1&&this.invalidCells.splice(a,1)),s.length?s:!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))}}var Fa=Object.freeze({__proto__:null,AccessorModule:lr,AjaxModule:Qi,ClipboardModule:ur,ColumnCalcsModule:Ki,DataTreeModule:EE,DownloadModule:dr,EditModule:Ma,ExportModule:An,FilterModule:Ri,FormatModule:Ji,FrozenColumnsModule:b0,FrozenRowsModule:v0,GroupRowsModule:w0,HistoryModule:fr,HtmlTableImportModule:x0,ImportModule:Da,InteractionModule:L0,KeybindingsModule:En,MenuModule:_0,MoveColumnsModule:P0,MoveRowsModule:pr,MutatorModule:mr,PageModule:Oa,PersistenceModule:Jt,PopupModule:G0,PrintModule:Y0,ReactiveDataModule:Q0,ResizeColumnsModule:K0,ResizeRowsModule:J0,ResizeTableModule:q0,ResponsiveLayoutModule:X0,SelectRangeModule:hk,SelectRowModule:ik,SortModule:kn,SpreadsheetModule:Ek,TooltipModule:kk,ValidateModule:Ba}),xk={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 Jc{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),r=this.table.options.debugInvalidOptions||t.debugInvalidOptions===!0;Object.assign(i,e);for(let s in t)i.hasOwnProperty(s)||(r&&console.warn("Invalid "+this.msgType+" option:",s),i[s]=t.key);for(let s in i)s in t?i[s]=t[s]:Array.isArray(i[s])?i[s]=Object.assign([],i[s]):typeof i[s]=="object"&&i[s]!==null?i[s]=Object.assign({},i[s]):typeof i[s]>"u"&&delete i[s];return i}}class gr extends ht{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 r=this.rows().indexOf(e),s=e.getElement(),a=0;return new Promise((l,u)=>{if(r>-1){if(typeof i>"u"&&(i=this.table.options.scrollToRowIfVisible),!i&&Xe.elVisible(s)&&(a=Xe.elOffset(s).top-Xe.elOffset(this.elementVertical).top,a>0&&a<this.elementVertical.clientHeight-s.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+(s.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-s.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-s.offsetTop)+s.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+s.offsetHeight;break;case"top":this.elementVertical.scrollTop=s.offsetTop;break}l()}else console.warn("Scroll Error - Row not visible"),u("Scroll Error - Row not visible")})}}class Rk extends gr{constructor(e){super(e)}renderRowCells(e,t){const i=document.createDocumentFragment();e.cells.forEach(r=>{i.appendChild(r.getElement())}),e.element.appendChild(i),t||e.cells.forEach(r=>{r.cellRendered()})}reinitializeColumnWidths(e){e.forEach(function(t){t.reinitializeWidth()})}}class Mk extends gr{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},r=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(s=>{var a={},l;s.visible&&(s.modules.frozen||(l=s.getWidth(),a.leftPos=r,a.rightPos=r+l,a.width=l,this.isFitData&&(a.fitDataCheck=s.modules.vdomHoz?s.modules.vdomHoz.fitDataCheck:!0),r+l>this.vDomScrollPosLeft&&r<this.vDomScrollPosRight?(this.leftCol==-1&&(this.leftCol=this.columns.length,this.vDomPadLeft=r),this.rightCol=this.columns.length):this.leftCol!==-1&&(this.vDomPadRight+=l),this.columns.push(s),s.modules.vdomHoz=a,r+=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(r=>{!r.definition.width&&r.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 r=0;r<t.cells.length;r++){let s=t.cells[r];i.appendChild(s.getElement()),s.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,r)=>{i!==this.columns[r]&&(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 r=e;r<t;r++){let s=this.columns[r];s.modules.vdomHoz.leftPos+=i,s.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(r=>{if(r.type!=="group"){var s=r.getCell(i);r.getElement().insertBefore(s.getElement(),r.getCell(this.columns[this.rightCol]).getElement().nextSibling),s.cellRendered()}}),this.fitDataColActualWidthCheck(i),this.rightCol++,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.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(s=>{if(s.type!=="group"){var a=s.getCell(i);s.getElement().insertBefore(a.getElement(),s.getCell(this.columns[this.leftCol]).getElement()),a.cellRendered()}}),this.leftCol--,this.getVisibleRows().forEach(s=>{s.type!=="group"&&(s.modules.vdomHoz.leftCol=this.leftCol)}),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=i.getWidth();let r=this.fitDataColActualWidthCheck(i);r&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+r,this.vDomPadRight-=r)}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(r=>{if(r.type!=="group"){var s=r.getCell(i);try{r.getElement().removeChild(s.getElement())}catch(a){console.warn("Could not removeColRight",a.message)}}}),this.vDomPadRight+=i.getWidth(),this.rightCol--,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.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(r=>{if(r.type!=="group"){var s=r.getCell(i);try{r.getElement().removeChild(s.getElement())}catch(a){console.warn("Could not removeColLeft",a.message)}}}),this.vDomPadLeft+=i.getWidth(),this.leftCol++,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.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 Tk extends ht{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 Jc(this.table,"column definition",Gc),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:Mk,basic:Rk};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={},r=this.table.options.autoColumns==="full"?e:[e[0]],s=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(r.forEach(a=>{Object.keys(a).forEach((l,u)=>{let c=a[l],d;i[l]?i[l]!==!0&&typeof c<"u"&&(i[l].sorter=this.calculateSorterFromValue(c),i[l]=!0):(d={field:l,title:l,sorter:this.calculateSorterFromValue(c)},t.splice(u,0,d),i[l]=typeof c>"u"?d:!0)})}),s)switch(typeof s){case"function":this.table.options.columns=s.call(this.table,t);break;case"object":Array.isArray(s)?t.forEach(a=>{var l=s.find(u=>u.field===a.field);l&&Object.assign(a,l)}):t.forEach(a=>{s[a.field]&&Object.assign(a,s[a.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 Kt(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,r)=>{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 r=new Kt(e,this),s=r.getElement(),a=i&&this.findColumnIndex(i);if(t&&this.rowHeader&&(!i||i===this.rowHeader)&&(t=!1,i=this.rowHeader,a=0),i&&a>-1){var l=i.getTopColumn(),u=this.columns.indexOf(l),c=l.getElement();t?(this.columns.splice(u,0,r),c.parentNode.insertBefore(s,c)):(this.columns.splice(u+1,0,r),c.parentNode.insertBefore(s,c.nextSibling))}else t?(this.columns.unshift(r),this.headersElement.insertBefore(r.getElement(),this.headersElement.firstChild)):(this.columns.push(r),this.headersElement.appendChild(r.getElement()));return r.columnRendered(),r}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 Kt)return e;if(e instanceof Uc)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return t=[],this.columns.forEach(r=>{t.push(r),t=t.concat(r.getColumns(!0))}),t.find(r=>r.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 r=this.table.options.nestedFieldSeparator?i.split(this.table.options.nestedFieldSeparator)[0]:i;r===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(r=>{t.push(r.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,r,s){var a=e.indexOf(t),l,u=[];a>-1&&(e.splice(a,1),l=e.indexOf(i),l>-1?r&&(l=l+1):l=a,e.splice(l,0,t),s&&(u=this.chain("column-moving-rows",[t,i,r],null,[])||[],u=u.concat(this.table.rowManager.rows),u.forEach(function(c){if(c.cells.length){var d=c.cells.splice(a,1)[0];c.cells.splice(l,0,d)}})))}scrollToColumn(e,t,i){var r=0,s=e.getLeftOffset(),a=0,l=e.getElement();return new Promise((u,c)=>{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":a=-this.element.clientWidth/2;break;case"right":a=l.clientWidth-this.headersElement.clientWidth;break}if(!i&&s>0&&s+l.offsetWidth<this.element.clientWidth)return!1;r=s+a,r=Math.max(Math.min(r,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(r),this.scrollHorizontal(r),u()}else console.warn("Scroll Error - Column not visible"),c("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 r,s,a;i.visible&&(r=i.definition.width||0,s=parseInt(i.minWidth),typeof r=="string"?r.indexOf("%")>-1?a=e/100*parseInt(r):a=parseInt(r):a=r,t+=a>s?a:s)}),t}addColumn(e,t,i){return new Promise((r,s)=>{var a=this._addColumn(e,t,i);this._reIndexColumns(),this.dispatch("column-add",e,t,i),this.layoutMode()!="fitColumns"&&a.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),r(a)})}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){Xe.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 Dk extends gr{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(),r=this.rows();r.forEach((s,a)=>{this.styleRow(s,a),s.initialize(!1,!0),s.type!=="group"&&(t=!1),i.appendChild(s.getElement())}),e.appendChild(i),r.forEach(s=>{s.rendered(),s.heightInitialized||s.calcHeight(!0)}),r.forEach(s=>{s.heightInitialized||s.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=Xe.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=Xe.elOffset(t).top-Xe.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class Ok extends gr{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,r=!1,s=this.table.rowManager.scrollLeft,a=this.rows(),l=this.vDomTop;l<=this.vDomBottom;l++)if(a[l]){var u=t-a[l].getElement().offsetTop;if(r===!1||Math.abs(u)<r)r=u,i=l;else break}a.forEach(c=>{c.deinitializeHeight()}),e&&e(),this.rows().length?this._virtualRenderFill(i===!1?this.rows.length-1:i,!0,r||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(s)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var i=e-this.vDomScrollPosTop,r=e-this.vDomScrollPosBottom,s=this.vDomWindowBuffer*2,a=this.rows();if(this.scrollTop=e,-i>s||r>s){var l=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*a.length)),this.scrollColumns(l)}else t?(i<0&&this._addTopRow(a,-i),r<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(a,-r):this.vDomScrollPosBottom=this.scrollTop)):(r>=0&&this._addBottomRow(a,r),i>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(a,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,r=!1,s=0,a=0,l=this.rows();if(e)s=this.vDomTop,a=this.vDomBottom;else for(var u=this.vDomTop;u<=this.vDomBottom;u++)if(l[u])if(r)if(i-l[u].getElement().offsetTop>=0)a=u;else break;else if(t-l[u].getElement().offsetTop>=0)s=u;else if(r=!0,i-l[u].getElement().offsetTop>=0)a=u;else break;return l.slice(s,a+1)}_virtualRenderFill(e,t,i){var r=this.tableElement,s=this.elementVertical,a=0,l=0,u=0,c=0,d=0,f=0,p=this.rows(),h=p.length,S=0,m,C,b=[],g=0,M=0,v=this.table.rowManager.fixedHeight,R=this.elementVertical.clientHeight,y=this.table.options.rowHeight,x=!0;if(e=e||0,i=i||0,!e)this.clear();else{for(;r.firstChild;)r.removeChild(r.firstChild);c=(h-e+1)*this.vDomRowHeight,c<R&&(e-=Math.ceil((R-c)/this.vDomRowHeight),e<0&&(e=0)),a=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e),e-=a}if(h&&Xe.elVisible(this.elementVertical)){for(this.vDomTop=e,this.vDomBottom=e-1,v||this.table.options.maxHeight?(y&&(M=R/y+this.vDomWindowBuffer/y),M=Math.max(this.vDomWindowMinTotalRows,Math.ceil(M))):M=h;(M==h||l<=R+this.vDomWindowBuffer||g<this.vDomWindowMinTotalRows)&&this.vDomBottom<h-1;){for(b=[],C=document.createDocumentFragment(),f=0;f<M&&this.vDomBottom<h-1;)S=this.vDomBottom+1,m=p[S],this.styleRow(m,S),m.initialize(!1,!0),!m.heightInitialized&&!this.table.options.rowHeight&&m.clearCellHeight(),C.appendChild(m.getElement()),b.push(m),this.vDomBottom++,f++;if(!b.length)break;r.appendChild(C),b.forEach(k=>{k.rendered(),k.heightInitialized||k.calcHeight(!0)}),b.forEach(k=>{k.heightInitialized||k.setCellHeight()}),b.forEach(k=>{u=k.getHeight(),g<a?d+=u:l+=u,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2),g++}),x=this.table.rowManager.adjustTableSize(),R=this.elementVertical.clientHeight,x&&(v||this.table.options.maxHeight)&&(y=l/g,M=Math.max(this.vDomWindowMinTotalRows,Math.ceil(R/y+this.vDomWindowBuffer/y)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+i:this.scrollTop-d,this.vDomBottomPad=this.vDomBottom==h-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-l-d,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((l+d)/g),this.vDomBottomPad=this.vDomRowHeight*(h-this.vDomBottom-1),this.vDomScrollHeight=d+l+this.vDomBottomPad-R),r.style.paddingTop=this.vDomTopPad+"px",r.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+d+i-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-R:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-R),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-R),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,s.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var i=this.tableElement,r=[],s=0,a=this.vDomTop-1,l=0,u=!0;u;)if(this.vDomTop){let c=e[a],d,f;c&&l<this.vDomMaxRenderChain?(d=c.getHeight()||this.vDomRowHeight,f=c.initialized,t>=d?(this.styleRow(c,a),i.insertBefore(c.getElement(),i.firstChild),(!c.initialized||!c.heightInitialized)&&r.push(c),c.initialize(),f||(d=c.getElement().offsetHeight,d>this.vDomWindowBuffer&&(this.vDomWindowBuffer=d*2)),t-=d,s+=d,this.vDomTop--,a--,l++):u=!1):u=!1}else u=!1;for(let c of r)c.clearCellHeight();this._quickNormalizeRowHeight(r),s&&(this.vDomTopPad-=s,this.vDomTopPad<0&&(this.vDomTopPad=a*this.vDomRowHeight),a<1&&(this.vDomTopPad=0),i.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=s)}_removeTopRow(e,t){for(var i=[],r=0,s=0,a=!0;a;){let l=e[this.vDomTop],u;l&&s<this.vDomMaxRenderChain?(u=l.getHeight()||this.vDomRowHeight,t>=u?(this.vDomTop++,t-=u,r+=u,i.push(l),s++):a=!1):a=!1}for(let l of i){let u=l.getElement();u.parentNode&&u.parentNode.removeChild(u)}r&&(this.vDomTopPad+=r,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?r:r+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var i=this.tableElement,r=[],s=0,a=this.vDomBottom+1,l=0,u=!0;u;){let c=e[a],d,f;c&&l<this.vDomMaxRenderChain?(d=c.getHeight()||this.vDomRowHeight,f=c.initialized,t>=d?(this.styleRow(c,a),i.appendChild(c.getElement()),(!c.initialized||!c.heightInitialized)&&r.push(c),c.initialize(),f||(d=c.getElement().offsetHeight,d>this.vDomWindowBuffer&&(this.vDomWindowBuffer=d*2)),t-=d,s+=d,this.vDomBottom++,a++,l++):u=!1):u=!1}for(let c of r)c.clearCellHeight();this._quickNormalizeRowHeight(r),s&&(this.vDomBottomPad-=s,(this.vDomBottomPad<0||a==e.length-1)&&(this.vDomBottomPad=0),i.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=s)}_removeBottomRow(e,t){for(var i=[],r=0,s=0,a=!0;a;){let l=e[this.vDomBottom],u;l&&s<this.vDomMaxRenderChain?(u=l.getHeight()||this.vDomRowHeight,t>=u?(this.vDomBottom--,t-=u,r+=u,i.push(l),s++):a=!1):a=!1}for(let l of i){let u=l.getElement();u.parentNode&&u.parentNode.removeChild(u)}r&&(this.vDomBottomPad+=r,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=r)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class Lk extends ht{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,r=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,r),this.dispatch("scroll-vertical",i,r),this.dispatchExternal("scrollVertical",i,r))})}findRow(e){if(typeof e=="object"){if(e instanceof mt)return e;if(e instanceof cr)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((r,s)=>{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)),r()})}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach((i,r)=>{if(i&&typeof i=="object"){var s=new mt(i,this);this.rows.push(s)}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
|
|
50
|
+
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 Kc(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 Kc?e:e instanceof Qc?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}}class kk extends ze{static moduleName="tooltip";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 r=e==="tooltip"?i.column.definition.tooltip:i.definition.headerTooltip;r&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,i,r),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 r,s,a;function l(u){s=u}typeof i=="function"&&(i=i(e,t.getComponent(),l)),i instanceof HTMLElement?r=i:(r=document.createElement("div"),i===!0&&(t instanceof Cn?i=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,u=>{r.innerHTML=i=u||t.definition.title}):i=t.definition.title),r.innerHTML=i),(i||i===0||i===!1)&&(r.classList.add("tabulator-tooltip"),r.addEventListener("mousemove",u=>u.preventDefault()),this.popupInstance=this.popup(r),typeof s=="function"&&this.popupInstance.renderCallback(s),a=this.popupInstance.containerEventCoords(e),this.popupInstance.show(a.x+15,a.y+15).hideOnBlur(()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null}),this.dispatchExternal("TooltipOpened",t.getComponent()))}}var Sk={integer:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&Math.floor(e)===e)},float:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&e%1!==0)},numeric:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:!isNaN(e)},string:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:isNaN(e)},alphanumeric:function(n,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(n,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)<=t},min:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)>=t},starts:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().startsWith(String(t).toLowerCase())},ends:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().endsWith(String(t).toLowerCase())},minLength:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length>=t},maxLength:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length<=t},in:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(typeof t=="string"&&(t=t.split("|")),t.indexOf(e)>-1)},regex:function(n,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(t);return i.test(e)},unique:function(n,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=!0,r=n.getData(),s=n.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(a){var l=a.getData();l!==r&&e==s.getFieldValue(l)&&(i=!1)}),i},required:function(n,e,t){return e!==""&&e!==null&&typeof e<"u"}};class Ba extends ze{static moduleName="validate";static validators=Sk;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 r=this.table.options.validationMode!=="manual"?this.validate(e.column.modules.validate,e,t):!0;return r!==!0&&setTimeout(()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,r)}),r}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 r=i.validate();r!==!0&&(t=t.concat(r))}),t.length?t:!0}initializeColumnCheck(e){typeof e.definition.validator<"u"&&this.initializeColumn(e)}initializeColumn(e){var t=this,i=[],r;e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(s=>{r=t._extractValidator(s),r&&i.push(r)}):(r=this._extractValidator(e.definition.validator),r&&i.push(r)),e.modules.validate=i.length?i:!1)}_extractValidator(e){var t,i,r;switch(typeof e){case"string":return r=e.indexOf(":"),r>-1?(t=e.substring(0,r),i=e.substring(r+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:Ba.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 r=this,s=[],a=this.invalidCells.indexOf(t);return e&&e.forEach(l=>{l.func.call(r,t.getComponent(),i,l.params)||s.push({type:l.type,parameters:l.params})}),t.modules.validate||(t.modules.validate={}),s.length?(t.modules.validate.invalid=s,this.table.options.validationMode!=="manual"&&t.getElement().classList.add("tabulator-validation-fail"),a==-1&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),a>-1&&this.invalidCells.splice(a,1)),s.length?s:!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))}}var Fa=Object.freeze({__proto__:null,AccessorModule:lr,AjaxModule:Qi,ClipboardModule:ur,ColumnCalcsModule:Ki,DataTreeModule:EE,DownloadModule:dr,EditModule:Ma,ExportModule:An,FilterModule:Ri,FormatModule:Ji,FrozenColumnsModule:b0,FrozenRowsModule:v0,GroupRowsModule:w0,HistoryModule:fr,HtmlTableImportModule:x0,ImportModule:Da,InteractionModule:L0,KeybindingsModule:En,MenuModule:_0,MoveColumnsModule:P0,MoveRowsModule:pr,MutatorModule:mr,PageModule:Oa,PersistenceModule:Jt,PopupModule:G0,PrintModule:Y0,ReactiveDataModule:Q0,ResizeColumnsModule:K0,ResizeRowsModule:J0,ResizeTableModule:q0,ResponsiveLayoutModule:X0,SelectRangeModule:hk,SelectRowModule:ik,SortModule:kn,SpreadsheetModule:Ek,TooltipModule:kk,ValidateModule:Ba}),xk={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 Jc{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),r=this.table.options.debugInvalidOptions||t.debugInvalidOptions===!0;Object.assign(i,e);for(let s in t)i.hasOwnProperty(s)||(r&&console.warn("Invalid "+this.msgType+" option:",s),i[s]=t.key);for(let s in i)s in t?i[s]=t[s]:Array.isArray(i[s])?i[s]=Object.assign([],i[s]):typeof i[s]=="object"&&i[s]!==null?i[s]=Object.assign({},i[s]):typeof i[s]>"u"&&delete i[s];return i}}class gr extends ht{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 r=this.rows().indexOf(e),s=e.getElement(),a=0;return new Promise((l,u)=>{if(r>-1){if(typeof i>"u"&&(i=this.table.options.scrollToRowIfVisible),!i&&Xe.elVisible(s)&&(a=Xe.elOffset(s).top-Xe.elOffset(this.elementVertical).top,a>0&&a<this.elementVertical.clientHeight-s.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+(s.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-s.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-s.offsetTop)+s.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+s.offsetHeight;break;case"top":this.elementVertical.scrollTop=s.offsetTop;break}l()}else console.warn("Scroll Error - Row not visible"),u("Scroll Error - Row not visible")})}}class Rk extends gr{constructor(e){super(e)}renderRowCells(e,t){const i=document.createDocumentFragment();e.cells.forEach(r=>{i.appendChild(r.getElement())}),e.element.appendChild(i),t||e.cells.forEach(r=>{r.cellRendered()})}reinitializeColumnWidths(e){e.forEach(function(t){t.reinitializeWidth()})}}class Mk extends gr{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},r=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(s=>{var a={},l;s.visible&&(s.modules.frozen||(l=s.getWidth(),a.leftPos=r,a.rightPos=r+l,a.width=l,this.isFitData&&(a.fitDataCheck=s.modules.vdomHoz?s.modules.vdomHoz.fitDataCheck:!0),r+l>this.vDomScrollPosLeft&&r<this.vDomScrollPosRight?(this.leftCol==-1&&(this.leftCol=this.columns.length,this.vDomPadLeft=r),this.rightCol=this.columns.length):this.leftCol!==-1&&(this.vDomPadRight+=l),this.columns.push(s),s.modules.vdomHoz=a,r+=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(r=>{!r.definition.width&&r.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 r=0;r<t.cells.length;r++){let s=t.cells[r];i.appendChild(s.getElement()),s.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,r)=>{i!==this.columns[r]&&(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 r=e;r<t;r++){let s=this.columns[r];s.modules.vdomHoz.leftPos+=i,s.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(r=>{if(r.type!=="group"){var s=r.getCell(i);r.getElement().insertBefore(s.getElement(),r.getCell(this.columns[this.rightCol]).getElement().nextSibling),s.cellRendered()}}),this.fitDataColActualWidthCheck(i),this.rightCol++,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.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(s=>{if(s.type!=="group"){var a=s.getCell(i);s.getElement().insertBefore(a.getElement(),s.getCell(this.columns[this.leftCol]).getElement()),a.cellRendered()}}),this.leftCol--,this.getVisibleRows().forEach(s=>{s.type!=="group"&&(s.modules.vdomHoz.leftCol=this.leftCol)}),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=i.getWidth();let r=this.fitDataColActualWidthCheck(i);r&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+r,this.vDomPadRight-=r)}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(r=>{if(r.type!=="group"){var s=r.getCell(i);try{r.getElement().removeChild(s.getElement())}catch(a){console.warn("Could not removeColRight",a.message)}}}),this.vDomPadRight+=i.getWidth(),this.rightCol--,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.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(r=>{if(r.type!=="group"){var s=r.getCell(i);try{r.getElement().removeChild(s.getElement())}catch(a){console.warn("Could not removeColLeft",a.message)}}}),this.vDomPadLeft+=i.getWidth(),this.leftCol++,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.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 Tk extends ht{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 Jc(this.table,"column definition",Gc),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:Mk,basic:Rk};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={},r=this.table.options.autoColumns==="full"?e:[e[0]],s=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(r.forEach(a=>{Object.keys(a).forEach((l,u)=>{let c=a[l],d;i[l]?i[l]!==!0&&typeof c<"u"&&(i[l].sorter=this.calculateSorterFromValue(c),i[l]=!0):(d={field:l,title:l,sorter:this.calculateSorterFromValue(c)},t.splice(u,0,d),i[l]=typeof c>"u"?d:!0)})}),s)switch(typeof s){case"function":this.table.options.columns=s.call(this.table,t);break;case"object":Array.isArray(s)?t.forEach(a=>{var l=s.find(u=>u.field===a.field);l&&Object.assign(a,l)}):t.forEach(a=>{s[a.field]&&Object.assign(a,s[a.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 Kt(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,r)=>{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 r=new Kt(e,this),s=r.getElement(),a=i&&this.findColumnIndex(i);if(t&&this.rowHeader&&(!i||i===this.rowHeader)&&(t=!1,i=this.rowHeader,a=0),i&&a>-1){var l=i.getTopColumn(),u=this.columns.indexOf(l),c=l.getElement();t?(this.columns.splice(u,0,r),c.parentNode.insertBefore(s,c)):(this.columns.splice(u+1,0,r),c.parentNode.insertBefore(s,c.nextSibling))}else t?(this.columns.unshift(r),this.headersElement.insertBefore(r.getElement(),this.headersElement.firstChild)):(this.columns.push(r),this.headersElement.appendChild(r.getElement()));return r.columnRendered(),r}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 Kt)return e;if(e instanceof Uc)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return t=[],this.columns.forEach(r=>{t.push(r),t=t.concat(r.getColumns(!0))}),t.find(r=>r.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 r=this.table.options.nestedFieldSeparator?i.split(this.table.options.nestedFieldSeparator)[0]:i;r===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(r=>{t.push(r.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,r,s){var a=e.indexOf(t),l,u=[];a>-1&&(e.splice(a,1),l=e.indexOf(i),l>-1?r&&(l=l+1):l=a,e.splice(l,0,t),s&&(u=this.chain("column-moving-rows",[t,i,r],null,[])||[],u=u.concat(this.table.rowManager.rows),u.forEach(function(c){if(c.cells.length){var d=c.cells.splice(a,1)[0];c.cells.splice(l,0,d)}})))}scrollToColumn(e,t,i){var r=0,s=e.getLeftOffset(),a=0,l=e.getElement();return new Promise((u,c)=>{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":a=-this.element.clientWidth/2;break;case"right":a=l.clientWidth-this.headersElement.clientWidth;break}if(!i&&s>0&&s+l.offsetWidth<this.element.clientWidth)return!1;r=s+a,r=Math.max(Math.min(r,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(r),this.scrollHorizontal(r),u()}else console.warn("Scroll Error - Column not visible"),c("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 r,s,a;i.visible&&(r=i.definition.width||0,s=parseInt(i.minWidth),typeof r=="string"?r.indexOf("%")>-1?a=e/100*parseInt(r):a=parseInt(r):a=r,t+=a>s?a:s)}),t}addColumn(e,t,i){return new Promise((r,s)=>{var a=this._addColumn(e,t,i);this._reIndexColumns(),this.dispatch("column-add",e,t,i),this.layoutMode()!="fitColumns"&&a.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),r(a)})}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){Xe.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 Dk extends gr{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(),r=this.rows();r.forEach((s,a)=>{this.styleRow(s,a),s.initialize(!1,!0),s.type!=="group"&&(t=!1),i.appendChild(s.getElement())}),e.appendChild(i),r.forEach(s=>{s.rendered(),s.heightInitialized||s.calcHeight(!0)}),r.forEach(s=>{s.heightInitialized||s.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=Xe.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=Xe.elOffset(t).top-Xe.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class Ok extends gr{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,r=!1,s=this.table.rowManager.scrollLeft,a=this.rows(),l=this.vDomTop;l<=this.vDomBottom;l++)if(a[l]){var u=t-a[l].getElement().offsetTop;if(r===!1||Math.abs(u)<r)r=u,i=l;else break}a.forEach(c=>{c.deinitializeHeight()}),e&&e(),this.rows().length?this._virtualRenderFill(i===!1?this.rows.length-1:i,!0,r||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(s)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var i=e-this.vDomScrollPosTop,r=e-this.vDomScrollPosBottom,s=this.vDomWindowBuffer*2,a=this.rows();if(this.scrollTop=e,-i>s||r>s){var l=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*a.length)),this.scrollColumns(l)}else t?(i<0&&this._addTopRow(a,-i),r<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(a,-r):this.vDomScrollPosBottom=this.scrollTop)):(r>=0&&this._addBottomRow(a,r),i>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(a,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,r=!1,s=0,a=0,l=this.rows();if(e)s=this.vDomTop,a=this.vDomBottom;else for(var u=this.vDomTop;u<=this.vDomBottom;u++)if(l[u])if(r)if(i-l[u].getElement().offsetTop>=0)a=u;else break;else if(t-l[u].getElement().offsetTop>=0)s=u;else if(r=!0,i-l[u].getElement().offsetTop>=0)a=u;else break;return l.slice(s,a+1)}_virtualRenderFill(e,t,i){var r=this.tableElement,s=this.elementVertical,a=0,l=0,u=0,c=0,d=0,f=0,p=this.rows(),h=p.length,S=0,m,A,b=[],g=0,M=0,v=this.table.rowManager.fixedHeight,R=this.elementVertical.clientHeight,y=this.table.options.rowHeight,x=!0;if(e=e||0,i=i||0,!e)this.clear();else{for(;r.firstChild;)r.removeChild(r.firstChild);c=(h-e+1)*this.vDomRowHeight,c<R&&(e-=Math.ceil((R-c)/this.vDomRowHeight),e<0&&(e=0)),a=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e),e-=a}if(h&&Xe.elVisible(this.elementVertical)){for(this.vDomTop=e,this.vDomBottom=e-1,v||this.table.options.maxHeight?(y&&(M=R/y+this.vDomWindowBuffer/y),M=Math.max(this.vDomWindowMinTotalRows,Math.ceil(M))):M=h;(M==h||l<=R+this.vDomWindowBuffer||g<this.vDomWindowMinTotalRows)&&this.vDomBottom<h-1;){for(b=[],A=document.createDocumentFragment(),f=0;f<M&&this.vDomBottom<h-1;)S=this.vDomBottom+1,m=p[S],this.styleRow(m,S),m.initialize(!1,!0),!m.heightInitialized&&!this.table.options.rowHeight&&m.clearCellHeight(),A.appendChild(m.getElement()),b.push(m),this.vDomBottom++,f++;if(!b.length)break;r.appendChild(A),b.forEach(k=>{k.rendered(),k.heightInitialized||k.calcHeight(!0)}),b.forEach(k=>{k.heightInitialized||k.setCellHeight()}),b.forEach(k=>{u=k.getHeight(),g<a?d+=u:l+=u,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2),g++}),x=this.table.rowManager.adjustTableSize(),R=this.elementVertical.clientHeight,x&&(v||this.table.options.maxHeight)&&(y=l/g,M=Math.max(this.vDomWindowMinTotalRows,Math.ceil(R/y+this.vDomWindowBuffer/y)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+i:this.scrollTop-d,this.vDomBottomPad=this.vDomBottom==h-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-l-d,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((l+d)/g),this.vDomBottomPad=this.vDomRowHeight*(h-this.vDomBottom-1),this.vDomScrollHeight=d+l+this.vDomBottomPad-R),r.style.paddingTop=this.vDomTopPad+"px",r.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+d+i-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-R:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-R),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-R),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,s.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var i=this.tableElement,r=[],s=0,a=this.vDomTop-1,l=0,u=!0;u;)if(this.vDomTop){let c=e[a],d,f;c&&l<this.vDomMaxRenderChain?(d=c.getHeight()||this.vDomRowHeight,f=c.initialized,t>=d?(this.styleRow(c,a),i.insertBefore(c.getElement(),i.firstChild),(!c.initialized||!c.heightInitialized)&&r.push(c),c.initialize(),f||(d=c.getElement().offsetHeight,d>this.vDomWindowBuffer&&(this.vDomWindowBuffer=d*2)),t-=d,s+=d,this.vDomTop--,a--,l++):u=!1):u=!1}else u=!1;for(let c of r)c.clearCellHeight();this._quickNormalizeRowHeight(r),s&&(this.vDomTopPad-=s,this.vDomTopPad<0&&(this.vDomTopPad=a*this.vDomRowHeight),a<1&&(this.vDomTopPad=0),i.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=s)}_removeTopRow(e,t){for(var i=[],r=0,s=0,a=!0;a;){let l=e[this.vDomTop],u;l&&s<this.vDomMaxRenderChain?(u=l.getHeight()||this.vDomRowHeight,t>=u?(this.vDomTop++,t-=u,r+=u,i.push(l),s++):a=!1):a=!1}for(let l of i){let u=l.getElement();u.parentNode&&u.parentNode.removeChild(u)}r&&(this.vDomTopPad+=r,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?r:r+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var i=this.tableElement,r=[],s=0,a=this.vDomBottom+1,l=0,u=!0;u;){let c=e[a],d,f;c&&l<this.vDomMaxRenderChain?(d=c.getHeight()||this.vDomRowHeight,f=c.initialized,t>=d?(this.styleRow(c,a),i.appendChild(c.getElement()),(!c.initialized||!c.heightInitialized)&&r.push(c),c.initialize(),f||(d=c.getElement().offsetHeight,d>this.vDomWindowBuffer&&(this.vDomWindowBuffer=d*2)),t-=d,s+=d,this.vDomBottom++,a++,l++):u=!1):u=!1}for(let c of r)c.clearCellHeight();this._quickNormalizeRowHeight(r),s&&(this.vDomBottomPad-=s,(this.vDomBottomPad<0||a==e.length-1)&&(this.vDomBottomPad=0),i.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=s)}_removeBottomRow(e,t){for(var i=[],r=0,s=0,a=!0;a;){let l=e[this.vDomBottom],u;l&&s<this.vDomMaxRenderChain?(u=l.getHeight()||this.vDomRowHeight,t>=u?(this.vDomBottom--,t-=u,r+=u,i.push(l),s++):a=!1):a=!1}for(let l of i){let u=l.getElement();u.parentNode&&u.parentNode.removeChild(u)}r&&(this.vDomBottomPad+=r,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=r)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class Lk extends ht{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,r=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,r),this.dispatch("scroll-vertical",i,r),this.dispatchExternal("scrollVertical",i,r))})}findRow(e){if(typeof e=="object"){if(e instanceof mt)return e;if(e instanceof cr)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((r,s)=>{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)),r()})}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach((i,r)=>{if(i&&typeof i=="object"){var s=new mt(i,this);this.rows.push(s)}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
|
|
51
51
|
Expecting: array
|
|
52
52
|
Received: `,typeof e,`
|
|
53
|
-
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),r=this.activeRows.indexOf(e);r>-1&&this.activeRows.splice(r,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(s=>{var a=s.indexOf(e);a>-1&&s.splice(a,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,r){var s=this.addRowActual(e,t,i,r);return s}addRows(e,t,i,r){var s=[];return new Promise((a,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((u,c)=>{var d=this.addRow(u,t,i,!0);s.push(d),this.dispatch("row-added",d,u,t,i)}),this.refreshActiveData(r?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),a(s)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,r){var s=e instanceof mt?e:new mt(e||{},this),a=this.findAddRowPos(t),l=-1,u,c;return i||(c=this.chain("row-adding-position",[s,a],null,{index:i,top:a}),i=c.index,a=c.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[s,i,a],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(u=this.activeRows.indexOf(i),this.displayRowIterator(function(d){var f=d.indexOf(i);f>-1&&d.splice(a?f:f+1,0,s)}),u>-1&&this.activeRows.splice(a?u:u+1,0,s),this.rows.splice(a?l:l+1,0,s)):a?(this.displayRowIterator(function(d){d.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(function(d){d.push(s)}),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",s.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),r||this.reRenderInPosition(),s}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(r=>{this.moveRowInArray(r,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,r){var s,a,l,u;if(t!==i&&(s=e.indexOf(t),s>-1&&(e.splice(s,1),a=e.indexOf(i),a>-1?r?e.splice(a+1,0,t):e.splice(a,0,t):e.splice(s,0,t)),e===this.getDisplayRows())){l=s<a?s:a,u=a>s?a:s+1;for(let c=l;c<=u;c++)e[c]&&this.styleRow(e[c],c)}}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),r=!1;return i!==!1&&i<this.displayRowsCount-1&&(r=this.getDisplayRows()[i+1]),r&&(!(r instanceof mt)||r.type!="row")?this.nextDisplayRow(r,t):r}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i&&(r=this.getDisplayRows()[i-1]),t&&r&&(!(r instanceof mt)||r.type!="row")?this.prevDisplayRow(r,t):r}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],r=this.getRows(e);return r.forEach(function(s){s.type=="row"&&i.push(s.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(r){t.push(r.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,r)=>i.priority-r.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,r)=>i.priority-r.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var r=this.table,s="",a=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(a=this.dataPipeline.findIndex(u=>u.handler===e),a>-1)s="dataPipeline",t&&(a==this.dataPipeline.length-1?s="display":a++);else if(a=this.displayPipeline.findIndex(u=>u.handler===e),a>-1)s="displayPipeline",t&&(a==this.displayPipeline.length-1?s="end":a++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else s=e||"all",a=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===s&&a<this.redrawBlockRestoreConfig.index||l.indexOf(s)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:s,index:a});return}else Xe.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,s,a,i)):(this.refreshPipelines(e,s,a,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),r.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,s,a,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,r){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let s=i;s<this.dataPipeline.length;s++){let a=this.dataPipeline[s].handler(this.activeRowsPipeline[s].slice(0));this.activeRowsPipeline[s+1]=a||this.activeRowsPipeline[s].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let s=i;s<this.displayPipeline.length;s++){let a=this.displayPipeline[s].handler((s?this.getDisplayRows(s-1):this.activeRows).slice(0),r);this.setDisplayRows(a||this.getDisplayRows(s-1).slice(0),s)}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:Ok,basic:Dk};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 r=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 s="calc(100% - "+r+"px)";this.element.style.minHeight=t||"calc(100% - "+r+"px)",this.element.style.height=s,this.element.style.maxHeight=s}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-r+"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 Bk extends ht{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 Fk extends ht{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),r={row:["cell"],cell:["row"]};i=i.filter(s=>{var a=r[e];return s!==e&&(!a||a&&!a.includes(s))}),i.forEach(s=>{var a=this.pseudoTrackers[s].target;this.pseudoTrackers[s].target&&(this.dispatch(s+"-mouseleave",t,a),this.pseudoTrackers[s].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let r of e){let s=i+"-"+r;this.subscriptionChange(s,this.subscriptionChanged.bind(this,i,r))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var r=this.listeners[t].components,s=r.indexOf(e),a=!1;i?s===-1&&(r.push(e),a=!0):this.subscribed(e+"-"+t)||s>-1&&(r.splice(s,1),a=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),a&&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,r=this.findTargets(i);r=this.bindComponents(e,r),this.triggerEvents(e,t,r),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(r).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let r of e){let s=r.classList?[...r.classList]:[];if(s.filter(u=>this.abortClasses.includes(u)).length)break;let l=s.filter(u=>i.includes(u));for(let u of l)t[this.componentMap[u]]||(t[this.componentMap[u]]=r)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),r=this.listeners[e],s={},a={},l={};for(let u of i){let c,d=t[u],f=this.previousTargets[u];if(f&&f.target===d)c=f.component;else switch(u){case"row":case"group":(r.components.includes("row")||r.components.includes("cell")||r.components.includes("group"))&&(c=this.table.rowManager.getVisibleRows(!0).find(h=>h.getElement()===d),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[u]=!1));break;case"column":r.components.includes("column")&&(c=this.table.columnManager.findColumn(d));break;case"cell":r.components.includes("cell")&&(s.row instanceof mt?c=s.row.findCell(d):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}c&&(s[u]=c,l[u]={target:d,component:c})}return this.previousTargets=l,Object.keys(t).forEach(u=>{let c=s[u];a[u]=c}),a}triggerEvents(e,t,i){var r=this.listeners[e];for(let s in i)i[s]&&r.components.includes(s)&&this.dispatch(s+"-"+e,t,i[s])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class _k{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 Pk extends ht{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,r,s,a){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,s])){this.loading=!0,s||this.alertLoader(),t=this.chain("data-params",[e,i,s],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var u=this.chain("data-load",[e,t,i,s],!1,Promise.resolve([]));return u.then(c=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(c)&&typeof c=="object"&&(c=this.mapParams(c,this.objectInvert(this.table.options.dataReceiveParams)));var d=this.chain("data-loaded",[c],null,c);l==this.requestOrder?(this.clearAlert(),d!==!1&&(this.dispatchExternal("dataLoaded",d),this.table.rowManager.setData(d,r,typeof a>"u"?!r:a))):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(c=>{console.error("Data Load Error: ",c),this.dispatchExternal("dataLoadError",c),s||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,r,typeof a>"u"?!r:a),Promise.resolve()}mapParams(e,t){var i={};for(let r in e)i[t.hasOwnProperty(r)?t[r]:r]=e[r];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 Nk{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(r=>r===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(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((r,s)=>{let a=r.apply(this.table,e);s||(i=a)}),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 Ik{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((r,s)=>r.priority-s.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(r=>r.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,r){var s=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((a,l)=>{s=a.callback.apply(this,t.concat([s]))}),s):typeof r=="function"?r():r}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((r,s)=>{r.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(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 Hk extends ht{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var r="";return typeof this.options(e)<"u"?(r="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(r=r+", Please use the %c"+t+"%c option instead",this._warnUser(r,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(r,"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 Vk extends ht{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 s of e){var r=this.lookup(s,t,!0);if(r)break}if(r)return r;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var r;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(r=this.lookupKey(e,i),r)return this.props[e]||(this.props[e]={}),this.props[e][t]=r[t]||r,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 zk(n,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function qc(n,e){n.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function jk(n,e){var t=0,i=this.table.rowManager.element.clientWidth,r=0,s=!1;n.forEach((a,l)=>{a.widthFixed||a.reinitializeWidth(),(this.table.options.responsiveLayout?a.modules.responsive.visible:a.visible)&&(s=a),a.visible&&(t+=a.getWidth())}),s?(r=i-t+s.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(s.setWidth(0),this.table.modules.responsiveLayout.update()),r>0?s.setWidth(r):s.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function Wk(n,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,r=0,s=0,a=0,l=[],u=[],c=0,d=0,f=0;function p(S){var m;return typeof S=="string"?S.indexOf("%")>-1?m=t/100*parseInt(S):m=parseInt(S):m=S,m}function h(S,m,C,b){var g=[],M=0,v=0,R=0,y=s,x=0,k=0,A=[];function w(T){return C*(T.column.definition.widthGrow||1)}function D(T){return p(T.width)-C*(T.column.definition.widthShrink||0)}return S.forEach(function(T,L){var N=b?D(T):w(T);T.column.minWidth>=N?g.push(T):T.column.maxWidth&&T.column.maxWidth<N?(T.width=T.column.maxWidth,m-=T.column.maxWidth,y-=b?T.column.definition.widthShrink||1:T.column.definition.widthGrow||1,y&&(C=Math.floor(m/y))):(A.push(T),k+=b?T.column.definition.widthShrink||1:T.column.definition.widthGrow||1)}),g.length?(g.forEach(function(T){M+=b?T.width-T.column.minWidth:T.column.minWidth,T.width=T.column.minWidth}),v=m-M,R=k?Math.floor(v/k):v,x=h(A,v,R,b)):(x=k?m-Math.floor(m/k)*k:m,A.forEach(function(T){T.width=b?D(T):w(T)})),x}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),n.forEach(function(S){var m,C,b;S.visible&&(m=S.definition.width,C=parseInt(S.minWidth),m?(b=p(m),i+=b>C?b:C,S.definition.widthShrink&&(u.push({column:S,width:b>C?b:C}),c+=S.definition.widthShrink)):(l.push({column:S,width:0}),s+=S.definition.widthGrow||1))}),r=t-i,a=Math.floor(r/s),f=h(l,r,a,!1),l.length&&f>0&&(l[l.length-1].width+=f),l.forEach(function(S){r-=S.width}),d=Math.abs(f)+r,d>0&&c&&(f=h(u,d,Math.floor(d/c),!0)),f&&u.length&&(u[u.length-1].width-=f),l.forEach(function(S){S.column.setWidth(S.width)}),u.forEach(function(S){S.column.setWidth(S.width)})}var Uk={fitData:zk,fitDataFill:qc,fitDataTable:qc,fitDataStretch:jk,fitColumns:Wk};class br extends ze{static moduleName="layout";static modes=Uk;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;br.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"),br.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var Gk={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:{}}}};class _a extends ze{static moduleName="localize";static langs=Gk;constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=Xe.deepClone(_a.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,r){for(var s in i)typeof i[s]=="object"?(r[s]||(r[s]={}),t(i[s],r[s])):r[s]=i[s]}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=Xe.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,r=i.split("|"),s=this._getLangElement(r,this.locale);return s||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(r){var s;i&&(s=i[r],typeof s<"u"?i=s: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)})}}class Yk extends ze{static moduleName="comms";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(r=>{this.table!==r&&t.push(r)}),t}send(e,t,i,r){var s=this.getConnections(e);s.forEach(a=>{a.tableComms(this.table.element,t,i,r)}),!s.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,r){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,r);console.warn("Inter-table Comms Error - no such module:",t)}}var Qk=Object.freeze({__proto__:null,CommsModule:Yk,LayoutModule:br,LocalizeModule:_a});class _t{static registry={tables:[],register(e){_t.registry.tables.push(e)},deregister(e){var t=_t.registry.tables.indexOf(e);t>-1&&_t.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],r,s;if(typeof e=="string"){if(r=document.querySelectorAll(e),r.length)for(var a=0;a<r.length;a++)s=_t.registry.matchElement(r[a]),s&&i.push(s)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof _t?(s=_t.registry.matchElement(e),s&&i.push(s)):Array.isArray(e)?e.forEach(function(l){i=i.concat(_t.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return _t.registry.tables.find(function(t){return e instanceof _t?t===e:t.element===e})}};static findTable(e){var t=_t.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}}class at extends _t{static moduleBindings={};static moduleExtensions={};static modulesRegistered=!1;static defaultModules=!1;constructor(){super()}static initializeModuleBinder(e){at.modulesRegistered||(at.modulesRegistered=!0,at._registerModules(Qk,!0),e&&at._registerModules(e))}static _extendModule(e,t,i){if(at.moduleBindings[e]){var r=at.moduleBindings[e][t];if(r)if(typeof i=="object")for(let s in i)r[s]=i[s];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(r=>{r.prototype.moduleCore=!0}),at._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{at._registerModuleBinding(t),at._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?at.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 r=t[i];if(at.moduleBindings[i])for(let s in r)at._extendModule(i,s,r[s]);else{at.moduleExtensions[i]||(at.moduleExtensions[i]={});for(let s in r)at.moduleExtensions[i][s]||(at.moduleExtensions[i][s]={}),Object.assign(at.moduleExtensions[i][s],r[s])}}at._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=at.moduleExtensions[e.moduleName];if(t)for(let i in t)at._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var r in at.moduleBindings){let s=at.moduleBindings[r],a=new s(this);this.modules[r]=a,s.prototype.moduleCore?this.modulesCore.push(a):s.moduleInitOrder?s.moduleInitOrder<0?e.push(a):t.push(a):i.push(a)}e.sort((s,a)=>s.moduleInitOrder>a.moduleInitOrder?1:-1),t.sort((s,a)=>s.moduleInitOrder>a.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}}class Kk extends ht{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())}}class pi extends at{static defaultOptions=xk;static extendModule(){pi.initializeModuleBinder(),pi._extendModule(...arguments)}static registerModule(){pi.initializeModuleBinder(),pi._registerModule(...arguments)}constructor(e,t,i){super(),pi.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 _k(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new Hk(this),this.optionsList=new Jc(this,"table constructor"),this.dependencyRegistry=new Vk(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 Tk(this),this.rowManager=new Lk(this),this.footerManager=new Bk(this),this.dataLoader=new Pk(this),this.alertManager=new Kk(this),this._bindModules(),this.options=this.optionsList.generate(pi.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new Nk(this,this.options,this.options.debugEventsExternal),this.eventBus=new Ik(this.options.debugEventsInternal),this.interactionMonitor=new Fk(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 r=e.attributes;for(var s in r)typeof r[s]=="object"&&i.setAttribute(r[s].name,r[s].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,r;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
|
|
54
|
-
`),r=i[0]=="Error"?i[2]:i[1],r[0]==" "?e=r.trim().split(" ")[1].split(".")[1]:e=r.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,r)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(s=>{var a=this.rowManager.findRow(s[this.options.index]);a?(t++,a.updateData(s).then(()=>{t--,t||i()}).catch(l=>{r("Update Error - Unable to update row",s,l)})):r("Update Error - Unable to find row",s)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(a=>{var l=[];a.forEach(function(u){l.push(u.getComponent())}),r(l)}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(a=>{var l=this.rowManager.findRow(a[this.options.index]);i++,l?l.updateData(a).then(()=>{i--,t.push(l.getComponent()),i||r(t)}):this.rowManager.addRows(a).then(u=>{i--,t.push(u[0].getComponent()),i||r(t)})}):(console.warn("Update Error - No data provided"),s("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 r=this.rowManager.findRow(i,!0);if(r)t.push(r);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,r)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(r)?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(r=>r[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(r=>r[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 r=this.rowManager.findRow(e);return r?this.rowManager.scrollToRow(r,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var r=this.rowManager.findRow(e);this.initGuard(),r?r.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 r=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,r).then(s=>s.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 r=this.columnManager.findColumn(e),s=this.columnManager.findColumn(t);this.initGuard(),r?s?this.columnManager.moveColumn(r,s,i):console.warn("Move Error - No matching column found:",s):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((r,s)=>{var a=this.columnManager.findColumn(e);return a?this.columnManager.scrollToColumn(a,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}}var Sn=pi;class Jk extends Sn{static extendModule(){Sn.initializeModuleBinder(Fa),Sn._extendModule(...arguments)}static registerModule(){Sn.initializeModuleBinder(Fa),Sn._registerModule(...arguments)}constructor(e,t,i){super(e,t,Fa)}}var qk=Jk;const $k={key:0,class:"bi bi-chevron-up"},Zk={key:1,class:"bi bi-chevron-down"},$c=_e({__name:"SubFilterToggleBtn",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=n,r=()=>{t("update:modelValue",!i.modelValue)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"icon",onClick:r},[n.modelValue?(o.openBlock(),o.createElementBlock("i",$k)):(o.openBlock(),o.createElementBlock("i",Zk))]))}},[["__scopeId","data-v-4810f2ed"]]),Zc={gender:{MALE:1,FEMALE:2,MIXED_GENDER:3,NOT_GENDER:4},address_fields:["postal_code","region_code","district_code","locality_code","sub_locality_code","street_code","house","flat"],userRoles:{ADMIN:1,VETERINARIAN:2,SHTP:3,LOCAL_EPIZOOTOLOGIST:4,ORGANIZATION_ADMIN:5,REGIONAL_REPRESENTATIVE:6,AGENCY:7,CENTRAL_WAREHOUSE:8,DISTRICT_REPRESENTATIVE:9,COUNTERPARTY:10,VETERINARIAN_REGISTRATOR:11,LABORATORY:12,INTEGRATOR:13},timeTypes:{HOUR:1,DAY:2,WEEK:3,MONTH:4,YEAR:5},defaultTableOptions:{headerSortClickElement:"icon",printAsHtml:!0,printConfig:{},reactiveData:!0,movableColumns:!0,layout:"fitDataFill",layoutColumnsOnNewData:!0,resizableColumnFit:!0,pagination:!0,paginationMode:"remote",paginationCounter:"rows",paginationSize:10,columns:[]},customPerPageOptions:[{id:10,label:10},{id:40,label:40},{id:100,label:100},{id:150,label:150},{id:200,label:200}],bird_ids:[19,20,21,22,23,24,25],fish_ids:[38,39,40,41,42],animal_kinds:{COW:1,PIG:2,HORSE:3,BEE:4,DOG:5,CAT:6,DEER:7,MARAL:8,CAMEL:9,DONKEY:10,BISON:11,GOST:12,SHEEP:13,MULE:14,LOSHAK:15,ZEBU:16,BUFFALO:17,GRUNTING_OX:18,CHICKEN:19,DUCK:20,GOOSE:21,TURKEY:22,GUINEA_FOWL:23,QUAIL:24,OSTRICH:25,FOX:26,SABLE:27,MINK:28,FERRET:29,RABBIT:30,ARCTIC_FOX:31,RACCOON_DOG:32,NUTRIA:33,ALPACAS:34,PHEASANT:35,PEACOCK:36,RACCOON:37,STURGEON:38,SALMON:39,CARP:40,CATFISH:41,BASS:42},mask_regex:{INTEGER:"^[0-9]*$",DECIMAL:"^[0-9]{1,10}[.]?[0-9]{1}$",HUNDREDTHS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",THOUSANDS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",NO_LIMIT_AFTER_DOT:"^[0-9]{1,10}[.]?[0-9]*$",ABOVE_ONE:"^[1-9]+[0-9]*$",NO_START_SPACE:"^[^ ]+.*$",NO_SPACE:"[^ ]*"}};Object.preventExtensions(Zc);const Xk=()=>({"en-en":{pagination:{first:"First11",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"}},data:{loading:"Loading...",error:"Error loading data."}},"ru-ru":{pagination:{first:"Первая",first_title:"Первая страница",last:"Последняя",last_title:"Последняя страница",prev:"Пред",prev_title:"Предыдущая страница",next:"След",next_title:"Следующая страница",all:"Все",counter:{showing:"Показано",of:"из",rows:"записей",pages:"страниц"}},data:{loading:"Загрузка...",error:"Ошибка загрузки данных."}}}),eS="data:image/gif;base64,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",tS={class:"position-relative",style:{"min-height":"300px"}},iS={key:0,class:"tabulator hide-to-print sticky-bottom bg-white"},nS={class:"row"},rS={key:0,class:"col-auto"},sS={class:"col"},aS={class:"tabulator-footer",ref:"footer"},oS=["id"],lS=["disabled"],uS={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},cS=o.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"ru-ru"},columnHide:{type:String,default:""},columnShow:{type:String,default:""},options:{type:Object,default:()=>({}),required:!0},filters:{type:[Array,Function,Object],default:()=>[]},tableData:{type:Array,default:()=>[]},showAllColumnsIfAllHidden:{type:Boolean,default:!1},parentComponent:{type:Object,default:()=>({})},selectedRowsStorage:{type:Array,default:()=>[]},isVisibleColumnSubFilter:{type:Boolean,default:null},loadMoreText:{type:String,default:"Load More"},noDataText:{type:String,default:"No data found"},paginationLimitText:{type:String,default:"Please use pagination to navigate"}},emits:["selectedRow","unselectedRow","updateSelectedRows","updateUnselectedRows","updateTable","onHideColumn","onShowColumn","onTableRowClick","onCellClick","onTableRowMoved","pageLoaded","savePaginationPage","updateIsVisibleColumnSubFilter"],setup(n,{emit:e}){const t=n,i=e,r=o.inject("selectedTabIndex",o.ref()),s=o.inject("selectAll",o.ref(0)),a=o.ref(""),l=o.ref(null),u=o.ref({data:[],rows:[]}),c=o.ref(new Set(t.selectedRowsStorage)),d=o.ref(!1),f=o.ref(Ai()),p=o.ref(null),h=o.ref(null),S=o.ref(!1),m=o.ref(!1),C=o.computed(()=>t.options?.paginationMode==="remote"),b=o.computed(()=>Zc.customPerPageOptions),g=o.useSlots(),M=H=>!!g[H],v=()=>{a.value=""},R=H=>!H||!H.length?[]:H.map(ne=>ne),y=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");!H||t.isVisibleColumnSubFilter===null||cn(H,$c,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":ne=>i("updateIsVisibleColumnSubFilter",ne)})},x=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");H&&(H.classList.add("position-relative"),y())},k=()=>{if(!h.value)return;const H=p.value?.parentNode?.querySelector(".tabulator-footer"),ne=h.value.last_page;if(!ne||isNaN(+ne)){H&&H.classList.add("d-none");return}ne>1?H&&H.classList.remove("d-none"):H&&H.classList.add("d-none")},A=()=>{m.value||(S.value=!0)},w=()=>{m.value||(S.value=!1)},D=H=>{m.value||(S.value=!1)},T=()=>{m.value||(d.value=!0,i("updateTable",h.value),h.value&&h.value.selectRow(Array.from(c.value)))},L=H=>{m.value||(setTimeout(()=>{m.value||i("savePaginationPage",H)}),C.value&&k(),s.value>0&&i("pageLoaded"),S.value=!1,x())},N=H=>{if(m.value)return;const ne=H.getData(),ie=h.value?.options?.index||"id",te=ne[ie]??null;te!==null&&(c.value.add(te),u.value.data.push(ne),u.value.rows.push(H),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:ne,row:H}))},j=H=>{if(m.value)return;const ne=H.getData(),ie=h.value?.options?.index||"id",te=ne[ie]??null;if(te===null)return;c.value.delete(te);const fe=u.value.data.findIndex(le=>le[ie]===te);fe!==-1&&(u.value.data.splice(fe,1),u.value.rows.splice(fe,1)),i("updateUnselectedRows",{data:ne,row:H}),i("unselectedRow",{data:ne,row:H})},G=function(){m.value||(h.value&&h.value.selectRow(Array.from(c.value)),S.value=!0)},I=(H,ne)=>{if(m.value)return;if(ne?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",H,ne);return}const ie=[],te=H.target;for(let fe=0;fe<te.childNodes.length;fe++){const le=te.childNodes[fe];le.nodeName==="INPUT"&&le.type==="checkbox"&&ie.push("checkbox")}ie.includes("checkbox")||i("onTableRowClick",H,ne._cell.row,t.parentComponent)},V=H=>{m.value||h.value&&i("onTableRowMoved",h.value.getColumnLayout())},J=()=>{m.value||setTimeout(()=>{m.value||(S.value=!0)})},B=()=>{m.value||setTimeout(()=>{m.value||(S.value=!1,W())})},P=()=>{d.value=!1},Q=()=>{if(!p.value||C.value&&!t.options.ajaxResponse||h.value)return;S.value=!0;const H={...t.options,...C.value?{}:{data:t.tableData},langs:Xk(),locale:t.locale,columns:R(t.options.columns),dataLoaderLoading:`<img alt="" src="${eS}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};C.value&&(H.footerElement=`#tabulator-footer${f.value}`),h.value=new qk(p.value,H),h.value.on("dataLoading",A),h.value.on("dataLoaded",w),h.value.on("dataLoadError",D),h.value.on("tableBuilt",T),h.value.on("pageLoaded",L),h.value.on("rowSelected",N),h.value.on("rowDeselected",j),h.value.on("dataProcessed",G),h.value.on("cellClick",I),h.value.on("columnMoved",V),h.value.on("renderStarted",J),h.value.on("renderComplete",B),h.value.on("tableDestroyed",P)},z=H=>{if(m.value||!d.value||!H||!h.value)return;const ne=h.value.options.ajaxParams;ne&&(ne.per_page=Number(H)),h.value.options.paginationSize=Number(H),h.value.setPageSize(H)},$=()=>{if(m.value||!h.value)return;const H=640,ne=h.value.options;if(C.value)ne.ajaxParams?.per_page<H&&(ne.ajaxParams.per_page+=40),h.value.setData();else{const ie=h.value.getPageSize();typeof ie=="number"&&ie<H&&h.value.setPageSize(ie+40)}ne.paginationSize>=H&&(a.value=t.paginationLimitText)},ee=H=>{m.value||H===""||!h.value||(h.value.showColumn(H),i("onShowColumn",h.value.getColumnLayout()))},K=H=>{m.value||H===""||!h.value||(h.value.hideColumn(H),i("onHideColumn",h.value.getColumnLayout()))},ae=H=>{m.value||!h.value||(H.filter(({visible:ne})=>!ne).length===H.length?H.map(({field:ne})=>{o.nextTick(()=>{!m.value&&h.value&&h.value.showColumn(ne)})}):H.map(({field:ne,visible:ie})=>{!m.value&&h.value&&(ie?h.value.showColumn(ne):h.value.hideColumn(ne))}))},W=()=>{o.nextTick(()=>{if(m.value||!h.value||h.value.getPage()!==1||!t.paginationPage||t.paginationPage===h.value.getPage())return!1;h.value.setPage(t.paginationPage)})};return o.onMounted(()=>{Q()}),o.onBeforeUnmount(()=>{m.value=!0,h.value&&(h.value.destroy(),h.value=null)}),o.watch(()=>t.columnShow,H=>{H&&ee(H)}),o.watch(()=>t.columnHide,H=>{H&&K(H)}),o.watch(()=>t.filters,H=>{m.value||!h.value||h.value.setFilter(H)},{deep:!0}),o.watch(()=>t.tableData,H=>{m.value||!h.value||C.value||h.value.setData(H)},{deep:!1}),o.watch(()=>t.options.ajaxResponse,H=>{m.value||(h.value&&H?h.value.options.ajaxResponse=H:C.value&&H&&!h.value&&o.nextTick(()=>{m.value||!p.value||Q()}))}),o.watch(()=>t.options,H=>{m.value||C.value&&H.ajaxResponse&&!h.value&&o.nextTick(()=>{m.value||!p.value||Q()})},{deep:!0}),o.watch(r,()=>{m.value||!h.value||h.value.deselectRow()}),o.watch(s,H=>{m.value||H<=0||!h.value||h.value.selectRow()}),o.watch(()=>t.options.columns,H=>{m.value||!d.value||!h.value||!H||(!H.find(({visible:ne})=>ne)&&t.showAllColumnsIfAllHidden?ae(H):h.value.setColumns(H))},{deep:!0}),o.watch(()=>t.selectedRowsStorage,H=>{m.value||!H||(c.value=new Set(H))},{deep:!0}),o.watch(d,H=>{m.value||!H||(t.showAllColumnsIfAllHidden&&ae(t.options.columns||[]),t.tableData.length>0&&!C.value&&h.value&&h.value.setData(t.tableData))},{deep:!0}),(H,ne)=>(o.openBlock(),o.createElementBlock("div",tS,[o.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),C.value?(o.openBlock(),o.createElementBlock("div",iS,[o.createElementVNode("div",nS,[M("table-footer-left")?(o.openBlock(),o.createElementBlock("div",rS,[o.renderSlot(H.$slots,"table-footer-left")])):o.createCommentVNode("",!0),o.createElementVNode("div",sS,[o.createElementVNode("div",aS,[o.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${f.value}`},[o.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:$,disabled:S.value},[o.createTextVNode(o.toDisplayString(n.loadMoreText)+" ",1),ne[2]||(ne[2]=o.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),S.value?(o.openBlock(),o.createElementBlock("div",uS)):o.createCommentVNode("",!0)],8,lS),o.createVNode(oi,{class:"me-3",style:{"min-width":"150px"},modelValue:l.value,"onUpdate:modelValue":[ne[0]||(ne[0]=ie=>l.value=ie),ne[1]||(ne[1]=ie=>z(ie))],allowClear:!1,options:b.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,oS)],512)])])])):o.createCommentVNode("",!0),o.createVNode(zc,{message:a.value,onClearMessage:v},null,8,["message"])]))}}),dS={class:"r3-table-count__wrapper px-3"},hS={class:"r3-table-count__label pe-2"},fS={class:"r3-table-count__value"},pS=_e(o.defineComponent({__name:"TableCount",props:{label:{default:""},count:{default:0},defaultLabel:{default:"-"},defaultCount:{default:"-"},size:{default:"medium"},showSeparator:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.label||e.defaultLabel),i=o.computed(()=>e.count===null||e.count===void 0||e.count===""?e.defaultCount:e.count);return(r,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3-table-count",[`r3-table-count--${r.size}`]])},[o.createElementVNode("div",dS,[o.createElementVNode("span",hS,o.toDisplayString(t.value)+":",1),o.createElementVNode("span",fS,o.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-87be8b13"]]),mS=_e(o.defineComponent({__name:"ColumnSubFilter",props:{tableRefEl:{default:void 0},columnField:{default:""},mountedComponent:{default:void 0},dataProps:{default:()=>({})},table:{default:void 0},isVisible:{type:Boolean,default:!1}},setup(n){const e=n;function t(){if(!e?.tableRefEl)return!1;const i=`[tabulator-field='${e.columnField}']`,r=e.tableRefEl?.querySelector(i);if(!e.table||!r)return!1;if(e.isVisible&&r&&e.mountedComponent)return cn(r,e.mountedComponent,e.dataProps),!1;cn(r,null,{},!0)}return o.watch(()=>e,()=>{t()},{deep:!0}),o.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),gS=_e(o.defineComponent({__name:"TableAppliedFiltersStorage",props:{tableName:{},filters:{}},emits:["update:filters"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.computed(()=>"default-page"),a=o.toRef(i,"filters");function l(){let p=localStorage.getItem("filters"),h=p?JSON.parse(p):{};h={...hi(h),[s.value]:{[i.tableName]:d(a.value)}};const S=JSON.stringify(h);return localStorage.setItem("filters",S),p=localStorage.getItem("filters"),p?JSON.parse(p):{}}function u(p){return!(!p||!p[s.value]||!p[s.value][i.tableName])}function c(p){const h=JSON.parse(p);return u(h)?(p=localStorage.getItem("filters")||"{}",JSON.parse(p)):l()}function d(p){const h={};for(const[S,m]of Object.entries(p))h[S]=hi(m._value||m);return h}function f(){let p=localStorage.getItem("filters");if(!p)return r("update:filters",{}),!1;let h=c(p);if(!h[s.value]||!h[s.value][i.tableName])return r("update:filters",{}),!1;const S=d(h[s.value][i.tableName]);return r("update:filters",{...S}),!0}return e({getFilters:f,saveFilters:l}),(p,h)=>o.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),bS={class:"row pt-3"},vS={class:"col-12"},yS=["onClick"],wS=_e(o.defineComponent({__name:"TableQuickFilterComponent",props:{filterList:{},defaultSelected:{default:""}},emits:["emitSelected"],setup(n,{emit:e}){const t=e,i=r=>{t("emitSelected",r)};return(r,s)=>(o.openBlock(),o.createElementBlock("div",bS,[o.createElementVNode("div",vS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.filterList,(a,l)=>(o.openBlock(),o.createElementBlock("button",{onClick:u=>i(a.name),class:o.normalizeClass(["btn filter-item",{active:r.defaultSelected===a.name,disabled:a.disabled}]),key:l},o.toDisplayString(a.title),11,yS))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),CS={key:0,class:"col-4 mb-2"},AS={class:"form-check"},ES=["checked","id","onChange"],kS=["for"],SS=["innerHTML"],xS={class:"col-auto"},RS={class:"col-auto ps-0"},MS={class:"col-auto ps-0"},Pa=_e(o.defineComponent({__name:"EditTableColumns",props:{title:{default:"Table Data"},modalVisibility:{type:Boolean,default:!1},columns:{default:()=>[]},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["emitModalVisibility","columnVisibilityChange","apply","selectAll","unselectAll"],setup(n,{emit:e}){const t=n,i=e,r=o.ref([...t.columns]),s=o.ref([...t.columns]);o.watch(()=>t.columns,h=>{JSON.stringify(h)!==JSON.stringify(s.value)&&(r.value=[...h],s.value=[...h],l())},{deep:!0});const a=o.ref(!0);function l(){const S=r.value.filter(m=>m.title).some(m=>!m.visible);a.value=S,o.triggerRef(a)}l();const u=h=>{i("emitModalVisibility",h)},c=(h,S)=>{const m=h.target,C=r.value.findIndex(b=>b.field===S);C!==-1&&(r.value[C].visible=m.checked,l()),i("columnVisibilityChange",h,S)},d=()=>{i("apply",r.value)},f=()=>{const h=r.value.map(S=>({...S,visible:S.title?!0:S.visible}));r.value=h,s.value=[...h],l(),i("selectAll")},p=()=>{const h=r.value.map(S=>({...S,visible:S.title?!1:S.visible}));r.value=h,s.value=[...h],l(),i("unselectAll")};return(h,S)=>(o.openBlock(),o.createBlock(Pc,{title:h.title,"modal-visibility":h.modalVisibility,onEmitModalVisibility:u},{"modal-body":o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(m,C)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:C},[m.title?(o.openBlock(),o.createElementBlock("div",CS,[o.createElementVNode("div",AS,[o.createElementVNode("input",{checked:m.visible,class:"form-check-input",type:"checkbox",id:m.field,ref_for:!0,ref:"editColumns",onChange:b=>c(b,m.field)},null,40,ES),o.createElementVNode("label",{class:"form-check-label",for:m.field},[o.createElementVNode("span",{class:"lh-sm",innerHTML:m.title},null,8,SS)],8,kS)])])):o.createCommentVNode("",!0)],64))),128))]),"modal-footer":o.withCtx(()=>[o.createElementVNode("div",xS,[o.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},o.toDisplayString(h.applyText),1)]),o.createElementVNode("div",RS,[o.createElementVNode("div",MS,[a.value?(o.openBlock(),o.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:f},o.toDisplayString(h.selectAllText),1)):o.createCommentVNode("",!0),a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:"unselect-all",type:"button",class:"btn btn-light",onClick:p},o.toDisplayString(h.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function Na(n,e){const t=o.ref(!1),i=o.ref([...n]);o.watch(()=>n,S=>{i.value=[...S]},{deep:!0});function r(S){t.value=S}function s(S,m){const C=S.target,b=i.value.map(g=>g.field===m?{...g,visible:C.checked}:g);i.value=b,e&&e.value&&(e.value.columns=b)}function a(S){console.log("useTableColumns handleColumnsApply called, received columns:",S),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(S),u()}function l(S){S&&(i.value=[...S],console.log("useTableColumns tableColumns after update:",i.value))}function u(){if(!e||!e.value){console.log("useTableColumns tableOptions not available");return}console.log("useTableColumns updating tableOptions.columns:",i.value),e.value.columns=i.value,console.log("useTableColumns tableOptions.columns after update:",e.value.columns)}function c(){const S=i.value.map(m=>({...m,visible:m.title?!0:m.visible}));i.value=S,e&&e.value&&(e.value.columns=S)}function d(){const S=i.value.map(m=>({...m,visible:m.title?!1:m.visible}));i.value=S,e&&e.value&&(e.value.columns=S)}const f=o.computed(()=>i.value.filter(S=>S.visible));function p(S){i.value=[...S],e&&e.value&&(e.value.columns=S)}function h(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:f,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:a,handleColumnsSelectAll:c,handleColumnsUnselectAll:d,updateColumns:p,resetColumns:h}}const TS=o.defineComponent({__name:"TableColumnsButton",props:{columns:{},tableOptions:{},title:{default:"Table Columns Settings"},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:a,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Na(t.columns,t.tableOptions);o.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,s.value=[...h],i("columns-changed",h),i("apply")}return(h,S)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(Sr,{styles:"light",onSubmit:f,icon:"gear-fill"}),o.createVNode(Pa,{title:h.title,"modal-visibility":o.unref(r),columns:o.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:o.unref(a),onColumnVisibilityChange:o.unref(l),onApply:p,onSelectAll:o.unref(u),onUnselectAll:o.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),DS=o.defineComponent({__name:"TableColumnsModal",props:{columns:{},tableOptions:{},title:{default:"Настройка колонок таблицы"},applyText:{default:"Применить"},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:a,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Na(t.columns,t.tableOptions);o.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,s.value=[...h],i("columns-changed",h),i("apply")}return(h,S)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(Sr,{styles:"light",onSubmit:f,icon:"gear-fill"}),o.createVNode(Pa,{title:h.title,"modal-visibility":o.unref(r),columns:o.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:o.unref(a),onColumnVisibilityChange:o.unref(l),onApply:p,onSelectAll:o.unref(u),onUnselectAll:o.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),OS={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},LS={key:2,class:"selected-count"},BS=_e(o.defineComponent({__name:"ToggleAllTableRowButtons",props:{selectedRows:{default:()=>[]},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"},selectedText:{default:"Выбрано"},showCount:{type:Boolean,default:!0}},emits:["selectAll","unselectAll"],setup(n,{emit:e}){const t=e,i=()=>{t("selectAll")},r=()=>{t("unselectAll")};return(s,a)=>(o.openBlock(),o.createElementBlock("div",OS,[s.selectedRows.length>0?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light me-3",onClick:r},o.toDisplayString(s.unselectAllText),1)):o.createCommentVNode("",!0),s.selectedRows.length===0?(o.openBlock(),o.createElementBlock("button",{key:1,class:"btn btn-primary me-3",onClick:i},o.toDisplayString(s.selectAllText),1)):o.createCommentVNode("",!0),s.showCount?(o.openBlock(),o.createElementBlock("div",LS,o.toDisplayString(s.selectedText)+": "+o.toDisplayString(s.selectedRows.length),1)):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),FS={class:"row pt-3"},_S={class:"col-12"},PS=["onClick"],NS=_e(o.defineComponent({__name:"MultipleQuickFilterComponent",props:{filterList:{},defaultSelected:{default:()=>({})}},emits:["emitSelected"],setup(n,{emit:e}){const t=n,i=e,r=s=>{t.filterList[s].disabled||(t.filterList[s].value=!t.filterList[s].value,i("emitSelected",t.filterList))};return o.watch(()=>t.defaultSelected,s=>{s&&Object.keys(s).length>0&&t.filterList.forEach((a,l)=>{const u=Object.keys(s)[l];u&&s[u]!==void 0&&(a.value=s[u])})},{immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("div",FS,[o.createElementVNode("div",_S,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.filterList,(l,u)=>(o.openBlock(),o.createElementBlock("button",{onClick:c=>r(u),class:o.normalizeClass(["btn filter-item",{active:s.filterList[u].value,disabled:s.filterList[u].disabled}]),key:u},o.toDisplayString(l.title),11,PS))),128))])]))}}),[["__scopeId","data-v-1a1bfba2"]]);var mi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(mi||(mi={}));var yt;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(yt||(yt={}));function IS(n){return vr(n)&&typeof n.from=="function"}function vr(n){return typeof n=="object"&&typeof n.to=="function"}function Xc(n){n.parentElement.removeChild(n)}function Ia(n){return n!=null}function ed(n){n.preventDefault()}function HS(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function VS(n,e){return Math.round(n/e)*e}function zS(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=nd(i);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),e?t.top+s.y-r.clientTop:t.left+s.x-r.clientLeft}function Vt(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function td(n,e,t){t>0&&(gt(n,e),setTimeout(function(){wr(n,e)},t))}function id(n){return Math.max(Math.min(n,100),0)}function yr(n){return Array.isArray(n)?n:[n]}function jS(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function gt(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function wr(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function WS(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function nd(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",i=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,r=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:i,y:r}}function US(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function GS(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function YS(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Ha(n,e){return 100/(e-n)}function Va(n,e,t){return e*100/(n[t+1]-n[t])}function QS(n,e){return Va(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function KS(n,e){return e*(n[1]-n[0])/100+n[0]}function xn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function JS(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=xn(t,n),r=n[i-1],s=n[i],a=e[i-1],l=e[i];return a+QS([r,s],t)/Ha(a,l)}function qS(n,e,t){if(t>=100)return n.slice(-1)[0];var i=xn(t,e),r=n[i-1],s=n[i],a=e[i-1],l=e[i];return KS([r,s],(t-a)*Ha(a,l))}function $S(n,e,t,i){if(i===100)return i;var r=xn(i,n),s=n[r-1],a=n[r];return t?i-s>(a-s)/2?a:s:e[r-1]?n[r-1]+VS(i-n[r-1],e[r-1]):i}var rd=(function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,s=[];for(Object.keys(e).forEach(function(a){s.push([yr(e[a]),a])}),s.sort(function(a,l){return a[0][0]-l[0][0]}),r=0;r<s.length;r++)this.handleEntryPoint(s[r][1],s[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return n.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=Va(this.xVal,e,i);return t},n.prototype.getAbsoluteDistance=function(e,t,i){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var s,a=1,l=t[r],u=0,c=0,d=0,f=0;for(i?s=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):s=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);l>0;)u=this.xPct[r+1+f]-this.xPct[r+f],t[r+f]*a+100-s*100>100?(c=u*s,a=(l-100*s)/t[r+f],s=1):(c=t[r+f]*u/100*a,a=0),i?(d=d-c,this.xPct.length+f>=1&&f--):(d=d+c,this.xPct.length-f>=1&&f++),l=t[r+f]*a;return e+d},n.prototype.toStepping=function(e){return e=JS(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return qS(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=$S(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=xn(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=xn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(jS);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!Vt(i)||!Vt(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=Va([this.xVal[e],this.xVal[e+1]],t,0)/Ha(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=s}},n})(),sd={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},ad={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},gi={tooltips:".__tooltips",aria:".__aria"};function ZS(n,e){if(!Vt(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function XS(n,e){if(!Vt(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function e1(n,e){if(!Vt(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function t1(n,e){if(!Vt(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function i1(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new rd(e,n.snap||!1,n.singleStep)}function n1(n,e){if(e=yr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function r1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function s1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function a1(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function od(n,e){var t=[!1],i;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<n.handles;i++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function o1(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function ld(n,e){if(!Vt(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function l1(n,e){if(!Vt(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function u1(n,e){var t;if(!Vt(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||Vt(e[0])||Vt(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1],r=n.spectrum.xVal[0],s=n.spectrum.xVal[n.spectrum.xVal.length-1];if(i/(s-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function c1(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function d1(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,i=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,s=e.indexOf("snap")>=0,a=e.indexOf("hover")>=0,l=e.indexOf("unconstrained")>=0,u=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(r){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");ld(n,n.start[1]-n.start[0])}if(u&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||s,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:s,hover:a,unconstrained:l,invertConnects:u}}function h1(n,e){if(e!==!1)if(e===!0||vr(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=yr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!vr(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function f1(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function p1(n,e){if(!vr(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function m1(n,e){if(!IS(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function g1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function b1(n,e){n.documentElement=e}function v1(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function y1(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function ud(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:sd,format:sd},t={step:{r:!1,t:ZS},keyboardPageMultiplier:{r:!1,t:XS},keyboardMultiplier:{r:!1,t:e1},keyboardDefaultStep:{r:!1,t:t1},start:{r:!0,t:n1},connect:{r:!0,t:od},direction:{r:!0,t:c1},snap:{r:!1,t:r1},animate:{r:!1,t:s1},animationDuration:{r:!1,t:a1},range:{r:!0,t:i1},orientation:{r:!1,t:o1},margin:{r:!1,t:ld},limit:{r:!1,t:l1},padding:{r:!1,t:u1},behaviour:{r:!0,t:d1},ariaFormat:{r:!1,t:p1},format:{r:!1,t:m1},tooltips:{r:!1,t:h1},keyboardSupport:{r:!0,t:g1},documentElement:{r:!1,t:b1},cssPrefix:{r:!0,t:v1},cssClasses:{r:!0,t:y1},handleAttributes:{r:!1,t:f1}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:ad,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(u){if(!Ia(n[u])&&i[u]===void 0){if(t[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return}t[u].t(e,Ia(n[u])?n[u]:i[u])}),e.pips=n.pips;var r=document.createElement("div"),s=r.style.msTransform!==void 0,a=r.style.transform!==void 0;e.transformRule=a?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function w1(n,e,t){var i=US(),r=YS(),s=r&&GS(),a=n,l,u,c,d,f,p,h=e.spectrum,S=[],m=[],C=[],b=0,g={},M=!1,v=n.ownerDocument,R=e.documentElement||v.documentElement,y=v.body,x=v.dir==="rtl"||e.ort===1?0:100;function k(E,O){var _=v.createElement("div");return O&>(_,O),E.appendChild(_),_}function A(E,O){var _=k(E,e.cssClasses.origin),Y=k(_,e.cssClasses.handle);if(k(Y,e.cssClasses.touchArea),Y.setAttribute("data-handle",String(O)),e.keyboardSupport&&(Y.setAttribute("tabindex","0"),Y.addEventListener("keydown",function(oe){return Pe(oe,O)})),e.handleAttributes!==void 0){var se=e.handleAttributes[O];Object.keys(se).forEach(function(oe){Y.setAttribute(oe,se[oe])})}return Y.setAttribute("role","slider"),Y.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),O===0?gt(Y,e.cssClasses.handleLower):O===e.handles-1&>(Y,e.cssClasses.handleUpper),_.handle=Y,_}function w(E,O){return O?k(E,e.cssClasses.connect):!1}function D(E,O){u=k(O,e.cssClasses.connects),c=[],d=[],d.push(w(u,E[0]));for(var _=0;_<e.handles;_++)c.push(A(O,_)),C[_]=_,d.push(w(u,E[_+1]))}function T(E){gt(E,e.cssClasses.target),e.dir===0?gt(E,e.cssClasses.ltr):gt(E,e.cssClasses.rtl),e.ort===0?gt(E,e.cssClasses.horizontal):gt(E,e.cssClasses.vertical);var O=getComputedStyle(E).direction;return O==="rtl"?gt(E,e.cssClasses.textDirectionRtl):gt(E,e.cssClasses.textDirectionLtr),k(E,e.cssClasses.base)}function L(E,O){return!e.tooltips||!e.tooltips[O]?!1:k(E.firstChild,e.cssClasses.tooltip)}function N(){return a.hasAttribute("disabled")}function j(E){var O=c[E];return O.hasAttribute("disabled")}function G(E){E!=null?(c[E].setAttribute("disabled",""),c[E].handle.removeAttribute("tabindex")):(a.setAttribute("disabled",""),c.forEach(function(O){O.handle.removeAttribute("tabindex")}))}function I(E){E!=null?(c[E].removeAttribute("disabled"),c[E].handle.setAttribute("tabindex","0")):(a.removeAttribute("disabled"),c.forEach(function(O){O.removeAttribute("disabled"),O.handle.setAttribute("tabindex","0")}))}function V(){p&&(q("update"+gi.tooltips),p.forEach(function(E){E&&Xc(E)}),p=null)}function J(){V(),p=c.map(L),Le("update"+gi.tooltips,function(E,O,_){if(!(!p||!e.tooltips)&&p[O]!==!1){var Y=E[O];e.tooltips[O]!==!0&&(Y=e.tooltips[O].to(_[O])),p[O].innerHTML=Y}})}function B(){q("update"+gi.aria),Le("update"+gi.aria,function(E,O,_,Y,se){C.forEach(function(oe){var ce=c[oe],he=de(m,oe,0,!0,!0,!0),pe=de(m,oe,100,!0,!0,!0),be=se[oe],De=String(e.ariaFormat.to(_[oe]));he=h.fromStepping(he).toFixed(1),pe=h.fromStepping(pe).toFixed(1),be=h.fromStepping(be).toFixed(1),ce.children[0].setAttribute("aria-valuemin",he),ce.children[0].setAttribute("aria-valuemax",pe),ce.children[0].setAttribute("aria-valuenow",be),ce.children[0].setAttribute("aria-valuetext",De)})})}function P(E){if(E.mode===mi.Range||E.mode===mi.Steps)return h.xVal;if(E.mode===mi.Count){if(E.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var O=E.values-1,_=100/O,Y=[];O--;)Y[O]=O*_;return Y.push(100),Q(Y,E.stepped)}return E.mode===mi.Positions?Q(E.values,E.stepped):E.mode===mi.Values?E.stepped?E.values.map(function(se){return h.fromStepping(h.getStep(h.toStepping(se)))}):E.values:[]}function Q(E,O){return E.map(function(_){return h.fromStepping(O?h.getStep(_):_)})}function z(E){function O(be,De){return Number((be+De).toFixed(7))}var _=P(E),Y={},se=h.xVal[0],oe=h.xVal[h.xVal.length-1],ce=!1,he=!1,pe=0;return _=HS(_.slice().sort(function(be,De){return be-De})),_[0]!==se&&(_.unshift(se),ce=!0),_[_.length-1]!==oe&&(_.push(oe),he=!0),_.forEach(function(be,De){var je,Fe,$e,et=be,lt=_[De+1],rt,bi,Mi,li,zt,qt,$i,Ti=E.mode===mi.Steps;for(Ti&&(je=h.xNumSteps[De]),je||(je=lt-et),lt===void 0&&(lt=et),je=Math.max(je,1e-7),Fe=et;Fe<=lt;Fe=O(Fe,je)){for(rt=h.toStepping(Fe),bi=rt-pe,zt=bi/(E.density||1),qt=Math.round(zt),$i=bi/qt,$e=1;$e<=qt;$e+=1)Mi=pe+$e*$i,Y[Mi.toFixed(5)]=[h.fromStepping(Mi),0];li=_.indexOf(Fe)>-1?yt.LargeValue:Ti?yt.SmallValue:yt.NoValue,!De&&ce&&Fe!==lt&&(li=0),Fe===lt&&he||(Y[rt.toFixed(5)]=[Fe,li]),pe=rt}}),Y}function $(E,O,_){var Y,se,oe=v.createElement("div"),ce=(Y={},Y[yt.None]="",Y[yt.NoValue]=e.cssClasses.valueNormal,Y[yt.LargeValue]=e.cssClasses.valueLarge,Y[yt.SmallValue]=e.cssClasses.valueSub,Y),he=(se={},se[yt.None]="",se[yt.NoValue]=e.cssClasses.markerNormal,se[yt.LargeValue]=e.cssClasses.markerLarge,se[yt.SmallValue]=e.cssClasses.markerSub,se),pe=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],be=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];gt(oe,e.cssClasses.pips),gt(oe,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function De(Fe,$e){var et=$e===e.cssClasses.value,lt=et?pe:be,rt=et?ce:he;return $e+" "+lt[e.ort]+" "+rt[Fe]}function je(Fe,$e,et){if(et=O?O($e,et):et,et!==yt.None){var lt=k(oe,!1);lt.className=De(et,e.cssClasses.marker),lt.style[e.style]=Fe+"%",et>yt.NoValue&&(lt=k(oe,!1),lt.className=De(et,e.cssClasses.value),lt.setAttribute("data-value",String($e)),lt.style[e.style]=Fe+"%",lt.innerHTML=String(_.to($e)))}}return Object.keys(E).forEach(function(Fe){je(Fe,E[Fe][0],E[Fe][1])}),oe}function ee(){f&&(Xc(f),f=null)}function K(E){ee();var O=z(E),_=E.filter,Y=E.format||{to:function(se){return String(Math.round(se))}};return f=a.appendChild($(O,_,Y)),f}function ae(){var E=l.getBoundingClientRect(),O="offset"+["Width","Height"][e.ort];return e.ort===0?E.width||l[O]:E.height||l[O]}function W(E,O,_,Y){var se=function(ce){var he=H(ce,Y.pageOffset,Y.target||O);if(!he||N()&&!Y.doNotReject||WS(a,e.cssClasses.tap)&&!Y.doNotReject||E===i.start&&he.buttons!==void 0&&he.buttons>1||Y.hover&&he.buttons)return!1;s||he.preventDefault(),he.calcPoint=he.points[e.ort],_(he,Y)},oe=[];return E.split(" ").forEach(function(ce){O.addEventListener(ce,se,s?{passive:!0}:!1),oe.push([ce,se])}),oe}function H(E,O,_){var Y=E.type.indexOf("touch")===0,se=E.type.indexOf("mouse")===0,oe=E.type.indexOf("pointer")===0,ce=0,he=0;if(E.type.indexOf("MSPointer")===0&&(oe=!0),E.type==="mousedown"&&!E.buttons&&!E.touches)return!1;if(Y){var pe=function(je){var Fe=je.target;return Fe===_||_.contains(Fe)||E.composed&&E.composedPath().shift()===_};if(E.type==="touchstart"){var be=Array.prototype.filter.call(E.touches,pe);if(be.length>1)return!1;ce=be[0].pageX,he=be[0].pageY}else{var De=Array.prototype.find.call(E.changedTouches,pe);if(!De)return!1;ce=De.pageX,he=De.pageY}}return O=O||nd(v),(se||oe)&&(ce=E.clientX+O.x,he=E.clientY+O.y),E.pageOffset=O,E.points=[ce,he],E.cursor=se||oe,E}function ne(E){var O=E-zS(l,e.ort),_=O*100/ae();return _=id(_),e.dir?100-_:_}function ie(E){var O=100,_=!1;return c.forEach(function(Y,se){if(!j(se)){var oe=m[se],ce=Math.abs(oe-E),he=ce===100&&O===100,pe=ce<O,be=ce<=O&&E>oe;(pe||be||he)&&(_=se,O=ce)}}),_}function te(E,O){E.type==="mouseout"&&E.target.nodeName==="HTML"&&E.relatedTarget===null&&le(E,O)}function fe(E,O){if(navigator.appVersion.indexOf("MSIE 9")===-1&&E.buttons===0&&O.buttonsProperty!==0)return le(E,O);var _=(e.dir?-1:1)*(E.calcPoint-O.startCalcPoint),Y=_*100/O.baseSize;Ee(_>0,Y,O.locations,O.handleNumbers,O.connect)}function le(E,O){O.handle&&(wr(O.handle,e.cssClasses.active),b-=1),O.listeners.forEach(function(_){R.removeEventListener(_[0],_[1])}),b===0&&(wr(a,e.cssClasses.drag),Re(),E.cursor&&(y.style.cursor="",y.removeEventListener("selectstart",ed))),e.events.smoothSteps&&(O.handleNumbers.forEach(function(_){Ie(_,m[_],!0,!0,!1,!1)}),O.handleNumbers.forEach(function(_){X("update",_)})),O.handleNumbers.forEach(function(_){X("change",_),X("set",_),X("end",_)})}function ve(E,O){if(!O.handleNumbers.some(j)){var _;if(O.handleNumbers.length===1){var Y=c[O.handleNumbers[0]];_=Y.children[0],b+=1,gt(_,e.cssClasses.active)}E.stopPropagation();var se=[],oe=W(i.move,R,fe,{target:E.target,handle:_,connect:O.connect,listeners:se,startCalcPoint:E.calcPoint,baseSize:ae(),pageOffset:E.pageOffset,handleNumbers:O.handleNumbers,buttonsProperty:E.buttons,locations:m.slice()}),ce=W(i.end,R,le,{target:E.target,handle:_,listeners:se,doNotReject:!0,handleNumbers:O.handleNumbers}),he=W("mouseout",R,te,{target:E.target,handle:_,listeners:se,doNotReject:!0,handleNumbers:O.handleNumbers});se.push.apply(se,oe.concat(ce,he)),E.cursor&&(y.style.cursor=getComputedStyle(E.target).cursor,c.length>1&>(a,e.cssClasses.drag),y.addEventListener("selectstart",ed,!1)),O.handleNumbers.forEach(function(pe){X("start",pe)})}}function ye(E){E.stopPropagation();var O=ne(E.calcPoint),_=ie(O);_!==!1&&(e.events.snap||td(a,e.cssClasses.tap,e.animationDuration),Ie(_,O,!0,!0),Re(),X("slide",_,!0),X("update",_,!0),e.events.snap?ve(E,{handleNumbers:[_]}):(X("change",_,!0),X("set",_,!0)))}function ke(E){var O=ne(E.calcPoint),_=h.getStep(O),Y=h.fromStepping(_);Object.keys(g).forEach(function(se){se.split(".")[0]==="hover"&&g[se].forEach(function(oe){oe.call(F,Y)})})}function Pe(E,O){if(N()||j(O))return!1;var _=["Left","Right"],Y=["Down","Up"],se=["PageDown","PageUp"],oe=["Home","End"];e.dir&&!e.ort?_.reverse():e.ort&&!e.dir&&(Y.reverse(),se.reverse());var ce=E.key.replace("Arrow",""),he=ce===se[0],pe=ce===se[1],be=ce===Y[0]||ce===_[0]||he,De=ce===Y[1]||ce===_[1]||pe,je=ce===oe[0],Fe=ce===oe[1];if(!be&&!De&&!je&&!Fe)return!0;E.preventDefault();var $e;if(De||be){var et=be?0:1,lt=He(O),rt=lt[et];if(rt===null)return!1;rt===!1&&(rt=h.getDefaultStep(m[O],be,e.keyboardDefaultStep)),pe||he?rt*=e.keyboardPageMultiplier:rt*=e.keyboardMultiplier,rt=Math.max(rt,1e-7),rt=(be?-1:1)*rt,$e=S[O]+rt}else Fe?$e=e.spectrum.xVal[e.spectrum.xVal.length-1]:$e=e.spectrum.xVal[0];return Ie(O,h.toStepping($e),!0,!0),X("slide",O),X("update",O),X("change",O),X("set",O),!1}function Ne(E){E.fixed||c.forEach(function(O,_){W(i.start,O.children[0],ve,{handleNumbers:[_]})}),E.tap&&W(i.start,l,ye,{}),E.hover&&W(i.move,l,ke,{hover:!0}),E.drag&&d.forEach(function(O,_){if(!(O===!1||_===0||_===d.length-1)){var Y=c[_-1],se=c[_],oe=[O],ce=[Y,se],he=[_-1,_];gt(O,e.cssClasses.draggable),E.fixed&&(oe.push(Y.children[0]),oe.push(se.children[0])),E.dragAll&&(ce=c,he=C),oe.forEach(function(pe){W(i.start,pe,ve,{handles:ce,handleNumbers:he,connect:O})})}})}function Le(E,O){g[E]=g[E]||[],g[E].push(O),E.split(".")[0]==="update"&&c.forEach(function(_,Y){X("update",Y)})}function U(E){return E===gi.aria||E===gi.tooltips}function q(E){var O=E&&E.split(".")[0],_=O?E.substring(O.length):E;Object.keys(g).forEach(function(Y){var se=Y.split(".")[0],oe=Y.substring(se.length);(!O||O===se)&&(!_||_===oe)&&(!U(oe)||_===oe)&&delete g[Y]})}function X(E,O,_){Object.keys(g).forEach(function(Y){var se=Y.split(".")[0];E===se&&g[Y].forEach(function(oe){oe.call(F,S.map(e.format.to),O,S.slice(),_||!1,m.slice(),F)})})}function de(E,O,_,Y,se,oe,ce){var he;return c.length>1&&!e.events.unconstrained&&(Y&&O>0&&(he=h.getAbsoluteDistance(E[O-1],e.margin,!1),_=Math.max(_,he)),se&&O<c.length-1&&(he=h.getAbsoluteDistance(E[O+1],e.margin,!0),_=Math.min(_,he))),c.length>1&&e.limit&&(Y&&O>0&&(he=h.getAbsoluteDistance(E[O-1],e.limit,!1),_=Math.min(_,he)),se&&O<c.length-1&&(he=h.getAbsoluteDistance(E[O+1],e.limit,!0),_=Math.max(_,he))),e.padding&&(O===0&&(he=h.getAbsoluteDistance(0,e.padding[0],!1),_=Math.max(_,he)),O===c.length-1&&(he=h.getAbsoluteDistance(100,e.padding[1],!0),_=Math.min(_,he))),ce||(_=h.getStep(_)),_=id(_),_===E[O]&&!oe?!1:_}function ue(E,O){var _=e.ort;return(_?O:E)+", "+(_?E:O)}function Ee(E,O,_,Y,se){var oe=_.slice(),ce=Y[0],he=e.events.smoothSteps,pe=[!E,E],be=[E,!E];Y=Y.slice(),E&&Y.reverse(),Y.length>1?Y.forEach(function(je,Fe){var $e=de(oe,je,oe[je]+O,pe[Fe],be[Fe],!1,he);$e===!1?O=0:(O=$e-oe[je],oe[je]=$e)}):pe=be=[!0];var De=!1;Y.forEach(function(je,Fe){De=Ie(je,_[je]+O,pe[Fe],be[Fe],!1,he)||De}),De&&(Y.forEach(function(je){X("update",je),X("slide",je)}),se!=null&&X("drag",ce))}function Be(E,O){return e.dir?100-E-O:E}function xe(E,O){m[E]=O,S[E]=h.fromStepping(O);var _=Be(O,0)-x,Y="translate("+ue(_+"%","0")+")";if(c[E].style[e.transformRule]=Y,e.events.invertConnects&&m.length>1){var se=m.every(function(oe,ce,he){return ce===0||oe>=he[ce-1]});if(M!==!se){bt();return}}ot(E),ot(E+1),M&&(ot(E-1),ot(E+2))}function Re(){C.forEach(function(E){var O=m[E]>50?-1:1,_=3+(c.length+O*E);c[E].style.zIndex=String(_)})}function Ie(E,O,_,Y,se,oe){return se||(O=de(m,E,O,_,Y,!1,oe)),O===!1?!1:(xe(E,O),!0)}function ot(E){if(d[E]){var O=m.slice();M&&O.sort(function(he,pe){return he-pe});var _=0,Y=100;E!==0&&(_=O[E-1]),E!==d.length-1&&(Y=O[E]);var se=Y-_,oe="translate("+ue(Be(_,se)+"%","0")+")",ce="scale("+ue(se/100,"1")+")";d[E].style[e.transformRule]=oe+" "+ce}}function Qe(E,O){return E===null||E===!1||E===void 0||(typeof E=="number"&&(E=String(E)),E=e.format.from(E),E!==!1&&(E=h.toStepping(E)),E===!1||isNaN(E))?m[O]:E}function ge(E,O,_){var Y=yr(E),se=m[0]===void 0;O=O===void 0?!0:O,e.animate&&!se&&td(a,e.cssClasses.tap,e.animationDuration),C.forEach(function(he){Ie(he,Qe(Y[he],he),!0,!1,_)});var oe=C.length===1?0:1;if(se&&h.hasNoSize()&&(_=!0,m[0]=0,C.length>1)){var ce=100/(C.length-1);C.forEach(function(he){m[he]=he*ce})}for(;oe<C.length;++oe)C.forEach(function(he){Ie(he,m[he],!0,!0,_)});Re(),C.forEach(function(he){X("update",he),Y[he]!==null&&O&&X("set",he)})}function We(E){ge(e.start,E)}function Me(E,O,_,Y){if(E=Number(E),!(E>=0&&E<C.length))throw new Error("noUiSlider: invalid handle number, got: "+E);Ie(E,Qe(O,E),!0,!0,Y),X("update",E),_&&X("set",E)}function Z(E){if(E===void 0&&(E=!1),E)return S.length===1?S[0]:S.slice(0);var O=S.map(e.format.to);return O.length===1?O[0]:O}function re(){for(q(gi.aria),q(gi.tooltips),Object.keys(e.cssClasses).forEach(function(E){wr(a,e.cssClasses[E])});a.firstChild;)a.removeChild(a.firstChild);delete a.noUiSlider}function He(E){var O=m[E],_=h.getNearbySteps(O),Y=S[E],se=_.thisStep.step,oe=null;if(e.snap)return[Y-_.stepBefore.startValue||null,_.stepAfter.startValue-Y||null];se!==!1&&Y+se>_.stepAfter.startValue&&(se=_.stepAfter.startValue-Y),Y>_.thisStep.startValue?oe=_.thisStep.step:_.stepBefore.step===!1?oe=!1:oe=Y-_.stepBefore.highestStep,O===100?se=null:O===0&&(oe=null);var ce=h.countStepDecimals();return se!==null&&se!==!1&&(se=Number(se.toFixed(ce))),oe!==null&&oe!==!1&&(oe=Number(oe.toFixed(ce))),[oe,se]}function Ue(){return C.map(He)}function Oe(E,O){var _=Z(),Y=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];Y.forEach(function(oe){E[oe]!==void 0&&(t[oe]=E[oe])});var se=ud(t);Y.forEach(function(oe){E[oe]!==void 0&&(e[oe]=se[oe])}),h=se.spectrum,e.margin=se.margin,e.limit=se.limit,e.padding=se.padding,e.pips?K(e.pips):ee(),e.tooltips?J():V(),m=[],ge(Ia(E.start)?E.start:_,O),E.connect&&Se()}function Se(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var E=0;E<=e.handles;E++)d[E]=w(u,e.connect[E]),ot(E);Ne({drag:e.events.drag,fixed:!0})}function bt(){M=!M,od(e,e.connect.map(function(E){return!E})),Se()}function nt(){l=T(a),D(e.connect,l),Ne(e.events),ge(e.start),e.pips&&K(e.pips),e.tooltips&&J(),B()}nt();var F={destroy:re,steps:Ue,on:Le,off:q,get:Z,set:ge,setHandle:Me,reset:We,disable:G,enable:I,__moveHandles:function(E,O,_){Ee(E,O,m,_)},options:t,updateOptions:Oe,target:a,removePips:ee,removeTooltips:V,getPositions:function(){return m.slice()},getTooltips:function(){return p},getOrigins:function(){return c},pips:K};return F}function C1(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=ud(e),i=w1(n,t,e);return n.noUiSlider=i,i}const A1={__spectrum:rd,cssClasses:ad,create:C1},E1={class:"slider-container"},k1={class:"slider-wrapper",style:{position:"relative"}},S1=["id"],x1=["value"],R1=["value"],M1=_e(o.defineComponent({__name:"Slider",props:{minCount:{default:0},maxCount:{default:100},minValue:{default:0},maxValue:{default:100},step:{default:1},tooltips:{type:Boolean,default:!0},connect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sliderId:{default:"slider-range"}},emits:["updateMinValue","updateMaxValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(null),a=o.ref(null),l=o.ref(null);let u=null;const c=o.ref(i.minValue),d=o.ref(i.maxValue),f=()=>{if(!s.value)return;u&&u.destroy();const m=Array(i.maxCount-i.minCount+1).fill(0).map((b,g)=>i.minCount+g),C={to:b=>{const g=Math.round(b);return m[g]||m[0]},from:b=>{const g=Number(b);return m.indexOf(g)}};try{u=A1.create(s.value,{start:[c.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:C,range:{min:0,max:m.length-1}}),u.on("change",b=>{const g=Number(b[0]),M=Number(b[1]);c.value!==g&&(c.value=g,r("updateMinValue",g)),d.value!==M&&(d.value=M,r("updateMaxValue",M)),r("change",[g,M])}),u.on("update",b=>{const g=Number(b[0]),M=Number(b[1]);c.value=g,d.value=M})}catch(b){console.error("Error creating slider:",b)}},p=()=>{o.nextTick(()=>{f()})},h=(m,C)=>{if(u)try{u.set([m,C])}catch(b){console.error("Error updating slider values:",b)}},S=m=>{u&&(m?u.disable():u.enable())};return o.watch(()=>[i.minValue,i.maxValue],([m,C])=>{(m!==c.value||C!==d.value)&&(c.value=m,d.value=C,h(m,C))},{immediate:!1}),o.watch(()=>i.disabled,m=>{S(m)}),o.watch(()=>[i.minCount,i.maxCount],()=>{p()}),o.onMounted(()=>{p()}),o.onUnmounted(()=>{u&&(u.destroy(),u=null)}),e({updateValues:h,getValues:()=>u?.get(),reset:()=>{u&&u.reset()},destroy:()=>{u&&(u.destroy(),u=null)}}),(m,C)=>(o.openBlock(),o.createElementBlock("div",E1,[o.createElementVNode("div",k1,[o.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:m.sliderId},null,8,S1)]),o.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:a,value:m.minValue},null,8,x1),o.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:m.maxValue},null,8,R1)]))}}),[["__scopeId","data-v-892dca90"]]),T1=["title"],D1=_e(o.defineComponent({__name:"QuestionIcon",props:{title:{default:""},size:{default:"md"},color:{default:"#999999"},iconClass:{default:""},tooltipPosition:{default:"top"},clickToShow:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(),i=o.ref(!1),r=o.computed(()=>({color:e.color})),s=o.computed(()=>{switch(e.size){case"sm":return"question-icon--sm";case"lg":return"question-icon--lg";default:return"question-icon--md"}}),a=o.computed(()=>`question-tooltip--${e.tooltipPosition}`),l=()=>{e.clickToShow&&e.title&&(i.value=!i.value)},u=c=>{t.value&&!t.value.contains(c.target)&&(i.value=!1)};return o.onMounted(()=>{e.clickToShow&&document.addEventListener("click",u)}),o.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",u)}),(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"question-icon-wrapper",ref_key:"wrapperRef",ref:t},[o.createElementVNode("i",{class:o.normalizeClass(["bi bi-question-circle-fill question-icon",[c.iconClass,s.value]]),title:c.title,style:o.normalizeStyle(r.value),onClick:l},null,14,T1),i.value&&c.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["question-tooltip",a.value])},[o.createTextVNode(o.toDisplayString(c.title)+" ",1),d[0]||(d[0]=o.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),O1={class:"container-fluid rounded overflow-hidden bg-light"},L1={class:"row w-100"},B1={class:"text-secondary"},F1={class:"d-flex py-3 px-2 onlyPrint"},_1={class:"row w-100"},P1={class:"text-secondary"},N1={class:"row"},I1=_e(o.defineComponent({__name:"FilterValuesPanel",props:{filterValues:{default:null},filterTitles:{}},emits:["showFilter"],setup(n,{emit:e}){const t=n,i=o.ref(!1),r=o.ref([]);return o.computed(()=>t.filterValues?Object.entries(t.filterValues).filter(([s,a])=>a).map(([s,a])=>({name:t.filterTitles[s]||s,value:String(a),key:s})):[]),o.watch(()=>t.filterValues,s=>{if(!s){r.value=[];return}r.value=Object.entries(s).filter(([a,l])=>l).map(([a,l])=>({name:t.filterTitles[a]||a,value:String(l),key:a}))},{deep:!0,immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("div",O1,[o.createElementVNode("div",{style:o.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[o.createElementVNode("div",L1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:l.key},[o.createElementVNode("div",B1,o.toDisplayString(l.name)+":",1),o.createElementVNode("div",null,[o.createElementVNode("strong",null,o.toDisplayString(l.value),1)])],2))),128))]),o.createElementVNode("div",null,[o.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-right rounded",onClick:a[0]||(a[0]=l=>s.$emit("showFilter"))},[...a[2]||(a[2]=[o.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),o.createElementVNode("div",F1,[o.createElementVNode("div",_1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:l.key},[o.createElementVNode("div",P1,o.toDisplayString(l.name)+":",1),o.createElementVNode("div",null,[o.createElementVNode("strong",null,o.toDisplayString(l.value),1)])],2))),128))])]),o.createElementVNode("div",N1,[o.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:a[1]||(a[1]=l=>i.value=!i.value)},[o.createElementVNode("i",{class:o.normalizeClass({"bi lh-normal":!0,"bi-chevron-down":!i.value,"bi-chevron-up":i.value})},null,2)])])]))}}),[["__scopeId","data-v-9dc91069"]]),cd=(n={})=>{n.hasOwnProperty("KEY")||(n.KEY="tables");const{KEY:e}=n;function t(a,l){const u=localStorage.getItem(e);let c=JSON.parse(u);return c={...c,[a]:l},localStorage.setItem(e,JSON.stringify(c)),!0}function i(a){return a?(localStorage.setItem(e,JSON.stringify(a)),!0):!1}function r(a){const l=localStorage.getItem(e),u=JSON.parse(l);return u?.hasOwnProperty(a)&&delete u[a],i(u),!0}function s(a){const l=localStorage.getItem(e);return(JSON.parse(l)||{})[a]||null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}},H1=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:a=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const u=o.ref({}),c=o.ref(0),d=o.ref(""),f=o.ref(""),p=o.ref({}),h=o.ref(!1),S=o.ref(!1),m=o.ref(!1),C=o.ref(s()),b=o.ref(!1),{setItemStorage:g,removeItemStorage:M,getItemStorage:v}=cd();async function R(){C.value=s(),p.value={}}function y(K){if(!n)return!1;g(n,K)}const x=o.readonly({...a()});function k(K,ae){p.value[K]=ae}const A=o.computed(()=>Object.values(p.value).some(Boolean));function w(){c.value+=1}async function D(K){if(K.options){if(K.options.ajaxURL=r.value.ajaxURL,!r.value.columns){K.replaceData(r.value.ajaxURL);return}K.options.columns=r.value.columns,K.setColumns(r.value.columns),await T(K),K.replaceData(r.value.ajaxURL)}}async function T(K){const ae=typeof K.hideColumn=="function",W=typeof K.showColumn=="function";if(!ae||!W){w();return}for(const H of r.value.columns)H.visible===!1?K.hideColumn(H.field):K.showColumn(H.field)}function L(K){if(!n)return!1;g(n,j(K))}async function N(K){const ae=r.value?.paginationMode==="remote";if(!(ae&&(!K||!K.replaceData))&&!(b.value||S.value)){S.value=!0;try{if(await V(),b.value||(await o.nextTick(),b.value))return;if(!ae){w();return}await D(K),h.value=!1}finally{S.value=!1}}}function j(K){return K.map(W=>{let H=JSON.parse(JSON.stringify(W));return W.visible===!1&&(delete H.width,delete H.minWidth),H})}function G(K){if(!n)return!1;g(n,j(K))}function I(){const K={};for(const[ae,W]of Object.entries({...C.value}))!W||W?.length<1||Array.isArray(W)&&(W[0]===null||W[0]===void 0||W[0]==="")||(K[ae]=W);return K}async function V(){if(b.value)return;const K=e(),ae=await t();if(b.value)return;const W=Q();r.value={...r.value,ajaxURL:K,ajaxResponse:ae,columns:W,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const J=o.computed(()=>{let K=[];return r.value.columns.map(ae=>{ae.title&&K.push(ae.visible)}),K.includes(!1)});async function B(K,ae){K.target.checked==!1?(d.value=ae,f.value=""):(f.value=ae,d.value="")}async function P(){M(n),r.value.columns=Q()}function Q(){const K=v(n);return K||i({selectedQuickFilter:l?.value})}async function z(){M(n),r.value.columns.map(K=>K.visible=!1),G(r.value.columns)}function $(K){r.value.columns=K,n&&g(n,K)}function ee(){r.value.columns=r.value.columns}return o.onBeforeUnmount(()=>{b.value=!0}),o.provide("setFilterParamsStrings",k),o.provide("selectedFilterTitles",x),o.provide("tableFilters",C),o.provide("filterModalVisibility",h),o.provide("resetFilters",R),o.provide("applyFilters",N),o.provide("editTableColumnsModalVisibility",m),o.provide("tableOptions",r),o.provide("editTableColumnVisibility",B),o.provide("isTableCoumnsHidden",J),o.provide("unselectAllTableColumnCheckboxes",z),o.provide("selectAllTableColumnCheckboxes",P),o.provide("handleColumnsChanged",$),o.provide("handleColumnsApply",ee),o.provide("table",u),{selectAllTableColumnCheckboxes:P,unselectAllTableColumnCheckboxes:z,isTableCoumnsHidden:J,editTableColumnVisibility:B,fetchData:V,onHideColumn:G,getFilterData:I,applyFilters:N,reRenderTable:w,resetFilters:R,onTableRowMoved:y,onShowColumn:L,table:u,tableKey:c,columnHide:d,columnShow:f,selectedFilterTitles:x,setFilterParamsStrings:k,filterParamsStrings:p,isSelectedFiltersVisible:A,filterModalVisibility:h,editTableColumnsModalVisibility:m,tableFilters:C,tableOptions:r,handleColumnsChanged:$,handleColumnsApply:ee}};function dd(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function hd(n){return n.filter(e=>e.visible===!0)}function fd(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Cr(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function za(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Rn(n){if(!Array.isArray(n))return console.warn("validateColumns: columns must be an array"),!1;for(const e of n){if(!e.field||typeof e.field!="string")return console.warn("validateColumns: column.field must be a non-empty string",e),!1;if(typeof e.visible!="boolean")return console.warn("validateColumns: column.visible must be a boolean",e),!1}return!0}function pd(n){return n.some(e=>e.title&&!e.visible)}function md(n,e){return n.find(t=>t.field===e)}function Ar(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const V1=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:md,getVisibleColumns:hd,hasHiddenColumns:pd,hideAllColumns:za,prepareColumnsToSave:dd,resetColumnsToDefault:Cr,toggleColumnVisibility:fd,updateColumn:Ar,validateColumns:Rn},Symbol.toStringTag,{value:"Module"}));function gd(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:a,validateOnChange:l=!0}=n;Rn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const u=o.ref(!1),c=o.ref([...e]),d=o.ref(!1);if(t&&typeof window<"u")try{const I=localStorage.getItem(t);if(I){const V=JSON.parse(I);Rn(V)&&(c.value=V)}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}const f=o.computed(()=>hd(c.value)),p=o.computed(()=>pd(c.value)),h=o.computed(()=>c.value.length),S=o.computed(()=>f.value.length);function m(I){if(!(!t||typeof window>"u"||!r))try{const V=dd(I);localStorage.setItem(t,JSON.stringify(V))}catch(V){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",V)}}function C(){if(!t||typeof window>"u")return null;try{const I=localStorage.getItem(t);if(I){const V=JSON.parse(I);if(Rn(V))return V}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}return null}function b(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(I){console.warn("useTableColumnsEnhanced: failed to clear localStorage",I)}}function g(I){if(l&&!Rn(I)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}c.value=[...I],m(I),s?.(I)}function M(I,V){const J=I.target,B=Ar(c.value,V,{visible:J.checked});g(B)}function v(I){u.value=I}function R(I){const V=I||c.value;g(V),u.value=!1,a?.(V)}function y(){const I=Cr(c.value);g(I)}function x(){const I=za(c.value);g(I)}function k(I){const V=fd(c.value,I);g(V)}function A(I){const V=Ar(c.value,I,{visible:!0});g(V)}function w(I){const V=Ar(c.value,I,{visible:!1});g(V)}function D(){const I=Cr(e);g(I)}function T(){const I=Cr(c.value);g(I)}function L(){const I=za(c.value);g(I)}function N(I){return md(c.value,I)}function j(I){return N(I)?.visible??!1}function G(){i?.value&&(i.value.columns=c.value)}return o.watch(c,()=>{G()},{deep:!0}),o.watch(()=>e,I=>{d.value||(c.value=[...I],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,G()),{columnsModalVisibility:u,tableColumns:c,visibleColumns:f,hasHidden:p,columnsCount:h,visibleCount:S,isInitialized:d,handleColumnsModalVisibility:v,handleColumnVisibilityChange:M,handleColumnsApply:R,handleColumnsSelectAll:y,handleColumnsUnselectAll:x,updateColumns:g,toggleColumn:k,showColumn:A,hideColumn:w,resetToDefault:D,showAll:T,hideAll:L,getColumn:N,isColumnVisible:j,saveToLocalStorage:m,loadFromLocalStorage:C,clearLocalStorage:b,syncWithTableOptions:G}}function z1(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:a}=n,l=gd({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:h=>{s?.(h),r?.applyFilters&&r.applyFilters()},onApply:h=>{a?.(h),r?.applyFilters&&r.applyFilters()}});function u(h){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",h),l.updateColumns(h)}function c(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const h=r.onShowColumn;r.onShowColumn=S=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",S),l.updateColumns(S),h?.(S)}}if(r.onHideColumn){const h=r.onHideColumn;r.onHideColumn=S=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",S),l.updateColumns(S),h?.(S)}}}}function f(){i?.value&&(i.value.columns=l.tableColumns.value)}function p(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return o.watch(()=>t(),h=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",h),l.updateColumns(h)},{deep:!0}),d(),{...l,handleColumnsChanged:u,handleColumnsApply:c,syncWithTableOptions:f,syncWithTable:p,setupTableDefaultIntegration:d}}function j1(n){const{tableColumns:e,tableOptions:t,tableDefault:i,onApply:r}=n;function s(l){console.log("createColumnHandlers handleColumnsChanged called, received columns:",l),e.value=l,t.value.columns=l,i?.tableOptions&&(i.tableOptions.columns=l)}function a(){console.log("createColumnHandlers handleColumnsApply called"),console.log("createColumnHandlers current tableColumns:",e.value),t.value.columns=e.value,i?.tableOptions&&(i.tableOptions.columns=e.value),r?.()}return{handleColumnsChanged:s,handleColumnsApply:a}}const W1=(n={})=>{const{navigate:e=m=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=m=>m,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,a=o.ref([]);function l(m){e(m)}function u(m,C){if(!Array.isArray(m))return[];const b=JSON.parse(JSON.stringify(m));return b.length>C&&b.splice(0,b.length-C),b}function c(){const m=i(),C={path:m.path,name:m.name},b=a.value||[],g=b[b.length-1];if(JSON.stringify(g)===JSON.stringify(C))return!1;b.push(C),a.value=u(b,r),localStorage.setItem(s,JSON.stringify(a.value))}function d(){const m=JSON.parse(localStorage.getItem(s)||"[]");m?.length||c(),a.value=m}const f=o.computed(()=>a.value.map((m,C)=>({text:t(`routes.${m.name}`),href:m.path,isActive:C===a.value.length-1})));function p(){c()}function h(){a.value=[],localStorage.removeItem(s)}function S(m){const C=a.value||[];C.push(m),a.value=u(C,r),localStorage.setItem(s,JSON.stringify(a.value))}return o.onMounted(()=>{d()}),{goTo:l,crumbs:f,breadcrumbs:a,updateBreadcrumbs:p,clearBreadcrumbs:h,addBreadcrumb:S}};Ce.AddButton=ja,Ce.AddressForm=Uy,Ce.AgeFromAgeTo=rw,Ce.BooleanCheckbox=Tc,Ce.Breadcrumbs=lA,Ce.Card=iC,Ce.CardInfo=bA,Ce.Checkbox=qg,Ce.ClearFormButton=Td,Ce.CollapseButton=kd,Ce.CollapsedSidebarLink=Hc,Ce.ColumnSubFilter=mS,Ce.ConfirmationModal=Lw,Ce.CustomInput=er,Ce.DefaultAccordion=$A,Ce.DefaultButton=Sr,Ce.DefaultDropDown=ka,Ce.DefaultModal=_c,Ce.Divider=Sa,Ce.EditTableColumns=Pa,Ce.EditTableColumnsModalComponent=Pc,Ce.ErrorMessageComponent=GA,Ce.ExportButton=Sd,Ce.ExportComponent=bh,Ce.FilterValuesPanel=I1,Ce.Flatpickr=ky,Ce.Footer=rC,Ce.FormError=Ei,Ce.Header=wC,Ce.HeaderSearchForm=My,Ce.Icon=kr,Ce.KindCheckboxesAccordion=uE,Ce.Logo=Nc,Ce.MainComponent=eA,Ce.MultiCheckbox=ay,Ce.MultiInput=dy,Ce.MultipleQuickFilterComponent=NS,Ce.PageCard=NA,Ce.PageTitle=Xw,Ce.PasswordInput=Yg,Ce.PrintButton=xd,Ce.QuestionIcon=D1,Ce.Sidebar=Vc,Ce.SidebarLink=Ic,Ce.Slider=M1,Ce.Spinner=Er,Ce.SubFilterToggleBtn=$c,Ce.Table=cS,Ce.TableAppliedFiltersStorage=gS,Ce.TableColumnsButton=TS,Ce.TableColumnsModal=DS,Ce.TableCount=pS,Ce.TableFilterModalComponent=Vw,Ce.TableQuickFilterComponent=wS,Ce.Toast=zc,Ce.ToggleAllTableRowButtons=BS,Ce.ToggleButtons=Ld,Ce.VSelect=oi,Ce.createColumnHandlers=j1,Ce.helpers=Vg,Ce.tableColumnsUtils=V1,Ce.useBreadcrumbs=W1,Ce.useTableColumns=Na,Ce.useTableColumnsEnhanced=gd,Ce.useTableColumnsIntegration=z1,Ce.useTableDefault=H1,Ce.useTableStorage=cd,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})}));
|
|
53
|
+
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),r=this.activeRows.indexOf(e);r>-1&&this.activeRows.splice(r,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(s=>{var a=s.indexOf(e);a>-1&&s.splice(a,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,r){var s=this.addRowActual(e,t,i,r);return s}addRows(e,t,i,r){var s=[];return new Promise((a,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((u,c)=>{var d=this.addRow(u,t,i,!0);s.push(d),this.dispatch("row-added",d,u,t,i)}),this.refreshActiveData(r?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),a(s)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,r){var s=e instanceof mt?e:new mt(e||{},this),a=this.findAddRowPos(t),l=-1,u,c;return i||(c=this.chain("row-adding-position",[s,a],null,{index:i,top:a}),i=c.index,a=c.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[s,i,a],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(u=this.activeRows.indexOf(i),this.displayRowIterator(function(d){var f=d.indexOf(i);f>-1&&d.splice(a?f:f+1,0,s)}),u>-1&&this.activeRows.splice(a?u:u+1,0,s),this.rows.splice(a?l:l+1,0,s)):a?(this.displayRowIterator(function(d){d.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(function(d){d.push(s)}),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",s.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),r||this.reRenderInPosition(),s}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(r=>{this.moveRowInArray(r,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,r){var s,a,l,u;if(t!==i&&(s=e.indexOf(t),s>-1&&(e.splice(s,1),a=e.indexOf(i),a>-1?r?e.splice(a+1,0,t):e.splice(a,0,t):e.splice(s,0,t)),e===this.getDisplayRows())){l=s<a?s:a,u=a>s?a:s+1;for(let c=l;c<=u;c++)e[c]&&this.styleRow(e[c],c)}}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),r=!1;return i!==!1&&i<this.displayRowsCount-1&&(r=this.getDisplayRows()[i+1]),r&&(!(r instanceof mt)||r.type!="row")?this.nextDisplayRow(r,t):r}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i&&(r=this.getDisplayRows()[i-1]),t&&r&&(!(r instanceof mt)||r.type!="row")?this.prevDisplayRow(r,t):r}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],r=this.getRows(e);return r.forEach(function(s){s.type=="row"&&i.push(s.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(r){t.push(r.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,r)=>i.priority-r.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,r)=>i.priority-r.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var r=this.table,s="",a=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(a=this.dataPipeline.findIndex(u=>u.handler===e),a>-1)s="dataPipeline",t&&(a==this.dataPipeline.length-1?s="display":a++);else if(a=this.displayPipeline.findIndex(u=>u.handler===e),a>-1)s="displayPipeline",t&&(a==this.displayPipeline.length-1?s="end":a++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else s=e||"all",a=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===s&&a<this.redrawBlockRestoreConfig.index||l.indexOf(s)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:s,index:a});return}else Xe.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,s,a,i)):(this.refreshPipelines(e,s,a,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),r.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,s,a,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,r){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let s=i;s<this.dataPipeline.length;s++){let a=this.dataPipeline[s].handler(this.activeRowsPipeline[s].slice(0));this.activeRowsPipeline[s+1]=a||this.activeRowsPipeline[s].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let s=i;s<this.displayPipeline.length;s++){let a=this.displayPipeline[s].handler((s?this.getDisplayRows(s-1):this.activeRows).slice(0),r);this.setDisplayRows(a||this.getDisplayRows(s-1).slice(0),s)}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:Ok,basic:Dk};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 r=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 s="calc(100% - "+r+"px)";this.element.style.minHeight=t||"calc(100% - "+r+"px)",this.element.style.height=s,this.element.style.maxHeight=s}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-r+"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 Bk extends ht{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 Fk extends ht{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),r={row:["cell"],cell:["row"]};i=i.filter(s=>{var a=r[e];return s!==e&&(!a||a&&!a.includes(s))}),i.forEach(s=>{var a=this.pseudoTrackers[s].target;this.pseudoTrackers[s].target&&(this.dispatch(s+"-mouseleave",t,a),this.pseudoTrackers[s].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let r of e){let s=i+"-"+r;this.subscriptionChange(s,this.subscriptionChanged.bind(this,i,r))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var r=this.listeners[t].components,s=r.indexOf(e),a=!1;i?s===-1&&(r.push(e),a=!0):this.subscribed(e+"-"+t)||s>-1&&(r.splice(s,1),a=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),a&&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,r=this.findTargets(i);r=this.bindComponents(e,r),this.triggerEvents(e,t,r),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(r).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let r of e){let s=r.classList?[...r.classList]:[];if(s.filter(u=>this.abortClasses.includes(u)).length)break;let l=s.filter(u=>i.includes(u));for(let u of l)t[this.componentMap[u]]||(t[this.componentMap[u]]=r)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),r=this.listeners[e],s={},a={},l={};for(let u of i){let c,d=t[u],f=this.previousTargets[u];if(f&&f.target===d)c=f.component;else switch(u){case"row":case"group":(r.components.includes("row")||r.components.includes("cell")||r.components.includes("group"))&&(c=this.table.rowManager.getVisibleRows(!0).find(h=>h.getElement()===d),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[u]=!1));break;case"column":r.components.includes("column")&&(c=this.table.columnManager.findColumn(d));break;case"cell":r.components.includes("cell")&&(s.row instanceof mt?c=s.row.findCell(d):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}c&&(s[u]=c,l[u]={target:d,component:c})}return this.previousTargets=l,Object.keys(t).forEach(u=>{let c=s[u];a[u]=c}),a}triggerEvents(e,t,i){var r=this.listeners[e];for(let s in i)i[s]&&r.components.includes(s)&&this.dispatch(s+"-"+e,t,i[s])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class _k{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 Pk extends ht{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,r,s,a){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,s])){this.loading=!0,s||this.alertLoader(),t=this.chain("data-params",[e,i,s],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var u=this.chain("data-load",[e,t,i,s],!1,Promise.resolve([]));return u.then(c=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(c)&&typeof c=="object"&&(c=this.mapParams(c,this.objectInvert(this.table.options.dataReceiveParams)));var d=this.chain("data-loaded",[c],null,c);l==this.requestOrder?(this.clearAlert(),d!==!1&&(this.dispatchExternal("dataLoaded",d),this.table.rowManager.setData(d,r,typeof a>"u"?!r:a))):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(c=>{console.error("Data Load Error: ",c),this.dispatchExternal("dataLoadError",c),s||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,r,typeof a>"u"?!r:a),Promise.resolve()}mapParams(e,t){var i={};for(let r in e)i[t.hasOwnProperty(r)?t[r]:r]=e[r];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 Nk{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(r=>r===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(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((r,s)=>{let a=r.apply(this.table,e);s||(i=a)}),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 Ik{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((r,s)=>r.priority-s.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(r=>r.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,r){var s=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((a,l)=>{s=a.callback.apply(this,t.concat([s]))}),s):typeof r=="function"?r():r}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((r,s)=>{r.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(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 Hk extends ht{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var r="";return typeof this.options(e)<"u"?(r="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(r=r+", Please use the %c"+t+"%c option instead",this._warnUser(r,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(r,"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 Vk extends ht{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 s of e){var r=this.lookup(s,t,!0);if(r)break}if(r)return r;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var r;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(r=this.lookupKey(e,i),r)return this.props[e]||(this.props[e]={}),this.props[e][t]=r[t]||r,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 zk(n,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function qc(n,e){n.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function jk(n,e){var t=0,i=this.table.rowManager.element.clientWidth,r=0,s=!1;n.forEach((a,l)=>{a.widthFixed||a.reinitializeWidth(),(this.table.options.responsiveLayout?a.modules.responsive.visible:a.visible)&&(s=a),a.visible&&(t+=a.getWidth())}),s?(r=i-t+s.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(s.setWidth(0),this.table.modules.responsiveLayout.update()),r>0?s.setWidth(r):s.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function Wk(n,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,r=0,s=0,a=0,l=[],u=[],c=0,d=0,f=0;function p(S){var m;return typeof S=="string"?S.indexOf("%")>-1?m=t/100*parseInt(S):m=parseInt(S):m=S,m}function h(S,m,A,b){var g=[],M=0,v=0,R=0,y=s,x=0,k=0,C=[];function w(T){return A*(T.column.definition.widthGrow||1)}function D(T){return p(T.width)-A*(T.column.definition.widthShrink||0)}return S.forEach(function(T,L){var N=b?D(T):w(T);T.column.minWidth>=N?g.push(T):T.column.maxWidth&&T.column.maxWidth<N?(T.width=T.column.maxWidth,m-=T.column.maxWidth,y-=b?T.column.definition.widthShrink||1:T.column.definition.widthGrow||1,y&&(A=Math.floor(m/y))):(C.push(T),k+=b?T.column.definition.widthShrink||1:T.column.definition.widthGrow||1)}),g.length?(g.forEach(function(T){M+=b?T.width-T.column.minWidth:T.column.minWidth,T.width=T.column.minWidth}),v=m-M,R=k?Math.floor(v/k):v,x=h(C,v,R,b)):(x=k?m-Math.floor(m/k)*k:m,C.forEach(function(T){T.width=b?D(T):w(T)})),x}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),n.forEach(function(S){var m,A,b;S.visible&&(m=S.definition.width,A=parseInt(S.minWidth),m?(b=p(m),i+=b>A?b:A,S.definition.widthShrink&&(u.push({column:S,width:b>A?b:A}),c+=S.definition.widthShrink)):(l.push({column:S,width:0}),s+=S.definition.widthGrow||1))}),r=t-i,a=Math.floor(r/s),f=h(l,r,a,!1),l.length&&f>0&&(l[l.length-1].width+=f),l.forEach(function(S){r-=S.width}),d=Math.abs(f)+r,d>0&&c&&(f=h(u,d,Math.floor(d/c),!0)),f&&u.length&&(u[u.length-1].width-=f),l.forEach(function(S){S.column.setWidth(S.width)}),u.forEach(function(S){S.column.setWidth(S.width)})}var Uk={fitData:zk,fitDataFill:qc,fitDataTable:qc,fitDataStretch:jk,fitColumns:Wk};class br extends ze{static moduleName="layout";static modes=Uk;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;br.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"),br.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var Gk={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:{}}}};class _a extends ze{static moduleName="localize";static langs=Gk;constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=Xe.deepClone(_a.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,r){for(var s in i)typeof i[s]=="object"?(r[s]||(r[s]={}),t(i[s],r[s])):r[s]=i[s]}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=Xe.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,r=i.split("|"),s=this._getLangElement(r,this.locale);return s||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(r){var s;i&&(s=i[r],typeof s<"u"?i=s: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)})}}class Yk extends ze{static moduleName="comms";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(r=>{this.table!==r&&t.push(r)}),t}send(e,t,i,r){var s=this.getConnections(e);s.forEach(a=>{a.tableComms(this.table.element,t,i,r)}),!s.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,r){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,r);console.warn("Inter-table Comms Error - no such module:",t)}}var Qk=Object.freeze({__proto__:null,CommsModule:Yk,LayoutModule:br,LocalizeModule:_a});class _t{static registry={tables:[],register(e){_t.registry.tables.push(e)},deregister(e){var t=_t.registry.tables.indexOf(e);t>-1&&_t.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],r,s;if(typeof e=="string"){if(r=document.querySelectorAll(e),r.length)for(var a=0;a<r.length;a++)s=_t.registry.matchElement(r[a]),s&&i.push(s)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof _t?(s=_t.registry.matchElement(e),s&&i.push(s)):Array.isArray(e)?e.forEach(function(l){i=i.concat(_t.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return _t.registry.tables.find(function(t){return e instanceof _t?t===e:t.element===e})}};static findTable(e){var t=_t.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}}class at extends _t{static moduleBindings={};static moduleExtensions={};static modulesRegistered=!1;static defaultModules=!1;constructor(){super()}static initializeModuleBinder(e){at.modulesRegistered||(at.modulesRegistered=!0,at._registerModules(Qk,!0),e&&at._registerModules(e))}static _extendModule(e,t,i){if(at.moduleBindings[e]){var r=at.moduleBindings[e][t];if(r)if(typeof i=="object")for(let s in i)r[s]=i[s];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(r=>{r.prototype.moduleCore=!0}),at._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{at._registerModuleBinding(t),at._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?at.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 r=t[i];if(at.moduleBindings[i])for(let s in r)at._extendModule(i,s,r[s]);else{at.moduleExtensions[i]||(at.moduleExtensions[i]={});for(let s in r)at.moduleExtensions[i][s]||(at.moduleExtensions[i][s]={}),Object.assign(at.moduleExtensions[i][s],r[s])}}at._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=at.moduleExtensions[e.moduleName];if(t)for(let i in t)at._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var r in at.moduleBindings){let s=at.moduleBindings[r],a=new s(this);this.modules[r]=a,s.prototype.moduleCore?this.modulesCore.push(a):s.moduleInitOrder?s.moduleInitOrder<0?e.push(a):t.push(a):i.push(a)}e.sort((s,a)=>s.moduleInitOrder>a.moduleInitOrder?1:-1),t.sort((s,a)=>s.moduleInitOrder>a.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}}class Kk extends ht{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())}}class pi extends at{static defaultOptions=xk;static extendModule(){pi.initializeModuleBinder(),pi._extendModule(...arguments)}static registerModule(){pi.initializeModuleBinder(),pi._registerModule(...arguments)}constructor(e,t,i){super(),pi.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 _k(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new Hk(this),this.optionsList=new Jc(this,"table constructor"),this.dependencyRegistry=new Vk(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 Tk(this),this.rowManager=new Lk(this),this.footerManager=new Bk(this),this.dataLoader=new Pk(this),this.alertManager=new Kk(this),this._bindModules(),this.options=this.optionsList.generate(pi.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new Nk(this,this.options,this.options.debugEventsExternal),this.eventBus=new Ik(this.options.debugEventsInternal),this.interactionMonitor=new Fk(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 r=e.attributes;for(var s in r)typeof r[s]=="object"&&i.setAttribute(r[s].name,r[s].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,r;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
|
|
54
|
+
`),r=i[0]=="Error"?i[2]:i[1],r[0]==" "?e=r.trim().split(" ")[1].split(".")[1]:e=r.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,r)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(s=>{var a=this.rowManager.findRow(s[this.options.index]);a?(t++,a.updateData(s).then(()=>{t--,t||i()}).catch(l=>{r("Update Error - Unable to update row",s,l)})):r("Update Error - Unable to find row",s)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(a=>{var l=[];a.forEach(function(u){l.push(u.getComponent())}),r(l)}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(a=>{var l=this.rowManager.findRow(a[this.options.index]);i++,l?l.updateData(a).then(()=>{i--,t.push(l.getComponent()),i||r(t)}):this.rowManager.addRows(a).then(u=>{i--,t.push(u[0].getComponent()),i||r(t)})}):(console.warn("Update Error - No data provided"),s("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 r=this.rowManager.findRow(i,!0);if(r)t.push(r);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,r)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(r)?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(r=>r[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(r=>r[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 r=this.rowManager.findRow(e);return r?this.rowManager.scrollToRow(r,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var r=this.rowManager.findRow(e);this.initGuard(),r?r.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 r=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,r).then(s=>s.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 r=this.columnManager.findColumn(e),s=this.columnManager.findColumn(t);this.initGuard(),r?s?this.columnManager.moveColumn(r,s,i):console.warn("Move Error - No matching column found:",s):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((r,s)=>{var a=this.columnManager.findColumn(e);return a?this.columnManager.scrollToColumn(a,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}}var Sn=pi;class Jk extends Sn{static extendModule(){Sn.initializeModuleBinder(Fa),Sn._extendModule(...arguments)}static registerModule(){Sn.initializeModuleBinder(Fa),Sn._registerModule(...arguments)}constructor(e,t,i){super(e,t,Fa)}}var qk=Jk;const $k={key:0,class:"bi bi-chevron-up"},Zk={key:1,class:"bi bi-chevron-down"},$c=_e({__name:"SubFilterToggleBtn",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=n,r=()=>{t("update:modelValue",!i.modelValue)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"icon",onClick:r},[n.modelValue?(o.openBlock(),o.createElementBlock("i",$k)):(o.openBlock(),o.createElementBlock("i",Zk))]))}},[["__scopeId","data-v-4810f2ed"]]),Zc={gender:{MALE:1,FEMALE:2,MIXED_GENDER:3,NOT_GENDER:4},address_fields:["postal_code","region_code","district_code","locality_code","sub_locality_code","street_code","house","flat"],userRoles:{ADMIN:1,VETERINARIAN:2,SHTP:3,LOCAL_EPIZOOTOLOGIST:4,ORGANIZATION_ADMIN:5,REGIONAL_REPRESENTATIVE:6,AGENCY:7,CENTRAL_WAREHOUSE:8,DISTRICT_REPRESENTATIVE:9,COUNTERPARTY:10,VETERINARIAN_REGISTRATOR:11,LABORATORY:12,INTEGRATOR:13},timeTypes:{HOUR:1,DAY:2,WEEK:3,MONTH:4,YEAR:5},defaultTableOptions:{headerSortClickElement:"icon",printAsHtml:!0,printConfig:{},reactiveData:!0,movableColumns:!0,layout:"fitDataFill",layoutColumnsOnNewData:!0,resizableColumnFit:!0,pagination:!0,paginationMode:"remote",paginationCounter:"rows",paginationSize:10,columns:[]},customPerPageOptions:[{id:10,label:10},{id:40,label:40},{id:100,label:100},{id:150,label:150},{id:200,label:200}],bird_ids:[19,20,21,22,23,24,25],fish_ids:[38,39,40,41,42],animal_kinds:{COW:1,PIG:2,HORSE:3,BEE:4,DOG:5,CAT:6,DEER:7,MARAL:8,CAMEL:9,DONKEY:10,BISON:11,GOST:12,SHEEP:13,MULE:14,LOSHAK:15,ZEBU:16,BUFFALO:17,GRUNTING_OX:18,CHICKEN:19,DUCK:20,GOOSE:21,TURKEY:22,GUINEA_FOWL:23,QUAIL:24,OSTRICH:25,FOX:26,SABLE:27,MINK:28,FERRET:29,RABBIT:30,ARCTIC_FOX:31,RACCOON_DOG:32,NUTRIA:33,ALPACAS:34,PHEASANT:35,PEACOCK:36,RACCOON:37,STURGEON:38,SALMON:39,CARP:40,CATFISH:41,BASS:42},mask_regex:{INTEGER:"^[0-9]*$",DECIMAL:"^[0-9]{1,10}[.]?[0-9]{1}$",HUNDREDTHS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",THOUSANDS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",NO_LIMIT_AFTER_DOT:"^[0-9]{1,10}[.]?[0-9]*$",ABOVE_ONE:"^[1-9]+[0-9]*$",NO_START_SPACE:"^[^ ]+.*$",NO_SPACE:"[^ ]*"}};Object.preventExtensions(Zc);const Xk=()=>({"en-en":{pagination:{first:"First11",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"}},data:{loading:"Loading...",error:"Error loading data."}},"ru-ru":{pagination:{first:"Первая",first_title:"Первая страница",last:"Последняя",last_title:"Последняя страница",prev:"Пред",prev_title:"Предыдущая страница",next:"След",next_title:"Следующая страница",all:"Все",counter:{showing:"Показано",of:"из",rows:"записей",pages:"страниц"}},data:{loading:"Загрузка...",error:"Ошибка загрузки данных."}}}),eS="data:image/gif;base64,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",tS={class:"position-relative",style:{"min-height":"300px"}},iS={class:"placeholder-glow"},nS={class:"tabulator hide-to-print sticky-bottom bg-white"},rS={class:"row"},sS={key:0,class:"col-auto"},aS={class:"col"},oS={class:"tabulator-footer",ref:"footer"},lS=["id"],uS=["disabled"],cS={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},dS=o.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"ru-ru"},columnHide:{type:String,default:""},columnShow:{type:String,default:""},options:{type:Object,default:()=>({}),required:!0},filters:{type:[Array,Function,Object],default:()=>[]},tableData:{type:Array,default:()=>[]},showAllColumnsIfAllHidden:{type:Boolean,default:!1},parentComponent:{type:Object,default:()=>({})},selectedRowsStorage:{type:Array,default:()=>[]},isVisibleColumnSubFilter:{type:Boolean,default:null},loadMoreText:{type:String,default:"Load More"},noDataText:{type:String,default:"No data found"},paginationLimitText:{type:String,default:"Please use pagination to navigate"}},emits:["selectedRow","unselectedRow","updateSelectedRows","updateUnselectedRows","updateTable","onHideColumn","onShowColumn","onTableRowClick","onCellClick","onTableRowMoved","pageLoaded","savePaginationPage","updateIsVisibleColumnSubFilter"],setup(n,{emit:e}){const t=n,i=e,r=o.inject("selectedTabIndex",o.ref()),s=o.inject("selectAll",o.ref(0)),a=o.ref(""),l=o.ref(null),u=o.ref({data:[],rows:[]}),c=o.ref(new Set(t.selectedRowsStorage)),d=o.ref(!1),f=o.ref(Ai()),p=o.ref(null),h=o.ref(null),S=o.ref(!1),m=o.ref(!1),A=o.computed(()=>t.options?.paginationMode==="remote"),b=o.computed(()=>Zc.customPerPageOptions),g=o.useSlots(),M=H=>!!g[H],v=()=>{a.value=""},R=H=>!H||!H.length?[]:H.map(ne=>ne),y=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");!H||t.isVisibleColumnSubFilter===null||cn(H,$c,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":ne=>i("updateIsVisibleColumnSubFilter",ne)})},x=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");H&&(H.classList.add("position-relative"),y())},k=()=>{if(!h.value)return;const H=p.value?.parentNode?.querySelector(".tabulator-footer"),ne=h.value.last_page;if(!ne||isNaN(+ne)){H&&H.classList.add("d-none");return}ne>1?H&&H.classList.remove("d-none"):H&&H.classList.add("d-none")},C=()=>{m.value||(S.value=!0)},w=()=>{m.value},D=H=>{S.value=!1,m.value},T=()=>{m.value||(d.value=!0,i("updateTable",h.value),h.value&&h.value.selectRow(Array.from(c.value)))},L=H=>{m.value||(setTimeout(()=>{m.value||i("savePaginationPage",H)}),A.value&&k(),s.value>0&&i("pageLoaded"),x())},N=H=>{if(m.value)return;const ne=H.getData(),ie=h.value?.options?.index||"id",te=ne[ie]??null;te!==null&&(c.value.add(te),u.value.data.push(ne),u.value.rows.push(H),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:ne,row:H}))},j=H=>{if(m.value)return;const ne=H.getData(),ie=h.value?.options?.index||"id",te=ne[ie]??null;if(te===null)return;c.value.delete(te);const fe=u.value.data.findIndex(le=>le[ie]===te);fe!==-1&&(u.value.data.splice(fe,1),u.value.rows.splice(fe,1)),i("updateUnselectedRows",{data:ne,row:H}),i("unselectedRow",{data:ne,row:H})},G=function(){m.value||(h.value&&h.value.selectRow(Array.from(c.value)),S.value=!1)},I=(H,ne)=>{if(m.value)return;if(ne?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",H,ne);return}const ie=[],te=H.target;for(let fe=0;fe<te.childNodes.length;fe++){const le=te.childNodes[fe];le.nodeName==="INPUT"&&le.type==="checkbox"&&ie.push("checkbox")}ie.includes("checkbox")||i("onTableRowClick",H,ne._cell.row,t.parentComponent)},V=H=>{m.value||h.value&&i("onTableRowMoved",h.value.getColumnLayout())},J=()=>{m.value||setTimeout(()=>{m.value})},B=()=>{m.value||setTimeout(()=>{m.value||W()})},P=()=>{d.value=!1},Q=()=>{if(!p.value||A.value&&!t.options.ajaxResponse||h.value)return;S.value=!0;const H={...t.options,...A.value?{}:{data:t.tableData},langs:Xk(),locale:t.locale,columns:R(t.options.columns),dataLoaderLoading:`<img alt="" src="${eS}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};A.value&&(H.footerElement=`#tabulator-footer${f.value}`),h.value=new qk(p.value,H),h.value.on("dataLoading",C),h.value.on("dataLoaded",w),h.value.on("dataLoadError",D),h.value.on("tableBuilt",T),h.value.on("pageLoaded",L),h.value.on("rowSelected",N),h.value.on("rowDeselected",j),h.value.on("dataProcessed",G),h.value.on("cellClick",I),h.value.on("columnMoved",V),h.value.on("renderStarted",J),h.value.on("renderComplete",B),h.value.on("tableDestroyed",P)},z=H=>{if(m.value||!d.value||!H||!h.value)return;const ne=h.value.options.ajaxParams;ne&&(ne.per_page=Number(H)),h.value.options.paginationSize=Number(H),h.value.setPageSize(H)},$=()=>{if(m.value||!h.value)return;const H=640,ne=h.value.options;if(A.value)ne.ajaxParams?.per_page<H&&(ne.ajaxParams.per_page+=40),h.value.setData();else{const ie=h.value.getPageSize();typeof ie=="number"&&ie<H&&h.value.setPageSize(ie+40)}ne.paginationSize>=H&&(a.value=t.paginationLimitText)},ee=H=>{m.value||H===""||!h.value||(h.value.showColumn(H),i("onShowColumn",h.value.getColumnLayout()))},K=H=>{m.value||H===""||!h.value||(h.value.hideColumn(H),i("onHideColumn",h.value.getColumnLayout()))},ae=H=>{m.value||!h.value||(H.filter(({visible:ne})=>!ne).length===H.length?H.map(({field:ne})=>{o.nextTick(()=>{!m.value&&h.value&&h.value.showColumn(ne)})}):H.map(({field:ne,visible:ie})=>{!m.value&&h.value&&(ie?h.value.showColumn(ne):h.value.hideColumn(ne))}))},W=()=>{o.nextTick(()=>{if(m.value||!h.value||h.value.getPage()!==1||!t.paginationPage||t.paginationPage===h.value.getPage())return!1;h.value.setPage(t.paginationPage)})};return o.onMounted(()=>{Q()}),o.onBeforeUnmount(()=>{m.value=!0,h.value&&(h.value.destroy(),h.value=null)}),o.watch(()=>t.columnShow,H=>{H&&ee(H)}),o.watch(()=>t.columnHide,H=>{H&&K(H)}),o.watch(()=>t.filters,H=>{m.value||!h.value||h.value.setFilter(H)},{deep:!0}),o.watch(()=>t.tableData,H=>{m.value||!h.value||A.value||h.value.setData(H)},{deep:!1}),o.watch(()=>t.options.ajaxResponse,H=>{m.value||(h.value&&H?h.value.options.ajaxResponse=H:A.value&&H&&!h.value&&o.nextTick(()=>{m.value||!p.value||Q()}))}),o.watch(()=>t.options,H=>{m.value||A.value&&H.ajaxResponse&&!h.value&&o.nextTick(()=>{m.value||!p.value||Q()})},{deep:!0}),o.watch(r,()=>{m.value||!h.value||h.value.deselectRow()}),o.watch(s,H=>{m.value||H<=0||!h.value||h.value.selectRow()}),o.watch(()=>t.options.columns,H=>{m.value||!d.value||!h.value||!H||(!H.find(({visible:ne})=>ne)&&t.showAllColumnsIfAllHidden?ae(H):h.value.setColumns(H))},{deep:!0}),o.watch(()=>t.selectedRowsStorage,H=>{m.value||!H||(c.value=new Set(H))},{deep:!0}),o.watch(d,H=>{m.value||!H||(t.showAllColumnsIfAllHidden&&ae(t.options.columns||[]),t.tableData.length>0&&!A.value&&h.value&&h.value.setData(t.tableData))},{deep:!0}),(H,ne)=>(o.openBlock(),o.createElementBlock("div",tS,[o.withDirectives(o.createElementVNode("p",iS,[...ne[2]||(ne[2]=[o.createStaticVNode('<span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span>',10)])],512),[[o.vShow,S.value]]),o.withDirectives(o.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),[[o.vShow,!S.value]]),o.withDirectives(o.createElementVNode("div",nS,[o.createElementVNode("div",rS,[M("table-footer-left")?(o.openBlock(),o.createElementBlock("div",sS,[o.renderSlot(H.$slots,"table-footer-left")])):o.createCommentVNode("",!0),o.createElementVNode("div",aS,[o.createElementVNode("div",oS,[o.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${f.value}`},[o.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:$,disabled:S.value},[o.createTextVNode(o.toDisplayString(n.loadMoreText)+" ",1),ne[3]||(ne[3]=o.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),S.value?(o.openBlock(),o.createElementBlock("div",cS)):o.createCommentVNode("",!0)],8,uS),o.createVNode(oi,{class:"me-3",style:{"min-width":"150px"},modelValue:l.value,"onUpdate:modelValue":[ne[0]||(ne[0]=ie=>l.value=ie),ne[1]||(ne[1]=ie=>z(ie))],allowClear:!1,options:b.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,lS)],512)])])],512),[[o.vShow,A.value&&!S.value]]),o.createVNode(zc,{message:a.value,onClearMessage:v},null,8,["message"])]))}}),hS={class:"r3-table-count__wrapper px-3"},fS={class:"r3-table-count__label pe-2"},pS={class:"r3-table-count__value"},mS=_e(o.defineComponent({__name:"TableCount",props:{label:{default:""},count:{default:0},defaultLabel:{default:"-"},defaultCount:{default:"-"},size:{default:"medium"},showSeparator:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.label||e.defaultLabel),i=o.computed(()=>e.count===null||e.count===void 0||e.count===""?e.defaultCount:e.count);return(r,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3-table-count",[`r3-table-count--${r.size}`]])},[o.createElementVNode("div",hS,[o.createElementVNode("span",fS,o.toDisplayString(t.value)+":",1),o.createElementVNode("span",pS,o.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-87be8b13"]]),gS=_e(o.defineComponent({__name:"ColumnSubFilter",props:{tableRefEl:{default:void 0},columnField:{default:""},mountedComponent:{default:void 0},dataProps:{default:()=>({})},table:{default:void 0},isVisible:{type:Boolean,default:!1}},setup(n){const e=n;function t(){if(!e?.tableRefEl)return!1;const i=`[tabulator-field='${e.columnField}']`,r=e.tableRefEl?.querySelector(i);if(!e.table||!r)return!1;if(e.isVisible&&r&&e.mountedComponent)return cn(r,e.mountedComponent,e.dataProps),!1;cn(r,null,{},!0)}return o.watch(()=>e,()=>{t()},{deep:!0}),o.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),bS=_e(o.defineComponent({__name:"TableAppliedFiltersStorage",props:{tableName:{},filters:{}},emits:["update:filters"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.computed(()=>"default-page"),a=o.toRef(i,"filters");function l(){let p=localStorage.getItem("filters"),h=p?JSON.parse(p):{};h={...hi(h),[s.value]:{[i.tableName]:d(a.value)}};const S=JSON.stringify(h);return localStorage.setItem("filters",S),p=localStorage.getItem("filters"),p?JSON.parse(p):{}}function u(p){return!(!p||!p[s.value]||!p[s.value][i.tableName])}function c(p){const h=JSON.parse(p);return u(h)?(p=localStorage.getItem("filters")||"{}",JSON.parse(p)):l()}function d(p){const h={};for(const[S,m]of Object.entries(p))h[S]=hi(m._value||m);return h}function f(){let p=localStorage.getItem("filters");if(!p)return r("update:filters",{}),!1;let h=c(p);if(!h[s.value]||!h[s.value][i.tableName])return r("update:filters",{}),!1;const S=d(h[s.value][i.tableName]);return r("update:filters",{...S}),!0}return e({getFilters:f,saveFilters:l}),(p,h)=>o.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),vS={class:"row pt-3"},yS={class:"col-12"},wS=["onClick"],CS=_e(o.defineComponent({__name:"TableQuickFilterComponent",props:{filterList:{},defaultSelected:{default:""}},emits:["emitSelected"],setup(n,{emit:e}){const t=e,i=r=>{t("emitSelected",r)};return(r,s)=>(o.openBlock(),o.createElementBlock("div",vS,[o.createElementVNode("div",yS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.filterList,(a,l)=>(o.openBlock(),o.createElementBlock("button",{onClick:u=>i(a.name),class:o.normalizeClass(["btn filter-item",{active:r.defaultSelected===a.name,disabled:a.disabled}]),key:l},o.toDisplayString(a.title),11,wS))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),AS={key:0,class:"col-4 mb-2"},ES={class:"form-check"},kS=["checked","id","onChange"],SS=["for"],xS=["innerHTML"],RS={class:"col-auto"},MS={class:"col-auto ps-0"},TS={class:"col-auto ps-0"},Pa=_e(o.defineComponent({__name:"EditTableColumns",props:{title:{default:"Table Data"},modalVisibility:{type:Boolean,default:!1},columns:{default:()=>[]},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["emitModalVisibility","columnVisibilityChange","apply","selectAll","unselectAll"],setup(n,{emit:e}){const t=n,i=e,r=o.ref([...t.columns]),s=o.ref([...t.columns]);o.watch(()=>t.columns,h=>{JSON.stringify(h)!==JSON.stringify(s.value)&&(r.value=[...h],s.value=[...h],l())},{deep:!0});const a=o.ref(!0);function l(){const S=r.value.filter(m=>m.title).some(m=>!m.visible);a.value=S,o.triggerRef(a)}l();const u=h=>{i("emitModalVisibility",h)},c=(h,S)=>{const m=h.target,A=r.value.findIndex(b=>b.field===S);A!==-1&&(r.value[A].visible=m.checked,l()),i("columnVisibilityChange",h,S)},d=()=>{i("apply",r.value)},f=()=>{const h=r.value.map(S=>({...S,visible:S.title?!0:S.visible}));r.value=h,s.value=[...h],l(),i("selectAll")},p=()=>{const h=r.value.map(S=>({...S,visible:S.title?!1:S.visible}));r.value=h,s.value=[...h],l(),i("unselectAll")};return(h,S)=>(o.openBlock(),o.createBlock(Pc,{title:h.title,"modal-visibility":h.modalVisibility,onEmitModalVisibility:u},{"modal-body":o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(m,A)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:A},[m.title?(o.openBlock(),o.createElementBlock("div",AS,[o.createElementVNode("div",ES,[o.createElementVNode("input",{checked:m.visible,class:"form-check-input",type:"checkbox",id:m.field,ref_for:!0,ref:"editColumns",onChange:b=>c(b,m.field)},null,40,kS),o.createElementVNode("label",{class:"form-check-label",for:m.field},[o.createElementVNode("span",{class:"lh-sm",innerHTML:m.title},null,8,xS)],8,SS)])])):o.createCommentVNode("",!0)],64))),128))]),"modal-footer":o.withCtx(()=>[o.createElementVNode("div",RS,[o.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},o.toDisplayString(h.applyText),1)]),o.createElementVNode("div",MS,[o.createElementVNode("div",TS,[a.value?(o.openBlock(),o.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:f},o.toDisplayString(h.selectAllText),1)):o.createCommentVNode("",!0),a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:"unselect-all",type:"button",class:"btn btn-light",onClick:p},o.toDisplayString(h.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function Na(n,e){const t=o.ref(!1),i=o.ref([...n]);o.watch(()=>n,S=>{i.value=[...S]},{deep:!0});function r(S){t.value=S}function s(S,m){const A=S.target,b=i.value.map(g=>g.field===m?{...g,visible:A.checked}:g);i.value=b,e&&e.value&&(e.value.columns=b)}function a(S){console.log("useTableColumns handleColumnsApply called, received columns:",S),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(S),u()}function l(S){S&&(i.value=[...S],console.log("useTableColumns tableColumns after update:",i.value))}function u(){if(!e||!e.value){console.log("useTableColumns tableOptions not available");return}console.log("useTableColumns updating tableOptions.columns:",i.value),e.value.columns=i.value,console.log("useTableColumns tableOptions.columns after update:",e.value.columns)}function c(){const S=i.value.map(m=>({...m,visible:m.title?!0:m.visible}));i.value=S,e&&e.value&&(e.value.columns=S)}function d(){const S=i.value.map(m=>({...m,visible:m.title?!1:m.visible}));i.value=S,e&&e.value&&(e.value.columns=S)}const f=o.computed(()=>i.value.filter(S=>S.visible));function p(S){i.value=[...S],e&&e.value&&(e.value.columns=S)}function h(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:f,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:a,handleColumnsSelectAll:c,handleColumnsUnselectAll:d,updateColumns:p,resetColumns:h}}const DS=o.defineComponent({__name:"TableColumnsButton",props:{columns:{},tableOptions:{},title:{default:"Table Columns Settings"},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:a,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Na(t.columns,t.tableOptions);o.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,S)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(Sr,{styles:"light",onSubmit:f,icon:"gear-fill"}),o.createVNode(Pa,{title:h.title,"modal-visibility":o.unref(r),columns:o.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:o.unref(a),onColumnVisibilityChange:o.unref(l),onApply:p,onSelectAll:o.unref(u),onUnselectAll:o.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),OS=o.defineComponent({__name:"TableColumnsModal",props:{columns:{},tableOptions:{},title:{default:"Настройка колонок таблицы"},applyText:{default:"Применить"},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:a,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Na(t.columns,t.tableOptions);o.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,S)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(Sr,{styles:"light",onSubmit:f,icon:"gear-fill"}),o.createVNode(Pa,{title:h.title,"modal-visibility":o.unref(r),columns:o.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:o.unref(a),onColumnVisibilityChange:o.unref(l),onApply:p,onSelectAll:o.unref(u),onUnselectAll:o.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),LS={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},BS={key:2,class:"selected-count"},FS=_e(o.defineComponent({__name:"ToggleAllTableRowButtons",props:{selectedRows:{default:()=>[]},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"},selectedText:{default:"Выбрано"},showCount:{type:Boolean,default:!0}},emits:["selectAll","unselectAll"],setup(n,{emit:e}){const t=e,i=()=>{t("selectAll")},r=()=>{t("unselectAll")};return(s,a)=>(o.openBlock(),o.createElementBlock("div",LS,[s.selectedRows.length>0?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light me-3",onClick:r},o.toDisplayString(s.unselectAllText),1)):o.createCommentVNode("",!0),s.selectedRows.length===0?(o.openBlock(),o.createElementBlock("button",{key:1,class:"btn btn-primary me-3",onClick:i},o.toDisplayString(s.selectAllText),1)):o.createCommentVNode("",!0),s.showCount?(o.openBlock(),o.createElementBlock("div",BS,o.toDisplayString(s.selectedText)+": "+o.toDisplayString(s.selectedRows.length),1)):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),_S={class:"row pt-3"},PS={class:"col-12"},NS=["onClick"],IS=_e(o.defineComponent({__name:"MultipleQuickFilterComponent",props:{filterList:{},defaultSelected:{default:()=>({})}},emits:["emitSelected"],setup(n,{emit:e}){const t=n,i=e,r=s=>{t.filterList[s].disabled||(t.filterList[s].value=!t.filterList[s].value,i("emitSelected",t.filterList))};return o.watch(()=>t.defaultSelected,s=>{s&&Object.keys(s).length>0&&t.filterList.forEach((a,l)=>{const u=Object.keys(s)[l];u&&s[u]!==void 0&&(a.value=s[u])})},{immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("div",_S,[o.createElementVNode("div",PS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.filterList,(l,u)=>(o.openBlock(),o.createElementBlock("button",{onClick:c=>r(u),class:o.normalizeClass(["btn filter-item",{active:s.filterList[u].value,disabled:s.filterList[u].disabled}]),key:u},o.toDisplayString(l.title),11,NS))),128))])]))}}),[["__scopeId","data-v-1a1bfba2"]]);var mi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(mi||(mi={}));var yt;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(yt||(yt={}));function HS(n){return vr(n)&&typeof n.from=="function"}function vr(n){return typeof n=="object"&&typeof n.to=="function"}function Xc(n){n.parentElement.removeChild(n)}function Ia(n){return n!=null}function ed(n){n.preventDefault()}function VS(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function zS(n,e){return Math.round(n/e)*e}function jS(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=nd(i);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),e?t.top+s.y-r.clientTop:t.left+s.x-r.clientLeft}function Vt(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function td(n,e,t){t>0&&(gt(n,e),setTimeout(function(){wr(n,e)},t))}function id(n){return Math.max(Math.min(n,100),0)}function yr(n){return Array.isArray(n)?n:[n]}function WS(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function gt(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function wr(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function US(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function nd(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",i=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,r=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:i,y:r}}function GS(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function YS(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function QS(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Ha(n,e){return 100/(e-n)}function Va(n,e,t){return e*100/(n[t+1]-n[t])}function KS(n,e){return Va(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function JS(n,e){return e*(n[1]-n[0])/100+n[0]}function xn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function qS(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=xn(t,n),r=n[i-1],s=n[i],a=e[i-1],l=e[i];return a+KS([r,s],t)/Ha(a,l)}function $S(n,e,t){if(t>=100)return n.slice(-1)[0];var i=xn(t,e),r=n[i-1],s=n[i],a=e[i-1],l=e[i];return JS([r,s],(t-a)*Ha(a,l))}function ZS(n,e,t,i){if(i===100)return i;var r=xn(i,n),s=n[r-1],a=n[r];return t?i-s>(a-s)/2?a:s:e[r-1]?n[r-1]+zS(i-n[r-1],e[r-1]):i}var rd=(function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,s=[];for(Object.keys(e).forEach(function(a){s.push([yr(e[a]),a])}),s.sort(function(a,l){return a[0][0]-l[0][0]}),r=0;r<s.length;r++)this.handleEntryPoint(s[r][1],s[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return n.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=Va(this.xVal,e,i);return t},n.prototype.getAbsoluteDistance=function(e,t,i){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var s,a=1,l=t[r],u=0,c=0,d=0,f=0;for(i?s=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):s=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);l>0;)u=this.xPct[r+1+f]-this.xPct[r+f],t[r+f]*a+100-s*100>100?(c=u*s,a=(l-100*s)/t[r+f],s=1):(c=t[r+f]*u/100*a,a=0),i?(d=d-c,this.xPct.length+f>=1&&f--):(d=d+c,this.xPct.length-f>=1&&f++),l=t[r+f]*a;return e+d},n.prototype.toStepping=function(e){return e=qS(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return $S(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=ZS(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=xn(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=xn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(WS);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!Vt(i)||!Vt(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=Va([this.xVal[e],this.xVal[e+1]],t,0)/Ha(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=s}},n})(),sd={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},ad={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},gi={tooltips:".__tooltips",aria:".__aria"};function XS(n,e){if(!Vt(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function e1(n,e){if(!Vt(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function t1(n,e){if(!Vt(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function i1(n,e){if(!Vt(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function n1(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new rd(e,n.snap||!1,n.singleStep)}function r1(n,e){if(e=yr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function s1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function a1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function o1(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function od(n,e){var t=[!1],i;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<n.handles;i++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function l1(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function ld(n,e){if(!Vt(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function u1(n,e){if(!Vt(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function c1(n,e){var t;if(!Vt(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||Vt(e[0])||Vt(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1],r=n.spectrum.xVal[0],s=n.spectrum.xVal[n.spectrum.xVal.length-1];if(i/(s-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function d1(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function h1(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,i=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,s=e.indexOf("snap")>=0,a=e.indexOf("hover")>=0,l=e.indexOf("unconstrained")>=0,u=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(r){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");ld(n,n.start[1]-n.start[0])}if(u&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||s,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:s,hover:a,unconstrained:l,invertConnects:u}}function f1(n,e){if(e!==!1)if(e===!0||vr(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=yr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!vr(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function p1(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function m1(n,e){if(!vr(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function g1(n,e){if(!HS(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function b1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function v1(n,e){n.documentElement=e}function y1(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function w1(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function ud(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:sd,format:sd},t={step:{r:!1,t:XS},keyboardPageMultiplier:{r:!1,t:e1},keyboardMultiplier:{r:!1,t:t1},keyboardDefaultStep:{r:!1,t:i1},start:{r:!0,t:r1},connect:{r:!0,t:od},direction:{r:!0,t:d1},snap:{r:!1,t:s1},animate:{r:!1,t:a1},animationDuration:{r:!1,t:o1},range:{r:!0,t:n1},orientation:{r:!1,t:l1},margin:{r:!1,t:ld},limit:{r:!1,t:u1},padding:{r:!1,t:c1},behaviour:{r:!0,t:h1},ariaFormat:{r:!1,t:m1},format:{r:!1,t:g1},tooltips:{r:!1,t:f1},keyboardSupport:{r:!0,t:b1},documentElement:{r:!1,t:v1},cssPrefix:{r:!0,t:y1},cssClasses:{r:!0,t:w1},handleAttributes:{r:!1,t:p1}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:ad,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(u){if(!Ia(n[u])&&i[u]===void 0){if(t[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return}t[u].t(e,Ia(n[u])?n[u]:i[u])}),e.pips=n.pips;var r=document.createElement("div"),s=r.style.msTransform!==void 0,a=r.style.transform!==void 0;e.transformRule=a?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function C1(n,e,t){var i=GS(),r=QS(),s=r&&YS(),a=n,l,u,c,d,f,p,h=e.spectrum,S=[],m=[],A=[],b=0,g={},M=!1,v=n.ownerDocument,R=e.documentElement||v.documentElement,y=v.body,x=v.dir==="rtl"||e.ort===1?0:100;function k(E,O){var _=v.createElement("div");return O&>(_,O),E.appendChild(_),_}function C(E,O){var _=k(E,e.cssClasses.origin),Y=k(_,e.cssClasses.handle);if(k(Y,e.cssClasses.touchArea),Y.setAttribute("data-handle",String(O)),e.keyboardSupport&&(Y.setAttribute("tabindex","0"),Y.addEventListener("keydown",function(oe){return Pe(oe,O)})),e.handleAttributes!==void 0){var se=e.handleAttributes[O];Object.keys(se).forEach(function(oe){Y.setAttribute(oe,se[oe])})}return Y.setAttribute("role","slider"),Y.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),O===0?gt(Y,e.cssClasses.handleLower):O===e.handles-1&>(Y,e.cssClasses.handleUpper),_.handle=Y,_}function w(E,O){return O?k(E,e.cssClasses.connect):!1}function D(E,O){u=k(O,e.cssClasses.connects),c=[],d=[],d.push(w(u,E[0]));for(var _=0;_<e.handles;_++)c.push(C(O,_)),A[_]=_,d.push(w(u,E[_+1]))}function T(E){gt(E,e.cssClasses.target),e.dir===0?gt(E,e.cssClasses.ltr):gt(E,e.cssClasses.rtl),e.ort===0?gt(E,e.cssClasses.horizontal):gt(E,e.cssClasses.vertical);var O=getComputedStyle(E).direction;return O==="rtl"?gt(E,e.cssClasses.textDirectionRtl):gt(E,e.cssClasses.textDirectionLtr),k(E,e.cssClasses.base)}function L(E,O){return!e.tooltips||!e.tooltips[O]?!1:k(E.firstChild,e.cssClasses.tooltip)}function N(){return a.hasAttribute("disabled")}function j(E){var O=c[E];return O.hasAttribute("disabled")}function G(E){E!=null?(c[E].setAttribute("disabled",""),c[E].handle.removeAttribute("tabindex")):(a.setAttribute("disabled",""),c.forEach(function(O){O.handle.removeAttribute("tabindex")}))}function I(E){E!=null?(c[E].removeAttribute("disabled"),c[E].handle.setAttribute("tabindex","0")):(a.removeAttribute("disabled"),c.forEach(function(O){O.removeAttribute("disabled"),O.handle.setAttribute("tabindex","0")}))}function V(){p&&(q("update"+gi.tooltips),p.forEach(function(E){E&&Xc(E)}),p=null)}function J(){V(),p=c.map(L),Le("update"+gi.tooltips,function(E,O,_){if(!(!p||!e.tooltips)&&p[O]!==!1){var Y=E[O];e.tooltips[O]!==!0&&(Y=e.tooltips[O].to(_[O])),p[O].innerHTML=Y}})}function B(){q("update"+gi.aria),Le("update"+gi.aria,function(E,O,_,Y,se){A.forEach(function(oe){var ce=c[oe],he=de(m,oe,0,!0,!0,!0),pe=de(m,oe,100,!0,!0,!0),be=se[oe],De=String(e.ariaFormat.to(_[oe]));he=h.fromStepping(he).toFixed(1),pe=h.fromStepping(pe).toFixed(1),be=h.fromStepping(be).toFixed(1),ce.children[0].setAttribute("aria-valuemin",he),ce.children[0].setAttribute("aria-valuemax",pe),ce.children[0].setAttribute("aria-valuenow",be),ce.children[0].setAttribute("aria-valuetext",De)})})}function P(E){if(E.mode===mi.Range||E.mode===mi.Steps)return h.xVal;if(E.mode===mi.Count){if(E.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var O=E.values-1,_=100/O,Y=[];O--;)Y[O]=O*_;return Y.push(100),Q(Y,E.stepped)}return E.mode===mi.Positions?Q(E.values,E.stepped):E.mode===mi.Values?E.stepped?E.values.map(function(se){return h.fromStepping(h.getStep(h.toStepping(se)))}):E.values:[]}function Q(E,O){return E.map(function(_){return h.fromStepping(O?h.getStep(_):_)})}function z(E){function O(be,De){return Number((be+De).toFixed(7))}var _=P(E),Y={},se=h.xVal[0],oe=h.xVal[h.xVal.length-1],ce=!1,he=!1,pe=0;return _=VS(_.slice().sort(function(be,De){return be-De})),_[0]!==se&&(_.unshift(se),ce=!0),_[_.length-1]!==oe&&(_.push(oe),he=!0),_.forEach(function(be,De){var je,Fe,$e,et=be,lt=_[De+1],rt,bi,Mi,li,zt,qt,$i,Ti=E.mode===mi.Steps;for(Ti&&(je=h.xNumSteps[De]),je||(je=lt-et),lt===void 0&&(lt=et),je=Math.max(je,1e-7),Fe=et;Fe<=lt;Fe=O(Fe,je)){for(rt=h.toStepping(Fe),bi=rt-pe,zt=bi/(E.density||1),qt=Math.round(zt),$i=bi/qt,$e=1;$e<=qt;$e+=1)Mi=pe+$e*$i,Y[Mi.toFixed(5)]=[h.fromStepping(Mi),0];li=_.indexOf(Fe)>-1?yt.LargeValue:Ti?yt.SmallValue:yt.NoValue,!De&&ce&&Fe!==lt&&(li=0),Fe===lt&&he||(Y[rt.toFixed(5)]=[Fe,li]),pe=rt}}),Y}function $(E,O,_){var Y,se,oe=v.createElement("div"),ce=(Y={},Y[yt.None]="",Y[yt.NoValue]=e.cssClasses.valueNormal,Y[yt.LargeValue]=e.cssClasses.valueLarge,Y[yt.SmallValue]=e.cssClasses.valueSub,Y),he=(se={},se[yt.None]="",se[yt.NoValue]=e.cssClasses.markerNormal,se[yt.LargeValue]=e.cssClasses.markerLarge,se[yt.SmallValue]=e.cssClasses.markerSub,se),pe=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],be=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];gt(oe,e.cssClasses.pips),gt(oe,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function De(Fe,$e){var et=$e===e.cssClasses.value,lt=et?pe:be,rt=et?ce:he;return $e+" "+lt[e.ort]+" "+rt[Fe]}function je(Fe,$e,et){if(et=O?O($e,et):et,et!==yt.None){var lt=k(oe,!1);lt.className=De(et,e.cssClasses.marker),lt.style[e.style]=Fe+"%",et>yt.NoValue&&(lt=k(oe,!1),lt.className=De(et,e.cssClasses.value),lt.setAttribute("data-value",String($e)),lt.style[e.style]=Fe+"%",lt.innerHTML=String(_.to($e)))}}return Object.keys(E).forEach(function(Fe){je(Fe,E[Fe][0],E[Fe][1])}),oe}function ee(){f&&(Xc(f),f=null)}function K(E){ee();var O=z(E),_=E.filter,Y=E.format||{to:function(se){return String(Math.round(se))}};return f=a.appendChild($(O,_,Y)),f}function ae(){var E=l.getBoundingClientRect(),O="offset"+["Width","Height"][e.ort];return e.ort===0?E.width||l[O]:E.height||l[O]}function W(E,O,_,Y){var se=function(ce){var he=H(ce,Y.pageOffset,Y.target||O);if(!he||N()&&!Y.doNotReject||US(a,e.cssClasses.tap)&&!Y.doNotReject||E===i.start&&he.buttons!==void 0&&he.buttons>1||Y.hover&&he.buttons)return!1;s||he.preventDefault(),he.calcPoint=he.points[e.ort],_(he,Y)},oe=[];return E.split(" ").forEach(function(ce){O.addEventListener(ce,se,s?{passive:!0}:!1),oe.push([ce,se])}),oe}function H(E,O,_){var Y=E.type.indexOf("touch")===0,se=E.type.indexOf("mouse")===0,oe=E.type.indexOf("pointer")===0,ce=0,he=0;if(E.type.indexOf("MSPointer")===0&&(oe=!0),E.type==="mousedown"&&!E.buttons&&!E.touches)return!1;if(Y){var pe=function(je){var Fe=je.target;return Fe===_||_.contains(Fe)||E.composed&&E.composedPath().shift()===_};if(E.type==="touchstart"){var be=Array.prototype.filter.call(E.touches,pe);if(be.length>1)return!1;ce=be[0].pageX,he=be[0].pageY}else{var De=Array.prototype.find.call(E.changedTouches,pe);if(!De)return!1;ce=De.pageX,he=De.pageY}}return O=O||nd(v),(se||oe)&&(ce=E.clientX+O.x,he=E.clientY+O.y),E.pageOffset=O,E.points=[ce,he],E.cursor=se||oe,E}function ne(E){var O=E-jS(l,e.ort),_=O*100/ae();return _=id(_),e.dir?100-_:_}function ie(E){var O=100,_=!1;return c.forEach(function(Y,se){if(!j(se)){var oe=m[se],ce=Math.abs(oe-E),he=ce===100&&O===100,pe=ce<O,be=ce<=O&&E>oe;(pe||be||he)&&(_=se,O=ce)}}),_}function te(E,O){E.type==="mouseout"&&E.target.nodeName==="HTML"&&E.relatedTarget===null&&le(E,O)}function fe(E,O){if(navigator.appVersion.indexOf("MSIE 9")===-1&&E.buttons===0&&O.buttonsProperty!==0)return le(E,O);var _=(e.dir?-1:1)*(E.calcPoint-O.startCalcPoint),Y=_*100/O.baseSize;Ee(_>0,Y,O.locations,O.handleNumbers,O.connect)}function le(E,O){O.handle&&(wr(O.handle,e.cssClasses.active),b-=1),O.listeners.forEach(function(_){R.removeEventListener(_[0],_[1])}),b===0&&(wr(a,e.cssClasses.drag),Re(),E.cursor&&(y.style.cursor="",y.removeEventListener("selectstart",ed))),e.events.smoothSteps&&(O.handleNumbers.forEach(function(_){Ie(_,m[_],!0,!0,!1,!1)}),O.handleNumbers.forEach(function(_){X("update",_)})),O.handleNumbers.forEach(function(_){X("change",_),X("set",_),X("end",_)})}function ve(E,O){if(!O.handleNumbers.some(j)){var _;if(O.handleNumbers.length===1){var Y=c[O.handleNumbers[0]];_=Y.children[0],b+=1,gt(_,e.cssClasses.active)}E.stopPropagation();var se=[],oe=W(i.move,R,fe,{target:E.target,handle:_,connect:O.connect,listeners:se,startCalcPoint:E.calcPoint,baseSize:ae(),pageOffset:E.pageOffset,handleNumbers:O.handleNumbers,buttonsProperty:E.buttons,locations:m.slice()}),ce=W(i.end,R,le,{target:E.target,handle:_,listeners:se,doNotReject:!0,handleNumbers:O.handleNumbers}),he=W("mouseout",R,te,{target:E.target,handle:_,listeners:se,doNotReject:!0,handleNumbers:O.handleNumbers});se.push.apply(se,oe.concat(ce,he)),E.cursor&&(y.style.cursor=getComputedStyle(E.target).cursor,c.length>1&>(a,e.cssClasses.drag),y.addEventListener("selectstart",ed,!1)),O.handleNumbers.forEach(function(pe){X("start",pe)})}}function ye(E){E.stopPropagation();var O=ne(E.calcPoint),_=ie(O);_!==!1&&(e.events.snap||td(a,e.cssClasses.tap,e.animationDuration),Ie(_,O,!0,!0),Re(),X("slide",_,!0),X("update",_,!0),e.events.snap?ve(E,{handleNumbers:[_]}):(X("change",_,!0),X("set",_,!0)))}function ke(E){var O=ne(E.calcPoint),_=h.getStep(O),Y=h.fromStepping(_);Object.keys(g).forEach(function(se){se.split(".")[0]==="hover"&&g[se].forEach(function(oe){oe.call(F,Y)})})}function Pe(E,O){if(N()||j(O))return!1;var _=["Left","Right"],Y=["Down","Up"],se=["PageDown","PageUp"],oe=["Home","End"];e.dir&&!e.ort?_.reverse():e.ort&&!e.dir&&(Y.reverse(),se.reverse());var ce=E.key.replace("Arrow",""),he=ce===se[0],pe=ce===se[1],be=ce===Y[0]||ce===_[0]||he,De=ce===Y[1]||ce===_[1]||pe,je=ce===oe[0],Fe=ce===oe[1];if(!be&&!De&&!je&&!Fe)return!0;E.preventDefault();var $e;if(De||be){var et=be?0:1,lt=He(O),rt=lt[et];if(rt===null)return!1;rt===!1&&(rt=h.getDefaultStep(m[O],be,e.keyboardDefaultStep)),pe||he?rt*=e.keyboardPageMultiplier:rt*=e.keyboardMultiplier,rt=Math.max(rt,1e-7),rt=(be?-1:1)*rt,$e=S[O]+rt}else Fe?$e=e.spectrum.xVal[e.spectrum.xVal.length-1]:$e=e.spectrum.xVal[0];return Ie(O,h.toStepping($e),!0,!0),X("slide",O),X("update",O),X("change",O),X("set",O),!1}function Ne(E){E.fixed||c.forEach(function(O,_){W(i.start,O.children[0],ve,{handleNumbers:[_]})}),E.tap&&W(i.start,l,ye,{}),E.hover&&W(i.move,l,ke,{hover:!0}),E.drag&&d.forEach(function(O,_){if(!(O===!1||_===0||_===d.length-1)){var Y=c[_-1],se=c[_],oe=[O],ce=[Y,se],he=[_-1,_];gt(O,e.cssClasses.draggable),E.fixed&&(oe.push(Y.children[0]),oe.push(se.children[0])),E.dragAll&&(ce=c,he=A),oe.forEach(function(pe){W(i.start,pe,ve,{handles:ce,handleNumbers:he,connect:O})})}})}function Le(E,O){g[E]=g[E]||[],g[E].push(O),E.split(".")[0]==="update"&&c.forEach(function(_,Y){X("update",Y)})}function U(E){return E===gi.aria||E===gi.tooltips}function q(E){var O=E&&E.split(".")[0],_=O?E.substring(O.length):E;Object.keys(g).forEach(function(Y){var se=Y.split(".")[0],oe=Y.substring(se.length);(!O||O===se)&&(!_||_===oe)&&(!U(oe)||_===oe)&&delete g[Y]})}function X(E,O,_){Object.keys(g).forEach(function(Y){var se=Y.split(".")[0];E===se&&g[Y].forEach(function(oe){oe.call(F,S.map(e.format.to),O,S.slice(),_||!1,m.slice(),F)})})}function de(E,O,_,Y,se,oe,ce){var he;return c.length>1&&!e.events.unconstrained&&(Y&&O>0&&(he=h.getAbsoluteDistance(E[O-1],e.margin,!1),_=Math.max(_,he)),se&&O<c.length-1&&(he=h.getAbsoluteDistance(E[O+1],e.margin,!0),_=Math.min(_,he))),c.length>1&&e.limit&&(Y&&O>0&&(he=h.getAbsoluteDistance(E[O-1],e.limit,!1),_=Math.min(_,he)),se&&O<c.length-1&&(he=h.getAbsoluteDistance(E[O+1],e.limit,!0),_=Math.max(_,he))),e.padding&&(O===0&&(he=h.getAbsoluteDistance(0,e.padding[0],!1),_=Math.max(_,he)),O===c.length-1&&(he=h.getAbsoluteDistance(100,e.padding[1],!0),_=Math.min(_,he))),ce||(_=h.getStep(_)),_=id(_),_===E[O]&&!oe?!1:_}function ue(E,O){var _=e.ort;return(_?O:E)+", "+(_?E:O)}function Ee(E,O,_,Y,se){var oe=_.slice(),ce=Y[0],he=e.events.smoothSteps,pe=[!E,E],be=[E,!E];Y=Y.slice(),E&&Y.reverse(),Y.length>1?Y.forEach(function(je,Fe){var $e=de(oe,je,oe[je]+O,pe[Fe],be[Fe],!1,he);$e===!1?O=0:(O=$e-oe[je],oe[je]=$e)}):pe=be=[!0];var De=!1;Y.forEach(function(je,Fe){De=Ie(je,_[je]+O,pe[Fe],be[Fe],!1,he)||De}),De&&(Y.forEach(function(je){X("update",je),X("slide",je)}),se!=null&&X("drag",ce))}function Be(E,O){return e.dir?100-E-O:E}function xe(E,O){m[E]=O,S[E]=h.fromStepping(O);var _=Be(O,0)-x,Y="translate("+ue(_+"%","0")+")";if(c[E].style[e.transformRule]=Y,e.events.invertConnects&&m.length>1){var se=m.every(function(oe,ce,he){return ce===0||oe>=he[ce-1]});if(M!==!se){bt();return}}ot(E),ot(E+1),M&&(ot(E-1),ot(E+2))}function Re(){A.forEach(function(E){var O=m[E]>50?-1:1,_=3+(c.length+O*E);c[E].style.zIndex=String(_)})}function Ie(E,O,_,Y,se,oe){return se||(O=de(m,E,O,_,Y,!1,oe)),O===!1?!1:(xe(E,O),!0)}function ot(E){if(d[E]){var O=m.slice();M&&O.sort(function(he,pe){return he-pe});var _=0,Y=100;E!==0&&(_=O[E-1]),E!==d.length-1&&(Y=O[E]);var se=Y-_,oe="translate("+ue(Be(_,se)+"%","0")+")",ce="scale("+ue(se/100,"1")+")";d[E].style[e.transformRule]=oe+" "+ce}}function Qe(E,O){return E===null||E===!1||E===void 0||(typeof E=="number"&&(E=String(E)),E=e.format.from(E),E!==!1&&(E=h.toStepping(E)),E===!1||isNaN(E))?m[O]:E}function ge(E,O,_){var Y=yr(E),se=m[0]===void 0;O=O===void 0?!0:O,e.animate&&!se&&td(a,e.cssClasses.tap,e.animationDuration),A.forEach(function(he){Ie(he,Qe(Y[he],he),!0,!1,_)});var oe=A.length===1?0:1;if(se&&h.hasNoSize()&&(_=!0,m[0]=0,A.length>1)){var ce=100/(A.length-1);A.forEach(function(he){m[he]=he*ce})}for(;oe<A.length;++oe)A.forEach(function(he){Ie(he,m[he],!0,!0,_)});Re(),A.forEach(function(he){X("update",he),Y[he]!==null&&O&&X("set",he)})}function We(E){ge(e.start,E)}function Me(E,O,_,Y){if(E=Number(E),!(E>=0&&E<A.length))throw new Error("noUiSlider: invalid handle number, got: "+E);Ie(E,Qe(O,E),!0,!0,Y),X("update",E),_&&X("set",E)}function Z(E){if(E===void 0&&(E=!1),E)return S.length===1?S[0]:S.slice(0);var O=S.map(e.format.to);return O.length===1?O[0]:O}function re(){for(q(gi.aria),q(gi.tooltips),Object.keys(e.cssClasses).forEach(function(E){wr(a,e.cssClasses[E])});a.firstChild;)a.removeChild(a.firstChild);delete a.noUiSlider}function He(E){var O=m[E],_=h.getNearbySteps(O),Y=S[E],se=_.thisStep.step,oe=null;if(e.snap)return[Y-_.stepBefore.startValue||null,_.stepAfter.startValue-Y||null];se!==!1&&Y+se>_.stepAfter.startValue&&(se=_.stepAfter.startValue-Y),Y>_.thisStep.startValue?oe=_.thisStep.step:_.stepBefore.step===!1?oe=!1:oe=Y-_.stepBefore.highestStep,O===100?se=null:O===0&&(oe=null);var ce=h.countStepDecimals();return se!==null&&se!==!1&&(se=Number(se.toFixed(ce))),oe!==null&&oe!==!1&&(oe=Number(oe.toFixed(ce))),[oe,se]}function Ue(){return A.map(He)}function Oe(E,O){var _=Z(),Y=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];Y.forEach(function(oe){E[oe]!==void 0&&(t[oe]=E[oe])});var se=ud(t);Y.forEach(function(oe){E[oe]!==void 0&&(e[oe]=se[oe])}),h=se.spectrum,e.margin=se.margin,e.limit=se.limit,e.padding=se.padding,e.pips?K(e.pips):ee(),e.tooltips?J():V(),m=[],ge(Ia(E.start)?E.start:_,O),E.connect&&Se()}function Se(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var E=0;E<=e.handles;E++)d[E]=w(u,e.connect[E]),ot(E);Ne({drag:e.events.drag,fixed:!0})}function bt(){M=!M,od(e,e.connect.map(function(E){return!E})),Se()}function nt(){l=T(a),D(e.connect,l),Ne(e.events),ge(e.start),e.pips&&K(e.pips),e.tooltips&&J(),B()}nt();var F={destroy:re,steps:Ue,on:Le,off:q,get:Z,set:ge,setHandle:Me,reset:We,disable:G,enable:I,__moveHandles:function(E,O,_){Ee(E,O,m,_)},options:t,updateOptions:Oe,target:a,removePips:ee,removeTooltips:V,getPositions:function(){return m.slice()},getTooltips:function(){return p},getOrigins:function(){return c},pips:K};return F}function A1(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=ud(e),i=C1(n,t,e);return n.noUiSlider=i,i}const E1={__spectrum:rd,cssClasses:ad,create:A1},k1={class:"slider-container"},S1={class:"slider-wrapper",style:{position:"relative"}},x1=["id"],R1=["value"],M1=["value"],T1=_e(o.defineComponent({__name:"Slider",props:{minCount:{default:0},maxCount:{default:100},minValue:{default:0},maxValue:{default:100},step:{default:1},tooltips:{type:Boolean,default:!0},connect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sliderId:{default:"slider-range"}},emits:["updateMinValue","updateMaxValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(null),a=o.ref(null),l=o.ref(null);let u=null;const c=o.ref(i.minValue),d=o.ref(i.maxValue),f=()=>{if(!s.value)return;u&&u.destroy();const m=Array(i.maxCount-i.minCount+1).fill(0).map((b,g)=>i.minCount+g),A={to:b=>{const g=Math.round(b);return m[g]||m[0]},from:b=>{const g=Number(b);return m.indexOf(g)}};try{u=E1.create(s.value,{start:[c.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:A,range:{min:0,max:m.length-1}}),u.on("change",b=>{const g=Number(b[0]),M=Number(b[1]);c.value!==g&&(c.value=g,r("updateMinValue",g)),d.value!==M&&(d.value=M,r("updateMaxValue",M)),r("change",[g,M])}),u.on("update",b=>{const g=Number(b[0]),M=Number(b[1]);c.value=g,d.value=M})}catch(b){console.error("Error creating slider:",b)}},p=()=>{o.nextTick(()=>{f()})},h=(m,A)=>{if(u)try{u.set([m,A])}catch(b){console.error("Error updating slider values:",b)}},S=m=>{u&&(m?u.disable():u.enable())};return o.watch(()=>[i.minValue,i.maxValue],([m,A])=>{(m!==c.value||A!==d.value)&&(c.value=m,d.value=A,h(m,A))},{immediate:!1}),o.watch(()=>i.disabled,m=>{S(m)}),o.watch(()=>[i.minCount,i.maxCount],()=>{p()}),o.onMounted(()=>{p()}),o.onUnmounted(()=>{u&&(u.destroy(),u=null)}),e({updateValues:h,getValues:()=>u?.get(),reset:()=>{u&&u.reset()},destroy:()=>{u&&(u.destroy(),u=null)}}),(m,A)=>(o.openBlock(),o.createElementBlock("div",k1,[o.createElementVNode("div",S1,[o.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:m.sliderId},null,8,x1)]),o.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:a,value:m.minValue},null,8,R1),o.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:m.maxValue},null,8,M1)]))}}),[["__scopeId","data-v-892dca90"]]),D1=["title"],O1=_e(o.defineComponent({__name:"QuestionIcon",props:{title:{default:""},size:{default:"md"},color:{default:"#999999"},iconClass:{default:""},tooltipPosition:{default:"top"},clickToShow:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(),i=o.ref(!1),r=o.computed(()=>({color:e.color})),s=o.computed(()=>{switch(e.size){case"sm":return"question-icon--sm";case"lg":return"question-icon--lg";default:return"question-icon--md"}}),a=o.computed(()=>`question-tooltip--${e.tooltipPosition}`),l=()=>{e.clickToShow&&e.title&&(i.value=!i.value)},u=c=>{t.value&&!t.value.contains(c.target)&&(i.value=!1)};return o.onMounted(()=>{e.clickToShow&&document.addEventListener("click",u)}),o.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",u)}),(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"question-icon-wrapper",ref_key:"wrapperRef",ref:t},[o.createElementVNode("i",{class:o.normalizeClass(["bi bi-question-circle-fill question-icon",[c.iconClass,s.value]]),title:c.title,style:o.normalizeStyle(r.value),onClick:l},null,14,D1),i.value&&c.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["question-tooltip",a.value])},[o.createTextVNode(o.toDisplayString(c.title)+" ",1),d[0]||(d[0]=o.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),L1={class:"container-fluid rounded overflow-hidden bg-light"},B1={class:"row w-100"},F1={class:"text-secondary"},_1={class:"d-flex py-3 px-2 onlyPrint"},P1={class:"row w-100"},N1={class:"text-secondary"},I1={class:"row"},H1=_e(o.defineComponent({__name:"FilterValuesPanel",props:{filterValues:{default:null},filterTitles:{}},emits:["showFilter"],setup(n,{emit:e}){const t=n,i=o.ref(!1),r=o.ref([]);return o.computed(()=>t.filterValues?Object.entries(t.filterValues).filter(([s,a])=>a).map(([s,a])=>({name:t.filterTitles[s]||s,value:String(a),key:s})):[]),o.watch(()=>t.filterValues,s=>{if(!s){r.value=[];return}r.value=Object.entries(s).filter(([a,l])=>l).map(([a,l])=>({name:t.filterTitles[a]||a,value:String(l),key:a}))},{deep:!0,immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("div",L1,[o.createElementVNode("div",{style:o.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[o.createElementVNode("div",B1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:l.key},[o.createElementVNode("div",F1,o.toDisplayString(l.name)+":",1),o.createElementVNode("div",null,[o.createElementVNode("strong",null,o.toDisplayString(l.value),1)])],2))),128))]),o.createElementVNode("div",null,[o.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-right rounded",onClick:a[0]||(a[0]=l=>s.$emit("showFilter"))},[...a[2]||(a[2]=[o.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),o.createElementVNode("div",_1,[o.createElementVNode("div",P1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:l.key},[o.createElementVNode("div",N1,o.toDisplayString(l.name)+":",1),o.createElementVNode("div",null,[o.createElementVNode("strong",null,o.toDisplayString(l.value),1)])],2))),128))])]),o.createElementVNode("div",I1,[o.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:a[1]||(a[1]=l=>i.value=!i.value)},[o.createElementVNode("i",{class:o.normalizeClass({"bi lh-normal":!0,"bi-chevron-down":!i.value,"bi-chevron-up":i.value})},null,2)])])]))}}),[["__scopeId","data-v-9dc91069"]]),cd=(n={})=>{n.hasOwnProperty("KEY")||(n.KEY="tables");const{KEY:e}=n;function t(a,l){const u=localStorage.getItem(e);let c=JSON.parse(u);return c={...c,[a]:l},localStorage.setItem(e,JSON.stringify(c)),!0}function i(a){return a?(localStorage.setItem(e,JSON.stringify(a)),!0):!1}function r(a){const l=localStorage.getItem(e),u=JSON.parse(l);return u?.hasOwnProperty(a)&&delete u[a],i(u),!0}function s(a){const l=localStorage.getItem(e);return(JSON.parse(l)||{})[a]||null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}},V1=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:a=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const u=o.ref({}),c=o.ref(0),d=o.ref(""),f=o.ref(""),p=o.ref({}),h=o.ref(!1),S=o.ref(!1),m=o.ref(!1),A=o.ref(s()),b=o.ref(!1),{setItemStorage:g,removeItemStorage:M,getItemStorage:v}=cd();async function R(){A.value=s(),p.value={}}function y(K){if(!n)return!1;g(n,K)}const x=o.readonly({...a()});function k(K,ae){p.value[K]=ae}const C=o.computed(()=>Object.values(p.value).some(Boolean));function w(){c.value+=1}async function D(K){if(K.options){if(K.options.ajaxURL=r.value.ajaxURL,!r.value.columns){K.replaceData(r.value.ajaxURL);return}K.options.columns=r.value.columns,K.setColumns(r.value.columns),await T(K),K.replaceData(r.value.ajaxURL)}}async function T(K){const ae=typeof K.hideColumn=="function",W=typeof K.showColumn=="function";if(!ae||!W){w();return}for(const H of r.value.columns)H.visible===!1?K.hideColumn(H.field):K.showColumn(H.field)}function L(K){if(!n)return!1;g(n,j(K))}async function N(K){const ae=r.value?.paginationMode==="remote";if(!(ae&&(!K||!K.replaceData))&&!(b.value||S.value)){S.value=!0;try{if(await V(),b.value||(await o.nextTick(),b.value))return;if(!ae){w();return}await D(K),h.value=!1}finally{S.value=!1}}}function j(K){return K.map(W=>{let H=JSON.parse(JSON.stringify(W));return W.visible===!1&&(delete H.width,delete H.minWidth),H})}function G(K){if(!n)return!1;g(n,j(K))}function I(){const K={};for(const[ae,W]of Object.entries({...A.value}))!W||W?.length<1||Array.isArray(W)&&(W[0]===null||W[0]===void 0||W[0]==="")||(K[ae]=W);return K}async function V(){if(b.value)return;const K=e(),ae=await t();if(b.value)return;const W=Q();r.value={...r.value,ajaxURL:K,ajaxResponse:ae,columns:W,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const J=o.computed(()=>{let K=[];return r.value.columns.map(ae=>{ae.title&&K.push(ae.visible)}),K.includes(!1)});async function B(K,ae){K.target.checked==!1?(d.value=ae,f.value=""):(f.value=ae,d.value="")}async function P(){M(n),r.value.columns=Q()}function Q(){const K=v(n);return K||i({selectedQuickFilter:l?.value})}async function z(){M(n),r.value.columns.map(K=>K.visible=!1),G(r.value.columns)}function $(K){r.value.columns=K,n&&g(n,K)}function ee(){r.value.columns=r.value.columns}return o.onBeforeUnmount(()=>{b.value=!0}),o.provide("setFilterParamsStrings",k),o.provide("selectedFilterTitles",x),o.provide("tableFilters",A),o.provide("filterModalVisibility",h),o.provide("resetFilters",R),o.provide("applyFilters",N),o.provide("editTableColumnsModalVisibility",m),o.provide("tableOptions",r),o.provide("editTableColumnVisibility",B),o.provide("isTableCoumnsHidden",J),o.provide("unselectAllTableColumnCheckboxes",z),o.provide("selectAllTableColumnCheckboxes",P),o.provide("handleColumnsChanged",$),o.provide("handleColumnsApply",ee),o.provide("table",u),{selectAllTableColumnCheckboxes:P,unselectAllTableColumnCheckboxes:z,isTableCoumnsHidden:J,editTableColumnVisibility:B,fetchData:V,onHideColumn:G,getFilterData:I,applyFilters:N,reRenderTable:w,resetFilters:R,onTableRowMoved:y,onShowColumn:L,table:u,tableKey:c,columnHide:d,columnShow:f,selectedFilterTitles:x,setFilterParamsStrings:k,filterParamsStrings:p,isSelectedFiltersVisible:C,filterModalVisibility:h,editTableColumnsModalVisibility:m,tableFilters:A,tableOptions:r,handleColumnsChanged:$,handleColumnsApply:ee}};function dd(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function hd(n){return n.filter(e=>e.visible===!0)}function fd(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Cr(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function za(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Rn(n){if(!Array.isArray(n))return console.warn("validateColumns: columns must be an array"),!1;for(const e of n){if(!e.field||typeof e.field!="string")return console.warn("validateColumns: column.field must be a non-empty string",e),!1;if(typeof e.visible!="boolean")return console.warn("validateColumns: column.visible must be a boolean",e),!1}return!0}function pd(n){return n.some(e=>e.title&&!e.visible)}function md(n,e){return n.find(t=>t.field===e)}function Ar(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const z1=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:md,getVisibleColumns:hd,hasHiddenColumns:pd,hideAllColumns:za,prepareColumnsToSave:dd,resetColumnsToDefault:Cr,toggleColumnVisibility:fd,updateColumn:Ar,validateColumns:Rn},Symbol.toStringTag,{value:"Module"}));function gd(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:a,validateOnChange:l=!0}=n;Rn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const u=o.ref(!1),c=o.ref([...e]),d=o.ref(!1);if(t&&typeof window<"u")try{const I=localStorage.getItem(t);if(I){const V=JSON.parse(I);Rn(V)&&(c.value=V)}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}const f=o.computed(()=>hd(c.value)),p=o.computed(()=>pd(c.value)),h=o.computed(()=>c.value.length),S=o.computed(()=>f.value.length);function m(I){if(!(!t||typeof window>"u"||!r))try{const V=dd(I);localStorage.setItem(t,JSON.stringify(V))}catch(V){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",V)}}function A(){if(!t||typeof window>"u")return null;try{const I=localStorage.getItem(t);if(I){const V=JSON.parse(I);if(Rn(V))return V}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}return null}function b(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(I){console.warn("useTableColumnsEnhanced: failed to clear localStorage",I)}}function g(I){if(l&&!Rn(I)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}c.value=[...I],m(I),s?.(I)}function M(I,V){const J=I.target,B=Ar(c.value,V,{visible:J.checked});g(B)}function v(I){u.value=I}function R(I){const V=I||c.value;g(V),u.value=!1,a?.(V)}function y(){const I=Cr(c.value);g(I)}function x(){const I=za(c.value);g(I)}function k(I){const V=fd(c.value,I);g(V)}function C(I){const V=Ar(c.value,I,{visible:!0});g(V)}function w(I){const V=Ar(c.value,I,{visible:!1});g(V)}function D(){const I=Cr(e);g(I)}function T(){const I=Cr(c.value);g(I)}function L(){const I=za(c.value);g(I)}function N(I){return md(c.value,I)}function j(I){return N(I)?.visible??!1}function G(){i?.value&&(i.value.columns=c.value)}return o.watch(c,()=>{G()},{deep:!0}),o.watch(()=>e,I=>{d.value||(c.value=[...I],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,G()),{columnsModalVisibility:u,tableColumns:c,visibleColumns:f,hasHidden:p,columnsCount:h,visibleCount:S,isInitialized:d,handleColumnsModalVisibility:v,handleColumnVisibilityChange:M,handleColumnsApply:R,handleColumnsSelectAll:y,handleColumnsUnselectAll:x,updateColumns:g,toggleColumn:k,showColumn:C,hideColumn:w,resetToDefault:D,showAll:T,hideAll:L,getColumn:N,isColumnVisible:j,saveToLocalStorage:m,loadFromLocalStorage:A,clearLocalStorage:b,syncWithTableOptions:G}}function j1(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:a}=n,l=gd({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:h=>{s?.(h),r?.applyFilters&&r.applyFilters()},onApply:h=>{a?.(h),r?.applyFilters&&r.applyFilters()}});function u(h){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",h),l.updateColumns(h)}function c(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const h=r.onShowColumn;r.onShowColumn=S=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",S),l.updateColumns(S),h?.(S)}}if(r.onHideColumn){const h=r.onHideColumn;r.onHideColumn=S=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",S),l.updateColumns(S),h?.(S)}}}}function f(){i?.value&&(i.value.columns=l.tableColumns.value)}function p(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return o.watch(()=>t(),h=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",h),l.updateColumns(h)},{deep:!0}),d(),{...l,handleColumnsChanged:u,handleColumnsApply:c,syncWithTableOptions:f,syncWithTable:p,setupTableDefaultIntegration:d}}function W1(n){const{tableColumns:e,tableOptions:t,tableDefault:i,onApply:r}=n;function s(l){console.log("createColumnHandlers handleColumnsChanged called, received columns:",l),e.value=l,t.value.columns=l,i?.tableOptions&&(i.tableOptions.columns=l)}function a(){console.log("createColumnHandlers handleColumnsApply called"),console.log("createColumnHandlers current tableColumns:",e.value),t.value.columns=e.value,i?.tableOptions&&(i.tableOptions.columns=e.value),r?.()}return{handleColumnsChanged:s,handleColumnsApply:a}}const U1=(n={})=>{const{navigate:e=m=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=m=>m,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,a=o.ref([]);function l(m){e(m)}function u(m,A){if(!Array.isArray(m))return[];const b=JSON.parse(JSON.stringify(m));return b.length>A&&b.splice(0,b.length-A),b}function c(){const m=i(),A={path:m.path,name:m.name},b=a.value||[],g=b[b.length-1];if(JSON.stringify(g)===JSON.stringify(A))return!1;b.push(A),a.value=u(b,r),localStorage.setItem(s,JSON.stringify(a.value))}function d(){const m=JSON.parse(localStorage.getItem(s)||"[]");m?.length||c(),a.value=m}const f=o.computed(()=>a.value.map((m,A)=>({text:t(`routes.${m.name}`),href:m.path,isActive:A===a.value.length-1})));function p(){c()}function h(){a.value=[],localStorage.removeItem(s)}function S(m){const A=a.value||[];A.push(m),a.value=u(A,r),localStorage.setItem(s,JSON.stringify(a.value))}return o.onMounted(()=>{d()}),{goTo:l,crumbs:f,breadcrumbs:a,updateBreadcrumbs:p,clearBreadcrumbs:h,addBreadcrumb:S}};Ce.AddButton=ja,Ce.AddressForm=Uy,Ce.AgeFromAgeTo=rw,Ce.BooleanCheckbox=Tc,Ce.Breadcrumbs=lA,Ce.Card=iC,Ce.CardInfo=bA,Ce.Checkbox=qg,Ce.ClearFormButton=Td,Ce.CollapseButton=kd,Ce.CollapsedSidebarLink=Hc,Ce.ColumnSubFilter=gS,Ce.ConfirmationModal=Lw,Ce.CustomInput=er,Ce.DefaultAccordion=$A,Ce.DefaultButton=Sr,Ce.DefaultDropDown=ka,Ce.DefaultModal=_c,Ce.Divider=Sa,Ce.EditTableColumns=Pa,Ce.EditTableColumnsModalComponent=Pc,Ce.ErrorMessageComponent=GA,Ce.ExportButton=Sd,Ce.ExportComponent=bh,Ce.FilterValuesPanel=H1,Ce.Flatpickr=ky,Ce.Footer=rC,Ce.FormError=Ei,Ce.Header=wC,Ce.HeaderSearchForm=My,Ce.Icon=kr,Ce.KindCheckboxesAccordion=uE,Ce.Logo=Nc,Ce.MainComponent=eA,Ce.MultiCheckbox=ay,Ce.MultiInput=dy,Ce.MultipleQuickFilterComponent=IS,Ce.PageCard=NA,Ce.PageTitle=Xw,Ce.PasswordInput=Yg,Ce.PrintButton=xd,Ce.QuestionIcon=O1,Ce.Sidebar=Vc,Ce.SidebarLink=Ic,Ce.Slider=T1,Ce.Spinner=Er,Ce.SubFilterToggleBtn=$c,Ce.Table=dS,Ce.TableAppliedFiltersStorage=bS,Ce.TableColumnsButton=DS,Ce.TableColumnsModal=OS,Ce.TableCount=mS,Ce.TableFilterModalComponent=Vw,Ce.TableQuickFilterComponent=CS,Ce.Toast=zc,Ce.ToggleAllTableRowButtons=FS,Ce.ToggleButtons=Ld,Ce.VSelect=oi,Ce.createColumnHandlers=W1,Ce.helpers=Vg,Ce.tableColumnsUtils=z1,Ce.useBreadcrumbs=U1,Ce.useTableColumns=Na,Ce.useTableColumnsEnhanced=gd,Ce.useTableColumnsIntegration=j1,Ce.useTableDefault=V1,Ce.useTableStorage=cd,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})}));
|