@vc-shell/framework 1.0.51 → 1.0.52
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/framework.js
CHANGED
|
@@ -1097,12 +1097,12 @@ var h0;function xe(){return h0.apply(null,arguments)}function BW(n){h0=n}functio
|
|
|
1097
1097
|
[`+s+"] ";for(d in arguments[0])lt(arguments[0],d)&&(i+=d+": "+arguments[0][d]+", ");i=i.slice(0,-2)}else i=arguments[s];r.push(i)}d0(n+`
|
|
1098
1098
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
1099
1099
|
`+new Error().stack),t=!1}return e.apply(this,arguments)},e)}var Gw={};function p0(n,e){xe.deprecationHandler!=null&&xe.deprecationHandler(n,e),Gw[n]||(d0(e),Gw[n]=!0)}xe.suppressDeprecationWarnings=!1;xe.deprecationHandler=null;function Lr(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function VW(n){var e,t;for(t in n)lt(n,t)&&(e=n[t],Lr(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 td(n,e){var t=Ei({},n),r;for(r in e)lt(e,r)&&(es(n[r])&&es(e[r])?(t[r]={},Ei(t[r],n[r]),Ei(t[r],e[r])):e[r]!=null?t[r]=e[r]:delete t[r]);for(r in n)lt(n,r)&&!lt(e,r)&&es(n[r])&&(t[r]=Ei({},t[r]));return t}function vp(n){n!=null&&this.set(n)}var nd;Object.keys?nd=Object.keys:nd=function(n){var e,t=[];for(e in n)lt(n,e)&&t.push(e);return t};var UW={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function WW(n,e,t){var r=this._calendar[n]||this._calendar.sameElse;return Lr(r)?r.call(e,t):r}function kr(n,e,t){var r=""+Math.abs(n),i=e-r.length,s=n>=0;return(s?t?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var wp=/(\[[^\[]*\])|(\\)?([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,Nl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,af={},Vs={};function Me(n,e,t,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),n&&(Vs[n]=i),e&&(Vs[e[0]]=function(){return kr(i.apply(this,arguments),e[1],e[2])}),t&&(Vs[t]=function(){return this.localeData().ordinal(i.apply(this,arguments),n)})}function HW(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function jW(n){var e=n.match(wp),t,r;for(t=0,r=e.length;t<r;t++)Vs[e[t]]?e[t]=Vs[e[t]]:e[t]=HW(e[t]);return function(i){var s="",d;for(d=0;d<r;d++)s+=Lr(e[d])?e[d].call(i,n):e[d];return s}}function zl(n,e){return n.isValid()?(e=m0(e,n.localeData()),af[e]=af[e]||jW(e),af[e](n)):n.localeData().invalidDate()}function m0(n,e){var t=5;function r(i){return e.longDateFormat(i)||i}for(Nl.lastIndex=0;t>=0&&Nl.test(n);)n=n.replace(Nl,r),Nl.lastIndex=0,t-=1;return n}var zW={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 GW(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(wp).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var YW="Invalid date";function JW(){return this._invalidDate}var KW="%d",XW=/\d{1,2}/;function qW(n){return this._ordinal.replace("%d",n)}var ZW={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 QW(n,e,t,r){var i=this._relativeTime[t];return Lr(i)?i(n,e,t,r):i.replace(/%d/i,n)}function eH(n,e){var t=this._relativeTime[n>0?"future":"past"];return Lr(t)?t(e):t.replace(/%s/i,e)}var Wo={};function on(n,e){var t=n.toLowerCase();Wo[t]=Wo[t+"s"]=Wo[e]=n}function tr(n){return typeof n=="string"?Wo[n]||Wo[n.toLowerCase()]:void 0}function yp(n){var e={},t,r;for(r in n)lt(n,r)&&(t=tr(r),t&&(e[t]=n[r]));return e}var g0={};function an(n,e){g0[n]=e}function tH(n){var e=[],t;for(t in n)lt(n,t)&&e.push({unit:t,priority:g0[t]});return e.sort(function(r,i){return r.priority-i.priority}),e}function du(n){return n%4===0&&n%100!==0||n%400===0}function Kn(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function qe(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=Kn(e)),t}function io(n,e){return function(t){return t!=null?(v0(this,n,t),xe.updateOffset(this,e),this):ac(this,n)}}function ac(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function v0(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&du(n.year())&&n.month()===1&&n.date()===29?(t=qe(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),yu(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function nH(n){return n=tr(n),Lr(this[n])?this[n]():this}function rH(n,e){if(typeof n=="object"){n=yp(n);var t=tH(n),r,i=t.length;for(r=0;r<i;r++)this[t[r].unit](n[t[r].unit])}else if(n=tr(n),Lr(this[n]))return this[n](e);return this}var w0=/\d/,Bn=/\d\d/,y0=/\d{3}/,bp=/\d{4}/,pu=/[+-]?\d{6}/,_t=/\d\d?/,b0=/\d\d\d\d?/,S0=/\d\d\d\d\d\d?/,mu=/\d{1,3}/,Sp=/\d{1,4}/,gu=/[+-]?\d{1,6}/,so=/\d+/,vu=/[+-]?\d+/,iH=/Z|[+-]\d\d:?\d\d/gi,wu=/Z|[+-]\d\d(?::?\d\d)?/gi,sH=/[+-]?\d+(\.\d{1,3})?/,Ba=/[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,lc;lc={};function Ae(n,e,t){lc[n]=Lr(e)?e:function(r,i){return r&&t?t:e}}function oH(n,e){return lt(lc,n)?lc[n](e._strict,e._locale):new RegExp(aH(n))}function aH(n){return Rn(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,i,s){return t||r||i||s}))}function Rn(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var rd={};function mt(n,e){var t,r=e,i;for(typeof n=="string"&&(n=[n]),ei(e)&&(r=function(s,d){d[e]=qe(s)}),i=n.length,t=0;t<i;t++)rd[n[t]]=r}function Fa(n,e){mt(n,function(t,r,i,s){i._w=i._w||{},e(t,i._w,i,s)})}function lH(n,e,t){e!=null&<(rd,n)&&rd[n](e,t._a,t,n)}var sn=0,Kr=1,xr=2,jt=3,ur=4,Xr=5,Zi=6,cH=7,uH=8;function hH(n,e){return(n%e+e)%e}var Pt;Array.prototype.indexOf?Pt=Array.prototype.indexOf:Pt=function(n){var e;for(e=0;e<this.length;++e)if(this[e]===n)return e;return-1};function yu(n,e){if(isNaN(n)||isNaN(e))return NaN;var t=hH(e,12);return n+=(e-t)/12,t===1?du(n)?29:28:31-t%7%2}Me("M",["MM",2],"Mo",function(){return this.month()+1});Me("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});Me("MMMM",0,0,function(n){return this.localeData().months(this,n)});on("month","M");an("month",8);Ae("M",_t);Ae("MM",_t,Bn);Ae("MMM",function(n,e){return e.monthsShortRegex(n)});Ae("MMMM",function(n,e){return e.monthsRegex(n)});mt(["M","MM"],function(n,e){e[Kr]=qe(n)-1});mt(["MMM","MMMM"],function(n,e,t,r){var i=t._locale.monthsParse(n,r,t._strict);i!=null?e[Kr]=i:Ge(t).invalidMonth=n});var fH="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),x0="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_0=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,dH=Ba,pH=Ba;function mH(n,e){return n?dr(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||_0).test(e)?"format":"standalone"][n.month()]:dr(this._months)?this._months:this._months.standalone}function gH(n,e){return n?dr(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[_0.test(e)?"format":"standalone"][n.month()]:dr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function vH(n,e,t){var r,i,s,d=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=Or([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return t?e==="MMM"?(i=Pt.call(this._shortMonthsParse,d),i!==-1?i:null):(i=Pt.call(this._longMonthsParse,d),i!==-1?i:null):e==="MMM"?(i=Pt.call(this._shortMonthsParse,d),i!==-1?i:(i=Pt.call(this._longMonthsParse,d),i!==-1?i:null)):(i=Pt.call(this._longMonthsParse,d),i!==-1?i:(i=Pt.call(this._shortMonthsParse,d),i!==-1?i:null))}function wH(n,e,t){var r,i,s;if(this._monthsParseExact)return vH.call(this,n,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Or([2e3,r]),t&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!t&&!this._monthsParse[r]&&(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),t&&e==="MMMM"&&this._longMonthsParse[r].test(n))return r;if(t&&e==="MMM"&&this._shortMonthsParse[r].test(n))return r;if(!t&&this._monthsParse[r].test(n))return r}}function C0(n,e){var t;if(!n.isValid())return n;if(typeof e=="string"){if(/^\d+$/.test(e))e=qe(e);else if(e=n.localeData().monthsParse(e),!ei(e))return n}return t=Math.min(n.date(),yu(n.year(),e)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](e,t),n}function E0(n){return n!=null?(C0(this,n),xe.updateOffset(this,!0),this):ac(this,"Month")}function yH(){return yu(this.year(),this.month())}function bH(n){return this._monthsParseExact?(lt(this,"_monthsRegex")||k0.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(lt(this,"_monthsShortRegex")||(this._monthsShortRegex=dH),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function SH(n){return this._monthsParseExact?(lt(this,"_monthsRegex")||k0.call(this),n?this._monthsStrictRegex:this._monthsRegex):(lt(this,"_monthsRegex")||(this._monthsRegex=pH),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function k0(){function n(d,f){return f.length-d.length}var e=[],t=[],r=[],i,s;for(i=0;i<12;i++)s=Or([2e3,i]),e.push(this.monthsShort(s,"")),t.push(this.months(s,"")),r.push(this.months(s,"")),r.push(this.monthsShort(s,""));for(e.sort(n),t.sort(n),r.sort(n),i=0;i<12;i++)e[i]=Rn(e[i]),t[i]=Rn(t[i]);for(i=0;i<24;i++)r[i]=Rn(r[i]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}Me("Y",0,0,function(){var n=this.year();return n<=9999?kr(n,4):"+"+n});Me(0,["YY",2],0,function(){return this.year()%100});Me(0,["YYYY",4],0,"year");Me(0,["YYYYY",5],0,"year");Me(0,["YYYYYY",6,!0],0,"year");on("year","y");an("year",1);Ae("Y",vu);Ae("YY",_t,Bn);Ae("YYYY",Sp,bp);Ae("YYYYY",gu,pu);Ae("YYYYYY",gu,pu);mt(["YYYYY","YYYYYY"],sn);mt("YYYY",function(n,e){e[sn]=n.length===2?xe.parseTwoDigitYear(n):qe(n)});mt("YY",function(n,e){e[sn]=xe.parseTwoDigitYear(n)});mt("Y",function(n,e){e[sn]=parseInt(n,10)});function Ho(n){return du(n)?366:365}xe.parseTwoDigitYear=function(n){return qe(n)+(qe(n)>68?1900:2e3)};var T0=io("FullYear",!0);function xH(){return du(this.year())}function _H(n,e,t,r,i,s,d){var f;return n<100&&n>=0?(f=new Date(n+400,e,t,r,i,s,d),isFinite(f.getFullYear())&&f.setFullYear(n)):f=new Date(n,e,t,r,i,s,d),f}function ga(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 cc(n,e,t){var r=7+e-t,i=(7+ga(n,0,r).getUTCDay()-e)%7;return-i+r-1}function A0(n,e,t,r,i){var s=(7+t-r)%7,d=cc(n,r,i),f=1+7*(e-1)+s+d,l,p;return f<=0?(l=n-1,p=Ho(l)+f):f>Ho(n)?(l=n+1,p=f-Ho(n)):(l=n,p=f),{year:l,dayOfYear:p}}function va(n,e,t){var r=cc(n.year(),e,t),i=Math.floor((n.dayOfYear()-r-1)/7)+1,s,d;return i<1?(d=n.year()-1,s=i+Zr(d,e,t)):i>Zr(n.year(),e,t)?(s=i-Zr(n.year(),e,t),d=n.year()+1):(d=n.year(),s=i),{week:s,year:d}}function Zr(n,e,t){var r=cc(n,e,t),i=cc(n+1,e,t);return(Ho(n)-r+i)/7}Me("w",["ww",2],"wo","week");Me("W",["WW",2],"Wo","isoWeek");on("week","w");on("isoWeek","W");an("week",5);an("isoWeek",5);Ae("w",_t);Ae("ww",_t,Bn);Ae("W",_t);Ae("WW",_t,Bn);Fa(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=qe(n)});function CH(n){return va(n,this._week.dow,this._week.doy).week}var EH={dow:0,doy:6};function kH(){return this._week.dow}function TH(){return this._week.doy}function AH(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function $H(n){var e=va(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Me("d",0,"do","day");Me("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Me("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Me("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Me("e",0,0,"weekday");Me("E",0,0,"isoWeekday");on("day","d");on("weekday","e");on("isoWeekday","E");an("day",11);an("weekday",11);an("isoWeekday",11);Ae("d",_t);Ae("e",_t);Ae("E",_t);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)});Fa(["dd","ddd","dddd"],function(n,e,t,r){var i=t._locale.weekdaysParse(n,r,t._strict);i!=null?e.d=i:Ge(t).invalidWeekday=n});Fa(["d","e","E"],function(n,e,t,r){e[r]=qe(n)});function OH(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function LH(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function xp(n,e){return n.slice(e,7).concat(n.slice(0,e))}var MH="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$0="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),RH="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),IH=Ba,NH=Ba,DH=Ba;function PH(n,e){var t=dr(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?xp(t,this._week.dow):n?t[n.day()]:t}function BH(n){return n===!0?xp(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function FH(n){return n===!0?xp(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function VH(n,e,t){var r,i,s,d=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=Or([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return t?e==="dddd"?(i=Pt.call(this._weekdaysParse,d),i!==-1?i:null):e==="ddd"?(i=Pt.call(this._shortWeekdaysParse,d),i!==-1?i:null):(i=Pt.call(this._minWeekdaysParse,d),i!==-1?i:null):e==="dddd"?(i=Pt.call(this._weekdaysParse,d),i!==-1||(i=Pt.call(this._shortWeekdaysParse,d),i!==-1)?i:(i=Pt.call(this._minWeekdaysParse,d),i!==-1?i:null)):e==="ddd"?(i=Pt.call(this._shortWeekdaysParse,d),i!==-1||(i=Pt.call(this._weekdaysParse,d),i!==-1)?i:(i=Pt.call(this._minWeekdaysParse,d),i!==-1?i:null)):(i=Pt.call(this._minWeekdaysParse,d),i!==-1||(i=Pt.call(this._weekdaysParse,d),i!==-1)?i:(i=Pt.call(this._shortWeekdaysParse,d),i!==-1?i:null))}function UH(n,e,t){var r,i,s;if(this._weekdaysParseExact)return VH.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Or([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function WH(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=OH(n,this.localeData()),this.add(n-e,"d")):e}function HH(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 jH(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=LH(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function zH(n){return this._weekdaysParseExact?(lt(this,"_weekdaysRegex")||_p.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(lt(this,"_weekdaysRegex")||(this._weekdaysRegex=IH),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function GH(n){return this._weekdaysParseExact?(lt(this,"_weekdaysRegex")||_p.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(lt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=NH),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function YH(n){return this._weekdaysParseExact?(lt(this,"_weekdaysRegex")||_p.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(lt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=DH),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function _p(){function n(a,o){return o.length-a.length}var e=[],t=[],r=[],i=[],s,d,f,l,p;for(s=0;s<7;s++)d=Or([2e3,1]).day(s),f=Rn(this.weekdaysMin(d,"")),l=Rn(this.weekdaysShort(d,"")),p=Rn(this.weekdays(d,"")),e.push(f),t.push(l),r.push(p),i.push(f),i.push(l),i.push(p);e.sort(n),t.sort(n),r.sort(n),i.sort(n),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Cp(){return this.hours()%12||12}function JH(){return this.hours()||24}Me("H",["HH",2],0,"hour");Me("h",["hh",2],0,Cp);Me("k",["kk",2],0,JH);Me("hmm",0,0,function(){return""+Cp.apply(this)+kr(this.minutes(),2)});Me("hmmss",0,0,function(){return""+Cp.apply(this)+kr(this.minutes(),2)+kr(this.seconds(),2)});Me("Hmm",0,0,function(){return""+this.hours()+kr(this.minutes(),2)});Me("Hmmss",0,0,function(){return""+this.hours()+kr(this.minutes(),2)+kr(this.seconds(),2)});function O0(n,e){Me(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}O0("a",!0);O0("A",!1);on("hour","h");an("hour",13);function L0(n,e){return e._meridiemParse}Ae("a",L0);Ae("A",L0);Ae("H",_t);Ae("h",_t);Ae("k",_t);Ae("HH",_t,Bn);Ae("hh",_t,Bn);Ae("kk",_t,Bn);Ae("hmm",b0);Ae("hmmss",S0);Ae("Hmm",b0);Ae("Hmmss",S0);mt(["H","HH"],jt);mt(["k","kk"],function(n,e,t){var r=qe(n);e[jt]=r===24?0:r});mt(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});mt(["h","hh"],function(n,e,t){e[jt]=qe(n),Ge(t).bigHour=!0});mt("hmm",function(n,e,t){var r=n.length-2;e[jt]=qe(n.substr(0,r)),e[ur]=qe(n.substr(r)),Ge(t).bigHour=!0});mt("hmmss",function(n,e,t){var r=n.length-4,i=n.length-2;e[jt]=qe(n.substr(0,r)),e[ur]=qe(n.substr(r,2)),e[Xr]=qe(n.substr(i)),Ge(t).bigHour=!0});mt("Hmm",function(n,e,t){var r=n.length-2;e[jt]=qe(n.substr(0,r)),e[ur]=qe(n.substr(r))});mt("Hmmss",function(n,e,t){var r=n.length-4,i=n.length-2;e[jt]=qe(n.substr(0,r)),e[ur]=qe(n.substr(r,2)),e[Xr]=qe(n.substr(i))});function KH(n){return(n+"").toLowerCase().charAt(0)==="p"}var XH=/[ap]\.?m?\.?/i,qH=io("Hours",!0);function ZH(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var M0={calendar:UW,longDateFormat:zW,invalidDate:YW,ordinal:KW,dayOfMonthOrdinalParse:XW,relativeTime:ZW,months:fH,monthsShort:x0,week:EH,weekdays:MH,weekdaysMin:RH,weekdaysShort:$0,meridiemParse:XH},kt={},Oo={},wa;function QH(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t<r;t+=1)if(n[t]!==e[t])return t;return r}function Yw(n){return n&&n.toLowerCase().replace("_","-")}function ej(n){for(var e=0,t,r,i,s;e<n.length;){for(s=Yw(n[e]).split("-"),t=s.length,r=Yw(n[e+1]),r=r?r.split("-"):null;t>0;){if(i=bu(s.slice(0,t).join("-")),i)return i;if(r&&r.length>=t&&QH(s,r)>=t-1)break;t--}e++}return wa}function tj(n){return n.match("^[^/\\\\]*$")!=null}function bu(n){var e=null,t;if(kt[n]===void 0&&typeof module<"u"&&module&&module.exports&&tj(n))try{e=wa._abbr,t=require,t("./locale/"+n),Oi(e)}catch{kt[n]=null}return kt[n]}function Oi(n,e){var t;return n&&(yn(e)?t=si(n):t=Ep(n,e),t?wa=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),wa._abbr}function Ep(n,e){if(e!==null){var t,r=M0;if(e.abbr=n,kt[n]!=null)p0("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."),r=kt[n]._config;else if(e.parentLocale!=null)if(kt[e.parentLocale]!=null)r=kt[e.parentLocale]._config;else if(t=bu(e.parentLocale),t!=null)r=t._config;else return Oo[e.parentLocale]||(Oo[e.parentLocale]=[]),Oo[e.parentLocale].push({name:n,config:e}),null;return kt[n]=new vp(td(r,e)),Oo[n]&&Oo[n].forEach(function(i){Ep(i.name,i.config)}),Oi(n),kt[n]}else return delete kt[n],null}function nj(n,e){if(e!=null){var t,r,i=M0;kt[n]!=null&&kt[n].parentLocale!=null?kt[n].set(td(kt[n]._config,e)):(r=bu(n),r!=null&&(i=r._config),e=td(i,e),r==null&&(e.abbr=n),t=new vp(e),t.parentLocale=kt[n],kt[n]=t),Oi(n)}else kt[n]!=null&&(kt[n].parentLocale!=null?(kt[n]=kt[n].parentLocale,n===Oi()&&Oi(n)):kt[n]!=null&&delete kt[n]);return kt[n]}function si(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return wa;if(!dr(n)){if(e=bu(n),e)return e;n=[n]}return ej(n)}function rj(){return nd(kt)}function kp(n){var e,t=n._a;return t&&Ge(n).overflow===-2&&(e=t[Kr]<0||t[Kr]>11?Kr:t[xr]<1||t[xr]>yu(t[sn],t[Kr])?xr:t[jt]<0||t[jt]>24||t[jt]===24&&(t[ur]!==0||t[Xr]!==0||t[Zi]!==0)?jt:t[ur]<0||t[ur]>59?ur:t[Xr]<0||t[Xr]>59?Xr:t[Zi]<0||t[Zi]>999?Zi:-1,Ge(n)._overflowDayOfYear&&(e<sn||e>xr)&&(e=xr),Ge(n)._overflowWeeks&&e===-1&&(e=cH),Ge(n)._overflowWeekday&&e===-1&&(e=uH),Ge(n).overflow=e),n}var ij=/^\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)?)?$/,sj=/^\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)?)?$/,oj=/Z|[+-]\d\d(?::?\d\d)?/,Dl=[["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]],lf=[["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/]],aj=/^\/?Date\((-?\d+)/i,lj=/^(?:(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}))$/,cj={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function R0(n){var e,t,r=n._i,i=ij.exec(r)||sj.exec(r),s,d,f,l,p=Dl.length,a=lf.length;if(i){for(Ge(n).iso=!0,e=0,t=p;e<t;e++)if(Dl[e][1].exec(i[1])){d=Dl[e][0],s=Dl[e][2]!==!1;break}if(d==null){n._isValid=!1;return}if(i[3]){for(e=0,t=a;e<t;e++)if(lf[e][1].exec(i[3])){f=(i[2]||" ")+lf[e][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(oj.exec(i[4]))l="Z";else{n._isValid=!1;return}n._f=d+(f||"")+(l||""),Ap(n)}else n._isValid=!1}function uj(n,e,t,r,i,s){var d=[hj(n),x0.indexOf(e),parseInt(t,10),parseInt(r,10),parseInt(i,10)];return s&&d.push(parseInt(s,10)),d}function hj(n){var e=parseInt(n,10);return e<=49?2e3+e:e<=999?1900+e:e}function fj(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function dj(n,e,t){if(n){var r=$0.indexOf(n),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return Ge(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function pj(n,e,t){if(n)return cj[n];if(e)return 0;var r=parseInt(t,10),i=r%100,s=(r-i)/100;return s*60+i}function I0(n){var e=lj.exec(fj(n._i)),t;if(e){if(t=uj(e[4],e[3],e[2],e[5],e[6],e[7]),!dj(e[1],t,n))return;n._a=t,n._tzm=pj(e[8],e[9],e[10]),n._d=ga.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),Ge(n).rfc2822=!0}else n._isValid=!1}function mj(n){var e=aj.exec(n._i);if(e!==null){n._d=new Date(+e[1]);return}if(R0(n),n._isValid===!1)delete n._isValid;else return;if(I0(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:xe.createFromInputFallback(n)}xe.createFromInputFallback=er("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 Is(n,e,t){return n??e??t}function gj(n){var e=new Date(xe.now());return n._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Tp(n){var e,t,r=[],i,s,d;if(!n._d){for(i=gj(n),n._w&&n._a[xr]==null&&n._a[Kr]==null&&vj(n),n._dayOfYear!=null&&(d=Is(n._a[sn],i[sn]),(n._dayOfYear>Ho(d)||n._dayOfYear===0)&&(Ge(n)._overflowDayOfYear=!0),t=ga(d,0,n._dayOfYear),n._a[Kr]=t.getUTCMonth(),n._a[xr]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=i[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[jt]===24&&n._a[ur]===0&&n._a[Xr]===0&&n._a[Zi]===0&&(n._nextDay=!0,n._a[jt]=0),n._d=(n._useUTC?ga:_H).apply(null,r),s=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[jt]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==s&&(Ge(n).weekdayMismatch=!0)}}function vj(n){var e,t,r,i,s,d,f,l,p;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,d=4,t=Is(e.GG,n._a[sn],va(xt(),1,4).year),r=Is(e.W,1),i=Is(e.E,1),(i<1||i>7)&&(l=!0)):(s=n._locale._week.dow,d=n._locale._week.doy,p=va(xt(),s,d),t=Is(e.gg,n._a[sn],p.year),r=Is(e.w,p.week),e.d!=null?(i=e.d,(i<0||i>6)&&(l=!0)):e.e!=null?(i=e.e+s,(e.e<0||e.e>6)&&(l=!0)):i=s),r<1||r>Zr(t,s,d)?Ge(n)._overflowWeeks=!0:l!=null?Ge(n)._overflowWeekday=!0:(f=A0(t,r,i,s,d),n._a[sn]=f.year,n._dayOfYear=f.dayOfYear)}xe.ISO_8601=function(){};xe.RFC_2822=function(){};function Ap(n){if(n._f===xe.ISO_8601){R0(n);return}if(n._f===xe.RFC_2822){I0(n);return}n._a=[],Ge(n).empty=!0;var e=""+n._i,t,r,i,s,d,f=e.length,l=0,p,a;for(i=m0(n._f,n._locale).match(wp)||[],a=i.length,t=0;t<a;t++)s=i[t],r=(e.match(oH(s,n))||[])[0],r&&(d=e.substr(0,e.indexOf(r)),d.length>0&&Ge(n).unusedInput.push(d),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Vs[s]?(r?Ge(n).empty=!1:Ge(n).unusedTokens.push(s),lH(s,r,n)):n._strict&&!r&&Ge(n).unusedTokens.push(s);Ge(n).charsLeftOver=f-l,e.length>0&&Ge(n).unusedInput.push(e),n._a[jt]<=12&&Ge(n).bigHour===!0&&n._a[jt]>0&&(Ge(n).bigHour=void 0),Ge(n).parsedDateParts=n._a.slice(0),Ge(n).meridiem=n._meridiem,n._a[jt]=wj(n._locale,n._a[jt],n._meridiem),p=Ge(n).era,p!==null&&(n._a[sn]=n._locale.erasConvertYear(p,n._a[sn])),Tp(n),kp(n)}function wj(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function yj(n){var e,t,r,i,s,d,f=!1,l=n._f.length;if(l===0){Ge(n).invalidFormat=!0,n._d=new Date(NaN);return}for(i=0;i<l;i++)s=0,d=!1,e=gp({},n),n._useUTC!=null&&(e._useUTC=n._useUTC),e._f=n._f[i],Ap(e),mp(e)&&(d=!0),s+=Ge(e).charsLeftOver,s+=Ge(e).unusedTokens.length*10,Ge(e).score=s,f?s<r&&(r=s,t=e):(r==null||s<r||d)&&(r=s,t=e,d&&(f=!0));Ei(n,t||e)}function bj(n){if(!n._d){var e=yp(n._i),t=e.day===void 0?e.date:e.day;n._a=f0([e.year,e.month,t,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),Tp(n)}}function Sj(n){var e=new Pa(kp(N0(n)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function N0(n){var e=n._i,t=n._f;return n._locale=n._locale||si(n._l),e===null||t===void 0&&e===""?fu({nullInput:!0}):(typeof e=="string"&&(n._i=e=n._locale.preparse(e)),pr(e)?new Pa(kp(e)):(Da(e)?n._d=e:dr(t)?yj(n):t?Ap(n):xj(n),mp(n)||(n._d=null),n))}function xj(n){var e=n._i;yn(e)?n._d=new Date(xe.now()):Da(e)?n._d=new Date(e.valueOf()):typeof e=="string"?mj(n):dr(e)?(n._a=f0(e.slice(0),function(t){return parseInt(t,10)}),Tp(n)):es(e)?bj(n):ei(e)?n._d=new Date(e):xe.createFromInputFallback(n)}function D0(n,e,t,r,i){var s={};return(e===!0||e===!1)&&(r=e,e=void 0),(t===!0||t===!1)&&(r=t,t=void 0),(es(n)&&pp(n)||dr(n)&&n.length===0)&&(n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=t,s._i=n,s._f=e,s._strict=r,Sj(s)}function xt(n,e,t,r){return D0(n,e,t,r,!1)}var _j=er("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=xt.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:fu()}),Cj=er("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=xt.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:fu()});function P0(n,e){var t,r;if(e.length===1&&dr(e[0])&&(e=e[0]),!e.length)return xt();for(t=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][n](t))&&(t=e[r]);return t}function Ej(){var n=[].slice.call(arguments,0);return P0("isBefore",n)}function kj(){var n=[].slice.call(arguments,0);return P0("isAfter",n)}var Tj=function(){return Date.now?Date.now():+new Date},Lo=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Aj(n){var e,t=!1,r,i=Lo.length;for(e in n)if(lt(n,e)&&!(Pt.call(Lo,e)!==-1&&(n[e]==null||!isNaN(n[e]))))return!1;for(r=0;r<i;++r)if(n[Lo[r]]){if(t)return!1;parseFloat(n[Lo[r]])!==qe(n[Lo[r]])&&(t=!0)}return!0}function $j(){return this._isValid}function Oj(){return mr(NaN)}function Su(n){var e=yp(n),t=e.year||0,r=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,d=e.day||0,f=e.hour||0,l=e.minute||0,p=e.second||0,a=e.millisecond||0;this._isValid=Aj(e),this._milliseconds=+a+p*1e3+l*6e4+f*1e3*60*60,this._days=+d+s*7,this._months=+i+r*3+t*12,this._data={},this._locale=si(),this._bubble()}function Gl(n){return n instanceof Su}function id(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function Lj(n,e,t){var r=Math.min(n.length,e.length),i=Math.abs(n.length-e.length),s=0,d;for(d=0;d<r;d++)(t&&n[d]!==e[d]||!t&&qe(n[d])!==qe(e[d]))&&s++;return s+i}function B0(n,e){Me(n,0,0,function(){var t=this.utcOffset(),r="+";return t<0&&(t=-t,r="-"),r+kr(~~(t/60),2)+e+kr(~~t%60,2)})}B0("Z",":");B0("ZZ","");Ae("Z",wu);Ae("ZZ",wu);mt(["Z","ZZ"],function(n,e,t){t._useUTC=!0,t._tzm=$p(wu,n)});var Mj=/([\+\-]|\d\d)/gi;function $p(n,e){var t=(e||"").match(n),r,i,s;return t===null?null:(r=t[t.length-1]||[],i=(r+"").match(Mj)||["-",0,0],s=+(i[1]*60)+qe(i[2]),s===0?0:i[0]==="+"?s:-s)}function Op(n,e){var t,r;return e._isUTC?(t=e.clone(),r=(pr(n)||Da(n)?n.valueOf():xt(n).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+r),xe.updateOffset(t,!1),t):xt(n).local()}function sd(n){return-Math.round(n._d.getTimezoneOffset())}xe.updateOffset=function(){};function Rj(n,e,t){var r=this._offset||0,i;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=$p(wu,n),n===null)return this}else Math.abs(n)<16&&!t&&(n=n*60);return!this._isUTC&&e&&(i=sd(this)),this._offset=n,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==n&&(!e||this._changeInProgress?U0(this,mr(n-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,xe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:sd(this)}function Ij(n,e){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,e),this):-this.utcOffset()}function Nj(n){return this.utcOffset(0,n)}function Dj(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(sd(this),"m")),this}function Pj(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=$p(iH,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function Bj(n){return this.isValid()?(n=n?xt(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function Fj(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vj(){if(!yn(this._isDSTShifted))return this._isDSTShifted;var n={},e;return gp(n,this),n=N0(n),n._a?(e=n._isUTC?Or(n._a):xt(n._a),this._isDSTShifted=this.isValid()&&Lj(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Uj(){return this.isValid()?!this._isUTC:!1}function Wj(){return this.isValid()?this._isUTC:!1}function F0(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Hj=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jj=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mr(n,e){var t=n,r=null,i,s,d;return Gl(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:ei(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=Hj.exec(n))?(i=r[1]==="-"?-1:1,t={y:0,d:qe(r[xr])*i,h:qe(r[jt])*i,m:qe(r[ur])*i,s:qe(r[Xr])*i,ms:qe(id(r[Zi]*1e3))*i}):(r=jj.exec(n))?(i=r[1]==="-"?-1:1,t={y:zi(r[2],i),M:zi(r[3],i),w:zi(r[4],i),d:zi(r[5],i),h:zi(r[6],i),m:zi(r[7],i),s:zi(r[8],i)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(d=zj(xt(t.from),xt(t.to)),t={},t.ms=d.milliseconds,t.M=d.months),s=new Su(t),Gl(n)&<(n,"_locale")&&(s._locale=n._locale),Gl(n)&<(n,"_isValid")&&(s._isValid=n._isValid),s}mr.fn=Su.prototype;mr.invalid=Oj;function zi(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function Jw(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 zj(n,e){var t;return n.isValid()&&e.isValid()?(e=Op(e,n),n.isBefore(e)?t=Jw(n,e):(t=Jw(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function V0(n,e){return function(t,r){var i,s;return r!==null&&!isNaN(+r)&&(p0(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=r,r=s),i=mr(t,r),U0(this,i,n),this}}function U0(n,e,t,r){var i=e._milliseconds,s=id(e._days),d=id(e._months);!n.isValid()||(r=r??!0,d&&C0(n,ac(n,"Month")+d*t),s&&v0(n,"Date",ac(n,"Date")+s*t),i&&n._d.setTime(n._d.valueOf()+i*t),r&&xe.updateOffset(n,s||d))}var Gj=V0(1,"add"),Yj=V0(-1,"subtract");function W0(n){return typeof n=="string"||n instanceof String}function Jj(n){return pr(n)||Da(n)||W0(n)||ei(n)||Xj(n)||Kj(n)||n===null||n===void 0}function Kj(n){var e=es(n)&&!pp(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,s,d=r.length;for(i=0;i<d;i+=1)s=r[i],t=t||lt(n,s);return e&&t}function Xj(n){var e=dr(n),t=!1;return e&&(t=n.filter(function(r){return!ei(r)&&W0(n)}).length===0),e&&t}function qj(n){var e=es(n)&&!pp(n),t=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,s;for(i=0;i<r.length;i+=1)s=r[i],t=t||lt(n,s);return e&&t}function Zj(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 Qj(n,e){arguments.length===1&&(arguments[0]?Jj(arguments[0])?(n=arguments[0],e=void 0):qj(arguments[0])&&(e=arguments[0],n=void 0):(n=void 0,e=void 0));var t=n||xt(),r=Op(t,this).startOf("day"),i=xe.calendarFormat(this,r)||"sameElse",s=e&&(Lr(e[i])?e[i].call(this,t):e[i]);return this.format(s||this.localeData().calendar(i,this,xt(t)))}function ez(){return new Pa(this)}function tz(n,e){var t=pr(n)?n:xt(n);return this.isValid()&&t.isValid()?(e=tr(e)||"millisecond",e==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf()):!1}function nz(n,e){var t=pr(n)?n:xt(n);return this.isValid()&&t.isValid()?(e=tr(e)||"millisecond",e==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf()):!1}function rz(n,e,t,r){var i=pr(n)?n:xt(n),s=pr(e)?e:xt(e);return this.isValid()&&i.isValid()&&s.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,t):!this.isBefore(i,t))&&(r[1]===")"?this.isBefore(s,t):!this.isAfter(s,t))):!1}function iz(n,e){var t=pr(n)?n:xt(n),r;return this.isValid()&&t.isValid()?(e=tr(e)||"millisecond",e==="millisecond"?this.valueOf()===t.valueOf():(r=t.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function sz(n,e){return this.isSame(n,e)||this.isAfter(n,e)}function oz(n,e){return this.isSame(n,e)||this.isBefore(n,e)}function az(n,e,t){var r,i,s;if(!this.isValid())return NaN;if(r=Op(n,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,e=tr(e),e){case"year":s=Yl(this,r)/12;break;case"month":s=Yl(this,r);break;case"quarter":s=Yl(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return t?s:Kn(s)}function Yl(n,e){if(n.date()<e.date())return-Yl(e,n);var t=(e.year()-n.year())*12+(e.month()-n.month()),r=n.clone().add(t,"months"),i,s;return e-r<0?(i=n.clone().add(t-1,"months"),s=(e-r)/(r-i)):(i=n.clone().add(t+1,"months"),s=(e-r)/(i-r)),-(t+s)||0}xe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";xe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function lz(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function cz(n){if(!this.isValid())return null;var e=n!==!0,t=e?this.clone().utc():this;return t.year()<0||t.year()>9999?zl(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Lr(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",zl(t,"Z")):zl(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function uz(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,i,s;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(t+r+i+s)}function hz(n){n||(n=this.isUtc()?xe.defaultFormatUtc:xe.defaultFormat);var e=zl(this,n);return this.localeData().postformat(e)}function fz(n,e){return this.isValid()&&(pr(n)&&n.isValid()||xt(n).isValid())?mr({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dz(n){return this.from(xt(),n)}function pz(n,e){return this.isValid()&&(pr(n)&&n.isValid()||xt(n).isValid())?mr({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mz(n){return this.to(xt(),n)}function H0(n){var e;return n===void 0?this._locale._abbr:(e=si(n),e!=null&&(this._locale=e),this)}var j0=er("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 z0(){return this._locale}var uc=1e3,Us=60*uc,hc=60*Us,G0=(365*400+97)*24*hc;function Ws(n,e){return(n%e+e)%e}function Y0(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-G0:new Date(n,e,t).valueOf()}function J0(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-G0:Date.UTC(n,e,t)}function gz(n){var e,t;if(n=tr(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?J0:Y0,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-=Ws(e+(this._isUTC?0:this.utcOffset()*Us),hc);break;case"minute":e=this._d.valueOf(),e-=Ws(e,Us);break;case"second":e=this._d.valueOf(),e-=Ws(e,uc);break}return this._d.setTime(e),xe.updateOffset(this,!0),this}function vz(n){var e,t;if(n=tr(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?J0:Y0,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+=hc-Ws(e+(this._isUTC?0:this.utcOffset()*Us),hc)-1;break;case"minute":e=this._d.valueOf(),e+=Us-Ws(e,Us)-1;break;case"second":e=this._d.valueOf(),e+=uc-Ws(e,uc)-1;break}return this._d.setTime(e),xe.updateOffset(this,!0),this}function wz(){return this._d.valueOf()-(this._offset||0)*6e4}function yz(){return Math.floor(this.valueOf()/1e3)}function bz(){return new Date(this.valueOf())}function Sz(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function xz(){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 _z(){return this.isValid()?this.toISOString():null}function Cz(){return mp(this)}function Ez(){return Ei({},Ge(this))}function kz(){return Ge(this).overflow}function Tz(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Me("N",0,0,"eraAbbr");Me("NN",0,0,"eraAbbr");Me("NNN",0,0,"eraAbbr");Me("NNNN",0,0,"eraName");Me("NNNNN",0,0,"eraNarrow");Me("y",["y",1],"yo","eraYear");Me("y",["yy",2],0,"eraYear");Me("y",["yyy",3],0,"eraYear");Me("y",["yyyy",4],0,"eraYear");Ae("N",Lp);Ae("NN",Lp);Ae("NNN",Lp);Ae("NNNN",Bz);Ae("NNNNN",Fz);mt(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var i=t._locale.erasParse(n,r,t._strict);i?Ge(t).era=i:Ge(t).invalidEra=n});Ae("y",so);Ae("yy",so);Ae("yyy",so);Ae("yyyy",so);Ae("yo",Vz);mt(["y","yy","yyy","yyyy"],sn);mt(["yo"],function(n,e,t,r){var i;t._locale._eraYearOrdinalRegex&&(i=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[sn]=t._locale.eraYearOrdinalParse(n,i):e[sn]=parseInt(n,10)});function Az(n,e){var t,r,i,s=this._eras||si("en")._eras;for(t=0,r=s.length;t<r;++t){switch(typeof s[t].since){case"string":i=xe(s[t].since).startOf("day"),s[t].since=i.valueOf();break}switch(typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":i=xe(s[t].until).startOf("day").valueOf(),s[t].until=i.valueOf();break}}return s}function $z(n,e,t){var r,i,s=this.eras(),d,f,l;for(n=n.toUpperCase(),r=0,i=s.length;r<i;++r)if(d=s[r].name.toUpperCase(),f=s[r].abbr.toUpperCase(),l=s[r].narrow.toUpperCase(),t)switch(e){case"N":case"NN":case"NNN":if(f===n)return s[r];break;case"NNNN":if(d===n)return s[r];break;case"NNNNN":if(l===n)return s[r];break}else if([d,f,l].indexOf(n)>=0)return s[r]}function Oz(n,e){var t=n.since<=n.until?1:-1;return e===void 0?xe(n.since).year():xe(n.since).year()+(e-n.offset)*t}function Lz(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return r[n].name;return""}function Mz(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return r[n].narrow;return""}function Rz(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return r[n].abbr;return""}function Iz(){var n,e,t,r,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=i[n].since<=i[n].until?1:-1,r=this.clone().startOf("day").valueOf(),i[n].since<=r&&r<=i[n].until||i[n].until<=r&&r<=i[n].since)return(this.year()-xe(i[n].since).year())*t+i[n].offset;return this.year()}function Nz(n){return lt(this,"_erasNameRegex")||Mp.call(this),n?this._erasNameRegex:this._erasRegex}function Dz(n){return lt(this,"_erasAbbrRegex")||Mp.call(this),n?this._erasAbbrRegex:this._erasRegex}function Pz(n){return lt(this,"_erasNarrowRegex")||Mp.call(this),n?this._erasNarrowRegex:this._erasRegex}function Lp(n,e){return e.erasAbbrRegex(n)}function Bz(n,e){return e.erasNameRegex(n)}function Fz(n,e){return e.erasNarrowRegex(n)}function Vz(n,e){return e._eraYearOrdinalRegex||so}function Mp(){var n=[],e=[],t=[],r=[],i,s,d=this.eras();for(i=0,s=d.length;i<s;++i)e.push(Rn(d[i].name)),n.push(Rn(d[i].abbr)),t.push(Rn(d[i].narrow)),r.push(Rn(d[i].name)),r.push(Rn(d[i].abbr)),r.push(Rn(d[i].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}Me(0,["gg",2],0,function(){return this.weekYear()%100});Me(0,["GG",2],0,function(){return this.isoWeekYear()%100});function xu(n,e){Me(0,[n,n.length],0,e)}xu("gggg","weekYear");xu("ggggg","weekYear");xu("GGGG","isoWeekYear");xu("GGGGG","isoWeekYear");on("weekYear","gg");on("isoWeekYear","GG");an("weekYear",1);an("isoWeekYear",1);Ae("G",vu);Ae("g",vu);Ae("GG",_t,Bn);Ae("gg",_t,Bn);Ae("GGGG",Sp,bp);Ae("gggg",Sp,bp);Ae("GGGGG",gu,pu);Ae("ggggg",gu,pu);Fa(["gggg","ggggg","GGGG","GGGGG"],function(n,e,t,r){e[r.substr(0,2)]=qe(n)});Fa(["gg","GG"],function(n,e,t,r){e[r]=xe.parseTwoDigitYear(n)});function Uz(n){return K0.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wz(n){return K0.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function Hz(){return Zr(this.year(),1,4)}function jz(){return Zr(this.isoWeekYear(),1,4)}function zz(){var n=this.localeData()._week;return Zr(this.year(),n.dow,n.doy)}function Gz(){var n=this.localeData()._week;return Zr(this.weekYear(),n.dow,n.doy)}function K0(n,e,t,r,i){var s;return n==null?va(this,r,i).year:(s=Zr(n,r,i),e>s&&(e=s),Yz.call(this,n,e,t,r,i))}function Yz(n,e,t,r,i){var s=A0(n,e,t,r,i),d=ga(s.year,0,s.dayOfYear);return this.year(d.getUTCFullYear()),this.month(d.getUTCMonth()),this.date(d.getUTCDate()),this}Me("Q",0,"Qo","quarter");on("quarter","Q");an("quarter",7);Ae("Q",w0);mt("Q",function(n,e){e[Kr]=(qe(n)-1)*3});function Jz(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Me("D",["DD",2],"Do","date");on("date","D");an("date",9);Ae("D",_t);Ae("DD",_t,Bn);Ae("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});mt(["D","DD"],xr);mt("Do",function(n,e){e[xr]=qe(n.match(_t)[0])});var X0=io("Date",!0);Me("DDD",["DDDD",3],"DDDo","dayOfYear");on("dayOfYear","DDD");an("dayOfYear",4);Ae("DDD",mu);Ae("DDDD",y0);mt(["DDD","DDDD"],function(n,e,t){t._dayOfYear=qe(n)});function Kz(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Me("m",["mm",2],0,"minute");on("minute","m");an("minute",14);Ae("m",_t);Ae("mm",_t,Bn);mt(["m","mm"],ur);var Xz=io("Minutes",!1);Me("s",["ss",2],0,"second");on("second","s");an("second",15);Ae("s",_t);Ae("ss",_t,Bn);mt(["s","ss"],Xr);var qz=io("Seconds",!1);Me("S",0,0,function(){return~~(this.millisecond()/100)});Me(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Me(0,["SSS",3],0,"millisecond");Me(0,["SSSS",4],0,function(){return this.millisecond()*10});Me(0,["SSSSS",5],0,function(){return this.millisecond()*100});Me(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Me(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Me(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Me(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});on("millisecond","ms");an("millisecond",16);Ae("S",mu,w0);Ae("SS",mu,Bn);Ae("SSS",mu,y0);var ki,q0;for(ki="SSSS";ki.length<=9;ki+="S")Ae(ki,so);function Zz(n,e){e[Zi]=qe(("0."+n)*1e3)}for(ki="S";ki.length<=9;ki+="S")mt(ki,Zz);q0=io("Milliseconds",!1);Me("z",0,0,"zoneAbbr");Me("zz",0,0,"zoneName");function Qz(){return this._isUTC?"UTC":""}function e4(){return this._isUTC?"Coordinated Universal Time":""}var ge=Pa.prototype;ge.add=Gj;ge.calendar=Qj;ge.clone=ez;ge.diff=az;ge.endOf=vz;ge.format=hz;ge.from=fz;ge.fromNow=dz;ge.to=pz;ge.toNow=mz;ge.get=nH;ge.invalidAt=kz;ge.isAfter=tz;ge.isBefore=nz;ge.isBetween=rz;ge.isSame=iz;ge.isSameOrAfter=sz;ge.isSameOrBefore=oz;ge.isValid=Cz;ge.lang=j0;ge.locale=H0;ge.localeData=z0;ge.max=Cj;ge.min=_j;ge.parsingFlags=Ez;ge.set=rH;ge.startOf=gz;ge.subtract=Yj;ge.toArray=Sz;ge.toObject=xz;ge.toDate=bz;ge.toISOString=cz;ge.inspect=uz;typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ge.toJSON=_z;ge.toString=lz;ge.unix=yz;ge.valueOf=wz;ge.creationData=Tz;ge.eraName=Lz;ge.eraNarrow=Mz;ge.eraAbbr=Rz;ge.eraYear=Iz;ge.year=T0;ge.isLeapYear=xH;ge.weekYear=Uz;ge.isoWeekYear=Wz;ge.quarter=ge.quarters=Jz;ge.month=E0;ge.daysInMonth=yH;ge.week=ge.weeks=AH;ge.isoWeek=ge.isoWeeks=$H;ge.weeksInYear=zz;ge.weeksInWeekYear=Gz;ge.isoWeeksInYear=Hz;ge.isoWeeksInISOWeekYear=jz;ge.date=X0;ge.day=ge.days=WH;ge.weekday=HH;ge.isoWeekday=jH;ge.dayOfYear=Kz;ge.hour=ge.hours=qH;ge.minute=ge.minutes=Xz;ge.second=ge.seconds=qz;ge.millisecond=ge.milliseconds=q0;ge.utcOffset=Rj;ge.utc=Nj;ge.local=Dj;ge.parseZone=Pj;ge.hasAlignedHourOffset=Bj;ge.isDST=Fj;ge.isLocal=Uj;ge.isUtcOffset=Wj;ge.isUtc=F0;ge.isUTC=F0;ge.zoneAbbr=Qz;ge.zoneName=e4;ge.dates=er("dates accessor is deprecated. Use date instead.",X0);ge.months=er("months accessor is deprecated. Use month instead",E0);ge.years=er("years accessor is deprecated. Use year instead",T0);ge.zone=er("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ij);ge.isDSTShifted=er("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vj);function t4(n){return xt(n*1e3)}function n4(){return xt.apply(null,arguments).parseZone()}function Z0(n){return n}var ct=vp.prototype;ct.calendar=WW;ct.longDateFormat=GW;ct.invalidDate=JW;ct.ordinal=qW;ct.preparse=Z0;ct.postformat=Z0;ct.relativeTime=QW;ct.pastFuture=eH;ct.set=VW;ct.eras=Az;ct.erasParse=$z;ct.erasConvertYear=Oz;ct.erasAbbrRegex=Dz;ct.erasNameRegex=Nz;ct.erasNarrowRegex=Pz;ct.months=mH;ct.monthsShort=gH;ct.monthsParse=wH;ct.monthsRegex=SH;ct.monthsShortRegex=bH;ct.week=CH;ct.firstDayOfYear=TH;ct.firstDayOfWeek=kH;ct.weekdays=PH;ct.weekdaysMin=FH;ct.weekdaysShort=BH;ct.weekdaysParse=UH;ct.weekdaysRegex=zH;ct.weekdaysShortRegex=GH;ct.weekdaysMinRegex=YH;ct.isPM=KH;ct.meridiem=ZH;function fc(n,e,t,r){var i=si(),s=Or().set(r,e);return i[t](s,n)}function Q0(n,e,t){if(ei(n)&&(e=n,n=void 0),n=n||"",e!=null)return fc(n,e,t,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fc(n,r,t,"month");return i}function Rp(n,e,t,r){typeof n=="boolean"?(ei(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,ei(e)&&(t=e,e=void 0),e=e||"");var i=si(),s=n?i._week.dow:0,d,f=[];if(t!=null)return fc(e,(t+s)%7,r,"day");for(d=0;d<7;d++)f[d]=fc(e,(d+s)%7,r,"day");return f}function r4(n,e){return Q0(n,e,"months")}function i4(n,e){return Q0(n,e,"monthsShort")}function s4(n,e,t){return Rp(n,e,t,"weekdays")}function o4(n,e,t){return Rp(n,e,t,"weekdaysShort")}function a4(n,e,t){return Rp(n,e,t,"weekdaysMin")}Oi("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=qe(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});xe.lang=er("moment.lang is deprecated. Use moment.locale instead.",Oi);xe.langData=er("moment.langData is deprecated. Use moment.localeData instead.",si);var Wr=Math.abs;function l4(){var n=this._data;return this._milliseconds=Wr(this._milliseconds),this._days=Wr(this._days),this._months=Wr(this._months),n.milliseconds=Wr(n.milliseconds),n.seconds=Wr(n.seconds),n.minutes=Wr(n.minutes),n.hours=Wr(n.hours),n.months=Wr(n.months),n.years=Wr(n.years),this}function eS(n,e,t,r){var i=mr(e,t);return n._milliseconds+=r*i._milliseconds,n._days+=r*i._days,n._months+=r*i._months,n._bubble()}function c4(n,e){return eS(this,n,e,1)}function u4(n,e){return eS(this,n,e,-1)}function Kw(n){return n<0?Math.floor(n):Math.ceil(n)}function h4(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,i,s,d,f,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=Kw(od(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,i=Kn(n/1e3),r.seconds=i%60,s=Kn(i/60),r.minutes=s%60,d=Kn(s/60),r.hours=d%24,e+=Kn(d/24),l=Kn(tS(e)),t+=l,e-=Kw(od(l)),f=Kn(t/12),t%=12,r.days=e,r.months=t,r.years=f,this}function tS(n){return n*4800/146097}function od(n){return n*146097/4800}function f4(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=tr(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+tS(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(od(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function d4(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+qe(this._months/12)*31536e6:NaN}function oi(n){return function(){return this.as(n)}}var p4=oi("ms"),m4=oi("s"),g4=oi("m"),v4=oi("h"),w4=oi("d"),y4=oi("w"),b4=oi("M"),S4=oi("Q"),x4=oi("y");function _4(){return mr(this)}function C4(n){return n=tr(n),this.isValid()?this[n+"s"]():NaN}function fs(n){return function(){return this.isValid()?this._data[n]:NaN}}var E4=fs("milliseconds"),k4=fs("seconds"),T4=fs("minutes"),A4=fs("hours"),$4=fs("days"),O4=fs("months"),L4=fs("years");function M4(){return Kn(this.days()/7)}var jr=Math.round,Ps={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function R4(n,e,t,r,i){return i.relativeTime(e||1,!!t,n,r)}function I4(n,e,t,r){var i=mr(n).abs(),s=jr(i.as("s")),d=jr(i.as("m")),f=jr(i.as("h")),l=jr(i.as("d")),p=jr(i.as("M")),a=jr(i.as("w")),o=jr(i.as("y")),h=s<=t.ss&&["s",s]||s<t.s&&["ss",s]||d<=1&&["m"]||d<t.m&&["mm",d]||f<=1&&["h"]||f<t.h&&["hh",f]||l<=1&&["d"]||l<t.d&&["dd",l];return t.w!=null&&(h=h||a<=1&&["w"]||a<t.w&&["ww",a]),h=h||p<=1&&["M"]||p<t.M&&["MM",p]||o<=1&&["y"]||["yy",o],h[2]=e,h[3]=+n>0,h[4]=r,R4.apply(null,h)}function N4(n){return n===void 0?jr:typeof n=="function"?(jr=n,!0):!1}function D4(n,e){return Ps[n]===void 0?!1:e===void 0?Ps[n]:(Ps[n]=e,n==="s"&&(Ps.ss=e-1),!0)}function P4(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ps,i,s;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ps,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),i=this.localeData(),s=I4(this,!t,r,i),t&&(s=i.pastFuture(+this,s)),i.postformat(s)}var cf=Math.abs;function Ls(n){return(n>0)-(n<0)||+n}function _u(){if(!this.isValid())return this.localeData().invalidDate();var n=cf(this._milliseconds)/1e3,e=cf(this._days),t=cf(this._months),r,i,s,d,f=this.asSeconds(),l,p,a,o;return f?(r=Kn(n/60),i=Kn(r/60),n%=60,r%=60,s=Kn(t/12),t%=12,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=f<0?"-":"",p=Ls(this._months)!==Ls(f)?"-":"",a=Ls(this._days)!==Ls(f)?"-":"",o=Ls(this._milliseconds)!==Ls(f)?"-":"",l+"P"+(s?p+s+"Y":"")+(t?p+t+"M":"")+(e?a+e+"D":"")+(i||r||n?"T":"")+(i?o+i+"H":"")+(r?o+r+"M":"")+(n?o+d+"S":"")):"P0D"}var st=Su.prototype;st.isValid=$j;st.abs=l4;st.add=c4;st.subtract=u4;st.as=f4;st.asMilliseconds=p4;st.asSeconds=m4;st.asMinutes=g4;st.asHours=v4;st.asDays=w4;st.asWeeks=y4;st.asMonths=b4;st.asQuarters=S4;st.asYears=x4;st.valueOf=d4;st._bubble=h4;st.clone=_4;st.get=C4;st.milliseconds=E4;st.seconds=k4;st.minutes=T4;st.hours=A4;st.days=$4;st.weeks=M4;st.months=O4;st.years=L4;st.humanize=P4;st.toISOString=_u;st.toString=_u;st.toJSON=_u;st.locale=H0;st.localeData=z0;st.toIsoString=er("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_u);st.lang=j0;Me("X",0,0,"unix");Me("x",0,0,"valueOf");Ae("x",vu);Ae("X",sH);mt("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});mt("x",function(n,e,t){t._d=new Date(qe(n))});//! moment.js
|
|
1100
|
-
xe.version="2.29.4";BW(xt);xe.fn=ge;xe.min=Ej;xe.max=kj;xe.now=Tj;xe.utc=Or;xe.unix=t4;xe.months=r4;xe.isDate=Da;xe.locale=Oi;xe.invalid=fu;xe.duration=mr;xe.isMoment=pr;xe.weekdays=s4;xe.parseZone=n4;xe.localeData=si;xe.isDuration=Gl;xe.monthsShort=i4;xe.weekdaysMin=a4;xe.defineLocale=Ep;xe.updateLocale=nj;xe.locales=rj;xe.weekdaysShort=o4;xe.normalizeUnits=tr;xe.relativeTimeRounding=N4;xe.relativeTimeThreshold=D4;xe.calendarFormat=Zj;xe.prototype=ge;xe.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 B4={class:"tw-text-[#a5a5a5] tw-text-xs"},F4={key:1},V4={key:1,class:"tw-text-[#a5a5a5]"},U4={key:2,class:"tw-text-[#a5a5a5]"},W4={key:5,class:"tw-flex tw-justify-center"},H4={key:6,class:"tw-text-right"},j4={key:8},z4=c.defineComponent({__name:"vc-table-cell",props:{cell:{default:void 0},item:{default:void 0}},setup(n){const e=n,t=window.navigator.language,r=c.computed(()=>(e.cell.field||e.cell.id).split(".").reduce((i,s)=>i&&Array.isArray(i)&&i.length?i&&i[0][s]||null:i&&i[s]||null,e.item));return(i,s)=>n.cell.type==="money"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.unref(r)>0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("span",null,c.toDisplayString(Math.trunc(Number(c.unref(r)))),1),c.createElementVNode("span",B4,"."+c.toDisplayString(`${Number(c.unref(r))*100%100}`.padEnd(2,"0").slice(0,2)),1)],64)):(c.openBlock(),c.createElementBlock("span",F4,"N/A"))],64)):n.cell.type==="date-ago"?(c.openBlock(),c.createElementBlock("span",V4,[c.unref(r)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(xe)(c.unref(r)).fromNow()),1)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode("N/A")],64))])):n.cell.type==="date"||n.cell.type==="time"||n.cell.type==="date-time"?(c.openBlock(),c.createElementBlock("span",U4,[c.unref(r)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[n.cell.format?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(xe)(c.unref(r)).locale(c.unref(t)).format(n.cell.format)),1)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[n.cell.type==="date"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleDateString()),1)],64)):c.createCommentVNode("",!0),n.cell.type==="time"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleTimeString()),1)],64)):c.createCommentVNode("",!0),n.cell.type==="date-time"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleString()),1)],64)):c.createCommentVNode("",!0)],64))],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode("N/A")],64))])):n.cell.type==="image"?(c.openBlock(),c.createBlock(c.unref(yc),{key:3,bordered:!0,size:"s",aspect:"1x1",src:c.unref(r),background:"contain"},null,8,["src"])):n.cell.type==="status"?(c.openBlock(),c.createBlock(c.unref(gd),{key:4},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(r)),1)]),_:1})):n.cell.type==="status-icon"?(c.openBlock(),c.createElementBlock("div",W4,[c.createVNode(c.unref(vd),{status:c.unref(r)},null,8,["status"])])):n.cell.type==="number"?(c.openBlock(),c.createElementBlock("span",H4,c.toDisplayString(Number(c.unref(r)).toFixed(0)),1)):n.cell.type==="link"?(c.openBlock(),c.createBlock(c.unref(dd),{key:7},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(r)),1)]),_:1})):(c.openBlock(),c.createElementBlock("span",j4,c.toDisplayString(c.unref(r)),1))}}),G4={class:"tw-relative tw-overflow-hidden tw-flex tw-flex-col tw-grow tw-basis-0"},Y4={class:"tw-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4"},J4={key:0,class:"tw-mr-3"},K4={key:1,class:"tw-ml-3"},X4={class:"tw-flex tw-relative tw-overflow-hidden tw-grow"},q4={key:0},Z4={key:0,class:"vc-table__header"},Q4={class:"vc-table__header-row"},e3={key:0,class:"tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1]",width:"50"},t3={class:"tw-flex tw-justify-center tw-items-center"},n3=["width","onClick"],r3={key:0,class:"tw-ml-1"},i3={key:1,class:"tw-flex tw-flex-col tw-ml-1 tw-invisible group-hover:tw-visible"},s3={key:1,class:"tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1]",width:"44"},o3={key:1,class:"vc-table__body"},a3=["onClick","onMouseover"],l3={key:0,width:"50"},c3={class:"tw-flex tw-justify-center tw-items-center"},u3=["width"],h3={key:1,class:"tw-box-border tw-overflow-visible tw-px-3",width:"44"},f3={class:"vc-table__body-actions-container tw-relative !tw-hidden tw-justify-center tw-items-center"},d3=["onClick","disabled"],p3={class:"tw-flex tw-items-center tw-flex-row tw-text-[#3f3f3f] tw-font-normal not-italic tw-text-base tw-leading-[20px] tw-gap-[25px]"},m3=["onClick"],g3={class:"tw-not-italic tw-font-normal tw-text-base tw-leading-[20px] tw-text-[#3f3f3f] tw-ml-[7px]"},v3=c.createElementVNode("div",{class:"vc-table__body-tooltip-arrow","data-popper-arrow":""},null,-1),w3={key:0,class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"},y3=["src"],b3={class:"tw-m-4 vc-table__empty-text"},S3={key:0,class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"},x3=["src"],_3={class:"tw-m-4 tw-text-xl tw-font-medium"},C3={class:"tw-bg-[#fbfdfe] tw-border-t tw-border-solid tw-border-[#eaedf3] tw-flex-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4"},nS=c.defineComponent({__name:"vc-table",props:{columns:{default:()=>[]},items:{default:()=>[]},itemActionBuilder:{type:Function,default:void 0},sort:{default:void 0},multiselect:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},totalLabel:{default:"Totals:"},totalCount:{default:0},pages:{default:0},currentPage:{default:0},searchPlaceholder:{default:"Search..."},searchValue:{default:void 0},loading:{type:Boolean,default:!1},empty:{default:()=>({text:"List is empty."})},notfound:{default:()=>({text:"Nothing found."})},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},activeFilterCount:{default:0},selectedItemId:{default:void 0},scrolling:{type:Boolean,default:!1},onItemClick:{type:Function,default:void 0}},emits:["paginationClick","selectionChanged","search:change","filter:apply","filter:reset","headerClick"],setup(n,{emit:e}){const t=n,r=c.ref({}),i=c.ref(),s=c.ref(),d=c.ref(),f=c.ref([]),l=c.ref([]),p=c.ref([]),a=c.ref();c.onBeforeUpdate(()=>{f.value=[],l.value=[]});const o=c.computed(()=>{const A=t.sort?.split(":");return A&&A.length===2&&A[1]}),h=c.computed(()=>{const A=t.sort?.split(":");return A&&A.length===2&&A[0]}),m={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},v=c.computed(()=>Object.values(r.value).every(A=>A));c.watch(()=>t.items,A=>{r.value={},A?.forEach(R=>r.value[R.id]=!1),d.value?.scrollTop()});function w(A,R){A&&(l.value.some(E=>E.id===R)||l.value.push({element:A,id:R}))}function b(A,R){A&&(f.value.some(E=>E.id===R)||f.value.push({element:A,id:R}))}function S(){const A=Object.values(r.value).every(R=>R);Object.keys(r.value).forEach(R=>r.value[R]=!A),e("selectionChanged",r.value)}function C(A,R){r.value[A]=R,e("selectionChanged",r.value)}function $(A,R){i.value=A.id;const y=f.value.find(O=>O.id===R),E=l.value.find(O=>O.id===R);y&&E&&c.nextTick(()=>{s.value=hu(y.element,E.element,{placement:"bottom",onFirstUpdate:()=>s.value?.update(),modifiers:[{name:"offset",options:{offset:[-15,15]}}]})})}async function k(A){typeof t.itemActionBuilder=="function"&&(p.value=await t.itemActionBuilder(A))}function x(){i.value=void 0,s.value?.destroy()}function T(A){a.value=A}function M(A){e("headerClick",A)}return(A,R)=>{const y=c.resolveComponent("VcButton");return c.openBlock(),c.createElementBlock("div",G4,[(A.$slots.header||n.header)&&(n.items&&n.items.length||n.searchValue||n.searchValue===""||n.activeFilterCount)?c.renderSlot(A.$slots,"header",{key:0},()=>[c.createElementVNode("div",Y4,[A.$isMobile.value&&A.$slots.filters?(c.openBlock(),c.createElementBlock("div",J4,[c.createVNode(jw,{counter:n.activeFilterCount},{default:c.withCtx(({closePanel:E})=>[c.renderSlot(A.$slots,"filters",{closePanel:E})]),_:3},8,["counter"])])):c.createCommentVNode("",!0),c.createVNode(c.unref(Xo),{class:"tw-grow tw-basis-0",placeholder:n.searchPlaceholder,clearable:"",name:"table_search",modelValue:n.searchValue,"onUpdate:modelValue":R[0]||(R[0]=E=>A.$emit("search:change",E))},null,8,["placeholder","modelValue"]),A.$isDesktop.value&&A.$slots.filters?(c.openBlock(),c.createElementBlock("div",K4,[c.createVNode(jw,{title:A.$t("Filters"),counter:n.activeFilterCount,parentExpanded:n.expanded},{default:c.withCtx(({closePanel:E})=>[c.renderSlot(A.$slots,"filters",{closePanel:E})]),_:3},8,["title","counter","parentExpanded"])])):c.createCommentVNode("",!0)])]):c.createCommentVNode("",!0),c.createElementVNode("div",X4,[c.createVNode(c.unref(pd),{active:n.loading},null,8,["active"]),n.items&&n.items.length?(c.openBlock(),c.createBlock(c.unref(to),{key:0,ref_key:"scrollContainer",ref:d,noPadding:!0,class:"tw-grow tw-basis-0",usePtr:!!A.$attrs["onScroll:ptr"],"onScroll:ptr":R[3]||(R[3]=E=>A.$emit("scroll:ptr"))},{default:c.withCtx(()=>[A.$isMobile.value&&A.$slots["mobile-item"]?(c.openBlock(),c.createElementBlock("div",q4,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.items,E=>(c.openBlock(),c.createBlock(PW,{key:E.id,item:E,actionBuilder:n.itemActionBuilder,onClick:O=>A.$emit("itemClick",E),onSwipeStart:T,swipingItem:a.value},{default:c.withCtx(()=>[c.renderSlot(A.$slots,"mobile-item",{item:E})]),_:2},1032,["item","actionBuilder","onClick","swipingItem"]))),128))])):(c.openBlock(),c.createElementBlock("table",{key:1,class:c.normalizeClass(["[border-spacing:0] tw-border-collapse tw-relative tw-pt-[43px] tw-table-fixed tw-box-border tw-w-full",{"vc-table_empty":!n.items||!n.items.length,"vc-table_multiselect":n.multiselect}])},[n.columns?(c.openBlock(),c.createElementBlock("thead",Z4,[c.createElementVNode("tr",Q4,[n.multiselect?(c.openBlock(),c.createElementBlock("th",e3,[c.createElementVNode("div",t3,[c.createVNode(c.unref(Ql),{modelValue:c.unref(v),"onUpdate:modelValue":S,onClick:R[1]||(R[1]=c.withModifiers(()=>{},["stop"]))},null,8,["modelValue"])])])):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.columns,E=>(c.openBlock(),c.createElementBlock("th",{key:E.id,class:c.normalizeClass(["tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1] tw-px-3",{"tw-cursor-pointer tw-group":E.sortable}]),width:E.width,onClick:O=>M(E)},[c.createElementVNode("div",{class:c.normalizeClass(["tw-flex tw-items-center tw-flex-nowrap",m[E.align]])},[c.createElementVNode("div",null,[c.renderSlot(A.$slots,`header_${E.id}`,{},()=>[c.createTextVNode(c.toDisplayString(E.title),1)])]),c.unref(h)===E.id?(c.openBlock(),c.createElementBlock("div",r3,[c.createVNode(c.unref(Ye),{size:"xs",icon:`fas fa-caret-${c.unref(o)==="DESC"?"down":"up"}`},null,8,["icon"])])):(c.openBlock(),c.createElementBlock("div",i3,[c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-caret-up"}),c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-caret-down"})]))],2)],10,n3))),128)),n.itemActionBuilder?(c.openBlock(),c.createElementBlock("th",s3)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),n.items?(c.openBlock(),c.createElementBlock("tbody",o3,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.items,(E,O)=>(c.openBlock(),c.createElementBlock("tr",{key:E.id,class:c.normalizeClass(["vc-table__body-row tw-h-[60px] tw-bg-white hover:tw-bg-[#dfeef9]",{"tw-cursor-pointer hover:tw-bg-[#dfeef9]":n.onItemClick,"tw-bg-[#f8f8f8]":O%2===1,"!tw-bg-[#dfeef9] hover:tw-bg-[#dfeef9]":E&&E.id?n.selectedItemId===E.id:!1}]),onClick:I=>A.$emit("itemClick",E),onMouseover:I=>k(E),onMouseleave:x},[n.multiselect?(c.openBlock(),c.createElementBlock("td",l3,[c.createElementVNode("div",c3,[c.createVNode(c.unref(Ql),{modelValue:r.value[E.id],"onUpdate:modelValue":I=>C(E.id,I),onClick:R[2]||(R[2]=c.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])])):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.columns,I=>(c.openBlock(),c.createElementBlock("td",{key:`${E.id}_${I.id}`,class:c.normalizeClass(["tw-box-border tw-overflow-hidden tw-px-3",I.class]),width:I.width},[c.renderSlot(A.$slots,`item_${I.id}`,{item:E,cell:I},()=>[c.createVNode(z4,{cell:I,item:E},null,8,["cell","item"])])],10,u3))),128)),n.itemActionBuilder?(c.openBlock(),c.createElementBlock("td",h3,[c.createElementVNode("div",f3,[c.createElementVNode("button",{class:"tw-text-[#319ed4] tw-cursor-pointer tw-border-none tw-bg-transparent disabled:tw-text-[gray]",onClick:c.withModifiers(I=>$(E,E.id),["stop"]),ref_for:!0,ref:I=>b(I,E.id),"aria-describedby":"tooltip",disabled:!(p.value&&p.value.length)},[c.createVNode(c.unref(Ye),{icon:"fas fa-cog",size:"m"})],8,d3),c.withDirectives(c.createElementVNode("div",{class:"vc-table__body-tooltip tw-bg-white tw-rounded-l-[4px] tw-p-[15px] tw-z-0 tw-absolute tw-right-0 tw-drop-shadow-[1px_3px_14px_rgba(111,122,131,0.25)]",onMouseleave:x,ref_for:!0,ref:I=>w(I,E.id),role:"tooltip"},[c.createElementVNode("div",p3,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(p.value,(I,N)=>(c.openBlock(),c.createElementBlock("div",{key:N,class:c.normalizeClass(["tw-flex tw-flex-row tw-items-center tw-text-[#319ed4] tw-cursor-pointer",`vc-table__body-actions-item_${I.variant}`]),onClick:c.withModifiers(P=>I.clickHandler(E),["stop"])},[c.createVNode(c.unref(Ye),{icon:I.icon,size:"m"},null,8,["icon"]),c.createElementVNode("div",g3,c.toDisplayString(I.title),1)],10,m3))),128))]),v3],544),[[c.vShow,i.value===E.id]])])])):c.createCommentVNode("",!0)],42,a3))),128))])):c.createCommentVNode("",!0)],2))]),_:3},8,["usePtr"])):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[n.searchValue||n.searchValue===""||n.activeFilterCount?c.renderSlot(A.$slots,"notfound",{key:0},()=>[n.notfound?(c.openBlock(),c.createElementBlock("div",w3,[n.notfound.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:n.notfound.image},null,8,y3)):c.createCommentVNode("",!0),c.createElementVNode("div",b3,c.toDisplayString(n.notfound.text),1),n.notfound.action?(c.openBlock(),c.createBlock(y,{key:1,onClick:n.notfound.clickHandler},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.notfound.action),1)]),_:1},8,["onClick"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]):c.renderSlot(A.$slots,"empty",{key:1},()=>[n.empty?(c.openBlock(),c.createElementBlock("div",S3,[n.empty.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:n.empty.image},null,8,x3)):c.createCommentVNode("",!0),c.createElementVNode("div",_3,c.toDisplayString(n.empty.text),1),n.empty.action?(c.openBlock(),c.createBlock(y,{key:1,onClick:n.empty.clickHandler},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.empty.action),1)]),_:1},8,["onClick"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])],64))]),(A.$slots.footer||n.footer)&&n.items&&n.items.length?c.renderSlot(A.$slots,"footer",{key:1},()=>[c.createElementVNode("div",C3,[c.createVNode(c.unref(bd),{expanded:n.expanded,pages:n.pages,currentPage:n.currentPage,onItemClick:R[4]||(R[4]=E=>A.$emit("paginationClick",E))},null,8,["expanded","pages","currentPage"]),c.createVNode(vW,{label:n.totalLabel,value:n.totalCount},null,8,["label","value"])])]):c.createCommentVNode("",!0)])}}});const E3=Object.freeze(Object.defineProperty({__proto__:null,VcBadge:dy,VcButton:py,VcCard:my,VcCheckbox:Ql,VcCol:ec,VcContainer:to,VcHint:gy,VcIcon:Ye,VcInfoRow:vy,VcImage:yc,VcLabel:cs,VcLink:dd,VcLoading:pd,VcProgress:wy,VcRow:md,VcStatus:gd,VcStatusIcon:vd,VcSwitch:yy,VcWidget:by,VcBreadcrumbs:Sy,VcEditor:Ay,VcForm:wd,VcFileUpload:yd,VcInput:Xo,VcInputCurrency:My,VcNotification:Ry,VcPagination:bd,VcRating:Iy,VcSelect:Kb,VcSlider:o0,VcTextarea:hp,VcApp:a0,VcBlade:fp,VcDynamicProperty:l0,VcGallery:c0,VcLoginForm:u0,VcPopup:dp,VcTable:nS},Symbol.toStringTag,{value:"Module"}));function Xw(n){return n.type.indexOf("mouse")!==-1?n.clientX:n.touches[0].clientX}function qw(n){return n.type.indexOf("mouse")!==-1?n.clientY:n.touches[0].clientY}var k3=function(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}(),T3={install:function(n,e){var t=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",dragFrequency:100,rollOverFrequency:100},e);function r(w){var b=this.$$touchObj,S=w.type.indexOf("touch")>=0,C=w.type.indexOf("mouse")>=0,$=this;S&&(b.lastTouchStartTime=w.timeStamp),!(C&&b.lastTouchStartTime&&w.timeStamp-b.lastTouchStartTime<350)&&(b.touchStarted||(o(this),b.touchStarted=!0,b.touchMoved=!1,b.swipeOutBounded=!1,b.startX=Xw(w),b.startY=qw(w),b.currentX=0,b.currentY=0,b.touchStartTime=w.timeStamp,b.hasSwipe=p(this,"swipe")||p(this,"swipe.left")||p(this,"swipe.right")||p(this,"swipe.top")||p(this,"swipe.bottom"),p(this,"hold")&&(b.touchHoldTimer=setTimeout(function(){b.touchHoldTimer=null,a(w,$,"hold")},b.options.touchHoldTolerance)),a(w,this,"press")))}function i(w){var b=this.$$touchObj,S=Xw(w),C=qw(w),$=b.currentX!=S||b.currentY!=C;if(b.currentX=S,b.currentY=C,b.touchMoved){if(b.hasSwipe&&!b.swipeOutBounded){var x=b.options.swipeTolerance;b.swipeOutBounded=Math.abs(b.startX-b.currentX)>x&&Math.abs(b.startY-b.currentY)>x}}else{var k=b.options.tapTolerance;b.touchMoved=Math.abs(b.startX-b.currentX)>k||Math.abs(b.startY-b.currentY)>k,b.touchMoved&&(m(b),a(w,this,"drag.once"))}if(p(this,"rollover")&&$){var T=w.timeStamp,M=b.options.rollOverFrequency;(b.touchRollTime==null||T>b.touchRollTime+M)&&(b.touchRollTime=T,a(w,this,"rollover"))}if(p(this,"drag")&&b.touchStarted&&b.touchMoved&&$){var T=w.timeStamp,M=b.options.dragFrequency;(b.touchDragTime==null||T>b.touchDragTime+M)&&(b.touchDragTime=T,a(w,this,"drag"))}}function s(){var w=this.$$touchObj;m(w),h(this),w.touchStarted=w.touchMoved=!1,w.startX=w.startY=0}function d(w){var b=this.$$touchObj,S=w.type.indexOf("touch")>=0,C=w.type.indexOf("mouse")>=0;S&&(b.lastTouchEndTime=w.timeStamp);var $=S&&!b.touchHoldTimer;if(m(b),b.touchStarted=!1,h(this),!(C&&b.lastTouchEndTime&&w.timeStamp-b.lastTouchEndTime<350))if(a(w,this,"release"),b.touchMoved){if(b.hasSwipe&&!b.swipeOutBounded){var k=b.options.swipeTolerance,x,T=Math.abs(b.startY-b.currentY),M=Math.abs(b.startX-b.currentX);(T>k||M>k)&&(T>k?x=b.startY>b.currentY?"top":"bottom":x=b.startX>b.currentX?"left":"right",p(this,"swipe."+x)?a(w,this,"swipe."+x,x):a(w,this,"swipe",x))}}else if(p(this,"longtap")&&w.timeStamp-b.touchStartTime>b.options.longTapTimeInterval)w.cancelable&&w.preventDefault(),a(w,this,"longtap");else if(p(this,"hold")&&$){w.cancelable&&w.preventDefault();return}else a(w,this,"tap")}function f(){o(this)}function l(){h(this)}function p(w,b){var S=w.$$touchObj.callbacks[b];return S!=null&&S.length>0}function a(w,b,S,C){var $=b.$$touchObj,k=$.callbacks[S];if(k==null||k.length===0)return null;for(var x=0;x<k.length;x++){var T=k[x];T.modifiers.stop&&w.stopPropagation(),T.modifiers.prevent&&w.preventDefault(),!(T.modifiers.self&&w.target!==w.currentTarget)&&typeof T.value=="function"&&(C?T.value(C,w):T.value(w))}}function o(w){var b=w.$$touchObj.options.touchClass;b&&w.classList.add(b)}function h(w){var b=w.$$touchObj.options.touchClass;b&&w.classList.remove(b)}function m(w){w.touchHoldTimer&&(clearTimeout(w.touchHoldTimer),w.touchHoldTimer=null)}function v(w,b){var S=w.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:t};return b&&(S.options=Object.assign({},S.options,b)),w.$$touchObj=S,w.$$touchObj}n.directive("touch",{beforeMount:function(w,b){var S=v(w),C=k3?{passive:!0}:!1,$=b.arg||"tap";switch($){case"swipe":var k=b.modifiers;if(k.left||k.right||k.top||k.bottom){for(var x in b.modifiers)if(["left","right","top","bottom"].indexOf(x)>=0){var T="swipe."+x;S.callbacks[T]=S.callbacks[T]||[],S.callbacks[T].push(b)}}else S.callbacks.swipe=S.callbacks.swipe||[],S.callbacks.swipe.push(b);break;case"press":case"drag":b.modifiers.disablePassive&&(C=!1);default:S.callbacks[$]=S.callbacks[$]||[],S.callbacks[$].push(b)}S.hasBindTouchEvents||(w.addEventListener("touchstart",r,C),w.addEventListener("touchmove",i,C),w.addEventListener("touchcancel",s),w.addEventListener("touchend",d),S.options.disableClick||(w.addEventListener("mousedown",r),w.addEventListener("mousemove",i),w.addEventListener("mouseup",d),w.addEventListener("mouseenter",f),w.addEventListener("mouseleave",l)),S.hasBindTouchEvents=!0)},unmounted:function(w){w.removeEventListener("touchstart",r),w.removeEventListener("touchmove",i),w.removeEventListener("touchcancel",s),w.removeEventListener("touchend",d),w.$$touchObj&&!w.$$touchObj.options.disableClick&&(w.removeEventListener("mousedown",r),w.removeEventListener("mousemove",i),w.removeEventListener("mouseup",d),w.removeEventListener("mouseenter",f),w.removeEventListener("mouseleave",l)),delete w.$$touchObj}}),n.directive("touch-class",{beforeMount:function(w,b){v(w,{touchClass:b.value})}}),n.directive("touch-options",{beforeMount:function(w,b){v(w,b.value)}})}};/**!
|
|
1100
|
+
xe.version="2.29.4";BW(xt);xe.fn=ge;xe.min=Ej;xe.max=kj;xe.now=Tj;xe.utc=Or;xe.unix=t4;xe.months=r4;xe.isDate=Da;xe.locale=Oi;xe.invalid=fu;xe.duration=mr;xe.isMoment=pr;xe.weekdays=s4;xe.parseZone=n4;xe.localeData=si;xe.isDuration=Gl;xe.monthsShort=i4;xe.weekdaysMin=a4;xe.defineLocale=Ep;xe.updateLocale=nj;xe.locales=rj;xe.weekdaysShort=o4;xe.normalizeUnits=tr;xe.relativeTimeRounding=N4;xe.relativeTimeThreshold=D4;xe.calendarFormat=Zj;xe.prototype=ge;xe.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 B4={class:"tw-text-[#a5a5a5] tw-text-xs"},F4={key:1},V4={key:1,class:"tw-text-[#a5a5a5]"},U4={key:2,class:"tw-text-[#a5a5a5]"},W4={key:5,class:"tw-flex tw-justify-center"},H4={key:6,class:"tw-text-right"},j4={key:8},z4=c.defineComponent({__name:"vc-table-cell",props:{cell:{default:void 0},item:{default:void 0}},setup(n){const e=n,t=window.navigator.language,r=c.computed(()=>(e.cell.field||e.cell.id).split(".").reduce((i,s)=>i&&Array.isArray(i)&&i.length?i&&i[0][s]||null:i&&i[s]||null,e.item));return(i,s)=>n.cell.type==="money"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.unref(r)>0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("span",null,c.toDisplayString(Math.trunc(Number(c.unref(r)))),1),c.createElementVNode("span",B4,"."+c.toDisplayString(`${Number(c.unref(r))*100%100}`.padEnd(2,"0").slice(0,2)),1)],64)):(c.openBlock(),c.createElementBlock("span",F4,"N/A"))],64)):n.cell.type==="date-ago"?(c.openBlock(),c.createElementBlock("span",V4,[c.unref(r)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(xe)(c.unref(r)).fromNow()),1)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode("N/A")],64))])):n.cell.type==="date"||n.cell.type==="time"||n.cell.type==="date-time"?(c.openBlock(),c.createElementBlock("span",U4,[c.unref(r)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[n.cell.format?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(xe)(c.unref(r)).locale(c.unref(t)).format(n.cell.format)),1)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[n.cell.type==="date"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleDateString()),1)],64)):c.createCommentVNode("",!0),n.cell.type==="time"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleTimeString()),1)],64)):c.createCommentVNode("",!0),n.cell.type==="date-time"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleString()),1)],64)):c.createCommentVNode("",!0)],64))],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode("N/A")],64))])):n.cell.type==="image"?(c.openBlock(),c.createBlock(c.unref(yc),{key:3,bordered:!0,size:"s",aspect:"1x1",src:c.unref(r),background:"contain"},null,8,["src"])):n.cell.type==="status"?(c.openBlock(),c.createBlock(c.unref(gd),{key:4},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(r)),1)]),_:1})):n.cell.type==="status-icon"?(c.openBlock(),c.createElementBlock("div",W4,[c.createVNode(c.unref(vd),{status:c.unref(r)},null,8,["status"])])):n.cell.type==="number"?(c.openBlock(),c.createElementBlock("span",H4,c.toDisplayString(Number(c.unref(r)).toFixed(0)),1)):n.cell.type==="link"?(c.openBlock(),c.createBlock(c.unref(dd),{key:7},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(r)),1)]),_:1})):(c.openBlock(),c.createElementBlock("span",j4,c.toDisplayString(c.unref(r)),1))}}),G4={class:"tw-relative tw-overflow-hidden tw-flex tw-flex-col tw-grow tw-basis-0"},Y4={class:"tw-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4"},J4={key:0,class:"tw-mr-3"},K4={key:1,class:"tw-ml-3"},X4={class:"tw-flex tw-relative tw-overflow-hidden tw-grow"},q4={key:0},Z4={key:0,class:"vc-table__header"},Q4={class:"vc-table__header-row"},e3={key:0,class:"tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1]",width:"50"},t3={class:"tw-flex tw-justify-center tw-items-center"},n3=["width","onClick"],r3={key:0,class:"tw-ml-1"},i3={key:1,class:"tw-flex tw-flex-col tw-ml-1 tw-invisible group-hover:tw-visible"},s3={key:1,class:"tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1]",width:"44"},o3={key:1,class:"vc-table__body"},a3=["onClick","onMouseover"],l3={key:0,width:"50"},c3={class:"tw-flex tw-justify-center tw-items-center"},u3=["width"],h3={key:1,class:"tw-box-border tw-overflow-visible tw-px-3",width:"44"},f3={class:"vc-table__body-actions-container tw-relative !tw-hidden tw-justify-center tw-items-center"},d3=["onClick","disabled"],p3={class:"tw-flex tw-items-center tw-flex-row tw-text-[#3f3f3f] tw-font-normal not-italic tw-text-base tw-leading-[20px] tw-gap-[25px]"},m3=["onClick"],g3={class:"tw-not-italic tw-font-normal tw-text-base tw-leading-[20px] tw-text-[#3f3f3f] tw-ml-[7px]"},v3=c.createElementVNode("div",{class:"vc-table__body-tooltip-arrow","data-popper-arrow":""},null,-1),w3={key:0,class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"},y3=["src"],b3={class:"tw-m-4 vc-table__empty-text"},S3={key:0,class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"},x3=["src"],_3={class:"tw-m-4 tw-text-xl tw-font-medium"},C3={class:"tw-bg-[#fbfdfe] tw-border-t tw-border-solid tw-border-[#eaedf3] tw-flex-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4"},nS=c.defineComponent({__name:"vc-table",props:{columns:{default:()=>[]},items:{default:()=>[]},itemActionBuilder:{type:Function,default:void 0},sort:{default:void 0},multiselect:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},totalLabel:{default:"Totals:"},totalCount:{default:0},pages:{default:0},currentPage:{default:0},searchPlaceholder:{default:"Search..."},searchValue:{default:void 0},loading:{type:Boolean,default:!1},empty:{default:()=>({text:"List is empty."})},notfound:{default:()=>({text:"Nothing found."})},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},activeFilterCount:{default:0},selectedItemId:{default:void 0},scrolling:{type:Boolean,default:!1},onItemClick:{type:Function,default:void 0}},emits:["paginationClick","selectionChanged","search:change","filter:apply","filter:reset","headerClick","scroll:ptr"],setup(n,{emit:e}){const t=n,r=c.ref({}),i=c.ref(),s=c.ref(),d=c.ref(),f=c.ref([]),l=c.ref([]),p=c.ref([]),a=c.ref();c.onBeforeUpdate(()=>{f.value=[],l.value=[]});const o=c.computed(()=>{const A=t.sort?.split(":");return A&&A.length===2&&A[1]}),h=c.computed(()=>{const A=t.sort?.split(":");return A&&A.length===2&&A[0]}),m={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},v=c.computed(()=>Object.values(r.value).every(A=>A));c.watch(()=>t.items,A=>{r.value={},A?.forEach(R=>r.value[R.id]=!1),d.value?.scrollTop()});function w(A,R){A&&(l.value.some(E=>E.id===R)||l.value.push({element:A,id:R}))}function b(A,R){A&&(f.value.some(E=>E.id===R)||f.value.push({element:A,id:R}))}function S(){const A=Object.values(r.value).every(R=>R);Object.keys(r.value).forEach(R=>r.value[R]=!A),e("selectionChanged",r.value)}function C(A,R){r.value[A]=R,e("selectionChanged",r.value)}function $(A,R){i.value=A.id;const y=f.value.find(O=>O.id===R),E=l.value.find(O=>O.id===R);y&&E&&c.nextTick(()=>{s.value=hu(y.element,E.element,{placement:"bottom",onFirstUpdate:()=>s.value?.update(),modifiers:[{name:"offset",options:{offset:[-15,15]}}]})})}async function k(A){typeof t.itemActionBuilder=="function"&&(p.value=await t.itemActionBuilder(A))}function x(){i.value=void 0,s.value?.destroy()}function T(A){a.value=A}function M(A){e("headerClick",A)}return(A,R)=>{const y=c.resolveComponent("VcButton");return c.openBlock(),c.createElementBlock("div",G4,[(A.$slots.header||n.header)&&(n.items&&n.items.length||n.searchValue||n.searchValue===""||n.activeFilterCount)?c.renderSlot(A.$slots,"header",{key:0},()=>[c.createElementVNode("div",Y4,[A.$isMobile.value&&A.$slots.filters?(c.openBlock(),c.createElementBlock("div",J4,[c.createVNode(jw,{counter:n.activeFilterCount},{default:c.withCtx(({closePanel:E})=>[c.renderSlot(A.$slots,"filters",{closePanel:E})]),_:3},8,["counter"])])):c.createCommentVNode("",!0),c.createVNode(c.unref(Xo),{class:"tw-grow tw-basis-0",placeholder:n.searchPlaceholder,clearable:"",name:"table_search",modelValue:n.searchValue,"onUpdate:modelValue":R[0]||(R[0]=E=>A.$emit("search:change",E))},null,8,["placeholder","modelValue"]),A.$isDesktop.value&&A.$slots.filters?(c.openBlock(),c.createElementBlock("div",K4,[c.createVNode(jw,{title:A.$t("Filters"),counter:n.activeFilterCount,parentExpanded:n.expanded},{default:c.withCtx(({closePanel:E})=>[c.renderSlot(A.$slots,"filters",{closePanel:E})]),_:3},8,["title","counter","parentExpanded"])])):c.createCommentVNode("",!0)])]):c.createCommentVNode("",!0),c.createElementVNode("div",X4,[c.createVNode(c.unref(pd),{active:n.loading},null,8,["active"]),n.items&&n.items.length?(c.openBlock(),c.createBlock(c.unref(to),{key:0,ref_key:"scrollContainer",ref:d,noPadding:!0,class:"tw-grow tw-basis-0",usePtr:!!A.$attrs["onScroll:ptr"],"onScroll:ptr":R[3]||(R[3]=E=>A.$emit("scroll:ptr"))},{default:c.withCtx(()=>[A.$isMobile.value&&A.$slots["mobile-item"]?(c.openBlock(),c.createElementBlock("div",q4,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.items,E=>(c.openBlock(),c.createBlock(PW,{key:E.id,item:E,actionBuilder:n.itemActionBuilder,onClick:O=>A.$emit("itemClick",E),onSwipeStart:T,swipingItem:a.value},{default:c.withCtx(()=>[c.renderSlot(A.$slots,"mobile-item",{item:E})]),_:2},1032,["item","actionBuilder","onClick","swipingItem"]))),128))])):(c.openBlock(),c.createElementBlock("table",{key:1,class:c.normalizeClass(["[border-spacing:0] tw-border-collapse tw-relative tw-pt-[43px] tw-table-fixed tw-box-border tw-w-full",{"vc-table_empty":!n.items||!n.items.length,"vc-table_multiselect":n.multiselect}])},[n.columns?(c.openBlock(),c.createElementBlock("thead",Z4,[c.createElementVNode("tr",Q4,[n.multiselect?(c.openBlock(),c.createElementBlock("th",e3,[c.createElementVNode("div",t3,[c.createVNode(c.unref(Ql),{modelValue:c.unref(v),"onUpdate:modelValue":S,onClick:R[1]||(R[1]=c.withModifiers(()=>{},["stop"]))},null,8,["modelValue"])])])):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.columns,E=>(c.openBlock(),c.createElementBlock("th",{key:E.id,class:c.normalizeClass(["tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1] tw-px-3",{"tw-cursor-pointer tw-group":E.sortable}]),width:E.width,onClick:O=>M(E)},[c.createElementVNode("div",{class:c.normalizeClass(["tw-flex tw-items-center tw-flex-nowrap",m[E.align]])},[c.createElementVNode("div",null,[c.renderSlot(A.$slots,`header_${E.id}`,{},()=>[c.createTextVNode(c.toDisplayString(E.title),1)])]),c.unref(h)===E.id?(c.openBlock(),c.createElementBlock("div",r3,[c.createVNode(c.unref(Ye),{size:"xs",icon:`fas fa-caret-${c.unref(o)==="DESC"?"down":"up"}`},null,8,["icon"])])):(c.openBlock(),c.createElementBlock("div",i3,[c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-caret-up"}),c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-caret-down"})]))],2)],10,n3))),128)),n.itemActionBuilder?(c.openBlock(),c.createElementBlock("th",s3)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),n.items?(c.openBlock(),c.createElementBlock("tbody",o3,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.items,(E,O)=>(c.openBlock(),c.createElementBlock("tr",{key:E.id,class:c.normalizeClass(["vc-table__body-row tw-h-[60px] tw-bg-white hover:tw-bg-[#dfeef9]",{"tw-cursor-pointer hover:tw-bg-[#dfeef9]":n.onItemClick,"tw-bg-[#f8f8f8]":O%2===1,"!tw-bg-[#dfeef9] hover:tw-bg-[#dfeef9]":E&&E.id?n.selectedItemId===E.id:!1}]),onClick:I=>A.$emit("itemClick",E),onMouseover:I=>k(E),onMouseleave:x},[n.multiselect?(c.openBlock(),c.createElementBlock("td",l3,[c.createElementVNode("div",c3,[c.createVNode(c.unref(Ql),{modelValue:r.value[E.id],"onUpdate:modelValue":I=>C(E.id,I),onClick:R[2]||(R[2]=c.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])])):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.columns,I=>(c.openBlock(),c.createElementBlock("td",{key:`${E.id}_${I.id}`,class:c.normalizeClass(["tw-box-border tw-overflow-hidden tw-px-3",I.class]),width:I.width},[c.renderSlot(A.$slots,`item_${I.id}`,{item:E,cell:I},()=>[c.createVNode(z4,{cell:I,item:E},null,8,["cell","item"])])],10,u3))),128)),n.itemActionBuilder?(c.openBlock(),c.createElementBlock("td",h3,[c.createElementVNode("div",f3,[c.createElementVNode("button",{class:"tw-text-[#319ed4] tw-cursor-pointer tw-border-none tw-bg-transparent disabled:tw-text-[gray]",onClick:c.withModifiers(I=>$(E,E.id),["stop"]),ref_for:!0,ref:I=>b(I,E.id),"aria-describedby":"tooltip",disabled:!(p.value&&p.value.length)},[c.createVNode(c.unref(Ye),{icon:"fas fa-cog",size:"m"})],8,d3),c.withDirectives(c.createElementVNode("div",{class:"vc-table__body-tooltip tw-bg-white tw-rounded-l-[4px] tw-p-[15px] tw-z-0 tw-absolute tw-right-0 tw-drop-shadow-[1px_3px_14px_rgba(111,122,131,0.25)]",onMouseleave:x,ref_for:!0,ref:I=>w(I,E.id),role:"tooltip"},[c.createElementVNode("div",p3,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(p.value,(I,N)=>(c.openBlock(),c.createElementBlock("div",{key:N,class:c.normalizeClass(["tw-flex tw-flex-row tw-items-center tw-text-[#319ed4] tw-cursor-pointer",`vc-table__body-actions-item_${I.variant}`]),onClick:c.withModifiers(P=>I.clickHandler(E),["stop"])},[c.createVNode(c.unref(Ye),{icon:I.icon,size:"m"},null,8,["icon"]),c.createElementVNode("div",g3,c.toDisplayString(I.title),1)],10,m3))),128))]),v3],544),[[c.vShow,i.value===E.id]])])])):c.createCommentVNode("",!0)],42,a3))),128))])):c.createCommentVNode("",!0)],2))]),_:3},8,["usePtr"])):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[n.searchValue||n.searchValue===""||n.activeFilterCount?c.renderSlot(A.$slots,"notfound",{key:0},()=>[n.notfound?(c.openBlock(),c.createElementBlock("div",w3,[n.notfound.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:n.notfound.image},null,8,y3)):c.createCommentVNode("",!0),c.createElementVNode("div",b3,c.toDisplayString(n.notfound.text),1),n.notfound.action?(c.openBlock(),c.createBlock(y,{key:1,onClick:n.notfound.clickHandler},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.notfound.action),1)]),_:1},8,["onClick"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]):c.renderSlot(A.$slots,"empty",{key:1},()=>[n.empty?(c.openBlock(),c.createElementBlock("div",S3,[n.empty.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:n.empty.image},null,8,x3)):c.createCommentVNode("",!0),c.createElementVNode("div",_3,c.toDisplayString(n.empty.text),1),n.empty.action?(c.openBlock(),c.createBlock(y,{key:1,onClick:n.empty.clickHandler},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.empty.action),1)]),_:1},8,["onClick"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])],64))]),(A.$slots.footer||n.footer)&&n.items&&n.items.length?c.renderSlot(A.$slots,"footer",{key:1},()=>[c.createElementVNode("div",C3,[c.createVNode(c.unref(bd),{expanded:n.expanded,pages:n.pages,currentPage:n.currentPage,onItemClick:R[4]||(R[4]=E=>A.$emit("paginationClick",E))},null,8,["expanded","pages","currentPage"]),c.createVNode(vW,{label:n.totalLabel,value:n.totalCount},null,8,["label","value"])])]):c.createCommentVNode("",!0)])}}});const E3=Object.freeze(Object.defineProperty({__proto__:null,VcBadge:dy,VcButton:py,VcCard:my,VcCheckbox:Ql,VcCol:ec,VcContainer:to,VcHint:gy,VcIcon:Ye,VcInfoRow:vy,VcImage:yc,VcLabel:cs,VcLink:dd,VcLoading:pd,VcProgress:wy,VcRow:md,VcStatus:gd,VcStatusIcon:vd,VcSwitch:yy,VcWidget:by,VcBreadcrumbs:Sy,VcEditor:Ay,VcForm:wd,VcFileUpload:yd,VcInput:Xo,VcInputCurrency:My,VcNotification:Ry,VcPagination:bd,VcRating:Iy,VcSelect:Kb,VcSlider:o0,VcTextarea:hp,VcApp:a0,VcBlade:fp,VcDynamicProperty:l0,VcGallery:c0,VcLoginForm:u0,VcPopup:dp,VcTable:nS},Symbol.toStringTag,{value:"Module"}));function Xw(n){return n.type.indexOf("mouse")!==-1?n.clientX:n.touches[0].clientX}function qw(n){return n.type.indexOf("mouse")!==-1?n.clientY:n.touches[0].clientY}var k3=function(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}(),T3={install:function(n,e){var t=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",dragFrequency:100,rollOverFrequency:100},e);function r(w){var b=this.$$touchObj,S=w.type.indexOf("touch")>=0,C=w.type.indexOf("mouse")>=0,$=this;S&&(b.lastTouchStartTime=w.timeStamp),!(C&&b.lastTouchStartTime&&w.timeStamp-b.lastTouchStartTime<350)&&(b.touchStarted||(o(this),b.touchStarted=!0,b.touchMoved=!1,b.swipeOutBounded=!1,b.startX=Xw(w),b.startY=qw(w),b.currentX=0,b.currentY=0,b.touchStartTime=w.timeStamp,b.hasSwipe=p(this,"swipe")||p(this,"swipe.left")||p(this,"swipe.right")||p(this,"swipe.top")||p(this,"swipe.bottom"),p(this,"hold")&&(b.touchHoldTimer=setTimeout(function(){b.touchHoldTimer=null,a(w,$,"hold")},b.options.touchHoldTolerance)),a(w,this,"press")))}function i(w){var b=this.$$touchObj,S=Xw(w),C=qw(w),$=b.currentX!=S||b.currentY!=C;if(b.currentX=S,b.currentY=C,b.touchMoved){if(b.hasSwipe&&!b.swipeOutBounded){var x=b.options.swipeTolerance;b.swipeOutBounded=Math.abs(b.startX-b.currentX)>x&&Math.abs(b.startY-b.currentY)>x}}else{var k=b.options.tapTolerance;b.touchMoved=Math.abs(b.startX-b.currentX)>k||Math.abs(b.startY-b.currentY)>k,b.touchMoved&&(m(b),a(w,this,"drag.once"))}if(p(this,"rollover")&&$){var T=w.timeStamp,M=b.options.rollOverFrequency;(b.touchRollTime==null||T>b.touchRollTime+M)&&(b.touchRollTime=T,a(w,this,"rollover"))}if(p(this,"drag")&&b.touchStarted&&b.touchMoved&&$){var T=w.timeStamp,M=b.options.dragFrequency;(b.touchDragTime==null||T>b.touchDragTime+M)&&(b.touchDragTime=T,a(w,this,"drag"))}}function s(){var w=this.$$touchObj;m(w),h(this),w.touchStarted=w.touchMoved=!1,w.startX=w.startY=0}function d(w){var b=this.$$touchObj,S=w.type.indexOf("touch")>=0,C=w.type.indexOf("mouse")>=0;S&&(b.lastTouchEndTime=w.timeStamp);var $=S&&!b.touchHoldTimer;if(m(b),b.touchStarted=!1,h(this),!(C&&b.lastTouchEndTime&&w.timeStamp-b.lastTouchEndTime<350))if(a(w,this,"release"),b.touchMoved){if(b.hasSwipe&&!b.swipeOutBounded){var k=b.options.swipeTolerance,x,T=Math.abs(b.startY-b.currentY),M=Math.abs(b.startX-b.currentX);(T>k||M>k)&&(T>k?x=b.startY>b.currentY?"top":"bottom":x=b.startX>b.currentX?"left":"right",p(this,"swipe."+x)?a(w,this,"swipe."+x,x):a(w,this,"swipe",x))}}else if(p(this,"longtap")&&w.timeStamp-b.touchStartTime>b.options.longTapTimeInterval)w.cancelable&&w.preventDefault(),a(w,this,"longtap");else if(p(this,"hold")&&$){w.cancelable&&w.preventDefault();return}else a(w,this,"tap")}function f(){o(this)}function l(){h(this)}function p(w,b){var S=w.$$touchObj.callbacks[b];return S!=null&&S.length>0}function a(w,b,S,C){var $=b.$$touchObj,k=$.callbacks[S];if(k==null||k.length===0)return null;for(var x=0;x<k.length;x++){var T=k[x];T.modifiers.stop&&w.stopPropagation(),T.modifiers.prevent&&w.preventDefault(),!(T.modifiers.self&&w.target!==w.currentTarget)&&typeof T.value=="function"&&(C?T.value(C,w):T.value(w))}}function o(w){var b=w.$$touchObj.options.touchClass;b&&w.classList.add(b)}function h(w){var b=w.$$touchObj.options.touchClass;b&&w.classList.remove(b)}function m(w){w.touchHoldTimer&&(clearTimeout(w.touchHoldTimer),w.touchHoldTimer=null)}function v(w,b){var S=w.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:t};return b&&(S.options=Object.assign({},S.options,b)),w.$$touchObj=S,w.$$touchObj}n.directive("touch",{beforeMount:function(w,b){var S=v(w),C=k3?{passive:!0}:!1,$=b.arg||"tap";switch($){case"swipe":var k=b.modifiers;if(k.left||k.right||k.top||k.bottom){for(var x in b.modifiers)if(["left","right","top","bottom"].indexOf(x)>=0){var T="swipe."+x;S.callbacks[T]=S.callbacks[T]||[],S.callbacks[T].push(b)}}else S.callbacks.swipe=S.callbacks.swipe||[],S.callbacks.swipe.push(b);break;case"press":case"drag":b.modifiers.disablePassive&&(C=!1);default:S.callbacks[$]=S.callbacks[$]||[],S.callbacks[$].push(b)}S.hasBindTouchEvents||(w.addEventListener("touchstart",r,C),w.addEventListener("touchmove",i,C),w.addEventListener("touchcancel",s),w.addEventListener("touchend",d),S.options.disableClick||(w.addEventListener("mousedown",r),w.addEventListener("mousemove",i),w.addEventListener("mouseup",d),w.addEventListener("mouseenter",f),w.addEventListener("mouseleave",l)),S.hasBindTouchEvents=!0)},unmounted:function(w){w.removeEventListener("touchstart",r),w.removeEventListener("touchmove",i),w.removeEventListener("touchcancel",s),w.removeEventListener("touchend",d),w.$$touchObj&&!w.$$touchObj.options.disableClick&&(w.removeEventListener("mousedown",r),w.removeEventListener("mousemove",i),w.removeEventListener("mouseup",d),w.removeEventListener("mouseenter",f),w.removeEventListener("mouseleave",l)),delete w.$$touchObj}}),n.directive("touch-class",{beforeMount:function(w,b){v(w,{touchClass:b.value})}}),n.directive("touch-options",{beforeMount:function(w,b){v(w,b.value)}})}};/**!
|
|
1101
1101
|
* Sortable 1.14.0
|
|
1102
1102
|
* @author RubaXa <trash@rubaxa.org>
|
|
1103
1103
|
* @author owenm <owen23355@gmail.com>
|
|
1104
1104
|
* @license MIT
|
|
1105
|
-
*/function Zw(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Tr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Zw(Object(t),!0).forEach(function(r){A3(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Zw(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Jl(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jl=function(e){return typeof e}:Jl=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jl(n)}function A3(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ti(){return ti=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},ti.apply(this,arguments)}function $3(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}function O3(n,e){if(n==null)return{};var t=$3(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,r)||(t[r]=n[r]))}return t}var L3="1.14.0";function Qr(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var ai=Qr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Va=Qr(/Edge/i),Qw=Qr(/firefox/i),jo=Qr(/safari/i)&&!Qr(/chrome/i)&&!Qr(/android/i),rS=Qr(/iP(ad|od|hone)/i),M3=Qr(/chrome/i)&&Qr(/android/i),iS={capture:!1,passive:!1};function ht(n,e,t){n.addEventListener(e,t,!ai&&iS)}function at(n,e,t){n.removeEventListener(e,t,!ai&&iS)}function dc(n,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function R3(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function br(n,e,t,r){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&dc(n,e):dc(n,e))||r&&n===t)return n;if(n===t)break}while(n=R3(n))}return null}var ey=/\s+/g;function On(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var r=(" "+n.className+" ").replace(ey," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(ey," ")}}function Be(n,e,t){var r=n&&n.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=t+(typeof t=="string"?"":"px")}}function Hs(n,e){var t="";if(typeof n=="string")t=n;else do{var r=Be(n,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!e&&(n=n.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function sS(n,e,t){if(n){var r=n.getElementsByTagName(e),i=0,s=r.length;if(t)for(;i<s;i++)t(r[i],i);return r}return[]}function _r(){var n=document.scrollingElement;return n||document.documentElement}function Wt(n,e,t,r,i){if(!(!n.getBoundingClientRect&&n!==window)){var s,d,f,l,p,a,o;if(n!==window&&n.parentNode&&n!==_r()?(s=n.getBoundingClientRect(),d=s.top,f=s.left,l=s.bottom,p=s.right,a=s.height,o=s.width):(d=0,f=0,l=window.innerHeight,p=window.innerWidth,a=window.innerHeight,o=window.innerWidth),(e||t)&&n!==window&&(i=i||n.parentNode,!ai))do if(i&&i.getBoundingClientRect&&(Be(i,"transform")!=="none"||t&&Be(i,"position")!=="static")){var h=i.getBoundingClientRect();d-=h.top+parseInt(Be(i,"border-top-width")),f-=h.left+parseInt(Be(i,"border-left-width")),l=d+s.height,p=f+s.width;break}while(i=i.parentNode);if(r&&n!==window){var m=Hs(i||n),v=m&&m.a,w=m&&m.d;m&&(d/=w,f/=v,o/=v,a/=w,l=d+a,p=f+o)}return{top:d,left:f,bottom:l,right:p,width:o,height:a}}}function ty(n,e,t){for(var r=Ti(n,!0),i=Wt(n)[e];r;){var s=Wt(r)[t],d=void 0;if(t==="top"||t==="left"?d=i>=s:d=i<=s,!d)return r;if(r===_r())break;r=Ti(r,!1)}return!1}function eo(n,e,t,r){for(var i=0,s=0,d=n.children;s<d.length;){if(d[s].style.display!=="none"&&d[s]!==Fe.ghost&&(r||d[s]!==Fe.dragged)&&br(d[s],t.draggable,n,!1)){if(i===e)return d[s];i++}s++}return null}function Ip(n,e){for(var t=n.lastElementChild;t&&(t===Fe.ghost||Be(t,"display")==="none"||e&&!dc(t,e));)t=t.previousElementSibling;return t||null}function Jn(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Fe.clone&&(!e||dc(n,e))&&t++;return t}function ny(n){var e=0,t=0,r=_r();if(n)do{var i=Hs(n),s=i.a,d=i.d;e+=n.scrollLeft*s,t+=n.scrollTop*d}while(n!==r&&(n=n.parentNode));return[e,t]}function I3(n,e){for(var t in n)if(!!n.hasOwnProperty(t)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===n[t][r])return Number(t)}return-1}function Ti(n,e){if(!n||!n.getBoundingClientRect)return _r();var t=n,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=Be(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return _r();if(r||e)return t;r=!0}}while(t=t.parentNode);return _r()}function N3(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function uf(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var zo;function oS(n,e){return function(){if(!zo){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),zo=setTimeout(function(){zo=void 0},e)}}}function D3(){clearTimeout(zo),zo=void 0}function aS(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function lS(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var In="Sortable"+new Date().getTime();function P3(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(Be(i,"display")==="none"||i===Fe.ghost)){n.push({target:i,rect:Wt(i)});var s=Tr({},n[n.length-1].rect);if(i.thisAnimationDuration){var d=Hs(i,!0);d&&(s.top-=d.f,s.left-=d.e)}i.fromRect=s}})}},addAnimationState:function(r){n.push(r)},removeAnimationState:function(r){n.splice(I3(n,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var s=!1,d=0;n.forEach(function(f){var l=0,p=f.target,a=p.fromRect,o=Wt(p),h=p.prevFromRect,m=p.prevToRect,v=f.rect,w=Hs(p,!0);w&&(o.top-=w.f,o.left-=w.e),p.toRect=o,p.thisAnimationDuration&&uf(h,o)&&!uf(a,o)&&(v.top-o.top)/(v.left-o.left)===(a.top-o.top)/(a.left-o.left)&&(l=F3(v,h,m,i.options)),uf(o,a)||(p.prevFromRect=a,p.prevToRect=o,l||(l=i.options.animation),i.animate(p,v,o,l)),l&&(s=!0,d=Math.max(d,l),clearTimeout(p.animationResetTimer),p.animationResetTimer=setTimeout(function(){p.animationTime=0,p.prevFromRect=null,p.fromRect=null,p.prevToRect=null,p.thisAnimationDuration=null},l),p.thisAnimationDuration=l)}),clearTimeout(e),s?e=setTimeout(function(){typeof r=="function"&&r()},d):typeof r=="function"&&r(),n=[]},animate:function(r,i,s,d){if(d){Be(r,"transition",""),Be(r,"transform","");var f=Hs(this.el),l=f&&f.a,p=f&&f.d,a=(i.left-s.left)/(l||1),o=(i.top-s.top)/(p||1);r.animatingX=!!a,r.animatingY=!!o,Be(r,"transform","translate3d("+a+"px,"+o+"px,0)"),this.forRepaintDummy=B3(r),Be(r,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),Be(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Be(r,"transition",""),Be(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},d)}}}}function B3(n){return n.offsetWidth}function F3(n,e,t,r){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var Ms=[],hf={initializeByDefault:!0},Ua={mount:function(e){for(var t in hf)hf.hasOwnProperty(t)&&!(t in e)&&(e[t]=hf[t]);Ms.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ms.push(e)},pluginEvent:function(e,t,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var s=e+"Global";Ms.forEach(function(d){!t[d.pluginName]||(t[d.pluginName][s]&&t[d.pluginName][s](Tr({sortable:t},r)),t.options[d.pluginName]&&t[d.pluginName][e]&&t[d.pluginName][e](Tr({sortable:t},r)))})},initializePlugins:function(e,t,r,i){Ms.forEach(function(f){var l=f.pluginName;if(!(!e.options[l]&&!f.initializeByDefault)){var p=new f(e,t,e.options);p.sortable=e,p.options=e.options,e[l]=p,ti(r,p.defaults)}});for(var s in e.options)if(!!e.options.hasOwnProperty(s)){var d=this.modifyOption(e,s,e.options[s]);typeof d<"u"&&(e.options[s]=d)}},getEventProperties:function(e,t){var r={};return Ms.forEach(function(i){typeof i.eventProperties=="function"&&ti(r,i.eventProperties.call(t[i.pluginName],e))}),r},modifyOption:function(e,t,r){var i;return Ms.forEach(function(s){!e[s.pluginName]||s.optionListeners&&typeof s.optionListeners[t]=="function"&&(i=s.optionListeners[t].call(e[s.pluginName],r))}),i}};function V3(n){var e=n.sortable,t=n.rootEl,r=n.name,i=n.targetEl,s=n.cloneEl,d=n.toEl,f=n.fromEl,l=n.oldIndex,p=n.newIndex,a=n.oldDraggableIndex,o=n.newDraggableIndex,h=n.originalEvent,m=n.putSortable,v=n.extraEventProperties;if(e=e||t&&t[In],!!e){var w,b=e.options,S="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!ai&&!Va?w=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(r,!0,!0)),w.to=d||t,w.from=f||t,w.item=i||t,w.clone=s,w.oldIndex=l,w.newIndex=p,w.oldDraggableIndex=a,w.newDraggableIndex=o,w.originalEvent=h,w.pullMode=m?m.lastPutMode:void 0;var C=Tr(Tr({},v),Ua.getEventProperties(r,e));for(var $ in C)w[$]=C[$];t&&t.dispatchEvent(w),b[S]&&b[S].call(e,w)}}var U3=["evt"],wn=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,s=O3(r,U3);Ua.pluginEvent.bind(Fe)(e,t,Tr({dragEl:Se,parentEl:Lt,ghostEl:je,rootEl:Et,nextEl:Ki,lastDownEl:Kl,cloneEl:Mt,cloneHidden:xi,dragStarted:Io,putSortable:qt,activeSortable:Fe.active,originalEvent:i,oldIndex:Bs,oldDraggableIndex:Go,newIndex:Ln,newDraggableIndex:Si,hideGhostForTarget:fS,unhideGhostForTarget:dS,cloneNowHidden:function(){xi=!0},cloneNowShown:function(){xi=!1},dispatchSortableEvent:function(f){hn({sortable:t,name:f,originalEvent:i})}},s))};function hn(n){V3(Tr({putSortable:qt,cloneEl:Mt,targetEl:Se,rootEl:Et,oldIndex:Bs,oldDraggableIndex:Go,newIndex:Ln,newDraggableIndex:Si},n))}var Se,Lt,je,Et,Ki,Kl,Mt,xi,Bs,Ln,Go,Si,Pl,qt,Ns=!1,pc=!1,mc=[],Gi,lr,ff,df,ry,iy,Io,Rs,Yo,Jo=!1,Bl=!1,Xl,rn,pf=[],ad=!1,gc=[],Cu=typeof document<"u",Fl=rS,sy=Va||ai?"cssFloat":"float",W3=Cu&&!M3&&!rS&&"draggable"in document.createElement("div"),cS=function(){if(!!Cu){if(ai)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),uS=function(e,t){var r=Be(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=eo(e,0,t),d=eo(e,1,t),f=s&&Be(s),l=d&&Be(d),p=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+Wt(s).width,a=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Wt(d).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&f.float&&f.float!=="none"){var o=f.float==="left"?"left":"right";return d&&(l.clear==="both"||l.clear===o)?"vertical":"horizontal"}return s&&(f.display==="block"||f.display==="flex"||f.display==="table"||f.display==="grid"||p>=i&&r[sy]==="none"||d&&r[sy]==="none"&&p+a>i)?"vertical":"horizontal"},H3=function(e,t,r){var i=r?e.left:e.top,s=r?e.right:e.bottom,d=r?e.width:e.height,f=r?t.left:t.top,l=r?t.right:t.bottom,p=r?t.width:t.height;return i===f||s===l||i+d/2===f+p/2},j3=function(e,t){var r;return mc.some(function(i){var s=i[In].options.emptyInsertThreshold;if(!(!s||Ip(i))){var d=Wt(i),f=e>=d.left-s&&e<=d.right+s,l=t>=d.top-s&&t<=d.bottom+s;if(f&&l)return r=i}}),r},hS=function(e){function t(s,d){return function(f,l,p,a){var o=f.options.group.name&&l.options.group.name&&f.options.group.name===l.options.group.name;if(s==null&&(d||o))return!0;if(s==null||s===!1)return!1;if(d&&s==="clone")return s;if(typeof s=="function")return t(s(f,l,p,a),d)(f,l,p,a);var h=(d?f:l).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var r={},i=e.group;(!i||Jl(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,e.group=r},fS=function(){!cS&&je&&Be(je,"display","none")},dS=function(){!cS&&je&&Be(je,"display","")};Cu&&document.addEventListener("click",function(n){if(pc)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),pc=!1,!1},!0);var Yi=function(e){if(Se){e=e.touches?e.touches[0]:e;var t=j3(e.clientX,e.clientY);if(t){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[In]._onDragOver(r)}}},z3=function(e){Se&&Se.parentNode[In]._isOutsideThisEl(e.target)};function Fe(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=ti({},e),n[In]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return uS(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,f){d.setData("Text",f.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Fe.supportPointer!==!1&&"PointerEvent"in window&&!jo,emptyInsertThreshold:5};Ua.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);hS(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:W3,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ht(n,"pointerdown",this._onTapStart):(ht(n,"mousedown",this._onTapStart),ht(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(ht(n,"dragover",this),ht(n,"dragenter",this)),mc.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ti(this,P3())}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Rs=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Se):this.options.direction},_onTapStart:function(e){if(!!e.cancelable){var t=this,r=this.el,i=this.options,s=i.preventOnFilter,d=e.type,f=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(f||e).target,p=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,a=i.filter;if(Q3(r),!Se&&!(/mousedown|pointerdown/.test(d)&&e.button!==0||i.disabled)&&!p.isContentEditable&&!(!this.nativeDraggable&&jo&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=br(l,i.draggable,r,!1),!(l&&l.animated)&&Kl!==l)){if(Bs=Jn(l),Go=Jn(l,i.draggable),typeof a=="function"){if(a.call(this,e,l,this)){hn({sortable:t,rootEl:p,name:"filter",targetEl:l,toEl:r,fromEl:r}),wn("filter",t,{evt:e}),s&&e.cancelable&&e.preventDefault();return}}else if(a&&(a=a.split(",").some(function(o){if(o=br(p,o.trim(),r,!1),o)return hn({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:r,toEl:r}),wn("filter",t,{evt:e}),!0}),a)){s&&e.cancelable&&e.preventDefault();return}i.handle&&!br(p,i.handle,r,!1)||this._prepareDragStart(e,f,l)}}},_prepareDragStart:function(e,t,r){var i=this,s=i.el,d=i.options,f=s.ownerDocument,l;if(r&&!Se&&r.parentNode===s){var p=Wt(r);if(Et=s,Se=r,Lt=Se.parentNode,Ki=Se.nextSibling,Kl=r,Pl=d.group,Fe.dragged=Se,Gi={target:Se,clientX:(t||e).clientX,clientY:(t||e).clientY},ry=Gi.clientX-p.left,iy=Gi.clientY-p.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Se.style["will-change"]="all",l=function(){if(wn("delayEnded",i,{evt:e}),Fe.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Qw&&i.nativeDraggable&&(Se.draggable=!0),i._triggerDragStart(e,t),hn({sortable:i,name:"choose",originalEvent:e}),On(Se,d.chosenClass,!0)},d.ignore.split(",").forEach(function(a){sS(Se,a.trim(),mf)}),ht(f,"dragover",Yi),ht(f,"mousemove",Yi),ht(f,"touchmove",Yi),ht(f,"mouseup",i._onDrop),ht(f,"touchend",i._onDrop),ht(f,"touchcancel",i._onDrop),Qw&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Se.draggable=!0),wn("delayStart",this,{evt:e}),d.delay&&(!d.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Va||ai))){if(Fe.eventCanceled){this._onDrop();return}ht(f,"mouseup",i._disableDelayedDrag),ht(f,"touchend",i._disableDelayedDrag),ht(f,"touchcancel",i._disableDelayedDrag),ht(f,"mousemove",i._delayedDragTouchMoveHandler),ht(f,"touchmove",i._delayedDragTouchMoveHandler),d.supportPointer&&ht(f,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,d.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Se&&mf(Se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;at(e,"mouseup",this._disableDelayedDrag),at(e,"touchend",this._disableDelayedDrag),at(e,"touchcancel",this._disableDelayedDrag),at(e,"mousemove",this._delayedDragTouchMoveHandler),at(e,"touchmove",this._delayedDragTouchMoveHandler),at(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?ht(document,"pointermove",this._onTouchMove):t?ht(document,"touchmove",this._onTouchMove):ht(document,"mousemove",this._onTouchMove):(ht(Se,"dragend",this),ht(Et,"dragstart",this._onDragStart));try{document.selection?ql(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ns=!1,Et&&Se){wn("dragStarted",this,{evt:t}),this.nativeDraggable&&ht(document,"dragover",z3);var r=this.options;!e&&On(Se,r.dragClass,!1),On(Se,r.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),hn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(lr){this._lastX=lr.clientX,this._lastY=lr.clientY,fS();for(var e=document.elementFromPoint(lr.clientX,lr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(lr.clientX,lr.clientY),e!==t);)t=e;if(Se.parentNode[In]._isOutsideThisEl(e),t)do{if(t[In]){var r=void 0;if(r=t[In]._onDragOver({clientX:lr.clientX,clientY:lr.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);dS()}},_onTouchMove:function(e){if(Gi){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,s=e.touches?e.touches[0]:e,d=je&&Hs(je,!0),f=je&&d&&d.a,l=je&&d&&d.d,p=Fl&&rn&&ny(rn),a=(s.clientX-Gi.clientX+i.x)/(f||1)+(p?p[0]-pf[0]:0)/(f||1),o=(s.clientY-Gi.clientY+i.y)/(l||1)+(p?p[1]-pf[1]:0)/(l||1);if(!Fe.active&&!Ns){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(je){d?(d.e+=a-(ff||0),d.f+=o-(df||0)):d={a:1,b:0,c:0,d:1,e:a,f:o};var h="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");Be(je,"webkitTransform",h),Be(je,"mozTransform",h),Be(je,"msTransform",h),Be(je,"transform",h),ff=a,df=o,lr=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!je){var e=this.options.fallbackOnBody?document.body:Et,t=Wt(Se,!0,Fl,!0,e),r=this.options;if(Fl){for(rn=e;Be(rn,"position")==="static"&&Be(rn,"transform")==="none"&&rn!==document;)rn=rn.parentNode;rn!==document.body&&rn!==document.documentElement?(rn===document&&(rn=_r()),t.top+=rn.scrollTop,t.left+=rn.scrollLeft):rn=_r(),pf=ny(rn)}je=Se.cloneNode(!0),On(je,r.ghostClass,!1),On(je,r.fallbackClass,!0),On(je,r.dragClass,!0),Be(je,"transition",""),Be(je,"transform",""),Be(je,"box-sizing","border-box"),Be(je,"margin",0),Be(je,"top",t.top),Be(je,"left",t.left),Be(je,"width",t.width),Be(je,"height",t.height),Be(je,"opacity","0.8"),Be(je,"position",Fl?"absolute":"fixed"),Be(je,"zIndex","100000"),Be(je,"pointerEvents","none"),Fe.ghost=je,e.appendChild(je),Be(je,"transform-origin",ry/parseInt(je.style.width)*100+"% "+iy/parseInt(je.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,i=e.dataTransfer,s=r.options;if(wn("dragStart",this,{evt:e}),Fe.eventCanceled){this._onDrop();return}wn("setupClone",this),Fe.eventCanceled||(Mt=lS(Se),Mt.draggable=!1,Mt.style["will-change"]="",this._hideClone(),On(Mt,this.options.chosenClass,!1),Fe.clone=Mt),r.cloneId=ql(function(){wn("clone",r),!Fe.eventCanceled&&(r.options.removeCloneOnHide||Et.insertBefore(Mt,Se),r._hideClone(),hn({sortable:r,name:"clone"}))}),!t&&On(Se,s.dragClass,!0),t?(pc=!0,r._loopId=setInterval(r._emulateDragOver,50)):(at(document,"mouseup",r._onDrop),at(document,"touchend",r._onDrop),at(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(r,i,Se)),ht(document,"drop",r),Be(Se,"transform","translateZ(0)")),Ns=!0,r._dragStartId=ql(r._dragStarted.bind(r,t,e)),ht(document,"selectstart",r),Io=!0,jo&&Be(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,i,s,d,f=this.options,l=f.group,p=Fe.active,a=Pl===l,o=f.sort,h=qt||p,m,v=this,w=!1;if(ad)return;function b(z,Y){wn(z,v,Tr({evt:e,isOwner:a,axis:m?"vertical":"horizontal",revert:d,dragRect:i,targetRect:s,canSort:o,fromSortable:h,target:r,completed:C,onMove:function(re,ie){return Vl(Et,t,Se,i,re,Wt(re),e,ie)},changed:$},Y))}function S(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==h&&h.captureAnimationState()}function C(z){return b("dragOverCompleted",{insertion:z}),z&&(a?p._hideClone():p._showClone(v),v!==h&&(On(Se,qt?qt.options.ghostClass:p.options.ghostClass,!1),On(Se,f.ghostClass,!0)),qt!==v&&v!==Fe.active?qt=v:v===Fe.active&&qt&&(qt=null),h===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===Se&&!Se.animated||r===t&&!r.animated)&&(Rs=null),!f.dragoverBubble&&!e.rootEl&&r!==document&&(Se.parentNode[In]._isOutsideThisEl(e.target),!z&&Yi(e)),!f.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}function $(){Ln=Jn(Se),Si=Jn(Se,f.draggable),hn({sortable:v,name:"change",toEl:t,newIndex:Ln,newDraggableIndex:Si,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=br(r,f.draggable,t,!0),b("dragOver"),Fe.eventCanceled)return w;if(Se.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return C(!1);if(pc=!1,p&&!f.disabled&&(a?o||(d=Lt!==Et):qt===this||(this.lastPutMode=Pl.checkPull(this,p,Se,e))&&l.checkPut(this,p,Se,e))){if(m=this._getDirection(e,r)==="vertical",i=Wt(Se),b("dragOverValid"),Fe.eventCanceled)return w;if(d)return Lt=Et,S(),this._hideClone(),b("revert"),Fe.eventCanceled||(Ki?Et.insertBefore(Se,Ki):Et.appendChild(Se)),C(!0);var k=Ip(t,f.draggable);if(!k||K3(e,m,this)&&!k.animated){if(k===Se)return C(!1);if(k&&t===e.target&&(r=k),r&&(s=Wt(r)),Vl(Et,t,Se,i,r,s,e,!!r)!==!1)return S(),t.appendChild(Se),Lt=t,$(),C(!0)}else if(k&&J3(e,m,this)){var x=eo(t,0,f,!0);if(x===Se)return C(!1);if(r=x,s=Wt(r),Vl(Et,t,Se,i,r,s,e,!1)!==!1)return S(),t.insertBefore(Se,x),Lt=t,$(),C(!0)}else if(r.parentNode===t){s=Wt(r);var T=0,M,A=Se.parentNode!==t,R=!H3(Se.animated&&Se.toRect||i,r.animated&&r.toRect||s,m),y=m?"top":"left",E=ty(r,"top","top")||ty(Se,"top","top"),O=E?E.scrollTop:void 0;Rs!==r&&(M=s[y],Jo=!1,Bl=!R&&f.invertSwap||A),T=X3(e,r,s,m,R?1:f.swapThreshold,f.invertedSwapThreshold==null?f.swapThreshold:f.invertedSwapThreshold,Bl,Rs===r);var I;if(T!==0){var N=Jn(Se);do N-=T,I=Lt.children[N];while(I&&(Be(I,"display")==="none"||I===je))}if(T===0||I===r)return C(!1);Rs=r,Yo=T;var P=r.nextElementSibling,B=!1;B=T===1;var j=Vl(Et,t,Se,i,r,s,e,B);if(j!==!1)return(j===1||j===-1)&&(B=j===1),ad=!0,setTimeout(Y3,30),S(),B&&!P?t.appendChild(Se):r.parentNode.insertBefore(Se,B?P:r),E&&aS(E,0,O-E.scrollTop),Lt=Se.parentNode,M!==void 0&&!Bl&&(Xl=Math.abs(M-Wt(r)[y])),$(),C(!0)}if(t.contains(Se))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){at(document,"mousemove",this._onTouchMove),at(document,"touchmove",this._onTouchMove),at(document,"pointermove",this._onTouchMove),at(document,"dragover",Yi),at(document,"mousemove",Yi),at(document,"touchmove",Yi)},_offUpEvents:function(){var e=this.el.ownerDocument;at(e,"mouseup",this._onDrop),at(e,"touchend",this._onDrop),at(e,"pointerup",this._onDrop),at(e,"touchcancel",this._onDrop),at(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(Ln=Jn(Se),Si=Jn(Se,r.draggable),wn("drop",this,{evt:e}),Lt=Se&&Se.parentNode,Ln=Jn(Se),Si=Jn(Se,r.draggable),Fe.eventCanceled){this._nulling();return}Ns=!1,Bl=!1,Jo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ld(this.cloneId),ld(this._dragStartId),this.nativeDraggable&&(at(document,"drop",this),at(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),jo&&Be(document.body,"user-select",""),Be(Se,"transform",""),e&&(Io&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),je&&je.parentNode&&je.parentNode.removeChild(je),(Et===Lt||qt&&qt.lastPutMode!=="clone")&&Mt&&Mt.parentNode&&Mt.parentNode.removeChild(Mt),Se&&(this.nativeDraggable&&at(Se,"dragend",this),mf(Se),Se.style["will-change"]="",Io&&!Ns&&On(Se,qt?qt.options.ghostClass:this.options.ghostClass,!1),On(Se,this.options.chosenClass,!1),hn({sortable:this,name:"unchoose",toEl:Lt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Et!==Lt?(Ln>=0&&(hn({rootEl:Lt,name:"add",toEl:Lt,fromEl:Et,originalEvent:e}),hn({sortable:this,name:"remove",toEl:Lt,originalEvent:e}),hn({rootEl:Lt,name:"sort",toEl:Lt,fromEl:Et,originalEvent:e}),hn({sortable:this,name:"sort",toEl:Lt,originalEvent:e})),qt&&qt.save()):Ln!==Bs&&Ln>=0&&(hn({sortable:this,name:"update",toEl:Lt,originalEvent:e}),hn({sortable:this,name:"sort",toEl:Lt,originalEvent:e})),Fe.active&&((Ln==null||Ln===-1)&&(Ln=Bs,Si=Go),hn({sortable:this,name:"end",toEl:Lt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){wn("nulling",this),Et=Se=Lt=je=Ki=Mt=Kl=xi=Gi=lr=Io=Ln=Si=Bs=Go=Rs=Yo=qt=Pl=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,gc.forEach(function(e){e.checked=!0}),gc.length=ff=df=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Se&&(this._onDragOver(e),G3(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,i=0,s=r.length,d=this.options;i<s;i++)t=r[i],br(t,d.draggable,this.el,!1)&&e.push(t.getAttribute(d.dataIdAttr)||Z3(t));return e},sort:function(e,t){var r={},i=this.el;this.toArray().forEach(function(s,d){var f=i.children[d];br(f,this.options.draggable,i,!1)&&(r[s]=f)},this),t&&this.captureAnimationState(),e.forEach(function(s){r[s]&&(i.removeChild(r[s]),i.appendChild(r[s]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return br(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var i=Ua.modifyOption(this,e,t);typeof i<"u"?r[e]=i:r[e]=t,e==="group"&&hS(r)},destroy:function(){wn("destroy",this);var e=this.el;e[In]=null,at(e,"mousedown",this._onTapStart),at(e,"touchstart",this._onTapStart),at(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(at(e,"dragover",this),at(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),mc.splice(mc.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!xi){if(wn("hideClone",this),Fe.eventCanceled)return;Be(Mt,"display","none"),this.options.removeCloneOnHide&&Mt.parentNode&&Mt.parentNode.removeChild(Mt),xi=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(xi){if(wn("showClone",this),Fe.eventCanceled)return;Se.parentNode==Et&&!this.options.group.revertClone?Et.insertBefore(Mt,Se):Ki?Et.insertBefore(Mt,Ki):Et.appendChild(Mt),this.options.group.revertClone&&this.animate(Se,Mt),Be(Mt,"display",""),xi=!1}}};function G3(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Vl(n,e,t,r,i,s,d,f){var l,p=n[In],a=p.options.onMove,o;return window.CustomEvent&&!ai&&!Va?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=n,l.dragged=t,l.draggedRect=r,l.related=i||e,l.relatedRect=s||Wt(e),l.willInsertAfter=f,l.originalEvent=d,n.dispatchEvent(l),a&&(o=a.call(p,l,d)),o}function mf(n){n.draggable=!1}function Y3(){ad=!1}function J3(n,e,t){var r=Wt(eo(t.el,0,t.options,!0)),i=10;return e?n.clientX<r.left-i||n.clientY<r.top&&n.clientX<r.right:n.clientY<r.top-i||n.clientY<r.bottom&&n.clientX<r.left}function K3(n,e,t){var r=Wt(Ip(t.el,t.options.draggable)),i=10;return e?n.clientX>r.right+i||n.clientX<=r.right&&n.clientY>r.bottom&&n.clientX>=r.left:n.clientX>r.right&&n.clientY>r.top||n.clientX<=r.right&&n.clientY>r.bottom+i}function X3(n,e,t,r,i,s,d,f){var l=r?n.clientY:n.clientX,p=r?t.height:t.width,a=r?t.top:t.left,o=r?t.bottom:t.right,h=!1;if(!d){if(f&&Xl<p*i){if(!Jo&&(Yo===1?l>a+p*s/2:l<o-p*s/2)&&(Jo=!0),Jo)h=!0;else if(Yo===1?l<a+Xl:l>o-Xl)return-Yo}else if(l>a+p*(1-i)/2&&l<o-p*(1-i)/2)return q3(e)}return h=h||d,h&&(l<a+p*s/2||l>o-p*s/2)?l>a+p/2?1:-1:0}function q3(n){return Jn(Se)<Jn(n)?1:-1}function Z3(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,r=0;t--;)r+=e.charCodeAt(t);return r.toString(36)}function Q3(n){gc.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&gc.push(r)}}function ql(n){return setTimeout(n,0)}function ld(n){return clearTimeout(n)}Cu&&ht(document,"touchmove",function(n){(Fe.active||Ns)&&n.cancelable&&n.preventDefault()});Fe.utils={on:ht,off:at,css:Be,find:sS,is:function(e,t){return!!br(e,t,e,!1)},extend:N3,throttle:oS,closest:br,toggleClass:On,clone:lS,index:Jn,nextTick:ql,cancelNextTick:ld,detectDirection:uS,getChild:eo};Fe.get=function(n){return n[In]};Fe.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Fe.utils=Tr(Tr({},Fe.utils),r.utils)),Ua.mount(r)})};Fe.create=function(n,e){return new Fe(n,e)};Fe.version=L3;var Bt=[],No,cd,ud=!1,gf,vf,vc,Do;function eG(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?ht(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ht(document,"pointermove",this._handleFallbackAutoScroll):r.touches?ht(document,"touchmove",this._handleFallbackAutoScroll):ht(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?at(document,"dragover",this._handleAutoScroll):(at(document,"pointermove",this._handleFallbackAutoScroll),at(document,"touchmove",this._handleFallbackAutoScroll),at(document,"mousemove",this._handleFallbackAutoScroll)),oy(),Zl(),D3()},nulling:function(){vc=cd=No=ud=Do=gf=vf=null,Bt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var i=this,s=(t.touches?t.touches[0]:t).clientX,d=(t.touches?t.touches[0]:t).clientY,f=document.elementFromPoint(s,d);if(vc=t,r||this.options.forceAutoScrollFallback||Va||ai||jo){wf(t,this.options,f,r);var l=Ti(f,!0);ud&&(!Do||s!==gf||d!==vf)&&(Do&&oy(),Do=setInterval(function(){var p=Ti(document.elementFromPoint(s,d),!0);p!==l&&(l=p,Zl()),wf(t,i.options,p,r)},10),gf=s,vf=d)}else{if(!this.options.bubbleScroll||Ti(f,!0)===_r()){Zl();return}wf(t,this.options,Ti(f,!1),!1)}}},ti(n,{pluginName:"scroll",initializeByDefault:!0})}function Zl(){Bt.forEach(function(n){clearInterval(n.pid)}),Bt=[]}function oy(){clearInterval(Do)}var wf=oS(function(n,e,t,r){if(!!e.scroll){var i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,d=e.scrollSensitivity,f=e.scrollSpeed,l=_r(),p=!1,a;cd!==t&&(cd=t,Zl(),No=e.scroll,a=e.scrollFn,No===!0&&(No=Ti(t,!0)));var o=0,h=No;do{var m=h,v=Wt(m),w=v.top,b=v.bottom,S=v.left,C=v.right,$=v.width,k=v.height,x=void 0,T=void 0,M=m.scrollWidth,A=m.scrollHeight,R=Be(m),y=m.scrollLeft,E=m.scrollTop;m===l?(x=$<M&&(R.overflowX==="auto"||R.overflowX==="scroll"||R.overflowX==="visible"),T=k<A&&(R.overflowY==="auto"||R.overflowY==="scroll"||R.overflowY==="visible")):(x=$<M&&(R.overflowX==="auto"||R.overflowX==="scroll"),T=k<A&&(R.overflowY==="auto"||R.overflowY==="scroll"));var O=x&&(Math.abs(C-i)<=d&&y+$<M)-(Math.abs(S-i)<=d&&!!y),I=T&&(Math.abs(b-s)<=d&&E+k<A)-(Math.abs(w-s)<=d&&!!E);if(!Bt[o])for(var N=0;N<=o;N++)Bt[N]||(Bt[N]={});(Bt[o].vx!=O||Bt[o].vy!=I||Bt[o].el!==m)&&(Bt[o].el=m,Bt[o].vx=O,Bt[o].vy=I,clearInterval(Bt[o].pid),(O!=0||I!=0)&&(p=!0,Bt[o].pid=setInterval(function(){r&&this.layer===0&&Fe.active._onTouchMove(vc);var P=Bt[this.layer].vy?Bt[this.layer].vy*f:0,B=Bt[this.layer].vx?Bt[this.layer].vx*f:0;typeof a=="function"&&a.call(Fe.dragged.parentNode[In],B,P,n,vc,Bt[this.layer].el)!=="continue"||aS(Bt[this.layer].el,B,P)}.bind({layer:o}),24))),o++}while(e.bubbleScroll&&h!==l&&(h=Ti(h,!1)));ud=p}},30),pS=function(e){var t=e.originalEvent,r=e.putSortable,i=e.dragEl,s=e.activeSortable,d=e.dispatchSortableEvent,f=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(!!t){var p=r||s;f();var a=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,o=document.elementFromPoint(a.clientX,a.clientY);l(),p&&!p.el.contains(o)&&(d("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function Np(){}Np.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=eo(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:pS};ti(Np,{pluginName:"revertOnSpill"});function Dp(){}Dp.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:pS};ti(Dp,{pluginName:"removeOnSpill"});Fe.mount(new eG);Fe.mount(Dp,Np);function yf(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function ay(n,e,t){const r=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,r)}function tG(){return typeof window<"u"?window.console:global.console}const nG=tG();function rG(n){const e=Object.create(null);return function(r){return e[r]||(e[r]=n(r))}}const iG=/-(\w)/g,sG=rG(n=>n.replace(iG,(e,t)=>t.toUpperCase())),mS=["Start","Add","Remove","Update","End"],gS=["Choose","Unchoose","Sort","Filter","Clone"],vS=["Move"],oG=[vS,mS,gS].flatMap(n=>n).map(n=>`on${n}`),hd={manage:vS,manageAndEmit:mS,emit:gS};function aG(n){return oG.indexOf(n)!==-1}const lG=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function cG(n){return lG.includes(n)}function uG(n){return["transition-group","TransitionGroup"].includes(n)}function wS(n){return["id","class","role","style"].includes(n)||n.startsWith("data-")||n.startsWith("aria-")||n.startsWith("on")}function yS(n){return n.reduce((e,[t,r])=>(e[t]=r,e),{})}function hG({$attrs:n,componentData:e={}}){return{...yS(Object.entries(n).filter(([r,i])=>wS(r))),...e}}function fG({$attrs:n,callBackBuilder:e}){const t=yS(bS(n));Object.entries(e).forEach(([i,s])=>{hd[i].forEach(d=>{t[`on${d}`]=s(d)})});const r=`[data-draggable]${t.draggable||""}`;return{...t,draggable:r}}function bS(n){return Object.entries(n).filter(([e,t])=>!wS(e)).map(([e,t])=>[sG(e),t]).filter(([e,t])=>!aG(e))}const ly=({el:n})=>n,dG=(n,e)=>n.__draggable_context=e,cy=n=>n.__draggable_context;class pG{constructor({nodes:{header:e,default:t,footer:r},root:i,realList:s}){this.defaultNodes=t,this.children=[...e,...t,...r],this.externalComponent=i.externalComponent,this.rootTransition=i.transition,this.tag=i.tag,this.realList=s}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,t){const{tag:r,children:i,_isRootComponent:s}=this;return e(r,t,s?{default:()=>i}:i)}updated(){const{defaultNodes:e,realList:t}=this;e.forEach((r,i)=>{dG(ly(r),{element:t[i],index:i})})}getUnderlyingVm(e){return cy(e)}getVmIndexFromDomIndex(e,t){const{defaultNodes:r}=this,{length:i}=r,s=t.children,d=s.item(e);if(d===null)return i;const f=cy(d);if(f)return f.index;if(i===0)return 0;const l=ly(r[0]),p=[...s].findIndex(a=>a===l);return e<p?0:i}}function mG(n,e){const t=n[e];return t?t():[]}function gG({$slots:n,realList:e,getKey:t}){const r=e||[],[i,s]=["header","footer"].map(l=>mG(n,l)),{item:d}=n;if(!d)throw new Error("draggable element must have an item slot");const f=r.flatMap((l,p)=>d({element:l,index:p}).map(a=>(a.key=t(l),a.props={...a.props||{},"data-draggable":!0},a)));if(f.length!==r.length)throw new Error("Item slot must have only one child");return{header:i,footer:s,default:f}}function vG(n){const e=uG(n),t=!cG(n)&&!e;return{transition:e,externalComponent:t,tag:t?c.resolveComponent(n):e?c.TransitionGroup:n}}function wG({$slots:n,tag:e,realList:t,getKey:r}){const i=gG({$slots:n,realList:t,getKey:r}),s=vG(e);return new pG({nodes:i,root:s,realList:t})}function SS(n,e){c.nextTick(()=>this.$emit(n.toLowerCase(),e))}function xS(n){return(e,t)=>{if(this.realList!==null)return this[`onDrag${n}`](e,t)}}function yG(n){const e=xS.call(this,n);return(t,r)=>{e.call(this,t,r),SS.call(this,n,t)}}let bf=null;const bG={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},SG=["update:modelValue","change",...[...hd.manageAndEmit,...hd.emit].map(n=>n.toLowerCase())],xG=c.defineComponent({name:"draggable",inheritAttrs:!1,props:bG,emits:SG,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:n,$attrs:e,tag:t,componentData:r,realList:i,getKey:s}=this,d=wG({$slots:n,tag:t,realList:i,getKey:s});this.componentStructure=d;const f=hG({$attrs:e,componentData:r});return d.render(c.h,f)}catch(n){return this.error=!0,c.h("pre",{style:{color:"red"}},n.stack)}},created(){this.list!==null&&this.modelValue!==null&&nG.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:n,$el:e,componentStructure:t}=this;t.updated();const r=fG({$attrs:n,callBackBuilder:{manageAndEmit:s=>yG.call(this,s),emit:s=>SS.bind(this,s),manage:s=>xS.call(this,s)}}),i=e.nodeType===1?e:e.parentElement;this._sortable=new Fe(i,r),this.targetDomElement=i,i.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:n}=this;return n||this.modelValue},getKey(){const{itemKey:n}=this;return typeof n=="function"?n:e=>e[n]}},watch:{$attrs:{handler(n){const{_sortable:e}=this;!e||bS(n).forEach(([t,r])=>{e.option(t,r)})},deep:!0}},methods:{getUnderlyingVm(n){return this.componentStructure.getUnderlyingVm(n)||null},getUnderlyingPotencialDraggableComponent(n){return n.__draggable_component__},emitChanges(n){c.nextTick(()=>this.$emit("change",n))},alterList(n){if(this.list){n(this.list);return}const e=[...this.modelValue];n(e),this.$emit("update:modelValue",e)},spliceList(){const n=e=>e.splice(...arguments);this.alterList(n)},updatePosition(n,e){const t=r=>r.splice(e,0,r.splice(n,1)[0]);this.alterList(t)},getRelatedContextFromMoveEvent({to:n,related:e}){const t=this.getUnderlyingPotencialDraggableComponent(n);if(!t)return{component:t};const r=t.realList,i={list:r,component:t};return n!==e&&r?{...t.getUnderlyingVm(e)||{},...i}:i},getVmIndexFromDomIndex(n){return this.componentStructure.getVmIndexFromDomIndex(n,this.targetDomElement)},onDragStart(n){this.context=this.getUnderlyingVm(n.item),n.item._underlying_vm_=this.clone(this.context.element),bf=n.item},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;yf(n.item);const t=this.getVmIndexFromDomIndex(n.newIndex);this.spliceList(t,0,e);const r={element:e,newIndex:t};this.emitChanges({added:r})},onDragRemove(n){if(ay(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){yf(n.clone);return}const{index:e,element:t}=this.context;this.spliceList(e,1);const r={element:t,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(n){yf(n.item),ay(n.from,n.item,n.oldIndex);const e=this.context.index,t=this.getVmIndexFromDomIndex(n.newIndex);this.updatePosition(e,t);const r={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:r})},computeFutureIndex(n,e){if(!n.element)return 0;const t=[...e.to.children].filter(d=>d.style.display!=="none"),r=t.indexOf(e.related),i=n.component.getVmIndexFromDomIndex(r);return t.indexOf(bf)!==-1||!e.willInsertAfter?i:i+1},onDragMove(n,e){const{move:t,realList:r}=this;if(!t||!r)return!0;const i=this.getRelatedContextFromMoveEvent(n),s=this.computeFutureIndex(i,n),d={...this.context,futureIndex:s},f={...n,relatedContext:i,draggedContext:d};return t(f,e)},onDragEnd(){bf=null}}}),_G={class:"tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[#eaedf3]"},CG={class:"assets-details__content tw-grow tw-basis-0"},EG={class:"tw-p-4"},_S=c.defineComponent({__name:"assets-details",props:{expanded:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},options:null},emits:["parent:call","close:blade"],setup(n,{emit:e}){const t=n,{t:r}=$d(),i=c.reactive({...t.options.editableAsset}),s=[{id:"save",title:r("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),icon:"fas fa-save",clickHandler(){t.options.sortHandler&&typeof t.options.sortHandler=="function"&&(t.options.sortHandler(!1,i),e("close:blade"))}},{id:"delete",title:r("ASSETS.PAGES.DETAILS.TOOLBAR.DELETE"),icon:"fas fa-trash",clickHandler(){window.confirm(c.unref(c.computed(()=>r("ASSETS.PAGES.DETAILS.DELETE_CONFIRMATION"))))&&t.options.sortHandler&&typeof t.options.sortHandler=="function"&&(t.options.sortHandler(!0,i),e("close:blade"))}}];return(d,f)=>(c.openBlock(),c.createBlock(c.unref(fp),{title:n.options.editableAsset.name,subtitle:d.$t("ASSETS.PAGES.DETAILS.SUBTITLE"),expanded:n.expanded,closable:n.closable,toolbarItems:s,onClose:f[3]||(f[3]=l=>d.$emit("close:blade"))},{default:c.withCtx(()=>[c.createElementVNode("div",_G,[c.createElementVNode("div",CG,[c.createVNode(c.unref(to),{"no-padding":!0},{default:c.withCtx(()=>[c.createElementVNode("div",EG,[c.createVNode(c.unref(wd),null,{default:c.withCtx(()=>[c.createVNode(c.unref(yc),{class:"tw-mb-4",src:i.url,size:"xl",bordered:!0},null,8,["src"]),c.createVNode(c.unref(Xo),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),modelValue:i.name,"onUpdate:modelValue":f[0]||(f[0]=l=>i.name=l),clearable:"",required:"",placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER")},null,8,["label","modelValue","placeholder"]),c.createVNode(c.unref(Xo),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TITLE"),modelValue:i.altText,"onUpdate:modelValue":f[1]||(f[1]=l=>i.altText=l),clearable:"",placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.PLACEHOLDER"),tooltip:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TOOLTIP"),required:""},null,8,["label","modelValue","placeholder","tooltip"]),c.createVNode(c.unref(hp),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE"),modelValue:i.description,"onUpdate:modelValue":f[2]||(f[2]=l=>i.description=l),placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER"),"is-required":""},null,8,["label","modelValue","placeholder"])]),_:1})])]),_:1})])])]),_:1},8,["title","subtitle","expanded","closable"]))}}),kG=Object.freeze(Object.defineProperty({__proto__:null,AssetsDetails:_S},Symbol.toStringTag,{value:"Module"})),CS={PAGES:{DETAILS:{SUBTITLE:"Image edit",TOOLBAR:{SAVE:"Save",DELETE:"Delete"},FIELDS:{NAME:{TITLE:"Image name",PLACEHOLDER:"Enter image name"},ALT:{TITLE:"Image alternative text",PLACEHOLDER:"Enter image alt text",TOOLTIP:"This text will be displayed in case of disabled/unloaded image on the page"},DESCRIPTION:{TITLE:"Meta description",PLACEHOLDER:"Enter meta description"}},DELETE_CONFIRMATION:"Are you sure you want to delete this image?"}}},TG={ASSETS:CS},AG=Object.freeze(Object.defineProperty({__proto__:null,ASSETS:CS,default:TG},Symbol.toStringTag,{value:"Module"})),$G=Object.freeze(Object.defineProperty({__proto__:null,en:AG},Symbol.toStringTag,{value:"Module"})),OG={install(n){Object.entries(kG).forEach(([e,t])=>{n.component(e,t),n.config.globalProperties.pages?.push(t)}),Object.entries($G).forEach(([e,t])=>{n.config.globalProperties.$mergeLocaleMessage(e,t)})}},LG={class:"tw-relative tw-h-full tw-flex tw-items-center tw-justify-center tw-mx-2 tw-shrink-0"},MG=["onClick"],RG=c.createElementVNode("div",{class:"tw-h-[22px] tw-w-[22px] [mask:url(/assets/app-select.svg)] tw-bg-[color:var(--app-bar-button-color)] tw-duration-200"},null,-1),IG=[RG],NG={key:0,class:"tw-px-4 tw-py-3.5 tw-bg-white tw-drop-shadow-[4px_4px_20px_rgba(47,86,108,0.25)] tw-absolute tw-z-[10000] tw-rounded tw-top-[var(--app-bar-height)] tw-left-0"},DG={class:"tw-flex tw-flex-col tw-gap-3 tw-overflow-hidden"},PG=["onClick"],BG=["src","alt"],FG={class:"tw-font-normal tw-text-sm tw-text-[#727C87] tw-truncate group-hover:tw-opacity-80"},ES=c.defineComponent({__name:"vc-app-switcher",props:{appsList:{default:void 0}},emits:["onClick"],setup(n,{emit:e}){const t=n,r=c.ref(!1),i=p=>"https://vcmp-dev.paas.govirto.com/".replace(/\/+$/,"")+p,s=p=>{const a=window.location.pathname.replace(/\/+$/,""),o=p.match(a);return o?o[0]:null},d=p=>{e("onClick",p),l()},f=()=>{t.appsList&&t.appsList.length&&(r.value=!r.value)},l=()=>{r.value=!1};return(p,a)=>{const o=c.resolveDirective("click-outside");return c.withDirectives((c.openBlock(),c.createElementBlock("div",LG,[c.createElementVNode("button",{class:"hover:[&>img] hover:[&_div]:tw-bg-[color:var(--app-bar-button-color-hover)]",onClick:c.withModifiers(f,["stop"])},IG,8,MG),r.value&&n.appsList&&n.appsList.length?(c.openBlock(),c.createElementBlock("div",NG,[c.createElementVNode("ul",DG,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.appsList,h=>(c.openBlock(),c.createElementBlock("li",{key:h.id,onClick:m=>d(h),class:c.normalizeClass(["tw-flex tw-flex-row tw-items-center tw-cursor-pointer tw-group",{"[&>p]:tw-font-extrabold":s(h.relativeUrl)}])},[c.createElementVNode("img",{src:i(h.iconUrl),alt:`icon_${h.id}`,class:"tw-w-5 tw-h-5 tw-mr-2 tw-shrink-0"},null,8,BG),c.createElementVNode("p",FG,c.toDisplayString(h.title),1)],10,PG))),128))])])):c.createCommentVNode("",!0)])),[[o,l]])}}}),VG=Object.freeze(Object.defineProperty({__proto__:null,VcAppSwitcher:ES},Symbol.toStringTag,{value:"Module"})),UG=()=>{const n=ba(),{checkPermission:e}=au(),t=c.ref([]);async function r(){const{getAccessToken:d}=no(),f=new gb;return f.setAuthToken(await d()),f}async function i(){const d=await r();try{t.value=await d.getApps()}catch(f){throw n.error(f),f}}function s(d){e(d.permission)?d.relativeUrl&&(window.location.href=window.location.origin+d.relativeUrl):alert("Access restricted")}return{appsList:c.computed(()=>t.value),getApps:i,switchApp:s}},WG={install(n){Object.entries(VG).forEach(([e,t])=>{n.component(e,t)})}},kS=c.defineComponent({__name:"vc-blade-navigation",props:{blades:{default:()=>[]},parentBladeOptions:{default:()=>({})},parentBladeParam:{default:void 0}},emits:["onOpen","onClose","onParentCall"],setup(n,{expose:e}){const t=n,r=Ko.useRoute(),i=c.ref([]),s=c.ref();c.onBeforeUpdate(()=>{i.value=[s.value]});const d=l=>{l&&Object.keys(l).length&&i.value.push(l)},f=c.computed(()=>t.parentBladeParam?t.parentBladeParam:r.params.param);return e({bladesRefs:i}),(l,p)=>{const a=c.resolveComponent("router-view");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(a,null,{default:c.withCtx(({Component:o,route:h})=>[c.withDirectives((c.openBlock(),c.createBlock(c.resolveDynamicComponent(o),{closable:!1,"onOpen:blade":p[0]||(p[0]=m=>l.$emit("onOpen",{blade:m,id:0})),options:n.parentBladeOptions,expanded:n.blades.length===0,param:c.unref(f),key:h,ref_key:"parentRef",ref:s},null,40,["options","expanded","param"])),[[c.vShow,l.$isMobile.value?!n.blades.length:n.blades.length<=1]])]),_:1}),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.blades,(o,h)=>c.withDirectives((c.openBlock(),c.createBlock(c.resolveDynamicComponent(o.component),{key:`blade_${h}`,param:o.param,closable:h>=0,expanded:h===n.blades.length-1,options:o.bladeOptions,"onOpen:blade":m=>l.$emit("onOpen",{blade:m,id:o.idx}),"onClose:blade":m=>l.$emit("onClose",h),"onClose:children":m=>l.$emit("onClose",h+1),"onParent:call":m=>l.$emit("onParentCall",{id:h,cb:m}),ref_for:!0,ref:d},null,40,["param","closable","expanded","options","onOpen:blade","onClose:blade","onClose:children","onParent:call"])),[[c.vShow,h>=n.blades.length-(l.$isMobile.value?1:2)]])),128))],64)}}}),HG=Object.freeze(Object.defineProperty({__proto__:null,VcBladeNavigation:kS},Symbol.toStringTag,{value:"Module"})),Hr=c.ref([]),Ul=c.ref([]),uy=c.ref(),hy=c.ref(),jG=()=>{const n=Ko.useRouter(),e=Ko.useRoute(),{checkPermission:t}=au(),r=c.ref(!1);c.watch(()=>Hr.value,a=>{const o=a[a.length-1];o&&o.component.url?o.param?l(o.component.url+"/"+o.param):l(o.component.url):o||l(e.path)},{deep:!0});async function i({parentBlade:a,component:o,param:h,bladeOptions:m,onOpen:v,onClose:w},b,S){console.debug(`openBlade(${1}) called.`);const C=c.unref(a),$=c.unref(o),k=p($);if(C&&C.url&&(await s(0),!r.value))if(uy.value=c.unref(m),hy.value=c.unref(h),S&&typeof S=="function")try{await S()}catch(x){console.log(x)}finally{console.debug(`Navigated to: ${C.url}`)}else S||await n.push(C.url);$&&(k===void 0?$.idx=b+1:k&&(await s(Hr.value.findIndex(x=>x.idx===k.idx)),$.idx=k.idx),await d($,h,m,v,w,b))}async function s(a){if(a<Ul.value.length){const o=Ul.value.slice(a).reverse();r.value=!1;for(let h=0;h<o.length;h++)if(o[h]?.onBeforeClose&&typeof o[h].onBeforeClose=="function"&&await o[h].onBeforeClose()===!1){r.value=!0;break}if(!r.value)typeof Hr.value[a]?.onClose=="function"&&Hr.value[a]?.onClose?.(),Hr.value.splice(a);else throw"Closing prevented"}}async function d(a,o,h,m,v,w){Hr.value.length>w&&await s(w),a&&t(a.permissions)?(Hr.value.push({component:a,bladeOptions:h,param:o,onOpen:m,onClose:v,idx:a.idx}),m&&typeof m=="function"&&m()):alert("Access restricted")}async function f(a,o){if(console.debug(`vc-app#onParentCall(${a}, { method: ${o.method} }) called.`),a>=0){const h=c.unref(Ul.value[a]);if(h)if(o.method&&typeof h[o.method]=="function"){const m=h[o.method],v=await m(o.args);typeof o.callback=="function"&&o.callback(v)}else console.error(`No such method: ${o.method}.`)}}function l(a){history.pushState({},null,"#"+a)}function p(a){return Hr.value.find(o=>Mo(o.component,a))}return{blades:c.computed(()=>Hr.value),parentBladeOptions:c.computed(()=>uy.value),parentBladeParam:c.computed(()=>hy.value),bladesRefs:Ul,openBlade:i,closeBlade:s,onParentCall:f}},zG={install(n){Object.entries(HG).forEach(([e,t])=>{n.component(e,t)})}},GG=[OG,WG,zG];function TS(n){return GG.forEach(e=>n.use(e)),n}/**
|
|
1105
|
+
*/function Zw(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Tr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Zw(Object(t),!0).forEach(function(r){A3(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Zw(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Jl(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jl=function(e){return typeof e}:Jl=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jl(n)}function A3(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ti(){return ti=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},ti.apply(this,arguments)}function $3(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}function O3(n,e){if(n==null)return{};var t=$3(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,r)||(t[r]=n[r]))}return t}var L3="1.14.0";function Qr(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var ai=Qr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Va=Qr(/Edge/i),Qw=Qr(/firefox/i),jo=Qr(/safari/i)&&!Qr(/chrome/i)&&!Qr(/android/i),rS=Qr(/iP(ad|od|hone)/i),M3=Qr(/chrome/i)&&Qr(/android/i),iS={capture:!1,passive:!1};function ht(n,e,t){n.addEventListener(e,t,!ai&&iS)}function at(n,e,t){n.removeEventListener(e,t,!ai&&iS)}function dc(n,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function R3(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function br(n,e,t,r){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&dc(n,e):dc(n,e))||r&&n===t)return n;if(n===t)break}while(n=R3(n))}return null}var ey=/\s+/g;function On(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var r=(" "+n.className+" ").replace(ey," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(ey," ")}}function Be(n,e,t){var r=n&&n.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=t+(typeof t=="string"?"":"px")}}function Hs(n,e){var t="";if(typeof n=="string")t=n;else do{var r=Be(n,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!e&&(n=n.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function sS(n,e,t){if(n){var r=n.getElementsByTagName(e),i=0,s=r.length;if(t)for(;i<s;i++)t(r[i],i);return r}return[]}function _r(){var n=document.scrollingElement;return n||document.documentElement}function Wt(n,e,t,r,i){if(!(!n.getBoundingClientRect&&n!==window)){var s,d,f,l,p,a,o;if(n!==window&&n.parentNode&&n!==_r()?(s=n.getBoundingClientRect(),d=s.top,f=s.left,l=s.bottom,p=s.right,a=s.height,o=s.width):(d=0,f=0,l=window.innerHeight,p=window.innerWidth,a=window.innerHeight,o=window.innerWidth),(e||t)&&n!==window&&(i=i||n.parentNode,!ai))do if(i&&i.getBoundingClientRect&&(Be(i,"transform")!=="none"||t&&Be(i,"position")!=="static")){var h=i.getBoundingClientRect();d-=h.top+parseInt(Be(i,"border-top-width")),f-=h.left+parseInt(Be(i,"border-left-width")),l=d+s.height,p=f+s.width;break}while(i=i.parentNode);if(r&&n!==window){var m=Hs(i||n),v=m&&m.a,w=m&&m.d;m&&(d/=w,f/=v,o/=v,a/=w,l=d+a,p=f+o)}return{top:d,left:f,bottom:l,right:p,width:o,height:a}}}function ty(n,e,t){for(var r=Ti(n,!0),i=Wt(n)[e];r;){var s=Wt(r)[t],d=void 0;if(t==="top"||t==="left"?d=i>=s:d=i<=s,!d)return r;if(r===_r())break;r=Ti(r,!1)}return!1}function eo(n,e,t,r){for(var i=0,s=0,d=n.children;s<d.length;){if(d[s].style.display!=="none"&&d[s]!==Fe.ghost&&(r||d[s]!==Fe.dragged)&&br(d[s],t.draggable,n,!1)){if(i===e)return d[s];i++}s++}return null}function Ip(n,e){for(var t=n.lastElementChild;t&&(t===Fe.ghost||Be(t,"display")==="none"||e&&!dc(t,e));)t=t.previousElementSibling;return t||null}function Jn(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Fe.clone&&(!e||dc(n,e))&&t++;return t}function ny(n){var e=0,t=0,r=_r();if(n)do{var i=Hs(n),s=i.a,d=i.d;e+=n.scrollLeft*s,t+=n.scrollTop*d}while(n!==r&&(n=n.parentNode));return[e,t]}function I3(n,e){for(var t in n)if(!!n.hasOwnProperty(t)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===n[t][r])return Number(t)}return-1}function Ti(n,e){if(!n||!n.getBoundingClientRect)return _r();var t=n,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=Be(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return _r();if(r||e)return t;r=!0}}while(t=t.parentNode);return _r()}function N3(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function uf(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var zo;function oS(n,e){return function(){if(!zo){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),zo=setTimeout(function(){zo=void 0},e)}}}function D3(){clearTimeout(zo),zo=void 0}function aS(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function lS(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var In="Sortable"+new Date().getTime();function P3(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(Be(i,"display")==="none"||i===Fe.ghost)){n.push({target:i,rect:Wt(i)});var s=Tr({},n[n.length-1].rect);if(i.thisAnimationDuration){var d=Hs(i,!0);d&&(s.top-=d.f,s.left-=d.e)}i.fromRect=s}})}},addAnimationState:function(r){n.push(r)},removeAnimationState:function(r){n.splice(I3(n,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var s=!1,d=0;n.forEach(function(f){var l=0,p=f.target,a=p.fromRect,o=Wt(p),h=p.prevFromRect,m=p.prevToRect,v=f.rect,w=Hs(p,!0);w&&(o.top-=w.f,o.left-=w.e),p.toRect=o,p.thisAnimationDuration&&uf(h,o)&&!uf(a,o)&&(v.top-o.top)/(v.left-o.left)===(a.top-o.top)/(a.left-o.left)&&(l=F3(v,h,m,i.options)),uf(o,a)||(p.prevFromRect=a,p.prevToRect=o,l||(l=i.options.animation),i.animate(p,v,o,l)),l&&(s=!0,d=Math.max(d,l),clearTimeout(p.animationResetTimer),p.animationResetTimer=setTimeout(function(){p.animationTime=0,p.prevFromRect=null,p.fromRect=null,p.prevToRect=null,p.thisAnimationDuration=null},l),p.thisAnimationDuration=l)}),clearTimeout(e),s?e=setTimeout(function(){typeof r=="function"&&r()},d):typeof r=="function"&&r(),n=[]},animate:function(r,i,s,d){if(d){Be(r,"transition",""),Be(r,"transform","");var f=Hs(this.el),l=f&&f.a,p=f&&f.d,a=(i.left-s.left)/(l||1),o=(i.top-s.top)/(p||1);r.animatingX=!!a,r.animatingY=!!o,Be(r,"transform","translate3d("+a+"px,"+o+"px,0)"),this.forRepaintDummy=B3(r),Be(r,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),Be(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Be(r,"transition",""),Be(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},d)}}}}function B3(n){return n.offsetWidth}function F3(n,e,t,r){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var Ms=[],hf={initializeByDefault:!0},Ua={mount:function(e){for(var t in hf)hf.hasOwnProperty(t)&&!(t in e)&&(e[t]=hf[t]);Ms.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ms.push(e)},pluginEvent:function(e,t,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var s=e+"Global";Ms.forEach(function(d){!t[d.pluginName]||(t[d.pluginName][s]&&t[d.pluginName][s](Tr({sortable:t},r)),t.options[d.pluginName]&&t[d.pluginName][e]&&t[d.pluginName][e](Tr({sortable:t},r)))})},initializePlugins:function(e,t,r,i){Ms.forEach(function(f){var l=f.pluginName;if(!(!e.options[l]&&!f.initializeByDefault)){var p=new f(e,t,e.options);p.sortable=e,p.options=e.options,e[l]=p,ti(r,p.defaults)}});for(var s in e.options)if(!!e.options.hasOwnProperty(s)){var d=this.modifyOption(e,s,e.options[s]);typeof d<"u"&&(e.options[s]=d)}},getEventProperties:function(e,t){var r={};return Ms.forEach(function(i){typeof i.eventProperties=="function"&&ti(r,i.eventProperties.call(t[i.pluginName],e))}),r},modifyOption:function(e,t,r){var i;return Ms.forEach(function(s){!e[s.pluginName]||s.optionListeners&&typeof s.optionListeners[t]=="function"&&(i=s.optionListeners[t].call(e[s.pluginName],r))}),i}};function V3(n){var e=n.sortable,t=n.rootEl,r=n.name,i=n.targetEl,s=n.cloneEl,d=n.toEl,f=n.fromEl,l=n.oldIndex,p=n.newIndex,a=n.oldDraggableIndex,o=n.newDraggableIndex,h=n.originalEvent,m=n.putSortable,v=n.extraEventProperties;if(e=e||t&&t[In],!!e){var w,b=e.options,S="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!ai&&!Va?w=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(r,!0,!0)),w.to=d||t,w.from=f||t,w.item=i||t,w.clone=s,w.oldIndex=l,w.newIndex=p,w.oldDraggableIndex=a,w.newDraggableIndex=o,w.originalEvent=h,w.pullMode=m?m.lastPutMode:void 0;var C=Tr(Tr({},v),Ua.getEventProperties(r,e));for(var $ in C)w[$]=C[$];t&&t.dispatchEvent(w),b[S]&&b[S].call(e,w)}}var U3=["evt"],wn=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,s=O3(r,U3);Ua.pluginEvent.bind(Fe)(e,t,Tr({dragEl:Se,parentEl:Lt,ghostEl:je,rootEl:Et,nextEl:Ki,lastDownEl:Kl,cloneEl:Mt,cloneHidden:xi,dragStarted:Io,putSortable:qt,activeSortable:Fe.active,originalEvent:i,oldIndex:Bs,oldDraggableIndex:Go,newIndex:Ln,newDraggableIndex:Si,hideGhostForTarget:fS,unhideGhostForTarget:dS,cloneNowHidden:function(){xi=!0},cloneNowShown:function(){xi=!1},dispatchSortableEvent:function(f){hn({sortable:t,name:f,originalEvent:i})}},s))};function hn(n){V3(Tr({putSortable:qt,cloneEl:Mt,targetEl:Se,rootEl:Et,oldIndex:Bs,oldDraggableIndex:Go,newIndex:Ln,newDraggableIndex:Si},n))}var Se,Lt,je,Et,Ki,Kl,Mt,xi,Bs,Ln,Go,Si,Pl,qt,Ns=!1,pc=!1,mc=[],Gi,lr,ff,df,ry,iy,Io,Rs,Yo,Jo=!1,Bl=!1,Xl,rn,pf=[],ad=!1,gc=[],Cu=typeof document<"u",Fl=rS,sy=Va||ai?"cssFloat":"float",W3=Cu&&!M3&&!rS&&"draggable"in document.createElement("div"),cS=function(){if(!!Cu){if(ai)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),uS=function(e,t){var r=Be(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=eo(e,0,t),d=eo(e,1,t),f=s&&Be(s),l=d&&Be(d),p=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+Wt(s).width,a=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Wt(d).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&f.float&&f.float!=="none"){var o=f.float==="left"?"left":"right";return d&&(l.clear==="both"||l.clear===o)?"vertical":"horizontal"}return s&&(f.display==="block"||f.display==="flex"||f.display==="table"||f.display==="grid"||p>=i&&r[sy]==="none"||d&&r[sy]==="none"&&p+a>i)?"vertical":"horizontal"},H3=function(e,t,r){var i=r?e.left:e.top,s=r?e.right:e.bottom,d=r?e.width:e.height,f=r?t.left:t.top,l=r?t.right:t.bottom,p=r?t.width:t.height;return i===f||s===l||i+d/2===f+p/2},j3=function(e,t){var r;return mc.some(function(i){var s=i[In].options.emptyInsertThreshold;if(!(!s||Ip(i))){var d=Wt(i),f=e>=d.left-s&&e<=d.right+s,l=t>=d.top-s&&t<=d.bottom+s;if(f&&l)return r=i}}),r},hS=function(e){function t(s,d){return function(f,l,p,a){var o=f.options.group.name&&l.options.group.name&&f.options.group.name===l.options.group.name;if(s==null&&(d||o))return!0;if(s==null||s===!1)return!1;if(d&&s==="clone")return s;if(typeof s=="function")return t(s(f,l,p,a),d)(f,l,p,a);var h=(d?f:l).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var r={},i=e.group;(!i||Jl(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,e.group=r},fS=function(){!cS&&je&&Be(je,"display","none")},dS=function(){!cS&&je&&Be(je,"display","")};Cu&&document.addEventListener("click",function(n){if(pc)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),pc=!1,!1},!0);var Yi=function(e){if(Se){e=e.touches?e.touches[0]:e;var t=j3(e.clientX,e.clientY);if(t){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[In]._onDragOver(r)}}},z3=function(e){Se&&Se.parentNode[In]._isOutsideThisEl(e.target)};function Fe(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=ti({},e),n[In]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return uS(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,f){d.setData("Text",f.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Fe.supportPointer!==!1&&"PointerEvent"in window&&!jo,emptyInsertThreshold:5};Ua.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);hS(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:W3,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ht(n,"pointerdown",this._onTapStart):(ht(n,"mousedown",this._onTapStart),ht(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(ht(n,"dragover",this),ht(n,"dragenter",this)),mc.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ti(this,P3())}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Rs=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Se):this.options.direction},_onTapStart:function(e){if(!!e.cancelable){var t=this,r=this.el,i=this.options,s=i.preventOnFilter,d=e.type,f=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(f||e).target,p=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,a=i.filter;if(Q3(r),!Se&&!(/mousedown|pointerdown/.test(d)&&e.button!==0||i.disabled)&&!p.isContentEditable&&!(!this.nativeDraggable&&jo&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=br(l,i.draggable,r,!1),!(l&&l.animated)&&Kl!==l)){if(Bs=Jn(l),Go=Jn(l,i.draggable),typeof a=="function"){if(a.call(this,e,l,this)){hn({sortable:t,rootEl:p,name:"filter",targetEl:l,toEl:r,fromEl:r}),wn("filter",t,{evt:e}),s&&e.cancelable&&e.preventDefault();return}}else if(a&&(a=a.split(",").some(function(o){if(o=br(p,o.trim(),r,!1),o)return hn({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:r,toEl:r}),wn("filter",t,{evt:e}),!0}),a)){s&&e.cancelable&&e.preventDefault();return}i.handle&&!br(p,i.handle,r,!1)||this._prepareDragStart(e,f,l)}}},_prepareDragStart:function(e,t,r){var i=this,s=i.el,d=i.options,f=s.ownerDocument,l;if(r&&!Se&&r.parentNode===s){var p=Wt(r);if(Et=s,Se=r,Lt=Se.parentNode,Ki=Se.nextSibling,Kl=r,Pl=d.group,Fe.dragged=Se,Gi={target:Se,clientX:(t||e).clientX,clientY:(t||e).clientY},ry=Gi.clientX-p.left,iy=Gi.clientY-p.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Se.style["will-change"]="all",l=function(){if(wn("delayEnded",i,{evt:e}),Fe.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Qw&&i.nativeDraggable&&(Se.draggable=!0),i._triggerDragStart(e,t),hn({sortable:i,name:"choose",originalEvent:e}),On(Se,d.chosenClass,!0)},d.ignore.split(",").forEach(function(a){sS(Se,a.trim(),mf)}),ht(f,"dragover",Yi),ht(f,"mousemove",Yi),ht(f,"touchmove",Yi),ht(f,"mouseup",i._onDrop),ht(f,"touchend",i._onDrop),ht(f,"touchcancel",i._onDrop),Qw&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Se.draggable=!0),wn("delayStart",this,{evt:e}),d.delay&&(!d.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Va||ai))){if(Fe.eventCanceled){this._onDrop();return}ht(f,"mouseup",i._disableDelayedDrag),ht(f,"touchend",i._disableDelayedDrag),ht(f,"touchcancel",i._disableDelayedDrag),ht(f,"mousemove",i._delayedDragTouchMoveHandler),ht(f,"touchmove",i._delayedDragTouchMoveHandler),d.supportPointer&&ht(f,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,d.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Se&&mf(Se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;at(e,"mouseup",this._disableDelayedDrag),at(e,"touchend",this._disableDelayedDrag),at(e,"touchcancel",this._disableDelayedDrag),at(e,"mousemove",this._delayedDragTouchMoveHandler),at(e,"touchmove",this._delayedDragTouchMoveHandler),at(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?ht(document,"pointermove",this._onTouchMove):t?ht(document,"touchmove",this._onTouchMove):ht(document,"mousemove",this._onTouchMove):(ht(Se,"dragend",this),ht(Et,"dragstart",this._onDragStart));try{document.selection?ql(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ns=!1,Et&&Se){wn("dragStarted",this,{evt:t}),this.nativeDraggable&&ht(document,"dragover",z3);var r=this.options;!e&&On(Se,r.dragClass,!1),On(Se,r.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),hn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(lr){this._lastX=lr.clientX,this._lastY=lr.clientY,fS();for(var e=document.elementFromPoint(lr.clientX,lr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(lr.clientX,lr.clientY),e!==t);)t=e;if(Se.parentNode[In]._isOutsideThisEl(e),t)do{if(t[In]){var r=void 0;if(r=t[In]._onDragOver({clientX:lr.clientX,clientY:lr.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);dS()}},_onTouchMove:function(e){if(Gi){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,s=e.touches?e.touches[0]:e,d=je&&Hs(je,!0),f=je&&d&&d.a,l=je&&d&&d.d,p=Fl&&rn&&ny(rn),a=(s.clientX-Gi.clientX+i.x)/(f||1)+(p?p[0]-pf[0]:0)/(f||1),o=(s.clientY-Gi.clientY+i.y)/(l||1)+(p?p[1]-pf[1]:0)/(l||1);if(!Fe.active&&!Ns){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(je){d?(d.e+=a-(ff||0),d.f+=o-(df||0)):d={a:1,b:0,c:0,d:1,e:a,f:o};var h="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");Be(je,"webkitTransform",h),Be(je,"mozTransform",h),Be(je,"msTransform",h),Be(je,"transform",h),ff=a,df=o,lr=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!je){var e=this.options.fallbackOnBody?document.body:Et,t=Wt(Se,!0,Fl,!0,e),r=this.options;if(Fl){for(rn=e;Be(rn,"position")==="static"&&Be(rn,"transform")==="none"&&rn!==document;)rn=rn.parentNode;rn!==document.body&&rn!==document.documentElement?(rn===document&&(rn=_r()),t.top+=rn.scrollTop,t.left+=rn.scrollLeft):rn=_r(),pf=ny(rn)}je=Se.cloneNode(!0),On(je,r.ghostClass,!1),On(je,r.fallbackClass,!0),On(je,r.dragClass,!0),Be(je,"transition",""),Be(je,"transform",""),Be(je,"box-sizing","border-box"),Be(je,"margin",0),Be(je,"top",t.top),Be(je,"left",t.left),Be(je,"width",t.width),Be(je,"height",t.height),Be(je,"opacity","0.8"),Be(je,"position",Fl?"absolute":"fixed"),Be(je,"zIndex","100000"),Be(je,"pointerEvents","none"),Fe.ghost=je,e.appendChild(je),Be(je,"transform-origin",ry/parseInt(je.style.width)*100+"% "+iy/parseInt(je.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,i=e.dataTransfer,s=r.options;if(wn("dragStart",this,{evt:e}),Fe.eventCanceled){this._onDrop();return}wn("setupClone",this),Fe.eventCanceled||(Mt=lS(Se),Mt.draggable=!1,Mt.style["will-change"]="",this._hideClone(),On(Mt,this.options.chosenClass,!1),Fe.clone=Mt),r.cloneId=ql(function(){wn("clone",r),!Fe.eventCanceled&&(r.options.removeCloneOnHide||Et.insertBefore(Mt,Se),r._hideClone(),hn({sortable:r,name:"clone"}))}),!t&&On(Se,s.dragClass,!0),t?(pc=!0,r._loopId=setInterval(r._emulateDragOver,50)):(at(document,"mouseup",r._onDrop),at(document,"touchend",r._onDrop),at(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(r,i,Se)),ht(document,"drop",r),Be(Se,"transform","translateZ(0)")),Ns=!0,r._dragStartId=ql(r._dragStarted.bind(r,t,e)),ht(document,"selectstart",r),Io=!0,jo&&Be(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,i,s,d,f=this.options,l=f.group,p=Fe.active,a=Pl===l,o=f.sort,h=qt||p,m,v=this,w=!1;if(ad)return;function b(z,Y){wn(z,v,Tr({evt:e,isOwner:a,axis:m?"vertical":"horizontal",revert:d,dragRect:i,targetRect:s,canSort:o,fromSortable:h,target:r,completed:C,onMove:function(re,ie){return Vl(Et,t,Se,i,re,Wt(re),e,ie)},changed:$},Y))}function S(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==h&&h.captureAnimationState()}function C(z){return b("dragOverCompleted",{insertion:z}),z&&(a?p._hideClone():p._showClone(v),v!==h&&(On(Se,qt?qt.options.ghostClass:p.options.ghostClass,!1),On(Se,f.ghostClass,!0)),qt!==v&&v!==Fe.active?qt=v:v===Fe.active&&qt&&(qt=null),h===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===Se&&!Se.animated||r===t&&!r.animated)&&(Rs=null),!f.dragoverBubble&&!e.rootEl&&r!==document&&(Se.parentNode[In]._isOutsideThisEl(e.target),!z&&Yi(e)),!f.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}function $(){Ln=Jn(Se),Si=Jn(Se,f.draggable),hn({sortable:v,name:"change",toEl:t,newIndex:Ln,newDraggableIndex:Si,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=br(r,f.draggable,t,!0),b("dragOver"),Fe.eventCanceled)return w;if(Se.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return C(!1);if(pc=!1,p&&!f.disabled&&(a?o||(d=Lt!==Et):qt===this||(this.lastPutMode=Pl.checkPull(this,p,Se,e))&&l.checkPut(this,p,Se,e))){if(m=this._getDirection(e,r)==="vertical",i=Wt(Se),b("dragOverValid"),Fe.eventCanceled)return w;if(d)return Lt=Et,S(),this._hideClone(),b("revert"),Fe.eventCanceled||(Ki?Et.insertBefore(Se,Ki):Et.appendChild(Se)),C(!0);var k=Ip(t,f.draggable);if(!k||K3(e,m,this)&&!k.animated){if(k===Se)return C(!1);if(k&&t===e.target&&(r=k),r&&(s=Wt(r)),Vl(Et,t,Se,i,r,s,e,!!r)!==!1)return S(),t.appendChild(Se),Lt=t,$(),C(!0)}else if(k&&J3(e,m,this)){var x=eo(t,0,f,!0);if(x===Se)return C(!1);if(r=x,s=Wt(r),Vl(Et,t,Se,i,r,s,e,!1)!==!1)return S(),t.insertBefore(Se,x),Lt=t,$(),C(!0)}else if(r.parentNode===t){s=Wt(r);var T=0,M,A=Se.parentNode!==t,R=!H3(Se.animated&&Se.toRect||i,r.animated&&r.toRect||s,m),y=m?"top":"left",E=ty(r,"top","top")||ty(Se,"top","top"),O=E?E.scrollTop:void 0;Rs!==r&&(M=s[y],Jo=!1,Bl=!R&&f.invertSwap||A),T=X3(e,r,s,m,R?1:f.swapThreshold,f.invertedSwapThreshold==null?f.swapThreshold:f.invertedSwapThreshold,Bl,Rs===r);var I;if(T!==0){var N=Jn(Se);do N-=T,I=Lt.children[N];while(I&&(Be(I,"display")==="none"||I===je))}if(T===0||I===r)return C(!1);Rs=r,Yo=T;var P=r.nextElementSibling,B=!1;B=T===1;var j=Vl(Et,t,Se,i,r,s,e,B);if(j!==!1)return(j===1||j===-1)&&(B=j===1),ad=!0,setTimeout(Y3,30),S(),B&&!P?t.appendChild(Se):r.parentNode.insertBefore(Se,B?P:r),E&&aS(E,0,O-E.scrollTop),Lt=Se.parentNode,M!==void 0&&!Bl&&(Xl=Math.abs(M-Wt(r)[y])),$(),C(!0)}if(t.contains(Se))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){at(document,"mousemove",this._onTouchMove),at(document,"touchmove",this._onTouchMove),at(document,"pointermove",this._onTouchMove),at(document,"dragover",Yi),at(document,"mousemove",Yi),at(document,"touchmove",Yi)},_offUpEvents:function(){var e=this.el.ownerDocument;at(e,"mouseup",this._onDrop),at(e,"touchend",this._onDrop),at(e,"pointerup",this._onDrop),at(e,"touchcancel",this._onDrop),at(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(Ln=Jn(Se),Si=Jn(Se,r.draggable),wn("drop",this,{evt:e}),Lt=Se&&Se.parentNode,Ln=Jn(Se),Si=Jn(Se,r.draggable),Fe.eventCanceled){this._nulling();return}Ns=!1,Bl=!1,Jo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ld(this.cloneId),ld(this._dragStartId),this.nativeDraggable&&(at(document,"drop",this),at(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),jo&&Be(document.body,"user-select",""),Be(Se,"transform",""),e&&(Io&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),je&&je.parentNode&&je.parentNode.removeChild(je),(Et===Lt||qt&&qt.lastPutMode!=="clone")&&Mt&&Mt.parentNode&&Mt.parentNode.removeChild(Mt),Se&&(this.nativeDraggable&&at(Se,"dragend",this),mf(Se),Se.style["will-change"]="",Io&&!Ns&&On(Se,qt?qt.options.ghostClass:this.options.ghostClass,!1),On(Se,this.options.chosenClass,!1),hn({sortable:this,name:"unchoose",toEl:Lt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Et!==Lt?(Ln>=0&&(hn({rootEl:Lt,name:"add",toEl:Lt,fromEl:Et,originalEvent:e}),hn({sortable:this,name:"remove",toEl:Lt,originalEvent:e}),hn({rootEl:Lt,name:"sort",toEl:Lt,fromEl:Et,originalEvent:e}),hn({sortable:this,name:"sort",toEl:Lt,originalEvent:e})),qt&&qt.save()):Ln!==Bs&&Ln>=0&&(hn({sortable:this,name:"update",toEl:Lt,originalEvent:e}),hn({sortable:this,name:"sort",toEl:Lt,originalEvent:e})),Fe.active&&((Ln==null||Ln===-1)&&(Ln=Bs,Si=Go),hn({sortable:this,name:"end",toEl:Lt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){wn("nulling",this),Et=Se=Lt=je=Ki=Mt=Kl=xi=Gi=lr=Io=Ln=Si=Bs=Go=Rs=Yo=qt=Pl=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,gc.forEach(function(e){e.checked=!0}),gc.length=ff=df=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Se&&(this._onDragOver(e),G3(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,i=0,s=r.length,d=this.options;i<s;i++)t=r[i],br(t,d.draggable,this.el,!1)&&e.push(t.getAttribute(d.dataIdAttr)||Z3(t));return e},sort:function(e,t){var r={},i=this.el;this.toArray().forEach(function(s,d){var f=i.children[d];br(f,this.options.draggable,i,!1)&&(r[s]=f)},this),t&&this.captureAnimationState(),e.forEach(function(s){r[s]&&(i.removeChild(r[s]),i.appendChild(r[s]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return br(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var i=Ua.modifyOption(this,e,t);typeof i<"u"?r[e]=i:r[e]=t,e==="group"&&hS(r)},destroy:function(){wn("destroy",this);var e=this.el;e[In]=null,at(e,"mousedown",this._onTapStart),at(e,"touchstart",this._onTapStart),at(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(at(e,"dragover",this),at(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),mc.splice(mc.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!xi){if(wn("hideClone",this),Fe.eventCanceled)return;Be(Mt,"display","none"),this.options.removeCloneOnHide&&Mt.parentNode&&Mt.parentNode.removeChild(Mt),xi=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(xi){if(wn("showClone",this),Fe.eventCanceled)return;Se.parentNode==Et&&!this.options.group.revertClone?Et.insertBefore(Mt,Se):Ki?Et.insertBefore(Mt,Ki):Et.appendChild(Mt),this.options.group.revertClone&&this.animate(Se,Mt),Be(Mt,"display",""),xi=!1}}};function G3(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Vl(n,e,t,r,i,s,d,f){var l,p=n[In],a=p.options.onMove,o;return window.CustomEvent&&!ai&&!Va?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=n,l.dragged=t,l.draggedRect=r,l.related=i||e,l.relatedRect=s||Wt(e),l.willInsertAfter=f,l.originalEvent=d,n.dispatchEvent(l),a&&(o=a.call(p,l,d)),o}function mf(n){n.draggable=!1}function Y3(){ad=!1}function J3(n,e,t){var r=Wt(eo(t.el,0,t.options,!0)),i=10;return e?n.clientX<r.left-i||n.clientY<r.top&&n.clientX<r.right:n.clientY<r.top-i||n.clientY<r.bottom&&n.clientX<r.left}function K3(n,e,t){var r=Wt(Ip(t.el,t.options.draggable)),i=10;return e?n.clientX>r.right+i||n.clientX<=r.right&&n.clientY>r.bottom&&n.clientX>=r.left:n.clientX>r.right&&n.clientY>r.top||n.clientX<=r.right&&n.clientY>r.bottom+i}function X3(n,e,t,r,i,s,d,f){var l=r?n.clientY:n.clientX,p=r?t.height:t.width,a=r?t.top:t.left,o=r?t.bottom:t.right,h=!1;if(!d){if(f&&Xl<p*i){if(!Jo&&(Yo===1?l>a+p*s/2:l<o-p*s/2)&&(Jo=!0),Jo)h=!0;else if(Yo===1?l<a+Xl:l>o-Xl)return-Yo}else if(l>a+p*(1-i)/2&&l<o-p*(1-i)/2)return q3(e)}return h=h||d,h&&(l<a+p*s/2||l>o-p*s/2)?l>a+p/2?1:-1:0}function q3(n){return Jn(Se)<Jn(n)?1:-1}function Z3(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,r=0;t--;)r+=e.charCodeAt(t);return r.toString(36)}function Q3(n){gc.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&gc.push(r)}}function ql(n){return setTimeout(n,0)}function ld(n){return clearTimeout(n)}Cu&&ht(document,"touchmove",function(n){(Fe.active||Ns)&&n.cancelable&&n.preventDefault()});Fe.utils={on:ht,off:at,css:Be,find:sS,is:function(e,t){return!!br(e,t,e,!1)},extend:N3,throttle:oS,closest:br,toggleClass:On,clone:lS,index:Jn,nextTick:ql,cancelNextTick:ld,detectDirection:uS,getChild:eo};Fe.get=function(n){return n[In]};Fe.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Fe.utils=Tr(Tr({},Fe.utils),r.utils)),Ua.mount(r)})};Fe.create=function(n,e){return new Fe(n,e)};Fe.version=L3;var Bt=[],No,cd,ud=!1,gf,vf,vc,Do;function eG(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?ht(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ht(document,"pointermove",this._handleFallbackAutoScroll):r.touches?ht(document,"touchmove",this._handleFallbackAutoScroll):ht(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?at(document,"dragover",this._handleAutoScroll):(at(document,"pointermove",this._handleFallbackAutoScroll),at(document,"touchmove",this._handleFallbackAutoScroll),at(document,"mousemove",this._handleFallbackAutoScroll)),oy(),Zl(),D3()},nulling:function(){vc=cd=No=ud=Do=gf=vf=null,Bt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var i=this,s=(t.touches?t.touches[0]:t).clientX,d=(t.touches?t.touches[0]:t).clientY,f=document.elementFromPoint(s,d);if(vc=t,r||this.options.forceAutoScrollFallback||Va||ai||jo){wf(t,this.options,f,r);var l=Ti(f,!0);ud&&(!Do||s!==gf||d!==vf)&&(Do&&oy(),Do=setInterval(function(){var p=Ti(document.elementFromPoint(s,d),!0);p!==l&&(l=p,Zl()),wf(t,i.options,p,r)},10),gf=s,vf=d)}else{if(!this.options.bubbleScroll||Ti(f,!0)===_r()){Zl();return}wf(t,this.options,Ti(f,!1),!1)}}},ti(n,{pluginName:"scroll",initializeByDefault:!0})}function Zl(){Bt.forEach(function(n){clearInterval(n.pid)}),Bt=[]}function oy(){clearInterval(Do)}var wf=oS(function(n,e,t,r){if(!!e.scroll){var i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,d=e.scrollSensitivity,f=e.scrollSpeed,l=_r(),p=!1,a;cd!==t&&(cd=t,Zl(),No=e.scroll,a=e.scrollFn,No===!0&&(No=Ti(t,!0)));var o=0,h=No;do{var m=h,v=Wt(m),w=v.top,b=v.bottom,S=v.left,C=v.right,$=v.width,k=v.height,x=void 0,T=void 0,M=m.scrollWidth,A=m.scrollHeight,R=Be(m),y=m.scrollLeft,E=m.scrollTop;m===l?(x=$<M&&(R.overflowX==="auto"||R.overflowX==="scroll"||R.overflowX==="visible"),T=k<A&&(R.overflowY==="auto"||R.overflowY==="scroll"||R.overflowY==="visible")):(x=$<M&&(R.overflowX==="auto"||R.overflowX==="scroll"),T=k<A&&(R.overflowY==="auto"||R.overflowY==="scroll"));var O=x&&(Math.abs(C-i)<=d&&y+$<M)-(Math.abs(S-i)<=d&&!!y),I=T&&(Math.abs(b-s)<=d&&E+k<A)-(Math.abs(w-s)<=d&&!!E);if(!Bt[o])for(var N=0;N<=o;N++)Bt[N]||(Bt[N]={});(Bt[o].vx!=O||Bt[o].vy!=I||Bt[o].el!==m)&&(Bt[o].el=m,Bt[o].vx=O,Bt[o].vy=I,clearInterval(Bt[o].pid),(O!=0||I!=0)&&(p=!0,Bt[o].pid=setInterval(function(){r&&this.layer===0&&Fe.active._onTouchMove(vc);var P=Bt[this.layer].vy?Bt[this.layer].vy*f:0,B=Bt[this.layer].vx?Bt[this.layer].vx*f:0;typeof a=="function"&&a.call(Fe.dragged.parentNode[In],B,P,n,vc,Bt[this.layer].el)!=="continue"||aS(Bt[this.layer].el,B,P)}.bind({layer:o}),24))),o++}while(e.bubbleScroll&&h!==l&&(h=Ti(h,!1)));ud=p}},30),pS=function(e){var t=e.originalEvent,r=e.putSortable,i=e.dragEl,s=e.activeSortable,d=e.dispatchSortableEvent,f=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(!!t){var p=r||s;f();var a=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,o=document.elementFromPoint(a.clientX,a.clientY);l(),p&&!p.el.contains(o)&&(d("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function Np(){}Np.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=eo(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:pS};ti(Np,{pluginName:"revertOnSpill"});function Dp(){}Dp.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:pS};ti(Dp,{pluginName:"removeOnSpill"});Fe.mount(new eG);Fe.mount(Dp,Np);function yf(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function ay(n,e,t){const r=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,r)}function tG(){return typeof window<"u"?window.console:global.console}const nG=tG();function rG(n){const e=Object.create(null);return function(r){return e[r]||(e[r]=n(r))}}const iG=/-(\w)/g,sG=rG(n=>n.replace(iG,(e,t)=>t.toUpperCase())),mS=["Start","Add","Remove","Update","End"],gS=["Choose","Unchoose","Sort","Filter","Clone"],vS=["Move"],oG=[vS,mS,gS].flatMap(n=>n).map(n=>`on${n}`),hd={manage:vS,manageAndEmit:mS,emit:gS};function aG(n){return oG.indexOf(n)!==-1}const lG=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function cG(n){return lG.includes(n)}function uG(n){return["transition-group","TransitionGroup"].includes(n)}function wS(n){return["id","class","role","style"].includes(n)||n.startsWith("data-")||n.startsWith("aria-")||n.startsWith("on")}function yS(n){return n.reduce((e,[t,r])=>(e[t]=r,e),{})}function hG({$attrs:n,componentData:e={}}){return{...yS(Object.entries(n).filter(([r,i])=>wS(r))),...e}}function fG({$attrs:n,callBackBuilder:e}){const t=yS(bS(n));Object.entries(e).forEach(([i,s])=>{hd[i].forEach(d=>{t[`on${d}`]=s(d)})});const r=`[data-draggable]${t.draggable||""}`;return{...t,draggable:r}}function bS(n){return Object.entries(n).filter(([e,t])=>!wS(e)).map(([e,t])=>[sG(e),t]).filter(([e,t])=>!aG(e))}const ly=({el:n})=>n,dG=(n,e)=>n.__draggable_context=e,cy=n=>n.__draggable_context;class pG{constructor({nodes:{header:e,default:t,footer:r},root:i,realList:s}){this.defaultNodes=t,this.children=[...e,...t,...r],this.externalComponent=i.externalComponent,this.rootTransition=i.transition,this.tag=i.tag,this.realList=s}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,t){const{tag:r,children:i,_isRootComponent:s}=this;return e(r,t,s?{default:()=>i}:i)}updated(){const{defaultNodes:e,realList:t}=this;e.forEach((r,i)=>{dG(ly(r),{element:t[i],index:i})})}getUnderlyingVm(e){return cy(e)}getVmIndexFromDomIndex(e,t){const{defaultNodes:r}=this,{length:i}=r,s=t.children,d=s.item(e);if(d===null)return i;const f=cy(d);if(f)return f.index;if(i===0)return 0;const l=ly(r[0]),p=[...s].findIndex(a=>a===l);return e<p?0:i}}function mG(n,e){const t=n[e];return t?t():[]}function gG({$slots:n,realList:e,getKey:t}){const r=e||[],[i,s]=["header","footer"].map(l=>mG(n,l)),{item:d}=n;if(!d)throw new Error("draggable element must have an item slot");const f=r.flatMap((l,p)=>d({element:l,index:p}).map(a=>(a.key=t(l),a.props={...a.props||{},"data-draggable":!0},a)));if(f.length!==r.length)throw new Error("Item slot must have only one child");return{header:i,footer:s,default:f}}function vG(n){const e=uG(n),t=!cG(n)&&!e;return{transition:e,externalComponent:t,tag:t?c.resolveComponent(n):e?c.TransitionGroup:n}}function wG({$slots:n,tag:e,realList:t,getKey:r}){const i=gG({$slots:n,realList:t,getKey:r}),s=vG(e);return new pG({nodes:i,root:s,realList:t})}function SS(n,e){c.nextTick(()=>this.$emit(n.toLowerCase(),e))}function xS(n){return(e,t)=>{if(this.realList!==null)return this[`onDrag${n}`](e,t)}}function yG(n){const e=xS.call(this,n);return(t,r)=>{e.call(this,t,r),SS.call(this,n,t)}}let bf=null;const bG={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},SG=["update:modelValue","change",...[...hd.manageAndEmit,...hd.emit].map(n=>n.toLowerCase())],xG=c.defineComponent({name:"draggable",inheritAttrs:!1,props:bG,emits:SG,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:n,$attrs:e,tag:t,componentData:r,realList:i,getKey:s}=this,d=wG({$slots:n,tag:t,realList:i,getKey:s});this.componentStructure=d;const f=hG({$attrs:e,componentData:r});return d.render(c.h,f)}catch(n){return this.error=!0,c.h("pre",{style:{color:"red"}},n.stack)}},created(){this.list!==null&&this.modelValue!==null&&nG.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:n,$el:e,componentStructure:t}=this;t.updated();const r=fG({$attrs:n,callBackBuilder:{manageAndEmit:s=>yG.call(this,s),emit:s=>SS.bind(this,s),manage:s=>xS.call(this,s)}}),i=e.nodeType===1?e:e.parentElement;this._sortable=new Fe(i,r),this.targetDomElement=i,i.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:n}=this;return n||this.modelValue},getKey(){const{itemKey:n}=this;return typeof n=="function"?n:e=>e[n]}},watch:{$attrs:{handler(n){const{_sortable:e}=this;!e||bS(n).forEach(([t,r])=>{e.option(t,r)})},deep:!0}},methods:{getUnderlyingVm(n){return this.componentStructure.getUnderlyingVm(n)||null},getUnderlyingPotencialDraggableComponent(n){return n.__draggable_component__},emitChanges(n){c.nextTick(()=>this.$emit("change",n))},alterList(n){if(this.list){n(this.list);return}const e=[...this.modelValue];n(e),this.$emit("update:modelValue",e)},spliceList(){const n=e=>e.splice(...arguments);this.alterList(n)},updatePosition(n,e){const t=r=>r.splice(e,0,r.splice(n,1)[0]);this.alterList(t)},getRelatedContextFromMoveEvent({to:n,related:e}){const t=this.getUnderlyingPotencialDraggableComponent(n);if(!t)return{component:t};const r=t.realList,i={list:r,component:t};return n!==e&&r?{...t.getUnderlyingVm(e)||{},...i}:i},getVmIndexFromDomIndex(n){return this.componentStructure.getVmIndexFromDomIndex(n,this.targetDomElement)},onDragStart(n){this.context=this.getUnderlyingVm(n.item),n.item._underlying_vm_=this.clone(this.context.element),bf=n.item},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;yf(n.item);const t=this.getVmIndexFromDomIndex(n.newIndex);this.spliceList(t,0,e);const r={element:e,newIndex:t};this.emitChanges({added:r})},onDragRemove(n){if(ay(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){yf(n.clone);return}const{index:e,element:t}=this.context;this.spliceList(e,1);const r={element:t,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(n){yf(n.item),ay(n.from,n.item,n.oldIndex);const e=this.context.index,t=this.getVmIndexFromDomIndex(n.newIndex);this.updatePosition(e,t);const r={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:r})},computeFutureIndex(n,e){if(!n.element)return 0;const t=[...e.to.children].filter(d=>d.style.display!=="none"),r=t.indexOf(e.related),i=n.component.getVmIndexFromDomIndex(r);return t.indexOf(bf)!==-1||!e.willInsertAfter?i:i+1},onDragMove(n,e){const{move:t,realList:r}=this;if(!t||!r)return!0;const i=this.getRelatedContextFromMoveEvent(n),s=this.computeFutureIndex(i,n),d={...this.context,futureIndex:s},f={...n,relatedContext:i,draggedContext:d};return t(f,e)},onDragEnd(){bf=null}}}),_G={class:"tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[#eaedf3]"},CG={class:"assets-details__content tw-grow tw-basis-0"},EG={class:"tw-p-4"},_S=c.defineComponent({__name:"assets-details",props:{expanded:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},options:null},emits:["parent:call","close:blade"],setup(n,{emit:e}){const t=n,{t:r}=$d(),i=c.reactive({...t.options.editableAsset}),s=[{id:"save",title:r("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),icon:"fas fa-save",clickHandler(){t.options.sortHandler&&typeof t.options.sortHandler=="function"&&(t.options.sortHandler(!1,i),e("close:blade"))}},{id:"delete",title:r("ASSETS.PAGES.DETAILS.TOOLBAR.DELETE"),icon:"fas fa-trash",clickHandler(){window.confirm(c.unref(c.computed(()=>r("ASSETS.PAGES.DETAILS.DELETE_CONFIRMATION"))))&&t.options.sortHandler&&typeof t.options.sortHandler=="function"&&(t.options.sortHandler(!0,i),e("close:blade"))}}];return(d,f)=>(c.openBlock(),c.createBlock(c.unref(fp),{title:n.options.editableAsset.name,subtitle:d.$t("ASSETS.PAGES.DETAILS.SUBTITLE"),expanded:n.expanded,closable:n.closable,toolbarItems:s,onClose:f[3]||(f[3]=l=>d.$emit("close:blade"))},{default:c.withCtx(()=>[c.createElementVNode("div",_G,[c.createElementVNode("div",CG,[c.createVNode(c.unref(to),{"no-padding":!0},{default:c.withCtx(()=>[c.createElementVNode("div",EG,[c.createVNode(c.unref(wd),null,{default:c.withCtx(()=>[c.createVNode(c.unref(yc),{class:"tw-mb-4",src:i.url,size:"xl",bordered:!0},null,8,["src"]),c.createVNode(c.unref(Xo),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),modelValue:i.name,"onUpdate:modelValue":f[0]||(f[0]=l=>i.name=l),clearable:"",required:"",placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER")},null,8,["label","modelValue","placeholder"]),c.createVNode(c.unref(Xo),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TITLE"),modelValue:i.altText,"onUpdate:modelValue":f[1]||(f[1]=l=>i.altText=l),clearable:"",placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.PLACEHOLDER"),tooltip:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TOOLTIP"),required:""},null,8,["label","modelValue","placeholder","tooltip"]),c.createVNode(c.unref(hp),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE"),modelValue:i.description,"onUpdate:modelValue":f[2]||(f[2]=l=>i.description=l),placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER"),"is-required":""},null,8,["label","modelValue","placeholder"])]),_:1})])]),_:1})])])]),_:1},8,["title","subtitle","expanded","closable"]))}}),kG=Object.freeze(Object.defineProperty({__proto__:null,AssetsDetails:_S},Symbol.toStringTag,{value:"Module"})),CS={PAGES:{DETAILS:{SUBTITLE:"Image edit",TOOLBAR:{SAVE:"Save",DELETE:"Delete"},FIELDS:{NAME:{TITLE:"Image name",PLACEHOLDER:"Enter image name"},ALT:{TITLE:"Image alternative text",PLACEHOLDER:"Enter image alt text",TOOLTIP:"This text will be displayed in case of disabled/unloaded image on the page"},DESCRIPTION:{TITLE:"Meta description",PLACEHOLDER:"Enter meta description"}},DELETE_CONFIRMATION:"Are you sure you want to delete this image?"}}},TG={ASSETS:CS},AG=Object.freeze(Object.defineProperty({__proto__:null,ASSETS:CS,default:TG},Symbol.toStringTag,{value:"Module"})),$G=Object.freeze(Object.defineProperty({__proto__:null,en:AG},Symbol.toStringTag,{value:"Module"})),OG={install(n){Object.entries(kG).forEach(([e,t])=>{n.component(e,t),n.config.globalProperties.pages?.push(t)}),Object.entries($G).forEach(([e,t])=>{n.config.globalProperties.$mergeLocaleMessage(e,t)})}},LG={class:"tw-relative tw-h-full tw-flex tw-items-center tw-justify-center tw-mx-2 tw-shrink-0"},MG=["onClick"],RG=c.createElementVNode("div",{class:"tw-h-[22px] tw-w-[22px] [mask:url(/assets/app-select.svg)] tw-bg-[color:var(--app-bar-button-color)] tw-duration-200"},null,-1),IG=[RG],NG={key:0,class:"tw-px-4 tw-py-3.5 tw-bg-white tw-drop-shadow-[4px_4px_20px_rgba(47,86,108,0.25)] tw-absolute tw-z-[10000] tw-rounded tw-top-[var(--app-bar-height)] tw-left-0"},DG={class:"tw-flex tw-flex-col tw-gap-3 tw-overflow-hidden"},PG=["onClick"],BG=["src","alt"],FG={class:"tw-font-normal tw-text-sm tw-text-[#727C87] tw-truncate group-hover:tw-opacity-80"},ES=c.defineComponent({__name:"vc-app-switcher",props:{appsList:{default:void 0}},emits:["onClick"],setup(n,{emit:e}){const t=n,r=c.ref(!1),i=p=>"https://vcmp-dev.paas.govirto.com/".replace(/\/+$/,"")+p,s=p=>{const a=window.location.pathname.replace(/\/+$/,""),o=p.match(a);return o?o[0]:null},d=p=>{e("onClick",p),l()},f=()=>{t.appsList&&t.appsList.length&&(r.value=!r.value)},l=()=>{r.value=!1};return(p,a)=>{const o=c.resolveDirective("click-outside");return c.withDirectives((c.openBlock(),c.createElementBlock("div",LG,[c.createElementVNode("button",{class:"hover:[&>img] hover:[&_div]:tw-bg-[color:var(--app-bar-button-color-hover)]",onClick:c.withModifiers(f,["stop"])},IG,8,MG),r.value&&n.appsList&&n.appsList.length?(c.openBlock(),c.createElementBlock("div",NG,[c.createElementVNode("ul",DG,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.appsList,h=>(c.openBlock(),c.createElementBlock("li",{key:h.id,onClick:m=>d(h),class:c.normalizeClass(["tw-flex tw-flex-row tw-items-center tw-cursor-pointer tw-group",{"[&>p]:tw-font-extrabold":s(h.relativeUrl)}])},[c.createElementVNode("img",{src:i(h.iconUrl),alt:`icon_${h.id}`,class:"tw-w-5 tw-h-5 tw-mr-2 tw-shrink-0"},null,8,BG),c.createElementVNode("p",FG,c.toDisplayString(h.title),1)],10,PG))),128))])])):c.createCommentVNode("",!0)])),[[o,l]])}}}),VG=Object.freeze(Object.defineProperty({__proto__:null,VcAppSwitcher:ES},Symbol.toStringTag,{value:"Module"})),UG=()=>{const n=ba(),{checkPermission:e}=au(),t=c.ref([]);async function r(){const{getAccessToken:d}=no(),f=new gb;return f.setAuthToken(await d()),f}async function i(){const d=await r();try{t.value=await d.getApps()}catch(f){throw n.error(f),f}}function s(d){e(d.permission)?d.relativeUrl&&(window.location.href=window.location.origin+d.relativeUrl):alert("Access restricted")}return{appsList:c.computed(()=>t.value),getApps:i,switchApp:s}},WG={install(n){Object.entries(VG).forEach(([e,t])=>{n.component(e,t)})}},kS=c.defineComponent({__name:"vc-blade-navigation",props:{blades:{default:()=>[]},parentBladeOptions:{default:()=>({})},parentBladeParam:{default:void 0}},emits:["onOpen","onClose","onParentCall"],setup(n,{expose:e}){const t=n,r=Ko.useRoute(),i=c.ref([]),s=c.ref();c.onBeforeUpdate(()=>{i.value=[s.value]});const d=l=>{l&&Object.keys(l).length&&i.value.push(l)},f=c.computed(()=>t.parentBladeParam?t.parentBladeParam:r.params.param);return e({bladesRefs:i}),(l,p)=>{const a=c.resolveComponent("router-view");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(a,null,{default:c.withCtx(({Component:o,route:h})=>[c.withDirectives((c.openBlock(),c.createBlock(c.resolveDynamicComponent(o),{closable:!1,"onOpen:blade":p[0]||(p[0]=m=>l.$emit("onOpen",{blade:m,id:0})),options:n.parentBladeOptions,expanded:n.blades.length===0,param:c.unref(f),key:h,ref_key:"parentRef",ref:s},null,40,["options","expanded","param"])),[[c.vShow,l.$isMobile.value?!n.blades.length:n.blades.length<=1]])]),_:1}),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.blades,(o,h)=>c.withDirectives((c.openBlock(),c.createBlock(c.resolveDynamicComponent(o.component),{key:`blade_${h}`,param:o.param,closable:h>=0,expanded:h===n.blades.length-1,options:o.bladeOptions,"onOpen:blade":m=>l.$emit("onOpen",{blade:m,id:o.idx}),"onClose:blade":m=>l.$emit("onClose",h),"onClose:children":m=>l.$emit("onClose",h+1),"onParent:call":m=>l.$emit("onParentCall",{id:h,args:m}),ref_for:!0,ref:d},null,40,["param","closable","expanded","options","onOpen:blade","onClose:blade","onClose:children","onParent:call"])),[[c.vShow,h>=n.blades.length-(l.$isMobile.value?1:2)]])),128))],64)}}}),HG=Object.freeze(Object.defineProperty({__proto__:null,VcBladeNavigation:kS},Symbol.toStringTag,{value:"Module"})),Hr=c.ref([]),Ul=c.ref([]),uy=c.ref(),hy=c.ref(),jG=()=>{const n=Ko.useRouter(),e=Ko.useRoute(),{checkPermission:t}=au(),r=c.ref(!1);c.watch(()=>Hr.value,a=>{const o=a[a.length-1];o&&o.component.url?o.param?l(o.component.url+"/"+o.param):l(o.component.url):o||l(e.path)},{deep:!0});async function i({parentBlade:a,component:o,param:h,bladeOptions:m,onOpen:v,onClose:w},b,S){console.debug(`openBlade(${1}) called.`);const C=c.unref(a),$=c.unref(o),k=p($);if(C&&C.url&&(await s(0),!r.value))if(uy.value=c.unref(m),hy.value=c.unref(h),S&&typeof S=="function")try{await S()}catch(x){console.log(x)}finally{console.debug(`Navigated to: ${C.url}`)}else S||await n.push(C.url);$&&(k===void 0?$.idx=b+1:k&&(await s(Hr.value.findIndex(x=>x.idx===k.idx)),$.idx=k.idx),await d($,h,m,v,w,b))}async function s(a){if(a<Ul.value.length){const o=Ul.value.slice(a).reverse();r.value=!1;for(let h=0;h<o.length;h++)if(o[h]?.onBeforeClose&&typeof o[h].onBeforeClose=="function"&&await o[h].onBeforeClose()===!1){r.value=!0;break}if(!r.value)typeof Hr.value[a]?.onClose=="function"&&Hr.value[a]?.onClose?.(),Hr.value.splice(a);else throw"Closing prevented"}}async function d(a,o,h,m,v,w){Hr.value.length>w&&await s(w),a&&t(a.permissions)?(Hr.value.push({component:a,bladeOptions:h,param:o,onOpen:m,onClose:v,idx:a.idx}),m&&typeof m=="function"&&m()):alert("Access restricted")}async function f(a,o){if(console.debug(`vc-app#onParentCall(${a}, { method: ${o.method} }) called.`),a>=0){const h=c.unref(Ul.value[a]);if(h)if(o.method&&typeof h[o.method]=="function"){const m=h[o.method],v=await m(o.args);typeof o.callback=="function"&&o.callback(v)}else console.error(`No such method: ${o.method}.`)}}function l(a){history.pushState({},null,"#"+a)}function p(a){return Hr.value.find(o=>Mo(o.component,a))}return{blades:c.computed(()=>Hr.value),parentBladeOptions:c.computed(()=>uy.value),parentBladeParam:c.computed(()=>hy.value),bladesRefs:Ul,openBlade:i,closeBlade:s,onParentCall:f}},zG={install(n){Object.entries(HG).forEach(([e,t])=>{n.component(e,t)})}},GG=[OG,WG,zG];function TS(n){return GG.forEach(e=>n.use(e)),n}/**
|
|
1106
1106
|
* vee-validate v4.7.4
|
|
1107
1107
|
* (c) 2023 Abdelrahman Awad
|
|
1108
1108
|
* @license MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"main": "./dist/framework.js",
|
|
5
5
|
"module": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
56
56
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
57
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
58
|
-
"@vc-shell/config-generator": "^1.0.
|
|
57
|
+
"@vc-shell/api-client-generator": "^1.0.52",
|
|
58
|
+
"@vc-shell/config-generator": "^1.0.52",
|
|
59
59
|
"@vue-macros/volar": "^0.8.1",
|
|
60
60
|
"sass": "^1.49.0",
|
|
61
61
|
"typescript": "^4.9.5",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"access": "public",
|
|
67
67
|
"registry": "https://registry.npmjs.org/"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "86f38c6a3c0ce2461fd0c49bd446f5c94c359d61"
|
|
70
70
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
@open:blade="$emit('onOpen', { blade: $event, id: blade.idx })"
|
|
26
26
|
@close:blade="$emit('onClose', i)"
|
|
27
27
|
@close:children="$emit('onClose', i + 1)"
|
|
28
|
-
@parent:call="$emit('onParentCall', { id: i,
|
|
28
|
+
@parent:call="$emit('onParentCall', { id: i, args: $event })"
|
|
29
29
|
:ref="setBladesRef"
|
|
30
30
|
></component>
|
|
31
31
|
</template>
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
</template>
|
|
299
299
|
|
|
300
300
|
<script lang="ts" setup>
|
|
301
|
-
import { computed, nextTick,
|
|
301
|
+
import { computed, nextTick, ref, watch, onBeforeUpdate } from "vue";
|
|
302
302
|
import {
|
|
303
303
|
VcIcon,
|
|
304
304
|
VcLoading,
|
|
@@ -385,6 +385,7 @@ const emit = defineEmits([
|
|
|
385
385
|
"filter:apply",
|
|
386
386
|
"filter:reset",
|
|
387
387
|
"headerClick",
|
|
388
|
+
"scroll:ptr",
|
|
388
389
|
]);
|
|
389
390
|
|
|
390
391
|
const checkboxes = ref<Record<string, boolean>>({});
|