zhihao-ui 1.3.64-alpha.2 → 1.3.65

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.
@@ -56,7 +56,7 @@ var r1;function be(){return r1.apply(null,arguments)}function QV(t){r1=t}functio
56
56
  [`+s+"] ";for(a in arguments[0])pt(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[s];r.push(i)}s1(t+`
57
57
  Arguments: `+Array.prototype.slice.call(r).join("")+`
58
58
  `+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var a1={};function l1(t,e){be.deprecationHandler!=null&&be.deprecationHandler(t,e),a1[t]||(s1(e),a1[t]=!0)}be.suppressDeprecationWarnings=!1,be.deprecationHandler=null;function wo(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function t$(t){var e,n;for(n in t)pt(t,n)&&(e=t[n],wo(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function im(t,e){var n=Oi({},t),r;for(r in e)pt(e,r)&&(gs(t[r])&&gs(e[r])?(n[r]={},Oi(n[r],t[r]),Oi(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)pt(t,r)&&!pt(e,r)&&gs(t[r])&&(n[r]=Oi({},n[r]));return n}function sm(t){t!=null&&this.set(t)}var am;Object.keys?am=Object.keys:am=function(t){var e,n=[];for(e in t)pt(t,e)&&n.push(e);return n};var n$={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function r$(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return wo(r)?r.call(e,n):r}function Co(t,e,n){var r=""+Math.abs(t),i=e-r.length,s=t>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var lm=/(\[[^\[]*\])|(\\)?([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,ou=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cm={},ha={};function Pe(t,e,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),t&&(ha[t]=i),e&&(ha[e[0]]=function(){return Co(i.apply(this,arguments),e[1],e[2])}),n&&(ha[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function o$(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function i$(t){var e=t.match(lm),n,r;for(n=0,r=e.length;n<r;n++)ha[e[n]]?e[n]=ha[e[n]]:e[n]=o$(e[n]);return function(i){var s="",a;for(a=0;a<r;a++)s+=wo(e[a])?e[a].call(i,t):e[a];return s}}function iu(t,e){return t.isValid()?(e=c1(e,t.localeData()),cm[e]=cm[e]||i$(e),cm[e](t)):t.localeData().invalidDate()}function c1(t,e){var n=5;function r(i){return e.longDateFormat(i)||i}for(ou.lastIndex=0;n>=0&&ou.test(t);)t=t.replace(ou,r),ou.lastIndex=0,n-=1;return t}var s$={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 a$(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(lm).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var l$="Invalid date";function c$(){return this._invalidDate}var d$="%d",u$=/\d{1,2}/;function f$(t){return this._ordinal.replace("%d",t)}var h$={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 p$(t,e,n,r){var i=this._relativeTime[n];return wo(i)?i(t,e,n,r):i.replace(/%d/i,t)}function m$(t,e){var n=this._relativeTime[t>0?"future":"past"];return wo(n)?n(e):n.replace(/%s/i,e)}var d1={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function xr(t){return typeof t=="string"?d1[t]||d1[t.toLowerCase()]:void 0}function dm(t){var e={},n,r;for(r in t)pt(t,r)&&(n=xr(r),n&&(e[n]=t[r]));return e}var g$={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function y$(t){var e=[],n;for(n in t)pt(t,n)&&e.push({unit:n,priority:g$[n]});return e.sort(function(r,i){return r.priority-i.priority}),e}var u1=/\d/,dr=/\d\d/,f1=/\d{3}/,um=/\d{4}/,su=/[+-]?\d{6}/,It=/\d\d?/,h1=/\d\d\d\d?/,p1=/\d\d\d\d\d\d?/,au=/\d{1,3}/,fm=/\d{1,4}/,lu=/[+-]?\d{1,6}/,pa=/\d+/,cu=/[+-]?\d+/,_$=/Z|[+-]\d\d:?\d\d/gi,du=/Z|[+-]\d\d(?::?\d\d)?/gi,b$=/[+-]?\d+(\.\d{1,3})?/,Xl=/[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,ma=/^[1-9]\d?/,hm=/^([1-9]\d|\d)/,uu;uu={};function ve(t,e,n){uu[t]=wo(e)?e:function(r,i){return r&&n?n:e}}function w$(t,e){return pt(uu,t)?uu[t](e._strict,e._locale):new RegExp(C$(t))}function C$(t){return Ho(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,i,s){return n||r||i||s}))}function Ho(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Tr(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function it(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=Tr(e)),n}var pm={};function kt(t,e){var n,r=e,i;for(typeof t=="string"&&(t=[t]),jo(e)&&(r=function(s,a){a[e]=it(s)}),i=t.length,n=0;n<i;n++)pm[t[n]]=r}function Zl(t,e){kt(t,function(n,r,i,s){i._w=i._w||{},e(n,i._w,i,s)})}function E$(t,e,n){e!=null&&pt(pm,t)&&pm[t](e,n._a,n,t)}function fu(t){return t%4===0&&t%100!==0||t%400===0}var Cn=0,Uo=1,Eo=2,nn=3,Qr=4,Ko=5,ys=6,S$=7,k$=8;Pe("Y",0,0,function(){var t=this.year();return t<=9999?Co(t,4):"+"+t}),Pe(0,["YY",2],0,function(){return this.year()%100}),Pe(0,["YYYY",4],0,"year"),Pe(0,["YYYYY",5],0,"year"),Pe(0,["YYYYYY",6,!0],0,"year"),ve("Y",cu),ve("YY",It,dr),ve("YYYY",fm,um),ve("YYYYY",lu,su),ve("YYYYYY",lu,su),kt(["YYYYY","YYYYYY"],Cn),kt("YYYY",function(t,e){e[Cn]=t.length===2?be.parseTwoDigitYear(t):it(t)}),kt("YY",function(t,e){e[Cn]=be.parseTwoDigitYear(t)}),kt("Y",function(t,e){e[Cn]=parseInt(t,10)});function ql(t){return fu(t)?366:365}be.parseTwoDigitYear=function(t){return it(t)+(it(t)>68?1900:2e3)};var m1=ga("FullYear",!0);function v$(){return fu(this.year())}function ga(t,e){return function(n){return n!=null?(g1(this,t,n),be.updateOffset(this,e),this):Jl(this,t)}}function Jl(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function g1(t,e,n){var r,i,s,a,l;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}s=n,a=t.month(),l=t.date(),l=l===29&&a===1&&!fu(s)?28:l,i?r.setUTCFullYear(s,a,l):r.setFullYear(s,a,l)}}function x$(t){return t=xr(t),wo(this[t])?this[t]():this}function T$(t,e){if(typeof t=="object"){t=dm(t);var n=y$(t),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](t[n[r].unit])}else if(t=xr(t),wo(this[t]))return this[t](e);return this}function M$(t,e){return(t%e+e)%e}var Wt;Array.prototype.indexOf?Wt=Array.prototype.indexOf:Wt=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function mm(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=M$(e,12);return t+=(e-n)/12,n===1?fu(t)?29:28:31-n%7%2}Pe("M",["MM",2],"Mo",function(){return this.month()+1}),Pe("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),Pe("MMMM",0,0,function(t){return this.localeData().months(this,t)}),ve("M",It,ma),ve("MM",It,dr),ve("MMM",function(t,e){return e.monthsShortRegex(t)}),ve("MMMM",function(t,e){return e.monthsRegex(t)}),kt(["M","MM"],function(t,e){e[Uo]=it(t)-1}),kt(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);i!=null?e[Uo]=i:Ze(n).invalidMonth=t});var R$="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),y1="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_1=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,P$=Xl,D$=Xl;function I$(t,e){return t?qr(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||_1).test(e)?"format":"standalone"][t.month()]:qr(this._months)?this._months:this._months.standalone}function N$(t,e){return t?qr(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[_1.test(e)?"format":"standalone"][t.month()]:qr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function O$(t,e,n){var r,i,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=bo([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?e==="MMM"?(i=Wt.call(this._shortMonthsParse,a),i!==-1?i:null):(i=Wt.call(this._longMonthsParse,a),i!==-1?i:null):e==="MMM"?(i=Wt.call(this._shortMonthsParse,a),i!==-1?i:(i=Wt.call(this._longMonthsParse,a),i!==-1?i:null)):(i=Wt.call(this._longMonthsParse,a),i!==-1?i:(i=Wt.call(this._shortMonthsParse,a),i!==-1?i:null))}function L$(t,e,n){var r,i,s;if(this._monthsParseExact)return O$.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=bo([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function b1(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=it(e);else if(e=t.localeData().monthsParse(e),!jo(e))return t}var n=e,r=t.date();return r=r<29?r:Math.min(r,mm(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function w1(t){return t!=null?(b1(this,t),be.updateOffset(this,!0),this):Jl(this,"Month")}function A$(){return mm(this.year(),this.month())}function F$(t){return this._monthsParseExact?(pt(this,"_monthsRegex")||C1.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(pt(this,"_monthsShortRegex")||(this._monthsShortRegex=P$),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function B$(t){return this._monthsParseExact?(pt(this,"_monthsRegex")||C1.call(this),t?this._monthsStrictRegex:this._monthsRegex):(pt(this,"_monthsRegex")||(this._monthsRegex=D$),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function C1(){function t(c,d){return d.length-c.length}var e=[],n=[],r=[],i,s,a,l;for(i=0;i<12;i++)s=bo([2e3,i]),a=Ho(this.monthsShort(s,"")),l=Ho(this.months(s,"")),e.push(a),n.push(l),r.push(l),r.push(a);e.sort(t),n.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function V$(t,e,n,r,i,s,a){var l;return t<100&&t>=0?(l=new Date(t+400,e,n,r,i,s,a),isFinite(l.getFullYear())&&l.setFullYear(t)):l=new Date(t,e,n,r,i,s,a),l}function Ql(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function hu(t,e,n){var r=7+e-n,i=(7+Ql(t,0,r).getUTCDay()-e)%7;return-i+r-1}function E1(t,e,n,r,i){var s=(7+n-r)%7,a=hu(t,r,i),l=1+7*(e-1)+s+a,c,d;return l<=0?(c=t-1,d=ql(c)+l):l>ql(t)?(c=t+1,d=l-ql(t)):(c=t,d=l),{year:c,dayOfYear:d}}function ec(t,e,n){var r=hu(t.year(),e,n),i=Math.floor((t.dayOfYear()-r-1)/7)+1,s,a;return i<1?(a=t.year()-1,s=i+Xo(a,e,n)):i>Xo(t.year(),e,n)?(s=i-Xo(t.year(),e,n),a=t.year()+1):(a=t.year(),s=i),{week:s,year:a}}function Xo(t,e,n){var r=hu(t,e,n),i=hu(t+1,e,n);return(ql(t)-r+i)/7}Pe("w",["ww",2],"wo","week"),Pe("W",["WW",2],"Wo","isoWeek"),ve("w",It,ma),ve("ww",It,dr),ve("W",It,ma),ve("WW",It,dr),Zl(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=it(t)});function $$(t){return ec(t,this._week.dow,this._week.doy).week}var z$={dow:0,doy:6};function W$(){return this._week.dow}function Y$(){return this._week.doy}function G$(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function j$(t){var e=ec(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}Pe("d",0,"do","day"),Pe("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Pe("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Pe("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Pe("e",0,0,"weekday"),Pe("E",0,0,"isoWeekday"),ve("d",It),ve("e",It),ve("E",It),ve("dd",function(t,e){return e.weekdaysMinRegex(t)}),ve("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ve("dddd",function(t,e){return e.weekdaysRegex(t)}),Zl(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);i!=null?e.d=i:Ze(n).invalidWeekday=t}),Zl(["d","e","E"],function(t,e,n,r){e[r]=it(t)});function H$(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function U$(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function gm(t,e){return t.slice(e,7).concat(t.slice(0,e))}var K$="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),S1="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),X$="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Z$=Xl,q$=Xl,J$=Xl;function Q$(t,e){var n=qr(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?gm(n,this._week.dow):t?n[t.day()]:n}function e6(t){return t===!0?gm(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function t6(t){return t===!0?gm(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function n6(t,e,n){var r,i,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=bo([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 n?e==="dddd"?(i=Wt.call(this._weekdaysParse,a),i!==-1?i:null):e==="ddd"?(i=Wt.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Wt.call(this._minWeekdaysParse,a),i!==-1?i:null):e==="dddd"?(i=Wt.call(this._weekdaysParse,a),i!==-1||(i=Wt.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Wt.call(this._minWeekdaysParse,a),i!==-1?i:null)):e==="ddd"?(i=Wt.call(this._shortWeekdaysParse,a),i!==-1||(i=Wt.call(this._weekdaysParse,a),i!==-1)?i:(i=Wt.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Wt.call(this._minWeekdaysParse,a),i!==-1||(i=Wt.call(this._weekdaysParse,a),i!==-1)?i:(i=Wt.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function r6(t,e,n){var r,i,s;if(this._weekdaysParseExact)return n6.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=bo([2e3,1]).day(r),n&&!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")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function o6(t){if(!this.isValid())return t!=null?this:NaN;var e=Jl(this,"Day");return t!=null?(t=H$(t,this.localeData()),this.add(t-e,"d")):e}function i6(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function s6(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=U$(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function a6(t){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||ym.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(pt(this,"_weekdaysRegex")||(this._weekdaysRegex=Z$),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function l6(t){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||ym.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(pt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=q$),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function c6(t){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||ym.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(pt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=J$),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ym(){function t(u,f){return f.length-u.length}var e=[],n=[],r=[],i=[],s,a,l,c,d;for(s=0;s<7;s++)a=bo([2e3,1]).day(s),l=Ho(this.weekdaysMin(a,"")),c=Ho(this.weekdaysShort(a,"")),d=Ho(this.weekdays(a,"")),e.push(l),n.push(c),r.push(d),i.push(l),i.push(c),i.push(d);e.sort(t),n.sort(t),r.sort(t),i.sort(t),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("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function _m(){return this.hours()%12||12}function d6(){return this.hours()||24}Pe("H",["HH",2],0,"hour"),Pe("h",["hh",2],0,_m),Pe("k",["kk",2],0,d6),Pe("hmm",0,0,function(){return""+_m.apply(this)+Co(this.minutes(),2)}),Pe("hmmss",0,0,function(){return""+_m.apply(this)+Co(this.minutes(),2)+Co(this.seconds(),2)}),Pe("Hmm",0,0,function(){return""+this.hours()+Co(this.minutes(),2)}),Pe("Hmmss",0,0,function(){return""+this.hours()+Co(this.minutes(),2)+Co(this.seconds(),2)});function k1(t,e){Pe(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}k1("a",!0),k1("A",!1);function v1(t,e){return e._meridiemParse}ve("a",v1),ve("A",v1),ve("H",It,hm),ve("h",It,ma),ve("k",It,ma),ve("HH",It,dr),ve("hh",It,dr),ve("kk",It,dr),ve("hmm",h1),ve("hmmss",p1),ve("Hmm",h1),ve("Hmmss",p1),kt(["H","HH"],nn),kt(["k","kk"],function(t,e,n){var r=it(t);e[nn]=r===24?0:r}),kt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),kt(["h","hh"],function(t,e,n){e[nn]=it(t),Ze(n).bigHour=!0}),kt("hmm",function(t,e,n){var r=t.length-2;e[nn]=it(t.substr(0,r)),e[Qr]=it(t.substr(r)),Ze(n).bigHour=!0}),kt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[nn]=it(t.substr(0,r)),e[Qr]=it(t.substr(r,2)),e[Ko]=it(t.substr(i)),Ze(n).bigHour=!0}),kt("Hmm",function(t,e,n){var r=t.length-2;e[nn]=it(t.substr(0,r)),e[Qr]=it(t.substr(r))}),kt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[nn]=it(t.substr(0,r)),e[Qr]=it(t.substr(r,2)),e[Ko]=it(t.substr(i))});function u6(t){return(t+"").toLowerCase().charAt(0)==="p"}var f6=/[ap]\.?m?\.?/i,h6=ga("Hours",!0);function p6(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var x1={calendar:n$,longDateFormat:s$,invalidDate:l$,ordinal:d$,dayOfMonthOrdinalParse:u$,relativeTime:h$,months:R$,monthsShort:y1,week:z$,weekdays:K$,weekdaysMin:X$,weekdaysShort:S1,meridiemParse:f6},Ot={},tc={},nc;function m6(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function T1(t){return t&&t.toLowerCase().replace("_","-")}function g6(t){for(var e=0,n,r,i,s;e<t.length;){for(s=T1(t[e]).split("-"),n=s.length,r=T1(t[e+1]),r=r?r.split("-"):null;n>0;){if(i=pu(s.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&m6(s,r)>=n-1)break;n--}e++}return nc}function y6(t){return!!(t&&t.match("^[^/\\\\]*$"))}function pu(t){var e=null,n;if(Ot[t]===void 0&&typeof module<"u"&&module&&module.exports&&y6(t))try{e=nc._abbr,n=require,n("./locale/"+t),Li(e)}catch{Ot[t]=null}return Ot[t]}function Li(t,e){var n;return t&&(Hn(e)?n=Zo(t):n=bm(t,e),n?nc=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),nc._abbr}function bm(t,e){if(e!==null){var n,r=x1;if(e.abbr=t,Ot[t]!=null)l1("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=Ot[t]._config;else if(e.parentLocale!=null)if(Ot[e.parentLocale]!=null)r=Ot[e.parentLocale]._config;else if(n=pu(e.parentLocale),n!=null)r=n._config;else return tc[e.parentLocale]||(tc[e.parentLocale]=[]),tc[e.parentLocale].push({name:t,config:e}),null;return Ot[t]=new sm(im(r,e)),tc[t]&&tc[t].forEach(function(i){bm(i.name,i.config)}),Li(t),Ot[t]}else return delete Ot[t],null}function _6(t,e){if(e!=null){var n,r,i=x1;Ot[t]!=null&&Ot[t].parentLocale!=null?Ot[t].set(im(Ot[t]._config,e)):(r=pu(t),r!=null&&(i=r._config),e=im(i,e),r==null&&(e.abbr=t),n=new sm(e),n.parentLocale=Ot[t],Ot[t]=n),Li(t)}else Ot[t]!=null&&(Ot[t].parentLocale!=null?(Ot[t]=Ot[t].parentLocale,t===Li()&&Li(t)):Ot[t]!=null&&delete Ot[t]);return Ot[t]}function Zo(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return nc;if(!qr(t)){if(e=pu(t),e)return e;t=[t]}return g6(t)}function b6(){return am(Ot)}function wm(t){var e,n=t._a;return n&&Ze(t).overflow===-2&&(e=n[Uo]<0||n[Uo]>11?Uo:n[Eo]<1||n[Eo]>mm(n[Cn],n[Uo])?Eo:n[nn]<0||n[nn]>24||n[nn]===24&&(n[Qr]!==0||n[Ko]!==0||n[ys]!==0)?nn:n[Qr]<0||n[Qr]>59?Qr:n[Ko]<0||n[Ko]>59?Ko:n[ys]<0||n[ys]>999?ys:-1,Ze(t)._overflowDayOfYear&&(e<Cn||e>Eo)&&(e=Eo),Ze(t)._overflowWeeks&&e===-1&&(e=S$),Ze(t)._overflowWeekday&&e===-1&&(e=k$),Ze(t).overflow=e),t}var w6=/^\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)?)?$/,C6=/^\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)?)?$/,E6=/Z|[+-]\d\d(?::?\d\d)?/,mu=[["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]],Cm=[["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/]],S6=/^\/?Date\((-?\d+)/i,k6=/^(?:(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}))$/,v6={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 M1(t){var e,n,r=t._i,i=w6.exec(r)||C6.exec(r),s,a,l,c,d=mu.length,u=Cm.length;if(i){for(Ze(t).iso=!0,e=0,n=d;e<n;e++)if(mu[e][1].exec(i[1])){a=mu[e][0],s=mu[e][2]!==!1;break}if(a==null){t._isValid=!1;return}if(i[3]){for(e=0,n=u;e<n;e++)if(Cm[e][1].exec(i[3])){l=(i[2]||" ")+Cm[e][0];break}if(l==null){t._isValid=!1;return}}if(!s&&l!=null){t._isValid=!1;return}if(i[4])if(E6.exec(i[4]))c="Z";else{t._isValid=!1;return}t._f=a+(l||"")+(c||""),Sm(t)}else t._isValid=!1}function x6(t,e,n,r,i,s){var a=[T6(t),y1.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&a.push(parseInt(s,10)),a}function T6(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function M6(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function R6(t,e,n){if(t){var r=S1.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return Ze(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function P6(t,e,n){if(t)return v6[t];if(e)return 0;var r=parseInt(n,10),i=r%100,s=(r-i)/100;return s*60+i}function R1(t){var e=k6.exec(M6(t._i)),n;if(e){if(n=x6(e[4],e[3],e[2],e[5],e[6],e[7]),!R6(e[1],n,t))return;t._a=n,t._tzm=P6(e[8],e[9],e[10]),t._d=Ql.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),Ze(t).rfc2822=!0}else t._isValid=!1}function D6(t){var e=S6.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(M1(t),t._isValid===!1)delete t._isValid;else return;if(R1(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:be.createFromInputFallback(t)}be.createFromInputFallback=vr("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function ya(t,e,n){return t??e??n}function I6(t){var e=new Date(be.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Em(t){var e,n,r=[],i,s,a;if(!t._d){for(i=I6(t),t._w&&t._a[Eo]==null&&t._a[Uo]==null&&N6(t),t._dayOfYear!=null&&(a=ya(t._a[Cn],i[Cn]),(t._dayOfYear>ql(a)||t._dayOfYear===0)&&(Ze(t)._overflowDayOfYear=!0),n=Ql(a,0,t._dayOfYear),t._a[Uo]=n.getUTCMonth(),t._a[Eo]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[nn]===24&&t._a[Qr]===0&&t._a[Ko]===0&&t._a[ys]===0&&(t._nextDay=!0,t._a[nn]=0),t._d=(t._useUTC?Ql:V$).apply(null,r),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[nn]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==s&&(Ze(t).weekdayMismatch=!0)}}function N6(t){var e,n,r,i,s,a,l,c,d;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,a=4,n=ya(e.GG,t._a[Cn],ec(Nt(),1,4).year),r=ya(e.W,1),i=ya(e.E,1),(i<1||i>7)&&(c=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,d=ec(Nt(),s,a),n=ya(e.gg,t._a[Cn],d.year),r=ya(e.w,d.week),e.d!=null?(i=e.d,(i<0||i>6)&&(c=!0)):e.e!=null?(i=e.e+s,(e.e<0||e.e>6)&&(c=!0)):i=s),r<1||r>Xo(n,s,a)?Ze(t)._overflowWeeks=!0:c!=null?Ze(t)._overflowWeekday=!0:(l=E1(n,r,i,s,a),t._a[Cn]=l.year,t._dayOfYear=l.dayOfYear)}be.ISO_8601=function(){},be.RFC_2822=function(){};function Sm(t){if(t._f===be.ISO_8601){M1(t);return}if(t._f===be.RFC_2822){R1(t);return}t._a=[],Ze(t).empty=!0;var e=""+t._i,n,r,i,s,a,l=e.length,c=0,d,u;for(i=c1(t._f,t._locale).match(lm)||[],u=i.length,n=0;n<u;n++)s=i[n],r=(e.match(w$(s,t))||[])[0],r&&(a=e.substr(0,e.indexOf(r)),a.length>0&&Ze(t).unusedInput.push(a),e=e.slice(e.indexOf(r)+r.length),c+=r.length),ha[s]?(r?Ze(t).empty=!1:Ze(t).unusedTokens.push(s),E$(s,r,t)):t._strict&&!r&&Ze(t).unusedTokens.push(s);Ze(t).charsLeftOver=l-c,e.length>0&&Ze(t).unusedInput.push(e),t._a[nn]<=12&&Ze(t).bigHour===!0&&t._a[nn]>0&&(Ze(t).bigHour=void 0),Ze(t).parsedDateParts=t._a.slice(0),Ze(t).meridiem=t._meridiem,t._a[nn]=O6(t._locale,t._a[nn],t._meridiem),d=Ze(t).era,d!==null&&(t._a[Cn]=t._locale.erasConvertYear(d,t._a[Cn])),Em(t),wm(t)}function O6(t,e,n){var r;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function L6(t){var e,n,r,i,s,a,l=!1,c=t._f.length;if(c===0){Ze(t).invalidFormat=!0,t._d=new Date(NaN);return}for(i=0;i<c;i++)s=0,a=!1,e=om({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[i],Sm(e),nm(e)&&(a=!0),s+=Ze(e).charsLeftOver,s+=Ze(e).unusedTokens.length*10,Ze(e).score=s,l?s<r&&(r=s,n=e):(r==null||s<r||a)&&(r=s,n=e,a&&(l=!0));Oi(t,n||e)}function A6(t){if(!t._d){var e=dm(t._i),n=e.day===void 0?e.date:e.day;t._a=o1([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),Em(t)}}function F6(t){var e=new Kl(wm(P1(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function P1(t){var e=t._i,n=t._f;return t._locale=t._locale||Zo(t._l),e===null||n===void 0&&e===""?ru({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Jr(e)?new Kl(wm(e)):(Ul(e)?t._d=e:qr(n)?L6(t):n?Sm(t):B6(t),nm(t)||(t._d=null),t))}function B6(t){var e=t._i;Hn(e)?t._d=new Date(be.now()):Ul(e)?t._d=new Date(e.valueOf()):typeof e=="string"?D6(t):qr(e)?(t._a=o1(e.slice(0),function(n){return parseInt(n,10)}),Em(t)):gs(e)?A6(t):jo(e)?t._d=new Date(e):be.createFromInputFallback(t)}function D1(t,e,n,r,i){var s={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(gs(t)&&em(t)||qr(t)&&t.length===0)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,F6(s)}function Nt(t,e,n,r){return D1(t,e,n,r,!1)}var V6=vr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Nt.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:ru()}),$6=vr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Nt.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:ru()});function I1(t,e){var n,r;if(e.length===1&&qr(e[0])&&(e=e[0]),!e.length)return Nt();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function z6(){var t=[].slice.call(arguments,0);return I1("isBefore",t)}function W6(){var t=[].slice.call(arguments,0);return I1("isAfter",t)}var Y6=function(){return Date.now?Date.now():+new Date},rc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function G6(t){var e,n=!1,r,i=rc.length;for(e in t)if(pt(t,e)&&!(Wt.call(rc,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<i;++r)if(t[rc[r]]){if(n)return!1;parseFloat(t[rc[r]])!==it(t[rc[r]])&&(n=!0)}return!0}function j6(){return this._isValid}function H6(){return eo(NaN)}function gu(t){var e=dm(t),n=e.year||0,r=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,c=e.minute||0,d=e.second||0,u=e.millisecond||0;this._isValid=G6(e),this._milliseconds=+u+d*1e3+c*6e4+l*1e3*60*60,this._days=+a+s*7,this._months=+i+r*3+n*12,this._data={},this._locale=Zo(),this._bubble()}function yu(t){return t instanceof gu}function km(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function U6(t,e,n){var r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),s=0,a;for(a=0;a<r;a++)it(t[a])!==it(e[a])&&s++;return s+i}function N1(t,e){Pe(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Co(~~(n/60),2)+e+Co(~~n%60,2)})}N1("Z",":"),N1("ZZ",""),ve("Z",du),ve("ZZ",du),kt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=vm(du,t)});var K6=/([\+\-]|\d\d)/gi;function vm(t,e){var n=(e||"").match(t),r,i,s;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(K6)||["-",0,0],s=+(i[1]*60)+it(i[2]),s===0?0:i[0]==="+"?s:-s)}function xm(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(Jr(t)||Ul(t)?t.valueOf():Nt(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),be.updateOffset(n,!1),n):Nt(t).local()}function Tm(t){return-Math.round(t._d.getTimezoneOffset())}be.updateOffset=function(){};function X6(t,e,n){var r=this._offset||0,i;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=vm(du,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(i=Tm(this)),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?F1(this,eo(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,be.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Tm(this)}function Z6(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function q6(t){return this.utcOffset(0,t)}function J6(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Tm(this),"m")),this}function Q6(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=vm(_$,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function e5(t){return this.isValid()?(t=t?Nt(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function t5(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function n5(){if(!Hn(this._isDSTShifted))return this._isDSTShifted;var t={},e;return om(t,this),t=P1(t),t._a?(e=t._isUTC?bo(t._a):Nt(t._a),this._isDSTShifted=this.isValid()&&U6(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function r5(){return this.isValid()?!this._isUTC:!1}function o5(){return this.isValid()?this._isUTC:!1}function O1(){return this.isValid()?this._isUTC&&this._offset===0:!1}var i5=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,s5=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function eo(t,e){var n=t,r=null,i,s,a;return yu(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:jo(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=i5.exec(t))?(i=r[1]==="-"?-1:1,n={y:0,d:it(r[Eo])*i,h:it(r[nn])*i,m:it(r[Qr])*i,s:it(r[Ko])*i,ms:it(km(r[ys]*1e3))*i}):(r=s5.exec(t))?(i=r[1]==="-"?-1:1,n={y:_s(r[2],i),M:_s(r[3],i),w:_s(r[4],i),d:_s(r[5],i),h:_s(r[6],i),m:_s(r[7],i),s:_s(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=a5(Nt(n.from),Nt(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),s=new gu(n),yu(t)&&pt(t,"_locale")&&(s._locale=t._locale),yu(t)&&pt(t,"_isValid")&&(s._isValid=t._isValid),s}eo.fn=gu.prototype,eo.invalid=H6;function _s(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function L1(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function a5(t,e){var n;return t.isValid()&&e.isValid()?(e=xm(e,t),t.isBefore(e)?n=L1(t,e):(n=L1(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function A1(t,e){return function(n,r){var i,s;return r!==null&&!isNaN(+r)&&(l1(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=n,n=r,r=s),i=eo(n,r),F1(this,i,t),this}}function F1(t,e,n,r){var i=e._milliseconds,s=km(e._days),a=km(e._months);t.isValid()&&(r=r??!0,a&&b1(t,Jl(t,"Month")+a*n),s&&g1(t,"Date",Jl(t,"Date")+s*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&be.updateOffset(t,s||a))}var l5=A1(1,"add"),c5=A1(-1,"subtract");function B1(t){return typeof t=="string"||t instanceof String}function d5(t){return Jr(t)||Ul(t)||B1(t)||jo(t)||f5(t)||u5(t)||t===null||t===void 0}function u5(t){var e=gs(t)&&!em(t),n=!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,a=r.length;for(i=0;i<a;i+=1)s=r[i],n=n||pt(t,s);return e&&n}function f5(t){var e=qr(t),n=!1;return e&&(n=t.filter(function(r){return!jo(r)&&B1(t)}).length===0),e&&n}function h5(t){var e=gs(t)&&!em(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,s;for(i=0;i<r.length;i+=1)s=r[i],n=n||pt(t,s);return e&&n}function p5(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function m5(t,e){arguments.length===1&&(arguments[0]?d5(arguments[0])?(t=arguments[0],e=void 0):h5(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Nt(),r=xm(n,this).startOf("day"),i=be.calendarFormat(this,r)||"sameElse",s=e&&(wo(e[i])?e[i].call(this,n):e[i]);return this.format(s||this.localeData().calendar(i,this,Nt(n)))}function g5(){return new Kl(this)}function y5(t,e){var n=Jr(t)?t:Nt(t);return this.isValid()&&n.isValid()?(e=xr(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function _5(t,e){var n=Jr(t)?t:Nt(t);return this.isValid()&&n.isValid()?(e=xr(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function b5(t,e,n,r){var i=Jr(t)?t:Nt(t),s=Jr(e)?e:Nt(e);return this.isValid()&&i.isValid()&&s.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(s,n):!this.isAfter(s,n))):!1}function w5(t,e){var n=Jr(t)?t:Nt(t),r;return this.isValid()&&n.isValid()?(e=xr(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function C5(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function E5(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function S5(t,e,n){var r,i,s;if(!this.isValid())return NaN;if(r=xm(t,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,e=xr(e),e){case"year":s=_u(this,r)/12;break;case"month":s=_u(this,r);break;case"quarter":s=_u(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 n?s:Tr(s)}function _u(t,e){if(t.date()<e.date())return-_u(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),i,s;return e-r<0?(i=t.clone().add(n-1,"months"),s=(e-r)/(r-i)):(i=t.clone().add(n+1,"months"),s=(e-r)/(i-r)),-(n+s)||0}be.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",be.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function k5(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function v5(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?iu(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):wo(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",iu(n,"Z")):iu(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function x5(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,i,s;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(n+r+i+s)}function T5(t){t||(t=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=iu(this,t);return this.localeData().postformat(e)}function M5(t,e){return this.isValid()&&(Jr(t)&&t.isValid()||Nt(t).isValid())?eo({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function R5(t){return this.from(Nt(),t)}function P5(t,e){return this.isValid()&&(Jr(t)&&t.isValid()||Nt(t).isValid())?eo({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function D5(t){return this.to(Nt(),t)}function V1(t){var e;return t===void 0?this._locale._abbr:(e=Zo(t),e!=null&&(this._locale=e),this)}var $1=vr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function z1(){return this._locale}var bu=1e3,_a=60*bu,wu=60*_a,W1=(365*400+97)*24*wu;function ba(t,e){return(t%e+e)%e}function Y1(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-W1:new Date(t,e,n).valueOf()}function G1(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-W1:Date.UTC(t,e,n)}function I5(t){var e,n;if(t=xr(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?G1:Y1,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ba(e+(this._isUTC?0:this.utcOffset()*_a),wu);break;case"minute":e=this._d.valueOf(),e-=ba(e,_a);break;case"second":e=this._d.valueOf(),e-=ba(e,bu);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function N5(t){var e,n;if(t=xr(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?G1:Y1,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=wu-ba(e+(this._isUTC?0:this.utcOffset()*_a),wu)-1;break;case"minute":e=this._d.valueOf(),e+=_a-ba(e,_a)-1;break;case"second":e=this._d.valueOf(),e+=bu-ba(e,bu)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function O5(){return this._d.valueOf()-(this._offset||0)*6e4}function L5(){return Math.floor(this.valueOf()/1e3)}function A5(){return new Date(this.valueOf())}function F5(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function B5(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function V5(){return this.isValid()?this.toISOString():null}function $5(){return nm(this)}function z5(){return Oi({},Ze(this))}function W5(){return Ze(this).overflow}function Y5(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Pe("N",0,0,"eraAbbr"),Pe("NN",0,0,"eraAbbr"),Pe("NNN",0,0,"eraAbbr"),Pe("NNNN",0,0,"eraName"),Pe("NNNNN",0,0,"eraNarrow"),Pe("y",["y",1],"yo","eraYear"),Pe("y",["yy",2],0,"eraYear"),Pe("y",["yyy",3],0,"eraYear"),Pe("y",["yyyy",4],0,"eraYear"),ve("N",Mm),ve("NN",Mm),ve("NNN",Mm),ve("NNNN",e8),ve("NNNNN",t8),kt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?Ze(n).era=i:Ze(n).invalidEra=t}),ve("y",pa),ve("yy",pa),ve("yyy",pa),ve("yyyy",pa),ve("yo",n8),kt(["y","yy","yyy","yyyy"],Cn),kt(["yo"],function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Cn]=n._locale.eraYearOrdinalParse(t,i):e[Cn]=parseInt(t,10)});function G5(t,e){var n,r,i,s=this._eras||Zo("en")._eras;for(n=0,r=s.length;n<r;++n){switch(typeof s[n].since){case"string":i=be(s[n].since).startOf("day"),s[n].since=i.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":i=be(s[n].until).startOf("day").valueOf(),s[n].until=i.valueOf();break}}return s}function j5(t,e,n){var r,i,s=this.eras(),a,l,c;for(t=t.toUpperCase(),r=0,i=s.length;r<i;++r)if(a=s[r].name.toUpperCase(),l=s[r].abbr.toUpperCase(),c=s[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(l===t)return s[r];break;case"NNNN":if(a===t)return s[r];break;case"NNNNN":if(c===t)return s[r];break}else if([a,l,c].indexOf(t)>=0)return s[r]}function H5(t,e){var n=t.since<=t.until?1:-1;return e===void 0?be(t.since).year():be(t.since).year()+(e-t.offset)*n}function U5(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function K5(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function X5(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function Z5(){var t,e,n,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(n=i[t].since<=i[t].until?1:-1,r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return(this.year()-be(i[t].since).year())*n+i[t].offset;return this.year()}function q5(t){return pt(this,"_erasNameRegex")||Rm.call(this),t?this._erasNameRegex:this._erasRegex}function J5(t){return pt(this,"_erasAbbrRegex")||Rm.call(this),t?this._erasAbbrRegex:this._erasRegex}function Q5(t){return pt(this,"_erasNarrowRegex")||Rm.call(this),t?this._erasNarrowRegex:this._erasRegex}function Mm(t,e){return e.erasAbbrRegex(t)}function e8(t,e){return e.erasNameRegex(t)}function t8(t,e){return e.erasNarrowRegex(t)}function n8(t,e){return e._eraYearOrdinalRegex||pa}function Rm(){var t=[],e=[],n=[],r=[],i,s,a,l,c,d=this.eras();for(i=0,s=d.length;i<s;++i)a=Ho(d[i].name),l=Ho(d[i].abbr),c=Ho(d[i].narrow),e.push(a),t.push(l),n.push(c),r.push(a),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Pe(0,["gg",2],0,function(){return this.weekYear()%100}),Pe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Cu(t,e){Pe(0,[t,t.length],0,e)}Cu("gggg","weekYear"),Cu("ggggg","weekYear"),Cu("GGGG","isoWeekYear"),Cu("GGGGG","isoWeekYear"),ve("G",cu),ve("g",cu),ve("GG",It,dr),ve("gg",It,dr),ve("GGGG",fm,um),ve("gggg",fm,um),ve("GGGGG",lu,su),ve("ggggg",lu,su),Zl(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=it(t)}),Zl(["gg","GG"],function(t,e,n,r){e[r]=be.parseTwoDigitYear(t)});function r8(t){return j1.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function o8(t){return j1.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function i8(){return Xo(this.year(),1,4)}function s8(){return Xo(this.isoWeekYear(),1,4)}function a8(){var t=this.localeData()._week;return Xo(this.year(),t.dow,t.doy)}function l8(){var t=this.localeData()._week;return Xo(this.weekYear(),t.dow,t.doy)}function j1(t,e,n,r,i){var s;return t==null?ec(this,r,i).year:(s=Xo(t,r,i),e>s&&(e=s),c8.call(this,t,e,n,r,i))}function c8(t,e,n,r,i){var s=E1(t,e,n,r,i),a=Ql(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Pe("Q",0,"Qo","quarter"),ve("Q",u1),kt("Q",function(t,e){e[Uo]=(it(t)-1)*3});function d8(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}Pe("D",["DD",2],"Do","date"),ve("D",It,ma),ve("DD",It,dr),ve("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),kt(["D","DD"],Eo),kt("Do",function(t,e){e[Eo]=it(t.match(It)[0])});var H1=ga("Date",!0);Pe("DDD",["DDDD",3],"DDDo","dayOfYear"),ve("DDD",au),ve("DDDD",f1),kt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=it(t)});function u8(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}Pe("m",["mm",2],0,"minute"),ve("m",It,hm),ve("mm",It,dr),kt(["m","mm"],Qr);var f8=ga("Minutes",!1);Pe("s",["ss",2],0,"second"),ve("s",It,hm),ve("ss",It,dr),kt(["s","ss"],Ko);var h8=ga("Seconds",!1);Pe("S",0,0,function(){return~~(this.millisecond()/100)}),Pe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Pe(0,["SSS",3],0,"millisecond"),Pe(0,["SSSS",4],0,function(){return this.millisecond()*10}),Pe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Pe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Pe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Pe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Pe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ve("S",au,u1),ve("SS",au,dr),ve("SSS",au,f1);var Ai,U1;for(Ai="SSSS";Ai.length<=9;Ai+="S")ve(Ai,pa);function p8(t,e){e[ys]=it(("0."+t)*1e3)}for(Ai="S";Ai.length<=9;Ai+="S")kt(Ai,p8);U1=ga("Milliseconds",!1),Pe("z",0,0,"zoneAbbr"),Pe("zz",0,0,"zoneName");function m8(){return this._isUTC?"UTC":""}function g8(){return this._isUTC?"Coordinated Universal Time":""}var pe=Kl.prototype;pe.add=l5,pe.calendar=m5,pe.clone=g5,pe.diff=S5,pe.endOf=N5,pe.format=T5,pe.from=M5,pe.fromNow=R5,pe.to=P5,pe.toNow=D5,pe.get=x$,pe.invalidAt=W5,pe.isAfter=y5,pe.isBefore=_5,pe.isBetween=b5,pe.isSame=w5,pe.isSameOrAfter=C5,pe.isSameOrBefore=E5,pe.isValid=$5,pe.lang=$1,pe.locale=V1,pe.localeData=z1,pe.max=$6,pe.min=V6,pe.parsingFlags=z5,pe.set=T$,pe.startOf=I5,pe.subtract=c5,pe.toArray=F5,pe.toObject=B5,pe.toDate=A5,pe.toISOString=v5,pe.inspect=x5,typeof Symbol<"u"&&Symbol.for!=null&&(pe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),pe.toJSON=V5,pe.toString=k5,pe.unix=L5,pe.valueOf=O5,pe.creationData=Y5,pe.eraName=U5,pe.eraNarrow=K5,pe.eraAbbr=X5,pe.eraYear=Z5,pe.year=m1,pe.isLeapYear=v$,pe.weekYear=r8,pe.isoWeekYear=o8,pe.quarter=pe.quarters=d8,pe.month=w1,pe.daysInMonth=A$,pe.week=pe.weeks=G$,pe.isoWeek=pe.isoWeeks=j$,pe.weeksInYear=a8,pe.weeksInWeekYear=l8,pe.isoWeeksInYear=i8,pe.isoWeeksInISOWeekYear=s8,pe.date=H1,pe.day=pe.days=o6,pe.weekday=i6,pe.isoWeekday=s6,pe.dayOfYear=u8,pe.hour=pe.hours=h6,pe.minute=pe.minutes=f8,pe.second=pe.seconds=h8,pe.millisecond=pe.milliseconds=U1,pe.utcOffset=X6,pe.utc=q6,pe.local=J6,pe.parseZone=Q6,pe.hasAlignedHourOffset=e5,pe.isDST=t5,pe.isLocal=r5,pe.isUtcOffset=o5,pe.isUtc=O1,pe.isUTC=O1,pe.zoneAbbr=m8,pe.zoneName=g8,pe.dates=vr("dates accessor is deprecated. Use date instead.",H1),pe.months=vr("months accessor is deprecated. Use month instead",w1),pe.years=vr("years accessor is deprecated. Use year instead",m1),pe.zone=vr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Z6),pe.isDSTShifted=vr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",n5);function y8(t){return Nt(t*1e3)}function _8(){return Nt.apply(null,arguments).parseZone()}function K1(t){return t}var mt=sm.prototype;mt.calendar=r$,mt.longDateFormat=a$,mt.invalidDate=c$,mt.ordinal=f$,mt.preparse=K1,mt.postformat=K1,mt.relativeTime=p$,mt.pastFuture=m$,mt.set=t$,mt.eras=G5,mt.erasParse=j5,mt.erasConvertYear=H5,mt.erasAbbrRegex=J5,mt.erasNameRegex=q5,mt.erasNarrowRegex=Q5,mt.months=I$,mt.monthsShort=N$,mt.monthsParse=L$,mt.monthsRegex=B$,mt.monthsShortRegex=F$,mt.week=$$,mt.firstDayOfYear=Y$,mt.firstDayOfWeek=W$,mt.weekdays=Q$,mt.weekdaysMin=t6,mt.weekdaysShort=e6,mt.weekdaysParse=r6,mt.weekdaysRegex=a6,mt.weekdaysShortRegex=l6,mt.weekdaysMinRegex=c6,mt.isPM=u6,mt.meridiem=p6;function Eu(t,e,n,r){var i=Zo(),s=bo().set(r,e);return i[n](s,t)}function X1(t,e,n){if(jo(t)&&(e=t,t=void 0),t=t||"",e!=null)return Eu(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Eu(t,r,n,"month");return i}function Pm(t,e,n,r){typeof t=="boolean"?(jo(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,jo(e)&&(n=e,e=void 0),e=e||"");var i=Zo(),s=t?i._week.dow:0,a,l=[];if(n!=null)return Eu(e,(n+s)%7,r,"day");for(a=0;a<7;a++)l[a]=Eu(e,(a+s)%7,r,"day");return l}function b8(t,e){return X1(t,e,"months")}function w8(t,e){return X1(t,e,"monthsShort")}function C8(t,e,n){return Pm(t,e,n,"weekdays")}function E8(t,e,n){return Pm(t,e,n,"weekdaysShort")}function S8(t,e,n){return Pm(t,e,n,"weekdaysMin")}Li("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(t){var e=t%10,n=it(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}}),be.lang=vr("moment.lang is deprecated. Use moment.locale instead.",Li),be.langData=vr("moment.langData is deprecated. Use moment.localeData instead.",Zo);var qo=Math.abs;function k8(){var t=this._data;return this._milliseconds=qo(this._milliseconds),this._days=qo(this._days),this._months=qo(this._months),t.milliseconds=qo(t.milliseconds),t.seconds=qo(t.seconds),t.minutes=qo(t.minutes),t.hours=qo(t.hours),t.months=qo(t.months),t.years=qo(t.years),this}function Z1(t,e,n,r){var i=eo(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function v8(t,e){return Z1(this,t,e,1)}function x8(t,e){return Z1(this,t,e,-1)}function q1(t){return t<0?Math.floor(t):Math.ceil(t)}function T8(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,i,s,a,l,c;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=q1(Dm(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,i=Tr(t/1e3),r.seconds=i%60,s=Tr(i/60),r.minutes=s%60,a=Tr(s/60),r.hours=a%24,e+=Tr(a/24),c=Tr(J1(e)),n+=c,e-=q1(Dm(c)),l=Tr(n/12),n%=12,r.days=e,r.months=n,r.years=l,this}function J1(t){return t*4800/146097}function Dm(t){return t*146097/4800}function M8(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=xr(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+J1(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Dm(this._months)),t){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 "+t)}}function Jo(t){return function(){return this.as(t)}}var Q1=Jo("ms"),R8=Jo("s"),P8=Jo("m"),D8=Jo("h"),I8=Jo("d"),N8=Jo("w"),O8=Jo("M"),L8=Jo("Q"),A8=Jo("y"),F8=Q1;function B8(){return eo(this)}function V8(t){return t=xr(t),this.isValid()?this[t+"s"]():NaN}function bs(t){return function(){return this.isValid()?this._data[t]:NaN}}var $8=bs("milliseconds"),z8=bs("seconds"),W8=bs("minutes"),Y8=bs("hours"),G8=bs("days"),j8=bs("months"),H8=bs("years");function U8(){return Tr(this.days()/7)}var Qo=Math.round,wa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function K8(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function X8(t,e,n,r){var i=eo(t).abs(),s=Qo(i.as("s")),a=Qo(i.as("m")),l=Qo(i.as("h")),c=Qo(i.as("d")),d=Qo(i.as("M")),u=Qo(i.as("w")),f=Qo(i.as("y")),h=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),h=h||d<=1&&["M"]||d<n.M&&["MM",d]||f<=1&&["y"]||["yy",f],h[2]=e,h[3]=+t>0,h[4]=r,K8.apply(null,h)}function Z8(t){return t===void 0?Qo:typeof t=="function"?(Qo=t,!0):!1}function q8(t,e){return wa[t]===void 0?!1:e===void 0?wa[t]:(wa[t]=e,t==="s"&&(wa.ss=e-1),!0)}function J8(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=wa,i,s;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},wa,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),i=this.localeData(),s=X8(this,!n,r,i),n&&(s=i.pastFuture(+this,s)),i.postformat(s)}var Im=Math.abs;function Ca(t){return(t>0)-(t<0)||+t}function Su(){if(!this.isValid())return this.localeData().invalidDate();var t=Im(this._milliseconds)/1e3,e=Im(this._days),n=Im(this._months),r,i,s,a,l=this.asSeconds(),c,d,u,f;return l?(r=Tr(t/60),i=Tr(r/60),t%=60,r%=60,s=Tr(n/12),n%=12,a=t?t.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",d=Ca(this._months)!==Ca(l)?"-":"",u=Ca(this._days)!==Ca(l)?"-":"",f=Ca(this._milliseconds)!==Ca(l)?"-":"",c+"P"+(s?d+s+"Y":"")+(n?d+n+"M":"")+(e?u+e+"D":"")+(i||r||t?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(t?f+a+"S":"")):"P0D"}var ct=gu.prototype;ct.isValid=j6,ct.abs=k8,ct.add=v8,ct.subtract=x8,ct.as=M8,ct.asMilliseconds=Q1,ct.asSeconds=R8,ct.asMinutes=P8,ct.asHours=D8,ct.asDays=I8,ct.asWeeks=N8,ct.asMonths=O8,ct.asQuarters=L8,ct.asYears=A8,ct.valueOf=F8,ct._bubble=T8,ct.clone=B8,ct.get=V8,ct.milliseconds=$8,ct.seconds=z8,ct.minutes=W8,ct.hours=Y8,ct.days=G8,ct.weeks=U8,ct.months=j8,ct.years=H8,ct.humanize=J8,ct.toISOString=Su,ct.toString=Su,ct.toJSON=Su,ct.locale=V1,ct.localeData=z1,ct.toIsoString=vr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Su),ct.lang=$1,Pe("X",0,0,"unix"),Pe("x",0,0,"valueOf"),ve("x",cu),ve("X",b$),kt("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)}),kt("x",function(t,e,n){n._d=new Date(it(t))});//! moment.js
59
- be.version="2.30.1",QV(Nt),be.fn=pe,be.min=z6,be.max=W6,be.now=Y6,be.utc=bo,be.unix=y8,be.months=b8,be.isDate=Ul,be.locale=Li,be.invalid=ru,be.duration=eo,be.isMoment=Jr,be.weekdays=C8,be.parseZone=_8,be.localeData=Zo,be.isDuration=yu,be.monthsShort=w8,be.weekdaysMin=S8,be.defineLocale=bm,be.updateLocale=_6,be.locales=b6,be.weekdaysShort=E8,be.normalizeUnits=xr,be.relativeTimeRounding=Z8,be.relativeTimeThreshold=q8,be.calendarFormat=p5,be.prototype=pe,be.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 Ut="--",eE="YYYY-MM-DDTHH:mm:ss",Q8="YYYY-MM-DDT23:59:59",ez="YYYY-MM-DD",tz="https://static.zhihaoscm.cn/",Nm=(t,e=ez)=>t?be(t).format(e).replace("Invalid date",Ut):Ut,nz=t=>typeof t=="number"?!0:typeof t=="string"?!isNaN(parseFloat(t)):!1;function rz(t){const e=["角","分"],n=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],r=[["元","万","亿"],["","拾","佰","仟"]],i=t<0?"负":"";t=Math.abs(t);let s="";for(let a=0;a<e.length;a++)s+=(n[Math.floor(t*10*Math.pow(10,a))%10]+e[a]).replace(/零./,"");s=s||"整",t=Math.floor(t);for(let a=0;a<r[0].length&&t>0;a++){let l="";for(let c=0;c<r[1].length&&t>0;c++)l=n[t%10]+r[1][c]+l,t=Math.floor(t/10);s=l.replace(/(零.)*零$/,"").replace(/^$/,"零")+r[0][a]+s}return i+s.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")}const tE=Pt(o.defineComponent({name:"zh-date-picker",__name:"DatePicker",props:{style:{},class:{},modelValue:{},disabledDateAfterToday:{type:Boolean}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,r=e,i=c=>Array.isArray(c)?[Nm(c[0],eE),Nm(c[1],Q8)]:c&&Nm(c,eE),s=c=>{const d=i(c);r("update:modelValue",d)},a=c=>{const d=i(c);r("change",d)},l=c=>{const d=new Date().getTime();return new Date(c).getTime()>d};return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([n.class,"zh-date-picker"])},[o.createVNode(o.unref(c4),o.mergeProps({"disabled-date":n.disabledDateAfterToday?l:void 0},c.$attrs,{style:n.style,"model-value":n.modelValue,"onUpdate:modelValue":s,onChange:a}),null,16,["disabled-date","style","model-value"])],2))}})),oz={class:"info-pair"},iz={class:"info-pair--title"},sz={key:0,class:"info-pair--title--tip"},az=Pt(o.defineComponent({name:"zh-detail-sub-title",__name:"DetailSubTitle",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createElementBlock("div",oz,[o.createElementVNode("div",iz,[o.createTextVNode(o.toDisplayString(e.title)+" ",1),n.tip?(o.openBlock(),o.createElementBlock("div",sz,o.toDisplayString(n.tip),1)):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:o.normalizeClass(["info-pair--value",{ellipsis:n.ellipsis}])},[o.renderSlot(n.$slots,"value",{},()=>[o.createTextVNode(o.toDisplayString(e.value||o.unref(Ut)),1)])],2)]))}})),lz={class:"title"},cz={key:0,class:"sub-title"},dz={class:"zh-dialog__footer"},nE=o.defineComponent({name:"ZhDialog",inheritAttrs:!1,__name:"Dialog",props:o.mergeModels({title:{},subTitle:{},cancelButtonText:{default:"取消"},confirmButtonText:{default:"确定"},confirmButtonDisabled:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1},size:{default:"middle"},width:{},appendToBody:{type:Boolean},appendTo:{},beforeClose:{},destroyOnClose:{type:Boolean},closeOnPressEscape:{type:Boolean},lockScroll:{type:Boolean},modal:{type:Boolean},openDelay:{},closeDelay:{},top:{},modelValue:{type:Boolean},modalClass:{},zIndex:{},trapFocus:{type:Boolean},headerAriaLevel:{},center:{type:Boolean},alignCenter:{type:Boolean},closeIcon:{},draggable:{type:Boolean},overflow:{type:Boolean},fullscreen:{type:Boolean},showClose:{type:Boolean},ariaLevel:{}},{modelValue:{type:Boolean,default:!0},modelModifiers:{}}),emits:o.mergeModels(["submit","close"],["update:modelValue"]),setup(t,{emit:e}){const n=t,r=o.useModel(t,"modelValue"),i=e,s=()=>{i("close")},a=()=>{i("submit")},l=()=>{i("close")},c={small:"400px",middle:"600px",large:"800px",extraLarge:"920px"},d=o.computed(()=>n.width?n.width:c[n.size]);return(u,f)=>(o.openBlock(),o.createBlock(o.unref(k4),o.mergeProps({modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=h=>r.value=h),class:"zh-dialog"},u.$attrs,{width:d.value,"close-on-click-modal":u.closeOnClickModal,onClose:l}),{header:o.withCtx(()=>[o.renderSlot(u.$slots,"header",{},()=>[o.createElementVNode("div",lz,o.toDisplayString(u.title),1),u.subTitle?(o.openBlock(),o.createElementBlock("div",cz,o.toDisplayString(u.subTitle),1)):o.createCommentVNode("",!0)])]),footer:o.withCtx(()=>[o.renderSlot(u.$slots,"footer",{},()=>[o.createElementVNode("div",dz,[o.createVNode(fa,{onClick:s},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(u.cancelButtonText),1)]),_:1}),o.createVNode(fa,{type:"primary",disabled:u.confirmButtonDisabled,onClick:a},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(u.confirmButtonText),1)]),_:1},8,["disabled"])])])]),default:o.withCtx(()=>[o.renderSlot(u.$slots,"default")]),_:3},16,["modelValue","width","close-on-click-modal"]))}}),rE=Pt(nE),uz={class:"info-pair"},fz={class:"info-pair--title"},hz={key:0,class:"info-pair--title--tip"},pz=Pt(zt(o.defineComponent({name:"zh-edit-info-pair",__name:"EditInfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createElementBlock("div",uz,[o.createElementVNode("div",fz,[o.createTextVNode(o.toDisplayString(e.title)+" ",1),n.tip?(o.openBlock(),o.createElementBlock("div",hz,o.toDisplayString(n.tip),1)):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:o.normalizeClass(["info-pair--value",{ellipsis:n.ellipsis}])},[o.renderSlot(n.$slots,"value",{},()=>[o.createTextVNode(o.toDisplayString(e.value||o.unref(Ut)),1)],!0)],2)]))}}),[["__scopeId","data-v-c62707eb"]])),mz={class:"file_wrapper"},gz={key:0,class:"header"},yz={class:"file_main"},_z={class:"file"},bz={class:"file_name"},wz=Pt(zt(o.defineComponent({name:"zh-file-wrapper",__name:"FileWrapper",props:{downLoadUrl:{type:String,default:""},canPreview:{type:Boolean,default:!1},fileName:{type:String,default:Ut},canDelete:{type:Boolean,default:!1},title:{type:String,default:""},fileId:{type:Number,default:0}},emits:["deleteFile"],setup(t,{emit:e}){const n=t,r=e,i=()=>{n.canDelete&&r("deleteFile",n.fileId)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",mz,[n.title?(o.openBlock(),o.createElementBlock("div",gz,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",yz,[o.createElementVNode("div",_z,[a[0]||(a[0]=o.createElementVNode("div",{class:"file_type mr-12"},[o.createElementVNode("i",{class:"iconfont icon-xiangmuguanli"})],-1)),o.createElementVNode("div",bz,o.toDisplayString(n.fileName),1)]),o.createVNode(o.unref(la),{size:"small",class:"btn",link:"",style:{width:"80px"},href:n.downLoadUrl,underline:!1,download:"download"},{default:o.withCtx(()=>a[1]||(a[1]=[o.createTextVNode(" 查看/下载 ")])),_:1},8,["href"]),t.canDelete?(o.openBlock(),o.createElementBlock("i",{key:0,class:"iconfont icon-close close",onClick:i})):o.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-d98ece31"]])),oE=o.defineComponent({name:"Grid",__name:"Grid",props:{cols:{default:()=>({xs:1,sm:2,md:2,lg:4,xl:4})},collapsed:{type:Boolean,default:!1},collapsedRows:{default:1},gap:{default:16}},setup(t,{expose:e}){const n=t;o.onBeforeMount(()=>n.collapsed&&c()),o.onMounted(()=>{r({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",r)}),o.onActivated(()=>{r({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",r)}),o.onUnmounted(()=>{window.removeEventListener("resize",r)}),o.onDeactivated(()=>{window.removeEventListener("resize",r)});const r=m=>{let p=m.target.innerWidth;switch(!!p){case p<768:i.value="xs";break;case(p>=768&&p<992):i.value="sm";break;case(p>=992&&p<1200):i.value="md";break;case(p>=1200&&p<1920):i.value="lg";break;case p>=1920:i.value="xl";break}};o.provide("gap",Array.isArray(n.gap)?n.gap[0]:n.gap);let i=o.ref("xl");o.provide("breakPoint",i);const s=o.ref(-1);o.provide("shouldHiddenIndex",s);const a=o.computed(()=>typeof n.cols=="object"?n.cols[i.value]??n.cols:n.cols);o.provide("cols",a);const l=o.useSlots().default(),c=()=>{var g,b,E,C;let m=[],p=null;l.forEach(_=>{var w;typeof _.type=="object"&&_.type.name==="GridItem"&&((w=_.props)==null?void 0:w.suffix)!==void 0&&(p=_),typeof _.type=="symbol"&&Array.isArray(_.children)&&m.push(..._.children)});let y=0;p&&(y=(((g=p.props[i.value])==null?void 0:g.span)??((b=p.props)==null?void 0:b.span)??1)+(((E=p.props[i.value])==null?void 0:E.offset)??((C=p.props)==null?void 0:C.offset)??0));try{let _=!1;m.reduce((w=0,S,k)=>{var x,v,T,M;if(w+=(((x=S.props[i.value])==null?void 0:x.span)??((v=S.props)==null?void 0:v.span)??1)+(((T=S.props[i.value])==null?void 0:T.offset)??((M=S.props)==null?void 0:M.offset)??0),Number(w)>n.collapsedRows*a.value-y)throw s.value=k,_=!0,"find it";return w},0),_||(s.value=-1)}catch{}};o.watch(()=>i.value,()=>{n.collapsed&&c()}),o.watch(()=>n.collapsed,m=>{if(m)return c();s.value=-1});const d=o.computed(()=>typeof n.gap=="number"?`${n.gap}px`:Array.isArray(n.gap)?`${n.gap[1]}px ${n.gap[0]}px`:"unset"),u=o.computed(()=>({display:"grid",gridGap:d.value,gridTemplateColumns:`repeat(${a.value}, minmax(0, 1fr))`})),f=o.inject("clearGridItemData",()=>{}),h=o.ref(!1);return o.onMounted(()=>{h.value=!0}),o.onBeforeUpdate(()=>{h.value=!1,f()}),o.onUpdated(()=>{h.value=!0}),o.provide("isRegistrationComplete",h),e({breakPoint:i}),(m,p)=>(o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(u.value)},[o.renderSlot(m.$slots,"default")],4))}}),Cz=o.defineComponent({name:"GridItem",__name:"GridItem",props:{offset:{default:0},span:{default:1},suffix:{type:Boolean,default:!1},xs:{default:void 0},sm:{default:void 0},md:{default:void 0},lg:{default:void 0},xl:{default:void 0},label:{}},setup(t){const e=t,n=o.useAttrs(),r=o.ref(!0),i=o.inject("breakPoint",o.ref("xl")),s=o.inject("shouldHiddenIndex",o.ref(-1));o.watch(()=>[s.value,i.value],E=>{n.index&&(r.value=!(E[0]!==-1&&parseInt(n.index)>=Number(E[0])))},{immediate:!0});const a=o.inject("gap",0),l=o.inject("cols",o.ref(4)),c=o.computed(()=>{var _,w;let E=((_=e[i.value])==null?void 0:_.span)??e.span,C=((w=e[i.value])==null?void 0:w.offset)??e.offset;return e.suffix?{gridColumnStart:l.value-E-C+1,gridColumnEnd:`span ${E+C}`,marginLeft:C!==0?`calc(((100% + ${a}px) / ${E+C}) * ${C})`:"unset"}:{gridColumn:`span ${E+C>l.value?l.value:E+C}/span ${E+C>l.value?l.value:E+C}`,marginLeft:C!==0?`calc(((100% + ${a}px) / ${E+C}) * ${C})`:"unset"}}),d=o.inject("gridItemData",o.reactive({})),u=o.inject("isMultiGrid",o.ref(!1)),f=o.ref(null),h=o.ref(0),m=o.ref(0),p=o.inject("registerGridItem",null),y=o.inject("getColumnData",null),g=o.inject("isRegistrationComplete",o.ref(!1)),b=()=>{if(f.value&&p){const E=f.value.parentElement;if(E){const C=f.value.offsetLeft,_=E.offsetWidth/l.value;m.value=Math.floor(C/_)+1,_&&p(m.value,e.label||"")}}};return o.watchEffect(()=>{if(u.value&&g.value&&e.label&&f.value&&(b(),y)){const E=y(m.value);h.value=E.maxWidth||0}}),o.watch(d,()=>{if(y){const E=y(m.value);E.maxWidth!==h.value&&(h.value=E.maxWidth)}}),(E,C)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(c.value),ref_key:"gridItemRef",ref:f},[o.renderSlot(E.$slots,"default",{maxLabelWidthInCol:h.value,columnIndex:m.value})],4)),[[o.vShow,r.value]])}}),Ez=12;function Om(t,e,n,r){return t.reduce((i,s)=>{if(i)return i;if(s[n]===e)return s;if(s[r])return Om(s[r],e,n,r)},null)}function Sz(t,e,n){const r=Ch(n)?Ut:n,i=rr(t,e);return zr(i)||i===""?r:i}const iE=Sz;function Un(t){const e=t.split(".");return e.length==1?t:e[e.length-1]}function sE(t,e,n,r){const i=(n==null?void 0:n.value)??"value",s=(n==null?void 0:n.label)??"label",a=(n==null?void 0:n.children)??"children";let l={};return Array.isArray(e)&&(l=Om(e,t,i,a)),r=="tag"?l!=null&&l.tagType?l.tagType:"":l?l[s]:Ut}function kz(t,e,n){const r="value",i="children";let s={};return Array.isArray(e)&&(s=Om(e,t,r,i)),s}function vz(t){return un(t)?t.length?t.join(" / "):Ut:t??Ut}function ku(t,e){return e.includes(".")?(e.split(".").forEach(n=>t=t[n]??Ut),t):t[e]??Ut}const ws=(t,e)=>{const n=e||Ez,i=document.createElement("canvas").getContext("2d");return i.font=`${n}px Microsoft YaHei`,i.measureText(t).width},xz=t=>{const e=t||"zhihao-col-setting",n=()=>{const l=localStorage.getItem(e);return l?JSON.parse(l):{}},r=l=>{localStorage.setItem(e,JSON.stringify(l))};return{getMap:n,setMap:r,getColumnCache:l=>n()[l]||[],setColumnCache:(l,c)=>{const d=n();d[l]=c,r(d)},removeColumnCache:l=>{const c=n();delete c[l],r(c)}}},Tz=`<g clip-path="url(#clip0_94_5585)">
59
+ be.version="2.30.1",QV(Nt),be.fn=pe,be.min=z6,be.max=W6,be.now=Y6,be.utc=bo,be.unix=y8,be.months=b8,be.isDate=Ul,be.locale=Li,be.invalid=ru,be.duration=eo,be.isMoment=Jr,be.weekdays=C8,be.parseZone=_8,be.localeData=Zo,be.isDuration=yu,be.monthsShort=w8,be.weekdaysMin=S8,be.defineLocale=bm,be.updateLocale=_6,be.locales=b6,be.weekdaysShort=E8,be.normalizeUnits=xr,be.relativeTimeRounding=Z8,be.relativeTimeThreshold=q8,be.calendarFormat=p5,be.prototype=pe,be.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 Ut="--",eE="YYYY-MM-DDTHH:mm:ss",Q8="YYYY-MM-DDT23:59:59",ez="YYYY-MM-DD",tz="https://static.zhihaoscm.cn/",Nm=(t,e=ez)=>t?be(t).format(e).replace("Invalid date",Ut):Ut,nz=t=>typeof t=="number"?!0:typeof t=="string"?!isNaN(parseFloat(t)):!1;function rz(t){const e=["角","分"],n=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],r=[["元","万","亿"],["","拾","佰","仟"]],i=t<0?"负":"";t=Math.abs(t);let s="";for(let a=0;a<e.length;a++)s+=(n[Math.floor(t*10*Math.pow(10,a))%10]+e[a]).replace(/零./,"");s=s||"整",t=Math.floor(t);for(let a=0;a<r[0].length&&t>0;a++){let l="";for(let c=0;c<r[1].length&&t>0;c++)l=n[t%10]+r[1][c]+l,t=Math.floor(t/10);s=l.replace(/(零.)*零$/,"").replace(/^$/,"零")+r[0][a]+s}return i+s.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")}const tE=Pt(o.defineComponent({name:"zh-date-picker",__name:"DatePicker",props:{style:{},class:{},modelValue:{},disabledDateAfterToday:{type:Boolean}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,r=e,i=c=>Array.isArray(c)?[Nm(c[0],eE),Nm(c[1],Q8)]:c&&Nm(c,eE),s=c=>{const d=i(c);r("update:modelValue",d)},a=c=>{const d=i(c);r("change",d)},l=c=>{const d=new Date().getTime();return new Date(c).getTime()>d};return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([n.class,"zh-date-picker"])},[o.createVNode(o.unref(c4),o.mergeProps({"disabled-date":n.disabledDateAfterToday?l:void 0},c.$attrs,{style:n.style,"model-value":n.modelValue,"onUpdate:modelValue":s,onChange:a}),null,16,["disabled-date","style","model-value"])],2))}})),oz={class:"info-pair"},iz={class:"info-pair--title"},sz={key:0,class:"info-pair--title--tip"},az=Pt(o.defineComponent({name:"zh-detail-sub-title",__name:"DetailSubTitle",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createElementBlock("div",oz,[o.createElementVNode("div",iz,[o.createTextVNode(o.toDisplayString(e.title)+" ",1),n.tip?(o.openBlock(),o.createElementBlock("div",sz,o.toDisplayString(n.tip),1)):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:o.normalizeClass(["info-pair--value",{ellipsis:n.ellipsis}])},[o.renderSlot(n.$slots,"value",{},()=>[o.createTextVNode(o.toDisplayString(e.value||o.unref(Ut)),1)])],2)]))}})),lz={class:"title"},cz={key:0,class:"sub-title"},dz={class:"zh-dialog__footer"},nE=o.defineComponent({name:"ZhDialog",inheritAttrs:!1,__name:"Dialog",props:o.mergeModels({title:{},subTitle:{},cancelButtonText:{default:"取消"},confirmButtonText:{default:"确定"},confirmButtonDisabled:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1},size:{default:"middle"},width:{},appendToBody:{type:Boolean},appendTo:{},beforeClose:{},destroyOnClose:{type:Boolean},closeOnPressEscape:{type:Boolean},lockScroll:{type:Boolean},modal:{type:Boolean},openDelay:{},closeDelay:{},top:{},modelValue:{type:Boolean},modalClass:{},zIndex:{},trapFocus:{type:Boolean},headerAriaLevel:{},center:{type:Boolean},alignCenter:{type:Boolean},closeIcon:{},draggable:{type:Boolean},overflow:{type:Boolean},fullscreen:{type:Boolean},showClose:{type:Boolean},ariaLevel:{}},{modelValue:{type:Boolean,default:!0},modelModifiers:{}}),emits:o.mergeModels(["submit","close"],["update:modelValue"]),setup(t,{emit:e}){const n=t,r=o.useModel(t,"modelValue"),i=e,s=()=>{i("close")},a=()=>{i("submit")},l=()=>{i("close")},c={small:"400px",middle:"600px",large:"800px",extraLarge:"920px"},d=o.computed(()=>n.width?n.width:c[n.size]);return(u,f)=>(o.openBlock(),o.createBlock(o.unref(k4),o.mergeProps({modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=h=>r.value=h),class:"zh-dialog"},u.$attrs,{width:d.value,"close-on-click-modal":u.closeOnClickModal,onClose:l}),{header:o.withCtx(()=>[o.renderSlot(u.$slots,"header",{},()=>[o.createElementVNode("div",lz,o.toDisplayString(u.title),1),u.subTitle?(o.openBlock(),o.createElementBlock("div",cz,o.toDisplayString(u.subTitle),1)):o.createCommentVNode("",!0)])]),footer:o.withCtx(()=>[o.renderSlot(u.$slots,"footer",{},()=>[o.createElementVNode("div",dz,[o.createVNode(fa,{onClick:s},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(u.cancelButtonText),1)]),_:1}),o.createVNode(fa,{type:"primary",disabled:u.confirmButtonDisabled,onClick:a},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(u.confirmButtonText),1)]),_:1},8,["disabled"])])])]),default:o.withCtx(()=>[o.renderSlot(u.$slots,"default")]),_:3},16,["modelValue","width","close-on-click-modal"]))}}),rE=Pt(nE),uz={class:"info-pair"},fz={class:"info-pair--title"},hz={key:0,class:"info-pair--title--tip"},pz=Pt(zt(o.defineComponent({name:"zh-edit-info-pair",__name:"EditInfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createElementBlock("div",uz,[o.createElementVNode("div",fz,[o.createTextVNode(o.toDisplayString(e.title)+" ",1),n.tip?(o.openBlock(),o.createElementBlock("div",hz,o.toDisplayString(n.tip),1)):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:o.normalizeClass(["info-pair--value",{ellipsis:n.ellipsis}])},[o.renderSlot(n.$slots,"value",{},()=>[o.createTextVNode(o.toDisplayString(e.value||o.unref(Ut)),1)],!0)],2)]))}}),[["__scopeId","data-v-e6b04280"]])),mz={class:"file_wrapper"},gz={key:0,class:"header"},yz={class:"file_main"},_z={class:"file"},bz={class:"file_name"},wz=Pt(zt(o.defineComponent({name:"zh-file-wrapper",__name:"FileWrapper",props:{downLoadUrl:{type:String,default:""},canPreview:{type:Boolean,default:!1},fileName:{type:String,default:Ut},canDelete:{type:Boolean,default:!1},title:{type:String,default:""},fileId:{type:Number,default:0}},emits:["deleteFile"],setup(t,{emit:e}){const n=t,r=e,i=()=>{n.canDelete&&r("deleteFile",n.fileId)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",mz,[n.title?(o.openBlock(),o.createElementBlock("div",gz,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",yz,[o.createElementVNode("div",_z,[a[0]||(a[0]=o.createElementVNode("div",{class:"file_type mr-12"},[o.createElementVNode("i",{class:"iconfont icon-xiangmuguanli"})],-1)),o.createElementVNode("div",bz,o.toDisplayString(n.fileName),1)]),o.createVNode(o.unref(la),{size:"small",class:"btn",link:"",style:{width:"80px"},href:n.downLoadUrl,underline:!1,download:"download"},{default:o.withCtx(()=>a[1]||(a[1]=[o.createTextVNode(" 查看/下载 ")])),_:1},8,["href"]),t.canDelete?(o.openBlock(),o.createElementBlock("i",{key:0,class:"iconfont icon-close close",onClick:i})):o.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-f39312c3"]])),oE=o.defineComponent({name:"Grid",__name:"Grid",props:{cols:{default:()=>({xs:1,sm:2,md:2,lg:4,xl:4})},collapsed:{type:Boolean,default:!1},collapsedRows:{default:1},gap:{default:16}},setup(t,{expose:e}){const n=t;o.onBeforeMount(()=>n.collapsed&&c()),o.onMounted(()=>{r({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",r)}),o.onActivated(()=>{r({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",r)}),o.onUnmounted(()=>{window.removeEventListener("resize",r)}),o.onDeactivated(()=>{window.removeEventListener("resize",r)});const r=m=>{let p=m.target.innerWidth;switch(!!p){case p<768:i.value="xs";break;case(p>=768&&p<992):i.value="sm";break;case(p>=992&&p<1200):i.value="md";break;case(p>=1200&&p<1920):i.value="lg";break;case p>=1920:i.value="xl";break}};o.provide("gap",Array.isArray(n.gap)?n.gap[0]:n.gap);let i=o.ref("xl");o.provide("breakPoint",i);const s=o.ref(-1);o.provide("shouldHiddenIndex",s);const a=o.computed(()=>typeof n.cols=="object"?n.cols[i.value]??n.cols:n.cols);o.provide("cols",a);const l=o.useSlots().default(),c=()=>{var g,b,E,C;let m=[],p=null;l.forEach(_=>{var w;typeof _.type=="object"&&_.type.name==="GridItem"&&((w=_.props)==null?void 0:w.suffix)!==void 0&&(p=_),typeof _.type=="symbol"&&Array.isArray(_.children)&&m.push(..._.children)});let y=0;p&&(y=(((g=p.props[i.value])==null?void 0:g.span)??((b=p.props)==null?void 0:b.span)??1)+(((E=p.props[i.value])==null?void 0:E.offset)??((C=p.props)==null?void 0:C.offset)??0));try{let _=!1;m.reduce((w=0,S,k)=>{var x,v,T,M;if(w+=(((x=S.props[i.value])==null?void 0:x.span)??((v=S.props)==null?void 0:v.span)??1)+(((T=S.props[i.value])==null?void 0:T.offset)??((M=S.props)==null?void 0:M.offset)??0),Number(w)>n.collapsedRows*a.value-y)throw s.value=k,_=!0,"find it";return w},0),_||(s.value=-1)}catch{}};o.watch(()=>i.value,()=>{n.collapsed&&c()}),o.watch(()=>n.collapsed,m=>{if(m)return c();s.value=-1});const d=o.computed(()=>typeof n.gap=="number"?`${n.gap}px`:Array.isArray(n.gap)?`${n.gap[1]}px ${n.gap[0]}px`:"unset"),u=o.computed(()=>({display:"grid",gridGap:d.value,gridTemplateColumns:`repeat(${a.value}, minmax(0, 1fr))`})),f=o.inject("clearGridItemData",()=>{}),h=o.ref(!1);return o.onMounted(()=>{h.value=!0}),o.onBeforeUpdate(()=>{h.value=!1,f()}),o.onUpdated(()=>{h.value=!0}),o.provide("isRegistrationComplete",h),e({breakPoint:i}),(m,p)=>(o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(u.value)},[o.renderSlot(m.$slots,"default")],4))}}),Cz=o.defineComponent({name:"GridItem",__name:"GridItem",props:{offset:{default:0},span:{default:1},suffix:{type:Boolean,default:!1},xs:{default:void 0},sm:{default:void 0},md:{default:void 0},lg:{default:void 0},xl:{default:void 0},label:{}},setup(t){const e=t,n=o.useAttrs(),r=o.ref(!0),i=o.inject("breakPoint",o.ref("xl")),s=o.inject("shouldHiddenIndex",o.ref(-1));o.watch(()=>[s.value,i.value],E=>{n.index&&(r.value=!(E[0]!==-1&&parseInt(n.index)>=Number(E[0])))},{immediate:!0});const a=o.inject("gap",0),l=o.inject("cols",o.ref(4)),c=o.computed(()=>{var _,w;let E=((_=e[i.value])==null?void 0:_.span)??e.span,C=((w=e[i.value])==null?void 0:w.offset)??e.offset;return e.suffix?{gridColumnStart:l.value-E-C+1,gridColumnEnd:`span ${E+C}`,marginLeft:C!==0?`calc(((100% + ${a}px) / ${E+C}) * ${C})`:"unset"}:{gridColumn:`span ${E+C>l.value?l.value:E+C}/span ${E+C>l.value?l.value:E+C}`,marginLeft:C!==0?`calc(((100% + ${a}px) / ${E+C}) * ${C})`:"unset"}}),d=o.inject("gridItemData",o.reactive({})),u=o.inject("isMultiGrid",o.ref(!1)),f=o.ref(null),h=o.ref(0),m=o.ref(0),p=o.inject("registerGridItem",null),y=o.inject("getColumnData",null),g=o.inject("isRegistrationComplete",o.ref(!1)),b=()=>{if(f.value&&p){const E=f.value.parentElement;if(E){const C=f.value.offsetLeft,_=E.offsetWidth/l.value;m.value=Math.floor(C/_)+1,_&&p(m.value,e.label||"")}}};return o.watchEffect(()=>{if(u.value&&g.value&&e.label&&f.value&&(b(),y)){const E=y(m.value);h.value=E.maxWidth||0}}),o.watch(d,()=>{if(y){const E=y(m.value);E.maxWidth!==h.value&&(h.value=E.maxWidth)}}),(E,C)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(c.value),ref_key:"gridItemRef",ref:f},[o.renderSlot(E.$slots,"default",{maxLabelWidthInCol:h.value,columnIndex:m.value})],4)),[[o.vShow,r.value]])}}),Ez=12;function Om(t,e,n,r){return t.reduce((i,s)=>{if(i)return i;if(s[n]===e)return s;if(s[r])return Om(s[r],e,n,r)},null)}function Sz(t,e,n){const r=Ch(n)?Ut:n,i=rr(t,e);return zr(i)||i===""?r:i}const iE=Sz;function Un(t){const e=t.split(".");return e.length==1?t:e[e.length-1]}function sE(t,e,n,r){const i=(n==null?void 0:n.value)??"value",s=(n==null?void 0:n.label)??"label",a=(n==null?void 0:n.children)??"children";let l={};return Array.isArray(e)&&(l=Om(e,t,i,a)),r=="tag"?l!=null&&l.tagType?l.tagType:"":l?l[s]:Ut}function kz(t,e,n){const r="value",i="children";let s={};return Array.isArray(e)&&(s=Om(e,t,r,i)),s}function vz(t){return un(t)?t.length?t.join(" / "):Ut:t??Ut}function ku(t,e){return e.includes(".")?(e.split(".").forEach(n=>t=t[n]??Ut),t):t[e]??Ut}const ws=(t,e)=>{const n=e||Ez,i=document.createElement("canvas").getContext("2d");return i.font=`${n}px Microsoft YaHei`,i.measureText(t).width},xz=t=>{const e=t||"zhihao-col-setting",n=()=>{const l=localStorage.getItem(e);return l?JSON.parse(l):{}},r=l=>{localStorage.setItem(e,JSON.stringify(l))};return{getMap:n,setMap:r,getColumnCache:l=>n()[l]||[],setColumnCache:(l,c)=>{const d=n();d[l]=c,r(d)},removeColumnCache:l=>{const c=n();delete c[l],r(c)}}},Tz=`<g clip-path="url(#clip0_94_5585)">
60
60
  <path d="M9.48792 55.1851C11.0631 55.1851 12.3401 53.9081 12.3401 52.3329C12.3401 50.7577 11.0631 49.4807 9.48792 49.4807C7.91271 49.4807 6.63574 50.7577 6.63574 52.3329C6.63574 53.9081 7.91271 55.1851 9.48792 55.1851Z" fill="#9CBEFC"/>
61
61
  <path d="M2.44202 35.4087C4.01723 35.4087 5.2942 34.1317 5.2942 32.5565C5.2942 30.9813 4.01723 29.7043 2.44202 29.7043C0.866808 29.7043 -0.410156 30.9813 -0.410156 32.5565C-0.410156 34.1317 0.866808 35.4087 2.44202 35.4087Z" fill="#9CBEFC"/>
62
62
  <path d="M9.48799 16.7354C11.859 16.7354 13.7812 14.8133 13.7812 12.4422C13.7812 10.0712 11.859 8.14907 9.48799 8.14907C7.11694 8.14907 5.19482 10.0712 5.19482 12.4422C5.19482 14.8133 7.11694 16.7354 9.48799 16.7354Z" fill="#9CBEFC"/>
@@ -70,7 +70,7 @@ be.version="2.30.1",QV(Nt),be.fn=pe,be.min=z6,be.max=W6,be.now=Y6,be.utc=bo,be.u
70
70
  <clipPath id="clip0_94_5585">
71
71
  <rect width="64" height="64" fill="white"/>
72
72
  </clipPath>
73
- </defs>`,Mz=()=>{let t=o.reactive({});return{gridItemData:t,registerGridItem:(i,s)=>{var l;if(!s)return;t[i]||(t[i]={labels:[],maxLength:0,maxWidth:0}),(l=t[i])==null||l.labels.push(s),t[i].maxLength=Math.max(s.length,t[i].maxLength);const a=Math.ceil(ws(s,14));t[i].maxWidth=Math.max(a||0,t[i].maxWidth)},getColumnData:i=>t[i]||{},clearGridItemData:()=>{t=o.reactive({})}}},Rz={class:"multi-grid"},Pz=o.defineComponent({name:"MultiGrid",__name:"MultiGrid",setup(t){const{getColumnData:e,registerGridItem:n,clearGridItemData:r,gridItemData:i}=Mz();return o.provide("registerGridItem",n),o.provide("getColumnData",e),o.provide("clearGridItemData",r),o.provide("gridItemData",i),o.provide("isMultiGrid",o.ref(!0)),(s,a)=>(o.openBlock(),o.createElementBlock("div",Rz,[o.renderSlot(s.$slots,"default")]))}}),aE=Pt(oE),Lm=Pt(Cz),lE=Pt(Pz),Dz={class:"info-pair"},Iz={class:"info-pair--title"},Nz={key:0,class:"info-pair--title--tip"},cE=Pt(zt(o.defineComponent({name:"zh-info-pair",__name:"InfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createElementBlock("div",Dz,[o.createElementVNode("div",Iz,[o.createTextVNode(o.toDisplayString(e.title)+" ",1),n.tip?(o.openBlock(),o.createElementBlock("div",Nz,o.toDisplayString(n.tip),1)):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:o.normalizeClass(["info-pair--value",{ellipsis:n.ellipsis}])},[o.renderSlot(n.$slots,"value",{},()=>[o.createTextVNode(o.toDisplayString(e.value||o.unref(Ut)),1)],!0)],2)]))}}),[["__scopeId","data-v-5a1b0655"]])),dE=Pt(zt(o.defineComponent({name:"zh-input",__name:"Input",props:o.mergeModels({style:{},class:{default:"zh-default-input"},size:{default:"default"},className:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.useAttrs(),n=t,r=o.useModel(t,"modelValue"),i=()=>{(e.max||Number(e.max)===0)&&Number(r.value)>=e.max&&(r.value=e.max.toString()),(e.min||Number(e.min)===0)&&Number(r.value)<=e.min&&(r.value=e.min.toString())};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(n.class)},[o.createVNode(o.unref(Dn),o.mergeProps(s.$attrs,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value=l),size:s.size,onBlur:i}),o.createSlots({_:2},[o.renderList(s.$slots,(l,c)=>({name:l,fn:o.withCtx(d=>[o.renderSlot(s.$slots,l,o.normalizeProps(o.guardReactiveProps(d)),void 0,!0)])}))]),1040,["modelValue","size"])],2))}}),[["__scopeId","data-v-ce1df798"]])),uE=zt(o.defineComponent({name:"zh-input-number",__name:"InputNumber",props:{style:{},class:{},modelValue:{}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,r=e,i=o.useAttrs(),s=(u,f=0,h=0,m=0)=>{let p=(u==null?void 0:u.toString())??"",y,g,b;return h===0?(p=p.replace(/[^\d]/g,""),p=p.replace(/^0\d+/g,"0"),f!==0&&(p=p.slice(0,f))):(p=p.replace(/[^\-\d.]/g,""),p=p.replace(/^[^\-\d]/g,""),p=p.replace(/\.{2}/g,"."),p=p.replace(/^0(\d+)/g,"$1"),y=p.split(".")||[],y.length>1?(f===0?g=y[0]:g=y[0].slice(0,f),b=y[1].slice(0,h),p=g+"."+b):f!==0&&(p=p.slice(0,f))),m!==0&&(p=p.slice(0,m)),p},a=()=>{n.modelValue===""||n.modelValue===void 0||(i.max&&Number(n.modelValue)>i.max&&r("update:modelValue",i.max.toString()),i.min&&Number(n.modelValue)<i.min&&r("update:modelValue",i.min.toString()))},l=u=>u?s(u,i.integer,i.precision,i.maxLength):"",c=u=>{/^\d+\.0*$/.test((u==null?void 0:u.toString())||"")||u===""?r("update:modelValue",l(u)):r("update:modelValue",Number(l(u)))},d=u=>{r("change",l(u))};return(u,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["input-number",n.class]),style:o.normalizeStyle(n.style)},[o.createVNode(o.unref(Dn),o.mergeProps(u.$attrs,{"model-value":n.modelValue,"onUpdate:modelValue":c,onBlur:a,style:{width:"100%"},formatter:l,onChange:d}),o.createSlots({_:2},[o.renderList(Object.keys(u.$slots),h=>({name:h,fn:o.withCtx(m=>[o.renderSlot(u.$slots,h,o.normalizeProps(o.guardReactiveProps(m)),void 0,!0)])}))]),1040,["model-value"])],6))}}),[["__scopeId","data-v-17c3b6e2"]]),fE=Pt(uE),Oz={class:"loading-box"},hE=Pt(zt(o.defineComponent({name:"zh-loading",__name:"Loading",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Oz,n[0]||(n[0]=[o.createElementVNode("div",{class:"loading-wrap"},[o.createElementVNode("span",{class:"dot dot-spin"},[o.createElementVNode("i"),o.createElementVNode("i"),o.createElementVNode("i"),o.createElementVNode("i")])],-1)])))}}),[["__scopeId","data-v-d30f17c3"]])),Am={type:"",showCancelButton:!0,showConfirmButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",closeOnClickModal:!1,closeOnPressEscape:!1,showClose:!0,draggable:!1,center:!1,roundButton:!1},vu={confirm(t,e,n={}){return Qp.confirm(t,e,{...Am,customClass:"zh-message-box zh-message-confirm",...n})},alert(t,e,n={}){return Qp.alert(t,e,{...Am,...n,showCancelButton:!1,customClass:"zh-message-box zh-message-alert"})},prompt(t,e,n={}){return Qp.prompt(t,e,{...Am,...n,customClass:"zh-message-box zh-message-prompt"})}},pE=vu.confirm,mE=vu.alert,gE=vu.prompt,yE=Pt(vu),_E=Pt(zt(o.defineComponent({name:"zh-money-input",__name:"MoneyInput",props:o.mergeModels({style:{},class:{},showTooltip:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=o.useModel(t,"modelValue"),r=o.computed(()=>{if(n.value)return nz(n.value)&&Number(n.value)>=1e3?rz(Number(n.value)):""}),i=o.ref(!1);return(s,a)=>(o.openBlock(),o.createBlock(o.unref(ar),{effect:"dark",content:r.value,placement:"top",visible:s.showTooltip&&i.value&&!!r.value},{default:o.withCtx(()=>[o.createVNode(uE,o.mergeProps(s.$attrs,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),style:e.style,class:e.class,onFocus:a[1]||(a[1]=()=>i.value=!0),onBlur:a[2]||(a[2]=()=>i.value=!1)}),o.createSlots({_:2},[o.renderList(Object.keys(s.$slots),l=>({name:l,fn:o.withCtx(c=>[o.renderSlot(s.$slots,l,o.normalizeProps(o.guardReactiveProps(c)),void 0,!0)])}))]),1040,["modelValue","style","class"])]),_:3},8,["content","visible"]))}}),[["__scopeId","data-v-cfd94d9e"]])),Lz={class:"page-head"},Az={class:"left-wrap"},Fz={class:"page-name"},Bz={class:"value"},Vz={class:"other-inform"},$z={class:"label"},zz={class:"value mg-r-24"},Wz={class:"status"},Yz=Pt(zt(o.defineComponent({name:"zh-page-head-panel",__name:"PageHeadPanel",props:{dataSource:{}},setup(t){const e=t,{name:n,no:r,status:i,extendLabel:s,extendValue:a}=o.toRefs(e.dataSource);return(l,c)=>(o.openBlock(),o.createElementBlock("div",Lz,[o.createElementVNode("div",Az,[o.createElementVNode("span",Fz,o.toDisplayString(o.unref(n)),1),o.createElementVNode("div",null,[c[0]||(c[0]=o.createElementVNode("span",{class:"label mg-l-16"},"编号",-1)),o.createElementVNode("span",Bz,o.toDisplayString(o.unref(r)),1)])]),o.createElementVNode("div",Vz,[o.renderSlot(l.$slots,"extend",{},()=>[o.createElementVNode("span",$z,o.toDisplayString(o.unref(s)),1),o.createElementVNode("span",zz,o.toDisplayString(o.unref(a)),1)],!0),o.createElementVNode("span",Wz,o.toDisplayString(o.unref(i)),1)])]))}}),[["__scopeId","data-v-9f56969d"]])),bE=Pt(zt(o.defineComponent({name:"zh-tool-tips",__name:"ToolTips",props:{placement:{default:"top"},content:{}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createBlock(o.unref(ar),{class:"box-item",effect:"dark",content:e.content,placement:e.placement},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},()=>[r[0]||(r[0]=o.createElementVNode("i",{class:"iconfont icon-Frame2"},null,-1))],!0)]),_:3},8,["content","placement"]))}}),[["__scopeId","data-v-e5a0ae09"]])),wE=Pt(o.defineComponent({name:"ZhBaseInfo",__name:"BaseInfo",props:{contentWidth:{default:void 0},labelWidth:{default:"70px"},infoDirection:{default:"horizontal"},cols:{default:4},gap:{default:16}},setup(t){const e=t,n=o.ref(),r=o.ref(),i=o.ref();o.provide("infoLabelWidth",n),o.provide("infoContentWidth",r),o.provide("infoDirection",i);function s(){n.value=e.labelWidth}function a(){r.value=e.contentWidth}function l(){i.value=e.infoDirection}return o.watch(()=>e.contentWidth,()=>a(),{immediate:!0}),o.watch(()=>e.labelWidth,()=>s(),{immediate:!0}),o.watch(()=>e.infoDirection,()=>l(),{immediate:!0}),(c,d)=>(o.openBlock(),o.createBlock(oE,{cols:c.cols,gap:c.gap},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default")]),_:3},8,["cols","gap"]))}})),Gz={class:"common-card"},jz={class:"detail-header"},Hz={class:"detail-header--left"},Uz={class:"title common-title"},Kz={class:"info-pair--label"},Xz={class:"info-pair--value"},Zz={key:1,class:"detail-header--right"},qz={class:"info-pair--label"},Jz={class:"info-pair--value"},CE=Pt(zt(o.defineComponent({name:"ZhDetailHeader",__name:"DetailHeader",props:{title:{},leftInfos:{},rightInfos:{},stateMeta:{},stateDesc:{}},setup(t){const e=o.useSlots(),n=t;return(r,i)=>{var s,a;return o.openBlock(),o.createElementBlock("div",Gz,[o.createElementVNode("div",null,[o.renderSlot(r.$slots,"menu",{},void 0,!0)]),o.createElementVNode("div",jz,[o.createElementVNode("div",Hz,[o.createElementVNode("div",Uz,o.toDisplayString(n.title),1),o.renderSlot(r.$slots,"extra-info",{},void 0,!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.leftInfos,l=>(o.openBlock(),o.createElementBlock("div",{class:"info-pair",key:l.value},[o.createElementVNode("div",Kz,o.toDisplayString(l.label),1),o.createElementVNode("div",Xz,o.toDisplayString(l.value??o.unref(Ut)),1)]))),128))]),o.renderSlot(r.$slots,"default",{},void 0,!0),o.unref(e)["right-infos"]?o.renderSlot(r.$slots,"right-infos",{key:0},void 0,!0):(o.openBlock(),o.createElementBlock("div",Zz,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rightInfos,l=>(o.openBlock(),o.createElementBlock("div",{class:"info-pair",key:l.value},[o.createElementVNode("div",qz,o.toDisplayString(l.label),1),o.createElementVNode("div",Jz,o.toDisplayString(l.value??o.unref(Ut)),1)]))),128)),r.stateDesc||r.stateMeta?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["state common-title",(s=r.stateMeta)==null?void 0:s.state])},o.toDisplayString(r.stateDesc||((a=r.stateMeta)==null?void 0:a.intro)),3)):o.createCommentVNode("",!0)]))])])}}}),[["__scopeId","data-v-8b185816"]]));var to=(t=>(t.AUTOCOMPLETE="autocomplete",t.FORMAT="format",t.TEXT="text",t.INDEX="index",t.SELECTION="selection",t))(to||{});const Qz={key:0},e9={key:1,class:"col-edit-header"},t9=["onClick"],n9={key:0},r9={class:"header-operation-container"},o9={class:"operation-container"},i9=["onClick"],EE="$ZH_DIV$",SE=Pt(zt(o.defineComponent({name:"zh-diy-data-table",__name:"DiyDataTable",props:o.mergeModels({isEdit:{type:Boolean,default:!1},maxRowLength:{default:50},maxColLength:{default:10},defaultMinWidth:{default:120},beforeAddRow:{},addRowText:{default:"增行"},addColumnText:{default:"增列"},customAddRow:{type:Boolean,default:!0},customAddColumn:{type:Boolean,default:!0},operationOption:{},canOnlyEditNewlyColumnHeader:{type:Boolean,default:!1},rowKey:{default:"id"}},{rawData:{required:!0},rawDataModifiers:{}}),emits:["update:rawData"],setup(t,{expose:e}){const n=t,r=o.useModel(t,"rawData"),i=o.ref([]),s=o.computed(()=>n.rowKey||"id");let a=0;const l=o.ref({isShow:!0,width:150,customAddRow:!0,addRowText:"增行",customAddColumn:!0,addColumnText:"增列"}),c=o.computed(()=>n.operationOption?{...l.value,...n.operationOption||{}}:{...l.value,customAddRow:n.customAddRow!==void 0?n.customAddRow:l.value.customAddRow,addRowText:n.addRowText!==void 0?n.addRowText:l.value.addRowText,customAddColumn:n.customAddColumn!==void 0?n.customAddColumn:l.value.customAddColumn,addColumnText:n.addColumnText!==void 0?n.addColumnText:l.value.addColumnText}),d=()=>(a++,`key_${Date.now()}_${a}_${Math.random().toString(36).substring(2,11)}`),u=()=>{if(r.value.length===n.maxRowLength){nu({message:`最多添加${n.maxRowLength}行`,type:"warning"});return}const v=s.value;let T={[v]:d()};n.beforeAddRow&&(T=n.beforeAddRow(r.value),T[v]||(T[v]=d())),r.value.push(T)},f=()=>{if(i.value.filter(M=>M.isAdd).length>=n.maxColLength){nu({message:`最多添加${n.maxColLength}列`,type:"warning"});return}const T=String(Date.now());i.value.push({prop:T,label:"",isEditHeader:!0,isAdd:!0,maxlength:15,minWidth:150,headerMaxlength:15,isNewlyColumn:!0})},h=(v,T)=>{i.value.splice(v,1),r.value.forEach(M=>{delete M[T.prop]})},m=v=>{v===0&&i.value.forEach(T=>{T.isSameData&&(r.value[1][T.prop]=r.value[0][T.prop])}),r.value.splice(v,1)},p=(v,T,M)=>{T(M.completeList.filter(D=>D.includes(v)).map(D=>({value:D})))},y=v=>[{validator:(T,M,D)=>{if(!i.value[v].label){D(new Error("请输入表头"));return}D()},message:"请输入表头",trigger:["blur","change"]}],g=(v,T,M)=>{const D=[];return v.required&&D.push({required:!0,message:v.requiredMessage||v.label+"不能为空",trigger:v.slot?void 0:"blur"}),v.varidate&&D.push({validator:(I,A,N)=>{const P=v.varidate(A,T,M);P!==!0?N(new Error(P)):N()}}),D},b=(v,T)=>{let M=v;return T.isSameData&&(M=r.value[0]||Ut),T.formatter?T.showFormatter?T.type===to.FORMAT?T.showFormatter(T.formatter(M)):T.showFormatter(M[T.prop]):T.formatter(M[T.prop]):M[T.prop]||Ut},E=o.ref(),C=(v,T,M)=>{if(v.headerRender){const{column:D,...I}=M,A={$index:T,column:D,...I};return()=>v.headerRender(A)}return null},_=[to.INDEX,to.SELECTION],w={width:132,type:to.INDEX,prop:"index",label:"序号",fixed:"left",isShow:!0},S={width:55,type:to.SELECTION,isShow:!1},k=o.ref([w,S]),x=o.computed(()=>k.value.filter(v=>v.isShow));return e({initData:(v,T)=>{_.forEach((D,I)=>{const A=(T||[]).find(N=>N.type===D);A&&(k.value[I]={...A,isShow:A.isShow!==!1})}),v=Mn(v)||[];const M=s.value;v.length===0?v.push({[M]:d()}):v.forEach(D=>{D[M]||(D[M]=d())}),T=[...T.filter(D=>!_.includes(D.type))];for(const D in v[0])if(!T.some(I=>I.prop===D)){const I=Date.now()+D,A=D.split(EE);if(A.length!==2){console.log("keySplit 失败",D);continue}const N=Number(A[1]);T[N]={prop:D,isEditHeader:!0,label:A[0],key:I,isAdd:!0,maxlength:15,headerMaxlength:15,isNewlyColumn:!1}}r.value=v,i.value=T.filter(D=>D)},getData:async()=>{await E.value.validate();for(const T in i.value){const M=i.value[T];for(const D of i.value)if(M.prop!==D.prop&&M.label===D.label){nu({message:"所有列的表头不可重复",type:"warning"});return}}const v=Mn(r.value);for(const T in v){const M=v[T];for(const D in i.value){const I=i.value[D];if(I.isSameData&&T!=="0"&&(M[I.prop]=v[0][I.prop]),I.varidate&&!I.varidate(M[I.prop],M,T))return;if(I.isAdd){const A=M[I.prop];delete M[I.prop];const N=I.label+EE+D;M[N]=A}I.formatter&&I.type===to.FORMAT&&(M[I.prop]=I.formatter(M))}}return{data:v,columns:i.value}},updateColumn:(v,T)=>{const M=i.value[v].prop;if(i.value[v]=T,M!==T.prop)for(const D of r.value)D[T.prop]=D[M],delete D[M]},resetColumns:(v,T=!1)=>{const D=i.value.filter(A=>!A.isAdd).reduce((A,N)=>(v.some(P=>P.prop===N.prop)||A.push(N.prop),A),[]);r.value.forEach(A=>{D.forEach(N=>{delete A[N]})});const I=i.value.filter(A=>A.isAdd);T?i.value=[...v]:i.value=[...v,...I]},onAddRow:u,onAddColumn:f,formRef:E,getColumns:()=>i.value}),(v,T)=>(o.openBlock(),o.createBlock(o.unref(Wb),{class:"diy-data-table",model:t.rawData,ref_key:"formRef",ref:E},{default:o.withCtx(()=>[o.createVNode(o.unref(Jp),o.mergeProps({class:"diy-data-table-table",data:r.value,"row-key":s.value},v.$attrs),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,(M,D)=>(o.openBlock(),o.createBlock(o.unref(Ii),o.mergeProps({key:`special-${D}`,ref_for:!0},M),null,16))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(M,D)=>(o.openBlock(),o.createBlock(o.unref(Ii),{key:M.key||D,prop:M.prop,label:M.label,width:M.width,"min-width":M.minWidth||v.defaultMinWidth,fixed:M.fixed},{header:o.withCtx(I=>[M.headerRender?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(C(M,D,I)),{key:0})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[v.isEdit?M.isEditHeader&&v.canOnlyEditNewlyColumnHeader&&M.isNewlyColumn||M.isEditHeader&&!v.canOnlyEditNewlyColumnHeader?(o.openBlock(),o.createElementBlock("div",e9,[o.createVNode(o.unref(qh),{prop:`columns.${D}`,rules:y(D)},{default:o.withCtx(()=>[o.createVNode(o.unref(Dn),{modelValue:M.label,"onUpdate:modelValue":A=>M.label=A,maxlength:M.headerMaxlength||20,placeholder:"请输入表头"},null,8,["modelValue","onUpdate:modelValue","maxlength"])]),_:2},1032,["prop","rules"]),M.isAdd?(o.openBlock(),o.createElementBlock("i",{key:0,class:"iconfont icon-close",onClick:A=>h(D,M)},null,8,t9)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass({"is-required-label":M.required})},o.toDisplayString(M.label),3)):(o.openBlock(),o.createElementBlock("div",Qz,o.toDisplayString(M.label),1))],64))]),default:o.withCtx(I=>[n.isEdit&&(!M.isSameData||I.$index===0)&&M.type!==o.unref(to).TEXT&&!I.row.disabled?(o.openBlock(),o.createBlock(o.unref(qh),{key:0,prop:`${I.$index}.${M.prop}`,rules:g(M,I.row,I.$index),class:o.normalizeClass(["col-edit-container",{"close-padding":M.isAdd}])},{default:o.withCtx(()=>[M.type===o.unref(to).FORMAT&&M.formatter?(o.openBlock(),o.createElementBlock("div",n9,o.toDisplayString(M.showFormatter?M.showFormatter(M.formatter(I.row)):M.formatter(I.row)),1)):M.type===o.unref(to).AUTOCOMPLETE?(o.openBlock(),o.createBlock(o.unref(kL),{key:1,modelValue:I.row[M.prop],"onUpdate:modelValue":A=>I.row[M.prop]=A,placeholder:M.placeholder||"请输入","fetch-suggestions":(A,N)=>p(A,N,M),maxlength:M.maxlength||20},null,8,["modelValue","onUpdate:modelValue","placeholder","fetch-suggestions","maxlength"])):M.slot?o.renderSlot(v.$slots,M.slot,{key:2,row:I.row,$index:I.$index},void 0,!0):(o.openBlock(),o.createBlock(o.unref(Dn),{key:3,modelValue:I.row[M.prop],"onUpdate:modelValue":A=>I.row[M.prop]=A,placeholder:M.placeholder||"请输入",formatter:M.formatter,parser:M.parser,maxlength:M.maxlength||20,"show-word-limit":M.showWordLimit},null,8,["modelValue","onUpdate:modelValue","placeholder","formatter","parser","maxlength","show-word-limit"]))]),_:2},1032,["prop","rules","class"])):M.slot?o.renderSlot(v.$slots,M.slot,{key:1,row:I.row,$index:I.$index},void 0,!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(b(I.row,M)),1)],64))]),_:2},1032,["prop","label","width","min-width","fixed"]))),128)),n.isEdit&&c.value.isShow?(o.openBlock(),o.createBlock(o.unref(Ii),{key:0,width:c.value.width,fixed:"right"},{header:o.withCtx(()=>[o.createElementVNode("div",r9,[c.value.customAddRow?(o.openBlock(),o.createBlock(o.unref(cr),{key:0,type:"primary",link:"",onClick:u},{default:o.withCtx(()=>[T[0]||(T[0]=o.createElementVNode("i",{class:"iconfont icon-Frame1"},null,-1)),o.createTextVNode(o.toDisplayString(c.value.addRowText),1)]),_:1})):o.createCommentVNode("",!0),c.value.customAddColumn?(o.openBlock(),o.createBlock(o.unref(cr),{key:1,type:"primary",link:"",onClick:f},{default:o.withCtx(()=>[T[1]||(T[1]=o.createElementVNode("i",{class:"iconfont icon-Frame-11"},null,-1)),o.createTextVNode(o.toDisplayString(c.value.addColumnText),1)]),_:1})):o.createCommentVNode("",!0)])]),default:o.withCtx(({$index:M,row:D})=>[o.createElementVNode("div",o9,[v.$slots.operation?o.renderSlot(v.$slots,"operation",{key:0,row:r.value[M],$index:M},void 0,!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[r.value.length>1&&!D.disabled?(o.openBlock(),o.createElementBlock("i",{key:0,class:"iconfont icon-close",onClick:I=>m(M)},null,8,i9)):o.createCommentVNode("",!0)],64))])]),_:3},8,["width"])):o.createCommentVNode("",!0)]),_:3},16,["data","row-key"])]),_:3},8,["model"]))}}),[["__scopeId","data-v-007b68b0"]])),xu="ol-hidden",s9="ol-selectable",oc="ol-unselectable",Fm="ol-control",kE="ol-collapsed",a9=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z0-9]+?)\\s*$`].join(""),"i"),vE=["style","variant","weight","size","lineHeight","family"],xE=function(t){const e=t.match(a9);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let r=0,i=vE.length;r<i;++r){const s=e[r+1];s!==void 0&&(n[vE[r]]=s)}return n.families=n.family.split(/,\s?/),n};function TE(...t){console.warn(...t)}const hn={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Bm(t){const e=Mr();for(let n=0,r=t.length;n<r;++n)sc(e,t[n]);return e}function l9(t,e,n){const r=Math.min.apply(null,t),i=Math.min.apply(null,e),s=Math.max.apply(null,t),a=Math.max.apply(null,e);return So(r,i,s,a,n)}function Tu(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function ME(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function Cs(t,e,n){let r,i;return e<t[0]?r=t[0]-e:t[2]<e?r=e-t[2]:r=0,n<t[1]?i=t[1]-n:t[3]<n?i=n-t[3]:i=0,r*r+i*i}function Es(t,e){return Vm(t,e[0],e[1])}function Ss(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function Vm(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function $m(t,e){const n=t[0],r=t[1],i=t[2],s=t[3],a=e[0],l=e[1];let c=hn.UNKNOWN;return a<n?c=c|hn.LEFT:a>i&&(c=c|hn.RIGHT),l<r?c=c|hn.BELOW:l>s&&(c=c|hn.ABOVE),c===hn.UNKNOWN&&(c=hn.INTERSECTING),c}function Mr(){return[1/0,1/0,-1/0,-1/0]}function So(t,e,n,r,i){return i?(i[0]=t,i[1]=e,i[2]=n,i[3]=r,i):[t,e,n,r]}function Ea(t){return So(1/0,1/0,-1/0,-1/0,t)}function RE(t,e){const n=t[0],r=t[1];return So(n,r,n,r,e)}function zm(t,e,n,r,i){const s=Ea(i);return DE(s,t,e,n,r)}function ic(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function PE(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function sc(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function DE(t,e,n,r,i){for(;n<r;n+=i)c9(t,e[n],e[n+1]);return t}function c9(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function Wm(t,e){let n;return n=e(Mu(t)),n||(n=e(Ru(t)),n)||(n=e(Pu(t)),n)||(n=e(ks(t)),n)?n:!1}function Ym(t){let e=0;return vs(t)||(e=gt(t)*pn(t)),e}function Mu(t){return[t[0],t[1]]}function Ru(t){return[t[2],t[1]]}function ei(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function d9(t,e){let n;if(e==="bottom-left")n=Mu(t);else if(e==="bottom-right")n=Ru(t);else if(e==="top-left")n=ks(t);else if(e==="top-right")n=Pu(t);else throw new Error("Invalid corner");return n}function Gm(t,e,n,r,i){const[s,a,l,c,d,u,f,h]=IE(t,e,n,r);return So(Math.min(s,l,d,f),Math.min(a,c,u,h),Math.max(s,l,d,f),Math.max(a,c,u,h),i)}function IE(t,e,n,r){const i=e*r[0]/2,s=e*r[1]/2,a=Math.cos(n),l=Math.sin(n),c=i*a,d=i*l,u=s*a,f=s*l,h=t[0],m=t[1];return[h-c+f,m-d-u,h-c-f,m-d+u,h+c-f,m+d+u,h+c+f,m+d-u,h-c+f,m-d-u]}function pn(t){return t[3]-t[1]}function Fi(t,e,n){const r=n||Mr();return En(t,e)?(t[0]>e[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]<e[2]?r[2]=t[2]:r[2]=e[2],t[3]<e[3]?r[3]=t[3]:r[3]=e[3]):Ea(r),r}function ks(t){return[t[0],t[3]]}function Pu(t){return[t[2],t[3]]}function gt(t){return t[2]-t[0]}function En(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function vs(t){return t[2]<t[0]||t[3]<t[1]}function u9(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function f9(t,e){const n=(t[2]-t[0])/2*(e-1),r=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=r,t[3]+=r}function h9(t,e,n){let r=!1;const i=$m(t,e),s=$m(t,n);if(i===hn.INTERSECTING||s===hn.INTERSECTING)r=!0;else{const a=t[0],l=t[1],c=t[2],d=t[3],u=e[0],f=e[1],h=n[0],m=n[1],p=(m-f)/(h-u);let y,g;s&hn.ABOVE&&!(i&hn.ABOVE)&&(y=h-(m-d)/p,r=y>=a&&y<=c),!r&&s&hn.RIGHT&&!(i&hn.RIGHT)&&(g=m-(h-c)*p,r=g>=l&&g<=d),!r&&s&hn.BELOW&&!(i&hn.BELOW)&&(y=h-(m-l)/p,r=y>=a&&y<=c),!r&&s&hn.LEFT&&!(i&hn.LEFT)&&(g=m-(h-a)*p,r=g>=l&&g<=d)}return r}function p9(t,e,n,r){if(vs(t))return Ea(n);let i=[];i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]],e(i,i,2);const s=[],a=[];for(let l=0,c=i.length;l<c;l+=2)s.push(i[l]),a.push(i[l+1]);return l9(s,a,n)}function NE(t,e){const n=e.getExtent(),r=ei(t);if(e.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){const i=gt(n),a=Math.floor((r[0]-n[0])/i)*i;t[0]-=a,t[2]-=a}return t}function OE(t,e,n){if(e.canWrapX()){const r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];NE(t,e);const i=gt(r);if(gt(t)>i&&!n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+i,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-i,t[3]]]}return[t]}function Lt(t,e,n){return Math.min(Math.max(t,e),n)}function m9(t,e,n,r,i,s){const a=i-n,l=s-r;if(a!==0||l!==0){const c=((t-n)*a+(e-r)*l)/(a*a+l*l);c>1?(n=i,r=s):c>0&&(n+=a*c,r+=l*c)}return ti(t,e,n,r)}function ti(t,e,n,r){const i=n-t,s=r-e;return i*i+s*s}function g9(t){const e=t.length;for(let r=0;r<e;r++){let i=r,s=Math.abs(t[r][r]);for(let l=r+1;l<e;l++){const c=Math.abs(t[l][r]);c>s&&(s=c,i=l)}if(s===0)return null;const a=t[i];t[i]=t[r],t[r]=a;for(let l=r+1;l<e;l++){const c=-t[l][r]/t[r][r];for(let d=r;d<e+1;d++)r==d?t[l][d]=0:t[l][d]+=c*t[r][d]}}const n=new Array(e);for(let r=e-1;r>=0;r--){n[r]=t[r][e]/t[r][r];for(let i=r-1;i>=0;i--)t[i][e]-=t[i][r]*n[r]}return n}function LE(t){return t*180/Math.PI}function no(t){return t*Math.PI/180}function xs(t,e){const n=t%e;return n*e<0?n+e:n}function ur(t,e,n){return t+n*(e-t)}function ac(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function Du(t,e){return Math.floor(ac(t,e))}function Iu(t,e){return Math.ceil(ac(t,e))}function jm(t,e,n){if(t>=e&&t<n)return t;const r=n-e;return((t-e)%r+r)%r+e}function y9(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function Nu(t,e){let n=!0;for(let r=t.length-1;r>=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function Hm(t,e){const n=Math.cos(e),r=Math.sin(e),i=t[0]*n-t[1]*r,s=t[1]*n+t[0]*r;return t[0]=i,t[1]=s,t}function _9(t,e){return t[0]*=e,t[1]*=e,t}function AE(t,e){const n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function FE(t,e){return Math.sqrt(AE(t,e))}function BE(t,e){if(e.canWrapX()){const n=gt(e.getExtent()),r=b9(t,e,n);r&&(t[0]-=r*n)}return t}function b9(t,e,n){const r=e.getExtent();let i=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||gt(r),i=Math.floor((t[0]-r[0])/n)),i}const Sa={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class Um{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Sa[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const lc=6378137,ka=Math.PI*lc,w9=[-ka,-ka,ka,ka],C9=[-180,-85,180,85],Ou=lc*Math.log(Math.tan(Math.PI/2));class va extends Um{constructor(e){super({code:e,units:"m",extent:w9,global:!0,worldExtent:C9,getPointResolution:function(n,r){return n/Math.cosh(r[1]/lc)}})}}const VE=[new va("EPSG:3857"),new va("EPSG:102100"),new va("EPSG:102113"),new va("EPSG:900913"),new va("http://www.opengis.net/def/crs/EPSG/0/3857"),new va("http://www.opengis.net/gml/srs/epsg.xml#3857")];function E9(t,e,n,r){const i=t.length;n=n>1?n:2,r=r??n,e===void 0&&(n>2?e=t.slice():e=new Array(i));for(let s=0;s<i;s+=r){e[s]=ka*t[s]/180;let a=lc*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));a>Ou?a=Ou:a<-Ou&&(a=-Ou),e[s+1]=a}return e}function S9(t,e,n,r){const i=t.length;n=n>1?n:2,r=r??n,e===void 0&&(n>2?e=t.slice():e=new Array(i));for(let s=0;s<i;s+=r)e[s]=180*t[s]/ka,e[s+1]=360*Math.atan(Math.exp(t[s+1]/lc))/Math.PI-90;return e}const k9=6378137,$E=[-180,-90,180,90],v9=Math.PI*k9/180;class Ts extends Um{constructor(e,n){super({code:e,units:"degrees",extent:$E,axisOrientation:n,global:!0,metersPerUnit:v9,worldExtent:$E})}}const zE=[new Ts("CRS:84"),new Ts("EPSG:4326","neu"),new Ts("urn:ogc:def:crs:OGC:1.3:CRS84"),new Ts("urn:ogc:def:crs:OGC:2:84"),new Ts("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new Ts("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Ts("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let Km={};function x9(t){return Km[t]||Km[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function T9(t,e){Km[t]=e}function cc(t){for(const e in t)delete t[e]}function xa(t){let e;for(e in t)return!1;return!e}let Ta={};function dc(t,e,n){const r=t.getCode(),i=e.getCode();r in Ta||(Ta[r]={}),Ta[r][i]=n}function Xm(t,e){return t in Ta&&e in Ta[t]?Ta[t][e]:null}const Lu=.9996,Rr=.00669438,Au=Rr*Rr,Fu=Au*Rr,Ms=Rr/(1-Rr),WE=Math.sqrt(1-Rr),Ma=(1-WE)/(1+WE),YE=Ma*Ma,Zm=YE*Ma,qm=Zm*Ma,GE=qm*Ma,jE=1-Rr/4-3*Au/64-5*Fu/256,M9=3*Rr/8+3*Au/32+45*Fu/1024,R9=15*Au/256+45*Fu/1024,P9=35*Fu/3072,D9=3/2*Ma-27/32*Zm+269/512*GE,I9=21/16*YE-55/32*qm,N9=151/96*Zm-417/128*GE,O9=1097/512*qm,Bu=6378137;function L9(t,e,n){const r=t-5e5,a=(n.north?e:e-1e7)/Lu/(Bu*jE),l=a+D9*Math.sin(2*a)+I9*Math.sin(4*a)+N9*Math.sin(6*a)+O9*Math.sin(8*a),c=Math.sin(l),d=c*c,u=Math.cos(l),f=c/u,h=f*f,m=h*h,p=1-Rr*d,y=Math.sqrt(1-Rr*d),g=Bu/y,b=(1-Rr)/p,E=Ms*u**2,C=E*E,_=r/(g*Lu),w=_*_,S=w*_,k=S*_,x=k*_,v=x*_,T=l-f/b*(w/2-k/24*(5+3*h+10*E-4*C-9*Ms))+v/720*(61+90*h+298*E+45*m-252*Ms-3*C);let M=(_-S/6*(1+2*h+E)+x/120*(5-2*E+28*h-3*C+8*Ms+24*m))/u;return M=jm(M+no(KE(n.number)),-Math.PI,Math.PI),[LE(M),LE(T)]}const HE=-80,UE=84,A9=-180,F9=180;function B9(t,e,n){t=jm(t,A9,F9),e<HE?e=HE:e>UE&&(e=UE);const r=no(e),i=Math.sin(r),s=Math.cos(r),a=i/s,l=a*a,c=l*l,d=no(t),u=KE(n.number),f=no(u),h=Bu/Math.sqrt(1-Rr*i**2),m=Ms*s**2,p=s*jm(d-f,-Math.PI,Math.PI),y=p*p,g=y*p,b=g*p,E=b*p,C=E*p,_=Bu*(jE*r-M9*Math.sin(2*r)+R9*Math.sin(4*r)-P9*Math.sin(6*r)),w=Lu*h*(p+g/6*(1-l+m)+E/120*(5-18*l+c+72*m-58*Ms))+5e5;let S=Lu*(_+h*a*(y/2+b/24*(5-l+9*m+4*m**2)+C/720*(61-58*l+c+600*m-330*Ms)));return n.north||(S+=1e7),[w,S]}function KE(t){return(t-1)*6-180+3}const V9=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function XE(t){let e=0;for(const i of V9){const s=t.match(i);if(s){e=parseInt(s[1]);break}}if(!e)return null;let n=0,r=!1;return e>32700&&e<32761?n=e-32700:e>32600&&e<32661&&(r=!0,n=e-32600),n?{number:n,north:r}:null}function ZE(t,e){return function(n,r,i,s){const a=n.length;i=i>1?i:2,s=s??i,r||(i>2?r=n.slice():r=new Array(a));for(let l=0;l<a;l+=s){const c=n[l],d=n[l+1],u=t(c,d,e);r[l]=u[0],r[l+1]=u[1]}return r}}function $9(t){return XE(t)?new Um({code:t,units:"m"}):null}function z9(t){const e=XE(t.getCode());return e?{forward:ZE(B9,e),inverse:ZE(L9,e)}:null}const Jm=63710088e-1;function Qm(t,e,n){n=n||Jm;const r=no(t[1]),i=no(e[1]),s=(i-r)/2,a=no(e[0]-t[0])/2,l=Math.sin(s)*Math.sin(s)+Math.sin(a)*Math.sin(a)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function eg(t,e){let n=0;for(let r=0,i=t.length;r<i-1;++r)n+=Qm(t[r],t[r+1],e);return n}function Vu(t,e){e=e||{};const n=e.radius||Jm,r=e.projection||"EPSG:3857",i=t.getType();i!=="GeometryCollection"&&(t=t.clone().transform(r,"EPSG:4326"));let s=0,a,l,c,d,u,f;switch(i){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":{a=t.getCoordinates(),s=eg(a,n);break}case"MultiLineString":case"Polygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)s+=eg(a[c],n);break}case"MultiPolygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)for(l=a[c],u=0,f=l.length;u<f;++u)s+=eg(l[u],n);break}case"GeometryCollection":{const h=t.getGeometries();for(c=0,d=h.length;c<d;++c)s+=Vu(h[c],e);break}default:throw new Error("Unsupported geometry type: "+i)}return s}function $u(t,e){let n=0;const r=t.length;let i=t[r-1][0],s=t[r-1][1];for(let a=0;a<r;a++){const l=t[a][0],c=t[a][1];n+=no(l-i)*(2+Math.sin(no(s))+Math.sin(no(c))),i=l,s=c}return n*e*e/2}function qE(t,e){e=e||{};const n=e.radius||Jm,r=e.projection||"EPSG:3857",i=t.getType();i!=="GeometryCollection"&&(t=t.clone().transform(r,"EPSG:4326"));let s=0,a,l,c,d,u,f;switch(i){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":{for(a=t.getCoordinates(),s=Math.abs($u(a[0],n)),c=1,d=a.length;c<d;++c)s-=Math.abs($u(a[c],n));break}case"MultiPolygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)for(l=a[c],s+=Math.abs($u(l[0],n)),u=1,f=l.length;u<f;++u)s-=Math.abs($u(l[u],n));break}case"GeometryCollection":{const h=t.getGeometries();for(c=0,d=h.length;c<d;++c)s+=qE(h[c],e);break}default:throw new Error("Unsupported geometry type: "+i)}return s}const W9=[z9],Y9=[$9];let tg=!0;function JE(t){tg=!1}function ng(t,e){if(e!==void 0){for(let n=0,r=t.length;n<r;++n)e[n]=t[n];e=e}else e=t.slice();return e}function rg(t){T9(t.getCode(),t),dc(t,t,ng)}function G9(t){t.forEach(rg)}function rn(t){if(typeof t!="string")return t;const e=x9(t);if(e)return e;for(const n of Y9){const r=n(t);if(r)return r}return null}function zu(t,e,n,r){t=rn(t);let i;const s=t.getPointResolutionFunc();if(s){if(i=s(e,n),r&&r!==t.getUnits()){const a=t.getMetersPerUnit();a&&(i=i*a/Sa[r])}}else{const a=t.getUnits();if(a=="degrees"&&!r||r=="degrees")i=e;else{const l=ig(t,rn("EPSG:4326"));if(!l&&a!=="degrees")i=e*t.getMetersPerUnit();else{let d=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];d=l(d,d,2);const u=Qm(d.slice(0,2),d.slice(2,4)),f=Qm(d.slice(4,6),d.slice(6,8));i=(u+f)/2}const c=r?Sa[r]:t.getMetersPerUnit();c!==void 0&&(i/=c)}}return i}function QE(t){G9(t),t.forEach(function(e){t.forEach(function(n){e!==n&&dc(e,n,ng)})})}function j9(t,e,n,r){t.forEach(function(i){e.forEach(function(s){dc(i,s,n),dc(s,i,r)})})}function og(t,e){return t?typeof t=="string"?rn(t):t:rn(e)}function H9(t){return function(e,n,r,i){const s=e.length;r=r!==void 0?r:2,i=i??r,n=n!==void 0?n:new Array(s);for(let a=0;a<s;a+=i){const l=t(e.slice(a,a+r)),c=l.length;for(let d=0,u=i;d<u;++d)n[a+d]=d>=c?e[a+d]:l[d]}return n}}function Pr(t,e){return JE(),ni(t,"EPSG:4326","EPSG:3857")}function U9(t,e){const n=ni(t,"EPSG:3857","EPSG:4326"),r=n[0];return(r<-180||r>180)&&(n[0]=xs(r+180,360)-180),n}function Wu(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||ig(t,e)===ng)&&n}function ig(t,e){const n=t.getCode(),r=e.getCode();let i=Xm(n,r);if(i)return i;let s=null,a=null;for(const c of W9)s||(s=c(t)),a||(a=c(e));if(!s&&!a)return null;const l="EPSG:4326";if(a)if(s)i=sg(s.inverse,a.forward);else{const c=Xm(n,l);c&&(i=sg(c,a.forward))}else{const c=Xm(l,r);c&&(i=sg(s.inverse,c))}return i&&(rg(t),rg(e),dc(t,e,i)),i}function sg(t,e){return function(n,r,i,s){return r=t(n,r,i,s),e(r,r,i,s)}}function Ra(t,e){const n=rn(t),r=rn(e);return ig(n,r)}function ni(t,e,n){const r=Ra(e,n);if(!r){const i=rn(e).getCode(),s=rn(n).getCode();throw new Error(`No transform available between ${i} and ${s}`)}return r(t,void 0,t.length)}function K9(t,e,n,r){const i=Ra(e,n);return p9(t,i,void 0)}function ag(t,e){return t}function ro(t,e){return tg&&!Nu(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(tg=!1,TE("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function eS(t,e){return t}function ko(t,e){return t}function X9(){QE(VE),QE(zE),j9(zE,VE,E9,S9)}X9();const ri={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Pa={PROPERTYCHANGE:"propertychange"},Ye={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};class Yu{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function Z9(t,e,n){let r,i;n=n||oi;let s=0,a=t.length,l=!1;for(;s<a;)r=s+(a-s>>1),i=+n(t[r],e),i<0?s=r+1:(a=r,l=!i);return l?s:~s}function oi(t,e){return t>e?1:t<e?-1:0}function q9(t,e){return t<e?1:t>e?-1:0}function lg(t,e,n){if(t[0]<=e)return 0;const r=t.length;if(e<=t[r-1])return r-1;if(typeof n=="function"){for(let i=1;i<r;++i){const s=t[i];if(s===e)return i;if(s<e)return n(e,t[i-1],s)>0?i-1:i}return r-1}if(n>0){for(let i=1;i<r;++i)if(t[i]<e)return i-1;return r-1}if(n<0){for(let i=1;i<r;++i)if(t[i]<=e)return i;return r-1}for(let i=1;i<r;++i){if(t[i]==e)return i;if(t[i]<e)return t[i-1]-e<e-t[i]?i-1:i}return r-1}function J9(t,e,n){for(;e<n;){const r=t[e];t[e]=t[n],t[n]=r,++e,--n}}function vo(t,e){const n=Array.isArray(e)?e:[e],r=n.length;for(let i=0;i<r;i++)t[t.length]=n[i]}function Bi(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Q9(t,e,n){const r=e||oi;return t.every(function(i,s){if(s===0)return!0;const a=r(t[s-1],i);return!(a>0||a===0)})}function Da(){return!0}function Ia(){return!1}function uc(){}function tS(t){let e,n,r;return function(){const i=Array.prototype.slice.call(arguments);return(!n||this!==r||!Bi(i,n))&&(r=this,n=i,e=t.apply(this,arguments)),e}}function nS(t){function e(){let n;try{n=t()}catch(r){return Promise.reject(r)}return n instanceof Promise?n:Promise.resolve(n)}return e()}class xo{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}class fc extends Yu{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,n){if(!e||!n)return;const r=this.listeners_||(this.listeners_={}),i=r[e]||(r[e]=[]);i.includes(n)||i.push(n)}dispatchEvent(e){const n=typeof e=="string",r=n?e:e.type,i=this.listeners_&&this.listeners_[r];if(!i)return;const s=n?new xo(e):e;s.target||(s.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});r in a||(a[r]=0,l[r]=0),++a[r];let c;for(let d=0,u=i.length;d<u;++d)if("handleEvent"in i[d]?c=i[d].handleEvent(s):c=i[d].call(this,s),c===!1||s.propagationStopped){c=!1;break}if(--a[r]===0){let d=l[r];for(delete l[r];d--;)this.removeEventListener(r,uc);delete a[r]}return c}disposeInternal(){this.listeners_&&cc(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return this.listeners_?e?e in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(e,n){if(!this.listeners_)return;const r=this.listeners_[e];if(!r)return;const i=r.indexOf(n);i!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(r[i]=uc,++this.pendingRemovals_[e]):(r.splice(i,1),r.length===0&&delete this.listeners_[e]))}}function dt(t,e,n,r,i){if(i){const a=n;n=function(l){return t.removeEventListener(e,n),a.call(r??this,l)}}else r&&r!==t&&(n=n.bind(r));const s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function Gu(t,e,n,r){return dt(t,e,n,r,!0)}function Tt(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),cc(t))}class hc extends fc{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(Ye.CHANGE)}getRevision(){return this.revision_}onInternal(e,n){if(Array.isArray(e)){const r=e.length,i=new Array(r);for(let s=0;s<r;++s)i[s]=dt(this,e[s],n);return i}return dt(this,e,n)}onceInternal(e,n){let r;if(Array.isArray(e)){const i=e.length;r=new Array(i);for(let s=0;s<i;++s)r[s]=Gu(this,e[s],n)}else r=Gu(this,e,n);return n.ol_key=r,r}unInternal(e,n){const r=n.ol_key;if(r)ju(r);else if(Array.isArray(e))for(let i=0,s=e.length;i<s;++i)this.removeEventListener(e[i],n);else this.removeEventListener(e,n)}}hc.prototype.on,hc.prototype.once,hc.prototype.un;function ju(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)Tt(t[e]);else Tt(t)}function Ge(){throw new Error("Unimplemented abstract method.")}let eW=0;function ut(t){return t.ol_uid||(t.ol_uid=String(++eW))}class rS extends xo{constructor(e,n,r){super(e),this.key=n,this.oldValue=r}}class oo extends hc{constructor(e){super(),this.on,this.once,this.un,ut(this),this.values_=null,e!==void 0&&this.setProperties(e)}get(e){let n;return this.values_&&this.values_.hasOwnProperty(e)&&(n=this.values_[e]),n}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,n){let r;r=`change:${e}`,this.hasListener(r)&&this.dispatchEvent(new rS(r,e,n)),r=Pa.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new rS(r,e,n))}addChangeListener(e,n){this.addEventListener(`change:${e}`,n)}removeChangeListener(e,n){this.removeEventListener(`change:${e}`,n)}set(e,n,r){const i=this.values_||(this.values_={});if(r)i[e]=n;else{const s=i[e];i[e]=n,s!==n&&this.notify(e,s)}}setProperties(e,n){for(const r in e)this.set(r,e[r],n)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,n){if(this.values_&&e in this.values_){const r=this.values_[e];delete this.values_[e],xa(this.values_)&&(this.values_=null),n||this.notify(e,r)}}}class Hu extends oo{constructor(e){super();const n=e.element;n&&!e.target&&!n.style.pointerEvents&&(n.style.pointerEvents="auto"),this.element=n||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){var e;(e=this.element)==null||e.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){var n;this.map_&&((n=this.element)==null||n.remove());for(let r=0,i=this.listenerKeys.length;r<i;++r)Tt(this.listenerKeys[r]);if(this.listenerKeys.length=0,this.map_=e,e){const r=this.target_??e.getOverlayContainerStopEvent();this.element&&r.appendChild(this.element),this.render!==uc&&this.listenerKeys.push(dt(e,ri.POSTRENDER,this.render,this)),e.render()}}render(e){}setTarget(e){this.target_=typeof e=="string"?document.getElementById(e):e}}const cg="units",tW=[1,2,5],pc=25.4/.28;let nW=class extends Hu{constructor(e){e=e||{};const n=document.createElement("div");n.style.pointerEvents="none",super({element:n,render:e.render,target:e.target}),this.on,this.once,this.un;const r=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=r+"-inner",this.element.className=r+" "+oc,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(cg,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(cg)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(cg,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const n=e.center,r=e.projection,i=this.getUnits(),s=i=="degrees"?"degrees":"m";let a=zu(r,e.resolution,n,s);const l=this.minWidth_*(this.dpi_||pc)/pc,c=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||pc)/pc:void 0;let d=l*a,u="";if(i=="degrees"){const C=Sa.degrees;d*=C,d<C/60?(u="″",a*=3600):d<C?(u="′",a*=60):u="°"}else if(i=="imperial")d<.9144?(u="in",a/=.0254):d<1609.344?(u="ft",a/=.3048):(u="mi",a/=1609.344);else if(i=="nautical")a/=1852,u="NM";else if(i=="metric")d<1e-6?(u="nm",a*=1e9):d<.001?(u="μm",a*=1e6):d<1?(u="mm",a*=1e3):d<1e3?u="m":(u="km",a/=1e3);else if(i=="us")d<.9144?(u="in",a*=39.37):d<1609.344?(u="ft",a/=.30480061):(u="mi",a/=1609.3472);else throw new Error("Invalid units");let f=3*Math.floor(Math.log(l*a)/Math.log(10)),h,m,p,y=0,g,b;for(;;){p=Math.floor(f/3);const C=Math.pow(10,p);if(h=tW[(f%3+3)%3]*C,m=Math.round(h/a),isNaN(m)){this.element.style.display="none",this.renderedVisible_=!1;return}if(c!==void 0&&m>=c){h=y,m=g,p=b;break}else if(m>=l)break;y=h,g=m,b=p,++f}const E=this.scaleBar_?this.createScaleBar(m,h,u):h.toFixed(p<0?-p:0)+" "+u;this.renderedHTML_!=E&&(this.innerElement_.innerHTML=E,this.renderedHTML_=E),this.renderedWidth_!=m&&(this.innerElement_.style.width=m+"px",this.renderedWidth_=m),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,n,r){const i=this.getScaleForResolution(),s=i<1?Math.round(1/i).toLocaleString()+" : 1":"1 : "+Math.round(i).toLocaleString(),a=this.scaleBarSteps_,l=e/a,c=[this.createMarker("absolute")];for(let u=0;u<a;++u){const f=u%2===0?"ol-scale-singlebar-odd":"ol-scale-singlebar-even";c.push(`<div><div class="ol-scale-singlebar ${f}" style="width: ${l}px;"></div>`+this.createMarker("relative")+(u%2===0||a===2?this.createStepText(u,e,!1,n,r):"")+"</div>")}return c.push(this.createStepText(a,e,!0,n,r)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${e}px;">`+s+"</div>":"")+c.join("")}createMarker(e){return`<div class="ol-scale-step-marker" style="position: ${e}; top: ${e==="absolute"?3:-10}px;"></div>`}createStepText(e,n,r,i,s){const l=(e===0?0:Math.round(i/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+s),c=e===0?-3:n/this.scaleBarSteps_*-1,d=e===0?0:n/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${c}px;text-align: ${e===0?"left":"center"};min-width: ${d}px;left: ${r?n+"px":"unset"};">`+l+"</div>"}getScaleForResolution(){const e=zu(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),n=this.dpi_||pc,r=1e3/25.4;return e*r*n}render(e){const n=e.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()}};const Kn={ADD:"add",REMOVE:"remove"},oS={LENGTH:"length"};class Uu extends xo{constructor(e,n,r){super(e),this.element=n,this.index=r}}class To extends oo{constructor(e,n){if(super(),this.on,this.once,this.un,n=n||{},this.unique_=!!n.unique,this.array_=e||[],this.unique_)for(let r=0,i=this.array_.length;r<i;++r)this.assertUnique_(this.array_[r],r);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let n=0,r=e.length;n<r;++n)this.push(e[n]);return this}forEach(e){const n=this.array_;for(let r=0,i=n.length;r<i;++r)e(n[r],r,n)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(oS.LENGTH)}insertAt(e,n){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new Uu(Kn.ADD,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const n=this.getLength();return this.insertAt(n,e),this.getLength()}remove(e){const n=this.array_;for(let r=0,i=n.length;r<i;++r)if(n[r]===e)return this.removeAt(r)}removeAt(e){if(e<0||e>=this.getLength())return;const n=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new Uu(Kn.REMOVE,n,e)),n}setAt(e,n){const r=this.getLength();if(e>=r){this.insertAt(e,n);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n,e);const i=this.array_[e];this.array_[e]=n,this.dispatchEvent(new Uu(Kn.REMOVE,i,e)),this.dispatchEvent(new Uu(Kn.ADD,n,e))}updateLength_(){this.set(oS.LENGTH,this.array_.length)}assertUnique_(e,n){for(let r=0,i=this.array_.length;r<i;++r)if(this.array_[r]===e&&r!==n)throw new Error("Duplicate item added to a unique collection")}}function wt(t,e){if(!t)throw new Error(e)}class Kt extends oo{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if(typeof e.getSimplifiedGeometry=="function"){const n=e;this.setGeometry(n)}else{const n=e;this.setProperties(n)}}clone(){const e=new Kt(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const n=this.getGeometry();n&&e.setGeometry(n.clone());const r=this.getStyle();return r&&e.setStyle(r),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Tt(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=dt(e,Ye.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?rW(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function rW(t){if(typeof t=="function")return t;let e;return Array.isArray(t)?e=t:(wt(typeof t.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}new Array(6);function Dr(){return[1,0,0,1,0,0]}function oW(t,e){const n=t[0],r=t[1],i=t[2],s=t[3],a=t[4],l=t[5],c=e[0],d=e[1],u=e[2],f=e[3],h=e[4],m=e[5];return t[0]=n*c+i*d,t[1]=r*c+s*d,t[2]=n*u+i*f,t[3]=r*u+s*f,t[4]=n*h+i*m+a,t[5]=r*h+s*m+l,t}function iW(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Yt(t,e){const n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function io(t,e,n,r,i,s,a,l){const c=Math.sin(s),d=Math.cos(s);return t[0]=r*d,t[1]=i*c,t[2]=-r*c,t[3]=i*d,t[4]=a*r*d-l*r*c+e,t[5]=a*i*c+l*i*d+n,t}function iS(t,e){const n=sW(e);wt(n!==0,"Transformation matrix cannot be inverted");const r=e[0],i=e[1],s=e[2],a=e[3],l=e[4],c=e[5];return t[0]=a/n,t[1]=-i/n,t[2]=-s/n,t[3]=r/n,t[4]=(s*c-a*l)/n,t[5]=-(r*c-i*l)/n,t}function sW(t){return t[0]*t[3]-t[1]*t[2]}const aW=[1e5,1e5,1e5,1e5,2,2];function lW(t){return"matrix("+t.join(", ")+")"}function sS(t){return t.substring(7,t.length-1).split(",").map(parseFloat)}function cW(t,e){const n=sS(t),r=sS(e);for(let i=0;i<6;++i)if(Math.round((n[i]-r[i])*aW[i])!==0)return!1;return!0}function Vi(t,e,n,r,i,s,a){s=s||[],a=a||2;let l=0;for(let c=e;c<n;c+=r){const d=t[c],u=t[c+1];s[l++]=i[0]*d+i[2]*u+i[4],s[l++]=i[1]*d+i[3]*u+i[5];for(let f=2;f<a;f++)s[l++]=t[c+f]}return s&&s.length!=l&&(s.length=l),s}function dg(t,e,n,r,i,s,a){a=a||[];const l=Math.cos(i),c=Math.sin(i),d=s[0],u=s[1];let f=0;for(let h=e;h<n;h+=r){const m=t[h]-d,p=t[h+1]-u;a[f++]=d+m*l-p*c,a[f++]=u+m*c+p*l;for(let y=h+2;y<h+r;++y)a[f++]=t[y]}return a&&a.length!=f&&(a.length=f),a}function dW(t,e,n,r,i,s,a,l){l=l||[];const c=a[0],d=a[1];let u=0;for(let f=e;f<n;f+=r){const h=t[f]-c,m=t[f+1]-d;l[u++]=c+i*h,l[u++]=d+s*m;for(let p=f+2;p<f+r;++p)l[u++]=t[p]}return l&&l.length!=u&&(l.length=u),l}function uW(t,e,n,r,i,s,a){a=a||[];let l=0;for(let c=e;c<n;c+=r){a[l++]=t[c]+i,a[l++]=t[c+1]+s;for(let d=c+2;d<c+r;++d)a[l++]=t[d]}return a&&a.length!=l&&(a.length=l),a}const aS=Dr(),fW=[NaN,NaN];class lS extends oo{constructor(){super(),this.extent_=Mr(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=tS((e,n,r)=>{if(!r)return this.getSimplifiedGeometry(n);const i=this.clone();return i.applyTransform(r),i.getSimplifiedGeometry(n)})}simplifyTransformed(e,n){return this.simplifyTransformedInternal(this.getRevision(),e,n)}clone(){return Ge()}closestPointXY(e,n,r,i){return Ge()}containsXY(e,n){return this.closestPointXY(e,n,fW,Number.MIN_VALUE)===0}getClosestPoint(e,n){return n=n||[NaN,NaN],this.closestPointXY(e[0],e[1],n,1/0),n}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return Ge()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const n=this.computeExtent(this.extent_);(isNaN(n[0])||isNaN(n[1]))&&Ea(n),this.extentRevision_=this.getRevision()}return u9(this.extent_,e)}rotate(e,n){Ge()}scale(e,n,r){Ge()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return Ge()}getType(){return Ge()}applyTransform(e){Ge()}intersectsExtent(e){return Ge()}translate(e,n){Ge()}transform(e,n){const r=rn(e),i=r.getUnits()=="tile-pixels"?function(s,a,l){const c=r.getExtent(),d=r.getWorldExtent(),u=pn(d)/pn(c);io(aS,d[0],d[3],u,-u,0,0,0);const f=Vi(s,0,s.length,l,aS,a),h=Ra(r,n);return h?h(f,f,l):f}:Ra(r,n);return this.applyTransform(i),this}}class $i extends lS{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return zm(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return Ge()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().length<this.flatCoordinates.length?n:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,n){this.stride=mc(e),this.layout=e,this.flatCoordinates=n}setCoordinates(e,n){Ge()}setLayout(e,n,r){let i;if(e)i=mc(e);else{for(let s=0;s<r;++s){if(n.length===0){this.layout="XY",this.stride=2;return}n=n[0]}i=n.length,e=hW(i)}this.layout=e,this.stride=i}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(e,n){const r=this.getFlatCoordinates();if(r){const i=this.getStride();dg(r,0,r.length,i,e,n,r),this.changed()}}scale(e,n,r){n===void 0&&(n=e),r||(r=ei(this.getExtent()));const i=this.getFlatCoordinates();if(i){const s=this.getStride();dW(i,0,i.length,s,e,n,r,i),this.changed()}}translate(e,n){const r=this.getFlatCoordinates();if(r){const i=this.getStride();uW(r,0,r.length,i,e,n,r),this.changed()}}}function hW(t){let e;return t==2?e="XY":t==3?e="XYZ":t==4&&(e="XYZM"),e}function mc(t){let e;return t=="XY"?e=2:t=="XYZ"||t=="XYM"?e=3:t=="XYZM"&&(e=4),e}function pW(t,e,n){const r=t.getFlatCoordinates();if(!r)return null;const i=t.getStride();return Vi(r,0,r.length,i,e,n)}function cS(t,e,n,r){let i=0;const s=t[n-r],a=t[n-r+1];let l=0,c=0;for(;e<n;e+=r){const d=t[e]-s,u=t[e+1]-a;i+=c*d-l*u,l=d,c=u}return i/2}function dS(t,e,n,r){let i=0;for(let s=0,a=n.length;s<a;++s){const l=n[s];i+=cS(t,e,l,r),e=l}return i}function mW(t,e,n,r){let i=0;for(let s=0,a=n.length;s<a;++s){const l=n[s];i+=dS(t,e,l,r),e=l[l.length-1]}return i}function uS(t,e,n,r,i,s,a){const l=t[e],c=t[e+1],d=t[n]-l,u=t[n+1]-c;let f;if(d===0&&u===0)f=e;else{const h=((i-l)*d+(s-c)*u)/(d*d+u*u);if(h>1)f=n;else if(h>0){for(let m=0;m<r;++m)a[m]=ur(t[e+m],t[n+m],h);a.length=r;return}else f=e}for(let h=0;h<r;++h)a[h]=t[f+h];a.length=r}function ug(t,e,n,r,i){let s=t[e],a=t[e+1];for(e+=r;e<n;e+=r){const l=t[e],c=t[e+1],d=ti(s,a,l,c);d>i&&(i=d),s=l,a=c}return i}function fg(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){const l=n[s];i=ug(t,e,l,r,i),e=l}return i}function gW(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){const l=n[s];i=fg(t,e,l,r,i),e=l[l.length-1]}return i}function hg(t,e,n,r,i,s,a,l,c,d,u){if(e==n)return d;let f,h;if(i===0){if(h=ti(a,l,t[e],t[e+1]),h<d){for(f=0;f<r;++f)c[f]=t[e+f];return c.length=r,h}return d}u=u||[NaN,NaN];let m=e+r;for(;m<n;)if(uS(t,m-r,m,r,a,l,u),h=ti(a,l,u[0],u[1]),h<d){for(d=h,f=0;f<r;++f)c[f]=u[f];c.length=r,m+=r}else m+=r*Math.max((Math.sqrt(h)-Math.sqrt(d))/i|0,1);if(s&&(uS(t,n-r,e,r,a,l,u),h=ti(a,l,u[0],u[1]),h<d)){for(d=h,f=0;f<r;++f)c[f]=u[f];c.length=r}return d}function pg(t,e,n,r,i,s,a,l,c,d,u){u=u||[NaN,NaN];for(let f=0,h=n.length;f<h;++f){const m=n[f];d=hg(t,e,m,r,i,s,a,l,c,d,u),e=m}return d}function yW(t,e,n,r,i,s,a,l,c,d,u){u=u||[NaN,NaN];for(let f=0,h=n.length;f<h;++f){const m=n[f];d=pg(t,e,m,r,i,s,a,l,c,d,u),e=m[m.length-1]}return d}function fS(t,e,n,r){for(let i=0,s=n.length;i<s;++i)t[e++]=n[i];return e}function Ku(t,e,n,r){for(let i=0,s=n.length;i<s;++i){const a=n[i];for(let l=0;l<r;++l)t[e++]=a[l]}return e}function mg(t,e,n,r,i){i=i||[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=Ku(t,e,n[a],r);i[s++]=c,e=c}return i.length=s,i}function _W(t,e,n,r,i){i=i||[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=mg(t,e,n[a],r,i[s]);c.length===0&&(c[0]=e),i[s++]=c,e=c[c.length-1]}return i.length=s,i}function ii(t,e,n,r,i){i=i!==void 0?i:[];let s=0;for(let a=e;a<n;a+=r)i[s++]=t.slice(a,a+r);return i.length=s,i}function gc(t,e,n,r,i){i=i!==void 0?i:[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=n[a];i[s++]=ii(t,e,c,r,i[s]),e=c}return i.length=s,i}function gg(t,e,n,r,i){i=i!==void 0?i:[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=n[a];i[s++]=c.length===1&&c[0]===e?[]:gc(t,e,c,r,i[s]),e=c[c.length-1]}return i.length=s,i}function Xu(t,e,n,r,i,s,a){const l=(n-e)/r;if(l<3){for(;e<n;e+=r)s[a++]=t[e],s[a++]=t[e+1];return a}const c=new Array(l);c[0]=1,c[l-1]=1;const d=[e,n-r];let u=0;for(;d.length>0;){const f=d.pop(),h=d.pop();let m=0;const p=t[h],y=t[h+1],g=t[f],b=t[f+1];for(let E=h+r;E<f;E+=r){const C=t[E],_=t[E+1],w=m9(C,_,p,y,g,b);w>m&&(u=E,m=w)}m>i&&(c[(u-e)/r]=1,h+r<u&&d.push(h,u),u+r<f&&d.push(u,f))}for(let f=0;f<l;++f)c[f]&&(s[a++]=t[e+f*r],s[a++]=t[e+f*r+1]);return a}function hS(t,e,n,r,i,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c];a=Xu(t,e,u,r,i,s,a),l.push(a),e=u}return a}function Rs(t,e){return e*Math.round(t/e)}function bW(t,e,n,r,i,s,a){if(e==n)return a;let l=Rs(t[e],i),c=Rs(t[e+1],i);e+=r,s[a++]=l,s[a++]=c;let d,u;do if(d=Rs(t[e],i),u=Rs(t[e+1],i),e+=r,e==n)return s[a++]=d,s[a++]=u,a;while(d==l&&u==c);for(;e<n;){const f=Rs(t[e],i),h=Rs(t[e+1],i);if(e+=r,f==d&&h==u)continue;const m=d-l,p=u-c,y=f-l,g=h-c;if(m*g==p*y&&(m<0&&y<m||m==y||m>0&&y>m)&&(p<0&&g<p||p==g||p>0&&g>p)){d=f,u=h;continue}s[a++]=d,s[a++]=u,l=d,c=u,d=f,u=h}return s[a++]=d,s[a++]=u,a}function yg(t,e,n,r,i,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c];a=bW(t,e,u,r,i,s,a),l.push(a),e=u}return a}function wW(t,e,n,r,i,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c],f=[];a=yg(t,e,u,r,i,s,a,f),l.push(f),e=u[u.length-1]}return a}class yc extends $i{constructor(e,n){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}clone(){return new yc(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,n,r,i){return i<Cs(this.getExtent(),e,n)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ug(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,n,r,i))}getArea(){return cS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return ii(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(e){const n=[];return n.length=Xu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new yc(n,"XY")}getType(){return"LinearRing"}intersectsExtent(e){return!1}setCoordinates(e,n){this.setLayout(n,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Ku(this.flatCoordinates,0,e,this.stride),this.changed()}}class Xt extends $i{constructor(e,n){super(),this.setCoordinates(e,n)}clone(){const e=new Xt(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,n,r,i){const s=this.flatCoordinates,a=ti(e,n,s[0],s[1]);if(a<i){const l=this.stride;for(let c=0;c<l;++c)r[c]=s[c];return r.length=l,a}return i}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return RE(this.flatCoordinates,e)}getType(){return"Point"}intersectsExtent(e){return Vm(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fS(this.flatCoordinates,0,e,this.stride),this.changed()}}function CW(t,e,n,r,i){return!Wm(i,function(a){return!Ps(t,e,n,r,a[0],a[1])})}function Ps(t,e,n,r,i,s){let a=0,l=t[n-r],c=t[n-r+1];for(;e<n;e+=r){const d=t[e],u=t[e+1];c<=s?u>s&&(d-l)*(s-c)-(i-l)*(u-c)>0&&a++:u<=s&&(d-l)*(s-c)-(i-l)*(u-c)<0&&a--,l=d,c=u}return a!==0}function _g(t,e,n,r,i,s){if(n.length===0||!Ps(t,e,n[0],r,i,s))return!1;for(let a=1,l=n.length;a<l;++a)if(Ps(t,n[a-1],n[a],r,i,s))return!1;return!0}function EW(t,e,n,r,i,s){if(n.length===0)return!1;for(let a=0,l=n.length;a<l;++a){const c=n[a];if(_g(t,e,c,r,i,s))return!0;e=c[c.length-1]}return!1}function bg(t,e,n,r,i,s,a){let l,c,d,u,f,h,m;const p=i[s+1],y=[];for(let E=0,C=n.length;E<C;++E){const _=n[E];for(u=t[_-r],h=t[_-r+1],l=e;l<_;l+=r)f=t[l],m=t[l+1],(p<=h&&m<=p||h<=p&&p<=m)&&(d=(p-h)/(m-h)*(f-u)+u,y.push(d)),u=f,h=m}let g=NaN,b=-1/0;for(y.sort(oi),u=y[0],l=1,c=y.length;l<c;++l){f=y[l];const E=Math.abs(f-u);E>b&&(d=(u+f)/2,_g(t,e,n,r,d,p)&&(g=d,b=E)),u=f}return isNaN(g)&&(g=i[s]),a?(a.push(g,p,b),a):[g,p,b]}function pS(t,e,n,r,i){let s=[];for(let a=0,l=n.length;a<l;++a){const c=n[a];s=bg(t,e,c,r,i,2*a,s),e=c[c.length-1]}return s}function mS(t,e,n,r,i){let s;for(e+=r;e<n;e+=r)if(s=i(t.slice(e-r,e),t.slice(e,e+r)),s)return s;return!1}function Zu(t,e,n,r,i,s){return s=s??DE(Mr(),t,e,n,r),En(i,s)?s[0]>=i[0]&&s[2]<=i[2]||s[1]>=i[1]&&s[3]<=i[3]?!0:mS(t,e,n,r,function(a,l){return h9(i,a,l)}):!1}function SW(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){if(Zu(t,e,n[s],r,i))return!0;e=n[s]}return!1}function gS(t,e,n,r,i){return!!(Zu(t,e,n,r,i)||Ps(t,e,n,r,i[0],i[1])||Ps(t,e,n,r,i[0],i[3])||Ps(t,e,n,r,i[2],i[1])||Ps(t,e,n,r,i[2],i[3]))}function yS(t,e,n,r,i){if(!gS(t,e,n[0],r,i))return!1;if(n.length===1)return!0;for(let s=1,a=n.length;s<a;++s)if(CW(t,n[s-1],n[s],r,i)&&!Zu(t,n[s-1],n[s],r,i))return!1;return!0}function kW(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){const l=n[s];if(yS(t,e,l,r,i))return!0;e=l[l.length-1]}return!1}function vW(t,e,n,r){for(;e<n-r;){for(let i=0;i<r;++i){const s=t[e+i];t[e+i]=t[n-r+i],t[n-r+i]=s}e+=r,n-=r}}function wg(t,e,n,r){let i=0,s=t[n-r],a=t[n-r+1];for(;e<n;e+=r){const l=t[e],c=t[e+1];i+=(l-s)*(c+a),s=l,a=c}return i===0?void 0:i>0}function _S(t,e,n,r,i){i=i!==void 0?i:!1;for(let s=0,a=n.length;s<a;++s){const l=n[s],c=wg(t,e,l,r);if(s===0){if(i&&c||!i&&!c)return!1}else if(i&&!c||!i&&c)return!1;e=l}return!0}function xW(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){const l=n[s];if(!_S(t,e,l,r,i))return!1;l.length&&(e=l[l.length-1])}return!0}function Cg(t,e,n,r,i){i=i!==void 0?i:!1;for(let s=0,a=n.length;s<a;++s){const l=n[s],c=wg(t,e,l,r);(s===0?i&&c||!i&&!c:i&&!c||!i&&c)&&vW(t,e,l,r),e=l}return e}function bS(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s)e=Cg(t,e,n[s],r,i);return e}function TW(t,e){const n=[];let r=0,i=0,s;for(let a=0,l=e.length;a<l;++a){const c=e[a],d=wg(t,r,c,2);if(s===void 0&&(s=d),d===s)n.push(e.slice(i,a+1));else{if(n.length===0)continue;n[n.length-1].push(e[i])}i=a+1,r=c}return n}class si extends $i{constructor(e,n,r){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,n!==void 0&&r?(this.setFlatCoordinates(n,e),this.ends_=r):this.setCoordinates(e,n)}appendLinearRing(e){this.flatCoordinates?vo(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new si(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,n,r,i){return i<Cs(this.getExtent(),e,n)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(fg(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),pg(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,n,r,i))}containsXY(e,n){return _g(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,n)}getArea(){return dS(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let n;return e!==void 0?(n=this.getOrientedFlatCoordinates().slice(),Cg(n,0,this.ends_,this.stride,e)):n=this.flatCoordinates,gc(n,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const e=ei(this.getExtent());this.flatInteriorPoint_=bg(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new Xt(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new yc(this.flatCoordinates.slice(e===0?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,n=this.flatCoordinates,r=this.ends_,i=[];let s=0;for(let a=0,l=r.length;a<l;++a){const c=r[a],d=new yc(n.slice(s,c),e);i.push(d),s=c}return i}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;_S(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Cg(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const n=[],r=[];return n.length=yg(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new si(n,"XY",r)}getType(){return"Polygon"}intersectsExtent(e){return yS(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,n){this.setLayout(n,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const r=mg(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=r.length===0?0:r[r.length-1],this.changed()}}function wS(t){if(vs(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],r=t[2],i=t[3],s=[e,n,e,i,r,i,r,n,e,n];return new si(s,"XY",[s.length])}function qu(t,e,n,r,i,s,a){let l,c;const d=(n-e)/r;if(d===1)l=e;else if(d===2)l=e,c=i;else if(d!==0){let u=t[e],f=t[e+1],h=0;const m=[0];for(let g=e+r;g<n;g+=r){const b=t[g],E=t[g+1];h+=Math.sqrt((b-u)*(b-u)+(E-f)*(E-f)),m.push(h),u=b,f=E}const p=i*h,y=Z9(m,p);y<0?(c=(p-m[-y-2])/(m[-y-1]-m[-y-2]),l=e+(-y-2)*r):l=e+y*r}a=a>1?a:2,s=s||new Array(a);for(let u=0;u<a;++u)s[u]=l===void 0?NaN:c===void 0?t[l+u]:ur(t[l+u],t[l+r+u],c);return s}function Eg(t,e,n,r,i,s){if(n==e)return null;let a;if(i<t[e+r-1])return s?(a=t.slice(e,e+r),a[r-1]=i,a):null;if(t[n-1]<i)return s?(a=t.slice(n-r,n),a[r-1]=i,a):null;if(i==t[e+r-1])return t.slice(e,e+r);let l=e/r,c=n/r;for(;l<c;){const h=l+c>>1;i<t[(h+1)*r-1]?c=h:l=h+1}const d=t[l*r-1];if(i==d)return t.slice((l-1)*r,(l-1)*r+r);const u=t[(l+1)*r-1],f=(i-d)/(u-d);a=[];for(let h=0;h<r-1;++h)a.push(ur(t[(l-1)*r+h],t[l*r+h],f));return a.push(i),a}function MW(t,e,n,r,i,s,a){if(a)return Eg(t,e,n[n.length-1],r,i,s);let l;if(i<t[r-1])return s?(l=t.slice(0,r),l[r-1]=i,l):null;if(t[t.length-1]<i)return s?(l=t.slice(t.length-r),l[r-1]=i,l):null;for(let c=0,d=n.length;c<d;++c){const u=n[c];if(e!=u){if(i<t[e+r-1])return null;if(i<=t[u-1])return Eg(t,e,u,r,i,!1);e=u}}return null}function Sg(t,e,n,r){let i=t[e],s=t[e+1],a=0;for(let l=e+r;l<n;l+=r){const c=t[l],d=t[l+1];a+=Math.sqrt((c-i)*(c-i)+(d-s)*(d-s)),i=c,s=d}return a}class Nn extends $i{constructor(e,n){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}appendCoordinate(e){vo(this.flatCoordinates,e),this.changed()}clone(){const e=new Nn(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,n,r,i){return i<Cs(this.getExtent(),e,n)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ug(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,n,r,i))}forEachSegment(e){return mS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,n){return this.layout!="XYM"&&this.layout!="XYZM"?null:(n=n!==void 0?n:!1,Eg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n))}getCoordinates(){return ii(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,n){return qu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,this.stride)}getLength(){return Sg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(e){const n=[];return n.length=Xu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new Nn(n,"XY")}getType(){return"LineString"}intersectsExtent(e){return Zu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,this.getExtent())}setCoordinates(e,n){this.setLayout(n,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Ku(this.flatCoordinates,0,e,this.stride),this.changed()}}const Ir={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Ds=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"";Ds.includes("safari")&&!Ds.includes("chrom")&&(Ds.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(Ds));const RW=Ds.includes("webkit")&&!Ds.includes("edge"),CS=Ds.includes("macintosh"),PW=typeof devicePixelRatio<"u"?devicePixelRatio:1,ES=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,SS=typeof Image<"u"&&Image.prototype.decode,DW=typeof createImageBitmap=="function",kS=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}(),Ie={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function on(t,e,n,r){let i;return n&&n.length?i=n.shift():ES?i=new OffscreenCanvas(t||300,e||300):i=document.createElement("canvas"),t&&(i.width=t),e&&(i.height=e),i.getContext("2d",r)}let kg;function Ju(){return kg||(kg=on(1,1)),kg}function Qu(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function IW(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function NW(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function vS(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function xS(t){for(;t.lastChild;)t.lastChild.remove()}function OW(t,e){const n=t.childNodes;for(let r=0;;++r){const i=n[r],s=e[r];if(!i&&!s)break;if(i!==s){if(!i){t.appendChild(s);continue}if(!s){t.removeChild(i),--r;continue}t.insertBefore(s,i)}}}const vg=[NaN,NaN,NaN,0];let xg;function LW(){return xg||(xg=on(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),xg}const AW=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,FW=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,BW=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,VW=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function ef(t,e){return t.endsWith("%")?Number(t.substring(0,t.length-1))/e:Number(t)}function _c(t){throw new Error('failed to parse "'+t+'" as color')}function TS(t){if(t.toLowerCase().startsWith("rgb")){const s=t.match(FW)||t.match(AW)||t.match(BW);if(s){const a=s[4],l=100/255;return[Lt(ef(s[1],l)+.5|0,0,255),Lt(ef(s[2],l)+.5|0,0,255),Lt(ef(s[3],l)+.5|0,0,255),a!==void 0?Lt(ef(a,100),0,1):1]}_c(t)}if(t.startsWith("#")){if(VW.test(t)){const s=t.substring(1),a=s.length<=4?1:2,l=[0,0,0,255];for(let c=0,d=s.length;c<d;c+=a){let u=parseInt(s.substring(c,c+a),16);a===1&&(u+=u<<4),l[c/a]=u}return l[3]=l[3]/255,l}_c(t)}const e=LW();e.fillStyle="#abcdef";let n=e.fillStyle;e.fillStyle=t,e.fillStyle===n&&(e.fillStyle="#fedcba",n=e.fillStyle,e.fillStyle=t,e.fillStyle===n&&_c(t));const r=e.fillStyle;if(r.startsWith("#")||r.startsWith("rgba"))return TS(r);e.clearRect(0,0,1,1),e.fillRect(0,0,1,1);const i=Array.from(e.getImageData(0,0,1,1).data);return i[3]=ac(i[3]/255,3),i}function $W(t){return typeof t=="string"?t:Ng(t)}const zW=1024,bc={};let Tg=0;function WW(t){if(t.length===4)return t;const e=t.slice();return e[3]=1,e}function Mg(t){return t>.0031308?Math.pow(t,1/2.4)*269.025-14.025:t*3294.6}function Rg(t){return t>.2068965?Math.pow(t,3):(t-4/29)*(108/841)}function Pg(t){return t>10.314724?Math.pow((t+14.025)/269.025,2.4):t/3294.6}function Dg(t){return t>.0088564?Math.pow(t,1/3):t/(108/841)+4/29}function MS(t){const e=Pg(t[0]),n=Pg(t[1]),r=Pg(t[2]),i=Dg(e*.222488403+n*.716873169+r*.06060791),s=500*(Dg(e*.452247074+n*.399439023+r*.148375274)-i),a=200*(i-Dg(e*.016863605+n*.117638439+r*.865350722)),l=Math.atan2(a,s)*(180/Math.PI);return[116*i-16,Math.sqrt(s*s+a*a),l<0?l+360:l,t[3]]}function YW(t){const e=(t[0]+16)/116,n=t[1],r=t[2]*Math.PI/180,i=Rg(e),s=Rg(e+n/500*Math.cos(r)),a=Rg(e-n/200*Math.sin(r)),l=Mg(s*3.021973625-i*1.617392459-a*.404875592),c=Mg(s*-.943766287+i*1.916279586+a*.027607165),d=Mg(s*.069407491-i*.22898585+a*1.159737864);return[Lt(l+.5|0,0,255),Lt(c+.5|0,0,255),Lt(d+.5|0,0,255),t[3]]}function Ig(t){if(t==="none")return vg;if(bc.hasOwnProperty(t))return bc[t];if(Tg>=zW){let n=0;for(const r in bc)n++&3||(delete bc[r],--Tg)}const e=TS(t);e.length!==4&&_c(t);for(const n of e)isNaN(n)&&_c(t);return bc[t]=e,++Tg,e}function Na(t){return Array.isArray(t)?t:Ig(t)}function Ng(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let n=t[1];n!=(n|0)&&(n=n+.5|0);let r=t[2];r!=(r|0)&&(r=r+.5|0);const i=t[3]===void 0?1:Math.round(t[3]*1e3)/1e3;return"rgba("+e+","+n+","+r+","+i+")"}class GW extends fc{constructor(e,n,r,i){super(),this.extent=e,this.pixelRatio_=r,this.resolution=n,this.state=typeof i=="function"?Ie.IDLE:i,this.image_=null,this.loader=typeof i=="function"?i:null}changed(){this.dispatchEvent(Ye.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==Ie.IDLE&&this.loader){this.state=Ie.LOADING,this.changed();const e=this.getResolution(),n=Array.isArray(e)?e[0]:e;nS(()=>this.loader(this.getExtent(),n,this.getPixelRatio())).then(r=>{"image"in r&&(this.image_=r.image),"extent"in r&&(this.extent=r.extent),"resolution"in r&&(this.resolution=r.resolution),"pixelRatio"in r&&(this.pixelRatio_=r.pixelRatio),(r instanceof HTMLImageElement||DW&&r instanceof ImageBitmap||r instanceof HTMLCanvasElement||r instanceof HTMLVideoElement)&&(this.image_=r),this.state=Ie.LOADED}).catch(r=>{this.state=Ie.ERROR,console.error(r)}).finally(()=>this.changed())}}setImage(e){this.image_=e}setResolution(e){this.resolution=e}}function jW(t,e,n){const r=t;let i=!0,s=!1,a=!1;const l=[Gu(r,Ye.LOAD,function(){a=!0,s||e()})];return r.src&&SS?(s=!0,r.decode().then(function(){i&&e()}).catch(function(c){i&&(a?e():n())})):l.push(Gu(r,Ye.ERROR,n)),function(){i=!1,l.forEach(Tt)}}function HW(t,e){return new Promise((n,r)=>{function i(){a(),n(t)}function s(){a(),r(new Error("Image load error"))}function a(){t.removeEventListener("load",i),t.removeEventListener("error",s)}t.addEventListener("load",i),t.addEventListener("error",s)})}function UW(t,e){return e&&(t.src=e),t.src&&SS?new Promise((n,r)=>t.decode().then(()=>n(t)).catch(i=>t.complete&&t.width?n(t):r(i))):HW(t)}class KW{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const n in this.cache_){const r=this.cache_[n];!(e++&3)&&!r.hasListener()&&(delete this.cache_[n],delete this.patternCache_[n],--this.cacheSize_)}}}get(e,n,r){const i=Og(e,n,r);return i in this.cache_?this.cache_[i]:null}getPattern(e,n,r){const i=Og(e,n,r);return i in this.patternCache_?this.patternCache_[i]:null}set(e,n,r,i,s){const a=Og(e,n,r),l=a in this.cache_;this.cache_[a]=i,s&&(i.getImageState()===Ie.IDLE&&i.load(),i.getImageState()===Ie.LOADING?i.ready().then(()=>{this.patternCache_[a]=Ju().createPattern(i.getImage(1),"repeat")}):this.patternCache_[a]=Ju().createPattern(i.getImage(1),"repeat")),l||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function Og(t,e,n){const r=n?Na(n):"null";return e+":"+t+":"+r}const Nr=new KW;let wc=null;class RS extends fc{constructor(e,n,r,i,s){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=r,this.canvas_={},this.color_=s,this.imageState_=i===void 0?Ie.IDLE:i,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=n,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===Ie.LOADED){wc||(wc=on(1,1,void 0,{willReadFrequently:!0})),wc.drawImage(this.image_,0,0);try{wc.getImageData(0,0,1,1),this.tainted_=!1}catch{wc=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(Ye.CHANGE)}handleImageError_(){this.imageState_=Ie.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=Ie.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],n=this.size_[1],r=on(e,n);r.fillRect(0,0,e,n),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===Ie.IDLE){this.image_||this.initializeImage_(),this.imageState_=Ie.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&UW(this.image_,this.src_).then(e=>{this.image_=e,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==Ie.LOADED)return;const n=this.image_,r=on(Math.ceil(n.width*e),Math.ceil(n.height*e)),i=r.canvas;r.scale(e,e),r.drawImage(n,0,0),r.globalCompositeOperation="multiply",r.fillStyle=$W(this.color_),r.fillRect(0,0,i.width/e,i.height/e),r.globalCompositeOperation="destination-in",r.drawImage(n,0,0),this.canvas_[e]=i}ready(){return this.ready_||(this.ready_=new Promise(e=>{if(this.imageState_===Ie.LOADED||this.imageState_===Ie.ERROR)e();else{const n=()=>{(this.imageState_===Ie.LOADED||this.imageState_===Ie.ERROR)&&(this.removeEventListener(Ye.CHANGE,n),e())};this.addEventListener(Ye.CHANGE,n)}})),this.ready_}}function Lg(t,e,n,r,i,s){let a=e===void 0?void 0:Nr.get(e,n,i);return a||(a=new RS(t,t&&"src"in t?t.src||void 0:e,n,r,i),Nr.set(e,n,i,a,s)),s&&a&&!Nr.getPattern(e,n,i)&&Nr.set(e,n,i,a,s),a}function Mo(t){return t?Array.isArray(t)?Ng(t):typeof t=="object"&&"src"in t?XW(t):t:null}function XW(t){if(!t.offset||!t.size)return Nr.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=Nr.getPattern(e,void 0,t.color);if(n)return n;const r=Nr.get(t.src,"anonymous",null);if(r.getImageState()!==Ie.LOADED)return null;const i=on(t.size[0],t.size[1]);return i.drawImage(r.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),Lg(i.canvas,e,void 0,Ie.LOADED,t.color,!0),Nr.getPattern(e,void 0,t.color)}class PS{drawCustom(e,n,r,i,s){}drawGeometry(e){}setStyle(e){}drawCircle(e,n,r){}drawFeature(e,n,r){}drawGeometryCollection(e,n,r){}drawLineString(e,n,r){}drawMultiLineString(e,n,r){}drawMultiPoint(e,n,r){}drawMultiPolygon(e,n,r){}drawPoint(e,n,r){}drawPolygon(e,n,r){}drawText(e,n,r){}setFillStrokeStyle(e,n){}setImageStyle(e,n){}setTextStyle(e,n){}}const DS="10px sans-serif",Xn="#000",Oa="round",ai=[],li=0,La="round",Cc=10,Ec="#000",Sc="center",tf="middle",Is=[0,0,0,0],kc=1,ci=new oo;let Aa=null,Ag;const Fg={},ZW=function(){const e="32px ",n=["monospace","serif"],r=n.length,i="wmytzilWMYTZIL@#/&?$%10";let s,a;function l(d,u,f){let h=!0;for(let m=0;m<r;++m){const p=n[m];if(a=nf(d+" "+u+" "+e+p,i),f!=p){const y=nf(d+" "+u+" "+e+f+","+p,i);h=h&&y!=a}}return!!h}function c(){let d=!0;const u=ci.getKeys();for(let f=0,h=u.length;f<h;++f){const m=u[f];if(ci.get(m)<100){const[p,y,g]=m.split(`
73
+ </defs>`,Mz=()=>{let t=o.reactive({});return{gridItemData:t,registerGridItem:(i,s)=>{var l;if(!s)return;t[i]||(t[i]={labels:[],maxLength:0,maxWidth:0}),(l=t[i])==null||l.labels.push(s),t[i].maxLength=Math.max(s.length,t[i].maxLength);const a=Math.ceil(ws(s,14));t[i].maxWidth=Math.max(a||0,t[i].maxWidth)},getColumnData:i=>t[i]||{},clearGridItemData:()=>{t=o.reactive({})}}},Rz={class:"multi-grid"},Pz=o.defineComponent({name:"MultiGrid",__name:"MultiGrid",setup(t){const{getColumnData:e,registerGridItem:n,clearGridItemData:r,gridItemData:i}=Mz();return o.provide("registerGridItem",n),o.provide("getColumnData",e),o.provide("clearGridItemData",r),o.provide("gridItemData",i),o.provide("isMultiGrid",o.ref(!0)),(s,a)=>(o.openBlock(),o.createElementBlock("div",Rz,[o.renderSlot(s.$slots,"default")]))}}),aE=Pt(oE),Lm=Pt(Cz),lE=Pt(Pz),Dz={class:"info-pair"},Iz={class:"info-pair--title"},Nz={key:0,class:"info-pair--title--tip"},cE=Pt(zt(o.defineComponent({name:"zh-info-pair",__name:"InfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createElementBlock("div",Dz,[o.createElementVNode("div",Iz,[o.createTextVNode(o.toDisplayString(e.title)+" ",1),n.tip?(o.openBlock(),o.createElementBlock("div",Nz,o.toDisplayString(n.tip),1)):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:o.normalizeClass(["info-pair--value",{ellipsis:n.ellipsis}])},[o.renderSlot(n.$slots,"value",{},()=>[o.createTextVNode(o.toDisplayString(e.value||o.unref(Ut)),1)],!0)],2)]))}}),[["__scopeId","data-v-0a3c35f5"]])),dE=Pt(zt(o.defineComponent({name:"zh-input",__name:"Input",props:o.mergeModels({style:{},class:{default:"zh-default-input"},size:{default:"default"},className:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.useAttrs(),n=t,r=o.useModel(t,"modelValue"),i=()=>{(e.max||Number(e.max)===0)&&Number(r.value)>=e.max&&(r.value=e.max.toString()),(e.min||Number(e.min)===0)&&Number(r.value)<=e.min&&(r.value=e.min.toString())};return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(n.class)},[o.createVNode(o.unref(Dn),o.mergeProps(s.$attrs,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value=l),size:s.size,onBlur:i}),o.createSlots({_:2},[o.renderList(s.$slots,(l,c)=>({name:l,fn:o.withCtx(d=>[o.renderSlot(s.$slots,l,o.normalizeProps(o.guardReactiveProps(d)),void 0,!0)])}))]),1040,["modelValue","size"])],2))}}),[["__scopeId","data-v-7c614d14"]])),uE=zt(o.defineComponent({name:"zh-input-number",__name:"InputNumber",props:{style:{},class:{},modelValue:{}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,r=e,i=o.useAttrs(),s=(u,f=0,h=0,m=0)=>{let p=(u==null?void 0:u.toString())??"",y,g,b;return h===0?(p=p.replace(/[^\d]/g,""),p=p.replace(/^0\d+/g,"0"),f!==0&&(p=p.slice(0,f))):(p=p.replace(/[^\-\d.]/g,""),p=p.replace(/^[^\-\d]/g,""),p=p.replace(/\.{2}/g,"."),p=p.replace(/^0(\d+)/g,"$1"),y=p.split(".")||[],y.length>1?(f===0?g=y[0]:g=y[0].slice(0,f),b=y[1].slice(0,h),p=g+"."+b):f!==0&&(p=p.slice(0,f))),m!==0&&(p=p.slice(0,m)),p},a=()=>{n.modelValue===""||n.modelValue===void 0||(i.max&&Number(n.modelValue)>i.max&&r("update:modelValue",i.max.toString()),i.min&&Number(n.modelValue)<i.min&&r("update:modelValue",i.min.toString()))},l=u=>u?s(u,i.integer,i.precision,i.maxLength):"",c=u=>{/^\d+\.0*$/.test((u==null?void 0:u.toString())||"")||u===""?r("update:modelValue",l(u)):r("update:modelValue",Number(l(u)))},d=u=>{r("change",l(u))};return(u,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["input-number",n.class]),style:o.normalizeStyle(n.style)},[o.createVNode(o.unref(Dn),o.mergeProps(u.$attrs,{"model-value":n.modelValue,"onUpdate:modelValue":c,onBlur:a,style:{width:"100%"},formatter:l,onChange:d}),o.createSlots({_:2},[o.renderList(Object.keys(u.$slots),h=>({name:h,fn:o.withCtx(m=>[o.renderSlot(u.$slots,h,o.normalizeProps(o.guardReactiveProps(m)),void 0,!0)])}))]),1040,["model-value"])],6))}}),[["__scopeId","data-v-791996cc"]]),fE=Pt(uE),Oz={class:"loading-box"},hE=Pt(zt(o.defineComponent({name:"zh-loading",__name:"Loading",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Oz,n[0]||(n[0]=[o.createElementVNode("div",{class:"loading-wrap"},[o.createElementVNode("span",{class:"dot dot-spin"},[o.createElementVNode("i"),o.createElementVNode("i"),o.createElementVNode("i"),o.createElementVNode("i")])],-1)])))}}),[["__scopeId","data-v-d30f17c3"]])),Am={type:"",showCancelButton:!0,showConfirmButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",closeOnClickModal:!1,closeOnPressEscape:!1,showClose:!0,draggable:!1,center:!1,roundButton:!1},vu={confirm(t,e,n={}){return Qp.confirm(t,e,{...Am,customClass:"zh-message-box zh-message-confirm",...n})},alert(t,e,n={}){return Qp.alert(t,e,{...Am,...n,showCancelButton:!1,customClass:"zh-message-box zh-message-alert"})},prompt(t,e,n={}){return Qp.prompt(t,e,{...Am,...n,customClass:"zh-message-box zh-message-prompt"})}},pE=vu.confirm,mE=vu.alert,gE=vu.prompt,yE=Pt(vu),_E=Pt(zt(o.defineComponent({name:"zh-money-input",__name:"MoneyInput",props:o.mergeModels({style:{},class:{},showTooltip:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=o.useModel(t,"modelValue"),r=o.computed(()=>{if(n.value)return nz(n.value)&&Number(n.value)>=1e3?rz(Number(n.value)):""}),i=o.ref(!1);return(s,a)=>(o.openBlock(),o.createBlock(o.unref(ar),{effect:"dark",content:r.value,placement:"top",visible:s.showTooltip&&i.value&&!!r.value},{default:o.withCtx(()=>[o.createVNode(uE,o.mergeProps(s.$attrs,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),style:e.style,class:e.class,onFocus:a[1]||(a[1]=()=>i.value=!0),onBlur:a[2]||(a[2]=()=>i.value=!1)}),o.createSlots({_:2},[o.renderList(Object.keys(s.$slots),l=>({name:l,fn:o.withCtx(c=>[o.renderSlot(s.$slots,l,o.normalizeProps(o.guardReactiveProps(c)),void 0,!0)])}))]),1040,["modelValue","style","class"])]),_:3},8,["content","visible"]))}}),[["__scopeId","data-v-789db919"]])),Lz={class:"page-head"},Az={class:"left-wrap"},Fz={class:"page-name"},Bz={class:"value"},Vz={class:"other-inform"},$z={class:"label"},zz={class:"value mg-r-24"},Wz={class:"status"},Yz=Pt(zt(o.defineComponent({name:"zh-page-head-panel",__name:"PageHeadPanel",props:{dataSource:{}},setup(t){const e=t,{name:n,no:r,status:i,extendLabel:s,extendValue:a}=o.toRefs(e.dataSource);return(l,c)=>(o.openBlock(),o.createElementBlock("div",Lz,[o.createElementVNode("div",Az,[o.createElementVNode("span",Fz,o.toDisplayString(o.unref(n)),1),o.createElementVNode("div",null,[c[0]||(c[0]=o.createElementVNode("span",{class:"label mg-l-16"},"编号",-1)),o.createElementVNode("span",Bz,o.toDisplayString(o.unref(r)),1)])]),o.createElementVNode("div",Vz,[o.renderSlot(l.$slots,"extend",{},()=>[o.createElementVNode("span",$z,o.toDisplayString(o.unref(s)),1),o.createElementVNode("span",zz,o.toDisplayString(o.unref(a)),1)],!0),o.createElementVNode("span",Wz,o.toDisplayString(o.unref(i)),1)])]))}}),[["__scopeId","data-v-9f56969d"]])),bE=Pt(zt(o.defineComponent({name:"zh-tool-tips",__name:"ToolTips",props:{placement:{default:"top"},content:{}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createBlock(o.unref(ar),{class:"box-item",effect:"dark",content:e.content,placement:e.placement},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},()=>[r[0]||(r[0]=o.createElementVNode("i",{class:"iconfont icon-Frame2"},null,-1))],!0)]),_:3},8,["content","placement"]))}}),[["__scopeId","data-v-e5a0ae09"]])),wE=Pt(o.defineComponent({name:"ZhBaseInfo",__name:"BaseInfo",props:{contentWidth:{default:void 0},labelWidth:{default:"70px"},infoDirection:{default:"horizontal"},cols:{default:4},gap:{default:16}},setup(t){const e=t,n=o.ref(),r=o.ref(),i=o.ref();o.provide("infoLabelWidth",n),o.provide("infoContentWidth",r),o.provide("infoDirection",i);function s(){n.value=e.labelWidth}function a(){r.value=e.contentWidth}function l(){i.value=e.infoDirection}return o.watch(()=>e.contentWidth,()=>a(),{immediate:!0}),o.watch(()=>e.labelWidth,()=>s(),{immediate:!0}),o.watch(()=>e.infoDirection,()=>l(),{immediate:!0}),(c,d)=>(o.openBlock(),o.createBlock(oE,{cols:c.cols,gap:c.gap},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default")]),_:3},8,["cols","gap"]))}})),Gz={class:"common-card"},jz={class:"detail-header"},Hz={class:"detail-header--left"},Uz={class:"title common-title"},Kz={class:"info-pair--label"},Xz={class:"info-pair--value"},Zz={key:1,class:"detail-header--right"},qz={class:"info-pair--label"},Jz={class:"info-pair--value"},CE=Pt(zt(o.defineComponent({name:"ZhDetailHeader",__name:"DetailHeader",props:{title:{},leftInfos:{},rightInfos:{},stateMeta:{},stateDesc:{}},setup(t){const e=o.useSlots(),n=t;return(r,i)=>{var s,a;return o.openBlock(),o.createElementBlock("div",Gz,[o.createElementVNode("div",null,[o.renderSlot(r.$slots,"menu",{},void 0,!0)]),o.createElementVNode("div",jz,[o.createElementVNode("div",Hz,[o.createElementVNode("div",Uz,o.toDisplayString(n.title),1),o.renderSlot(r.$slots,"extra-info",{},void 0,!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.leftInfos,l=>(o.openBlock(),o.createElementBlock("div",{class:"info-pair",key:l.value},[o.createElementVNode("div",Kz,o.toDisplayString(l.label),1),o.createElementVNode("div",Xz,o.toDisplayString(l.value??o.unref(Ut)),1)]))),128))]),o.renderSlot(r.$slots,"default",{},void 0,!0),o.unref(e)["right-infos"]?o.renderSlot(r.$slots,"right-infos",{key:0},void 0,!0):(o.openBlock(),o.createElementBlock("div",Zz,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rightInfos,l=>(o.openBlock(),o.createElementBlock("div",{class:"info-pair",key:l.value},[o.createElementVNode("div",qz,o.toDisplayString(l.label),1),o.createElementVNode("div",Jz,o.toDisplayString(l.value??o.unref(Ut)),1)]))),128)),r.stateDesc||r.stateMeta?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["state common-title",(s=r.stateMeta)==null?void 0:s.state])},o.toDisplayString(r.stateDesc||((a=r.stateMeta)==null?void 0:a.intro)),3)):o.createCommentVNode("",!0)]))])])}}}),[["__scopeId","data-v-8b185816"]]));var to=(t=>(t.AUTOCOMPLETE="autocomplete",t.FORMAT="format",t.TEXT="text",t.INDEX="index",t.SELECTION="selection",t))(to||{});const Qz={key:0},e9={key:1,class:"col-edit-header"},t9=["onClick"],n9={key:0},r9={class:"header-operation-container"},o9={class:"operation-container"},i9=["onClick"],EE="$ZH_DIV$",SE=Pt(zt(o.defineComponent({name:"zh-diy-data-table",__name:"DiyDataTable",props:o.mergeModels({isEdit:{type:Boolean,default:!1},maxRowLength:{default:50},maxColLength:{default:10},defaultMinWidth:{default:120},beforeAddRow:{},addRowText:{default:"增行"},addColumnText:{default:"增列"},customAddRow:{type:Boolean,default:!0},customAddColumn:{type:Boolean,default:!0},operationOption:{},canOnlyEditNewlyColumnHeader:{type:Boolean,default:!1},rowKey:{default:"id"}},{rawData:{required:!0},rawDataModifiers:{}}),emits:["update:rawData"],setup(t,{expose:e}){const n=t,r=o.useModel(t,"rawData"),i=o.ref([]),s=o.computed(()=>n.rowKey||"id");let a=0;const l=o.ref({isShow:!0,width:150,customAddRow:!0,addRowText:"增行",customAddColumn:!0,addColumnText:"增列"}),c=o.computed(()=>n.operationOption?{...l.value,...n.operationOption}:{...l.value,customAddRow:n.customAddRow!==void 0?n.customAddRow:l.value.customAddRow,addRowText:n.addRowText!==void 0?n.addRowText:l.value.addRowText,customAddColumn:n.customAddColumn!==void 0?n.customAddColumn:l.value.customAddColumn,addColumnText:n.addColumnText!==void 0?n.addColumnText:l.value.addColumnText}),d=()=>(a++,`key_${Date.now()}_${a}_${Math.random().toString(36).substring(2,11)}`),u=()=>{if(r.value.length===n.maxRowLength){nu({message:`最多添加${n.maxRowLength}行`,type:"warning"});return}const v=s.value;let T={[v]:d()};n.beforeAddRow&&(T=n.beforeAddRow(r.value),T[v]||(T[v]=d())),r.value.push(T)},f=()=>{if(i.value.filter(M=>M.isAdd).length>=n.maxColLength){nu({message:`最多添加${n.maxColLength}列`,type:"warning"});return}const T=String(Date.now());i.value.push({prop:T,label:"",isEditHeader:!0,isAdd:!0,maxlength:15,minWidth:150,headerMaxlength:15,isNewlyColumn:!0})},h=(v,T)=>{i.value.splice(v,1),r.value.forEach(M=>{delete M[T.prop]})},m=v=>{v===0&&i.value.forEach(T=>{T.isSameData&&(r.value[1][T.prop]=r.value[0][T.prop])}),r.value.splice(v,1)},p=(v,T,M)=>{T(M.completeList.filter(D=>D.includes(v)).map(D=>({value:D})))},y=v=>[{validator:(T,M,D)=>{if(!i.value[v].label){D(new Error("请输入表头"));return}D()},message:"请输入表头",trigger:["blur","change"]}],g=(v,T,M)=>{const D=[];return v.required&&D.push({required:!0,message:v.requiredMessage||v.label+"不能为空",trigger:v.slot?void 0:"blur"}),v.varidate&&D.push({validator:(I,A,N)=>{const P=v.varidate(A,T,M);P!==!0?N(new Error(P)):N()}}),D},b=(v,T)=>{let M=v;return T.isSameData&&(M=r.value[0]||Ut),T.formatter?T.showFormatter?T.type===to.FORMAT?T.showFormatter(T.formatter(M)):T.showFormatter(M[T.prop]):T.formatter(M[T.prop]):M[T.prop]||Ut},E=o.ref(),C=(v,T,M)=>{if(v.headerRender){const{column:D,...I}=M,A={$index:T,column:D,...I};return()=>v.headerRender(A)}return null},_=[to.INDEX,to.SELECTION],w={width:132,type:to.INDEX,prop:"index",label:"序号",fixed:"left",isShow:!0},S={width:55,type:to.SELECTION,isShow:!1},k=o.ref([w,S]),x=o.computed(()=>k.value.filter(v=>v.isShow));return e({initData:(v,T)=>{_.forEach((D,I)=>{const A=(T||[]).find(N=>N.type===D);A&&(k.value[I]={...A,isShow:A.isShow!==!1})}),v=Mn(v)||[];const M=s.value;v.length===0?v.push({[M]:d()}):v.forEach(D=>{D[M]||(D[M]=d())}),T=[...T.filter(D=>!_.includes(D.type))];for(const D in v[0])if(!T.some(I=>I.prop===D)){const I=Date.now()+D,A=D.split(EE);if(A.length!==2){console.log("keySplit 失败",D);continue}const N=Number(A[1]);T[N]={prop:D,isEditHeader:!0,label:A[0],key:I,isAdd:!0,maxlength:15,headerMaxlength:15,isNewlyColumn:!1}}r.value=v,i.value=T.filter(D=>D)},getData:async()=>{await E.value.validate();for(const T in i.value){const M=i.value[T];for(const D of i.value)if(M.prop!==D.prop&&M.label===D.label){nu({message:"所有列的表头不可重复",type:"warning"});return}}const v=Mn(r.value);for(const T in v){const M=v[T];for(const D in i.value){const I=i.value[D];if(I.isSameData&&T!=="0"&&(M[I.prop]=v[0][I.prop]),I.varidate&&!I.varidate(M[I.prop],M,T))return;if(I.isAdd){const A=M[I.prop];delete M[I.prop];const N=I.label+EE+D;M[N]=A}I.formatter&&I.type===to.FORMAT&&(M[I.prop]=I.formatter(M))}}return{data:v,columns:i.value}},updateColumn:(v,T)=>{const M=i.value[v].prop;if(i.value[v]=T,M!==T.prop)for(const D of r.value)D[T.prop]=D[M],delete D[M]},resetColumns:(v,T=!1)=>{const D=i.value.filter(A=>!A.isAdd).reduce((A,N)=>(v.some(P=>P.prop===N.prop)||A.push(N.prop),A),[]);r.value.forEach(A=>{D.forEach(N=>{delete A[N]})});const I=i.value.filter(A=>A.isAdd);T?i.value=[...v]:i.value=[...v,...I]},onAddRow:u,onAddColumn:f,formRef:E,getColumns:()=>i.value}),(v,T)=>(o.openBlock(),o.createBlock(o.unref(Wb),{class:"diy-data-table",model:t.rawData,ref_key:"formRef",ref:E},{default:o.withCtx(()=>[o.createVNode(o.unref(Jp),o.mergeProps({class:"diy-data-table-table",data:r.value,"row-key":s.value},v.$attrs),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,(M,D)=>(o.openBlock(),o.createBlock(o.unref(Ii),o.mergeProps({key:`special-${D}`,ref_for:!0},M),null,16))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(M,D)=>(o.openBlock(),o.createBlock(o.unref(Ii),{key:M.key||D,prop:M.prop,label:M.label,width:M.width,"min-width":M.minWidth||v.defaultMinWidth,fixed:M.fixed},{header:o.withCtx(I=>[M.headerRender?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(C(M,D,I)),{key:0})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[v.isEdit?M.isEditHeader&&v.canOnlyEditNewlyColumnHeader&&M.isNewlyColumn||M.isEditHeader&&!v.canOnlyEditNewlyColumnHeader?(o.openBlock(),o.createElementBlock("div",e9,[o.createVNode(o.unref(qh),{prop:`columns.${D}`,rules:y(D)},{default:o.withCtx(()=>[o.createVNode(o.unref(Dn),{modelValue:M.label,"onUpdate:modelValue":A=>M.label=A,maxlength:M.headerMaxlength||20,placeholder:"请输入表头"},null,8,["modelValue","onUpdate:modelValue","maxlength"])]),_:2},1032,["prop","rules"]),M.isAdd?(o.openBlock(),o.createElementBlock("i",{key:0,class:"iconfont icon-close",onClick:A=>h(D,M)},null,8,t9)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass({"is-required-label":M.required})},o.toDisplayString(M.label),3)):(o.openBlock(),o.createElementBlock("div",Qz,o.toDisplayString(M.label),1))],64))]),default:o.withCtx(I=>[n.isEdit&&(!M.isSameData||I.$index===0)&&M.type!==o.unref(to).TEXT&&!I.row.disabled?(o.openBlock(),o.createBlock(o.unref(qh),{key:0,prop:`${I.$index}.${M.prop}`,rules:g(M,I.row,I.$index),class:o.normalizeClass(["col-edit-container",{"close-padding":M.isAdd}])},{default:o.withCtx(()=>[M.type===o.unref(to).FORMAT&&M.formatter?(o.openBlock(),o.createElementBlock("div",n9,o.toDisplayString(M.showFormatter?M.showFormatter(M.formatter(I.row)):M.formatter(I.row)),1)):M.type===o.unref(to).AUTOCOMPLETE?(o.openBlock(),o.createBlock(o.unref(kL),{key:1,modelValue:I.row[M.prop],"onUpdate:modelValue":A=>I.row[M.prop]=A,placeholder:M.placeholder||"请输入","fetch-suggestions":(A,N)=>p(A,N,M),maxlength:M.maxlength||20},null,8,["modelValue","onUpdate:modelValue","placeholder","fetch-suggestions","maxlength"])):M.slot?o.renderSlot(v.$slots,M.slot,{key:2,row:I.row,$index:I.$index},void 0,!0):(o.openBlock(),o.createBlock(o.unref(Dn),{key:3,modelValue:I.row[M.prop],"onUpdate:modelValue":A=>I.row[M.prop]=A,placeholder:M.placeholder||"请输入",formatter:M.formatter,parser:M.parser,maxlength:M.maxlength||20,"show-word-limit":M.showWordLimit},null,8,["modelValue","onUpdate:modelValue","placeholder","formatter","parser","maxlength","show-word-limit"]))]),_:2},1032,["prop","rules","class"])):M.slot?o.renderSlot(v.$slots,M.slot,{key:1,row:I.row,$index:I.$index},void 0,!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(b(I.row,M)),1)],64))]),_:2},1032,["prop","label","width","min-width","fixed"]))),128)),n.isEdit&&c.value.isShow?(o.openBlock(),o.createBlock(o.unref(Ii),{key:0,width:c.value.width,fixed:"right"},{header:o.withCtx(()=>[o.createElementVNode("div",r9,[c.value.customAddRow?(o.openBlock(),o.createBlock(o.unref(cr),{key:0,type:"primary",link:"",onClick:u},{default:o.withCtx(()=>[T[0]||(T[0]=o.createElementVNode("i",{class:"iconfont icon-Frame1"},null,-1)),o.createTextVNode(o.toDisplayString(c.value.addRowText),1)]),_:1})):o.createCommentVNode("",!0),c.value.customAddColumn?(o.openBlock(),o.createBlock(o.unref(cr),{key:1,type:"primary",link:"",onClick:f},{default:o.withCtx(()=>[T[1]||(T[1]=o.createElementVNode("i",{class:"iconfont icon-Frame-11"},null,-1)),o.createTextVNode(o.toDisplayString(c.value.addColumnText),1)]),_:1})):o.createCommentVNode("",!0)])]),default:o.withCtx(({$index:M,row:D})=>[o.createElementVNode("div",o9,[v.$slots.operation?o.renderSlot(v.$slots,"operation",{key:0,row:r.value[M],$index:M},void 0,!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[r.value.length>1&&!D.disabled?(o.openBlock(),o.createElementBlock("i",{key:0,class:"iconfont icon-close",onClick:I=>m(M)},null,8,i9)):o.createCommentVNode("",!0)],64))])]),_:3},8,["width"])):o.createCommentVNode("",!0)]),_:3},16,["data","row-key"])]),_:3},8,["model"]))}}),[["__scopeId","data-v-5318a46d"]])),xu="ol-hidden",s9="ol-selectable",oc="ol-unselectable",Fm="ol-control",kE="ol-collapsed",a9=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z0-9]+?)\\s*$`].join(""),"i"),vE=["style","variant","weight","size","lineHeight","family"],xE=function(t){const e=t.match(a9);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let r=0,i=vE.length;r<i;++r){const s=e[r+1];s!==void 0&&(n[vE[r]]=s)}return n.families=n.family.split(/,\s?/),n};function TE(...t){console.warn(...t)}const hn={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Bm(t){const e=Mr();for(let n=0,r=t.length;n<r;++n)sc(e,t[n]);return e}function l9(t,e,n){const r=Math.min.apply(null,t),i=Math.min.apply(null,e),s=Math.max.apply(null,t),a=Math.max.apply(null,e);return So(r,i,s,a,n)}function Tu(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function ME(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function Cs(t,e,n){let r,i;return e<t[0]?r=t[0]-e:t[2]<e?r=e-t[2]:r=0,n<t[1]?i=t[1]-n:t[3]<n?i=n-t[3]:i=0,r*r+i*i}function Es(t,e){return Vm(t,e[0],e[1])}function Ss(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function Vm(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function $m(t,e){const n=t[0],r=t[1],i=t[2],s=t[3],a=e[0],l=e[1];let c=hn.UNKNOWN;return a<n?c=c|hn.LEFT:a>i&&(c=c|hn.RIGHT),l<r?c=c|hn.BELOW:l>s&&(c=c|hn.ABOVE),c===hn.UNKNOWN&&(c=hn.INTERSECTING),c}function Mr(){return[1/0,1/0,-1/0,-1/0]}function So(t,e,n,r,i){return i?(i[0]=t,i[1]=e,i[2]=n,i[3]=r,i):[t,e,n,r]}function Ea(t){return So(1/0,1/0,-1/0,-1/0,t)}function RE(t,e){const n=t[0],r=t[1];return So(n,r,n,r,e)}function zm(t,e,n,r,i){const s=Ea(i);return DE(s,t,e,n,r)}function ic(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function PE(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function sc(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function DE(t,e,n,r,i){for(;n<r;n+=i)c9(t,e[n],e[n+1]);return t}function c9(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function Wm(t,e){let n;return n=e(Mu(t)),n||(n=e(Ru(t)),n)||(n=e(Pu(t)),n)||(n=e(ks(t)),n)?n:!1}function Ym(t){let e=0;return vs(t)||(e=gt(t)*pn(t)),e}function Mu(t){return[t[0],t[1]]}function Ru(t){return[t[2],t[1]]}function ei(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function d9(t,e){let n;if(e==="bottom-left")n=Mu(t);else if(e==="bottom-right")n=Ru(t);else if(e==="top-left")n=ks(t);else if(e==="top-right")n=Pu(t);else throw new Error("Invalid corner");return n}function Gm(t,e,n,r,i){const[s,a,l,c,d,u,f,h]=IE(t,e,n,r);return So(Math.min(s,l,d,f),Math.min(a,c,u,h),Math.max(s,l,d,f),Math.max(a,c,u,h),i)}function IE(t,e,n,r){const i=e*r[0]/2,s=e*r[1]/2,a=Math.cos(n),l=Math.sin(n),c=i*a,d=i*l,u=s*a,f=s*l,h=t[0],m=t[1];return[h-c+f,m-d-u,h-c-f,m-d+u,h+c-f,m+d+u,h+c+f,m+d-u,h-c+f,m-d-u]}function pn(t){return t[3]-t[1]}function Fi(t,e,n){const r=n||Mr();return En(t,e)?(t[0]>e[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]<e[2]?r[2]=t[2]:r[2]=e[2],t[3]<e[3]?r[3]=t[3]:r[3]=e[3]):Ea(r),r}function ks(t){return[t[0],t[3]]}function Pu(t){return[t[2],t[3]]}function gt(t){return t[2]-t[0]}function En(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function vs(t){return t[2]<t[0]||t[3]<t[1]}function u9(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function f9(t,e){const n=(t[2]-t[0])/2*(e-1),r=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=r,t[3]+=r}function h9(t,e,n){let r=!1;const i=$m(t,e),s=$m(t,n);if(i===hn.INTERSECTING||s===hn.INTERSECTING)r=!0;else{const a=t[0],l=t[1],c=t[2],d=t[3],u=e[0],f=e[1],h=n[0],m=n[1],p=(m-f)/(h-u);let y,g;s&hn.ABOVE&&!(i&hn.ABOVE)&&(y=h-(m-d)/p,r=y>=a&&y<=c),!r&&s&hn.RIGHT&&!(i&hn.RIGHT)&&(g=m-(h-c)*p,r=g>=l&&g<=d),!r&&s&hn.BELOW&&!(i&hn.BELOW)&&(y=h-(m-l)/p,r=y>=a&&y<=c),!r&&s&hn.LEFT&&!(i&hn.LEFT)&&(g=m-(h-a)*p,r=g>=l&&g<=d)}return r}function p9(t,e,n,r){if(vs(t))return Ea(n);let i=[];i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]],e(i,i,2);const s=[],a=[];for(let l=0,c=i.length;l<c;l+=2)s.push(i[l]),a.push(i[l+1]);return l9(s,a,n)}function NE(t,e){const n=e.getExtent(),r=ei(t);if(e.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){const i=gt(n),a=Math.floor((r[0]-n[0])/i)*i;t[0]-=a,t[2]-=a}return t}function OE(t,e,n){if(e.canWrapX()){const r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];NE(t,e);const i=gt(r);if(gt(t)>i&&!n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+i,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-i,t[3]]]}return[t]}function Lt(t,e,n){return Math.min(Math.max(t,e),n)}function m9(t,e,n,r,i,s){const a=i-n,l=s-r;if(a!==0||l!==0){const c=((t-n)*a+(e-r)*l)/(a*a+l*l);c>1?(n=i,r=s):c>0&&(n+=a*c,r+=l*c)}return ti(t,e,n,r)}function ti(t,e,n,r){const i=n-t,s=r-e;return i*i+s*s}function g9(t){const e=t.length;for(let r=0;r<e;r++){let i=r,s=Math.abs(t[r][r]);for(let l=r+1;l<e;l++){const c=Math.abs(t[l][r]);c>s&&(s=c,i=l)}if(s===0)return null;const a=t[i];t[i]=t[r],t[r]=a;for(let l=r+1;l<e;l++){const c=-t[l][r]/t[r][r];for(let d=r;d<e+1;d++)r==d?t[l][d]=0:t[l][d]+=c*t[r][d]}}const n=new Array(e);for(let r=e-1;r>=0;r--){n[r]=t[r][e]/t[r][r];for(let i=r-1;i>=0;i--)t[i][e]-=t[i][r]*n[r]}return n}function LE(t){return t*180/Math.PI}function no(t){return t*Math.PI/180}function xs(t,e){const n=t%e;return n*e<0?n+e:n}function ur(t,e,n){return t+n*(e-t)}function ac(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function Du(t,e){return Math.floor(ac(t,e))}function Iu(t,e){return Math.ceil(ac(t,e))}function jm(t,e,n){if(t>=e&&t<n)return t;const r=n-e;return((t-e)%r+r)%r+e}function y9(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function Nu(t,e){let n=!0;for(let r=t.length-1;r>=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function Hm(t,e){const n=Math.cos(e),r=Math.sin(e),i=t[0]*n-t[1]*r,s=t[1]*n+t[0]*r;return t[0]=i,t[1]=s,t}function _9(t,e){return t[0]*=e,t[1]*=e,t}function AE(t,e){const n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function FE(t,e){return Math.sqrt(AE(t,e))}function BE(t,e){if(e.canWrapX()){const n=gt(e.getExtent()),r=b9(t,e,n);r&&(t[0]-=r*n)}return t}function b9(t,e,n){const r=e.getExtent();let i=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||gt(r),i=Math.floor((t[0]-r[0])/n)),i}const Sa={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class Um{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Sa[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const lc=6378137,ka=Math.PI*lc,w9=[-ka,-ka,ka,ka],C9=[-180,-85,180,85],Ou=lc*Math.log(Math.tan(Math.PI/2));class va extends Um{constructor(e){super({code:e,units:"m",extent:w9,global:!0,worldExtent:C9,getPointResolution:function(n,r){return n/Math.cosh(r[1]/lc)}})}}const VE=[new va("EPSG:3857"),new va("EPSG:102100"),new va("EPSG:102113"),new va("EPSG:900913"),new va("http://www.opengis.net/def/crs/EPSG/0/3857"),new va("http://www.opengis.net/gml/srs/epsg.xml#3857")];function E9(t,e,n,r){const i=t.length;n=n>1?n:2,r=r??n,e===void 0&&(n>2?e=t.slice():e=new Array(i));for(let s=0;s<i;s+=r){e[s]=ka*t[s]/180;let a=lc*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));a>Ou?a=Ou:a<-Ou&&(a=-Ou),e[s+1]=a}return e}function S9(t,e,n,r){const i=t.length;n=n>1?n:2,r=r??n,e===void 0&&(n>2?e=t.slice():e=new Array(i));for(let s=0;s<i;s+=r)e[s]=180*t[s]/ka,e[s+1]=360*Math.atan(Math.exp(t[s+1]/lc))/Math.PI-90;return e}const k9=6378137,$E=[-180,-90,180,90],v9=Math.PI*k9/180;class Ts extends Um{constructor(e,n){super({code:e,units:"degrees",extent:$E,axisOrientation:n,global:!0,metersPerUnit:v9,worldExtent:$E})}}const zE=[new Ts("CRS:84"),new Ts("EPSG:4326","neu"),new Ts("urn:ogc:def:crs:OGC:1.3:CRS84"),new Ts("urn:ogc:def:crs:OGC:2:84"),new Ts("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new Ts("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Ts("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let Km={};function x9(t){return Km[t]||Km[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function T9(t,e){Km[t]=e}function cc(t){for(const e in t)delete t[e]}function xa(t){let e;for(e in t)return!1;return!e}let Ta={};function dc(t,e,n){const r=t.getCode(),i=e.getCode();r in Ta||(Ta[r]={}),Ta[r][i]=n}function Xm(t,e){return t in Ta&&e in Ta[t]?Ta[t][e]:null}const Lu=.9996,Rr=.00669438,Au=Rr*Rr,Fu=Au*Rr,Ms=Rr/(1-Rr),WE=Math.sqrt(1-Rr),Ma=(1-WE)/(1+WE),YE=Ma*Ma,Zm=YE*Ma,qm=Zm*Ma,GE=qm*Ma,jE=1-Rr/4-3*Au/64-5*Fu/256,M9=3*Rr/8+3*Au/32+45*Fu/1024,R9=15*Au/256+45*Fu/1024,P9=35*Fu/3072,D9=3/2*Ma-27/32*Zm+269/512*GE,I9=21/16*YE-55/32*qm,N9=151/96*Zm-417/128*GE,O9=1097/512*qm,Bu=6378137;function L9(t,e,n){const r=t-5e5,a=(n.north?e:e-1e7)/Lu/(Bu*jE),l=a+D9*Math.sin(2*a)+I9*Math.sin(4*a)+N9*Math.sin(6*a)+O9*Math.sin(8*a),c=Math.sin(l),d=c*c,u=Math.cos(l),f=c/u,h=f*f,m=h*h,p=1-Rr*d,y=Math.sqrt(1-Rr*d),g=Bu/y,b=(1-Rr)/p,E=Ms*u**2,C=E*E,_=r/(g*Lu),w=_*_,S=w*_,k=S*_,x=k*_,v=x*_,T=l-f/b*(w/2-k/24*(5+3*h+10*E-4*C-9*Ms))+v/720*(61+90*h+298*E+45*m-252*Ms-3*C);let M=(_-S/6*(1+2*h+E)+x/120*(5-2*E+28*h-3*C+8*Ms+24*m))/u;return M=jm(M+no(KE(n.number)),-Math.PI,Math.PI),[LE(M),LE(T)]}const HE=-80,UE=84,A9=-180,F9=180;function B9(t,e,n){t=jm(t,A9,F9),e<HE?e=HE:e>UE&&(e=UE);const r=no(e),i=Math.sin(r),s=Math.cos(r),a=i/s,l=a*a,c=l*l,d=no(t),u=KE(n.number),f=no(u),h=Bu/Math.sqrt(1-Rr*i**2),m=Ms*s**2,p=s*jm(d-f,-Math.PI,Math.PI),y=p*p,g=y*p,b=g*p,E=b*p,C=E*p,_=Bu*(jE*r-M9*Math.sin(2*r)+R9*Math.sin(4*r)-P9*Math.sin(6*r)),w=Lu*h*(p+g/6*(1-l+m)+E/120*(5-18*l+c+72*m-58*Ms))+5e5;let S=Lu*(_+h*a*(y/2+b/24*(5-l+9*m+4*m**2)+C/720*(61-58*l+c+600*m-330*Ms)));return n.north||(S+=1e7),[w,S]}function KE(t){return(t-1)*6-180+3}const V9=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function XE(t){let e=0;for(const i of V9){const s=t.match(i);if(s){e=parseInt(s[1]);break}}if(!e)return null;let n=0,r=!1;return e>32700&&e<32761?n=e-32700:e>32600&&e<32661&&(r=!0,n=e-32600),n?{number:n,north:r}:null}function ZE(t,e){return function(n,r,i,s){const a=n.length;i=i>1?i:2,s=s??i,r||(i>2?r=n.slice():r=new Array(a));for(let l=0;l<a;l+=s){const c=n[l],d=n[l+1],u=t(c,d,e);r[l]=u[0],r[l+1]=u[1]}return r}}function $9(t){return XE(t)?new Um({code:t,units:"m"}):null}function z9(t){const e=XE(t.getCode());return e?{forward:ZE(B9,e),inverse:ZE(L9,e)}:null}const Jm=63710088e-1;function Qm(t,e,n){n=n||Jm;const r=no(t[1]),i=no(e[1]),s=(i-r)/2,a=no(e[0]-t[0])/2,l=Math.sin(s)*Math.sin(s)+Math.sin(a)*Math.sin(a)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function eg(t,e){let n=0;for(let r=0,i=t.length;r<i-1;++r)n+=Qm(t[r],t[r+1],e);return n}function Vu(t,e){e=e||{};const n=e.radius||Jm,r=e.projection||"EPSG:3857",i=t.getType();i!=="GeometryCollection"&&(t=t.clone().transform(r,"EPSG:4326"));let s=0,a,l,c,d,u,f;switch(i){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":{a=t.getCoordinates(),s=eg(a,n);break}case"MultiLineString":case"Polygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)s+=eg(a[c],n);break}case"MultiPolygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)for(l=a[c],u=0,f=l.length;u<f;++u)s+=eg(l[u],n);break}case"GeometryCollection":{const h=t.getGeometries();for(c=0,d=h.length;c<d;++c)s+=Vu(h[c],e);break}default:throw new Error("Unsupported geometry type: "+i)}return s}function $u(t,e){let n=0;const r=t.length;let i=t[r-1][0],s=t[r-1][1];for(let a=0;a<r;a++){const l=t[a][0],c=t[a][1];n+=no(l-i)*(2+Math.sin(no(s))+Math.sin(no(c))),i=l,s=c}return n*e*e/2}function qE(t,e){e=e||{};const n=e.radius||Jm,r=e.projection||"EPSG:3857",i=t.getType();i!=="GeometryCollection"&&(t=t.clone().transform(r,"EPSG:4326"));let s=0,a,l,c,d,u,f;switch(i){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":{for(a=t.getCoordinates(),s=Math.abs($u(a[0],n)),c=1,d=a.length;c<d;++c)s-=Math.abs($u(a[c],n));break}case"MultiPolygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)for(l=a[c],s+=Math.abs($u(l[0],n)),u=1,f=l.length;u<f;++u)s-=Math.abs($u(l[u],n));break}case"GeometryCollection":{const h=t.getGeometries();for(c=0,d=h.length;c<d;++c)s+=qE(h[c],e);break}default:throw new Error("Unsupported geometry type: "+i)}return s}const W9=[z9],Y9=[$9];let tg=!0;function JE(t){tg=!1}function ng(t,e){if(e!==void 0){for(let n=0,r=t.length;n<r;++n)e[n]=t[n];e=e}else e=t.slice();return e}function rg(t){T9(t.getCode(),t),dc(t,t,ng)}function G9(t){t.forEach(rg)}function rn(t){if(typeof t!="string")return t;const e=x9(t);if(e)return e;for(const n of Y9){const r=n(t);if(r)return r}return null}function zu(t,e,n,r){t=rn(t);let i;const s=t.getPointResolutionFunc();if(s){if(i=s(e,n),r&&r!==t.getUnits()){const a=t.getMetersPerUnit();a&&(i=i*a/Sa[r])}}else{const a=t.getUnits();if(a=="degrees"&&!r||r=="degrees")i=e;else{const l=ig(t,rn("EPSG:4326"));if(!l&&a!=="degrees")i=e*t.getMetersPerUnit();else{let d=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];d=l(d,d,2);const u=Qm(d.slice(0,2),d.slice(2,4)),f=Qm(d.slice(4,6),d.slice(6,8));i=(u+f)/2}const c=r?Sa[r]:t.getMetersPerUnit();c!==void 0&&(i/=c)}}return i}function QE(t){G9(t),t.forEach(function(e){t.forEach(function(n){e!==n&&dc(e,n,ng)})})}function j9(t,e,n,r){t.forEach(function(i){e.forEach(function(s){dc(i,s,n),dc(s,i,r)})})}function og(t,e){return t?typeof t=="string"?rn(t):t:rn(e)}function H9(t){return function(e,n,r,i){const s=e.length;r=r!==void 0?r:2,i=i??r,n=n!==void 0?n:new Array(s);for(let a=0;a<s;a+=i){const l=t(e.slice(a,a+r)),c=l.length;for(let d=0,u=i;d<u;++d)n[a+d]=d>=c?e[a+d]:l[d]}return n}}function Pr(t,e){return JE(),ni(t,"EPSG:4326","EPSG:3857")}function U9(t,e){const n=ni(t,"EPSG:3857","EPSG:4326"),r=n[0];return(r<-180||r>180)&&(n[0]=xs(r+180,360)-180),n}function Wu(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||ig(t,e)===ng)&&n}function ig(t,e){const n=t.getCode(),r=e.getCode();let i=Xm(n,r);if(i)return i;let s=null,a=null;for(const c of W9)s||(s=c(t)),a||(a=c(e));if(!s&&!a)return null;const l="EPSG:4326";if(a)if(s)i=sg(s.inverse,a.forward);else{const c=Xm(n,l);c&&(i=sg(c,a.forward))}else{const c=Xm(l,r);c&&(i=sg(s.inverse,c))}return i&&(rg(t),rg(e),dc(t,e,i)),i}function sg(t,e){return function(n,r,i,s){return r=t(n,r,i,s),e(r,r,i,s)}}function Ra(t,e){const n=rn(t),r=rn(e);return ig(n,r)}function ni(t,e,n){const r=Ra(e,n);if(!r){const i=rn(e).getCode(),s=rn(n).getCode();throw new Error(`No transform available between ${i} and ${s}`)}return r(t,void 0,t.length)}function K9(t,e,n,r){const i=Ra(e,n);return p9(t,i,void 0)}function ag(t,e){return t}function ro(t,e){return tg&&!Nu(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(tg=!1,TE("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function eS(t,e){return t}function ko(t,e){return t}function X9(){QE(VE),QE(zE),j9(zE,VE,E9,S9)}X9();const ri={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Pa={PROPERTYCHANGE:"propertychange"},Ye={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};class Yu{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function Z9(t,e,n){let r,i;n=n||oi;let s=0,a=t.length,l=!1;for(;s<a;)r=s+(a-s>>1),i=+n(t[r],e),i<0?s=r+1:(a=r,l=!i);return l?s:~s}function oi(t,e){return t>e?1:t<e?-1:0}function q9(t,e){return t<e?1:t>e?-1:0}function lg(t,e,n){if(t[0]<=e)return 0;const r=t.length;if(e<=t[r-1])return r-1;if(typeof n=="function"){for(let i=1;i<r;++i){const s=t[i];if(s===e)return i;if(s<e)return n(e,t[i-1],s)>0?i-1:i}return r-1}if(n>0){for(let i=1;i<r;++i)if(t[i]<e)return i-1;return r-1}if(n<0){for(let i=1;i<r;++i)if(t[i]<=e)return i;return r-1}for(let i=1;i<r;++i){if(t[i]==e)return i;if(t[i]<e)return t[i-1]-e<e-t[i]?i-1:i}return r-1}function J9(t,e,n){for(;e<n;){const r=t[e];t[e]=t[n],t[n]=r,++e,--n}}function vo(t,e){const n=Array.isArray(e)?e:[e],r=n.length;for(let i=0;i<r;i++)t[t.length]=n[i]}function Bi(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Q9(t,e,n){const r=e||oi;return t.every(function(i,s){if(s===0)return!0;const a=r(t[s-1],i);return!(a>0||a===0)})}function Da(){return!0}function Ia(){return!1}function uc(){}function tS(t){let e,n,r;return function(){const i=Array.prototype.slice.call(arguments);return(!n||this!==r||!Bi(i,n))&&(r=this,n=i,e=t.apply(this,arguments)),e}}function nS(t){function e(){let n;try{n=t()}catch(r){return Promise.reject(r)}return n instanceof Promise?n:Promise.resolve(n)}return e()}class xo{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}class fc extends Yu{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,n){if(!e||!n)return;const r=this.listeners_||(this.listeners_={}),i=r[e]||(r[e]=[]);i.includes(n)||i.push(n)}dispatchEvent(e){const n=typeof e=="string",r=n?e:e.type,i=this.listeners_&&this.listeners_[r];if(!i)return;const s=n?new xo(e):e;s.target||(s.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});r in a||(a[r]=0,l[r]=0),++a[r];let c;for(let d=0,u=i.length;d<u;++d)if("handleEvent"in i[d]?c=i[d].handleEvent(s):c=i[d].call(this,s),c===!1||s.propagationStopped){c=!1;break}if(--a[r]===0){let d=l[r];for(delete l[r];d--;)this.removeEventListener(r,uc);delete a[r]}return c}disposeInternal(){this.listeners_&&cc(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return this.listeners_?e?e in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(e,n){if(!this.listeners_)return;const r=this.listeners_[e];if(!r)return;const i=r.indexOf(n);i!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(r[i]=uc,++this.pendingRemovals_[e]):(r.splice(i,1),r.length===0&&delete this.listeners_[e]))}}function dt(t,e,n,r,i){if(i){const a=n;n=function(l){return t.removeEventListener(e,n),a.call(r??this,l)}}else r&&r!==t&&(n=n.bind(r));const s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function Gu(t,e,n,r){return dt(t,e,n,r,!0)}function Tt(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),cc(t))}class hc extends fc{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(Ye.CHANGE)}getRevision(){return this.revision_}onInternal(e,n){if(Array.isArray(e)){const r=e.length,i=new Array(r);for(let s=0;s<r;++s)i[s]=dt(this,e[s],n);return i}return dt(this,e,n)}onceInternal(e,n){let r;if(Array.isArray(e)){const i=e.length;r=new Array(i);for(let s=0;s<i;++s)r[s]=Gu(this,e[s],n)}else r=Gu(this,e,n);return n.ol_key=r,r}unInternal(e,n){const r=n.ol_key;if(r)ju(r);else if(Array.isArray(e))for(let i=0,s=e.length;i<s;++i)this.removeEventListener(e[i],n);else this.removeEventListener(e,n)}}hc.prototype.on,hc.prototype.once,hc.prototype.un;function ju(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)Tt(t[e]);else Tt(t)}function Ge(){throw new Error("Unimplemented abstract method.")}let eW=0;function ut(t){return t.ol_uid||(t.ol_uid=String(++eW))}class rS extends xo{constructor(e,n,r){super(e),this.key=n,this.oldValue=r}}class oo extends hc{constructor(e){super(),this.on,this.once,this.un,ut(this),this.values_=null,e!==void 0&&this.setProperties(e)}get(e){let n;return this.values_&&this.values_.hasOwnProperty(e)&&(n=this.values_[e]),n}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,n){let r;r=`change:${e}`,this.hasListener(r)&&this.dispatchEvent(new rS(r,e,n)),r=Pa.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new rS(r,e,n))}addChangeListener(e,n){this.addEventListener(`change:${e}`,n)}removeChangeListener(e,n){this.removeEventListener(`change:${e}`,n)}set(e,n,r){const i=this.values_||(this.values_={});if(r)i[e]=n;else{const s=i[e];i[e]=n,s!==n&&this.notify(e,s)}}setProperties(e,n){for(const r in e)this.set(r,e[r],n)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,n){if(this.values_&&e in this.values_){const r=this.values_[e];delete this.values_[e],xa(this.values_)&&(this.values_=null),n||this.notify(e,r)}}}class Hu extends oo{constructor(e){super();const n=e.element;n&&!e.target&&!n.style.pointerEvents&&(n.style.pointerEvents="auto"),this.element=n||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){var e;(e=this.element)==null||e.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){var n;this.map_&&((n=this.element)==null||n.remove());for(let r=0,i=this.listenerKeys.length;r<i;++r)Tt(this.listenerKeys[r]);if(this.listenerKeys.length=0,this.map_=e,e){const r=this.target_??e.getOverlayContainerStopEvent();this.element&&r.appendChild(this.element),this.render!==uc&&this.listenerKeys.push(dt(e,ri.POSTRENDER,this.render,this)),e.render()}}render(e){}setTarget(e){this.target_=typeof e=="string"?document.getElementById(e):e}}const cg="units",tW=[1,2,5],pc=25.4/.28;let nW=class extends Hu{constructor(e){e=e||{};const n=document.createElement("div");n.style.pointerEvents="none",super({element:n,render:e.render,target:e.target}),this.on,this.once,this.un;const r=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=r+"-inner",this.element.className=r+" "+oc,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(cg,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(cg)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(cg,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const n=e.center,r=e.projection,i=this.getUnits(),s=i=="degrees"?"degrees":"m";let a=zu(r,e.resolution,n,s);const l=this.minWidth_*(this.dpi_||pc)/pc,c=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||pc)/pc:void 0;let d=l*a,u="";if(i=="degrees"){const C=Sa.degrees;d*=C,d<C/60?(u="″",a*=3600):d<C?(u="′",a*=60):u="°"}else if(i=="imperial")d<.9144?(u="in",a/=.0254):d<1609.344?(u="ft",a/=.3048):(u="mi",a/=1609.344);else if(i=="nautical")a/=1852,u="NM";else if(i=="metric")d<1e-6?(u="nm",a*=1e9):d<.001?(u="μm",a*=1e6):d<1?(u="mm",a*=1e3):d<1e3?u="m":(u="km",a/=1e3);else if(i=="us")d<.9144?(u="in",a*=39.37):d<1609.344?(u="ft",a/=.30480061):(u="mi",a/=1609.3472);else throw new Error("Invalid units");let f=3*Math.floor(Math.log(l*a)/Math.log(10)),h,m,p,y=0,g,b;for(;;){p=Math.floor(f/3);const C=Math.pow(10,p);if(h=tW[(f%3+3)%3]*C,m=Math.round(h/a),isNaN(m)){this.element.style.display="none",this.renderedVisible_=!1;return}if(c!==void 0&&m>=c){h=y,m=g,p=b;break}else if(m>=l)break;y=h,g=m,b=p,++f}const E=this.scaleBar_?this.createScaleBar(m,h,u):h.toFixed(p<0?-p:0)+" "+u;this.renderedHTML_!=E&&(this.innerElement_.innerHTML=E,this.renderedHTML_=E),this.renderedWidth_!=m&&(this.innerElement_.style.width=m+"px",this.renderedWidth_=m),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,n,r){const i=this.getScaleForResolution(),s=i<1?Math.round(1/i).toLocaleString()+" : 1":"1 : "+Math.round(i).toLocaleString(),a=this.scaleBarSteps_,l=e/a,c=[this.createMarker("absolute")];for(let u=0;u<a;++u){const f=u%2===0?"ol-scale-singlebar-odd":"ol-scale-singlebar-even";c.push(`<div><div class="ol-scale-singlebar ${f}" style="width: ${l}px;"></div>`+this.createMarker("relative")+(u%2===0||a===2?this.createStepText(u,e,!1,n,r):"")+"</div>")}return c.push(this.createStepText(a,e,!0,n,r)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${e}px;">`+s+"</div>":"")+c.join("")}createMarker(e){return`<div class="ol-scale-step-marker" style="position: ${e}; top: ${e==="absolute"?3:-10}px;"></div>`}createStepText(e,n,r,i,s){const l=(e===0?0:Math.round(i/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+s),c=e===0?-3:n/this.scaleBarSteps_*-1,d=e===0?0:n/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${c}px;text-align: ${e===0?"left":"center"};min-width: ${d}px;left: ${r?n+"px":"unset"};">`+l+"</div>"}getScaleForResolution(){const e=zu(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),n=this.dpi_||pc,r=1e3/25.4;return e*r*n}render(e){const n=e.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()}};const Kn={ADD:"add",REMOVE:"remove"},oS={LENGTH:"length"};class Uu extends xo{constructor(e,n,r){super(e),this.element=n,this.index=r}}class To extends oo{constructor(e,n){if(super(),this.on,this.once,this.un,n=n||{},this.unique_=!!n.unique,this.array_=e||[],this.unique_)for(let r=0,i=this.array_.length;r<i;++r)this.assertUnique_(this.array_[r],r);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let n=0,r=e.length;n<r;++n)this.push(e[n]);return this}forEach(e){const n=this.array_;for(let r=0,i=n.length;r<i;++r)e(n[r],r,n)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(oS.LENGTH)}insertAt(e,n){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new Uu(Kn.ADD,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const n=this.getLength();return this.insertAt(n,e),this.getLength()}remove(e){const n=this.array_;for(let r=0,i=n.length;r<i;++r)if(n[r]===e)return this.removeAt(r)}removeAt(e){if(e<0||e>=this.getLength())return;const n=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new Uu(Kn.REMOVE,n,e)),n}setAt(e,n){const r=this.getLength();if(e>=r){this.insertAt(e,n);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n,e);const i=this.array_[e];this.array_[e]=n,this.dispatchEvent(new Uu(Kn.REMOVE,i,e)),this.dispatchEvent(new Uu(Kn.ADD,n,e))}updateLength_(){this.set(oS.LENGTH,this.array_.length)}assertUnique_(e,n){for(let r=0,i=this.array_.length;r<i;++r)if(this.array_[r]===e&&r!==n)throw new Error("Duplicate item added to a unique collection")}}function wt(t,e){if(!t)throw new Error(e)}class Kt extends oo{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if(typeof e.getSimplifiedGeometry=="function"){const n=e;this.setGeometry(n)}else{const n=e;this.setProperties(n)}}clone(){const e=new Kt(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const n=this.getGeometry();n&&e.setGeometry(n.clone());const r=this.getStyle();return r&&e.setStyle(r),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Tt(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=dt(e,Ye.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?rW(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function rW(t){if(typeof t=="function")return t;let e;return Array.isArray(t)?e=t:(wt(typeof t.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}new Array(6);function Dr(){return[1,0,0,1,0,0]}function oW(t,e){const n=t[0],r=t[1],i=t[2],s=t[3],a=t[4],l=t[5],c=e[0],d=e[1],u=e[2],f=e[3],h=e[4],m=e[5];return t[0]=n*c+i*d,t[1]=r*c+s*d,t[2]=n*u+i*f,t[3]=r*u+s*f,t[4]=n*h+i*m+a,t[5]=r*h+s*m+l,t}function iW(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Yt(t,e){const n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function io(t,e,n,r,i,s,a,l){const c=Math.sin(s),d=Math.cos(s);return t[0]=r*d,t[1]=i*c,t[2]=-r*c,t[3]=i*d,t[4]=a*r*d-l*r*c+e,t[5]=a*i*c+l*i*d+n,t}function iS(t,e){const n=sW(e);wt(n!==0,"Transformation matrix cannot be inverted");const r=e[0],i=e[1],s=e[2],a=e[3],l=e[4],c=e[5];return t[0]=a/n,t[1]=-i/n,t[2]=-s/n,t[3]=r/n,t[4]=(s*c-a*l)/n,t[5]=-(r*c-i*l)/n,t}function sW(t){return t[0]*t[3]-t[1]*t[2]}const aW=[1e5,1e5,1e5,1e5,2,2];function lW(t){return"matrix("+t.join(", ")+")"}function sS(t){return t.substring(7,t.length-1).split(",").map(parseFloat)}function cW(t,e){const n=sS(t),r=sS(e);for(let i=0;i<6;++i)if(Math.round((n[i]-r[i])*aW[i])!==0)return!1;return!0}function Vi(t,e,n,r,i,s,a){s=s||[],a=a||2;let l=0;for(let c=e;c<n;c+=r){const d=t[c],u=t[c+1];s[l++]=i[0]*d+i[2]*u+i[4],s[l++]=i[1]*d+i[3]*u+i[5];for(let f=2;f<a;f++)s[l++]=t[c+f]}return s&&s.length!=l&&(s.length=l),s}function dg(t,e,n,r,i,s,a){a=a||[];const l=Math.cos(i),c=Math.sin(i),d=s[0],u=s[1];let f=0;for(let h=e;h<n;h+=r){const m=t[h]-d,p=t[h+1]-u;a[f++]=d+m*l-p*c,a[f++]=u+m*c+p*l;for(let y=h+2;y<h+r;++y)a[f++]=t[y]}return a&&a.length!=f&&(a.length=f),a}function dW(t,e,n,r,i,s,a,l){l=l||[];const c=a[0],d=a[1];let u=0;for(let f=e;f<n;f+=r){const h=t[f]-c,m=t[f+1]-d;l[u++]=c+i*h,l[u++]=d+s*m;for(let p=f+2;p<f+r;++p)l[u++]=t[p]}return l&&l.length!=u&&(l.length=u),l}function uW(t,e,n,r,i,s,a){a=a||[];let l=0;for(let c=e;c<n;c+=r){a[l++]=t[c]+i,a[l++]=t[c+1]+s;for(let d=c+2;d<c+r;++d)a[l++]=t[d]}return a&&a.length!=l&&(a.length=l),a}const aS=Dr(),fW=[NaN,NaN];class lS extends oo{constructor(){super(),this.extent_=Mr(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=tS((e,n,r)=>{if(!r)return this.getSimplifiedGeometry(n);const i=this.clone();return i.applyTransform(r),i.getSimplifiedGeometry(n)})}simplifyTransformed(e,n){return this.simplifyTransformedInternal(this.getRevision(),e,n)}clone(){return Ge()}closestPointXY(e,n,r,i){return Ge()}containsXY(e,n){return this.closestPointXY(e,n,fW,Number.MIN_VALUE)===0}getClosestPoint(e,n){return n=n||[NaN,NaN],this.closestPointXY(e[0],e[1],n,1/0),n}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return Ge()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const n=this.computeExtent(this.extent_);(isNaN(n[0])||isNaN(n[1]))&&Ea(n),this.extentRevision_=this.getRevision()}return u9(this.extent_,e)}rotate(e,n){Ge()}scale(e,n,r){Ge()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return Ge()}getType(){return Ge()}applyTransform(e){Ge()}intersectsExtent(e){return Ge()}translate(e,n){Ge()}transform(e,n){const r=rn(e),i=r.getUnits()=="tile-pixels"?function(s,a,l){const c=r.getExtent(),d=r.getWorldExtent(),u=pn(d)/pn(c);io(aS,d[0],d[3],u,-u,0,0,0);const f=Vi(s,0,s.length,l,aS,a),h=Ra(r,n);return h?h(f,f,l):f}:Ra(r,n);return this.applyTransform(i),this}}class $i extends lS{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return zm(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return Ge()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().length<this.flatCoordinates.length?n:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,n){this.stride=mc(e),this.layout=e,this.flatCoordinates=n}setCoordinates(e,n){Ge()}setLayout(e,n,r){let i;if(e)i=mc(e);else{for(let s=0;s<r;++s){if(n.length===0){this.layout="XY",this.stride=2;return}n=n[0]}i=n.length,e=hW(i)}this.layout=e,this.stride=i}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(e,n){const r=this.getFlatCoordinates();if(r){const i=this.getStride();dg(r,0,r.length,i,e,n,r),this.changed()}}scale(e,n,r){n===void 0&&(n=e),r||(r=ei(this.getExtent()));const i=this.getFlatCoordinates();if(i){const s=this.getStride();dW(i,0,i.length,s,e,n,r,i),this.changed()}}translate(e,n){const r=this.getFlatCoordinates();if(r){const i=this.getStride();uW(r,0,r.length,i,e,n,r),this.changed()}}}function hW(t){let e;return t==2?e="XY":t==3?e="XYZ":t==4&&(e="XYZM"),e}function mc(t){let e;return t=="XY"?e=2:t=="XYZ"||t=="XYM"?e=3:t=="XYZM"&&(e=4),e}function pW(t,e,n){const r=t.getFlatCoordinates();if(!r)return null;const i=t.getStride();return Vi(r,0,r.length,i,e,n)}function cS(t,e,n,r){let i=0;const s=t[n-r],a=t[n-r+1];let l=0,c=0;for(;e<n;e+=r){const d=t[e]-s,u=t[e+1]-a;i+=c*d-l*u,l=d,c=u}return i/2}function dS(t,e,n,r){let i=0;for(let s=0,a=n.length;s<a;++s){const l=n[s];i+=cS(t,e,l,r),e=l}return i}function mW(t,e,n,r){let i=0;for(let s=0,a=n.length;s<a;++s){const l=n[s];i+=dS(t,e,l,r),e=l[l.length-1]}return i}function uS(t,e,n,r,i,s,a){const l=t[e],c=t[e+1],d=t[n]-l,u=t[n+1]-c;let f;if(d===0&&u===0)f=e;else{const h=((i-l)*d+(s-c)*u)/(d*d+u*u);if(h>1)f=n;else if(h>0){for(let m=0;m<r;++m)a[m]=ur(t[e+m],t[n+m],h);a.length=r;return}else f=e}for(let h=0;h<r;++h)a[h]=t[f+h];a.length=r}function ug(t,e,n,r,i){let s=t[e],a=t[e+1];for(e+=r;e<n;e+=r){const l=t[e],c=t[e+1],d=ti(s,a,l,c);d>i&&(i=d),s=l,a=c}return i}function fg(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){const l=n[s];i=ug(t,e,l,r,i),e=l}return i}function gW(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){const l=n[s];i=fg(t,e,l,r,i),e=l[l.length-1]}return i}function hg(t,e,n,r,i,s,a,l,c,d,u){if(e==n)return d;let f,h;if(i===0){if(h=ti(a,l,t[e],t[e+1]),h<d){for(f=0;f<r;++f)c[f]=t[e+f];return c.length=r,h}return d}u=u||[NaN,NaN];let m=e+r;for(;m<n;)if(uS(t,m-r,m,r,a,l,u),h=ti(a,l,u[0],u[1]),h<d){for(d=h,f=0;f<r;++f)c[f]=u[f];c.length=r,m+=r}else m+=r*Math.max((Math.sqrt(h)-Math.sqrt(d))/i|0,1);if(s&&(uS(t,n-r,e,r,a,l,u),h=ti(a,l,u[0],u[1]),h<d)){for(d=h,f=0;f<r;++f)c[f]=u[f];c.length=r}return d}function pg(t,e,n,r,i,s,a,l,c,d,u){u=u||[NaN,NaN];for(let f=0,h=n.length;f<h;++f){const m=n[f];d=hg(t,e,m,r,i,s,a,l,c,d,u),e=m}return d}function yW(t,e,n,r,i,s,a,l,c,d,u){u=u||[NaN,NaN];for(let f=0,h=n.length;f<h;++f){const m=n[f];d=pg(t,e,m,r,i,s,a,l,c,d,u),e=m[m.length-1]}return d}function fS(t,e,n,r){for(let i=0,s=n.length;i<s;++i)t[e++]=n[i];return e}function Ku(t,e,n,r){for(let i=0,s=n.length;i<s;++i){const a=n[i];for(let l=0;l<r;++l)t[e++]=a[l]}return e}function mg(t,e,n,r,i){i=i||[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=Ku(t,e,n[a],r);i[s++]=c,e=c}return i.length=s,i}function _W(t,e,n,r,i){i=i||[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=mg(t,e,n[a],r,i[s]);c.length===0&&(c[0]=e),i[s++]=c,e=c[c.length-1]}return i.length=s,i}function ii(t,e,n,r,i){i=i!==void 0?i:[];let s=0;for(let a=e;a<n;a+=r)i[s++]=t.slice(a,a+r);return i.length=s,i}function gc(t,e,n,r,i){i=i!==void 0?i:[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=n[a];i[s++]=ii(t,e,c,r,i[s]),e=c}return i.length=s,i}function gg(t,e,n,r,i){i=i!==void 0?i:[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=n[a];i[s++]=c.length===1&&c[0]===e?[]:gc(t,e,c,r,i[s]),e=c[c.length-1]}return i.length=s,i}function Xu(t,e,n,r,i,s,a){const l=(n-e)/r;if(l<3){for(;e<n;e+=r)s[a++]=t[e],s[a++]=t[e+1];return a}const c=new Array(l);c[0]=1,c[l-1]=1;const d=[e,n-r];let u=0;for(;d.length>0;){const f=d.pop(),h=d.pop();let m=0;const p=t[h],y=t[h+1],g=t[f],b=t[f+1];for(let E=h+r;E<f;E+=r){const C=t[E],_=t[E+1],w=m9(C,_,p,y,g,b);w>m&&(u=E,m=w)}m>i&&(c[(u-e)/r]=1,h+r<u&&d.push(h,u),u+r<f&&d.push(u,f))}for(let f=0;f<l;++f)c[f]&&(s[a++]=t[e+f*r],s[a++]=t[e+f*r+1]);return a}function hS(t,e,n,r,i,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c];a=Xu(t,e,u,r,i,s,a),l.push(a),e=u}return a}function Rs(t,e){return e*Math.round(t/e)}function bW(t,e,n,r,i,s,a){if(e==n)return a;let l=Rs(t[e],i),c=Rs(t[e+1],i);e+=r,s[a++]=l,s[a++]=c;let d,u;do if(d=Rs(t[e],i),u=Rs(t[e+1],i),e+=r,e==n)return s[a++]=d,s[a++]=u,a;while(d==l&&u==c);for(;e<n;){const f=Rs(t[e],i),h=Rs(t[e+1],i);if(e+=r,f==d&&h==u)continue;const m=d-l,p=u-c,y=f-l,g=h-c;if(m*g==p*y&&(m<0&&y<m||m==y||m>0&&y>m)&&(p<0&&g<p||p==g||p>0&&g>p)){d=f,u=h;continue}s[a++]=d,s[a++]=u,l=d,c=u,d=f,u=h}return s[a++]=d,s[a++]=u,a}function yg(t,e,n,r,i,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c];a=bW(t,e,u,r,i,s,a),l.push(a),e=u}return a}function wW(t,e,n,r,i,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c],f=[];a=yg(t,e,u,r,i,s,a,f),l.push(f),e=u[u.length-1]}return a}class yc extends $i{constructor(e,n){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}clone(){return new yc(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,n,r,i){return i<Cs(this.getExtent(),e,n)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ug(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,n,r,i))}getArea(){return cS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return ii(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(e){const n=[];return n.length=Xu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new yc(n,"XY")}getType(){return"LinearRing"}intersectsExtent(e){return!1}setCoordinates(e,n){this.setLayout(n,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Ku(this.flatCoordinates,0,e,this.stride),this.changed()}}class Xt extends $i{constructor(e,n){super(),this.setCoordinates(e,n)}clone(){const e=new Xt(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,n,r,i){const s=this.flatCoordinates,a=ti(e,n,s[0],s[1]);if(a<i){const l=this.stride;for(let c=0;c<l;++c)r[c]=s[c];return r.length=l,a}return i}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return RE(this.flatCoordinates,e)}getType(){return"Point"}intersectsExtent(e){return Vm(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fS(this.flatCoordinates,0,e,this.stride),this.changed()}}function CW(t,e,n,r,i){return!Wm(i,function(a){return!Ps(t,e,n,r,a[0],a[1])})}function Ps(t,e,n,r,i,s){let a=0,l=t[n-r],c=t[n-r+1];for(;e<n;e+=r){const d=t[e],u=t[e+1];c<=s?u>s&&(d-l)*(s-c)-(i-l)*(u-c)>0&&a++:u<=s&&(d-l)*(s-c)-(i-l)*(u-c)<0&&a--,l=d,c=u}return a!==0}function _g(t,e,n,r,i,s){if(n.length===0||!Ps(t,e,n[0],r,i,s))return!1;for(let a=1,l=n.length;a<l;++a)if(Ps(t,n[a-1],n[a],r,i,s))return!1;return!0}function EW(t,e,n,r,i,s){if(n.length===0)return!1;for(let a=0,l=n.length;a<l;++a){const c=n[a];if(_g(t,e,c,r,i,s))return!0;e=c[c.length-1]}return!1}function bg(t,e,n,r,i,s,a){let l,c,d,u,f,h,m;const p=i[s+1],y=[];for(let E=0,C=n.length;E<C;++E){const _=n[E];for(u=t[_-r],h=t[_-r+1],l=e;l<_;l+=r)f=t[l],m=t[l+1],(p<=h&&m<=p||h<=p&&p<=m)&&(d=(p-h)/(m-h)*(f-u)+u,y.push(d)),u=f,h=m}let g=NaN,b=-1/0;for(y.sort(oi),u=y[0],l=1,c=y.length;l<c;++l){f=y[l];const E=Math.abs(f-u);E>b&&(d=(u+f)/2,_g(t,e,n,r,d,p)&&(g=d,b=E)),u=f}return isNaN(g)&&(g=i[s]),a?(a.push(g,p,b),a):[g,p,b]}function pS(t,e,n,r,i){let s=[];for(let a=0,l=n.length;a<l;++a){const c=n[a];s=bg(t,e,c,r,i,2*a,s),e=c[c.length-1]}return s}function mS(t,e,n,r,i){let s;for(e+=r;e<n;e+=r)if(s=i(t.slice(e-r,e),t.slice(e,e+r)),s)return s;return!1}function Zu(t,e,n,r,i,s){return s=s??DE(Mr(),t,e,n,r),En(i,s)?s[0]>=i[0]&&s[2]<=i[2]||s[1]>=i[1]&&s[3]<=i[3]?!0:mS(t,e,n,r,function(a,l){return h9(i,a,l)}):!1}function SW(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){if(Zu(t,e,n[s],r,i))return!0;e=n[s]}return!1}function gS(t,e,n,r,i){return!!(Zu(t,e,n,r,i)||Ps(t,e,n,r,i[0],i[1])||Ps(t,e,n,r,i[0],i[3])||Ps(t,e,n,r,i[2],i[1])||Ps(t,e,n,r,i[2],i[3]))}function yS(t,e,n,r,i){if(!gS(t,e,n[0],r,i))return!1;if(n.length===1)return!0;for(let s=1,a=n.length;s<a;++s)if(CW(t,n[s-1],n[s],r,i)&&!Zu(t,n[s-1],n[s],r,i))return!1;return!0}function kW(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){const l=n[s];if(yS(t,e,l,r,i))return!0;e=l[l.length-1]}return!1}function vW(t,e,n,r){for(;e<n-r;){for(let i=0;i<r;++i){const s=t[e+i];t[e+i]=t[n-r+i],t[n-r+i]=s}e+=r,n-=r}}function wg(t,e,n,r){let i=0,s=t[n-r],a=t[n-r+1];for(;e<n;e+=r){const l=t[e],c=t[e+1];i+=(l-s)*(c+a),s=l,a=c}return i===0?void 0:i>0}function _S(t,e,n,r,i){i=i!==void 0?i:!1;for(let s=0,a=n.length;s<a;++s){const l=n[s],c=wg(t,e,l,r);if(s===0){if(i&&c||!i&&!c)return!1}else if(i&&!c||!i&&c)return!1;e=l}return!0}function xW(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s){const l=n[s];if(!_S(t,e,l,r,i))return!1;l.length&&(e=l[l.length-1])}return!0}function Cg(t,e,n,r,i){i=i!==void 0?i:!1;for(let s=0,a=n.length;s<a;++s){const l=n[s],c=wg(t,e,l,r);(s===0?i&&c||!i&&!c:i&&!c||!i&&c)&&vW(t,e,l,r),e=l}return e}function bS(t,e,n,r,i){for(let s=0,a=n.length;s<a;++s)e=Cg(t,e,n[s],r,i);return e}function TW(t,e){const n=[];let r=0,i=0,s;for(let a=0,l=e.length;a<l;++a){const c=e[a],d=wg(t,r,c,2);if(s===void 0&&(s=d),d===s)n.push(e.slice(i,a+1));else{if(n.length===0)continue;n[n.length-1].push(e[i])}i=a+1,r=c}return n}class si extends $i{constructor(e,n,r){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,n!==void 0&&r?(this.setFlatCoordinates(n,e),this.ends_=r):this.setCoordinates(e,n)}appendLinearRing(e){this.flatCoordinates?vo(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new si(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,n,r,i){return i<Cs(this.getExtent(),e,n)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(fg(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),pg(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,n,r,i))}containsXY(e,n){return _g(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,n)}getArea(){return dS(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let n;return e!==void 0?(n=this.getOrientedFlatCoordinates().slice(),Cg(n,0,this.ends_,this.stride,e)):n=this.flatCoordinates,gc(n,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const e=ei(this.getExtent());this.flatInteriorPoint_=bg(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new Xt(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new yc(this.flatCoordinates.slice(e===0?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,n=this.flatCoordinates,r=this.ends_,i=[];let s=0;for(let a=0,l=r.length;a<l;++a){const c=r[a],d=new yc(n.slice(s,c),e);i.push(d),s=c}return i}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;_S(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Cg(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const n=[],r=[];return n.length=yg(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new si(n,"XY",r)}getType(){return"Polygon"}intersectsExtent(e){return yS(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,n){this.setLayout(n,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const r=mg(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=r.length===0?0:r[r.length-1],this.changed()}}function wS(t){if(vs(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],r=t[2],i=t[3],s=[e,n,e,i,r,i,r,n,e,n];return new si(s,"XY",[s.length])}function qu(t,e,n,r,i,s,a){let l,c;const d=(n-e)/r;if(d===1)l=e;else if(d===2)l=e,c=i;else if(d!==0){let u=t[e],f=t[e+1],h=0;const m=[0];for(let g=e+r;g<n;g+=r){const b=t[g],E=t[g+1];h+=Math.sqrt((b-u)*(b-u)+(E-f)*(E-f)),m.push(h),u=b,f=E}const p=i*h,y=Z9(m,p);y<0?(c=(p-m[-y-2])/(m[-y-1]-m[-y-2]),l=e+(-y-2)*r):l=e+y*r}a=a>1?a:2,s=s||new Array(a);for(let u=0;u<a;++u)s[u]=l===void 0?NaN:c===void 0?t[l+u]:ur(t[l+u],t[l+r+u],c);return s}function Eg(t,e,n,r,i,s){if(n==e)return null;let a;if(i<t[e+r-1])return s?(a=t.slice(e,e+r),a[r-1]=i,a):null;if(t[n-1]<i)return s?(a=t.slice(n-r,n),a[r-1]=i,a):null;if(i==t[e+r-1])return t.slice(e,e+r);let l=e/r,c=n/r;for(;l<c;){const h=l+c>>1;i<t[(h+1)*r-1]?c=h:l=h+1}const d=t[l*r-1];if(i==d)return t.slice((l-1)*r,(l-1)*r+r);const u=t[(l+1)*r-1],f=(i-d)/(u-d);a=[];for(let h=0;h<r-1;++h)a.push(ur(t[(l-1)*r+h],t[l*r+h],f));return a.push(i),a}function MW(t,e,n,r,i,s,a){if(a)return Eg(t,e,n[n.length-1],r,i,s);let l;if(i<t[r-1])return s?(l=t.slice(0,r),l[r-1]=i,l):null;if(t[t.length-1]<i)return s?(l=t.slice(t.length-r),l[r-1]=i,l):null;for(let c=0,d=n.length;c<d;++c){const u=n[c];if(e!=u){if(i<t[e+r-1])return null;if(i<=t[u-1])return Eg(t,e,u,r,i,!1);e=u}}return null}function Sg(t,e,n,r){let i=t[e],s=t[e+1],a=0;for(let l=e+r;l<n;l+=r){const c=t[l],d=t[l+1];a+=Math.sqrt((c-i)*(c-i)+(d-s)*(d-s)),i=c,s=d}return a}class Nn extends $i{constructor(e,n){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}appendCoordinate(e){vo(this.flatCoordinates,e),this.changed()}clone(){const e=new Nn(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,n,r,i){return i<Cs(this.getExtent(),e,n)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ug(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,n,r,i))}forEachSegment(e){return mS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,n){return this.layout!="XYM"&&this.layout!="XYZM"?null:(n=n!==void 0?n:!1,Eg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n))}getCoordinates(){return ii(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,n){return qu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,this.stride)}getLength(){return Sg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(e){const n=[];return n.length=Xu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new Nn(n,"XY")}getType(){return"LineString"}intersectsExtent(e){return Zu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,this.getExtent())}setCoordinates(e,n){this.setLayout(n,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Ku(this.flatCoordinates,0,e,this.stride),this.changed()}}const Ir={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Ds=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"";Ds.includes("safari")&&!Ds.includes("chrom")&&(Ds.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(Ds));const RW=Ds.includes("webkit")&&!Ds.includes("edge"),CS=Ds.includes("macintosh"),PW=typeof devicePixelRatio<"u"?devicePixelRatio:1,ES=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,SS=typeof Image<"u"&&Image.prototype.decode,DW=typeof createImageBitmap=="function",kS=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}(),Ie={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function on(t,e,n,r){let i;return n&&n.length?i=n.shift():ES?i=new OffscreenCanvas(t||300,e||300):i=document.createElement("canvas"),t&&(i.width=t),e&&(i.height=e),i.getContext("2d",r)}let kg;function Ju(){return kg||(kg=on(1,1)),kg}function Qu(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function IW(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function NW(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function vS(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function xS(t){for(;t.lastChild;)t.lastChild.remove()}function OW(t,e){const n=t.childNodes;for(let r=0;;++r){const i=n[r],s=e[r];if(!i&&!s)break;if(i!==s){if(!i){t.appendChild(s);continue}if(!s){t.removeChild(i),--r;continue}t.insertBefore(s,i)}}}const vg=[NaN,NaN,NaN,0];let xg;function LW(){return xg||(xg=on(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),xg}const AW=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,FW=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,BW=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,VW=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function ef(t,e){return t.endsWith("%")?Number(t.substring(0,t.length-1))/e:Number(t)}function _c(t){throw new Error('failed to parse "'+t+'" as color')}function TS(t){if(t.toLowerCase().startsWith("rgb")){const s=t.match(FW)||t.match(AW)||t.match(BW);if(s){const a=s[4],l=100/255;return[Lt(ef(s[1],l)+.5|0,0,255),Lt(ef(s[2],l)+.5|0,0,255),Lt(ef(s[3],l)+.5|0,0,255),a!==void 0?Lt(ef(a,100),0,1):1]}_c(t)}if(t.startsWith("#")){if(VW.test(t)){const s=t.substring(1),a=s.length<=4?1:2,l=[0,0,0,255];for(let c=0,d=s.length;c<d;c+=a){let u=parseInt(s.substring(c,c+a),16);a===1&&(u+=u<<4),l[c/a]=u}return l[3]=l[3]/255,l}_c(t)}const e=LW();e.fillStyle="#abcdef";let n=e.fillStyle;e.fillStyle=t,e.fillStyle===n&&(e.fillStyle="#fedcba",n=e.fillStyle,e.fillStyle=t,e.fillStyle===n&&_c(t));const r=e.fillStyle;if(r.startsWith("#")||r.startsWith("rgba"))return TS(r);e.clearRect(0,0,1,1),e.fillRect(0,0,1,1);const i=Array.from(e.getImageData(0,0,1,1).data);return i[3]=ac(i[3]/255,3),i}function $W(t){return typeof t=="string"?t:Ng(t)}const zW=1024,bc={};let Tg=0;function WW(t){if(t.length===4)return t;const e=t.slice();return e[3]=1,e}function Mg(t){return t>.0031308?Math.pow(t,1/2.4)*269.025-14.025:t*3294.6}function Rg(t){return t>.2068965?Math.pow(t,3):(t-4/29)*(108/841)}function Pg(t){return t>10.314724?Math.pow((t+14.025)/269.025,2.4):t/3294.6}function Dg(t){return t>.0088564?Math.pow(t,1/3):t/(108/841)+4/29}function MS(t){const e=Pg(t[0]),n=Pg(t[1]),r=Pg(t[2]),i=Dg(e*.222488403+n*.716873169+r*.06060791),s=500*(Dg(e*.452247074+n*.399439023+r*.148375274)-i),a=200*(i-Dg(e*.016863605+n*.117638439+r*.865350722)),l=Math.atan2(a,s)*(180/Math.PI);return[116*i-16,Math.sqrt(s*s+a*a),l<0?l+360:l,t[3]]}function YW(t){const e=(t[0]+16)/116,n=t[1],r=t[2]*Math.PI/180,i=Rg(e),s=Rg(e+n/500*Math.cos(r)),a=Rg(e-n/200*Math.sin(r)),l=Mg(s*3.021973625-i*1.617392459-a*.404875592),c=Mg(s*-.943766287+i*1.916279586+a*.027607165),d=Mg(s*.069407491-i*.22898585+a*1.159737864);return[Lt(l+.5|0,0,255),Lt(c+.5|0,0,255),Lt(d+.5|0,0,255),t[3]]}function Ig(t){if(t==="none")return vg;if(bc.hasOwnProperty(t))return bc[t];if(Tg>=zW){let n=0;for(const r in bc)n++&3||(delete bc[r],--Tg)}const e=TS(t);e.length!==4&&_c(t);for(const n of e)isNaN(n)&&_c(t);return bc[t]=e,++Tg,e}function Na(t){return Array.isArray(t)?t:Ig(t)}function Ng(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let n=t[1];n!=(n|0)&&(n=n+.5|0);let r=t[2];r!=(r|0)&&(r=r+.5|0);const i=t[3]===void 0?1:Math.round(t[3]*1e3)/1e3;return"rgba("+e+","+n+","+r+","+i+")"}class GW extends fc{constructor(e,n,r,i){super(),this.extent=e,this.pixelRatio_=r,this.resolution=n,this.state=typeof i=="function"?Ie.IDLE:i,this.image_=null,this.loader=typeof i=="function"?i:null}changed(){this.dispatchEvent(Ye.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==Ie.IDLE&&this.loader){this.state=Ie.LOADING,this.changed();const e=this.getResolution(),n=Array.isArray(e)?e[0]:e;nS(()=>this.loader(this.getExtent(),n,this.getPixelRatio())).then(r=>{"image"in r&&(this.image_=r.image),"extent"in r&&(this.extent=r.extent),"resolution"in r&&(this.resolution=r.resolution),"pixelRatio"in r&&(this.pixelRatio_=r.pixelRatio),(r instanceof HTMLImageElement||DW&&r instanceof ImageBitmap||r instanceof HTMLCanvasElement||r instanceof HTMLVideoElement)&&(this.image_=r),this.state=Ie.LOADED}).catch(r=>{this.state=Ie.ERROR,console.error(r)}).finally(()=>this.changed())}}setImage(e){this.image_=e}setResolution(e){this.resolution=e}}function jW(t,e,n){const r=t;let i=!0,s=!1,a=!1;const l=[Gu(r,Ye.LOAD,function(){a=!0,s||e()})];return r.src&&SS?(s=!0,r.decode().then(function(){i&&e()}).catch(function(c){i&&(a?e():n())})):l.push(Gu(r,Ye.ERROR,n)),function(){i=!1,l.forEach(Tt)}}function HW(t,e){return new Promise((n,r)=>{function i(){a(),n(t)}function s(){a(),r(new Error("Image load error"))}function a(){t.removeEventListener("load",i),t.removeEventListener("error",s)}t.addEventListener("load",i),t.addEventListener("error",s)})}function UW(t,e){return e&&(t.src=e),t.src&&SS?new Promise((n,r)=>t.decode().then(()=>n(t)).catch(i=>t.complete&&t.width?n(t):r(i))):HW(t)}class KW{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const n in this.cache_){const r=this.cache_[n];!(e++&3)&&!r.hasListener()&&(delete this.cache_[n],delete this.patternCache_[n],--this.cacheSize_)}}}get(e,n,r){const i=Og(e,n,r);return i in this.cache_?this.cache_[i]:null}getPattern(e,n,r){const i=Og(e,n,r);return i in this.patternCache_?this.patternCache_[i]:null}set(e,n,r,i,s){const a=Og(e,n,r),l=a in this.cache_;this.cache_[a]=i,s&&(i.getImageState()===Ie.IDLE&&i.load(),i.getImageState()===Ie.LOADING?i.ready().then(()=>{this.patternCache_[a]=Ju().createPattern(i.getImage(1),"repeat")}):this.patternCache_[a]=Ju().createPattern(i.getImage(1),"repeat")),l||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function Og(t,e,n){const r=n?Na(n):"null";return e+":"+t+":"+r}const Nr=new KW;let wc=null;class RS extends fc{constructor(e,n,r,i,s){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=r,this.canvas_={},this.color_=s,this.imageState_=i===void 0?Ie.IDLE:i,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=n,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===Ie.LOADED){wc||(wc=on(1,1,void 0,{willReadFrequently:!0})),wc.drawImage(this.image_,0,0);try{wc.getImageData(0,0,1,1),this.tainted_=!1}catch{wc=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(Ye.CHANGE)}handleImageError_(){this.imageState_=Ie.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=Ie.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],n=this.size_[1],r=on(e,n);r.fillRect(0,0,e,n),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===Ie.IDLE){this.image_||this.initializeImage_(),this.imageState_=Ie.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&UW(this.image_,this.src_).then(e=>{this.image_=e,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==Ie.LOADED)return;const n=this.image_,r=on(Math.ceil(n.width*e),Math.ceil(n.height*e)),i=r.canvas;r.scale(e,e),r.drawImage(n,0,0),r.globalCompositeOperation="multiply",r.fillStyle=$W(this.color_),r.fillRect(0,0,i.width/e,i.height/e),r.globalCompositeOperation="destination-in",r.drawImage(n,0,0),this.canvas_[e]=i}ready(){return this.ready_||(this.ready_=new Promise(e=>{if(this.imageState_===Ie.LOADED||this.imageState_===Ie.ERROR)e();else{const n=()=>{(this.imageState_===Ie.LOADED||this.imageState_===Ie.ERROR)&&(this.removeEventListener(Ye.CHANGE,n),e())};this.addEventListener(Ye.CHANGE,n)}})),this.ready_}}function Lg(t,e,n,r,i,s){let a=e===void 0?void 0:Nr.get(e,n,i);return a||(a=new RS(t,t&&"src"in t?t.src||void 0:e,n,r,i),Nr.set(e,n,i,a,s)),s&&a&&!Nr.getPattern(e,n,i)&&Nr.set(e,n,i,a,s),a}function Mo(t){return t?Array.isArray(t)?Ng(t):typeof t=="object"&&"src"in t?XW(t):t:null}function XW(t){if(!t.offset||!t.size)return Nr.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=Nr.getPattern(e,void 0,t.color);if(n)return n;const r=Nr.get(t.src,"anonymous",null);if(r.getImageState()!==Ie.LOADED)return null;const i=on(t.size[0],t.size[1]);return i.drawImage(r.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),Lg(i.canvas,e,void 0,Ie.LOADED,t.color,!0),Nr.getPattern(e,void 0,t.color)}class PS{drawCustom(e,n,r,i,s){}drawGeometry(e){}setStyle(e){}drawCircle(e,n,r){}drawFeature(e,n,r){}drawGeometryCollection(e,n,r){}drawLineString(e,n,r){}drawMultiLineString(e,n,r){}drawMultiPoint(e,n,r){}drawMultiPolygon(e,n,r){}drawPoint(e,n,r){}drawPolygon(e,n,r){}drawText(e,n,r){}setFillStrokeStyle(e,n){}setImageStyle(e,n){}setTextStyle(e,n){}}const DS="10px sans-serif",Xn="#000",Oa="round",ai=[],li=0,La="round",Cc=10,Ec="#000",Sc="center",tf="middle",Is=[0,0,0,0],kc=1,ci=new oo;let Aa=null,Ag;const Fg={},ZW=function(){const e="32px ",n=["monospace","serif"],r=n.length,i="wmytzilWMYTZIL@#/&?$%10";let s,a;function l(d,u,f){let h=!0;for(let m=0;m<r;++m){const p=n[m];if(a=nf(d+" "+u+" "+e+p,i),f!=p){const y=nf(d+" "+u+" "+e+f+","+p,i);h=h&&y!=a}}return!!h}function c(){let d=!0;const u=ci.getKeys();for(let f=0,h=u.length;f<h;++f){const m=u[f];if(ci.get(m)<100){const[p,y,g]=m.split(`
74
74
  `);l(p,y,g)?(cc(Fg),Aa=null,Ag=void 0,ci.set(m,100)):(ci.set(m,ci.get(m)+1,!0),d=!1)}}d&&(clearInterval(s),s=void 0)}return function(d){const u=xE(d);if(!u)return;const f=u.families;for(let h=0,m=f.length;h<m;++h){const p=f[h],y=u.style+`
75
75
  `+u.weight+`
76
76
  `+p;ci.get(y)===void 0&&(ci.set(y,100,!0),l(u.style,u.weight,p)||(ci.set(y,0,!0),s===void 0&&(s=setInterval(c,32))))}}}(),qW=function(){let t;return function(e){let n=Fg[e];if(n==null){if(ES){const r=xE(e),i=IS(e,"Žg");n=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);Fg[e]=n}return n}}();function IS(t,e){return Aa||(Aa=on(1,1)),t!=Ag&&(Aa.font=t,Ag=Aa.font),Aa.measureText(e)}function nf(t,e){return IS(t,e).width}function NS(t,e,n){if(e in n)return n[e];const r=e.split(`
@@ -166,9 +166,9 @@ be.version="2.30.1",QV(Nt),be.fn=pe,be.min=z6,be.max=W6,be.now=Y6,be.utc=bo,be.u
166
166
  </clipPath>
167
167
  </defs>
168
168
  </svg>
169
- `,M=()=>{let O="#3370FF";return(k||x)&&(O="#F32D2D"),`data:image/svg+xml;utf8,${encodeURIComponent(T(O))}`},D=t.getView().getZoom(),I=S.get("portData"),A=window.devicePixelRatio||1,N=new Ct({image:new ao({src:M(),scale:.5*D/10}),zIndex:k?110:100}),P=new Ct({image:new ao({src:f(I.shortName,k||x),anchor:[.5,.5],displacement:[0,-30],scale:1/A,anchorXUnits:"fraction",anchorYUnits:"fraction"}),zIndex:k||x?110:100});return!v&&!k&&!x?N:[N,P]},m=()=>{if(e)if(r){console.log("清除非选中的港口");const S=r.get("portData").id;e.getFeatures().forEach(k=>{k.get("portData").id!==S&&e.removeFeature(k)})}else console.log("清除所有港口",e),e==null||e.clear()},p=S=>{if(e){if(!S)return C();(r==null?void 0:r.get("portData").id)!==S.id&&(C(),_(S))}},y=S=>{if(e){if(!S)return g();if(a.some(k=>k.id===S.id)){const k=s.find(x=>x.get("portData").id===S.id);k&&(k.set("isRed",!1),k.setStyle(h(k))),s=s.filter(x=>x.get("portData").id!==S.id),a=a.filter(x=>x.id!==S.id)}E(S)}},g=()=>{s.forEach(S=>{S.set("isRed",!1),S.setStyle(h(S))}),s=[],a=[]},b=()=>{if(!e)return;const S=e.getFeatures(),k=[];S.forEach(x=>{const v=x.get("isRed"),T=x.get("select");!v&&!T&&k.push(x)}),k.forEach(x=>{e.removeFeature(x)}),console.log(`清理了 ${k.length} 个非变红港口,保留了 ${S.length-k.length} 个港口`)},E=S=>{if(!e)return;const x=e.getFeatures().find(v=>v.get("portData").id===S.id);x&&(x.set("isRed",!0),x.setStyle(h(x)),s.push(x),a.push(S))},C=()=>{var S;if(r){const k=r==null?void 0:r.get("portData"),x=(S=e.getFeatures())==null?void 0:S.find(v=>v.get("portData").id===k.id);x&&(x.set("select",!1),x.setStyle(h(x)),r=null,i=null)}},_=S=>{if(!e)return;const k=e.getFeatures();i=S,r=k.find(x=>x.get("portData").id===S.id),r&&(r.set("select",!0),r.setStyle(h(r)))};return{render:l,clear:m,selected:p,setRed:y,clearRed:g,clearNonRed:b,handlePortHover:S=>{S&&S.get("portData")?Xi(t,"pointer"):Xi(t,"grab")}}},Kj=(t,e,n,r,i,s,a)=>{const l=t.getInstall();l.on("moveend",()=>{var f,h;try{const m=t.getZoom();(h=(f=e.getProps()).mapMoveEnd)==null||h.call(f,m),m>=Ln.min&&m<=Ln.max&&n.reRenderTrackLine(),r.changeShipScale()}catch(m){console.log("moveend---catch",m)}});const c={[Fn.PORT]:null,[Fn.SHIP]:null,[Fn.TRACK]:null,[Fn.DELETE]:null},d=(f,h,m)=>{switch(f){case Fn.SHIP:r==null||r.handleShipMapEvent(h,"hover");break;case Fn.PORT:break;case Fn.TRACK:n==null||n.handleTrackMapEvent(h,"hover",m);break}},u=f=>{switch(f){case Fn.PORT:break;case Fn.SHIP:r==null||r.handleShipMapEvent(null,"hover");break;case Fn.TRACK:n==null||n.handleTrackMapEvent(null,"hover");break}};l.on("pointermove",f=>{if(a.getState()!=="open"&&s.getState()!=="open"&&t.getMapClick()&&!l.getView().getAnimating())try{let h=!1,m=!1;const p=l.getLayers().getArray().filter(y=>y.get("layerType"));try{p&&p.length>0&&p.forEach(y=>{if(m)return;const g=l==null?void 0:l.getEventPixel(f.originalEvent),b=y==null?void 0:y.get("layerType"),E=l==null?void 0:l.forEachFeatureAtPixel(g,C=>C,{layerFilter:C=>C===y,hitTolerance:5});E!==c[b]&&(c[b]&&u(b,c[b]),c[b]=E,E&&(d(b,E,f),m=!0)),E&&(h=!0)}),h?Xi(l,"pointer"):Xi(l,"grab")}catch(y){console.log("pointermove----",y)}}catch(h){console.log("pointermove----",h)}}),l.on("click",d_(f=>{if(a.getState()!=="open"&&s.getState()!=="open"&&t.getMapClick()&&!l.getView().getAnimating())try{let h=!1;const m=l.getLayers().getArray().filter(p=>p.get("layerType"));m&&m.length>0&&m.forEach(p=>{var y,g,b,E,C;if(!h)try{if(((g=(y=p==null?void 0:p.getSource())==null?void 0:y.getFeatures())==null?void 0:g.length)>0){const _=l==null?void 0:l.getEventPixel(f.originalEvent),w=l==null?void 0:l.forEachFeatureAtPixel(_,S=>{if(S.get("shipData")||S.get("portData")||S.get("polygonData")||S.get("pathData"))return S},{layerFilter:S=>S===p,hitTolerance:10});if(console.log("clickFeature",w),w){if(w!=null&&w.get("shipData"))n.getTrackStatus()||r.handleShipMapEvent(w,"click",(b=e.getProps())==null?void 0:b.selectShip);else if(w!=null&&w.get("portData")){const S=w==null?void 0:w.get("portData");i.selected(S),(C=(E=e.getProps())==null?void 0:E.selectPort)==null||C.call(E,S)}h=!0}}}catch(_){console.log("click--",_)}})}catch(h){console.log("click----",h)}},150)),l.getView().on("change:resolution",()=>{r.changeShipScale()})},Xj=()=>{const t=o.reactive([]);return{createInstance:(r,i)=>{const s=oj();s.initMap(r,i);const a=s.getInstall(),l=Gj(a),c=kj();c.setProps(i),l.setShowLayerType(i.layerType),l.setGreenTileVisible(i.showGreenLayer);const d=wj(a),u=Cj(a,d),f=zj(a,c),h=Wj(a,c),m=Yj(a,c,s,h,f,i.declutter),p=jj(a),y=Uj(a);Kj(s,c,d,m,y,f,h);const g=()=>{const E=a.getView().calculateExtent(s.getSize()),C=ni([E[0],E[1]],An.mercator,An.data),_=ni([E[2],E[3]],An.mercator,An.data);return[C[0],C[1],_[0],_[1]]},b={id:Symbol("map-instance"),innerMap:null,map:s.getInstall(),destroy:()=>{t.splice(t.indexOf(b),1)},methods:{...s,layer:l,ship:m,track:d,carTrack:u,port:{render:y.render,clear:y.clear,selected:y.selected,setRed:y.setRed,clearNonRed:y.clearNonRed,clearRed:y.clearRed},position:p,drawLine:f,drawPolygon:h,utils:{getCalculateExtent:g,convertSixHundredThousandToLatLng:v0,calculateCirclePoints:ij}}};return t.push(b),b},destroyInstance:r=>{const i=t.findIndex(s=>s.id===r);i>-1&&(t[i].destroy(),t.splice(i,1))},destroyAll:()=>{t.forEach(r=>r.destroy()),t.splice(0,t.length)},getAllInstances:()=>[...t]}},Zj={class:"zh-map-box"},qj={key:0,class:"map-copyright"},Jj=["src"],Qj=o.defineComponent({__name:"Map",props:{zoom:{default:Ln.default},center:{default:zk},layerType:{default:"vector"},showGreenLayer:{type:Boolean,default:!1},showScale:{type:Boolean,default:!0},scaleLineUnit:{default:"metric"},mapMoveEnd:{type:Function,default:()=>{}},lineDrawEnd:{},areaDrawEnd:{type:Function,default:()=>{}},selectShip:{type:Function,default:()=>{}},selectPort:{type:Function,default:()=>{}},declutter:{type:Boolean,default:!0},copyrightImgUrl:{}},setup(t,{expose:e}){function n(){return new Promise(u=>{document.fonts?document.fonts.load("12px map-iconfont").then(u):setTimeout(u,300)})}n();const r=o.ref(),i=o.ref(),s=Xj(),a=o.ref(),l=t,c=o.ref({getInstall(){}});o.onMounted(()=>{var u;a.value=s.createInstance(r.value,l),c.value=a.value.methods,(u=i.value)==null||u.setScaleLine(a.value.map,l.scaleLineUnit),window.addEventListener("nativeDoubleTap",function(){d()})});function d(){var f,h,m,p,y;if(((f=a.value)==null?void 0:f.methods.drawPolygon.getState())==="open"||((h=a.value)==null?void 0:h.methods.drawLine.getState())==="open"||!((m=a.value)!=null&&m.methods.getMapClick()))return;let u=(p=a.value)==null?void 0:p.methods.getZoom();(y=a.value)==null||y.methods.setZoom(u+1)}return o.onUnmounted(()=>{var u,f;s.destroyInstance((u=a==null?void 0:a.value)==null?void 0:u.id),(f=a.value)==null||f.destroy()}),e({getZoom:()=>{var u;return(u=a.value)==null?void 0:u.methods.getZoom()},setZoom:u=>{var f;return(f=a.value)==null?void 0:f.methods.setZoom(u)},getInstall:()=>{var u;return(u=a.value)==null?void 0:u.methods.getInstall()},setMapClick:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.setMapClick(...u)},getMapClick:()=>{var u;return(u=a.value)==null?void 0:u.methods.getMapClick()},getView:()=>{var u;return(u=a.value)==null?void 0:u.methods.getView()},setCenter:(u,f)=>{var h;return(h=a.value)==null?void 0:h.methods.setCenter(u,f)},getSize:()=>{var u;return(u=a.value)==null?void 0:u.methods.getSize()},getCenter:()=>{var u;return(u=a.value)==null?void 0:u.methods.getCenter()},layer:{setGreenTileVisible:u=>{var f;return(f=a.value)==null?void 0:f.methods.layer.setGreenTileVisible(u)},getGreenTileVisible:()=>{var u;return(u=a.value)==null?void 0:u.methods.layer.getGreenTileVisible()},getShowLayerType:()=>{var u;return(u=a.value)==null?void 0:u.methods.layer.getShowLayerType()},setShowLayerType:u=>{var f;return(f=a.value)==null?void 0:f.methods.layer.setShowLayerType(u)}},ship:{render:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.render(...u)},selected:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.selected(...u)},filter:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.filter(...u)},blinking:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.blinking(...u)},clear:()=>{var u;return(u=a.value)==null?void 0:u.methods.ship.clear()},setLableStatus:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.setLableStatus(...u)}},track:{render:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.render(...u)},remove:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.remove(...u)},play:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.play(...u)},setCenter:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.setCenter(...u)},close:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.close(...u)},getLength:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.getLength(...u)}},carTrack:{location:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.location(...u)},remove:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.remove(...u)},renderTrack:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.renderTrack(...u)},setCenter:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.setCenter(...u)},closeTrack:()=>{var u;return(u=a.value)==null?void 0:u.methods.carTrack.closeTrack()},playTrack:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.playTrack(...u)}},port:{render:(u,f)=>{var h;return(h=a.value)==null?void 0:h.methods.port.render(u,f)},clear:()=>{var u;return(u=a.value)==null?void 0:u.methods.port.clear()},selected:u=>{var f;return(f=a.value)==null?void 0:f.methods.port.selected(u)},setRed:u=>{var f;return(f=a.value)==null?void 0:f.methods.port.setRed(u)},clearRed:()=>{var u;return(u=a.value)==null?void 0:u.methods.port.clearRed()},clearNonRed:()=>{var u;return(u=a.value)==null?void 0:u.methods.port.clearNonRed()}},position:{render:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.render(...u)},selected:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.selected(...u)},clearSelected:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.clearSelected(...u)},clear:()=>{var u;return(u=a.value)==null?void 0:u.methods.position.clear()},renderHtml:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.renderHtml(...u)},removeHtml:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.removeHtml(...u)}},drawLine:{open:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawLine.open()},close:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawLine.close()},deleteLine:u=>{var f;return(f=a.value)==null?void 0:f.methods.drawLine.deleteLine(u)},setUnit:u=>{var f;return(f=a.value)==null?void 0:f.methods.drawLine.setUnit(u)},getState:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawLine.getState()}},drawPolygon:{open:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.drawPolygon.open(...u)},close:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawPolygon.close()},reset:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawPolygon.reset()}},utils:{getCalculateExtent:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.utils.getCalculateExtent(...u)},convertSixHundredThousandToLatLng:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.utils.convertSixHundredThousandToLatLng(...u)},calculateCirclePoints:(u,f)=>{var h;return(h=a.value)==null?void 0:h.methods.utils.calculateCirclePoints(u,f)}},config:{MAP_DEFAULT_CENTER:zk,MAP_ZOOM:Ln,projection:An}}),(u,f)=>(o.openBlock(),o.createElementBlock("div",Zj,[o.createElementVNode("div",{id:"map",ref_key:"zhMapRef",ref:r,class:"zh-map"},null,512),o.createVNode(wG,{ref_key:"scaleLineRef",ref:i},null,512),o.createVNode(EG,{ref:"zoomControlRef","map-instance":a.value},null,8,["map-instance"]),u.copyrightImgUrl?(o.openBlock(),o.createElementBlock("div",qj,[o.createElementVNode("img",{src:u.copyrightImgUrl,alt:"copyright"},null,8,Jj)])):o.createCommentVNode("",!0)]))}}),av=Pt(zt(Qj,[["__scopeId","data-v-e976a370"]]));var eH={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};/**!
169
+ `,M=()=>{let O="#3370FF";return(k||x)&&(O="#F32D2D"),`data:image/svg+xml;utf8,${encodeURIComponent(T(O))}`},D=t.getView().getZoom(),I=S.get("portData"),A=window.devicePixelRatio||1,N=new Ct({image:new ao({src:M(),scale:.5*D/10}),zIndex:k?110:100}),P=new Ct({image:new ao({src:f(I.shortName,k||x),anchor:[.5,.5],displacement:[0,-30],scale:1/A,anchorXUnits:"fraction",anchorYUnits:"fraction"}),zIndex:k||x?110:100});return!v&&!k&&!x?N:[N,P]},m=()=>{if(e)if(r){console.log("清除非选中的港口");const S=r.get("portData").id;e.getFeatures().forEach(k=>{k.get("portData").id!==S&&e.removeFeature(k)})}else console.log("清除所有港口",e),e==null||e.clear()},p=S=>{if(e){if(!S)return C();(r==null?void 0:r.get("portData").id)!==S.id&&(C(),_(S))}},y=S=>{if(e){if(!S)return g();if(a.some(k=>k.id===S.id)){const k=s.find(x=>x.get("portData").id===S.id);k&&(k.set("isRed",!1),k.setStyle(h(k))),s=s.filter(x=>x.get("portData").id!==S.id),a=a.filter(x=>x.id!==S.id)}E(S)}},g=()=>{s.forEach(S=>{S.set("isRed",!1),S.setStyle(h(S))}),s=[],a=[]},b=()=>{if(!e)return;const S=e.getFeatures(),k=[];S.forEach(x=>{const v=x.get("isRed"),T=x.get("select");!v&&!T&&k.push(x)}),k.forEach(x=>{e.removeFeature(x)}),console.log(`清理了 ${k.length} 个非变红港口,保留了 ${S.length-k.length} 个港口`)},E=S=>{if(!e)return;const x=e.getFeatures().find(v=>v.get("portData").id===S.id);x&&(x.set("isRed",!0),x.setStyle(h(x)),s.push(x),a.push(S))},C=()=>{var S;if(r){const k=r==null?void 0:r.get("portData"),x=(S=e.getFeatures())==null?void 0:S.find(v=>v.get("portData").id===k.id);x&&(x.set("select",!1),x.setStyle(h(x)),r=null,i=null)}},_=S=>{if(!e)return;const k=e.getFeatures();i=S,r=k.find(x=>x.get("portData").id===S.id),r&&(r.set("select",!0),r.setStyle(h(r)))};return{render:l,clear:m,selected:p,setRed:y,clearRed:g,clearNonRed:b,handlePortHover:S=>{S&&S.get("portData")?Xi(t,"pointer"):Xi(t,"grab")}}},Kj=(t,e,n,r,i,s,a)=>{const l=t.getInstall();l.on("moveend",()=>{var f,h;try{const m=t.getZoom();(h=(f=e.getProps()).mapMoveEnd)==null||h.call(f,m),m>=Ln.min&&m<=Ln.max&&n.reRenderTrackLine(),r.changeShipScale()}catch(m){console.log("moveend---catch",m)}});const c={[Fn.PORT]:null,[Fn.SHIP]:null,[Fn.TRACK]:null,[Fn.DELETE]:null},d=(f,h,m)=>{switch(f){case Fn.SHIP:r==null||r.handleShipMapEvent(h,"hover");break;case Fn.PORT:break;case Fn.TRACK:n==null||n.handleTrackMapEvent(h,"hover",m);break}},u=f=>{switch(f){case Fn.PORT:break;case Fn.SHIP:r==null||r.handleShipMapEvent(null,"hover");break;case Fn.TRACK:n==null||n.handleTrackMapEvent(null,"hover");break}};l.on("pointermove",f=>{if(a.getState()!=="open"&&s.getState()!=="open"&&t.getMapClick()&&!l.getView().getAnimating())try{let h=!1,m=!1;const p=l.getLayers().getArray().filter(y=>y.get("layerType"));try{p&&p.length>0&&p.forEach(y=>{if(m)return;const g=l==null?void 0:l.getEventPixel(f.originalEvent),b=y==null?void 0:y.get("layerType"),E=l==null?void 0:l.forEachFeatureAtPixel(g,C=>C,{layerFilter:C=>C===y,hitTolerance:5});E!==c[b]&&(c[b]&&u(b,c[b]),c[b]=E,E&&(d(b,E,f),m=!0)),E&&(h=!0)}),h?Xi(l,"pointer"):Xi(l,"grab")}catch(y){console.log("pointermove----",y)}}catch(h){console.log("pointermove----",h)}}),l.on("click",d_(f=>{if(a.getState()!=="open"&&s.getState()!=="open"&&t.getMapClick()&&!l.getView().getAnimating())try{let h=!1;const m=l.getLayers().getArray().filter(p=>p.get("layerType"));m&&m.length>0&&m.forEach(p=>{var y,g,b,E,C;if(!h)try{if(((g=(y=p==null?void 0:p.getSource())==null?void 0:y.getFeatures())==null?void 0:g.length)>0){const _=l==null?void 0:l.getEventPixel(f.originalEvent),w=l==null?void 0:l.forEachFeatureAtPixel(_,S=>{if(S.get("shipData")||S.get("portData")||S.get("polygonData")||S.get("pathData"))return S},{layerFilter:S=>S===p,hitTolerance:10});if(console.log("clickFeature",w),w){if(w!=null&&w.get("shipData"))n.getTrackStatus()||r.handleShipMapEvent(w,"click",(b=e.getProps())==null?void 0:b.selectShip);else if(w!=null&&w.get("portData")){const S=w==null?void 0:w.get("portData");i.selected(S),(C=(E=e.getProps())==null?void 0:E.selectPort)==null||C.call(E,S)}h=!0}}}catch(_){console.log("click--",_)}})}catch(h){console.log("click----",h)}},150)),l.getView().on("change:resolution",()=>{r.changeShipScale()})},Xj=()=>{const t=o.reactive([]);return{createInstance:(r,i)=>{const s=oj();s.initMap(r,i);const a=s.getInstall(),l=Gj(a),c=kj();c.setProps(i),l.setShowLayerType(i.layerType),l.setGreenTileVisible(i.showGreenLayer);const d=wj(a),u=Cj(a,d),f=zj(a,c),h=Wj(a,c),m=Yj(a,c,s,h,f,i.declutter),p=jj(a),y=Uj(a);Kj(s,c,d,m,y,f,h);const g=()=>{const E=a.getView().calculateExtent(s.getSize()),C=ni([E[0],E[1]],An.mercator,An.data),_=ni([E[2],E[3]],An.mercator,An.data);return[C[0],C[1],_[0],_[1]]},b={id:Symbol("map-instance"),innerMap:null,map:s.getInstall(),destroy:()=>{t.splice(t.indexOf(b),1)},methods:{...s,layer:l,ship:m,track:d,carTrack:u,port:{render:y.render,clear:y.clear,selected:y.selected,setRed:y.setRed,clearNonRed:y.clearNonRed,clearRed:y.clearRed},position:p,drawLine:f,drawPolygon:h,utils:{getCalculateExtent:g,convertSixHundredThousandToLatLng:v0,calculateCirclePoints:ij}}};return t.push(b),b},destroyInstance:r=>{const i=t.findIndex(s=>s.id===r);i>-1&&(t[i].destroy(),t.splice(i,1))},destroyAll:()=>{t.forEach(r=>r.destroy()),t.splice(0,t.length)},getAllInstances:()=>[...t]}},Zj={class:"zh-map-box"},qj={key:0,class:"map-copyright"},Jj=["src"],Qj=o.defineComponent({__name:"Map",props:{zoom:{default:Ln.default},center:{default:zk},layerType:{default:"vector"},showGreenLayer:{type:Boolean,default:!1},showScale:{type:Boolean,default:!0},scaleLineUnit:{default:"metric"},mapMoveEnd:{type:Function,default:()=>{}},lineDrawEnd:{},areaDrawEnd:{type:Function,default:()=>{}},selectShip:{type:Function,default:()=>{}},selectPort:{type:Function,default:()=>{}},declutter:{type:Boolean,default:!0},copyrightImgUrl:{}},setup(t,{expose:e}){function n(){return new Promise(u=>{document.fonts?document.fonts.load("12px map-iconfont").then(u):setTimeout(u,300)})}n();const r=o.ref(),i=o.ref(),s=Xj(),a=o.ref(),l=t,c=o.ref({getInstall(){}});o.onMounted(()=>{var u;a.value=s.createInstance(r.value,l),c.value=a.value.methods,(u=i.value)==null||u.setScaleLine(a.value.map,l.scaleLineUnit),window.addEventListener("nativeDoubleTap",function(){d()})});function d(){var f,h,m,p,y;if(((f=a.value)==null?void 0:f.methods.drawPolygon.getState())==="open"||((h=a.value)==null?void 0:h.methods.drawLine.getState())==="open"||!((m=a.value)!=null&&m.methods.getMapClick()))return;let u=(p=a.value)==null?void 0:p.methods.getZoom();(y=a.value)==null||y.methods.setZoom(u+1)}return o.onUnmounted(()=>{var u,f;s.destroyInstance((u=a==null?void 0:a.value)==null?void 0:u.id),(f=a.value)==null||f.destroy()}),e({getZoom:()=>{var u;return(u=a.value)==null?void 0:u.methods.getZoom()},setZoom:u=>{var f;return(f=a.value)==null?void 0:f.methods.setZoom(u)},getInstall:()=>{var u;return(u=a.value)==null?void 0:u.methods.getInstall()},setMapClick:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.setMapClick(...u)},getMapClick:()=>{var u;return(u=a.value)==null?void 0:u.methods.getMapClick()},getView:()=>{var u;return(u=a.value)==null?void 0:u.methods.getView()},setCenter:(u,f)=>{var h;return(h=a.value)==null?void 0:h.methods.setCenter(u,f)},getSize:()=>{var u;return(u=a.value)==null?void 0:u.methods.getSize()},getCenter:()=>{var u;return(u=a.value)==null?void 0:u.methods.getCenter()},layer:{setGreenTileVisible:u=>{var f;return(f=a.value)==null?void 0:f.methods.layer.setGreenTileVisible(u)},getGreenTileVisible:()=>{var u;return(u=a.value)==null?void 0:u.methods.layer.getGreenTileVisible()},getShowLayerType:()=>{var u;return(u=a.value)==null?void 0:u.methods.layer.getShowLayerType()},setShowLayerType:u=>{var f;return(f=a.value)==null?void 0:f.methods.layer.setShowLayerType(u)}},ship:{render:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.render(...u)},selected:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.selected(...u)},filter:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.filter(...u)},blinking:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.blinking(...u)},clear:()=>{var u;return(u=a.value)==null?void 0:u.methods.ship.clear()},setLableStatus:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.ship.setLableStatus(...u)}},track:{render:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.render(...u)},remove:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.remove(...u)},play:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.play(...u)},setCenter:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.setCenter(...u)},close:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.close(...u)},getLength:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.track.getLength(...u)}},carTrack:{location:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.location(...u)},remove:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.remove(...u)},renderTrack:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.renderTrack(...u)},setCenter:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.setCenter(...u)},closeTrack:()=>{var u;return(u=a.value)==null?void 0:u.methods.carTrack.closeTrack()},playTrack:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.carTrack.playTrack(...u)}},port:{render:(u,f)=>{var h;return(h=a.value)==null?void 0:h.methods.port.render(u,f)},clear:()=>{var u;return(u=a.value)==null?void 0:u.methods.port.clear()},selected:u=>{var f;return(f=a.value)==null?void 0:f.methods.port.selected(u)},setRed:u=>{var f;return(f=a.value)==null?void 0:f.methods.port.setRed(u)},clearRed:()=>{var u;return(u=a.value)==null?void 0:u.methods.port.clearRed()},clearNonRed:()=>{var u;return(u=a.value)==null?void 0:u.methods.port.clearNonRed()}},position:{render:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.render(...u)},selected:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.selected(...u)},clearSelected:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.clearSelected(...u)},clear:()=>{var u;return(u=a.value)==null?void 0:u.methods.position.clear()},renderHtml:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.renderHtml(...u)},removeHtml:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.position.removeHtml(...u)}},drawLine:{open:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawLine.open()},close:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawLine.close()},deleteLine:u=>{var f;return(f=a.value)==null?void 0:f.methods.drawLine.deleteLine(u)},setUnit:u=>{var f;return(f=a.value)==null?void 0:f.methods.drawLine.setUnit(u)},getState:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawLine.getState()}},drawPolygon:{open:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.drawPolygon.open(...u)},close:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawPolygon.close()},reset:()=>{var u;return(u=a.value)==null?void 0:u.methods.drawPolygon.reset()}},utils:{getCalculateExtent:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.utils.getCalculateExtent(...u)},convertSixHundredThousandToLatLng:(...u)=>{var f;return(f=a.value)==null?void 0:f.methods.utils.convertSixHundredThousandToLatLng(...u)},calculateCirclePoints:(u,f)=>{var h;return(h=a.value)==null?void 0:h.methods.utils.calculateCirclePoints(u,f)}},config:{MAP_DEFAULT_CENTER:zk,MAP_ZOOM:Ln,projection:An}}),(u,f)=>(o.openBlock(),o.createElementBlock("div",Zj,[o.createElementVNode("div",{id:"map",ref_key:"zhMapRef",ref:r,class:"zh-map"},null,512),o.createVNode(wG,{ref_key:"scaleLineRef",ref:i},null,512),o.createVNode(EG,{ref:"zoomControlRef","map-instance":a.value},null,8,["map-instance"]),u.copyrightImgUrl?(o.openBlock(),o.createElementBlock("div",qj,[o.createElementVNode("img",{src:u.copyrightImgUrl,alt:"copyright"},null,8,Jj)])):o.createCommentVNode("",!0)]))}}),av=Pt(zt(Qj,[["__scopeId","data-v-ab6025f8"]]));var eH={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};/**!
170
170
  * Sortable 1.15.6
171
171
  * @author RubaXa <trash@rubaxa.org>
172
172
  * @author owenm <owen23355@gmail.com>
173
173
  * @license MIT
174
- */function lv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Io(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lv(Object(n),!0).forEach(function(r){tH(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Nf(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nf=function(e){return typeof e}:Nf=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nf(t)}function tH(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _i(){return _i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_i.apply(this,arguments)}function nH(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function rH(t,e){if(t==null)return{};var n=nH(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var oH="1.15.6";function bi(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var wi=bi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),jc=bi(/Edge/i),cv=bi(/firefox/i),Hc=bi(/safari/i)&&!bi(/chrome/i)&&!bi(/android/i),P0=bi(/iP(ad|od|hone)/i),dv=bi(/chrome/i)&&bi(/android/i),uv={capture:!1,passive:!1};function lt(t,e,n){t.addEventListener(e,n,!wi&&uv)}function st(t,e,n){t.removeEventListener(e,n,!wi&&uv)}function Of(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function fv(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function ho(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Of(t,e):Of(t,e))||r&&t===n)return t;if(t===n)break}while(t=fv(t))}return null}var hv=/\s+/g;function fr(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(hv," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(hv," ")}}function Ve(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function ol(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Ve(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function pv(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,s=r.length;if(n)for(;i<s;i++)n(r[i],i);return r}return[]}function No(){var t=document.scrollingElement;return t||document.documentElement}function qt(t,e,n,r,i){if(!(!t.getBoundingClientRect&&t!==window)){var s,a,l,c,d,u,f;if(t!==window&&t.parentNode&&t!==No()?(s=t.getBoundingClientRect(),a=s.top,l=s.left,c=s.bottom,d=s.right,u=s.height,f=s.width):(a=0,l=0,c=window.innerHeight,d=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!wi))do if(i&&i.getBoundingClientRect&&(Ve(i,"transform")!=="none"||n&&Ve(i,"position")!=="static")){var h=i.getBoundingClientRect();a-=h.top+parseInt(Ve(i,"border-top-width")),l-=h.left+parseInt(Ve(i,"border-left-width")),c=a+s.height,d=l+s.width;break}while(i=i.parentNode);if(r&&t!==window){var m=ol(i||t),p=m&&m.a,y=m&&m.d;m&&(a/=y,l/=p,f/=p,u/=y,c=a+u,d=l+f)}return{top:a,left:l,bottom:c,right:d,width:f,height:u}}}function mv(t,e,n){for(var r=Zi(t,!0),i=qt(t)[e];r;){var s=qt(r)[n],a=void 0;if(a=i>=s,!a)return r;if(r===No())break;r=Zi(r,!1)}return!1}function il(t,e,n,r){for(var i=0,s=0,a=t.children;s<a.length;){if(a[s].style.display!=="none"&&a[s]!==Fe.ghost&&(r||a[s]!==Fe.dragged)&&ho(a[s],n.draggable,t,!1)){if(i===e)return a[s];i++}s++}return null}function D0(t,e){for(var n=t.lastElementChild;n&&(n===Fe.ghost||Ve(n,"display")==="none"||e&&!Of(n,e));)n=n.previousElementSibling;return n||null}function Lr(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Fe.clone&&(!e||Of(t,e))&&n++;return n}function gv(t){var e=0,n=0,r=No();if(t)do{var i=ol(t),s=i.a,a=i.d;e+=t.scrollLeft*s,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function iH(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function Zi(t,e){if(!t||!t.getBoundingClientRect)return No();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Ve(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return No();if(r||e)return n;r=!0}}while(n=n.parentNode);return No()}function sH(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function I0(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Uc;function yv(t,e){return function(){if(!Uc){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Uc=setTimeout(function(){Uc=void 0},e)}}}function aH(){clearTimeout(Uc),Uc=void 0}function _v(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function bv(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function wv(t,e,n){var r={};return Array.from(t.children).forEach(function(i){var s,a,l,c;if(!(!ho(i,e.draggable,t,!1)||i.animated||i===n)){var d=qt(i);r.left=Math.min((s=r.left)!==null&&s!==void 0?s:1/0,d.left),r.top=Math.min((a=r.top)!==null&&a!==void 0?a:1/0,d.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,d.right),r.bottom=Math.max((c=r.bottom)!==null&&c!==void 0?c:-1/0,d.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var er="Sortable"+new Date().getTime();function lH(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(Ve(i,"display")==="none"||i===Fe.ghost)){t.push({target:i,rect:qt(i)});var s=Io({},t[t.length-1].rect);if(i.thisAnimationDuration){var a=ol(i,!0);a&&(s.top-=a.f,s.left-=a.e)}i.fromRect=s}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(iH(t,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var s=!1,a=0;t.forEach(function(l){var c=0,d=l.target,u=d.fromRect,f=qt(d),h=d.prevFromRect,m=d.prevToRect,p=l.rect,y=ol(d,!0);y&&(f.top-=y.f,f.left-=y.e),d.toRect=f,d.thisAnimationDuration&&I0(h,f)&&!I0(u,f)&&(p.top-f.top)/(p.left-f.left)===(u.top-f.top)/(u.left-f.left)&&(c=dH(p,h,m,i.options)),I0(f,u)||(d.prevFromRect=u,d.prevToRect=f,c||(c=i.options.animation),i.animate(d,p,f,c)),c&&(s=!0,a=Math.max(a,c),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},c),d.thisAnimationDuration=c)}),clearTimeout(e),s?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,i,s,a){if(a){Ve(r,"transition",""),Ve(r,"transform","");var l=ol(this.el),c=l&&l.a,d=l&&l.d,u=(i.left-s.left)/(c||1),f=(i.top-s.top)/(d||1);r.animatingX=!!u,r.animatingY=!!f,Ve(r,"transform","translate3d("+u+"px,"+f+"px,0)"),this.forRepaintDummy=cH(r),Ve(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Ve(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ve(r,"transition",""),Ve(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function cH(t){return t.offsetWidth}function dH(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var sl=[],N0={initializeByDefault:!0},Kc={mount:function(e){for(var n in N0)N0.hasOwnProperty(n)&&!(n in e)&&(e[n]=N0[n]);sl.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),sl.push(e)},pluginEvent:function(e,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var s=e+"Global";sl.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][s]&&n[a.pluginName][s](Io({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Io({sortable:n},r)))})},initializePlugins:function(e,n,r,i){sl.forEach(function(l){var c=l.pluginName;if(!(!e.options[c]&&!l.initializeByDefault)){var d=new l(e,n,e.options);d.sortable=e,d.options=e.options,e[c]=d,_i(r,d.defaults)}});for(var s in e.options)if(e.options.hasOwnProperty(s)){var a=this.modifyOption(e,s,e.options[s]);typeof a<"u"&&(e.options[s]=a)}},getEventProperties:function(e,n){var r={};return sl.forEach(function(i){typeof i.eventProperties=="function"&&_i(r,i.eventProperties.call(n[i.pluginName],e))}),r},modifyOption:function(e,n,r){var i;return sl.forEach(function(s){e[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[n]=="function"&&(i=s.optionListeners[n].call(e[s.pluginName],r))}),i}};function uH(t){var e=t.sortable,n=t.rootEl,r=t.name,i=t.targetEl,s=t.cloneEl,a=t.toEl,l=t.fromEl,c=t.oldIndex,d=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,h=t.originalEvent,m=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[er],!!e){var y,g=e.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!wi&&!jc?y=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(r,!0,!0)),y.to=a||n,y.from=l||n,y.item=i||n,y.clone=s,y.oldIndex=c,y.newIndex=d,y.oldDraggableIndex=u,y.newDraggableIndex=f,y.originalEvent=h,y.pullMode=m?m.lastPutMode:void 0;var E=Io(Io({},p),Kc.getEventProperties(r,e));for(var C in E)y[C]=E[C];n&&n.dispatchEvent(y),g[b]&&g[b].call(e,y)}}var fH=["evt"],tr=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,s=rH(r,fH);Kc.pluginEvent.bind(Fe)(e,n,Io({dragEl:ge,parentEl:Vt,ghostEl:He,rootEl:At,nextEl:Vs,lastDownEl:Lf,cloneEl:Bt,cloneHidden:qi,dragStarted:Zc,putSortable:yn,activeSortable:Fe.active,originalEvent:i,oldIndex:al,oldDraggableIndex:Xc,newIndex:hr,newDraggableIndex:Ji,hideGhostForTarget:Tv,unhideGhostForTarget:Mv,cloneNowHidden:function(){qi=!0},cloneNowShown:function(){qi=!1},dispatchSortableEvent:function(l){Bn({sortable:n,name:l,originalEvent:i})}},s))};function Bn(t){uH(Io({putSortable:yn,cloneEl:Bt,targetEl:ge,rootEl:At,oldIndex:al,oldDraggableIndex:Xc,newIndex:hr,newDraggableIndex:Ji},t))}var ge,Vt,He,At,Vs,Lf,Bt,qi,al,hr,Xc,Ji,Af,yn,ll=!1,Ff=!1,Bf=[],$s,po,O0,L0,Cv,Ev,Zc,cl,qc,Jc=!1,Vf=!1,$f,vn,A0=[],F0=!1,zf=[],Wf=typeof document<"u",Yf=P0,Sv=jc||wi?"cssFloat":"float",hH=Wf&&!dv&&!P0&&"draggable"in document.createElement("div"),kv=function(){if(Wf){if(wi)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),vv=function(e,n){var r=Ve(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=il(e,0,n),a=il(e,1,n),l=s&&Ve(s),c=a&&Ve(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+qt(s).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+qt(a).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&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(c.clear==="both"||c.clear===f)?"vertical":"horizontal"}return s&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=i&&r[Sv]==="none"||a&&r[Sv]==="none"&&d+u>i)?"vertical":"horizontal"},pH=function(e,n,r){var i=r?e.left:e.top,s=r?e.right:e.bottom,a=r?e.width:e.height,l=r?n.left:n.top,c=r?n.right:n.bottom,d=r?n.width:n.height;return i===l||s===c||i+a/2===l+d/2},mH=function(e,n){var r;return Bf.some(function(i){var s=i[er].options.emptyInsertThreshold;if(!(!s||D0(i))){var a=qt(i),l=e>=a.left-s&&e<=a.right+s,c=n>=a.top-s&&n<=a.bottom+s;if(l&&c)return r=i}}),r},xv=function(e){function n(s,a){return function(l,c,d,u){var f=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(s==null&&(a||f))return!0;if(s==null||s===!1)return!1;if(a&&s==="clone")return s;if(typeof s=="function")return n(s(l,c,d,u),a)(l,c,d,u);var h=(a?l:c).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var r={},i=e.group;(!i||Nf(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,e.group=r},Tv=function(){!kv&&He&&Ve(He,"display","none")},Mv=function(){!kv&&He&&Ve(He,"display","")};Wf&&!dv&&document.addEventListener("click",function(t){if(Ff)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ff=!1,!1},!0);var zs=function(e){if(ge){e=e.touches?e.touches[0]:e;var n=mH(e.clientX,e.clientY);if(n){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[er]._onDragOver(r)}}},gH=function(e){ge&&ge.parentNode[er]._isOutsideThisEl(e.target)};function Fe(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=_i({},e),t[er]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return vv(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.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&&(!Hc||P0),emptyInsertThreshold:5};Kc.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);xv(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:hH,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?lt(t,"pointerdown",this._onTapStart):(lt(t,"mousedown",this._onTapStart),lt(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(lt(t,"dragover",this),lt(t,"dragenter",this)),Bf.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),_i(this,lH())}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(cl=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,ge):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,i=this.options,s=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(l||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,u=i.filter;if(kH(r),!ge&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Hc&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=ho(c,i.draggable,r,!1),!(c&&c.animated)&&Lf!==c)){if(al=Lr(c),Xc=Lr(c,i.draggable),typeof u=="function"){if(u.call(this,e,c,this)){Bn({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:r,fromEl:r}),tr("filter",n,{evt:e}),s&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(f){if(f=ho(d,f.trim(),r,!1),f)return Bn({sortable:n,rootEl:f,name:"filter",targetEl:c,fromEl:r,toEl:r}),tr("filter",n,{evt:e}),!0}),u)){s&&e.preventDefault();return}i.handle&&!ho(d,i.handle,r,!1)||this._prepareDragStart(e,l,c)}}},_prepareDragStart:function(e,n,r){var i=this,s=i.el,a=i.options,l=s.ownerDocument,c;if(r&&!ge&&r.parentNode===s){var d=qt(r);if(At=s,ge=r,Vt=ge.parentNode,Vs=ge.nextSibling,Lf=r,Af=a.group,Fe.dragged=ge,$s={target:ge,clientX:(n||e).clientX,clientY:(n||e).clientY},Cv=$s.clientX-d.left,Ev=$s.clientY-d.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,ge.style["will-change"]="all",c=function(){if(tr("delayEnded",i,{evt:e}),Fe.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!cv&&i.nativeDraggable&&(ge.draggable=!0),i._triggerDragStart(e,n),Bn({sortable:i,name:"choose",originalEvent:e}),fr(ge,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){pv(ge,u.trim(),B0)}),lt(l,"dragover",zs),lt(l,"mousemove",zs),lt(l,"touchmove",zs),a.supportPointer?(lt(l,"pointerup",i._onDrop),!this.nativeDraggable&&lt(l,"pointercancel",i._onDrop)):(lt(l,"mouseup",i._onDrop),lt(l,"touchend",i._onDrop),lt(l,"touchcancel",i._onDrop)),cv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ge.draggable=!0),tr("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(jc||wi))){if(Fe.eventCanceled){this._onDrop();return}a.supportPointer?(lt(l,"pointerup",i._disableDelayedDrag),lt(l,"pointercancel",i._disableDelayedDrag)):(lt(l,"mouseup",i._disableDelayedDrag),lt(l,"touchend",i._disableDelayedDrag),lt(l,"touchcancel",i._disableDelayedDrag)),lt(l,"mousemove",i._delayedDragTouchMoveHandler),lt(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&lt(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(c,a.delay)}else c()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ge&&B0(ge),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;st(e,"mouseup",this._disableDelayedDrag),st(e,"touchend",this._disableDelayedDrag),st(e,"touchcancel",this._disableDelayedDrag),st(e,"pointerup",this._disableDelayedDrag),st(e,"pointercancel",this._disableDelayedDrag),st(e,"mousemove",this._delayedDragTouchMoveHandler),st(e,"touchmove",this._delayedDragTouchMoveHandler),st(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?lt(document,"pointermove",this._onTouchMove):n?lt(document,"touchmove",this._onTouchMove):lt(document,"mousemove",this._onTouchMove):(lt(ge,"dragend",this),lt(At,"dragstart",this._onDragStart));try{document.selection?jf(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ll=!1,At&&ge){tr("dragStarted",this,{evt:n}),this.nativeDraggable&&lt(document,"dragover",gH);var r=this.options;!e&&fr(ge,r.dragClass,!1),fr(ge,r.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),Bn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(po){this._lastX=po.clientX,this._lastY=po.clientY,Tv();for(var e=document.elementFromPoint(po.clientX,po.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(po.clientX,po.clientY),e!==n);)n=e;if(ge.parentNode[er]._isOutsideThisEl(e),n)do{if(n[er]){var r=void 0;if(r=n[er]._onDragOver({clientX:po.clientX,clientY:po.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=fv(n));Mv()}},_onTouchMove:function(e){if($s){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,s=e.touches?e.touches[0]:e,a=He&&ol(He,!0),l=He&&a&&a.a,c=He&&a&&a.d,d=Yf&&vn&&gv(vn),u=(s.clientX-$s.clientX+i.x)/(l||1)+(d?d[0]-A0[0]:0)/(l||1),f=(s.clientY-$s.clientY+i.y)/(c||1)+(d?d[1]-A0[1]:0)/(c||1);if(!Fe.active&&!ll){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(He){a?(a.e+=u-(O0||0),a.f+=f-(L0||0)):a={a:1,b:0,c:0,d:1,e:u,f};var h="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Ve(He,"webkitTransform",h),Ve(He,"mozTransform",h),Ve(He,"msTransform",h),Ve(He,"transform",h),O0=u,L0=f,po=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!He){var e=this.options.fallbackOnBody?document.body:At,n=qt(ge,!0,Yf,!0,e),r=this.options;if(Yf){for(vn=e;Ve(vn,"position")==="static"&&Ve(vn,"transform")==="none"&&vn!==document;)vn=vn.parentNode;vn!==document.body&&vn!==document.documentElement?(vn===document&&(vn=No()),n.top+=vn.scrollTop,n.left+=vn.scrollLeft):vn=No(),A0=gv(vn)}He=ge.cloneNode(!0),fr(He,r.ghostClass,!1),fr(He,r.fallbackClass,!0),fr(He,r.dragClass,!0),Ve(He,"transition",""),Ve(He,"transform",""),Ve(He,"box-sizing","border-box"),Ve(He,"margin",0),Ve(He,"top",n.top),Ve(He,"left",n.left),Ve(He,"width",n.width),Ve(He,"height",n.height),Ve(He,"opacity","0.8"),Ve(He,"position",Yf?"absolute":"fixed"),Ve(He,"zIndex","100000"),Ve(He,"pointerEvents","none"),Fe.ghost=He,e.appendChild(He),Ve(He,"transform-origin",Cv/parseInt(He.style.width)*100+"% "+Ev/parseInt(He.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,i=e.dataTransfer,s=r.options;if(tr("dragStart",this,{evt:e}),Fe.eventCanceled){this._onDrop();return}tr("setupClone",this),Fe.eventCanceled||(Bt=bv(ge),Bt.removeAttribute("id"),Bt.draggable=!1,Bt.style["will-change"]="",this._hideClone(),fr(Bt,this.options.chosenClass,!1),Fe.clone=Bt),r.cloneId=jf(function(){tr("clone",r),!Fe.eventCanceled&&(r.options.removeCloneOnHide||At.insertBefore(Bt,ge),r._hideClone(),Bn({sortable:r,name:"clone"}))}),!n&&fr(ge,s.dragClass,!0),n?(Ff=!0,r._loopId=setInterval(r._emulateDragOver,50)):(st(document,"mouseup",r._onDrop),st(document,"touchend",r._onDrop),st(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(r,i,ge)),lt(document,"drop",r),Ve(ge,"transform","translateZ(0)")),ll=!0,r._dragStartId=jf(r._dragStarted.bind(r,n,e)),lt(document,"selectstart",r),Zc=!0,window.getSelection().removeAllRanges(),Hc&&Ve(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,i,s,a,l=this.options,c=l.group,d=Fe.active,u=Af===c,f=l.sort,h=yn||d,m,p=this,y=!1;if(F0)return;function g(L,R){tr(L,p,Io({evt:e,isOwner:u,axis:m?"vertical":"horizontal",revert:a,dragRect:i,targetRect:s,canSort:f,fromSortable:h,target:r,completed:E,onMove:function(F,B){return Gf(At,n,ge,i,F,qt(F),e,B)},changed:C},R))}function b(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function E(L){return g("dragOverCompleted",{insertion:L}),L&&(u?d._hideClone():d._showClone(p),p!==h&&(fr(ge,yn?yn.options.ghostClass:d.options.ghostClass,!1),fr(ge,l.ghostClass,!0)),yn!==p&&p!==Fe.active?yn=p:p===Fe.active&&yn&&(yn=null),h===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===ge&&!ge.animated||r===n&&!r.animated)&&(cl=null),!l.dragoverBubble&&!e.rootEl&&r!==document&&(ge.parentNode[er]._isOutsideThisEl(e.target),!L&&zs(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),y=!0}function C(){hr=Lr(ge),Ji=Lr(ge,l.draggable),Bn({sortable:p,name:"change",toEl:n,newIndex:hr,newDraggableIndex:Ji,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=ho(r,l.draggable,n,!0),g("dragOver"),Fe.eventCanceled)return y;if(ge.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return E(!1);if(Ff=!1,d&&!l.disabled&&(u?f||(a=Vt!==At):yn===this||(this.lastPutMode=Af.checkPull(this,d,ge,e))&&c.checkPut(this,d,ge,e))){if(m=this._getDirection(e,r)==="vertical",i=qt(ge),g("dragOverValid"),Fe.eventCanceled)return y;if(a)return Vt=At,b(),this._hideClone(),g("revert"),Fe.eventCanceled||(Vs?At.insertBefore(ge,Vs):At.appendChild(ge)),E(!0);var _=D0(n,l.draggable);if(!_||wH(e,m,this)&&!_.animated){if(_===ge)return E(!1);if(_&&n===e.target&&(r=_),r&&(s=qt(r)),Gf(At,n,ge,i,r,s,e,!!r)!==!1)return b(),_&&_.nextSibling?n.insertBefore(ge,_.nextSibling):n.appendChild(ge),Vt=n,C(),E(!0)}else if(_&&bH(e,m,this)){var w=il(n,0,l,!0);if(w===ge)return E(!1);if(r=w,s=qt(r),Gf(At,n,ge,i,r,s,e,!1)!==!1)return b(),n.insertBefore(ge,w),Vt=n,C(),E(!0)}else if(r.parentNode===n){s=qt(r);var S=0,k,x=ge.parentNode!==n,v=!pH(ge.animated&&ge.toRect||i,r.animated&&r.toRect||s,m),T=m?"top":"left",M=mv(r,"top","top")||mv(ge,"top","top"),D=M?M.scrollTop:void 0;cl!==r&&(k=s[T],Jc=!1,Vf=!v&&l.invertSwap||x),S=CH(e,r,s,m,v?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Vf,cl===r);var I;if(S!==0){var A=Lr(ge);do A-=S,I=Vt.children[A];while(I&&(Ve(I,"display")==="none"||I===He))}if(S===0||I===r)return E(!1);cl=r,qc=S;var N=r.nextElementSibling,P=!1;P=S===1;var O=Gf(At,n,ge,i,r,s,e,P);if(O!==!1)return(O===1||O===-1)&&(P=O===1),F0=!0,setTimeout(_H,30),b(),P&&!N?n.appendChild(ge):r.parentNode.insertBefore(ge,P?N:r),M&&_v(M,0,D-M.scrollTop),Vt=ge.parentNode,k!==void 0&&!Vf&&($f=Math.abs(k-qt(r)[T])),C(),E(!0)}if(n.contains(ge))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){st(document,"mousemove",this._onTouchMove),st(document,"touchmove",this._onTouchMove),st(document,"pointermove",this._onTouchMove),st(document,"dragover",zs),st(document,"mousemove",zs),st(document,"touchmove",zs)},_offUpEvents:function(){var e=this.el.ownerDocument;st(e,"mouseup",this._onDrop),st(e,"touchend",this._onDrop),st(e,"pointerup",this._onDrop),st(e,"pointercancel",this._onDrop),st(e,"touchcancel",this._onDrop),st(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(hr=Lr(ge),Ji=Lr(ge,r.draggable),tr("drop",this,{evt:e}),Vt=ge&&ge.parentNode,hr=Lr(ge),Ji=Lr(ge,r.draggable),Fe.eventCanceled){this._nulling();return}ll=!1,Vf=!1,Jc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),V0(this.cloneId),V0(this._dragStartId),this.nativeDraggable&&(st(document,"drop",this),st(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Hc&&Ve(document.body,"user-select",""),Ve(ge,"transform",""),e&&(Zc&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),He&&He.parentNode&&He.parentNode.removeChild(He),(At===Vt||yn&&yn.lastPutMode!=="clone")&&Bt&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),ge&&(this.nativeDraggable&&st(ge,"dragend",this),B0(ge),ge.style["will-change"]="",Zc&&!ll&&fr(ge,yn?yn.options.ghostClass:this.options.ghostClass,!1),fr(ge,this.options.chosenClass,!1),Bn({sortable:this,name:"unchoose",toEl:Vt,newIndex:null,newDraggableIndex:null,originalEvent:e}),At!==Vt?(hr>=0&&(Bn({rootEl:Vt,name:"add",toEl:Vt,fromEl:At,originalEvent:e}),Bn({sortable:this,name:"remove",toEl:Vt,originalEvent:e}),Bn({rootEl:Vt,name:"sort",toEl:Vt,fromEl:At,originalEvent:e}),Bn({sortable:this,name:"sort",toEl:Vt,originalEvent:e})),yn&&yn.save()):hr!==al&&hr>=0&&(Bn({sortable:this,name:"update",toEl:Vt,originalEvent:e}),Bn({sortable:this,name:"sort",toEl:Vt,originalEvent:e})),Fe.active&&((hr==null||hr===-1)&&(hr=al,Ji=Xc),Bn({sortable:this,name:"end",toEl:Vt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){tr("nulling",this),At=ge=Vt=He=Vs=Bt=Lf=qi=$s=po=Zc=hr=Ji=al=Xc=cl=qc=yn=Af=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,zf.forEach(function(e){e.checked=!0}),zf.length=O0=L0=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ge&&(this._onDragOver(e),yH(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,i=0,s=r.length,a=this.options;i<s;i++)n=r[i],ho(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||SH(n));return e},sort:function(e,n){var r={},i=this.el;this.toArray().forEach(function(s,a){var l=i.children[a];ho(l,this.options.draggable,i,!1)&&(r[s]=l)},this),n&&this.captureAnimationState(),e.forEach(function(s){r[s]&&(i.removeChild(r[s]),i.appendChild(r[s]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return ho(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var i=Kc.modifyOption(this,e,n);typeof i<"u"?r[e]=i:r[e]=n,e==="group"&&xv(r)},destroy:function(){tr("destroy",this);var e=this.el;e[er]=null,st(e,"mousedown",this._onTapStart),st(e,"touchstart",this._onTapStart),st(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(st(e,"dragover",this),st(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Bf.splice(Bf.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!qi){if(tr("hideClone",this),Fe.eventCanceled)return;Ve(Bt,"display","none"),this.options.removeCloneOnHide&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),qi=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(qi){if(tr("showClone",this),Fe.eventCanceled)return;ge.parentNode==At&&!this.options.group.revertClone?At.insertBefore(Bt,ge):Vs?At.insertBefore(Bt,Vs):At.appendChild(Bt),this.options.group.revertClone&&this.animate(ge,Bt),Ve(Bt,"display",""),qi=!1}}};function yH(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Gf(t,e,n,r,i,s,a,l){var c,d=t[er],u=d.options.onMove,f;return window.CustomEvent&&!wi&&!jc?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=t,c.dragged=n,c.draggedRect=r,c.related=i||e,c.relatedRect=s||qt(e),c.willInsertAfter=l,c.originalEvent=a,t.dispatchEvent(c),u&&(f=u.call(d,c,a)),f}function B0(t){t.draggable=!1}function _H(){F0=!1}function bH(t,e,n){var r=qt(il(n.el,0,n.options,!0)),i=wv(n.el,n.options,He),s=10;return e?t.clientX<i.left-s||t.clientY<r.top&&t.clientX<r.right:t.clientY<i.top-s||t.clientY<r.bottom&&t.clientX<r.left}function wH(t,e,n){var r=qt(D0(n.el,n.options.draggable)),i=wv(n.el,n.options,He),s=10;return e?t.clientX>i.right+s||t.clientY>r.bottom&&t.clientX>r.left:t.clientY>i.bottom+s||t.clientX>r.right&&t.clientY>r.top}function CH(t,e,n,r,i,s,a,l){var c=r?t.clientY:t.clientX,d=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,h=!1;if(!a){if(l&&$f<d*i){if(!Jc&&(qc===1?c>u+d*s/2:c<f-d*s/2)&&(Jc=!0),Jc)h=!0;else if(qc===1?c<u+$f:c>f-$f)return-qc}else if(c>u+d*(1-i)/2&&c<f-d*(1-i)/2)return EH(e)}return h=h||a,h&&(c<u+d*s/2||c>f-d*s/2)?c>u+d/2?1:-1:0}function EH(t){return Lr(ge)<Lr(t)?1:-1}function SH(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function kH(t){zf.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&zf.push(r)}}function jf(t){return setTimeout(t,0)}function V0(t){return clearTimeout(t)}Wf&&lt(document,"touchmove",function(t){(Fe.active||ll)&&t.cancelable&&t.preventDefault()}),Fe.utils={on:lt,off:st,css:Ve,find:pv,is:function(e,n){return!!ho(e,n,e,!1)},extend:sH,throttle:yv,closest:ho,toggleClass:fr,clone:bv,index:Lr,nextTick:jf,cancelNextTick:V0,detectDirection:vv,getChild:il,expando:er},Fe.get=function(t){return t[er]},Fe.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];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=Io(Io({},Fe.utils),r.utils)),Kc.mount(r)})},Fe.create=function(t,e){return new Fe(t,e)},Fe.version=oH;var Jt=[],Qc,$0,z0=!1,W0,Y0,Hf,ed;function vH(){function t(){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 t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?lt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?lt(document,"touchmove",this._handleFallbackAutoScroll):lt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?st(document,"dragover",this._handleAutoScroll):(st(document,"pointermove",this._handleFallbackAutoScroll),st(document,"touchmove",this._handleFallbackAutoScroll),st(document,"mousemove",this._handleFallbackAutoScroll)),Rv(),Uf(),aH()},nulling:function(){Hf=$0=Qc=z0=ed=W0=Y0=null,Jt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,s=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(s,a);if(Hf=n,r||this.options.forceAutoScrollFallback||jc||wi||Hc){G0(n,this.options,l,r);var c=Zi(l,!0);z0&&(!ed||s!==W0||a!==Y0)&&(ed&&Rv(),ed=setInterval(function(){var d=Zi(document.elementFromPoint(s,a),!0);d!==c&&(c=d,Uf()),G0(n,i.options,d,r)},10),W0=s,Y0=a)}else{if(!this.options.bubbleScroll||Zi(l,!0)===No()){Uf();return}G0(n,this.options,Zi(l,!1),!1)}}},_i(t,{pluginName:"scroll",initializeByDefault:!0})}function Uf(){Jt.forEach(function(t){clearInterval(t.pid)}),Jt=[]}function Rv(){clearInterval(ed)}var G0=yv(function(t,e,n,r){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,c=No(),d=!1,u;$0!==n&&($0=n,Uf(),Qc=e.scroll,u=e.scrollFn,Qc===!0&&(Qc=Zi(n,!0)));var f=0,h=Qc;do{var m=h,p=qt(m),y=p.top,g=p.bottom,b=p.left,E=p.right,C=p.width,_=p.height,w=void 0,S=void 0,k=m.scrollWidth,x=m.scrollHeight,v=Ve(m),T=m.scrollLeft,M=m.scrollTop;m===c?(w=C<k&&(v.overflowX==="auto"||v.overflowX==="scroll"||v.overflowX==="visible"),S=_<x&&(v.overflowY==="auto"||v.overflowY==="scroll"||v.overflowY==="visible")):(w=C<k&&(v.overflowX==="auto"||v.overflowX==="scroll"),S=_<x&&(v.overflowY==="auto"||v.overflowY==="scroll"));var D=w&&(Math.abs(E-i)<=a&&T+C<k)-(Math.abs(b-i)<=a&&!!T),I=S&&(Math.abs(g-s)<=a&&M+_<x)-(Math.abs(y-s)<=a&&!!M);if(!Jt[f])for(var A=0;A<=f;A++)Jt[A]||(Jt[A]={});(Jt[f].vx!=D||Jt[f].vy!=I||Jt[f].el!==m)&&(Jt[f].el=m,Jt[f].vx=D,Jt[f].vy=I,clearInterval(Jt[f].pid),(D!=0||I!=0)&&(d=!0,Jt[f].pid=setInterval((function(){r&&this.layer===0&&Fe.active._onTouchMove(Hf);var N=Jt[this.layer].vy?Jt[this.layer].vy*l:0,P=Jt[this.layer].vx?Jt[this.layer].vx*l:0;typeof u=="function"&&u.call(Fe.dragged.parentNode[er],P,N,t,Hf,Jt[this.layer].el)!=="continue"||_v(Jt[this.layer].el,P,N)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&h!==c&&(h=Zi(h,!1)));z0=d}},30),Pv=function(e){var n=e.originalEvent,r=e.putSortable,i=e.dragEl,s=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(n){var d=r||s;l();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(u.clientX,u.clientY);c(),d&&!d.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function j0(){}j0.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=il(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:Pv},_i(j0,{pluginName:"revertOnSpill"});function H0(){}H0.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Pv},_i(H0,{pluginName:"removeOnSpill"}),Fe.mount(new vH),Fe.mount(H0,j0);const xH=(t,e={},n=!0,r,i,s=a=>a)=>{const a=o.reactive({tableData:[],pageable:{page:1,size:10,total:0},searchParam:{},searchInitParam:{},totalParam:{},loading:!1}),l=o.computed({get:()=>({page:a.pageable.page,size:a.pageable.size}),set:y=>{console.log("我是分页更新之后的值",y)}}),c=async()=>{if(!a.loading){if(a.loading=!0,!t){a.loading=!1;return}try{Object.assign(a.totalParam,e,n?l.value:{});for(const g in a.searchParam)a.searchParam[g]===""&&delete a.searchParam[g];let y=await t(s({...a.searchInitParam,...a.totalParam}));if(r&&(y=await r(y)),a.tableData=n?y.list:y,n){const{currentPage:g,pageSize:b,total:E}=y;u({page:g,size:b,total:E})}}catch(y){i&&i(y)}finally{a.loading=!1}}},d=()=>{a.totalParam={},a.searchInitParam={},e={};const y={};for(const g in a.searchParam)(a.searchParam[g]||a.searchParam[g]===!1||a.searchParam[g]===0)&&(y[g]=a.searchParam[g]);Object.assign(a.totalParam,y,n?l.value:{})},u=y=>{Object.assign(a.pageable,y)},f=()=>{a.pageable.page=1,d(),c().then()},h=()=>{a.pageable.page=1,a.searchParam={...a.searchInitParam},d(),c().then()},m=y=>{a.pageable.page=1,a.pageable.size=y,c().then()},p=y=>{a.pageable.page=y,c().then()};return{...o.toRefs(a),getTableList:c,search:f,reset:h,handleSizeChange:m,handleCurrentChange:p,updatedTotalParam:d}},TH=(t="id",e)=>{const n=o.ref(!1),r=o.ref([]),i=o.computed(()=>{const a=[];return r.value.forEach(l=>a.push(rr(l,t))),a});return{isSelected:n,selectedList:r,selectedListIds:i,selectionChange:a=>{a.length?n.value=!0:n.value=!1,r.value=a,e&&e(a)}}},MH={class:"w-100"},RH={key:1,class:"cascader-select-empty"},PH={key:2,class:"loading"},U0=Pt(o.defineComponent({name:"CascaderLoadMore",__name:"CascaderLoadMore",props:o.mergeModels({onChange:{type:Function,required:!1},initialValue:{type:[String,Number,Array],required:!1},pageSize:{type:Number,default:10},requestFunction:{type:Function,required:!0},handleOptionsFunction:{type:Function,required:!0},placeholder:{type:String,default:"输入关键字搜索名称"},forceSearch:{type:Boolean,default:!0},initialOptions:{type:Array,required:!1,default:()=>[]},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},cascaderProps:{type:Object,default:()=>({})},placement:{type:String,default:"bottom-start"},trigger:{type:String,default:"click"},popperClass:{type:String},teleported:{type:Boolean,default:!1},noDataText:{type:String,default:"暂无数据"}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["change","removeTag"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const r=t,i=o.useModel(t,"modelValue"),s=o.ref(i.value||[]),a=o.ref(!1),l=o.ref({page:1,size:r.pageSize}),c=o.ref(void 0),d=o.ref(!1),u=o.ref(!0),f=o.ref(r.initialOptions||[]),h=o.ref(r.initialOptions||[]),m=o.ref(void 0),p=o.ref(!1),y={expandTrigger:"hover",checkStrictly:!1,multiple:r.multiple,emitPath:!0,...r.cascaderProps},g=o.ref(),b=o.ref(),E=()=>{a.value=!0},C=()=>{a.value=!1},_=F=>{const B=new Map;return(F||[]).forEach(W=>{const z=`${W.value}`;B.has(z)||B.set(z,W)}),Array.from(B.values())};function w(F){const B=[];function W(z,j=""){const q=j&&(r.cascaderProps.emitPath??!0)?`${j}/${z.label}`:z.label;B.push({...z,value:z.value,label:q}),z.children&&z.children.length>0&&z.children.forEach(H=>W(H,q))}return F.forEach(z=>W(z)),B}const S=async F=>{var j;if(!r.forceSearch&&!F)return;const B=m.value===F||!m.value&&!F;if(B||(l.value.page=1),B&&c.value!==void 0&&l.value.page>c.value&&!p.value)return;p.value=!1,d.value=!0,h.value.length===0&&(u.value=!0);const z=await r.requestFunction(l.value.page,l.value.size,F);if(z&&Object.keys(z).length){c.value=z.totalPage;const q=(j=z==null?void 0:z.list)==null?void 0:j.map(r.handleOptionsFunction);B&&l.value.page!==1?h.value=_([...h.value,...q]):h.value=q||[],s.value=Mn(i.value),f.value=w(h.value)}o.nextTick(()=>{$()}),m.value=F,d.value=!1,h.value.length!==0&&(u.value=!1)},k=()=>{l.value.page=l.value.page+1,S(m.value)},x=async F=>{i.value=F,s.value=F,await o.nextTick();const B=v(F),W=r.onChange;W&&W(F,B)},v=F=>{const B=F||i.value;return r.multiple?f.value.filter(W=>(B||[]).includes(W.value)):f.value.find(W=>W.value===B)},T=()=>{i.value=r.initialValue,s.value=r.initialValue,l.value.page=1,l.value.size=r.pageSize,f.value=r.initialOptions||[],h.value=r.initialOptions||[],c.value=void 0,m.value=void 0},M=n;o.watch(()=>r.initialOptions,()=>{f.value=w(r.initialOptions),console.log("options.value",f.value),h.value=r.initialOptions},{immediate:!0});const D=F=>{M("removeTag",F)},I=F=>{p.value=F},A=o.ref(null),N=o.ref(null),P=()=>{if(!a.value)return;const F=b.value.popperRef.contentRef,B=F==null?void 0:F.querySelector(".el-cascader-panel .el-scrollbar__wrap");B&&(A.value=B,N.value=()=>L(B),B.addEventListener("scroll",N.value))},O=()=>{A.value&&N.value&&(A.value.removeEventListener("scroll",N.value),A.value=null,N.value=null)},L=F=>{const{scrollTop:B,scrollHeight:W,clientHeight:z}=F;let j=W-B;z+10>j&&k()};o.nextTick(()=>P()),o.watch(a,F=>{F?(console.log("visible",F),o.nextTick(()=>P())):O()}),o.watch(h,F=>{F!=null&&F.length&&a.value?o.nextTick(()=>P()):O()});const R=async F=>{(r.cascaderProps.emitPath??!0)&&Array.isArray(F)?r.multiple?i.value=F.map(z=>z.at(-1)):i.value=F.at(-1):i.value=Mn(s.value),await o.nextTick();const B=v(i.value),W=r.onChange;W&&W(F,B)},$=()=>{var z;const F=b.value.popperRef.contentRef,B=(z=g.value)==null?void 0:z.$el,W=F==null?void 0:F.querySelector(".cascader-select-empty");if(B&&W){const j=B.offsetWidth;W.style.width=`${j}px`}};return e({reset:T,getSelectedOption:v,remoteMethod:S,handleRequestParamsChanged:I,options:f,cascderOptions:h}),(F,B)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",MH,[o.createVNode(o.unref(k3),{ref_key:"popoverRef",ref:b,teleported:t.teleported,placement:r.placement,trigger:r.trigger,"popper-class":"warp-cascade-panel "+r.popperClass,visible:a.value},{reference:o.withCtx(()=>[o.createVNode(o.unref(DC),o.mergeProps({ref_key:"remoteSelectRef",ref:g,modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=W=>i.value=W),multiple:t.multiple,placeholder:t.placeholder,"remote-method":S,teleported:!0,clearable:t.clearable,"collapse-tags":t.collapseTags,"collapse-tags-tooltip":t.collapseTagsTooltip,filterable:"",height:"300",remote:"","remote-show-suffix":"","reserve-keyword":"","popper-class":"hidden-dropdown",class:"cascader-select"},F.$attrs,{onClick:E,onChange:x,onRemoveTag:D}),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,W=>(o.openBlock(),o.createBlock(o.unref(IC),{key:W.value,label:W.label,value:W.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","multiple","placeholder","clearable","collapse-tags","collapse-tags-tooltip"])]),default:o.withCtx(()=>[!u.value&&h.value.length>0?(o.openBlock(),o.createBlock(o.unref(_F),{key:0,modelValue:s.value,"onUpdate:modelValue":B[1]||(B[1]=W=>s.value=W),border:!1,props:y,options:h.value,class:"select-cascader-panel",onChange:R},null,8,["modelValue","options"])):(o.openBlock(),o.createElementBlock("div",RH,o.toDisplayString(t.noDataText),1)),d.value?(o.openBlock(),o.createElementBlock("div",PH,"加载中...")):o.createCommentVNode("",!0)]),_:1},8,["teleported","placement","trigger","popper-class","visible"])])),[[o.unref(oa),C]])}})),DH={class:"search-form-item"},IH=zt(o.defineComponent({name:"SearchFormItem",__name:"SearchFormItem",props:{column:{},searchParam:{}},emits:["search"],setup(t,{emit:e}){o.useCssVars(g=>({"6720d772":f.value}));const n=t,r=e,i=o.computed(()=>n.searchParam),s=o.computed(()=>{var g,b,E;return{label:((g=n.column.fieldNames)==null?void 0:g.label)??"label",value:((b=n.column.fieldNames)==null?void 0:b.value)??"value",children:((E=n.column.fieldNames)==null?void 0:E.children)??"children"}}),a=o.inject("enumMap",o.ref(new Map)),l=o.computed(()=>{var b;let g=a.value.get(n.column.prop);return g?(((b=n.column.search)==null?void 0:b.el)==="select-v2"&&n.column.fieldNames&&(g=g.map(E=>({...E,label:E[s.value.label],value:E[s.value.value]}))),g):[]}),c=o.computed(()=>{var g,b;return((b=(g=n.column.search)==null?void 0:g.props)==null?void 0:b.options)??l.value??[]}),d=o.computed(()=>{var w,S;const g=s.value.label,b=s.value.value,E=s.value.children,C=(w=n.column.search)==null?void 0:w.el;let _=((S=n.column.search)==null?void 0:S.props)??{};return C==="tree-select"&&(_={..._,props:{..._.props,label:g,children:E},nodeKey:b}),C==="cascader"&&(_={..._,props:{..._.props,label:g,value:b,children:E}}),_}),u=o.computed(()=>{var E,C,_,w,S,k,x;const g=n.column.search;return["datetimerange","daterange","monthrange"].includes((E=g==null?void 0:g.props)==null?void 0:E.type)||(C=g==null?void 0:g.props)!=null&&C.isRange?{rangeSeparator:((_=g==null?void 0:g.props)==null?void 0:_.rangeSeparator)??"-",startPlaceholder:((w=g==null?void 0:g.props)==null?void 0:w.startPlaceholder)??"开始时间",endPlaceholder:((S=g==null?void 0:g.props)==null?void 0:S.endPlaceholder)??"结束时间"}:{placeholder:((k=g==null?void 0:g.props)==null?void 0:k.placeholder)??((x=g==null?void 0:g.el)!=null&&x.includes("input")?"请输入":"请选择")}}),f=o.computed(()=>{var _,w;const g=n.column.search,b=i.value[(g==null?void 0:g.key)??Un(n.column.prop)],E=g==null?void 0:g.el,C=(_=g==null?void 0:g.props)==null?void 0:_.placeholder;if(g!=null&&g.width)if(rd(g==null?void 0:g.width)){if(g==null?void 0:g.width(b))return(g==null?void 0:g.width(b))+"px"}else return(g==null?void 0:g.width)+"px";if(b&&b.length!==0&&["select","select-v2","tree-select","cascader"].includes(E||"")){if(un(b)){let x=c.value;const v=[];if(b.forEach(T=>{const M=x.find(I=>I[s.value.value]===T);v.push(M?M[s.value.label]:T);const D=M[s.value.children]??c.value;x=M?D:[]}),(w=g==null?void 0:g.props)!=null&&w.multiple){const D=ws(v[0])+42;return b.length>1?D+26+ws("+ "+(b.length-1))+"px":D+"px"}return ws(v.join(" / "))+"px"}let S=c.value.find(x=>x[s.value.value]===b);const k=S?S[s.value.label]:b;return ws(k)+"px"}else return C?ws(C)+"px":["date-picker","time-picker","time-select"].includes(E||"")?"210px":"100px"}),h=o.computed(()=>{var g,b,E,C,_;return(E=(b=(g=n.column)==null?void 0:g.search)==null?void 0:b.props)!=null&&E.multiple&&((_=(C=n.column)==null?void 0:C.search)==null?void 0:_.el)==="select"?{collapseTags:!0,collapseTagsTooltip:!0}:{}}),m=o.computed(()=>{var b;const g=n.column.search;return((b=g==null?void 0:g.props)==null?void 0:b.clearable)??((g==null?void 0:g.defaultValue)==null||!1)}),p=g=>{var b,E,C,_,w,S,k,x,v;if(((C=(E=(b=n.column)==null?void 0:b.search)==null?void 0:E.props)==null?void 0:C.type)==="daterange"){const{searchParam:T}=o.toRefs(n);if(g!=null&&g.length){const M=((S=(w=(_=n.column)==null?void 0:_.search)==null?void 0:w.props)==null?void 0:S.beginTime)||"beginTime",D=((v=(x=(k=n.column)==null?void 0:k.search)==null?void 0:x.props)==null?void 0:v.endTime)||"endTime";T.value[M]=g[0],T.value[D]=g[1]}else delete T.value.beginTime,delete T.value.endTime}(g==null||g==="")&&r("search"),g instanceof Array&&!g.length&&r("search")},y=()=>{var g;["input","input-number"].includes(((g=n.column.search)==null?void 0:g.el)||"")&&r("search")};return(g,b)=>{var E,C,_,w,S,k,x,v,T,M,D;return o.openBlock(),o.createElementBlock("div",DH,[((E=g.column.search)==null?void 0:E.type)!=="custom"?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(((C=g.column.search)==null?void 0:C.render)??`el-${(_=g.column.search)==null?void 0:_.el}`),o.mergeProps({key:0},{...d.value,...u.value,searchParam:i.value,clearable:m.value,...h.value},{modelValue:i.value[((w=g.column.search)==null?void 0:w.key)??o.unref(Un)(g.column.prop)],"onUpdate:modelValue":b[0]||(b[0]=I=>{var A;return i.value[((A=g.column.search)==null?void 0:A.key)??o.unref(Un)(g.column.prop)]=I}),modelModifiers:{trim:!0},data:((S=g.column.search)==null?void 0:S.el)==="tree-select"?l.value:[],options:c.value,"prefix-icon":(x=(k=g.column.search)==null?void 0:k.props)==null?void 0:x.prefixIcon,onChange:p,onKeyup:o.withKeys(y,["enter"])}),o.createSlots({default:o.withCtx(()=>{var I;return[((I=g.column.search)==null?void 0:I.el)==="select"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(l.value,(A,N)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent("el-option"),{key:N,label:A[s.value.label]??"",value:A[s.value.value]},null,8,["label","value"]))),128)):o.renderSlot(g.$slots,"default",{key:1},void 0,!0)]}),_:2},[((v=g.column.search)==null?void 0:v.el)==="cascader"?{name:"default",fn:o.withCtx(({data:I})=>[o.createElementVNode("span",null,o.toDisplayString(I[s.value.label]),1)]),key:"0"}:void 0]),1040,["modelValue","data","options","prefix-icon"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[((T=g.column.search)==null?void 0:T.el)==="zhCascaderLoadMore"?(o.openBlock(),o.createBlock(o.unref(U0),o.mergeProps({key:0,modelValue:i.value[((M=g.column.search)==null?void 0:M.key)??o.unref(Un)(g.column.prop)],"onUpdate:modelValue":b[1]||(b[1]=I=>{var A;return i.value[((A=g.column.search)==null?void 0:A.key)??o.unref(Un)(g.column.prop)]=I}),modelModifiers:{trim:!0}},(D=g.column.search)==null?void 0:D.props),null,16,["modelValue"])):o.createCommentVNode("",!0)],64))])}}}),[["__scopeId","data-v-5c18e8bc"]]),NH={class:"table-search"},OH={key:0},LH={key:0,class:"operation"},AH=zt(o.defineComponent({name:"SearchForm",__name:"SearchForm",props:{columns:{default:()=>[]},searchParam:{default:()=>({})},search:{},reset:{},isShowResetBtn:{type:Boolean,default:!0},isShowSearchBtn:{type:Boolean,default:!0}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createElementBlock("div",NH,[o.createVNode(o.unref(Wb),{ref:"formRef",model:n.searchParam,class:"table-search--left",onSubmit:r[0]||(r[0]=o.withModifiers(()=>{},["prevent"]))},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},void 0,!0),n.columns.length?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.columns,i=>{var s,a,l;return o.openBlock(),o.createElementBlock(o.Fragment,{key:i.prop},[!o.unref(jR)((s=i.search)==null?void 0:s.isShow)||(a=i.search)!=null&&a.isShow?(o.openBlock(),o.createElementBlock("div",OH,[o.createVNode(o.unref(qh),null,o.createSlots({default:o.withCtx(()=>[o.createVNode(IH,{column:i,"search-param":n.searchParam,onSearch:n.search},null,8,["column","search-param","onSearch"])]),_:2},[(l=i.search)!=null&&l.label?{name:"label",fn:o.withCtx(()=>[o.createVNode(o.unref(R3),{size:4},{default:o.withCtx(()=>{var c,d;return[o.createElementVNode("span",null,o.toDisplayString(`${i.search.label}`),1),(c=i.search)!=null&&c.tooltip?(o.openBlock(),o.createBlock(o.unref(ar),{key:0,effect:"dark",content:(d=i.search)==null?void 0:d.tooltip,placement:"top"},{default:o.withCtx(()=>r[1]||(r[1]=[o.createElementVNode("i",{class:o.normalizeClass("iconfont icon-yiwen")},null,-1)])),_:2},1032,["content"])):o.createCommentVNode("",!0)]}),_:2},1024),r[2]||(r[2]=o.createElementVNode("span",null,":",-1))]),key:"0"}:void 0]),1024)])):o.createCommentVNode("",!0)],64)}),128)),e.isShowSearchBtn?(o.openBlock(),o.createBlock(o.unref(cr),{key:0,type:"primary",class:"table-search--search-btn",onClick:n.search},{icon:o.withCtx(()=>r[3]||(r[3]=[o.createElementVNode("i",{class:"ztable-iconfont icon-zhihao-table-search"},null,-1)])),default:o.withCtx(()=>[r[4]||(r[4]=o.createTextVNode(" 搜索 "))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)]),_:3},8,["model"]),e.isShowResetBtn&&n.columns.length?(o.openBlock(),o.createElementBlock("div",LH,[o.createVNode(o.unref(ar),{class:"box-item",effect:"light",content:"重置",placement:"top"},{default:o.withCtx(()=>[o.createVNode(o.unref(cr),{class:"table-search--reset-btn",onClick:n.reset},{icon:o.withCtx(()=>[o.createVNode(o.unref(Me),{size:14},{default:o.withCtx(()=>[o.createVNode(o.unref(mD))]),_:1})]),_:1},8,["onClick"])]),_:1})])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-e524e82e"]]),FH={class:"el-pagination__total zh-page-total"},BH=zt(o.defineComponent({name:"Pagination",__name:"tablePagination",props:{pageable:{},handleSizeChange:{type:Function},handleCurrentChange:{type:Function}},setup(t){return(e,n)=>e.pageable.total?(o.openBlock(),o.createBlock(o.unref(m3),{key:0,class:"zh-pagination",background:!0,"current-page":e.pageable.page,"page-size":e.pageable.size,total:e.pageable.total,teleported:!1,layout:"slot, sizes, prev, pager, next, jumper",onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"zhPaginationLeftSlot",{pageable:e.pageable},()=>[o.createElementVNode("div",FH,"共"+o.toDisplayString(e.pageable.total)+"条数据",1)],!0)]),_:3},8,["current-page","page-size","total","onSizeChange","onCurrentChange"])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-5965b30c"]]);function K0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}const VH=o.defineComponent({name:"TableColumn",__name:"TableColumn",props:{column:{},customColumn:{type:Boolean}},setup(t){const e=t,n=o.ref(e.column),r=o.useSlots(),i=o.inject("enumMap",o.ref(new Map)),s=(c,d)=>i.value.get(c.prop)&&c.isFilterEnum?sE(ku(d.row,c.prop),i.value.get(c.prop),c.fieldNames):vz(ku(d.row,c.prop)),a=(c,d)=>sE(ku(d.row,c.prop),i.value.get(c.prop),c.fieldNames,"tag"),l=c=>o.createVNode(o.Fragment,null,[c.isShow&&o.createVNode(Ii,o.mergeProps(c,{"class-name":c.wrap&&"table-column--wrap",showOverflowTooltip:c.showOverflowTooltip??c.prop!=="operation"}),{default:d=>{var f,h,m;let u;if(c._children)return c._children.map(p=>l(p));if(c.render)return c.render(d);if(c.prop==="operation"){if(!r[Un(c.prop)]){n.value.width=0;return}const p=((h=(f=r[Un(c.prop)](d))==null?void 0:f.at(0))==null?void 0:h.children)||[],y=k=>Array.from(k).map(x=>{var v,T,M;return(((v=x.type)==null?void 0:v.name)==="ElButton"||((T=x.type)==null?void 0:T.name)==="ZhButton")&&x.children!=="v-if"?x:(M=x.children)!=null&&M.length?y(x.children):null}).filter(Boolean).flat(),g=y(p),b=k=>{let x="",v=0;k.forEach(I=>{x+=I.children.default()[0].children;const A=I.props||{};(A.loading===!0||A.loading==="")&&v++});const T=ws(x,14),M=16*(k.length>0?k.length-1:0),D=v*20;return T+M+D},E=k=>{n.value.hasOperationMaxWidth||(n.value.width=0,n.value.hasOperationMaxWidth=!0);const x=n.value.width;let v=0;k>0&&(v=Math.round(k)+32),v>Number.parseInt((x==null?void 0:x.toString())||"0")&&(n.value.width=v,n.value.hasOperationMaxWidth=!0)};if(g.length<=3||c.expandOperationButtons){const k=Math.ceil(b(g));let x=k;return e.customColumn&&(x=g.length?g.length===1?k+30:k:50),E(x),o.createVNode("div",{class:"operation-container all-action"},[r[Un(c.prop)](d)])}const C=[],_=g.slice(0,2),w=o.createVNode(cr,{link:!0,type:"primary"},{default:()=>[o.createTextVNode("更多")]});C.push(..._),C[3]=o.createVNode(hB,null,{default:()=>w,dropdown:()=>{let k;return o.createVNode(mB,null,K0(k=g.slice(2).map(x=>o.createVNode(pB,null,K0(x)?x:{default:()=>[x]})))?k:{default:()=>[k]})}});const S=b([..._,w]);return E(S),o.createVNode("div",{class:"operation-container"},[C])}return r[Un(c.prop)]?r[Un(c.prop)](d):c.tag?o.createVNode(Rp,{type:a(c,d)},K0(u=s(c,d))?u:{default:()=>[u]}):c.click&&s(c,d)!==Ut?o.createVNode("span",{class:"el-link el-link--primary scan-link",onClick:function(){c.click(d==null?void 0:d.row,d==null?void 0:d.$index)}},[c.formatter?c.formatter(d.row,d.column,d.row[c.prop],d.$index):s(c,d)]):o.createVNode("span",{class:((m=kz(ku(d.row,c.prop),i.value.get(c.prop)))==null?void 0:m.state)||"text"},[c.formatter?c.formatter(d.row,d.column,d.row[c.prop],d.$index):s(c,d)])},header:d=>c.headerRender?c.headerRender(d):r[`${Un(c.prop)}Header`]?r[`${Un(c.prop)}Header`](d):c.label})]);return(c,d)=>(o.openBlock(),o.createBlock(l,o.normalizeProps(o.guardReactiveProps(n.value)),null,16))}}),$H={class:"custom-column-dialog"},zH={class:"table-body"},WH={class:"name"},YH={key:0,class:"ml-10"},GH={class:"custom-width-label text"},jH={key:0,class:"custom-width-input-box"},HH={class:"custom-column-footer"},UH={class:"flex-1"},KH=zt(o.defineComponent({name:"ColSetting",__name:"ColSetting",props:{originTableColumns:{default:()=>[]}},emits:["close","submit","dragSort"],setup(t,{expose:e,emit:n}){const r=o.ref(),i=o.ref(!1),s=t,a=o.ref([]),l=o.ref(new Date().getTime()),c=o.ref(!1),d=o.ref();let u=o.ref([]),f=o.ref([]);const h=C=>{f.value=C,u.value=[],a.value=C.filter(_=>(_.hideInCustomColumn&&u.value.push(_),!_.hideInCustomColumn)),c.value=!0,o.nextTick(()=>{g()})},m=C=>{i.value=C},p=n,y=async()=>{f.value=Mn([...u.value,...a.value]),p("submit",f.value),c.value=!1},g=()=>{d.value&&(d.value.destroy(),l.value=new Date().getTime(),r.value.doLayout()),o.nextTick(()=>{const C=document.querySelector(".custom-column-dialog tbody");d.value=Fe.create(C,{handle:".move",animation:300,filter:".operation",onEnd({newIndex:_,oldIndex:w}){if(!_&&_!==0||!w&&w!==0)return;let S=Mn(a.value);const k=S[w];if(_<w)for(let x=_;x<w;x++)S[x].order=String(Number(x)+1);else for(let x=w+1;x<=_;x++)S[x].order=String(Number(x)-1);k.order=String(_),a.value=Mn(S)}})})},b=()=>{const C=Mn(s.originTableColumns);i.value?(a.value=C,u.value=[]):a.value=a.value.map(_=>{const w=a.value.find(S=>S.prop===_.prop);return!(w!=null&&w.isShow)||w.prop==="operation"?_:C.find(S=>S.prop===_.prop)}),g()},E=()=>{c.value=!1};return e({openColSetting:h}),(C,_)=>(o.openBlock(),o.createElementBlock("div",$H,[o.createVNode(nE,{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=w=>c.value=w),size:"middle"},{header:o.withCtx(()=>_[2]||(_[2]=[o.createElementVNode("div",{class:"title"},"自定义列",-1),o.createElementVNode("div",{class:"sub-title"},"勾选需要展示的列,拖动列名进行排序",-1)])),footer:o.withCtx(()=>[o.createElementVNode("div",HH,[o.createVNode(o.unref(Go),{modelValue:i.value,"onUpdate:modelValue":_[0]||(_[0]=w=>i.value=w),class:"checkbox",label:"全局",onChange:m},null,8,["modelValue"]),o.createElementVNode("div",UH,[o.createVNode(fa,{onClick:E},{default:o.withCtx(()=>_[4]||(_[4]=[o.createTextVNode("取消")])),_:1}),o.createVNode(fa,{class:"w-auto",onClick:b},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.value?"全局恢复默认":"恢复默认"),1)]),_:1}),o.createVNode(fa,{type:"primary",onClick:y},{default:o.withCtx(()=>_[5]||(_[5]=[o.createTextVNode("保存")])),_:1})])])]),default:o.withCtx(()=>[o.createElementVNode("div",zH,[(o.openBlock(),o.createBlock(o.unref(Jp),{ref_key:"tableRef",ref:r,class:"custom-colum-table",key:l.value,data:a.value.filter(w=>!w.hideInCustomColumn),"row-class-name":w=>w.row.prop==="operation"?"operation":""},{default:o.withCtx(()=>[o.createVNode(o.unref(Ii),{width:"100",label:"选择"},{default:o.withCtx(({row:w})=>[o.createVNode(o.unref(Go),{class:"custom-column-check",modelValue:w.isShow,"onUpdate:modelValue":S=>w.isShow=S,disabled:w.readonly},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:1}),o.createVNode(o.unref(Ii),{prop:"label",label:"名称"},{default:o.withCtx(({row:w})=>[o.createElementVNode("div",WH,[o.createTextVNode(o.toDisplayString(w.label)+" ",1),w.readonly?(o.openBlock(),o.createElementBlock("span",YH,"(必选)")):o.createCommentVNode("",!0),w.prop!=="operation"?(o.openBlock(),o.createBlock(o.unref(Me),{key:1,class:"move move-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(hD))]),_:1})):o.createCommentVNode("",!0)])]),_:1}),o.createVNode(o.unref(Ii),{prop:"width",label:"宽度",width:"180"},{default:o.withCtx(({row:w})=>[o.createElementVNode("div",{class:o.normalizeClass(`custom-width-box ${w.readonly&&"readonly"}`)},[_[3]||(_[3]=o.createElementVNode("span",{class:"text"},"宽度",-1)),o.createElementVNode("span",GH,o.toDisplayString(w.width)+" px",1),w.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",jH,[o.createVNode(o.unref(xC),{modelValue:w.width,"onUpdate:modelValue":S=>w.width=S,class:"custom-width-input",min:10,max:1e3,controls:!1},null,8,["modelValue","onUpdate:modelValue"])]))],2)]),_:1})]),_:1},8,["data","row-class-name"]))])]),_:1},8,["modelValue"])]))}}),[["__scopeId","data-v-1ff4d8b0"]]),XH={class:"no-card table-main zh-table"},ZH={class:"table-title-container"},qH={key:0,class:"table-title"},JH={key:1,class:"table-header-tip"},QH={class:"table-header-container"},eU={key:0,class:"table-header"},tU={class:"header-button-ri"},nU={key:0},rU={class:"table-body-container"},oU={class:"text d-flex inline-input-text pointer"},iU={key:1,class:"inline-input-box d-flex"},sU={class:"table-empty"},aU=["src"],Dv=Pt(zt(o.defineComponent({name:"ZhTable",__name:"Table",props:{columns:{default:()=>[]},data:{},requestApi:{},requestAuto:{type:Boolean,default:!0},requestError:{type:Function,default:t=>{console.error("protable中请求数据错误",t)}},handleParam:{},dataCallback:{},selectChangeCallback:{},title:{},pagination:{type:Boolean,default:!0},initParam:{default:{}},border:{type:Boolean,default:!1},rowKey:{default:"id"},isShowSearch:{type:Boolean,default:!0},maxHeight:{},isShowSearchBtn:{type:Boolean,default:!0},isShowResetBtn:{type:Boolean,default:!0},customColumn:{type:Boolean,default:!1},onSortChange:{},offset:{},customColumnCacheKey:{},customColumnPageCacheKey:{},beforeReset:{},searchClearSelection:{type:Boolean,default:!0}},emits:["search","reset","dargSort"],setup(t,{expose:e,emit:n}){var je;const r=o.ref(new Date().getTime()),i={mounted(se){var me;(me=se.querySelector("input"))==null||me.focus()}},s=o.useSlots(),a=t,l=o.ref(),c=["selection","radio","index","expand","sort","input"],d=o.ref(a.isShowSearch),u=o.ref(""),f=o.ref({}),h=o.ref(a.maxHeight),{selectionChange:m,selectedList:p,selectedListIds:y,isSelected:g}=TH(a.rowKey,a.selectChangeCallback),{loading:b,tableData:E,pageable:C,searchParam:_,searchInitParam:w,getTableList:S,search:k,reset:x,handleSizeChange:v,handleCurrentChange:T}=xH(a.requestApi,a.initParam,a.pagination,a.dataCallback,a.requestError,a.handleParam),M=se=>{function me(ee){return ee.replace(/[A-Z]/g,le=>"_"+le.toLowerCase())}const he={ascending:"asc",descending:"desc"},{prop:K,order:we}=se,Ke=me(Un(K)),Z=he[we];_.value={..._.value,sortKey:Ke,sortOrder:Z},C.value.page=1,k()},D=()=>l.value.clearSelection(),I=()=>l.value.clearSort(),A=o.ref(!1),N=()=>{H(),a.customColumn&&et(),a.requestAuto&&S(),a.data&&(C.value.total=a.data.length)};o.onMounted(()=>{N(),o.nextTick(()=>{A.value=!0})}),o.onActivated(()=>{A.value&&N()}),o.onDeactivated(()=>{}),o.onUnmounted(()=>{});const P=o.computed(()=>a.data?a.pagination?a.data.slice((C.value.page-1)*C.value.size,C.value.size*C.value.page):a.data:E.value),O=se=>{C.value.total=se};o.watch(()=>a.initParam,S,{deep:!0});let L=o.reactive(a.columns);const R=o.computed(()=>B(L)),$=o.ref(new Map),F=async({prop:se,enum:me})=>{if(!me||$.value.has(se)&&(typeof me=="function"||$.value.get(se)===me))return;if(typeof me!="function")return $.value.set(se,o.unref(me));$.value.set(se,[]);const{data:he}=await me();$.value.set(se,he)};o.provide("enumMap",$);const B=(se,me=[])=>(se.forEach(async he=>{var K;(K=he._children)!=null&&K.length&&me.push(...B(he._children)),me.push(he),he.isShow=he.isShow??!0,he.isFilterEnum=he.isFilterEnum??!0,await F(he)}),me.filter(he=>{var K;return!((K=he._children)!=null&&K.length)})),W=o.computed(()=>{var se;return(se=R.value)==null?void 0:se.filter(me=>{var he,K;return((he=me.search)==null?void 0:he.el)||((K=me.search)==null?void 0:K.render)}).sort((me,he)=>me.search.order-he.search.order)});(je=W.value)==null||je.forEach((se,me)=>{var we,Ke,Z;se.search.order=((we=se.search)==null?void 0:we.order)??me+2;const he=((Ke=se.search)==null?void 0:Ke.key)??Un(se.prop),K=(Z=se.search)==null?void 0:Z.defaultValue;K!=null&&(w.value[he]=K,_.value[he]=K)});const z=n,j=()=>{var se;a.searchClearSelection&&((se=l.value)==null||se.clearSelection()),k(),z("search")},q=()=>{a.beforeReset&&a.beforeReset(),x(),I(),z("reset")},H=()=>{const se=document.querySelector(".el-table__body-wrapper tbody");se&&Fe.create(se,{handle:".move",animation:300,onEnd({newIndex:me,oldIndex:he}){const[K]=P.value.splice(he,1);P.value.splice(me,0,K),z("dargSort",{newIndex:me,oldIndex:he})}})},X=o.ref(0),te=(se,me)=>{const he=E.value.findIndex(K=>K.$showInput);he>-1&&(E.value[he]=Mn(f.value),E.value[he].$showInput=!1),X.value=iE(se,String(me)),se.$showInput=!0,f.value=Mn(se)},de=async(se,me,he)=>{c_(se,me,X.value),he&&await he(se),se.$showInput=!1,nu.success("更新成功"),await S()},fe=async se=>{const me=E.value.findIndex(he=>Vn(a_(he,Ws),a_(se,Ws)));me>-1&&(E.value[me]=Mn(f.value),E.value[me].$showInput=!1)},ue=xz(a.customColumnCacheKey),xe=o.ref(null),Be=()=>L.map((se,me)=>({readonly:se.isCustomDisable||["id","operation"].includes(String(se.prop)),hideInCustomColumn:se.hideInCustomColumn||se.type==="selection",order:me,width:se.width||se.minWidth,...se})).sort((se,me)=>{const he=Number(se.order),K=Number(me.order);return he-K}),$e=()=>{Ue=o.reactive(Be()),o.nextTick(()=>{xe.value.openColSetting(Mn(Ue))})},et=()=>{if(!a.customColumnPageCacheKey)return;const se=ue.getColumnCache(a.customColumnPageCacheKey);if(se!=null&&se.length){const me=L.map(he=>{const K=se.find(we=>we.prop===he.prop);if(K){const we={...he,order:K.order||he.order,isShow:K.isShow!==void 0?K.isShow:he.isShow,readonly:K.readonly!==void 0?K.readonly:he.readonly,prop:K.prop||he.prop,index:K.index||he.index};return he.minWidth&&(we.minWidth=K.minWidth||he.minWidth),he.width&&(we.width=K.width||he.width),we}return he});Ue=o.reactive(me),L=o.reactive(Ue)}};let Ue=o.reactive(Be());const rt=Mn(Be()),Re=se=>{if(!a.customColumnPageCacheKey)return console.error("请添加自定义列缓存配置项:customColumnPageCacheKey");se=se.map(me=>{const he=rt.find(K=>K.prop===me.prop);return he&&he.minWidth&&(me.minWidth=me.width,delete me.width),me}),L=o.reactive(Mn(se)),ue.setColumnCache(a.customColumnPageCacheKey,se),r.value=new Date().getTime(),l.value.doLayout()};return e({element:l,tableData:P,radio:u,pageable:C,searchParam:_,searchInitParam:w,setPageTotal:O,getTableList:S,search:k,reset:x,handleSizeChange:v,handleCurrentChange:T,clearSelection:D,enumMap:$,isSelected:g,selectedList:p,selectedListIds:y}),(se,me)=>{const he=o.resolveDirective("loading");return o.openBlock(),o.createBlock(o.unref(aN),{locale:o.unref(eH)},{default:o.withCtx(()=>[o.createElementVNode("div",XH,[o.createElementVNode("div",ZH,[se.title?(o.openBlock(),o.createElementBlock("div",qH,o.toDisplayString(se.title),1)):o.createCommentVNode("",!0),o.unref(s).headerTip?(o.openBlock(),o.createElementBlock("div",JH,[o.renderSlot(se.$slots,"headerTip",{},void 0,!0)])):o.createCommentVNode("",!0)]),o.createElementVNode("div",QH,[o.withDirectives(o.createVNode(AH,{search:j,reset:q,columns:W.value,"search-param":o.unref(_),"is-show-reset-btn":a.isShowResetBtn,"is-show-search-btn":a.isShowSearchBtn},{default:o.withCtx(()=>[se.$slots.tableHeader?(o.openBlock(),o.createElementBlock("div",eU,[o.createElementVNode("div",tU,[o.renderSlot(se.$slots,"tableHeader",{selectedList:o.unref(p),selectedListIds:o.unref(y),isSelected:o.unref(g)},void 0,!0)])])):o.createCommentVNode("",!0)]),_:3},8,["columns","search-param","is-show-reset-btn","is-show-search-btn"]),[[o.vShow,d.value]])]),o.unref(s).searchBarBottom?(o.openBlock(),o.createElementBlock("div",nU,[o.renderSlot(se.$slots,"searchBarBottom",{},void 0,!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",rU,[a.customColumn?(o.openBlock(),o.createElementBlock("div",{key:0,class:"col-setting-button",onClick:$e},[o.createVNode(o.unref(ar),{class:"box-item",effect:"dark",content:"自定义列",placement:"top"},{default:o.withCtx(()=>[o.createVNode(o.unref(Me),{size:16,color:"#000000a6"},{default:o.withCtx(()=>[o.createVNode(o.unref(yD))]),_:1})]),_:1})])):o.createCommentVNode("",!0),o.withDirectives((o.openBlock(),o.createBlock(o.unref(Jp),o.mergeProps({ref_key:"tableRef",ref:l},se.$attrs,{key:r.value,data:P.value,border:se.border,"row-key":se.rowKey,"max-height":h.value,"row-style":{height:"42px"},"tooltip-effect":"light","tooltip-options":{showArrow:!1,placement:"bottom-start",offset:a.offset?a.offset:-20},"element-loading-spinner":o.unref(Tz),"element-loading-svg-view-box":"0 0 64 64"},o.toHandlers(se.$attrs),{onSelectionChange:o.unref(m),onSortChange:me[1]||(me[1]=K=>a.onSortChange?a.onSortChange(K):M(K))}),{append:o.withCtx(()=>[o.renderSlot(se.$slots,"append",{},void 0,!0)]),empty:o.withCtx(()=>[o.createElementVNode("div",sU,[o.renderSlot(se.$slots,"empty",{},()=>[o.createElementVNode("img",{src:`${o.unref(tz)}ghy-components/empty.png`,class:"zh-empty-img",alt:"notData"},null,8,aU),me[5]||(me[5]=o.createElementVNode("div",null,"暂无数据",-1))],!0)])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(L).sort((K,we)=>K.order-we.order),K=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:K},[K.type&&c.includes(K.type)&&K.isShow?(o.openBlock(),o.createBlock(o.unref(Ii),o.mergeProps({key:0,ref_for:!0},K,{align:K.align??"left","reserve-selection":K.type=="selection"}),o.createSlots({default:o.withCtx(we=>[K.type=="expand"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[K.render?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(K.render),o.mergeProps({key:0,ref_for:!0},we),null,16)):o.renderSlot(se.$slots,K.type,o.mergeProps({key:1,ref_for:!0},we),void 0,!0)],64)):o.createCommentVNode("",!0),K.type=="sort"?(o.openBlock(),o.createBlock(o.unref(Rp),{key:1,class:"move"},{default:o.withCtx(()=>[o.createVNode(o.unref(Me),null,{default:o.withCtx(()=>[o.createVNode(o.unref(eD))]),_:1})]),_:1})):o.createCommentVNode("",!0),K.type=="input"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[we.row.$showInput?(o.openBlock(),o.createElementBlock("div",iU,[o.withDirectives(o.createVNode(o.unref(xC),{modelValue:X.value,"onUpdate:modelValue":me[0]||(me[0]=Ke=>X.value=Ke),min:0,controls:!1},null,8,["modelValue"]),[[i]]),o.createVNode(o.unref(la),{underline:!1,type:"primary",onClick:Ke=>de(we.row,String(K.prop),K.blurCallback),class:"ml-5"},{default:o.withCtx(()=>me[3]||(me[3]=[o.createTextVNode(" 保存 ")])),_:2},1032,["onClick"]),o.createVNode(o.unref(la),{type:"primary",underline:!1,onClick:Ke=>fe(we.row),class:"ml-5"},{default:o.withCtx(()=>me[4]||(me[4]=[o.createTextVNode(" 取消 ")])),_:2},1032,["onClick"])])):(o.openBlock(),o.createBlock(o.unref(ar),{key:0,content:"编辑",placement:"top"},{default:o.withCtx(()=>[o.createElementVNode("span",oU,[o.createTextVNode(o.toDisplayString(o.unref(iE)(we.row,String(K.prop)))+" ",1),o.createVNode(o.unref(la),{underline:!1,class:"text d-flex inline-input-text pointer",onClick:Ke=>te(we.row,K.prop)},{default:o.withCtx(()=>me[2]||(me[2]=[o.createElementVNode("i",{class:"iconfont icon-edit"},null,-1)])),_:2},1032,["onClick"])])]),_:2},1024))],64)):o.createCommentVNode("",!0)]),_:2},[K.headerRender?{name:"header",fn:o.withCtx(we=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(K.headerRender),o.mergeProps({ref_for:!0},we),null,16))]),key:"0"}:void 0]),1040,["align","reserve-selection"])):o.createCommentVNode("",!0),!K.type&&K.prop&&K.isShow?(o.openBlock(),o.createBlock(VH,{key:1,column:K,"custom-column":se.customColumn},o.createSlots({_:2},[o.renderList(Object.keys(se.$slots),we=>({name:we,fn:o.withCtx(Ke=>[o.renderSlot(se.$slots,we,o.mergeProps({ref_for:!0},Ke),void 0,!0)])}))]),1032,["column","custom-column"])):o.createCommentVNode("",!0)],64))),128))]),_:3},16,["data","border","row-key","max-height","tooltip-options","element-loading-spinner","onSelectionChange"])),[[he,o.unref(b)]])]),o.renderSlot(se.$slots,"pagination",{},()=>[se.pagination?(o.openBlock(),o.createBlock(BH,{key:0,pageable:o.unref(C),"handle-size-change":o.unref(v),"handle-current-change":o.unref(T)},{zhPaginationLeftSlot:o.withCtx(K=>[o.renderSlot(se.$slots,"zhPaginationLeft",o.normalizeProps(o.guardReactiveProps(K)),void 0,!0)]),_:3},8,["pageable","handle-size-change","handle-current-change"])):o.createCommentVNode("",!0)],!0)]),a.customColumn?(o.openBlock(),o.createBlock(KH,{key:0,ref_key:"colRef",ref:xe,"origin-table-columns":o.unref(rt),onSubmit:Re},null,8,["origin-table-columns"])):o.createCommentVNode("",!0)]),_:3},8,["locale"])}}}),[["__scopeId","data-v-d7faf199"]])),lU={key:1},cU={key:1,class:"zh-base-item--value--file"},dU={key:2},uU=Pt(o.defineComponent({name:"ZhBaseItem",__name:"BaseItem",props:{label:{},labelRender:{},colon:{type:Boolean,default:!1},value:{},fileId:{},rewriteFileName:{},valueRender:{},onClick:{},labelWidth:{},infoDirection:{default:"horizontal"},defaultValue:{default:Ut},className:{},labelClassName:{},valueClassName:{},span:{default:1},showFileName:{type:Boolean,default:!0},fetchFileById:{}},setup(t){const e=o.useSlots(),n=t,r=o.inject("infoLabelWidth"),i=o.computed(()=>!!(n.onClick&&n.value)),s=o.computed(()=>!!(!n.value&&n.fileId)),a=o.ref(),l=o.computed(()=>{var h;const f=(h=a.value)==null?void 0:h.name;if(!f)return"";if(n.rewriteFileName){const m=f.substring(f.lastIndexOf("."));return n.rewriteFileName+m}return f}),c=o.computed(()=>{const f={},h=n.labelWidth||(r==null?void 0:r.value);return h&&n.infoDirection==="horizontal"&&(isNaN(Number(h))?f.width=String(h):f.width=h+"px"),f}),d=o.computed(()=>({...c.value})),u=o.computed(()=>n.value===""?Ut:n.value??Ut);return o.watchEffect(async()=>{!s.value||!n.fileId||!n.fetchFileById||(a.value=await n.fetchFileById(n.fileId))}),(f,h)=>(o.openBlock(),o.createBlock(o.unref(Lm),{span:f.span,label:f.label},{default:o.withCtx(m=>{var p;return[o.createElementVNode("div",{class:o.normalizeClass(["zh-base-item",[f.infoDirection,f.className]])},[o.createElementVNode("div",{class:o.normalizeClass(["zh-base-item-label",[f.infoDirection,f.labelClassName]]),style:o.normalizeStyle({width:f.infoDirection==="horizontal"&&m.maxLabelWidthInCol?m.maxLabelWidthInCol+"px":void 0,...d.value})},[f.labelRender?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(f.labelRender),{key:0})):(o.openBlock(),o.createElementBlock("span",lU,o.toDisplayString(f.label)+o.toDisplayString(f.colon?":":""),1))],6),o.createElementVNode("div",{class:o.normalizeClass(["zh-base-item-value",f.valueClassName])},[o.unref(e).value?o.renderSlot(f.$slots,"value",{key:0,content:f.value}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createBlock(o.unref(la),{key:0,type:"primary",class:"zh-base-item--value--link",onClick:h[0]||(h[0]=o.withModifiers(y=>f.onClick&&f.onClick(f.value??void 0),["stop"]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(f.value),1)]),_:1})):s.value?(o.openBlock(),o.createElementBlock("div",cU,[f.showFileName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(Me),{class:"iconfont"},{default:o.withCtx(()=>[o.createVNode(o.unref(nD))]),_:1}),o.createTextVNode(" "+o.toDisplayString(l.value),1)],64)):o.createCommentVNode("",!0),o.createVNode(o.unref(la),{type:"primary",href:(p=a.value)==null?void 0:p.path,target:"_blank",class:o.normalizeClass({"ml-8":f.showFileName})},{default:o.withCtx(()=>h[1]||(h[1]=[o.createTextVNode(" 查看/下载 ")])),_:1},8,["href","class"])])):f.valueRender?(o.openBlock(),o.createElementBlock("div",dU,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(f.valueRender)))])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(u.value),1)],64))],64))],2)],2)]}),_:3},8,["span","label"]))}})),fU=KR([wE,t1,tE,CE,rE,SE,aE,Lm,lE,cE,dE,fE,hE,yE,pE,mE,gE,_E,bE,av,n1,Dv,U0]);De.DIY_DATA_TYPE=to,De.ZhAlert=mE,De.ZhBaseInfo=wE,De.ZhBaseItem=uU,De.ZhButton=t1,De.ZhButtonGroup=n1,De.ZhCascaderLoadMore=U0,De.ZhConfirm=pE,De.ZhDatePicker=tE,De.ZhDetailHeader=CE,De.ZhDetailSubTitle=az,De.ZhDialog=rE,De.ZhDiyDataTable=SE,De.ZhEditInfoPair=pz,De.ZhFileWrapper=wz,De.ZhGrid=aE,De.ZhGridItem=Lm,De.ZhInfoPair=cE,De.ZhInput=dE,De.ZhInputNumber=fE,De.ZhLoading=hE,De.ZhMap=av,De.ZhMessageBox=yE,De.ZhMoneyInput=_E,De.ZhMultiGrid=lE,De.ZhPageHeadPanel=Yz,De.ZhPrompt=gE,De.ZhTable=Dv,De.ZhToolTips=bE,De.default=fU,Object.defineProperties(De,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
174
+ */function lv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Io(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lv(Object(n),!0).forEach(function(r){tH(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Nf(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nf=function(e){return typeof e}:Nf=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nf(t)}function tH(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _i(){return _i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_i.apply(this,arguments)}function nH(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function rH(t,e){if(t==null)return{};var n=nH(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var oH="1.15.6";function bi(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var wi=bi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),jc=bi(/Edge/i),cv=bi(/firefox/i),Hc=bi(/safari/i)&&!bi(/chrome/i)&&!bi(/android/i),P0=bi(/iP(ad|od|hone)/i),dv=bi(/chrome/i)&&bi(/android/i),uv={capture:!1,passive:!1};function lt(t,e,n){t.addEventListener(e,n,!wi&&uv)}function st(t,e,n){t.removeEventListener(e,n,!wi&&uv)}function Of(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function fv(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function ho(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Of(t,e):Of(t,e))||r&&t===n)return t;if(t===n)break}while(t=fv(t))}return null}var hv=/\s+/g;function fr(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(hv," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(hv," ")}}function Ve(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function ol(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Ve(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function pv(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,s=r.length;if(n)for(;i<s;i++)n(r[i],i);return r}return[]}function No(){var t=document.scrollingElement;return t||document.documentElement}function qt(t,e,n,r,i){if(!(!t.getBoundingClientRect&&t!==window)){var s,a,l,c,d,u,f;if(t!==window&&t.parentNode&&t!==No()?(s=t.getBoundingClientRect(),a=s.top,l=s.left,c=s.bottom,d=s.right,u=s.height,f=s.width):(a=0,l=0,c=window.innerHeight,d=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!wi))do if(i&&i.getBoundingClientRect&&(Ve(i,"transform")!=="none"||n&&Ve(i,"position")!=="static")){var h=i.getBoundingClientRect();a-=h.top+parseInt(Ve(i,"border-top-width")),l-=h.left+parseInt(Ve(i,"border-left-width")),c=a+s.height,d=l+s.width;break}while(i=i.parentNode);if(r&&t!==window){var m=ol(i||t),p=m&&m.a,y=m&&m.d;m&&(a/=y,l/=p,f/=p,u/=y,c=a+u,d=l+f)}return{top:a,left:l,bottom:c,right:d,width:f,height:u}}}function mv(t,e,n){for(var r=Zi(t,!0),i=qt(t)[e];r;){var s=qt(r)[n],a=void 0;if(a=i>=s,!a)return r;if(r===No())break;r=Zi(r,!1)}return!1}function il(t,e,n,r){for(var i=0,s=0,a=t.children;s<a.length;){if(a[s].style.display!=="none"&&a[s]!==Fe.ghost&&(r||a[s]!==Fe.dragged)&&ho(a[s],n.draggable,t,!1)){if(i===e)return a[s];i++}s++}return null}function D0(t,e){for(var n=t.lastElementChild;n&&(n===Fe.ghost||Ve(n,"display")==="none"||e&&!Of(n,e));)n=n.previousElementSibling;return n||null}function Lr(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Fe.clone&&(!e||Of(t,e))&&n++;return n}function gv(t){var e=0,n=0,r=No();if(t)do{var i=ol(t),s=i.a,a=i.d;e+=t.scrollLeft*s,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function iH(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function Zi(t,e){if(!t||!t.getBoundingClientRect)return No();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Ve(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return No();if(r||e)return n;r=!0}}while(n=n.parentNode);return No()}function sH(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function I0(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Uc;function yv(t,e){return function(){if(!Uc){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Uc=setTimeout(function(){Uc=void 0},e)}}}function aH(){clearTimeout(Uc),Uc=void 0}function _v(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function bv(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function wv(t,e,n){var r={};return Array.from(t.children).forEach(function(i){var s,a,l,c;if(!(!ho(i,e.draggable,t,!1)||i.animated||i===n)){var d=qt(i);r.left=Math.min((s=r.left)!==null&&s!==void 0?s:1/0,d.left),r.top=Math.min((a=r.top)!==null&&a!==void 0?a:1/0,d.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,d.right),r.bottom=Math.max((c=r.bottom)!==null&&c!==void 0?c:-1/0,d.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var er="Sortable"+new Date().getTime();function lH(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(Ve(i,"display")==="none"||i===Fe.ghost)){t.push({target:i,rect:qt(i)});var s=Io({},t[t.length-1].rect);if(i.thisAnimationDuration){var a=ol(i,!0);a&&(s.top-=a.f,s.left-=a.e)}i.fromRect=s}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(iH(t,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var s=!1,a=0;t.forEach(function(l){var c=0,d=l.target,u=d.fromRect,f=qt(d),h=d.prevFromRect,m=d.prevToRect,p=l.rect,y=ol(d,!0);y&&(f.top-=y.f,f.left-=y.e),d.toRect=f,d.thisAnimationDuration&&I0(h,f)&&!I0(u,f)&&(p.top-f.top)/(p.left-f.left)===(u.top-f.top)/(u.left-f.left)&&(c=dH(p,h,m,i.options)),I0(f,u)||(d.prevFromRect=u,d.prevToRect=f,c||(c=i.options.animation),i.animate(d,p,f,c)),c&&(s=!0,a=Math.max(a,c),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},c),d.thisAnimationDuration=c)}),clearTimeout(e),s?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,i,s,a){if(a){Ve(r,"transition",""),Ve(r,"transform","");var l=ol(this.el),c=l&&l.a,d=l&&l.d,u=(i.left-s.left)/(c||1),f=(i.top-s.top)/(d||1);r.animatingX=!!u,r.animatingY=!!f,Ve(r,"transform","translate3d("+u+"px,"+f+"px,0)"),this.forRepaintDummy=cH(r),Ve(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Ve(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ve(r,"transition",""),Ve(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function cH(t){return t.offsetWidth}function dH(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var sl=[],N0={initializeByDefault:!0},Kc={mount:function(e){for(var n in N0)N0.hasOwnProperty(n)&&!(n in e)&&(e[n]=N0[n]);sl.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),sl.push(e)},pluginEvent:function(e,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var s=e+"Global";sl.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][s]&&n[a.pluginName][s](Io({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Io({sortable:n},r)))})},initializePlugins:function(e,n,r,i){sl.forEach(function(l){var c=l.pluginName;if(!(!e.options[c]&&!l.initializeByDefault)){var d=new l(e,n,e.options);d.sortable=e,d.options=e.options,e[c]=d,_i(r,d.defaults)}});for(var s in e.options)if(e.options.hasOwnProperty(s)){var a=this.modifyOption(e,s,e.options[s]);typeof a<"u"&&(e.options[s]=a)}},getEventProperties:function(e,n){var r={};return sl.forEach(function(i){typeof i.eventProperties=="function"&&_i(r,i.eventProperties.call(n[i.pluginName],e))}),r},modifyOption:function(e,n,r){var i;return sl.forEach(function(s){e[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[n]=="function"&&(i=s.optionListeners[n].call(e[s.pluginName],r))}),i}};function uH(t){var e=t.sortable,n=t.rootEl,r=t.name,i=t.targetEl,s=t.cloneEl,a=t.toEl,l=t.fromEl,c=t.oldIndex,d=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,h=t.originalEvent,m=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[er],!!e){var y,g=e.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!wi&&!jc?y=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(r,!0,!0)),y.to=a||n,y.from=l||n,y.item=i||n,y.clone=s,y.oldIndex=c,y.newIndex=d,y.oldDraggableIndex=u,y.newDraggableIndex=f,y.originalEvent=h,y.pullMode=m?m.lastPutMode:void 0;var E=Io(Io({},p),Kc.getEventProperties(r,e));for(var C in E)y[C]=E[C];n&&n.dispatchEvent(y),g[b]&&g[b].call(e,y)}}var fH=["evt"],tr=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,s=rH(r,fH);Kc.pluginEvent.bind(Fe)(e,n,Io({dragEl:ge,parentEl:Vt,ghostEl:He,rootEl:At,nextEl:Vs,lastDownEl:Lf,cloneEl:Bt,cloneHidden:qi,dragStarted:Zc,putSortable:yn,activeSortable:Fe.active,originalEvent:i,oldIndex:al,oldDraggableIndex:Xc,newIndex:hr,newDraggableIndex:Ji,hideGhostForTarget:Tv,unhideGhostForTarget:Mv,cloneNowHidden:function(){qi=!0},cloneNowShown:function(){qi=!1},dispatchSortableEvent:function(l){Bn({sortable:n,name:l,originalEvent:i})}},s))};function Bn(t){uH(Io({putSortable:yn,cloneEl:Bt,targetEl:ge,rootEl:At,oldIndex:al,oldDraggableIndex:Xc,newIndex:hr,newDraggableIndex:Ji},t))}var ge,Vt,He,At,Vs,Lf,Bt,qi,al,hr,Xc,Ji,Af,yn,ll=!1,Ff=!1,Bf=[],$s,po,O0,L0,Cv,Ev,Zc,cl,qc,Jc=!1,Vf=!1,$f,vn,A0=[],F0=!1,zf=[],Wf=typeof document<"u",Yf=P0,Sv=jc||wi?"cssFloat":"float",hH=Wf&&!dv&&!P0&&"draggable"in document.createElement("div"),kv=function(){if(Wf){if(wi)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),vv=function(e,n){var r=Ve(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=il(e,0,n),a=il(e,1,n),l=s&&Ve(s),c=a&&Ve(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+qt(s).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+qt(a).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&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(c.clear==="both"||c.clear===f)?"vertical":"horizontal"}return s&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=i&&r[Sv]==="none"||a&&r[Sv]==="none"&&d+u>i)?"vertical":"horizontal"},pH=function(e,n,r){var i=r?e.left:e.top,s=r?e.right:e.bottom,a=r?e.width:e.height,l=r?n.left:n.top,c=r?n.right:n.bottom,d=r?n.width:n.height;return i===l||s===c||i+a/2===l+d/2},mH=function(e,n){var r;return Bf.some(function(i){var s=i[er].options.emptyInsertThreshold;if(!(!s||D0(i))){var a=qt(i),l=e>=a.left-s&&e<=a.right+s,c=n>=a.top-s&&n<=a.bottom+s;if(l&&c)return r=i}}),r},xv=function(e){function n(s,a){return function(l,c,d,u){var f=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(s==null&&(a||f))return!0;if(s==null||s===!1)return!1;if(a&&s==="clone")return s;if(typeof s=="function")return n(s(l,c,d,u),a)(l,c,d,u);var h=(a?l:c).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var r={},i=e.group;(!i||Nf(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,e.group=r},Tv=function(){!kv&&He&&Ve(He,"display","none")},Mv=function(){!kv&&He&&Ve(He,"display","")};Wf&&!dv&&document.addEventListener("click",function(t){if(Ff)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ff=!1,!1},!0);var zs=function(e){if(ge){e=e.touches?e.touches[0]:e;var n=mH(e.clientX,e.clientY);if(n){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[er]._onDragOver(r)}}},gH=function(e){ge&&ge.parentNode[er]._isOutsideThisEl(e.target)};function Fe(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=_i({},e),t[er]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return vv(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.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&&(!Hc||P0),emptyInsertThreshold:5};Kc.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);xv(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:hH,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?lt(t,"pointerdown",this._onTapStart):(lt(t,"mousedown",this._onTapStart),lt(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(lt(t,"dragover",this),lt(t,"dragenter",this)),Bf.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),_i(this,lH())}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(cl=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,ge):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,i=this.options,s=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(l||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,u=i.filter;if(kH(r),!ge&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Hc&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=ho(c,i.draggable,r,!1),!(c&&c.animated)&&Lf!==c)){if(al=Lr(c),Xc=Lr(c,i.draggable),typeof u=="function"){if(u.call(this,e,c,this)){Bn({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:r,fromEl:r}),tr("filter",n,{evt:e}),s&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(f){if(f=ho(d,f.trim(),r,!1),f)return Bn({sortable:n,rootEl:f,name:"filter",targetEl:c,fromEl:r,toEl:r}),tr("filter",n,{evt:e}),!0}),u)){s&&e.preventDefault();return}i.handle&&!ho(d,i.handle,r,!1)||this._prepareDragStart(e,l,c)}}},_prepareDragStart:function(e,n,r){var i=this,s=i.el,a=i.options,l=s.ownerDocument,c;if(r&&!ge&&r.parentNode===s){var d=qt(r);if(At=s,ge=r,Vt=ge.parentNode,Vs=ge.nextSibling,Lf=r,Af=a.group,Fe.dragged=ge,$s={target:ge,clientX:(n||e).clientX,clientY:(n||e).clientY},Cv=$s.clientX-d.left,Ev=$s.clientY-d.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,ge.style["will-change"]="all",c=function(){if(tr("delayEnded",i,{evt:e}),Fe.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!cv&&i.nativeDraggable&&(ge.draggable=!0),i._triggerDragStart(e,n),Bn({sortable:i,name:"choose",originalEvent:e}),fr(ge,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){pv(ge,u.trim(),B0)}),lt(l,"dragover",zs),lt(l,"mousemove",zs),lt(l,"touchmove",zs),a.supportPointer?(lt(l,"pointerup",i._onDrop),!this.nativeDraggable&&lt(l,"pointercancel",i._onDrop)):(lt(l,"mouseup",i._onDrop),lt(l,"touchend",i._onDrop),lt(l,"touchcancel",i._onDrop)),cv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ge.draggable=!0),tr("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(jc||wi))){if(Fe.eventCanceled){this._onDrop();return}a.supportPointer?(lt(l,"pointerup",i._disableDelayedDrag),lt(l,"pointercancel",i._disableDelayedDrag)):(lt(l,"mouseup",i._disableDelayedDrag),lt(l,"touchend",i._disableDelayedDrag),lt(l,"touchcancel",i._disableDelayedDrag)),lt(l,"mousemove",i._delayedDragTouchMoveHandler),lt(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&lt(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(c,a.delay)}else c()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ge&&B0(ge),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;st(e,"mouseup",this._disableDelayedDrag),st(e,"touchend",this._disableDelayedDrag),st(e,"touchcancel",this._disableDelayedDrag),st(e,"pointerup",this._disableDelayedDrag),st(e,"pointercancel",this._disableDelayedDrag),st(e,"mousemove",this._delayedDragTouchMoveHandler),st(e,"touchmove",this._delayedDragTouchMoveHandler),st(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?lt(document,"pointermove",this._onTouchMove):n?lt(document,"touchmove",this._onTouchMove):lt(document,"mousemove",this._onTouchMove):(lt(ge,"dragend",this),lt(At,"dragstart",this._onDragStart));try{document.selection?jf(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ll=!1,At&&ge){tr("dragStarted",this,{evt:n}),this.nativeDraggable&&lt(document,"dragover",gH);var r=this.options;!e&&fr(ge,r.dragClass,!1),fr(ge,r.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),Bn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(po){this._lastX=po.clientX,this._lastY=po.clientY,Tv();for(var e=document.elementFromPoint(po.clientX,po.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(po.clientX,po.clientY),e!==n);)n=e;if(ge.parentNode[er]._isOutsideThisEl(e),n)do{if(n[er]){var r=void 0;if(r=n[er]._onDragOver({clientX:po.clientX,clientY:po.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=fv(n));Mv()}},_onTouchMove:function(e){if($s){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,s=e.touches?e.touches[0]:e,a=He&&ol(He,!0),l=He&&a&&a.a,c=He&&a&&a.d,d=Yf&&vn&&gv(vn),u=(s.clientX-$s.clientX+i.x)/(l||1)+(d?d[0]-A0[0]:0)/(l||1),f=(s.clientY-$s.clientY+i.y)/(c||1)+(d?d[1]-A0[1]:0)/(c||1);if(!Fe.active&&!ll){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(He){a?(a.e+=u-(O0||0),a.f+=f-(L0||0)):a={a:1,b:0,c:0,d:1,e:u,f};var h="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Ve(He,"webkitTransform",h),Ve(He,"mozTransform",h),Ve(He,"msTransform",h),Ve(He,"transform",h),O0=u,L0=f,po=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!He){var e=this.options.fallbackOnBody?document.body:At,n=qt(ge,!0,Yf,!0,e),r=this.options;if(Yf){for(vn=e;Ve(vn,"position")==="static"&&Ve(vn,"transform")==="none"&&vn!==document;)vn=vn.parentNode;vn!==document.body&&vn!==document.documentElement?(vn===document&&(vn=No()),n.top+=vn.scrollTop,n.left+=vn.scrollLeft):vn=No(),A0=gv(vn)}He=ge.cloneNode(!0),fr(He,r.ghostClass,!1),fr(He,r.fallbackClass,!0),fr(He,r.dragClass,!0),Ve(He,"transition",""),Ve(He,"transform",""),Ve(He,"box-sizing","border-box"),Ve(He,"margin",0),Ve(He,"top",n.top),Ve(He,"left",n.left),Ve(He,"width",n.width),Ve(He,"height",n.height),Ve(He,"opacity","0.8"),Ve(He,"position",Yf?"absolute":"fixed"),Ve(He,"zIndex","100000"),Ve(He,"pointerEvents","none"),Fe.ghost=He,e.appendChild(He),Ve(He,"transform-origin",Cv/parseInt(He.style.width)*100+"% "+Ev/parseInt(He.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,i=e.dataTransfer,s=r.options;if(tr("dragStart",this,{evt:e}),Fe.eventCanceled){this._onDrop();return}tr("setupClone",this),Fe.eventCanceled||(Bt=bv(ge),Bt.removeAttribute("id"),Bt.draggable=!1,Bt.style["will-change"]="",this._hideClone(),fr(Bt,this.options.chosenClass,!1),Fe.clone=Bt),r.cloneId=jf(function(){tr("clone",r),!Fe.eventCanceled&&(r.options.removeCloneOnHide||At.insertBefore(Bt,ge),r._hideClone(),Bn({sortable:r,name:"clone"}))}),!n&&fr(ge,s.dragClass,!0),n?(Ff=!0,r._loopId=setInterval(r._emulateDragOver,50)):(st(document,"mouseup",r._onDrop),st(document,"touchend",r._onDrop),st(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(r,i,ge)),lt(document,"drop",r),Ve(ge,"transform","translateZ(0)")),ll=!0,r._dragStartId=jf(r._dragStarted.bind(r,n,e)),lt(document,"selectstart",r),Zc=!0,window.getSelection().removeAllRanges(),Hc&&Ve(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,i,s,a,l=this.options,c=l.group,d=Fe.active,u=Af===c,f=l.sort,h=yn||d,m,p=this,y=!1;if(F0)return;function g(L,R){tr(L,p,Io({evt:e,isOwner:u,axis:m?"vertical":"horizontal",revert:a,dragRect:i,targetRect:s,canSort:f,fromSortable:h,target:r,completed:E,onMove:function(F,B){return Gf(At,n,ge,i,F,qt(F),e,B)},changed:C},R))}function b(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function E(L){return g("dragOverCompleted",{insertion:L}),L&&(u?d._hideClone():d._showClone(p),p!==h&&(fr(ge,yn?yn.options.ghostClass:d.options.ghostClass,!1),fr(ge,l.ghostClass,!0)),yn!==p&&p!==Fe.active?yn=p:p===Fe.active&&yn&&(yn=null),h===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===ge&&!ge.animated||r===n&&!r.animated)&&(cl=null),!l.dragoverBubble&&!e.rootEl&&r!==document&&(ge.parentNode[er]._isOutsideThisEl(e.target),!L&&zs(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),y=!0}function C(){hr=Lr(ge),Ji=Lr(ge,l.draggable),Bn({sortable:p,name:"change",toEl:n,newIndex:hr,newDraggableIndex:Ji,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=ho(r,l.draggable,n,!0),g("dragOver"),Fe.eventCanceled)return y;if(ge.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return E(!1);if(Ff=!1,d&&!l.disabled&&(u?f||(a=Vt!==At):yn===this||(this.lastPutMode=Af.checkPull(this,d,ge,e))&&c.checkPut(this,d,ge,e))){if(m=this._getDirection(e,r)==="vertical",i=qt(ge),g("dragOverValid"),Fe.eventCanceled)return y;if(a)return Vt=At,b(),this._hideClone(),g("revert"),Fe.eventCanceled||(Vs?At.insertBefore(ge,Vs):At.appendChild(ge)),E(!0);var _=D0(n,l.draggable);if(!_||wH(e,m,this)&&!_.animated){if(_===ge)return E(!1);if(_&&n===e.target&&(r=_),r&&(s=qt(r)),Gf(At,n,ge,i,r,s,e,!!r)!==!1)return b(),_&&_.nextSibling?n.insertBefore(ge,_.nextSibling):n.appendChild(ge),Vt=n,C(),E(!0)}else if(_&&bH(e,m,this)){var w=il(n,0,l,!0);if(w===ge)return E(!1);if(r=w,s=qt(r),Gf(At,n,ge,i,r,s,e,!1)!==!1)return b(),n.insertBefore(ge,w),Vt=n,C(),E(!0)}else if(r.parentNode===n){s=qt(r);var S=0,k,x=ge.parentNode!==n,v=!pH(ge.animated&&ge.toRect||i,r.animated&&r.toRect||s,m),T=m?"top":"left",M=mv(r,"top","top")||mv(ge,"top","top"),D=M?M.scrollTop:void 0;cl!==r&&(k=s[T],Jc=!1,Vf=!v&&l.invertSwap||x),S=CH(e,r,s,m,v?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Vf,cl===r);var I;if(S!==0){var A=Lr(ge);do A-=S,I=Vt.children[A];while(I&&(Ve(I,"display")==="none"||I===He))}if(S===0||I===r)return E(!1);cl=r,qc=S;var N=r.nextElementSibling,P=!1;P=S===1;var O=Gf(At,n,ge,i,r,s,e,P);if(O!==!1)return(O===1||O===-1)&&(P=O===1),F0=!0,setTimeout(_H,30),b(),P&&!N?n.appendChild(ge):r.parentNode.insertBefore(ge,P?N:r),M&&_v(M,0,D-M.scrollTop),Vt=ge.parentNode,k!==void 0&&!Vf&&($f=Math.abs(k-qt(r)[T])),C(),E(!0)}if(n.contains(ge))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){st(document,"mousemove",this._onTouchMove),st(document,"touchmove",this._onTouchMove),st(document,"pointermove",this._onTouchMove),st(document,"dragover",zs),st(document,"mousemove",zs),st(document,"touchmove",zs)},_offUpEvents:function(){var e=this.el.ownerDocument;st(e,"mouseup",this._onDrop),st(e,"touchend",this._onDrop),st(e,"pointerup",this._onDrop),st(e,"pointercancel",this._onDrop),st(e,"touchcancel",this._onDrop),st(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(hr=Lr(ge),Ji=Lr(ge,r.draggable),tr("drop",this,{evt:e}),Vt=ge&&ge.parentNode,hr=Lr(ge),Ji=Lr(ge,r.draggable),Fe.eventCanceled){this._nulling();return}ll=!1,Vf=!1,Jc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),V0(this.cloneId),V0(this._dragStartId),this.nativeDraggable&&(st(document,"drop",this),st(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Hc&&Ve(document.body,"user-select",""),Ve(ge,"transform",""),e&&(Zc&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),He&&He.parentNode&&He.parentNode.removeChild(He),(At===Vt||yn&&yn.lastPutMode!=="clone")&&Bt&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),ge&&(this.nativeDraggable&&st(ge,"dragend",this),B0(ge),ge.style["will-change"]="",Zc&&!ll&&fr(ge,yn?yn.options.ghostClass:this.options.ghostClass,!1),fr(ge,this.options.chosenClass,!1),Bn({sortable:this,name:"unchoose",toEl:Vt,newIndex:null,newDraggableIndex:null,originalEvent:e}),At!==Vt?(hr>=0&&(Bn({rootEl:Vt,name:"add",toEl:Vt,fromEl:At,originalEvent:e}),Bn({sortable:this,name:"remove",toEl:Vt,originalEvent:e}),Bn({rootEl:Vt,name:"sort",toEl:Vt,fromEl:At,originalEvent:e}),Bn({sortable:this,name:"sort",toEl:Vt,originalEvent:e})),yn&&yn.save()):hr!==al&&hr>=0&&(Bn({sortable:this,name:"update",toEl:Vt,originalEvent:e}),Bn({sortable:this,name:"sort",toEl:Vt,originalEvent:e})),Fe.active&&((hr==null||hr===-1)&&(hr=al,Ji=Xc),Bn({sortable:this,name:"end",toEl:Vt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){tr("nulling",this),At=ge=Vt=He=Vs=Bt=Lf=qi=$s=po=Zc=hr=Ji=al=Xc=cl=qc=yn=Af=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,zf.forEach(function(e){e.checked=!0}),zf.length=O0=L0=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ge&&(this._onDragOver(e),yH(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,i=0,s=r.length,a=this.options;i<s;i++)n=r[i],ho(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||SH(n));return e},sort:function(e,n){var r={},i=this.el;this.toArray().forEach(function(s,a){var l=i.children[a];ho(l,this.options.draggable,i,!1)&&(r[s]=l)},this),n&&this.captureAnimationState(),e.forEach(function(s){r[s]&&(i.removeChild(r[s]),i.appendChild(r[s]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return ho(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var i=Kc.modifyOption(this,e,n);typeof i<"u"?r[e]=i:r[e]=n,e==="group"&&xv(r)},destroy:function(){tr("destroy",this);var e=this.el;e[er]=null,st(e,"mousedown",this._onTapStart),st(e,"touchstart",this._onTapStart),st(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(st(e,"dragover",this),st(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Bf.splice(Bf.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!qi){if(tr("hideClone",this),Fe.eventCanceled)return;Ve(Bt,"display","none"),this.options.removeCloneOnHide&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),qi=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(qi){if(tr("showClone",this),Fe.eventCanceled)return;ge.parentNode==At&&!this.options.group.revertClone?At.insertBefore(Bt,ge):Vs?At.insertBefore(Bt,Vs):At.appendChild(Bt),this.options.group.revertClone&&this.animate(ge,Bt),Ve(Bt,"display",""),qi=!1}}};function yH(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Gf(t,e,n,r,i,s,a,l){var c,d=t[er],u=d.options.onMove,f;return window.CustomEvent&&!wi&&!jc?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=t,c.dragged=n,c.draggedRect=r,c.related=i||e,c.relatedRect=s||qt(e),c.willInsertAfter=l,c.originalEvent=a,t.dispatchEvent(c),u&&(f=u.call(d,c,a)),f}function B0(t){t.draggable=!1}function _H(){F0=!1}function bH(t,e,n){var r=qt(il(n.el,0,n.options,!0)),i=wv(n.el,n.options,He),s=10;return e?t.clientX<i.left-s||t.clientY<r.top&&t.clientX<r.right:t.clientY<i.top-s||t.clientY<r.bottom&&t.clientX<r.left}function wH(t,e,n){var r=qt(D0(n.el,n.options.draggable)),i=wv(n.el,n.options,He),s=10;return e?t.clientX>i.right+s||t.clientY>r.bottom&&t.clientX>r.left:t.clientY>i.bottom+s||t.clientX>r.right&&t.clientY>r.top}function CH(t,e,n,r,i,s,a,l){var c=r?t.clientY:t.clientX,d=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,h=!1;if(!a){if(l&&$f<d*i){if(!Jc&&(qc===1?c>u+d*s/2:c<f-d*s/2)&&(Jc=!0),Jc)h=!0;else if(qc===1?c<u+$f:c>f-$f)return-qc}else if(c>u+d*(1-i)/2&&c<f-d*(1-i)/2)return EH(e)}return h=h||a,h&&(c<u+d*s/2||c>f-d*s/2)?c>u+d/2?1:-1:0}function EH(t){return Lr(ge)<Lr(t)?1:-1}function SH(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function kH(t){zf.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&zf.push(r)}}function jf(t){return setTimeout(t,0)}function V0(t){return clearTimeout(t)}Wf&&lt(document,"touchmove",function(t){(Fe.active||ll)&&t.cancelable&&t.preventDefault()}),Fe.utils={on:lt,off:st,css:Ve,find:pv,is:function(e,n){return!!ho(e,n,e,!1)},extend:sH,throttle:yv,closest:ho,toggleClass:fr,clone:bv,index:Lr,nextTick:jf,cancelNextTick:V0,detectDirection:vv,getChild:il,expando:er},Fe.get=function(t){return t[er]},Fe.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];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=Io(Io({},Fe.utils),r.utils)),Kc.mount(r)})},Fe.create=function(t,e){return new Fe(t,e)},Fe.version=oH;var Jt=[],Qc,$0,z0=!1,W0,Y0,Hf,ed;function vH(){function t(){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 t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?lt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?lt(document,"touchmove",this._handleFallbackAutoScroll):lt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?st(document,"dragover",this._handleAutoScroll):(st(document,"pointermove",this._handleFallbackAutoScroll),st(document,"touchmove",this._handleFallbackAutoScroll),st(document,"mousemove",this._handleFallbackAutoScroll)),Rv(),Uf(),aH()},nulling:function(){Hf=$0=Qc=z0=ed=W0=Y0=null,Jt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,s=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(s,a);if(Hf=n,r||this.options.forceAutoScrollFallback||jc||wi||Hc){G0(n,this.options,l,r);var c=Zi(l,!0);z0&&(!ed||s!==W0||a!==Y0)&&(ed&&Rv(),ed=setInterval(function(){var d=Zi(document.elementFromPoint(s,a),!0);d!==c&&(c=d,Uf()),G0(n,i.options,d,r)},10),W0=s,Y0=a)}else{if(!this.options.bubbleScroll||Zi(l,!0)===No()){Uf();return}G0(n,this.options,Zi(l,!1),!1)}}},_i(t,{pluginName:"scroll",initializeByDefault:!0})}function Uf(){Jt.forEach(function(t){clearInterval(t.pid)}),Jt=[]}function Rv(){clearInterval(ed)}var G0=yv(function(t,e,n,r){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,c=No(),d=!1,u;$0!==n&&($0=n,Uf(),Qc=e.scroll,u=e.scrollFn,Qc===!0&&(Qc=Zi(n,!0)));var f=0,h=Qc;do{var m=h,p=qt(m),y=p.top,g=p.bottom,b=p.left,E=p.right,C=p.width,_=p.height,w=void 0,S=void 0,k=m.scrollWidth,x=m.scrollHeight,v=Ve(m),T=m.scrollLeft,M=m.scrollTop;m===c?(w=C<k&&(v.overflowX==="auto"||v.overflowX==="scroll"||v.overflowX==="visible"),S=_<x&&(v.overflowY==="auto"||v.overflowY==="scroll"||v.overflowY==="visible")):(w=C<k&&(v.overflowX==="auto"||v.overflowX==="scroll"),S=_<x&&(v.overflowY==="auto"||v.overflowY==="scroll"));var D=w&&(Math.abs(E-i)<=a&&T+C<k)-(Math.abs(b-i)<=a&&!!T),I=S&&(Math.abs(g-s)<=a&&M+_<x)-(Math.abs(y-s)<=a&&!!M);if(!Jt[f])for(var A=0;A<=f;A++)Jt[A]||(Jt[A]={});(Jt[f].vx!=D||Jt[f].vy!=I||Jt[f].el!==m)&&(Jt[f].el=m,Jt[f].vx=D,Jt[f].vy=I,clearInterval(Jt[f].pid),(D!=0||I!=0)&&(d=!0,Jt[f].pid=setInterval((function(){r&&this.layer===0&&Fe.active._onTouchMove(Hf);var N=Jt[this.layer].vy?Jt[this.layer].vy*l:0,P=Jt[this.layer].vx?Jt[this.layer].vx*l:0;typeof u=="function"&&u.call(Fe.dragged.parentNode[er],P,N,t,Hf,Jt[this.layer].el)!=="continue"||_v(Jt[this.layer].el,P,N)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&h!==c&&(h=Zi(h,!1)));z0=d}},30),Pv=function(e){var n=e.originalEvent,r=e.putSortable,i=e.dragEl,s=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(n){var d=r||s;l();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(u.clientX,u.clientY);c(),d&&!d.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function j0(){}j0.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=il(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:Pv},_i(j0,{pluginName:"revertOnSpill"});function H0(){}H0.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Pv},_i(H0,{pluginName:"removeOnSpill"}),Fe.mount(new vH),Fe.mount(H0,j0);const xH=(t,e={},n=!0,r,i,s=a=>a)=>{const a=o.reactive({tableData:[],pageable:{page:1,size:10,total:0},searchParam:{},searchInitParam:{},totalParam:{},loading:!1}),l=o.computed({get:()=>({page:a.pageable.page,size:a.pageable.size}),set:y=>{console.log("我是分页更新之后的值",y)}}),c=async()=>{if(!a.loading){if(a.loading=!0,!t){a.loading=!1;return}try{Object.assign(a.totalParam,e,n?l.value:{});for(const g in a.searchParam)a.searchParam[g]===""&&delete a.searchParam[g];let y=await t(s({...a.searchInitParam,...a.totalParam}));if(r&&(y=await r(y)),a.tableData=n?y.list:y,n){const{currentPage:g,pageSize:b,total:E}=y;u({page:g,size:b,total:E})}}catch(y){i&&i(y)}finally{a.loading=!1}}},d=()=>{a.totalParam={},a.searchInitParam={},e={};const y={};for(const g in a.searchParam)(a.searchParam[g]||a.searchParam[g]===!1||a.searchParam[g]===0)&&(y[g]=a.searchParam[g]);Object.assign(a.totalParam,y,n?l.value:{})},u=y=>{Object.assign(a.pageable,y)},f=()=>{a.pageable.page=1,d(),c()},h=()=>{a.pageable.page=1,a.searchParam={...a.searchInitParam},d(),c()},m=y=>{a.pageable.page=1,a.pageable.size=y,c()},p=y=>{a.pageable.page=y,c()};return{...o.toRefs(a),getTableList:c,search:f,reset:h,handleSizeChange:m,handleCurrentChange:p,updatedTotalParam:d}},TH=(t="id",e)=>{const n=o.ref(!1),r=o.ref([]),i=o.computed(()=>{const a=[];return r.value.forEach(l=>a.push(rr(l,t))),a});return{isSelected:n,selectedList:r,selectedListIds:i,selectionChange:a=>{a.length?n.value=!0:n.value=!1,r.value=a,e&&e(a)}}},MH={class:"w-100"},RH={key:1,class:"cascader-select-empty"},PH={key:2,class:"loading"},U0=Pt(o.defineComponent({name:"CascaderLoadMore",__name:"CascaderLoadMore",props:o.mergeModels({onChange:{type:Function,required:!1},initialValue:{type:[String,Number,Array],required:!1},pageSize:{type:Number,default:10},requestFunction:{type:Function,required:!0},handleOptionsFunction:{type:Function,required:!0},placeholder:{type:String,default:"输入关键字搜索名称"},forceSearch:{type:Boolean,default:!0},initialOptions:{type:Array,required:!1,default:()=>[]},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},cascaderProps:{type:Object,default:()=>({})},placement:{type:String,default:"bottom-start"},trigger:{type:String,default:"click"},popperClass:{type:String},teleported:{type:Boolean,default:!1},noDataText:{type:String,default:"暂无数据"}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["change","removeTag"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const r=t,i=o.useModel(t,"modelValue"),s=o.ref(i.value||[]),a=o.ref(!1),l=o.ref({page:1,size:r.pageSize}),c=o.ref(void 0),d=o.ref(!1),u=o.ref(!0),f=o.ref(r.initialOptions||[]),h=o.ref(r.initialOptions||[]),m=o.ref(void 0),p=o.ref(!1),y={expandTrigger:"hover",checkStrictly:!1,multiple:r.multiple,emitPath:!0,...r.cascaderProps},g=o.ref(),b=o.ref(),E=()=>{a.value=!0},C=()=>{a.value=!1},_=F=>{const B=new Map;return(F||[]).forEach(W=>{const z=`${W.value}`;B.has(z)||B.set(z,W)}),Array.from(B.values())};function w(F){const B=[];function W(z,j=""){const q=j&&(r.cascaderProps.emitPath??!0)?`${j}/${z.label}`:z.label;B.push({...z,value:z.value,label:q}),z.children&&z.children.length>0&&z.children.forEach(H=>W(H,q))}return F.forEach(z=>W(z)),B}const S=async F=>{var j;if(!r.forceSearch&&!F)return;const B=m.value===F||!m.value&&!F;if(B||(l.value.page=1),B&&c.value!==void 0&&l.value.page>c.value&&!p.value)return;p.value=!1,d.value=!0,h.value.length===0&&(u.value=!0);const z=await r.requestFunction(l.value.page,l.value.size,F);if(z&&Object.keys(z).length){c.value=z.totalPage;const q=(j=z==null?void 0:z.list)==null?void 0:j.map(r.handleOptionsFunction);B&&l.value.page!==1?h.value=_([...h.value,...q]):h.value=q||[],s.value=Mn(i.value),f.value=w(h.value)}o.nextTick(()=>{$()}),m.value=F,d.value=!1,h.value.length!==0&&(u.value=!1)},k=()=>{l.value.page=l.value.page+1,S(m.value)},x=async F=>{i.value=F,s.value=F,await o.nextTick();const B=v(F),W=r.onChange;W&&W(F,B)},v=F=>{const B=F||i.value;return r.multiple?f.value.filter(W=>(B||[]).includes(W.value)):f.value.find(W=>W.value===B)},T=()=>{i.value=r.initialValue,s.value=r.initialValue,l.value.page=1,l.value.size=r.pageSize,f.value=r.initialOptions||[],h.value=r.initialOptions||[],c.value=void 0,m.value=void 0},M=n;o.watch(()=>r.initialOptions,()=>{f.value=w(r.initialOptions),console.log("options.value",f.value),h.value=r.initialOptions},{immediate:!0});const D=F=>{M("removeTag",F)},I=F=>{p.value=F},A=o.ref(null),N=o.ref(null),P=()=>{if(!a.value)return;const F=b.value.popperRef.contentRef,B=F==null?void 0:F.querySelector(".el-cascader-panel .el-scrollbar__wrap");B&&(A.value=B,N.value=()=>L(B),B.addEventListener("scroll",N.value))},O=()=>{A.value&&N.value&&(A.value.removeEventListener("scroll",N.value),A.value=null,N.value=null)},L=F=>{const{scrollTop:B,scrollHeight:W,clientHeight:z}=F;let j=W-B;z+10>j&&k()};o.nextTick(()=>P()),o.watch(a,F=>{F?(console.log("visible",F),o.nextTick(()=>P())):O()}),o.watch(h,F=>{F!=null&&F.length&&a.value?o.nextTick(()=>P()):O()});const R=async F=>{(r.cascaderProps.emitPath??!0)&&Array.isArray(F)?r.multiple?i.value=F.map(z=>z.at(-1)):i.value=F.at(-1):i.value=Mn(s.value),await o.nextTick();const B=v(i.value),W=r.onChange;W&&W(F,B)},$=()=>{var z;const F=b.value.popperRef.contentRef,B=(z=g.value)==null?void 0:z.$el,W=F==null?void 0:F.querySelector(".cascader-select-empty");if(B&&W){const j=B.offsetWidth;W.style.width=`${j}px`}};return e({reset:T,getSelectedOption:v,remoteMethod:S,handleRequestParamsChanged:I,options:f,cascderOptions:h}),(F,B)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",MH,[o.createVNode(o.unref(k3),{ref_key:"popoverRef",ref:b,teleported:t.teleported,placement:r.placement,trigger:r.trigger,"popper-class":"warp-cascade-panel "+r.popperClass,visible:a.value},{reference:o.withCtx(()=>[o.createVNode(o.unref(DC),o.mergeProps({ref_key:"remoteSelectRef",ref:g,modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=W=>i.value=W),multiple:t.multiple,placeholder:t.placeholder,"remote-method":S,teleported:!0,clearable:t.clearable,"collapse-tags":t.collapseTags,"collapse-tags-tooltip":t.collapseTagsTooltip,filterable:"",height:"300",remote:"","remote-show-suffix":"","reserve-keyword":"","popper-class":"hidden-dropdown",class:"cascader-select"},F.$attrs,{onClick:E,onChange:x,onRemoveTag:D}),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,W=>(o.openBlock(),o.createBlock(o.unref(IC),{key:W.value,label:W.label,value:W.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","multiple","placeholder","clearable","collapse-tags","collapse-tags-tooltip"])]),default:o.withCtx(()=>[!u.value&&h.value.length>0?(o.openBlock(),o.createBlock(o.unref(_F),{key:0,modelValue:s.value,"onUpdate:modelValue":B[1]||(B[1]=W=>s.value=W),border:!1,props:y,options:h.value,class:"select-cascader-panel",onChange:R},null,8,["modelValue","options"])):(o.openBlock(),o.createElementBlock("div",RH,o.toDisplayString(t.noDataText),1)),d.value?(o.openBlock(),o.createElementBlock("div",PH,"加载中...")):o.createCommentVNode("",!0)]),_:1},8,["teleported","placement","trigger","popper-class","visible"])])),[[o.unref(oa),C]])}})),DH={class:"search-form-item"},IH=zt(o.defineComponent({name:"SearchFormItem",__name:"SearchFormItem",props:{column:{},searchParam:{}},emits:["search"],setup(t,{emit:e}){o.useCssVars(g=>({d30b6d6c:f.value}));const n=t,r=e,i=o.computed(()=>n.searchParam),s=o.computed(()=>{var g,b,E;return{label:((g=n.column.fieldNames)==null?void 0:g.label)??"label",value:((b=n.column.fieldNames)==null?void 0:b.value)??"value",children:((E=n.column.fieldNames)==null?void 0:E.children)??"children"}}),a=o.inject("enumMap",o.ref(new Map)),l=o.computed(()=>{var b;let g=a.value.get(n.column.prop);return g?(((b=n.column.search)==null?void 0:b.el)==="select-v2"&&n.column.fieldNames&&(g=g.map(E=>({...E,label:E[s.value.label],value:E[s.value.value]}))),g):[]}),c=o.computed(()=>{var g,b;return((b=(g=n.column.search)==null?void 0:g.props)==null?void 0:b.options)??l.value??[]}),d=o.computed(()=>{var w,S;const g=s.value.label,b=s.value.value,E=s.value.children,C=(w=n.column.search)==null?void 0:w.el;let _=((S=n.column.search)==null?void 0:S.props)??{};return C==="tree-select"&&(_={..._,props:{..._.props,label:g,children:E},nodeKey:b}),C==="cascader"&&(_={..._,props:{..._.props,label:g,value:b,children:E}}),_}),u=o.computed(()=>{var E,C,_,w,S,k,x;const g=n.column.search;return["datetimerange","daterange","monthrange"].includes((E=g==null?void 0:g.props)==null?void 0:E.type)||(C=g==null?void 0:g.props)!=null&&C.isRange?{rangeSeparator:((_=g==null?void 0:g.props)==null?void 0:_.rangeSeparator)??"-",startPlaceholder:((w=g==null?void 0:g.props)==null?void 0:w.startPlaceholder)??"开始时间",endPlaceholder:((S=g==null?void 0:g.props)==null?void 0:S.endPlaceholder)??"结束时间"}:{placeholder:((k=g==null?void 0:g.props)==null?void 0:k.placeholder)??((x=g==null?void 0:g.el)!=null&&x.includes("input")?"请输入":"请选择")}}),f=o.computed(()=>{var _,w;const g=n.column.search,b=i.value[(g==null?void 0:g.key)??Un(n.column.prop)],E=g==null?void 0:g.el,C=(_=g==null?void 0:g.props)==null?void 0:_.placeholder;if(g!=null&&g.width)if(rd(g==null?void 0:g.width)){if(g==null?void 0:g.width(b))return(g==null?void 0:g.width(b))+"px"}else return(g==null?void 0:g.width)+"px";if(b&&b.length!==0&&["select","select-v2","tree-select","cascader"].includes(E||"")){if(un(b)){let x=c.value;const v=[];if(b.forEach(T=>{const M=x.find(I=>I[s.value.value]===T);v.push(M?M[s.value.label]:T);const D=M[s.value.children]??c.value;x=M?D:[]}),(w=g==null?void 0:g.props)!=null&&w.multiple){const D=ws(v[0])+42;return b.length>1?D+26+ws("+ "+(b.length-1))+"px":D+"px"}return ws(v.join(" / "))+"px"}let S=c.value.find(x=>x[s.value.value]===b);const k=S?S[s.value.label]:b;return ws(k)+"px"}else return C?ws(C)+"px":["date-picker","time-picker","time-select"].includes(E||"")?"210px":"100px"}),h=o.computed(()=>{var g,b,E,C,_;return(E=(b=(g=n.column)==null?void 0:g.search)==null?void 0:b.props)!=null&&E.multiple&&((_=(C=n.column)==null?void 0:C.search)==null?void 0:_.el)==="select"?{collapseTags:!0,collapseTagsTooltip:!0}:{}}),m=o.computed(()=>{var b;const g=n.column.search;return((b=g==null?void 0:g.props)==null?void 0:b.clearable)??((g==null?void 0:g.defaultValue)==null||!1)}),p=g=>{var b,E,C,_,w,S,k,x,v;if(((C=(E=(b=n.column)==null?void 0:b.search)==null?void 0:E.props)==null?void 0:C.type)==="daterange"){const{searchParam:T}=o.toRefs(n);if(g!=null&&g.length){const M=((S=(w=(_=n.column)==null?void 0:_.search)==null?void 0:w.props)==null?void 0:S.beginTime)||"beginTime",D=((v=(x=(k=n.column)==null?void 0:k.search)==null?void 0:x.props)==null?void 0:v.endTime)||"endTime";T.value[M]=g[0],T.value[D]=g[1]}else delete T.value.beginTime,delete T.value.endTime}(g==null||g==="")&&r("search"),g instanceof Array&&!g.length&&r("search")},y=()=>{var g;["input","input-number"].includes(((g=n.column.search)==null?void 0:g.el)||"")&&r("search")};return(g,b)=>{var E,C,_,w,S,k,x,v,T,M,D;return o.openBlock(),o.createElementBlock("div",DH,[((E=g.column.search)==null?void 0:E.type)!=="custom"?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(((C=g.column.search)==null?void 0:C.render)??`el-${(_=g.column.search)==null?void 0:_.el}`),o.mergeProps({key:0},{...d.value,...u.value,searchParam:i.value,clearable:m.value,...h.value},{modelValue:i.value[((w=g.column.search)==null?void 0:w.key)??o.unref(Un)(g.column.prop)],"onUpdate:modelValue":b[0]||(b[0]=I=>{var A;return i.value[((A=g.column.search)==null?void 0:A.key)??o.unref(Un)(g.column.prop)]=I}),modelModifiers:{trim:!0},data:((S=g.column.search)==null?void 0:S.el)==="tree-select"?l.value:[],options:c.value,"prefix-icon":(x=(k=g.column.search)==null?void 0:k.props)==null?void 0:x.prefixIcon,onChange:p,onKeyup:o.withKeys(y,["enter"])}),o.createSlots({default:o.withCtx(()=>{var I;return[((I=g.column.search)==null?void 0:I.el)==="select"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(l.value,(A,N)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent("el-option"),{key:N,label:A[s.value.label]??"",value:A[s.value.value]},null,8,["label","value"]))),128)):o.renderSlot(g.$slots,"default",{key:1},void 0,!0)]}),_:2},[((v=g.column.search)==null?void 0:v.el)==="cascader"?{name:"default",fn:o.withCtx(({data:I})=>[o.createElementVNode("span",null,o.toDisplayString(I[s.value.label]),1)]),key:"0"}:void 0]),1040,["modelValue","data","options","prefix-icon"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[((T=g.column.search)==null?void 0:T.el)==="zhCascaderLoadMore"?(o.openBlock(),o.createBlock(o.unref(U0),o.mergeProps({key:0,modelValue:i.value[((M=g.column.search)==null?void 0:M.key)??o.unref(Un)(g.column.prop)],"onUpdate:modelValue":b[1]||(b[1]=I=>{var A;return i.value[((A=g.column.search)==null?void 0:A.key)??o.unref(Un)(g.column.prop)]=I}),modelModifiers:{trim:!0}},(D=g.column.search)==null?void 0:D.props),null,16,["modelValue"])):o.createCommentVNode("",!0)],64))])}}}),[["__scopeId","data-v-5f92a08e"]]),NH={class:"table-search"},OH={key:0},LH={key:0,class:"operation"},AH=zt(o.defineComponent({name:"SearchForm",__name:"SearchForm",props:{columns:{default:()=>[]},searchParam:{default:()=>({})},search:{},reset:{},isShowResetBtn:{type:Boolean,default:!0},isShowSearchBtn:{type:Boolean,default:!0}},setup(t){const e=t;return(n,r)=>(o.openBlock(),o.createElementBlock("div",NH,[o.createVNode(o.unref(Wb),{ref:"formRef",model:n.searchParam,class:"table-search--left",onSubmit:r[0]||(r[0]=o.withModifiers(()=>{},["prevent"]))},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},void 0,!0),n.columns.length?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.columns,i=>{var s,a,l;return o.openBlock(),o.createElementBlock(o.Fragment,{key:i.prop},[!o.unref(jR)((s=i.search)==null?void 0:s.isShow)||(a=i.search)!=null&&a.isShow?(o.openBlock(),o.createElementBlock("div",OH,[o.createVNode(o.unref(qh),null,o.createSlots({default:o.withCtx(()=>[o.createVNode(IH,{column:i,"search-param":n.searchParam,onSearch:n.search},null,8,["column","search-param","onSearch"])]),_:2},[(l=i.search)!=null&&l.label?{name:"label",fn:o.withCtx(()=>[o.createVNode(o.unref(R3),{size:4},{default:o.withCtx(()=>{var c,d;return[o.createElementVNode("span",null,o.toDisplayString(`${i.search.label}`),1),(c=i.search)!=null&&c.tooltip?(o.openBlock(),o.createBlock(o.unref(ar),{key:0,effect:"dark",content:(d=i.search)==null?void 0:d.tooltip,placement:"top"},{default:o.withCtx(()=>r[1]||(r[1]=[o.createElementVNode("i",{class:o.normalizeClass("iconfont icon-yiwen")},null,-1)])),_:2},1032,["content"])):o.createCommentVNode("",!0)]}),_:2},1024),r[2]||(r[2]=o.createElementVNode("span",null,":",-1))]),key:"0"}:void 0]),1024)])):o.createCommentVNode("",!0)],64)}),128)),e.isShowSearchBtn?(o.openBlock(),o.createBlock(o.unref(cr),{key:0,type:"primary",class:"table-search--search-btn",onClick:n.search},{icon:o.withCtx(()=>r[3]||(r[3]=[o.createElementVNode("i",{class:"ztable-iconfont icon-zhihao-table-search"},null,-1)])),default:o.withCtx(()=>[r[4]||(r[4]=o.createTextVNode(" 搜索 "))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)]),_:3},8,["model"]),e.isShowResetBtn&&n.columns.length?(o.openBlock(),o.createElementBlock("div",LH,[o.createVNode(o.unref(ar),{class:"box-item",effect:"light",content:"重置",placement:"top"},{default:o.withCtx(()=>[o.createVNode(o.unref(cr),{class:"table-search--reset-btn",onClick:n.reset},{icon:o.withCtx(()=>[o.createVNode(o.unref(Me),{size:14},{default:o.withCtx(()=>[o.createVNode(o.unref(mD))]),_:1})]),_:1},8,["onClick"])]),_:1})])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-b81c1dcc"]]),FH={class:"el-pagination__total zh-page-total"},BH=zt(o.defineComponent({name:"Pagination",__name:"tablePagination",props:{pageable:{},handleSizeChange:{type:Function},handleCurrentChange:{type:Function}},setup(t){return(e,n)=>e.pageable.total?(o.openBlock(),o.createBlock(o.unref(m3),{key:0,class:"zh-pagination",background:!0,"current-page":e.pageable.page,"page-size":e.pageable.size,total:e.pageable.total,teleported:!1,layout:"slot, sizes, prev, pager, next, jumper",onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"zhPaginationLeftSlot",{pageable:e.pageable},()=>[o.createElementVNode("div",FH,"共"+o.toDisplayString(e.pageable.total)+"条数据",1)],!0)]),_:3},8,["current-page","page-size","total","onSizeChange","onCurrentChange"])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-81304082"]]);function K0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}const VH=o.defineComponent({name:"TableColumn",__name:"TableColumn",props:{column:{},customColumn:{type:Boolean}},setup(t){const e=t,n=o.ref(e.column),r=o.useSlots(),i=o.inject("enumMap",o.ref(new Map)),s=(c,d)=>i.value.get(c.prop)&&c.isFilterEnum?sE(ku(d.row,c.prop),i.value.get(c.prop),c.fieldNames):vz(ku(d.row,c.prop)),a=(c,d)=>sE(ku(d.row,c.prop),i.value.get(c.prop),c.fieldNames,"tag"),l=c=>o.createVNode(o.Fragment,null,[c.isShow&&o.createVNode(Ii,o.mergeProps(c,{"class-name":c.wrap&&"table-column--wrap",showOverflowTooltip:c.showOverflowTooltip??c.prop!=="operation"}),{default:d=>{var f,h,m;let u;if(c._children)return c._children.map(p=>l(p));if(c.render)return c.render(d);if(c.prop==="operation"){if(!r[Un(c.prop)]){n.value.width=0;return}const p=((h=(f=r[Un(c.prop)](d))==null?void 0:f.at(0))==null?void 0:h.children)||[],y=k=>Array.from(k).map(x=>{var v,T,M;return(((v=x.type)==null?void 0:v.name)==="ElButton"||((T=x.type)==null?void 0:T.name)==="ZhButton")&&x.children!=="v-if"?x:(M=x.children)!=null&&M.length?y(x.children):null}).filter(Boolean).flat(),g=y(p),b=k=>{let x="",v=0;k.forEach(I=>{x+=I.children.default()[0].children;const A=I.props||{};(A.loading===!0||A.loading==="")&&v++});const T=ws(x,14),M=16*(k.length>0?k.length-1:0),D=v*20;return T+M+D},E=k=>{n.value.hasOperationMaxWidth||(n.value.width=0,n.value.hasOperationMaxWidth=!0);const x=n.value.width;let v=0;k>0&&(v=Math.round(k)+32),v>Number.parseInt((x==null?void 0:x.toString())||"0")&&(n.value.width=v,n.value.hasOperationMaxWidth=!0)};if(g.length<=3||c.expandOperationButtons){const k=Math.ceil(b(g));let x=k;return e.customColumn&&(x=g.length?g.length===1?k+30:k:50),E(x),o.createVNode("div",{class:"operation-container all-action"},[r[Un(c.prop)](d)])}const C=[],_=g.slice(0,2),w=o.createVNode(cr,{link:!0,type:"primary"},{default:()=>[o.createTextVNode("更多")]});C.push(..._),C[3]=o.createVNode(hB,null,{default:()=>w,dropdown:()=>{let k;return o.createVNode(mB,null,K0(k=g.slice(2).map(x=>o.createVNode(pB,null,K0(x)?x:{default:()=>[x]})))?k:{default:()=>[k]})}});const S=b([..._,w]);return E(S),o.createVNode("div",{class:"operation-container"},[C])}return r[Un(c.prop)]?r[Un(c.prop)](d):c.tag?o.createVNode(Rp,{type:a(c,d)},K0(u=s(c,d))?u:{default:()=>[u]}):c.click&&s(c,d)!==Ut?o.createVNode("span",{class:"el-link el-link--primary scan-link",onClick:function(){c.click(d==null?void 0:d.row,d==null?void 0:d.$index)}},[c.formatter?c.formatter(d.row,d.column,d.row[c.prop],d.$index):s(c,d)]):o.createVNode("span",{class:((m=kz(ku(d.row,c.prop),i.value.get(c.prop)))==null?void 0:m.state)||"text"},[c.formatter?c.formatter(d.row,d.column,d.row[c.prop],d.$index):s(c,d)])},header:d=>c.headerRender?c.headerRender(d):r[`${Un(c.prop)}Header`]?r[`${Un(c.prop)}Header`](d):c.label})]);return(c,d)=>(o.openBlock(),o.createBlock(l,o.normalizeProps(o.guardReactiveProps(n.value)),null,16))}}),$H={class:"custom-column-dialog"},zH={class:"table-body"},WH={class:"name"},YH={key:0,class:"ml-10"},GH={class:"custom-width-label text"},jH={key:0,class:"custom-width-input-box"},HH={class:"custom-column-footer"},UH={class:"flex-1"},KH=zt(o.defineComponent({name:"ColSetting",__name:"ColSetting",props:{originTableColumns:{default:()=>[]}},emits:["close","submit","dragSort"],setup(t,{expose:e,emit:n}){const r=o.ref(),i=o.ref(!1),s=t,a=o.ref([]),l=o.ref(new Date().getTime()),c=o.ref(!1),d=o.ref();let u=o.ref([]),f=o.ref([]);const h=C=>{f.value=C,u.value=[],a.value=C.filter(_=>(_.hideInCustomColumn&&u.value.push(_),!_.hideInCustomColumn)),c.value=!0,o.nextTick(()=>{g()})},m=C=>{i.value=C},p=n,y=async()=>{f.value=Mn([...u.value,...a.value]),p("submit",f.value),c.value=!1},g=()=>{d.value&&(d.value.destroy(),l.value=new Date().getTime(),r.value.doLayout()),o.nextTick(()=>{const C=document.querySelector(".custom-column-dialog tbody");d.value=Fe.create(C,{handle:".move",animation:300,filter:".operation",onEnd({newIndex:_,oldIndex:w}){if(!_&&_!==0||!w&&w!==0)return;let S=Mn(a.value);const k=S[w];if(_<w)for(let x=_;x<w;x++)S[x].order=String(Number(x)+1);else for(let x=w+1;x<=_;x++)S[x].order=String(Number(x)-1);k.order=String(_),a.value=Mn(S)}})})},b=()=>{const C=Mn(s.originTableColumns);i.value?(a.value=C,u.value=[]):a.value=a.value.map(_=>{const w=a.value.find(S=>S.prop===_.prop);return!(w!=null&&w.isShow)||w.prop==="operation"?_:C.find(S=>S.prop===_.prop)}),g()},E=()=>{c.value=!1};return e({openColSetting:h}),(C,_)=>(o.openBlock(),o.createElementBlock("div",$H,[o.createVNode(nE,{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=w=>c.value=w),size:"middle"},{header:o.withCtx(()=>_[2]||(_[2]=[o.createElementVNode("div",{class:"title"},"自定义列",-1),o.createElementVNode("div",{class:"sub-title"},"勾选需要展示的列,拖动列名进行排序",-1)])),footer:o.withCtx(()=>[o.createElementVNode("div",HH,[o.createVNode(o.unref(Go),{modelValue:i.value,"onUpdate:modelValue":_[0]||(_[0]=w=>i.value=w),class:"checkbox",label:"全局",onChange:m},null,8,["modelValue"]),o.createElementVNode("div",UH,[o.createVNode(fa,{onClick:E},{default:o.withCtx(()=>_[4]||(_[4]=[o.createTextVNode("取消")])),_:1}),o.createVNode(fa,{class:"w-auto",onClick:b},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.value?"全局恢复默认":"恢复默认"),1)]),_:1}),o.createVNode(fa,{type:"primary",onClick:y},{default:o.withCtx(()=>_[5]||(_[5]=[o.createTextVNode("保存")])),_:1})])])]),default:o.withCtx(()=>[o.createElementVNode("div",zH,[(o.openBlock(),o.createBlock(o.unref(Jp),{ref_key:"tableRef",ref:r,class:"custom-colum-table",key:l.value,data:a.value.filter(w=>!w.hideInCustomColumn),"row-class-name":w=>w.row.prop==="operation"?"operation":""},{default:o.withCtx(()=>[o.createVNode(o.unref(Ii),{width:"100",label:"选择"},{default:o.withCtx(({row:w})=>[o.createVNode(o.unref(Go),{class:"custom-column-check",modelValue:w.isShow,"onUpdate:modelValue":S=>w.isShow=S,disabled:w.readonly},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:1}),o.createVNode(o.unref(Ii),{prop:"label",label:"名称"},{default:o.withCtx(({row:w})=>[o.createElementVNode("div",WH,[o.createTextVNode(o.toDisplayString(w.label)+" ",1),w.readonly?(o.openBlock(),o.createElementBlock("span",YH,"(必选)")):o.createCommentVNode("",!0),w.prop!=="operation"?(o.openBlock(),o.createBlock(o.unref(Me),{key:1,class:"move move-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(hD))]),_:1})):o.createCommentVNode("",!0)])]),_:1}),o.createVNode(o.unref(Ii),{prop:"width",label:"宽度",width:"180"},{default:o.withCtx(({row:w})=>[o.createElementVNode("div",{class:o.normalizeClass(`custom-width-box ${w.readonly&&"readonly"}`)},[_[3]||(_[3]=o.createElementVNode("span",{class:"text"},"宽度",-1)),o.createElementVNode("span",GH,o.toDisplayString(w.width)+" px",1),w.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",jH,[o.createVNode(o.unref(xC),{modelValue:w.width,"onUpdate:modelValue":S=>w.width=S,class:"custom-width-input",min:10,max:1e3,controls:!1},null,8,["modelValue","onUpdate:modelValue"])]))],2)]),_:1})]),_:1},8,["data","row-class-name"]))])]),_:1},8,["modelValue"])]))}}),[["__scopeId","data-v-1ff4d8b0"]]),XH={class:"no-card table-main zh-table"},ZH={class:"table-title-container"},qH={key:0,class:"table-title"},JH={key:1,class:"table-header-tip"},QH={class:"table-header-container"},eU={key:0,class:"table-header"},tU={class:"header-button-ri"},nU={key:0},rU={class:"table-body-container"},oU={class:"text d-flex inline-input-text pointer"},iU={key:1,class:"inline-input-box d-flex"},sU={class:"table-empty"},aU=["src"],Dv=Pt(zt(o.defineComponent({name:"ZhTable",__name:"Table",props:{columns:{default:()=>[]},data:{},requestApi:{},requestAuto:{type:Boolean,default:!0},requestError:{type:Function,default:t=>{console.error("protable中请求数据错误",t)}},handleParam:{},dataCallback:{},selectChangeCallback:{},title:{},pagination:{type:Boolean,default:!0},initParam:{default:{}},border:{type:Boolean,default:!1},rowKey:{default:"id"},isShowSearch:{type:Boolean,default:!0},maxHeight:{},isShowSearchBtn:{type:Boolean,default:!0},isShowResetBtn:{type:Boolean,default:!0},customColumn:{type:Boolean,default:!1},onSortChange:{},offset:{},customColumnCacheKey:{},customColumnPageCacheKey:{},beforeReset:{},searchClearSelection:{type:Boolean,default:!0}},emits:["search","reset","dargSort"],setup(t,{expose:e,emit:n}){var je;const r=o.ref(new Date().getTime()),i={mounted(se){var me;(me=se.querySelector("input"))==null||me.focus()}},s=o.useSlots(),a=t,l=o.ref(),c=["selection","radio","index","expand","sort","input"],d=o.ref(a.isShowSearch),u=o.ref(""),f=o.ref({}),h=o.ref(a.maxHeight),{selectionChange:m,selectedList:p,selectedListIds:y,isSelected:g}=TH(a.rowKey,a.selectChangeCallback),{loading:b,tableData:E,pageable:C,searchParam:_,searchInitParam:w,getTableList:S,search:k,reset:x,handleSizeChange:v,handleCurrentChange:T}=xH(a.requestApi,a.initParam,a.pagination,a.dataCallback,a.requestError,a.handleParam),M=se=>{function me(ee){return ee.replace(/[A-Z]/g,le=>"_"+le.toLowerCase())}const he={ascending:"asc",descending:"desc"},{prop:K,order:we}=se,Ke=me(Un(K)),Z=he[we];_.value={..._.value,sortKey:Ke,sortOrder:Z},C.value.page=1,k()},D=()=>l.value.clearSelection(),I=()=>l.value.clearSort(),A=o.ref(!1),N=()=>{H(),a.customColumn&&et(),a.requestAuto&&S(),a.data&&(C.value.total=a.data.length)};o.onMounted(()=>{N(),o.nextTick(()=>{A.value=!0})}),o.onActivated(()=>{A.value&&N()}),o.onDeactivated(()=>{}),o.onUnmounted(()=>{});const P=o.computed(()=>a.data?a.pagination?a.data.slice((C.value.page-1)*C.value.size,C.value.size*C.value.page):a.data:E.value),O=se=>{C.value.total=se};o.watch(()=>a.initParam,S,{deep:!0});let L=o.reactive(a.columns);const R=o.computed(()=>B(L)),$=o.ref(new Map),F=async({prop:se,enum:me})=>{if(!me||$.value.has(se)&&(typeof me=="function"||$.value.get(se)===me))return;if(typeof me!="function")return $.value.set(se,o.unref(me));$.value.set(se,[]);const{data:he}=await me();$.value.set(se,he)};o.provide("enumMap",$);const B=(se,me=[])=>(se.forEach(async he=>{var K;(K=he._children)!=null&&K.length&&me.push(...B(he._children)),me.push(he),he.isShow=he.isShow??!0,he.isFilterEnum=he.isFilterEnum??!0,await F(he)}),me.filter(he=>{var K;return!((K=he._children)!=null&&K.length)})),W=o.computed(()=>{var se;return(se=R.value)==null?void 0:se.filter(me=>{var he,K;return((he=me.search)==null?void 0:he.el)||((K=me.search)==null?void 0:K.render)}).sort((me,he)=>me.search.order-he.search.order)});(je=W.value)==null||je.forEach((se,me)=>{var we,Ke,Z;se.search.order=((we=se.search)==null?void 0:we.order)??me+2;const he=((Ke=se.search)==null?void 0:Ke.key)??Un(se.prop),K=(Z=se.search)==null?void 0:Z.defaultValue;K!=null&&(w.value[he]=K,_.value[he]=K)});const z=n,j=()=>{var se;a.searchClearSelection&&((se=l.value)==null||se.clearSelection()),k(),z("search")},q=()=>{a.beforeReset&&a.beforeReset(),x(),I(),z("reset")},H=()=>{const se=document.querySelector(".el-table__body-wrapper tbody");se&&Fe.create(se,{handle:".move",animation:300,onEnd({newIndex:me,oldIndex:he}){const[K]=P.value.splice(he,1);P.value.splice(me,0,K),z("dargSort",{newIndex:me,oldIndex:he})}})},X=o.ref(0),te=(se,me)=>{const he=E.value.findIndex(K=>K.$showInput);he>-1&&(E.value[he]=Mn(f.value),E.value[he].$showInput=!1),X.value=iE(se,String(me)),se.$showInput=!0,f.value=Mn(se)},de=async(se,me,he)=>{c_(se,me,X.value),he&&await he(se),se.$showInput=!1,nu.success("更新成功"),await S()},fe=async se=>{const me=E.value.findIndex(he=>Vn(a_(he,Ws),a_(se,Ws)));me>-1&&(E.value[me]=Mn(f.value),E.value[me].$showInput=!1)},ue=xz(a.customColumnCacheKey),xe=o.ref(null),Be=()=>L.map((se,me)=>({readonly:se.isCustomDisable||["id","operation"].includes(String(se.prop)),hideInCustomColumn:se.hideInCustomColumn||se.type==="selection",order:me,width:se.width||se.minWidth,...se})).sort((se,me)=>{const he=Number(se.order),K=Number(me.order);return he-K}),$e=()=>{Ue=o.reactive(Be()),o.nextTick(()=>{xe.value.openColSetting(Mn(Ue))})},et=()=>{if(!a.customColumnPageCacheKey)return;const se=ue.getColumnCache(a.customColumnPageCacheKey);if(se!=null&&se.length){const me=L.map(he=>{const K=se.find(we=>we.prop===he.prop);if(K){const we={...he,order:K.order||he.order,isShow:K.isShow!==void 0?K.isShow:he.isShow,readonly:K.readonly!==void 0?K.readonly:he.readonly,prop:K.prop||he.prop,index:K.index||he.index};return he.minWidth&&(we.minWidth=K.minWidth||he.minWidth),he.width&&(we.width=K.width||he.width),we}return he});Ue=o.reactive(me),L=o.reactive(Ue)}};let Ue=o.reactive(Be());const rt=Mn(Be()),Re=se=>{if(!a.customColumnPageCacheKey)return console.error("请添加自定义列缓存配置项:customColumnPageCacheKey");se=se.map(me=>{const he=rt.find(K=>K.prop===me.prop);return he&&he.minWidth&&(me.minWidth=me.width,delete me.width),me}),L=o.reactive(Mn(se)),ue.setColumnCache(a.customColumnPageCacheKey,se),r.value=new Date().getTime(),l.value.doLayout()};return e({element:l,tableData:P,radio:u,pageable:C,searchParam:_,searchInitParam:w,setPageTotal:O,getTableList:S,search:k,reset:x,handleSizeChange:v,handleCurrentChange:T,clearSelection:D,enumMap:$,isSelected:g,selectedList:p,selectedListIds:y}),(se,me)=>{const he=o.resolveDirective("loading");return o.openBlock(),o.createBlock(o.unref(aN),{locale:o.unref(eH)},{default:o.withCtx(()=>[o.createElementVNode("div",XH,[o.createElementVNode("div",ZH,[se.title?(o.openBlock(),o.createElementBlock("div",qH,o.toDisplayString(se.title),1)):o.createCommentVNode("",!0),o.unref(s).headerTip?(o.openBlock(),o.createElementBlock("div",JH,[o.renderSlot(se.$slots,"headerTip",{},void 0,!0)])):o.createCommentVNode("",!0)]),o.createElementVNode("div",QH,[o.withDirectives(o.createVNode(AH,{search:j,reset:q,columns:W.value,"search-param":o.unref(_),"is-show-reset-btn":a.isShowResetBtn,"is-show-search-btn":a.isShowSearchBtn},{default:o.withCtx(()=>[se.$slots.tableHeader?(o.openBlock(),o.createElementBlock("div",eU,[o.createElementVNode("div",tU,[o.renderSlot(se.$slots,"tableHeader",{selectedList:o.unref(p),selectedListIds:o.unref(y),isSelected:o.unref(g)},void 0,!0)])])):o.createCommentVNode("",!0)]),_:3},8,["columns","search-param","is-show-reset-btn","is-show-search-btn"]),[[o.vShow,d.value]])]),o.unref(s).searchBarBottom?(o.openBlock(),o.createElementBlock("div",nU,[o.renderSlot(se.$slots,"searchBarBottom",{},void 0,!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",rU,[a.customColumn?(o.openBlock(),o.createElementBlock("div",{key:0,class:"col-setting-button",onClick:$e},[o.createVNode(o.unref(ar),{class:"box-item",effect:"dark",content:"自定义列",placement:"top"},{default:o.withCtx(()=>[o.createVNode(o.unref(Me),{size:16,color:"#000000a6"},{default:o.withCtx(()=>[o.createVNode(o.unref(yD))]),_:1})]),_:1})])):o.createCommentVNode("",!0),o.withDirectives((o.openBlock(),o.createBlock(o.unref(Jp),o.mergeProps({ref_key:"tableRef",ref:l},se.$attrs,{key:r.value,data:P.value,border:se.border,"row-key":se.rowKey,"max-height":h.value,"row-style":{height:"42px"},"tooltip-effect":"light","tooltip-options":{showArrow:!1,placement:"bottom-start",offset:a.offset?a.offset:-20},"element-loading-spinner":o.unref(Tz),"element-loading-svg-view-box":"0 0 64 64"},o.toHandlers(se.$attrs),{onSelectionChange:o.unref(m),onSortChange:me[1]||(me[1]=K=>a.onSortChange?a.onSortChange(K):M(K))}),{append:o.withCtx(()=>[o.renderSlot(se.$slots,"append",{},void 0,!0)]),empty:o.withCtx(()=>[o.createElementVNode("div",sU,[o.renderSlot(se.$slots,"empty",{},()=>[o.createElementVNode("img",{src:`${o.unref(tz)}ghy-components/empty.png`,class:"zh-empty-img",alt:"notData"},null,8,aU),me[5]||(me[5]=o.createElementVNode("div",null,"暂无数据",-1))],!0)])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(L).sort((K,we)=>K.order-we.order),K=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:K},[K.type&&c.includes(K.type)&&K.isShow?(o.openBlock(),o.createBlock(o.unref(Ii),o.mergeProps({key:0,ref_for:!0},K,{align:K.align??"left","reserve-selection":K.type=="selection"}),o.createSlots({default:o.withCtx(we=>[K.type=="expand"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[K.render?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(K.render),o.mergeProps({key:0,ref_for:!0},we),null,16)):o.renderSlot(se.$slots,K.type,o.mergeProps({key:1,ref_for:!0},we),void 0,!0)],64)):o.createCommentVNode("",!0),K.type=="sort"?(o.openBlock(),o.createBlock(o.unref(Rp),{key:1,class:"move"},{default:o.withCtx(()=>[o.createVNode(o.unref(Me),null,{default:o.withCtx(()=>[o.createVNode(o.unref(eD))]),_:1})]),_:1})):o.createCommentVNode("",!0),K.type=="input"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[we.row.$showInput?(o.openBlock(),o.createElementBlock("div",iU,[o.withDirectives(o.createVNode(o.unref(xC),{modelValue:X.value,"onUpdate:modelValue":me[0]||(me[0]=Ke=>X.value=Ke),min:0,controls:!1},null,8,["modelValue"]),[[i]]),o.createVNode(o.unref(la),{underline:!1,type:"primary",onClick:Ke=>de(we.row,String(K.prop),K.blurCallback),class:"ml-5"},{default:o.withCtx(()=>me[3]||(me[3]=[o.createTextVNode(" 保存 ")])),_:2},1032,["onClick"]),o.createVNode(o.unref(la),{type:"primary",underline:!1,onClick:Ke=>fe(we.row),class:"ml-5"},{default:o.withCtx(()=>me[4]||(me[4]=[o.createTextVNode(" 取消 ")])),_:2},1032,["onClick"])])):(o.openBlock(),o.createBlock(o.unref(ar),{key:0,content:"编辑",placement:"top"},{default:o.withCtx(()=>[o.createElementVNode("span",oU,[o.createTextVNode(o.toDisplayString(o.unref(iE)(we.row,String(K.prop)))+" ",1),o.createVNode(o.unref(la),{underline:!1,class:"text d-flex inline-input-text pointer",onClick:Ke=>te(we.row,K.prop)},{default:o.withCtx(()=>me[2]||(me[2]=[o.createElementVNode("i",{class:"iconfont icon-edit"},null,-1)])),_:2},1032,["onClick"])])]),_:2},1024))],64)):o.createCommentVNode("",!0)]),_:2},[K.headerRender?{name:"header",fn:o.withCtx(we=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(K.headerRender),o.mergeProps({ref_for:!0},we),null,16))]),key:"0"}:void 0]),1040,["align","reserve-selection"])):o.createCommentVNode("",!0),!K.type&&K.prop&&K.isShow?(o.openBlock(),o.createBlock(VH,{key:1,column:K,"custom-column":se.customColumn},o.createSlots({_:2},[o.renderList(Object.keys(se.$slots),we=>({name:we,fn:o.withCtx(Ke=>[o.renderSlot(se.$slots,we,o.mergeProps({ref_for:!0},Ke),void 0,!0)])}))]),1032,["column","custom-column"])):o.createCommentVNode("",!0)],64))),128))]),_:3},16,["data","border","row-key","max-height","tooltip-options","element-loading-spinner","onSelectionChange"])),[[he,o.unref(b)]])]),o.renderSlot(se.$slots,"pagination",{},()=>[se.pagination?(o.openBlock(),o.createBlock(BH,{key:0,pageable:o.unref(C),"handle-size-change":o.unref(v),"handle-current-change":o.unref(T)},{zhPaginationLeftSlot:o.withCtx(K=>[o.renderSlot(se.$slots,"zhPaginationLeft",o.normalizeProps(o.guardReactiveProps(K)),void 0,!0)]),_:3},8,["pageable","handle-size-change","handle-current-change"])):o.createCommentVNode("",!0)],!0)]),a.customColumn?(o.openBlock(),o.createBlock(KH,{key:0,ref_key:"colRef",ref:xe,"origin-table-columns":o.unref(rt),onSubmit:Re},null,8,["origin-table-columns"])):o.createCommentVNode("",!0)]),_:3},8,["locale"])}}}),[["__scopeId","data-v-b2c338b2"]])),lU={key:1},cU={key:1,class:"zh-base-item--value--file"},dU={key:2},uU=Pt(o.defineComponent({name:"ZhBaseItem",__name:"BaseItem",props:{label:{},labelRender:{},colon:{type:Boolean,default:!1},value:{},fileId:{},rewriteFileName:{},valueRender:{},onClick:{},labelWidth:{},infoDirection:{default:"horizontal"},defaultValue:{default:Ut},className:{},labelClassName:{},valueClassName:{},span:{default:1},showFileName:{type:Boolean,default:!0},fetchFileById:{}},setup(t){const e=o.useSlots(),n=t,r=o.inject("infoLabelWidth"),i=o.computed(()=>!!(n.onClick&&n.value)),s=o.computed(()=>!!(!n.value&&n.fileId)),a=o.ref(),l=o.computed(()=>{var h;const f=(h=a.value)==null?void 0:h.name;if(!f)return"";if(n.rewriteFileName){const m=f.substring(f.lastIndexOf("."));return n.rewriteFileName+m}return f}),c=o.computed(()=>{const f={},h=n.labelWidth||(r==null?void 0:r.value);return h&&n.infoDirection==="horizontal"&&(isNaN(Number(h))?f.width=String(h):f.width=h+"px"),f}),d=o.computed(()=>({...c.value})),u=o.computed(()=>n.value===""?Ut:n.value??Ut);return o.watchEffect(async()=>{!s.value||!n.fileId||!n.fetchFileById||(a.value=await n.fetchFileById(n.fileId))}),(f,h)=>(o.openBlock(),o.createBlock(o.unref(Lm),{span:f.span,label:f.label},{default:o.withCtx(m=>{var p;return[o.createElementVNode("div",{class:o.normalizeClass(["zh-base-item",[f.infoDirection,f.className]])},[o.createElementVNode("div",{class:o.normalizeClass(["zh-base-item-label",[f.infoDirection,f.labelClassName]]),style:o.normalizeStyle({width:f.infoDirection==="horizontal"&&m.maxLabelWidthInCol?m.maxLabelWidthInCol+"px":void 0,...d.value})},[f.labelRender?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(f.labelRender),{key:0})):(o.openBlock(),o.createElementBlock("span",lU,o.toDisplayString(f.label)+o.toDisplayString(f.colon?":":""),1))],6),o.createElementVNode("div",{class:o.normalizeClass(["zh-base-item-value",f.valueClassName])},[o.unref(e).value?o.renderSlot(f.$slots,"value",{key:0,content:f.value}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createBlock(o.unref(la),{key:0,type:"primary",class:"zh-base-item--value--link",onClick:h[0]||(h[0]=o.withModifiers(y=>f.onClick&&f.onClick(f.value??void 0),["stop"]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(f.value),1)]),_:1})):s.value?(o.openBlock(),o.createElementBlock("div",cU,[f.showFileName?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(Me),{class:"iconfont"},{default:o.withCtx(()=>[o.createVNode(o.unref(nD))]),_:1}),o.createTextVNode(" "+o.toDisplayString(l.value),1)],64)):o.createCommentVNode("",!0),o.createVNode(o.unref(la),{type:"primary",href:(p=a.value)==null?void 0:p.path,target:"_blank",class:o.normalizeClass({"ml-8":f.showFileName})},{default:o.withCtx(()=>h[1]||(h[1]=[o.createTextVNode(" 查看/下载 ")])),_:1},8,["href","class"])])):f.valueRender?(o.openBlock(),o.createElementBlock("div",dU,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(f.valueRender)))])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(u.value),1)],64))],64))],2)],2)]}),_:3},8,["span","label"]))}})),fU=KR([wE,t1,tE,CE,rE,SE,aE,Lm,lE,cE,dE,fE,hE,yE,pE,mE,gE,_E,bE,av,n1,Dv,U0]);De.DIY_DATA_TYPE=to,De.ZhAlert=mE,De.ZhBaseInfo=wE,De.ZhBaseItem=uU,De.ZhButton=t1,De.ZhButtonGroup=n1,De.ZhCascaderLoadMore=U0,De.ZhConfirm=pE,De.ZhDatePicker=tE,De.ZhDetailHeader=CE,De.ZhDetailSubTitle=az,De.ZhDialog=rE,De.ZhDiyDataTable=SE,De.ZhEditInfoPair=pz,De.ZhFileWrapper=wz,De.ZhGrid=aE,De.ZhGridItem=Lm,De.ZhInfoPair=cE,De.ZhInput=dE,De.ZhInputNumber=fE,De.ZhLoading=hE,De.ZhMap=av,De.ZhMessageBox=yE,De.ZhMoneyInput=_E,De.ZhMultiGrid=lE,De.ZhPageHeadPanel=Yz,De.ZhPrompt=gE,De.ZhTable=Dv,De.ZhToolTips=bE,De.default=fU,Object.defineProperties(De,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});