@gis_victory/gismap 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +21 -19
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -82460,42 +82460,44 @@ class TerrainManager {
|
|
|
82460
82460
|
constructor(map2) {
|
|
82461
82461
|
this.map = map2;
|
|
82462
82462
|
}
|
|
82463
|
-
addSource() {
|
|
82463
|
+
addSource(options) {
|
|
82464
|
+
if (!options?.tiles) {
|
|
82465
|
+
console.log("tiles 不能为空");
|
|
82466
|
+
return;
|
|
82467
|
+
}
|
|
82468
|
+
if (this.map.getSource("raster-dem")) {
|
|
82469
|
+
console.log("raster-dem 已存在");
|
|
82470
|
+
return;
|
|
82471
|
+
}
|
|
82464
82472
|
this.map.addSource("raster-dem", {
|
|
82465
82473
|
type: "raster-dem",
|
|
82466
|
-
url: "mapbox://mapbox.mapbox-terrain-dem-v1",
|
|
82467
82474
|
minzoom: 6,
|
|
82468
|
-
maxzoom:
|
|
82469
|
-
tileSize: 256
|
|
82475
|
+
maxzoom: 14,
|
|
82476
|
+
tileSize: 256,
|
|
82477
|
+
...options
|
|
82470
82478
|
});
|
|
82471
82479
|
return this;
|
|
82472
82480
|
}
|
|
82473
|
-
|
|
82474
|
-
const source2 = this.map.getSource("raster-dem");
|
|
82475
|
-
if (source2) {
|
|
82476
|
-
source2.setUrl(options.url);
|
|
82477
|
-
}
|
|
82478
|
-
return this;
|
|
82479
|
-
}
|
|
82480
|
-
setTerrain(options) {
|
|
82481
|
+
add(options = { source: {}, layer: {} }) {
|
|
82481
82482
|
if (!this.map.getSource("raster-dem")) {
|
|
82482
|
-
this.addSource();
|
|
82483
|
+
this.addSource(options.source);
|
|
82483
82484
|
}
|
|
82484
82485
|
this.map.setTerrain({
|
|
82485
82486
|
source: "raster-dem",
|
|
82486
|
-
exaggeration: 1
|
|
82487
|
+
exaggeration: 1,
|
|
82487
82488
|
// 地形拉升强度(1.0为原始高度)
|
|
82488
|
-
...options
|
|
82489
|
+
...options.layer
|
|
82489
82490
|
});
|
|
82490
82491
|
return this;
|
|
82491
82492
|
}
|
|
82492
|
-
|
|
82493
|
+
remove() {
|
|
82493
82494
|
this.map.setTerrain(null);
|
|
82494
82495
|
return this;
|
|
82495
82496
|
}
|
|
82496
82497
|
addHillshade() {
|
|
82497
82498
|
if (!this.map.getSource("raster-dem")) {
|
|
82498
|
-
|
|
82499
|
+
console.log("raster-dem 不存在");
|
|
82500
|
+
return;
|
|
82499
82501
|
}
|
|
82500
82502
|
this.map.addLayer({
|
|
82501
82503
|
id: "hillshade",
|
|
@@ -91584,9 +91586,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
91584
91586
|
break;
|
|
91585
91587
|
case "terrain":
|
|
91586
91588
|
if (item.checked) {
|
|
91587
|
-
map2?.manager?.terrainManager.
|
|
91589
|
+
map2?.manager?.terrainManager.add(item?.config || {});
|
|
91588
91590
|
} else {
|
|
91589
|
-
map2?.manager?.terrainManager.
|
|
91591
|
+
map2?.manager?.terrainManager.remove();
|
|
91590
91592
|
}
|
|
91591
91593
|
break;
|
|
91592
91594
|
default:
|
package/dist/index.umd.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* limitations under the License.
|
|
26
26
|
*
|
|
27
27
|
* SPDX-License-Identifier: Apache-2.0
|
|
28
|
-
*/var lA=null;try{lA=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function cA(e,t,i){this.low=0|e,this.high=0|t,this.unsigned=!!i}function uA(e){return!0===(e&&e.__isLong__)}function hA(e){var t=Math.clz32(e&-e);return e?31-t:t}cA.prototype.__isLong__,Object.defineProperty(cA.prototype,"__isLong__",{value:!0}),cA.isLong=uA;var dA={},pA={};function fA(e,t){var i,n,r;return t?(r=0<=(e>>>=0)&&e<256)&&(n=pA[e])?n:(i=gA(e,0,!0),r&&(pA[e]=i),i):(r=-128<=(e|=0)&&e<128)&&(n=dA[e])?n:(i=gA(e,e<0?-1:0,!1),r&&(dA[e]=i),i)}function mA(e,t){if(isNaN(e))return t?TA:AA;if(t){if(e<0)return TA;if(e>=bA)return RA}else{if(e<=-wA)return PA;if(e+1>=wA)return MA}return e<0?mA(-e,t).neg():gA(e%xA|0,e/xA|0,t)}function gA(e,t,i){return new cA(e,t,i)}cA.fromInt=fA,cA.fromNumber=mA,cA.fromBits=gA;var _A=Math.pow;function yA(e,t,i){if(0===e.length)throw Error("empty string");if("number"==typeof t?(i=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?TA:AA;if((i=i||10)<2||36<i)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return yA(e.substring(1),t,i).neg();for(var r=mA(_A(i,8)),s=AA,o=0;o<e.length;o+=8){var a=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+a),i);if(a<8){var c=mA(_A(i,a));s=s.mul(c).add(mA(l))}else s=(s=s.mul(r)).add(mA(l))}return s.unsigned=t,s}function vA(e,t){return"number"==typeof e?mA(e,t):"string"==typeof e?yA(e,t):gA(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}cA.fromString=yA,cA.fromValue=vA;var xA=4294967296,bA=xA*xA,wA=bA/2,EA=fA(1<<24),AA=fA(0);cA.ZERO=AA;var TA=fA(0,!0);cA.UZERO=TA;var SA=fA(1);cA.ONE=SA;var CA=fA(1,!0);cA.UONE=CA;var IA=fA(-1);cA.NEG_ONE=IA;var MA=gA(-1,2147483647,!1);cA.MAX_VALUE=MA;var RA=gA(-1,-1,!0);cA.MAX_UNSIGNED_VALUE=RA;var PA=gA(0,-2147483648,!1);cA.MIN_VALUE=PA;var BA=cA.prototype;BA.toInt=function(){return this.unsigned?this.low>>>0:this.low},BA.toNumber=function(){return this.unsigned?(this.high>>>0)*xA+(this.low>>>0):this.high*xA+(this.low>>>0)},BA.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(PA)){var t=mA(e),i=this.div(t),n=i.mul(t).sub(this);return i.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var r=mA(_A(e,6),this.unsigned),s=this,o="";;){var a=s.div(r),l=(s.sub(a.mul(r)).toInt()>>>0).toString(e);if((s=a).isZero())return l+o;for(;l.length<6;)l="0"+l;o=""+l+o}},BA.getHighBits=function(){return this.high},BA.getHighBitsUnsigned=function(){return this.high>>>0},BA.getLowBits=function(){return this.low},BA.getLowBitsUnsigned=function(){return this.low>>>0},BA.getNumBitsAbs=function(){if(this.isNegative())return this.eq(PA)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},BA.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&(-1===e&&!(0===this.low&&-2097152===this.high))},BA.isZero=function(){return 0===this.high&&0===this.low},BA.eqz=BA.isZero,BA.isNegative=function(){return!this.unsigned&&this.high<0},BA.isPositive=function(){return this.unsigned||this.high>=0},BA.isOdd=function(){return!(1&~this.low)},BA.isEven=function(){return!(1&this.low)},BA.equals=function(e){return uA(e)||(e=vA(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},BA.eq=BA.equals,BA.notEquals=function(e){return!this.eq(e)},BA.neq=BA.notEquals,BA.ne=BA.notEquals,BA.lessThan=function(e){return this.comp(e)<0},BA.lt=BA.lessThan,BA.lessThanOrEqual=function(e){return this.comp(e)<=0},BA.lte=BA.lessThanOrEqual,BA.le=BA.lessThanOrEqual,BA.greaterThan=function(e){return this.comp(e)>0},BA.gt=BA.greaterThan,BA.greaterThanOrEqual=function(e){return this.comp(e)>=0},BA.gte=BA.greaterThanOrEqual,BA.ge=BA.greaterThanOrEqual,BA.compare=function(e){if(uA(e)||(e=vA(e)),this.eq(e))return 0;var t=this.isNegative(),i=e.isNegative();return t&&!i?-1:!t&&i?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},BA.comp=BA.compare,BA.negate=function(){return!this.unsigned&&this.eq(PA)?PA:this.not().add(SA)},BA.neg=BA.negate,BA.add=function(e){uA(e)||(e=vA(e));var t=this.high>>>16,i=65535&this.high,n=this.low>>>16,r=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=0,c=0,u=0,h=0;return u+=(h+=r+(65535&e.low))>>>16,c+=(u+=n+a)>>>16,l+=(c+=i+o)>>>16,l+=t+s,gA((u&=65535)<<16|(h&=65535),(l&=65535)<<16|(c&=65535),this.unsigned)},BA.subtract=function(e){return uA(e)||(e=vA(e)),this.add(e.neg())},BA.sub=BA.subtract,BA.multiply=function(e){if(this.isZero())return this;if(uA(e)||(e=vA(e)),lA)return gA(lA.mul(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned);if(e.isZero())return this.unsigned?TA:AA;if(this.eq(PA))return e.isOdd()?PA:AA;if(e.eq(PA))return this.isOdd()?PA:AA;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(EA)&&e.lt(EA))return mA(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,i=65535&this.high,n=this.low>>>16,r=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=65535&e.low,c=0,u=0,h=0,d=0;return h+=(d+=r*l)>>>16,u+=(h+=n*l)>>>16,h&=65535,u+=(h+=r*a)>>>16,c+=(u+=i*l)>>>16,u&=65535,c+=(u+=n*a)>>>16,u&=65535,c+=(u+=r*o)>>>16,c+=t*l+i*a+n*o+r*s,gA((h&=65535)<<16|(d&=65535),(c&=65535)<<16|(u&=65535),this.unsigned)},BA.mul=BA.multiply,BA.divide=function(e){if(uA(e)||(e=vA(e)),e.isZero())throw Error("division by zero");var t,i,n;if(lA)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?gA((this.unsigned?lA.div_u:lA.div_s)(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?TA:AA;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return TA;if(e.gt(this.shru(1)))return CA;n=TA}else{if(this.eq(PA))return e.eq(SA)||e.eq(IA)?PA:e.eq(PA)?SA:(t=this.shr(1).div(e).shl(1)).eq(AA)?e.isNegative()?SA:IA:(i=this.sub(e.mul(t)),n=t.add(i.div(e)));if(e.eq(PA))return this.unsigned?TA:AA;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=AA}for(i=this;i.gte(e);){t=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var r=Math.ceil(Math.log(t)/Math.LN2),s=r<=48?1:_A(2,r-48),o=mA(t),a=o.mul(e);a.isNegative()||a.gt(i);)a=(o=mA(t-=s,this.unsigned)).mul(e);o.isZero()&&(o=SA),n=n.add(o),i=i.sub(a)}return n},BA.div=BA.divide,BA.modulo=function(e){return uA(e)||(e=vA(e)),lA?gA((this.unsigned?lA.rem_u:lA.rem_s)(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},BA.mod=BA.modulo,BA.rem=BA.modulo,BA.not=function(){return gA(~this.low,~this.high,this.unsigned)},BA.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},BA.clz=BA.countLeadingZeros,BA.countTrailingZeros=function(){return this.low?hA(this.low):hA(this.high)+32},BA.ctz=BA.countTrailingZeros,BA.and=function(e){return uA(e)||(e=vA(e)),gA(this.low&e.low,this.high&e.high,this.unsigned)},BA.or=function(e){return uA(e)||(e=vA(e)),gA(this.low|e.low,this.high|e.high,this.unsigned)},BA.xor=function(e){return uA(e)||(e=vA(e)),gA(this.low^e.low,this.high^e.high,this.unsigned)},BA.shiftLeft=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):gA(0,this.low<<e-32,this.unsigned)},BA.shl=BA.shiftLeft,BA.shiftRight=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):gA(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},BA.shr=BA.shiftRight,BA.shiftRightUnsigned=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):gA(32===e?this.high:this.high>>>e-32,0,this.unsigned)},BA.shru=BA.shiftRightUnsigned,BA.shr_u=BA.shiftRightUnsigned,BA.rotateLeft=function(e){var t;return uA(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?gA(this.high,this.low,this.unsigned):e<32?(t=32-e,gA(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),gA(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},BA.rotl=BA.rotateLeft,BA.rotateRight=function(e){var t;return uA(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?gA(this.high,this.low,this.unsigned):e<32?(t=32-e,gA(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),gA(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},BA.rotr=BA.rotateRight,BA.toSigned=function(){return this.unsigned?gA(this.low,this.high,!1):this},BA.toUnsigned=function(){return this.unsigned?this:gA(this.low,this.high,!0)},BA.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},BA.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},BA.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},cA.fromBytes=function(e,t,i){return i?cA.fromBytesLE(e,t):cA.fromBytesBE(e,t)},cA.fromBytesLE=function(e,t){return new cA(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},cA.fromBytesBE=function(e,t){return new cA(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},"function"==typeof BigInt&&(cA.fromBigInt=function(e,t){return gA(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},cA.fromValue=function(e,t){return"bigint"==typeof e?cA.fromBigInt(e,t):vA(e,t)},BA.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e});function LA(e){"X"===e&&(e="");const t=e.padEnd(16,"0");return cA.fromString(t,!0,16)}const OA=180/Math.PI;function DA(e,t,i){const n=1<<t;return[(e[0]+i[0])/n,(e[1]+i[1])/n]}function kA(e){return e>=.5?1/3*(4*e*e-1):1/3*(1-4*(1-e)*(1-e))}function FA(e){return[kA(e[0]),kA(e[1])]}function NA(e,[t,i]){switch(e){case 0:return[1,t,i];case 1:return[-t,1,i];case 2:return[-t,-i,1];case 3:return[-1,-i,-t];case 4:return[i,-1,-t];case 5:return[i,t,-1];default:throw new Error("Invalid face")}}function zA([e,t,i]){const n=Math.atan2(i,Math.sqrt(e*e+t*t));return[Math.atan2(t,e)*OA,n*OA]}function UA(e,t,i,n){if(0===n){1===i&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);const n=t[0];t[0]=t[1],t[1]=n}}function VA(e){const{face:t,ij:i,level:n}=e,r=[[0,0],[0,1],[1,1],[1,0],[0,0]],s=Math.max(1,Math.ceil(100*Math.pow(2,-n))),o=new Float64Array(4*s*2+2);let a=0,l=0;for(let c=0;c<4;c++){const e=r[c].slice(0),u=r[c+1],h=(u[0]-e[0])/s,d=(u[1]-e[1])/s;for(let r=0;r<s;r++){e[0]+=h,e[1]+=d;const r=zA(NA(t,FA(DA(i,n,e))));Math.abs(r[1])>89.999&&(r[0]=l);const s=r[0]-l;r[0]+=s>180?-360:s<-180?360:0,o[a++]=r[0],o[a++]=r[1],l=r[0]}}return o[a++]=o[0],o[a++]=o[1],o}function GA(e){const t=function(e){if(e.indexOf("/")>0)return e;const t=LA(e);return function(e){if(e.isZero())return"";let t=e.toString(2);for(;t.length<64;)t="0"+t;const i=t.lastIndexOf("1"),n=t.substring(0,3),r=t.substring(3,i),s=r.length/2,o=cA.fromString(n,!0,2).toString(10);let a="";if(0!==s)for(a=cA.fromString(r,!0,2).toString(4);a.length<s;)a="0"+a;return`${o}/${a}`}(t)}(e);return function(e){if(0===e.length)throw new Error(`Invalid Hilbert quad key ${e}`);const t=e.split("/"),i=parseInt(t[0],10),n=t[1],r=n.length;let s=0;const o=[0,0];for(let a=r-1;a>=0;a--){s=r-a;const e=n[a];let t=0,i=0;"1"===e?i=1:"2"===e?(t=1,i=1):"3"===e&&(t=1);const l=Math.pow(2,s-1);UA(l,o,t,i),o[0]+=l*t,o[1]+=l*i}if(i%2==1){const e=o[0];o[0]=o[1],o[1]=e}return{face:i,ij:o,level:s}}(t)}function jA(e){return function(e){const t=FA(DA(e.ij,e.level,[.5,.5]));return zA(NA(e.face,t))}(GA(e))}function HA(e){if(e.length%2!=0)throw new Error("Invalid corners");const t=[],i=[];for(let n=0;n<e.length;n+=2)t.push(e[n]),i.push(e[n+1]);return t.sort((e,t)=>e-t),i.sort((e,t)=>e-t),{west:t[0],east:t[t.length-1],north:i[i.length-1],south:i[0]}}function WA(e,t){const i=t?.minimumHeight||0,n=t?.maximumHeight||0,r=function(e){let t;if(2===e.face||5===e.face){let i=null,n=0;for(let t=0;t<4;t++){const r=VA(GA(`${e.face}/${t}`));null==i&&(i=new Float64Array(4*r.length)),i.set(r,n),n+=r.length}t=HA(i)}else t=HA(VA(e));return t}(GA(e)),s=r.west,o=r.south,a=r.east,l=r.north,c=[];return c.push(new ca(s,l,i)),c.push(new ca(a,l,i)),c.push(new ca(a,o,i)),c.push(new ca(s,o,i)),c.push(new ca(s,l,n)),c.push(new ca(a,l,n)),c.push(new ca(a,o,n)),c.push(new ca(s,o,n)),c}function $A(e){const t=e.token,i={minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight},n=WA(t,i),r=jA(t),s=r[0],o=r[1],a=qb.WGS84.cartographicToCartesian([s,o,i.maximumHeight]),l=new ca(a[0],a[1],a[2]);n.push(l);const c=function(e,t=new __){if(!e||0===e.length)return t.halfAxes=new _a([0,0,0,0,0,0,0,0,0]),t.center=new ca,t;const i=e.length,n=new ca(0,0,0);for(const T of e)n.add(T);const r=1/i;n.multiplyByScalar(r);let s=0,o=0,a=0,l=0,c=0,u=0;for(const T of e){const e=D_.copy(T).subtract(n);s+=e.x*e.x,o+=e.x*e.y,a+=e.x*e.z,l+=e.y*e.y,c+=e.y*e.z,u+=e.z*e.z}s*=r,o*=r,a*=r,l*=r,c*=r,u*=r;const h=U_;h[0]=s,h[1]=o,h[2]=a,h[3]=o,h[4]=l,h[5]=c,h[6]=a,h[7]=c,h[8]=u;const{unitary:d}=R_(h,V_),p=t.halfAxes.copy(d);let f=p.getColumn(0,F_),m=p.getColumn(1,N_),g=p.getColumn(2,z_),_=-Number.MAX_VALUE,y=-Number.MAX_VALUE,v=-Number.MAX_VALUE,x=Number.MAX_VALUE,b=Number.MAX_VALUE,w=Number.MAX_VALUE;for(const T of e)D_.copy(T),_=Math.max(D_.dot(f),_),y=Math.max(D_.dot(m),y),v=Math.max(D_.dot(g),v),x=Math.min(D_.dot(f),x),b=Math.min(D_.dot(m),b),w=Math.min(D_.dot(g),w);f=f.multiplyByScalar(.5*(x+_)),m=m.multiplyByScalar(.5*(b+y)),g=g.multiplyByScalar(.5*(w+v)),t.center.copy(f).add(m).add(g);const E=k_.set(_-x,y-b,v-w).multiplyByScalar(.5),A=new _a([E[0],0,0,0,E[1],0,0,0,E[2]]);return t.halfAxes.multiplyRight(A),t}(n);return[...c.center,...c.halfAxes]}const qA={QUADTREE:4,OCTREE:8};function XA(e,t,i){if(e?.box){const n=function(e,t){const i=function(e){return e.and(e.not().add(1))}(e).shiftRightUnsigned(2);return e.add(cA.fromNumber(2*t+1-4).multiply(i))}(LA(e.s2VolumeInfo.token),t),r=function(e){if(e.isZero())return"X";let t=e.countTrailingZeros();t=(t-t%4)/4;const i=t;t*=4;const n=e.shiftRightUnsigned(t).toString(16).replace(/0+$/,"");return Array(17-i-n.length).join("0")+n}(n),s={...e.s2VolumeInfo};if(s.token=r,"OCTREE"===i){const t=e.s2VolumeInfo,i=t.maximumHeight-t.minimumHeight,n=i/2,r=t.minimumHeight+i/2;t.minimumHeight=r-n,t.maximumHeight=r+n}return{box:$A(s),s2VolumeInfo:s}}}async function ZA(e){const{subtree:t,subtreeData:i={level:0,x:0,y:0,z:0},parentData:n={mortonIndex:0,localLevel:-1,localX:0,localY:0,localZ:0},childIndex:r=0,implicitOptions:s,loaderOptions:o,s2VolumeBox:a}=e,{subdivisionScheme:l,subtreeLevels:c,maximumLevel:u,contentUrlTemplate:h,subtreesUriTemplate:d,basePath:p}=s,f={children:[],lodMetricValue:0,contentUrl:""};if(!u)return O.once(`Missing 'maximumLevel' or 'availableLevels' property. The subtree ${h} won't be loaded...`),f;const m=n.localLevel+1,g=i.level+m;if(g>u)return f;const _=qA[l],y=Math.log2(_),v=1&r,x=r>>1&1,b=r>>2&1,w=YA(n.localX,v,1),E=YA(n.localY,x,1),A=YA(n.localZ,b,1),T=YA(i.x,w,m),S=YA(i.y,E,m),C=YA(i.z,A,m),I=YA(n.mortonIndex,r,y);let M,R,P,B;if(m===c&&KA(t.childSubtreeAvailability,I)){const e=JA(`${p}/${d}`,g,T,S,C);M=await Et(e,aA,o),B=0,R={level:g,x:T,y:S,z:C},P={mortonIndex:0,localLevel:0,localX:0,localY:0,localZ:0}}else{M=t;B=(_**m-1)/(_-1)+I,R=i,P={mortonIndex:I,localLevel:m,localX:w,localY:E,localZ:A}}if(!KA(M.tileAvailability,B))return f;KA(M.contentAvailability,B)&&(f.contentUrl=JA(h,g,T,S,C));for(let L=0;L<_;L++){const e=XA(a,L,l),t=await ZA({subtree:M,subtreeData:R,parentData:P,childIndex:L,implicitOptions:s,loaderOptions:o,s2VolumeBox:e});(t.contentUrl||t.children.length)&&f.children.push(t)}if(f.contentUrl||f.children.length){const e=function(e,t,i,n){const{basePath:r,refine:s,getRefine:o,lodMetricType:a,getTileType:l,rootLodMetricValue:c,rootBoundingVolume:u}=i,h=e.contentUrl&&e.contentUrl.replace(`${r}/`,""),d=c/2**t.level,p=n?.box?{box:n.box}:u,f=function(e,t,i){if(e.region){const{level:n,x:r,y:s,z:o}=t,[a,l,c,u,h,d]=e.region,p=2**n,f=(c-a)/p,[m,g]=[a+f*r,a+f*(r+1)],_=(u-l)/p,[y,v]=[l+_*s,l+_*(s+1)];let x,b;if("OCTREE"===i){const e=(d-h)/p;[x,b]=[h+e*o,h+e*(o+1)]}else[x,b]=[h,d];return{region:[m,y,g,v,x,b]}}if(e.box)return e;throw new Error(`Unsupported bounding volume type ${JSON.stringify(e)}`)}(p,t,i.subdivisionScheme);return{children:e.children,contentUrl:e.contentUrl,content:{uri:h},id:e.contentUrl,refine:o(s),type:l(e),lodMetricType:a,lodMetricValue:d,geometricError:d,transform:e.transform,boundingVolume:f}}(f,{level:g,x:T,y:S,z:C},s,a);return e}return f}function KA(e,t){let i;return Array.isArray(e)?(i=e[0],e.length>1&&O.once('Not supported extension "3DTILES_multiple_contents" has been detected')):i=e,"constant"in i?Boolean(i.constant):!!i.explicitBitstream&&function(e,t){const i=Math.floor(e/8),n=e%8;return 1==(t[i]>>n&1)}(t,i.explicitBitstream)}function YA(e,t,i){return(e<<i)+t}function JA(e,t,i,n,r){const s=function(e){const t={};for(const i in e)t[`{${i}}`]=e[i];return t}({level:t,x:i,y:n,z:r});return e.replace(/{level}|{x}|{y}|{z}/gi,e=>s[e])}function QA(e,t=""){if(!t)return fw.EMPTY;const i=t.split("?")[0].split(".").pop();switch(i){case"pnts":return fw.POINTCLOUD;case"i3dm":case"b3dm":case"glb":case"gltf":return fw.SCENEGRAPH;default:return i||fw.EMPTY}}function eT(e){switch(e){case"REPLACE":case"replace":return dw.REPLACE;case"ADD":case"add":return dw.ADD;default:return e}}function tT(e,t){if(/^[a-z][0-9a-z+.-]*:/i.test(t)){const i=new URL(e,`${t}/`);return decodeURI(i.toString())}return e.startsWith("/")?e:Ae(t,e)}function iT(e,t){if(!e)return null;let i;if(e.content){const n=e.content.uri||e.content?.url;void 0!==n&&(i=tT(n,t))}return{...e,id:i,contentUrl:i,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:e.geometricError,transformMatrix:e.transform,type:QA(0,i),refine:eT(e.refine)}}async function nT(e,t,i,n,r){const{subdivisionScheme:s,maximumLevel:o,availableLevels:a,subtreeLevels:l,subtrees:{uri:c}}=n,u=tT(JA(c,0,0,0,0),i),h=await Et(u,aA,r),d=e.content?.uri,p=d?tT(d,i):"",f=t?.root?.refine,m=e.geometricError,g=e.boundingVolume.extensions?.["3DTILES_bounding_volume_S2"];if(g){const t={box:$A(g),s2VolumeInfo:g};e.boundingVolume=t}const _=e.boundingVolume,y={contentUrlTemplate:p,subtreesUriTemplate:c,subdivisionScheme:s,subtreeLevels:l,maximumLevel:Number.isFinite(a)?a-1:o,refine:f,basePath:i,lodMetricType:yw.GEOMETRIC_ERROR,rootLodMetricValue:m,rootBoundingVolume:_,getTileType:QA,getRefine:eT};return await async function(e,t,i,n,r){if(!e)return null;const{children:s,contentUrl:o}=await ZA({subtree:i,implicitOptions:n,loaderOptions:r});let a,l=null;o&&(a=o,l={uri:o.replace(`${t}/`,"")});const c={...e,id:a,contentUrl:a,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:e.geometricError,transformMatrix:e.transform,type:QA(0,a),refine:eT(e.refine),content:l||e.content,children:s};return c}(e,i,h,y,r)}function rT(e){return e?.extensions?.["3DTILES_implicit_tiling"]||e?.implicitTiling}const sT={dataType:null,batchType:null,id:"3d-tiles",name:"3D Tiles",module:"3d-tiles",version:mE,extensions:["cmpt","pnts","b3dm","i3dm"],mimeTypes:["application/octet-stream"],tests:["cmpt","pnts","b3dm","i3dm"],parse:async function(e,t={},i){const n=t["3d-tiles"]||{};let r;r="auto"===n.isTileset?i?.url&&-1!==i.url.indexOf(".json"):n.isTileset;return r?async function(e,t,i){const n=JSON.parse((new TextDecoder).decode(e)),r=i?.url||"",s=function(e){return Ee(e)}(r),o=await async function(e,t,i){let n=null;const r=rT(e.root);n=r&&e.root?await nT(e.root,e,t,r,i):iT(e.root,t);const s=[];for(s.push(n);s.length>0;){const n=s.pop()||{},r=n.children||[],o=[];for(const a of r){const n=rT(a);let r;r=n?await nT(a,e,t,n,i):iT(a,t),r&&(o.push(r),s.push(r))}n.children=o}return n}(n,s,t||{}),a={...n,shape:"tileset3d",loader:sT,url:r,queryString:i?.queryString||"",basePath:s,root:o||n.root,type:gw.TILES3D,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:n.root?.geometricError||0};return a}(e,t,i):async function(e,t,i){const n={content:{shape:"tile3d",featureIds:null}},r=0;return await rA(e,r,t,i,n.content),n.content}(e,t,i)},options:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!1,isTileset:"auto",assetGltfUpAxis:null}}};const oT=[0],aT={getPointColor:{type:"accessor",value:[0,0,0,255]},pointSize:1,data:"",loader:sT,onTilesetLoad:{type:"function",value:e=>{}},onTileLoad:{type:"function",value:e=>{}},onTileUnload:{type:"function",value:e=>{}},onTileError:{type:"function",value:(e,t,i)=>{}},_getMeshColor:{type:"function",value:e=>[255,255,255]}};let lT=class extends _g{initializeState(){"onTileLoadFail"in this.props&&qt.removed("onTileLoadFail","onTileError")(),this.state={layerMap:{},tileset3d:null,activeViewports:{},lastUpdatedViewports:null}}get isLoaded(){return Boolean(this.state?.tileset3d?.isLoaded()&&super.isLoaded)}shouldUpdateState({changeFlags:e}){return e.somethingChanged}updateState({props:e,oldProps:t,changeFlags:i}){if(e.data&&e.data!==t.data&&this._loadTileset(e.data),i.viewportChanged){const{activeViewports:e}=this.state;Object.keys(e).length&&(this._updateTileset(e),this.state.lastUpdatedViewports=e,this.state.activeViewports={})}if(i.propsChanged){const{layerMap:e}=this.state;for(const t in e)e[t].needsUpdate=!0}}activateViewport(e){const{activeViewports:t,lastUpdatedViewports:i}=this.state;this.internalState.viewport=e,t[e.id]=e;const n=i?.[e.id];n&&e.equals(n)||(this.setChangeFlags({viewportChanged:!0}),this.setNeedsUpdate())}getPickingInfo({info:e,sourceLayer:t}){const i=t&&t.props.tile;return e.picked&&(e.object=i),e.sourceTile=i,e}filterSubLayer({layer:e,viewport:t}){const{tile:i}=e.props,{id:n}=t;return i.selected&&i.viewportIds.includes(n)}_updateAutoHighlight(e){const t=e.sourceTile,i=this.state.layerMap[t?.id];i&&i.layer&&i.layer.updateAutoHighlight(e)}async _loadTileset(e){const{loadOptions:t={}}=this.props,i=this.props.loader||this.props.loaders,n=Array.isArray(i)?i[0]:i,r={loadOptions:{...t}};let s=e;if(n.preload){const i=await n.preload(e,t);i.url&&(s=i.url),i.headers&&(r.loadOptions.fetch={...r.loadOptions.fetch,headers:i.headers}),Object.assign(r,i)}const o=await Et(s,n,r.loadOptions),a=new fE(o,{onTileLoad:this._onTileLoad.bind(this),onTileUnload:this._onTileUnload.bind(this),onTileError:this.props.onTileError,...r});this.setState({tileset3d:a,layerMap:{}}),this._updateTileset(this.state.activeViewports),this.props.onTilesetLoad(a)}_onTileLoad(e){const{lastUpdatedViewports:t}=this.state;this.props.onTileLoad(e),this._updateTileset(t),this.setNeedsUpdate()}_onTileUnload(e){delete this.state.layerMap[e.id],this.props.onTileUnload(e)}_updateTileset(e){if(!e)return;const{tileset3d:t}=this.state,{timeline:i}=this.context,n=Object.keys(e).length;i&&n&&t&&t.selectTiles(Object.values(e)).then(e=>{this.state.frameNumber!==e&&this.setState({frameNumber:e})})}_getSubLayer(e,t){if(!e.content)return null;switch(e.type){case fw.POINTCLOUD:return this._makePointCloudLayer(e,t);case fw.SCENEGRAPH:return this._make3DModelLayer(e);case fw.MESH:return this._makeSimpleMeshLayer(e,t);default:throw new Error(`Tile3DLayer: Failed to render layer of type ${e.content.type}`)}}_makePointCloudLayer(e,t){const{attributes:i,pointCount:n,constantRGBA:r,cartographicOrigin:s,modelMatrix:o}=e.content,{positions:a,normals:l,colors:c}=i;if(!a)return null;const u=t&&t.props.data||{header:{vertexCount:n},attributes:{POSITION:a,NORMAL:l,COLOR_0:c}},{pointSize:h,getPointColor:d}=this.props;return new(this.getSubLayerClass("pointcloud",Xg))({pointSize:h},this.getSubLayerProps({id:"pointcloud"}),{id:`${this.id}-pointcloud-${e.id}`,tile:e,data:u,coordinateSystem:Ec.METER_OFFSETS,coordinateOrigin:s,modelMatrix:o,getColor:r||d,_offset:0})}_make3DModelLayer(e){const{gltf:t,instances:i,cartographicOrigin:n,modelMatrix:r}=e.content;return new(this.getSubLayerClass("scenegraph",Eb))({_lighting:"pbr"},this.getSubLayerProps({id:"scenegraph"}),{id:`${this.id}-scenegraph-${e.id}`,tile:e,data:i||oT,scenegraph:t,coordinateSystem:Ec.METER_OFFSETS,coordinateOrigin:n,modelMatrix:r,getTransformMatrix:e=>e.modelMatrix,getPosition:[0,0,0],_offset:0})}_makeSimpleMeshLayer(e,t){const i=e.content,{attributes:n,indices:r,modelMatrix:s,cartographicOrigin:o,coordinateSystem:a=Ec.METER_OFFSETS,material:l,featureIds:c}=i,{_getMeshColor:u}=this.props,h=t&&t.props.mesh||new Dh({topology:"triangle-list",attributes:cT(n),indices:r});return new(this.getSubLayerClass("mesh",Sb))(this.getSubLayerProps({id:"mesh"}),{id:`${this.id}-mesh-${e.id}`,tile:e,mesh:h,data:oT,getColor:u(e),pbrMaterial:l,modelMatrix:s,coordinateOrigin:o,coordinateSystem:a,featureIds:c,_offset:0})}renderLayers(){const{tileset3d:e,layerMap:t}=this.state;return e?e.tiles.map(e=>{const i=t[e.id]=t[e.id]||{tile:e};let{layer:n}=i;return e.selected&&(n?i.needsUpdate&&(n=this._getSubLayer(e,n),i.needsUpdate=!1):n=this._getSubLayer(e)),i.layer=n,n}).filter(Boolean):null}};function cT(e){const t={};return t.positions={...e.positions,value:new Float32Array(e.positions.value)},e.normals&&(t.normals=e.normals),e.texCoords&&(t.texCoords=e.texCoords),e.colors&&(t.colors=e.colors),e.uvRegions&&(t.uvRegions=e.uvRegions),t}lT.defaultProps=aT,lT.layerName="Tile3DLayer";class uT{map;sourceId=`gismap_placeholder_source_${Math.random().toString(10)}`;static symbolPointId="gismap_placeholder_symbol_point";static layerPointId="gismap_placeholder_layer_point";static layerLineId="gismap_placeholder_layer_line";static layerPolygonId="gismap_placeholder_layer_polygon";static maskLayerId="gismap_placeholder_mask_layer";constructor(e){this.map=e,this.map.addSource(this.sourceId,{type:"geojson",data:{type:"FeatureCollection",features:[]}})}addLayer(e){this.map.addLayer({id:uT.layerPolygonId,type:"fill",source:this.sourceId,paint:{}},e?.beforeLayerFillId),this.map.addLayer({id:uT.layerLineId,type:"line",source:this.sourceId,paint:{}},e?.beforeLayerLineId),this.map.addLayer({id:uT.layerPointId,type:"circle",source:this.sourceId,paint:{}},e?.beforeLayerPointId),this.map.addLayer({id:uT.symbolPointId,type:"symbol",source:this.sourceId,paint:{}},e?.beforeLayerPointId),this.map.addLayer({id:uT.maskLayerId,type:"circle",source:this.sourceId,paint:{}},e?.beforeMaskLayerId)}}class hT{map;layerId="";isQuery=!1;dataExtension={};templateId=void 0;feature=void 0;constructor(e){this.map=e}addSource(e){if(!this.map.getSource(e.id)){const t=Object.assign({type:"vector",tiles:[e.url]},e);this.map.addSource(e.id,t)}return this}add(e,t){this.addSource(e.source);const i=e.source.id,n=Object.assign({id:e.id,source:i},e.layer);"vector"===this.map.getSource(i).type&&(n["source-layer"]||(n["source-layer"]="layer")),this.dataExtension=e.dataExt||{},this.templateId=e.templateId||this.dataExtension?.templateId||void 0;let r=t;this.map.addLayer(n,r),this.layerId=n.id,(e.isQuery||e.query)&&(this.isQuery=!0,this.addInteraction())}remove(){this.map.getLayer(this.layerId)&&this.map.removeLayer(this.layerId),this.isQuery&&this.removeInteraction()}addInteraction(){this.map.on("click",`${this.layerId}`,e=>{e.features.length>0&&(this.feature=e.features[0],this.map.pubsub.emit("layer:click",{layerId:this.layerId,templateId:this.templateId,feature:this.feature,features:e.features}))}),this.map.on("mouseenter",`${this.layerId}`,e=>{this.map.getCanvas().style.cursor="pointer"}),this.map.on("mouseleave",`${this.layerId}`,e=>{this.map.getCanvas().style.cursor="default"})}removeInteraction(){this.map.off("click",`${this.layerId}`,e=>{}),this.map.off("mouseenter",`${this.layerId}`,e=>{}),this.map.off("mouseleave",`${this.layerId}`,e=>{})}}class dT{map;checkedParentLayers=new Map;checkedLayers=new Map;queryLayerIds=[];symbolLayerIds=[];pointLayerIds=[];lineLayerIds=[];polygonLayerIds=[];constructor(e){this.map=e}addSource(e){this.map.getSource(e.id)||this.map.addSource(e.id,e)}addLayer(e,t){const i=new hT(this.map);let n=t;switch(e.layerType){case"symbol":n=uT.symbolPointId,this.symbolLayerIds.push(e.id);break;case"point":n=uT.layerPointId,this.pointLayerIds.push(e.id);break;case"line":n=uT.layerLineId,this.lineLayerIds.push(e.id);break;case"fill":case"fill-extrusion":n=uT.layerPolygonId,this.polygonLayerIds.push(e.id)}return i.add(e,n),this.checkedLayers.set(e.id,i),i.isQuery&&this.queryLayerIds.push(e.id),this}addGroupLayer(e){const{id:t,layers:i}=e;i&&(i.forEach(e=>{e.layer=Object.assign({id:e.id,source:e.source.id||e.id},e.layer),e.source=Object.assign({id:e.id},e.source),e.source.id||(e.source.id=t),e.layer.id||(e.layer.id=t,e.layer.source=t),this.map.getLayer(e.layer.id)||this.addLayer(e)}),this.checkedParentLayers.get(t)||this.checkedParentLayers.set(t,e))}removeLayer(e){this.map.getLayer(e.layer.id)&&this.map.removeLayer(e.layer.id),this.checkedLayers.delete(e.layer.id),e.isQuery&&(this.queryLayerIds=this.queryLayerIds.filter(t=>t!==e.layer.id))}removeGroupLayer(e){const{id:t,layers:i}=e;i&&i.forEach(e=>{e.layer=Object.assign({id:e.id},e.layer),e.source=Object.assign({id:e.id},e.source),this.removeLayer(e)}),this.checkedParentLayers.delete(t)}getLayer(e){return e?this.checkedLayers.get(e):null}}class pT{map;eraserLayerId="eraser_layer";eraserDebugLayerId="eraser_debug_layer";constructor(e){this.map=e}add(e,t){this.map.addSource(this.eraserLayerId,{type:"geojson",data:e}),this.map.addLayer({id:this.eraserLayerId,source:this.eraserLayerId,type:"clip",layout:{"clip-layer-types":t,"clip-layer-scope":["basemap"]}})}remove(){this.map.removeLayer(this.eraserLayerId),this.map.removeSource(this.eraserLayerId)}showPolygon(){this.map.addLayer({id:this.eraserDebugLayerId,type:"line",source:this.eraserLayerId,paint:{"line-color":"rgba(255, 0, 0, 0.9)","line-dasharray":[0,4,3],"line-width":5}})}hidePolygon(){this.map.getLayer(this.eraserDebugLayerId)&&this.map.removeLayer(this.eraserDebugLayerId)}}class fT{map;layerId="mask_layer";constructor(e){this.map=e}add(e,t={},i){this.map.getSource(this.layerId)||this.map.addSource(this.layerId,{type:"geojson",data:e}),i||(i=uT.maskLayerId);const n=Object.assign({id:this.layerId,source:this.layerId,type:"fill",paint:{"fill-color":"#000000","fill-opacity":.7}},t);return this.map.getLayer(this.layerId)||this.map.addLayer(n,i),this}addLine(e,t={}){this.map.getSource(this.layerId)||this.map.addSource(this.layerId,{type:"geojson",data:e});const i=Object.assign({id:`${this.layerId}_line`,source:this.layerId,type:"line",paint:{"line-color":"#ff0000","line-width":2}},t);this.map.addLayer(i,this.layerId)}remove(){this.map.removeLayer(this.layerId),this.map.removeLayer(`${this.layerId}_line`),this.map.removeSource(this.layerId)}}class mT{map;popup;constructor(e){this.map=e,this.popup=new o.Popup({closeOnClick:!1,closeOnMove:!1,className:"gismap-popup",anchor:"bottom"})}show({position:e,html:t,offset:i=[0,-10],flyTo:n=!1}){t&&this.popup.setHTML(t),i&&this.popup.setOffset(i),this.popup.setLngLat(e),this.popup.addTo(this.map),n&&this.map.flyTo({center:e})}close(){this.popup.remove()}}class gT{map;tdtImgId="tdt-img";tdtVecId="tdt-vec";tdtCiaId="tdt-cia";tdtLayer=new Map;token="6c8a0fffe8f584f8310306723f5bc776";constructor(e,t){this.map=e,this.token=t||this.token,this.tdtLayer.set(this.tdtImgId,{type:"raster",tiles:[`https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t1.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t2.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t3.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t4.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t5.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t6.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t7.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:512,buffer:128,tolerance:0,maxzoom:17,scheme:"xyz",roundZoom:!0,crs:"EPSG:4326"}),this.tdtLayer.set(this.tdtCiaId,{type:"raster",tiles:[`https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t1.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t2.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t3.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t4.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t5.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t6.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t7.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:256,maxzoom:17,crs:"EPSG:4326"}),this.tdtLayer.set(this.tdtVecId,{type:"raster",tiles:[`http://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t1.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t2.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t3.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t5.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t6.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t7.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:256,maxzoom:18,crs:"EPSG:4326"})}addImgLayer(e){let t=this.map.getSource(this.tdtImgId);t||(t=this.tdtLayer.get(this.tdtImgId),this.map.addSource(this.tdtImgId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtImgId,type:"raster",source:this.tdtImgId},e):this.map.addLayer({id:this.tdtImgId,type:"raster",source:this.tdtImgId})}removeImgLayer(){this.map.getLayer(this.tdtImgId)&&this.map.removeLayer(this.tdtImgId)}addVecLayer(e){let t=this.map.getSource(this.tdtVecId);t||(t=this.tdtLayer.get(this.tdtVecId),this.map.addSource(this.tdtVecId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtVecId,type:"raster",source:this.tdtVecId},e):this.map.addLayer({id:this.tdtVecId,type:"raster",source:this.tdtVecId})}removeVecLayer(){this.map.getLayer(this.tdtVecId)&&this.map.removeLayer(this.tdtVecId)}addCiaLayer(e){let t=this.map.getSource(this.tdtCiaId);t||(t=this.tdtLayer.get(this.tdtCiaId),this.map.addSource(this.tdtCiaId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtCiaId,type:"raster",source:this.tdtCiaId},e):this.map.addLayer({id:this.tdtCiaId,type:"raster",source:this.tdtCiaId})}removeCiaLayer(){this.map.getLayer(this.tdtCiaId)&&this.map.removeLayer(this.tdtCiaId)}clear(){this.removeImgLayer(),this.removeVecLayer(),this.removeCiaLayer()}}class _T{map;constructor(e){this.map=e}addSource(){return this.map.addSource("raster-dem",{type:"raster-dem",url:"mapbox://mapbox.mapbox-terrain-dem-v1",minzoom:6,maxzoom:18,tileSize:256}),this}updateSource(e){const t=this.map.getSource("raster-dem");return t&&t.setUrl(e.url),this}setTerrain(e){return this.map.getSource("raster-dem")||this.addSource(),this.map.setTerrain({source:"raster-dem",exaggeration:1.5,...e}),this}removeTerrain(){return this.map.setTerrain(null),this}addHillshade(){return this.map.getSource("raster-dem")||this.addSource(),this.map.addLayer({id:"hillshade",type:"hillshade",source:"raster-dem",paint:{"hillshade-exaggeration":.5,"hillshade-highlight-color":"#FFFFFF","hillshade-shadow-color":"#025505"}}),this}}class yT{map;constructor(e){this.map=e}addSource(e){if(!this.map.getSource(e.id)){const t=Object.assign({type:"geojson",tiles:[e.url],tileSize:256},e);this.map.addSource(e.id,t)}return this}addLayer(e){if(!this.map.getLayer(e.id)){const t=Object.assign({id:e.id,source:e.source},e);this.map.addLayer(t)}return this}removeSource(e){return this.map.getSource(e)&&this.map.removeSource(e),this}removeLayer(e){return this.map.getLayer(e)&&this.map.removeLayer(e),this}}function vT(e,t){return e.replace(/\{(?:p\.)?([^}]+)\}|\$\{(?:p\.)?([^}]+)\}/g,(e,i,n)=>{return r=t,(i||n).split(".").reduce((e,t)=>{const i=(e||{})[t];return void 0!==i?String(i):""},r);var r})}function xT(e,t,i="children"){function n(e){"function"==typeof t&&t(e),Array.isArray(e[i])&&e[i].forEach(e=>{n(e)})}Array.isArray(e)&&e.forEach(e=>{n(e)})}class bT{templates=new Map;constructor(){}add(e,t){this.templates.set(e,t)}get(e){return this.templates.get(e)}renderHtml(e,t){const i=this.templates.get(e);if(i){return this._unionFromTemplate(i,t)}}_unionFromTemplate(e,t){let i="";const n=[],r=[],{width:s,labelWidth:o,header:a,body:l,footer:c}=e,u=[];return u.push(`<div class="gismap-popup-box" style="width: ${s||260}px;">`),a&&(i=vT(a,t)),l&&(n.push('<div class="gismap-row gismap-popup-body no-scrollbar">'),l.forEach(e=>{n.push(`<div class="gismap-col gismap-col-${e.style.span||12}">`),n.push(`<div class="popup-label" style="width: ${o||80}px;">${e.fieldLabel}:</div>`);let i=t[e.fieldName]||"";switch(n.push('<div class="popup-value">'),e.fieldType){case"date":case"dateTime":case"number":break;default:n.push(`${i}`)}""!=i&&e.unit&&n.push(`<span class="popup-unit">${e.unit}</span>`),n.push("</div>"),n.push("</div>")}),n.push("</div>")),c&&c.length>0&&(r.push('<div class="gismap-popup-footer">'),c.forEach(e=>{if("click"===e.type)r.push(`<span class="footer-btn" @click=""><span class="s"></span> ${e.label}</span>`)}),r.push("</div>")),u.push(i),u.push(...n),u.push(...r),u.push("</div>"),u.join("")}remove(e){this.templates.delete(e)}}class wT{map;marker;constructor(e){this.map=e}show({position:e,html:t,markerIcon:i="marker",offset:n=[0,-30],iconName:r,flyTo:s=!1}){this.marker&&this.marker.remove();const a=document.createElement("div");a.className="marker-container";const l=document.createElement("div");l.className=`${i}`,r&&(l.innerHTML=`<img src='${r}' class="marker-icon" />`),a.appendChild(l),this.marker=new o.Marker({element:a,anchor:"bottom"}).setLngLat(e).addTo(this.map),t&&this.marker.setPopup(new o.Popup({closeOnClick:!1,closeOnMove:!1,className:"gismap-popup",anchor:"bottom",offset:n}).setHTML(t)).togglePopup(),s&&this.map.flyTo({center:e})}close(){this.marker?.remove()}}class ET{map;constructor(e){this.map=e}load(e){let t=[];for(let i of e)t.push(this._loadImage(i));return new Promise((e,i)=>{Promise.all(t).then(t=>{e(!0)}).catch(e=>{i(e)})})}_loadImage(e){return new Promise((t,i)=>{this.map.loadImage(e.url,(n,r)=>{if(n)throw i(!1),n;this.map.hasImage(e.name)?this.map.updateImage(e.name,r):this.map.addImage(e.name,r),t(!0)})})}}class AT{map;options;constructor(e){this.map=e,this.options={range:[-1,10],"horizon-blend":.3,color:"white","high-color":"#add8e6","space-color":"#d8f2ff","star-intensity":0}}setFog(e={}){this.map.setFog({...this.options,...e})}}class TT{map;layerManager;maskManager;tdtManager;eraserManager;popupManager;markerManager;terrainManager;vectorManager;templateManager;placeholderManager;iconManager;fogManager;constructor(e,t){this.map=e,this.layerManager=new dT(this.map),this.maskManager=new fT(this.map),this.tdtManager=new gT(this.map,t),this.eraserManager=new pT(this.map),this.popupManager=new mT(this.map),this.markerManager=new wT(this.map),this.terrainManager=new _T(this.map),this.vectorManager=new yT(this.map),this.templateManager=new bT,this.placeholderManager=new uT(this.map),this.iconManager=new ET(this.map),this.fogManager=new AT(this.map)}}const ST={key:0,class:"gismap-control"},CT={class:"widget top-left"},IT={class:"widget top-right"},MT={class:"widget bottom-left"},RT={class:"widget bottom-right"},PT=t.defineComponent({name:"MapView",props:{accessToken:{type:String,default:()=>""},tdtToken:{type:String,default:()=>""},options:{type:Object,default:()=>({})}},emits:["load"],setup(e,{emit:i}){const n=i,r=e,s=t.ref(!1),a=t.ref();return t.onMounted(()=>{r.accessToken&&(o.accessToken=r.accessToken);const e={container:a.value,center:[120.65851,29.5714],minZoom:8,maxZoom:20,zoom:15,pitch:0,bearing:0,maxPitch:65,attributionControl:!1,spriteFormat:"auto",...r.options};e.style={version:8,sources:{},layers:[],...e.style||{}};const i=new l(e);i.on("load",async()=>{i.manager=new TT(i,r.tdtToken),await i.manager.iconManager.load(r.options?.icons||[]),i.manager.placeholderManager.addLayer(),s.value=!0,n("load",i)}),t.provide("map",i)}),(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{ref_key:"mapContainer",ref:a,class:"gismap-container"},null,512),s.value?(t.openBlock(),t.createElementBlock("div",ST,[t.createElementVNode("div",CT,[t.renderSlot(e.$slots,"top-left")]),t.createElementVNode("div",IT,[t.renderSlot(e.$slots,"top-right")]),t.createElementVNode("div",MT,[t.renderSlot(e.$slots,"bottom-left")]),t.createElementVNode("div",RT,[t.renderSlot(e.$slots,"bottom-right")]),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)],64))}}),BT="el",LT=(e,t,i,n,r)=>{let s=`${e}-${t}`;return i&&(s+=`-${i}`),n&&(s+=`__${n}`),r&&(s+=`--${r}`),s},OT=Symbol("namespaceContextKey"),DT=e=>{const i=t.getCurrentInstance()?t.inject(OT,t.ref(BT)):t.ref(BT);return t.computed(()=>t.unref(i)||BT)},kT=(e,t)=>{const i=DT();return{namespace:i,b:(t="")=>LT(i.value,e,t,"",""),e:t=>t?LT(i.value,e,"",t,""):"",m:t=>t?LT(i.value,e,"","",t):"",be:(t,n)=>t&&n?LT(i.value,e,t,n,""):"",em:(t,n)=>t&&n?LT(i.value,e,"",t,n):"",bm:(t,n)=>t&&n?LT(i.value,e,t,"",n):"",bem:(t,n,r)=>t&&n&&r?LT(i.value,e,t,n,r):"",is:(e,...t)=>{const i=!(t.length>=1)||t[0];return e&&i?`is-${e}`:""},cssVar:e=>{const t={};for(const n in e)e[n]&&(t[`--${i.value}-${n}`]=e[n]);return t},cssVarName:e=>`--${i.value}-${e}`,cssVarBlock:t=>{const n={};for(const r in t)t[r]&&(n[`--${i.value}-${e}-${r}`]=t[r]);return n},cssVarBlockName:t=>`--${i.value}-${e}-${t}`}};
|
|
28
|
+
*/var lA=null;try{lA=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function cA(e,t,i){this.low=0|e,this.high=0|t,this.unsigned=!!i}function uA(e){return!0===(e&&e.__isLong__)}function hA(e){var t=Math.clz32(e&-e);return e?31-t:t}cA.prototype.__isLong__,Object.defineProperty(cA.prototype,"__isLong__",{value:!0}),cA.isLong=uA;var dA={},pA={};function fA(e,t){var i,n,r;return t?(r=0<=(e>>>=0)&&e<256)&&(n=pA[e])?n:(i=gA(e,0,!0),r&&(pA[e]=i),i):(r=-128<=(e|=0)&&e<128)&&(n=dA[e])?n:(i=gA(e,e<0?-1:0,!1),r&&(dA[e]=i),i)}function mA(e,t){if(isNaN(e))return t?TA:AA;if(t){if(e<0)return TA;if(e>=bA)return RA}else{if(e<=-wA)return PA;if(e+1>=wA)return MA}return e<0?mA(-e,t).neg():gA(e%xA|0,e/xA|0,t)}function gA(e,t,i){return new cA(e,t,i)}cA.fromInt=fA,cA.fromNumber=mA,cA.fromBits=gA;var _A=Math.pow;function yA(e,t,i){if(0===e.length)throw Error("empty string");if("number"==typeof t?(i=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?TA:AA;if((i=i||10)<2||36<i)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return yA(e.substring(1),t,i).neg();for(var r=mA(_A(i,8)),s=AA,o=0;o<e.length;o+=8){var a=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+a),i);if(a<8){var c=mA(_A(i,a));s=s.mul(c).add(mA(l))}else s=(s=s.mul(r)).add(mA(l))}return s.unsigned=t,s}function vA(e,t){return"number"==typeof e?mA(e,t):"string"==typeof e?yA(e,t):gA(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}cA.fromString=yA,cA.fromValue=vA;var xA=4294967296,bA=xA*xA,wA=bA/2,EA=fA(1<<24),AA=fA(0);cA.ZERO=AA;var TA=fA(0,!0);cA.UZERO=TA;var SA=fA(1);cA.ONE=SA;var CA=fA(1,!0);cA.UONE=CA;var IA=fA(-1);cA.NEG_ONE=IA;var MA=gA(-1,2147483647,!1);cA.MAX_VALUE=MA;var RA=gA(-1,-1,!0);cA.MAX_UNSIGNED_VALUE=RA;var PA=gA(0,-2147483648,!1);cA.MIN_VALUE=PA;var BA=cA.prototype;BA.toInt=function(){return this.unsigned?this.low>>>0:this.low},BA.toNumber=function(){return this.unsigned?(this.high>>>0)*xA+(this.low>>>0):this.high*xA+(this.low>>>0)},BA.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(PA)){var t=mA(e),i=this.div(t),n=i.mul(t).sub(this);return i.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var r=mA(_A(e,6),this.unsigned),s=this,o="";;){var a=s.div(r),l=(s.sub(a.mul(r)).toInt()>>>0).toString(e);if((s=a).isZero())return l+o;for(;l.length<6;)l="0"+l;o=""+l+o}},BA.getHighBits=function(){return this.high},BA.getHighBitsUnsigned=function(){return this.high>>>0},BA.getLowBits=function(){return this.low},BA.getLowBitsUnsigned=function(){return this.low>>>0},BA.getNumBitsAbs=function(){if(this.isNegative())return this.eq(PA)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},BA.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&(-1===e&&!(0===this.low&&-2097152===this.high))},BA.isZero=function(){return 0===this.high&&0===this.low},BA.eqz=BA.isZero,BA.isNegative=function(){return!this.unsigned&&this.high<0},BA.isPositive=function(){return this.unsigned||this.high>=0},BA.isOdd=function(){return!(1&~this.low)},BA.isEven=function(){return!(1&this.low)},BA.equals=function(e){return uA(e)||(e=vA(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},BA.eq=BA.equals,BA.notEquals=function(e){return!this.eq(e)},BA.neq=BA.notEquals,BA.ne=BA.notEquals,BA.lessThan=function(e){return this.comp(e)<0},BA.lt=BA.lessThan,BA.lessThanOrEqual=function(e){return this.comp(e)<=0},BA.lte=BA.lessThanOrEqual,BA.le=BA.lessThanOrEqual,BA.greaterThan=function(e){return this.comp(e)>0},BA.gt=BA.greaterThan,BA.greaterThanOrEqual=function(e){return this.comp(e)>=0},BA.gte=BA.greaterThanOrEqual,BA.ge=BA.greaterThanOrEqual,BA.compare=function(e){if(uA(e)||(e=vA(e)),this.eq(e))return 0;var t=this.isNegative(),i=e.isNegative();return t&&!i?-1:!t&&i?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},BA.comp=BA.compare,BA.negate=function(){return!this.unsigned&&this.eq(PA)?PA:this.not().add(SA)},BA.neg=BA.negate,BA.add=function(e){uA(e)||(e=vA(e));var t=this.high>>>16,i=65535&this.high,n=this.low>>>16,r=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=0,c=0,u=0,h=0;return u+=(h+=r+(65535&e.low))>>>16,c+=(u+=n+a)>>>16,l+=(c+=i+o)>>>16,l+=t+s,gA((u&=65535)<<16|(h&=65535),(l&=65535)<<16|(c&=65535),this.unsigned)},BA.subtract=function(e){return uA(e)||(e=vA(e)),this.add(e.neg())},BA.sub=BA.subtract,BA.multiply=function(e){if(this.isZero())return this;if(uA(e)||(e=vA(e)),lA)return gA(lA.mul(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned);if(e.isZero())return this.unsigned?TA:AA;if(this.eq(PA))return e.isOdd()?PA:AA;if(e.eq(PA))return this.isOdd()?PA:AA;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(EA)&&e.lt(EA))return mA(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,i=65535&this.high,n=this.low>>>16,r=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=65535&e.low,c=0,u=0,h=0,d=0;return h+=(d+=r*l)>>>16,u+=(h+=n*l)>>>16,h&=65535,u+=(h+=r*a)>>>16,c+=(u+=i*l)>>>16,u&=65535,c+=(u+=n*a)>>>16,u&=65535,c+=(u+=r*o)>>>16,c+=t*l+i*a+n*o+r*s,gA((h&=65535)<<16|(d&=65535),(c&=65535)<<16|(u&=65535),this.unsigned)},BA.mul=BA.multiply,BA.divide=function(e){if(uA(e)||(e=vA(e)),e.isZero())throw Error("division by zero");var t,i,n;if(lA)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?gA((this.unsigned?lA.div_u:lA.div_s)(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?TA:AA;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return TA;if(e.gt(this.shru(1)))return CA;n=TA}else{if(this.eq(PA))return e.eq(SA)||e.eq(IA)?PA:e.eq(PA)?SA:(t=this.shr(1).div(e).shl(1)).eq(AA)?e.isNegative()?SA:IA:(i=this.sub(e.mul(t)),n=t.add(i.div(e)));if(e.eq(PA))return this.unsigned?TA:AA;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=AA}for(i=this;i.gte(e);){t=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var r=Math.ceil(Math.log(t)/Math.LN2),s=r<=48?1:_A(2,r-48),o=mA(t),a=o.mul(e);a.isNegative()||a.gt(i);)a=(o=mA(t-=s,this.unsigned)).mul(e);o.isZero()&&(o=SA),n=n.add(o),i=i.sub(a)}return n},BA.div=BA.divide,BA.modulo=function(e){return uA(e)||(e=vA(e)),lA?gA((this.unsigned?lA.rem_u:lA.rem_s)(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},BA.mod=BA.modulo,BA.rem=BA.modulo,BA.not=function(){return gA(~this.low,~this.high,this.unsigned)},BA.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},BA.clz=BA.countLeadingZeros,BA.countTrailingZeros=function(){return this.low?hA(this.low):hA(this.high)+32},BA.ctz=BA.countTrailingZeros,BA.and=function(e){return uA(e)||(e=vA(e)),gA(this.low&e.low,this.high&e.high,this.unsigned)},BA.or=function(e){return uA(e)||(e=vA(e)),gA(this.low|e.low,this.high|e.high,this.unsigned)},BA.xor=function(e){return uA(e)||(e=vA(e)),gA(this.low^e.low,this.high^e.high,this.unsigned)},BA.shiftLeft=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):gA(0,this.low<<e-32,this.unsigned)},BA.shl=BA.shiftLeft,BA.shiftRight=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):gA(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},BA.shr=BA.shiftRight,BA.shiftRightUnsigned=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):gA(32===e?this.high:this.high>>>e-32,0,this.unsigned)},BA.shru=BA.shiftRightUnsigned,BA.shr_u=BA.shiftRightUnsigned,BA.rotateLeft=function(e){var t;return uA(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?gA(this.high,this.low,this.unsigned):e<32?(t=32-e,gA(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),gA(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},BA.rotl=BA.rotateLeft,BA.rotateRight=function(e){var t;return uA(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?gA(this.high,this.low,this.unsigned):e<32?(t=32-e,gA(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),gA(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},BA.rotr=BA.rotateRight,BA.toSigned=function(){return this.unsigned?gA(this.low,this.high,!1):this},BA.toUnsigned=function(){return this.unsigned?this:gA(this.low,this.high,!0)},BA.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},BA.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},BA.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},cA.fromBytes=function(e,t,i){return i?cA.fromBytesLE(e,t):cA.fromBytesBE(e,t)},cA.fromBytesLE=function(e,t){return new cA(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},cA.fromBytesBE=function(e,t){return new cA(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},"function"==typeof BigInt&&(cA.fromBigInt=function(e,t){return gA(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},cA.fromValue=function(e,t){return"bigint"==typeof e?cA.fromBigInt(e,t):vA(e,t)},BA.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e});function LA(e){"X"===e&&(e="");const t=e.padEnd(16,"0");return cA.fromString(t,!0,16)}const OA=180/Math.PI;function DA(e,t,i){const n=1<<t;return[(e[0]+i[0])/n,(e[1]+i[1])/n]}function kA(e){return e>=.5?1/3*(4*e*e-1):1/3*(1-4*(1-e)*(1-e))}function FA(e){return[kA(e[0]),kA(e[1])]}function NA(e,[t,i]){switch(e){case 0:return[1,t,i];case 1:return[-t,1,i];case 2:return[-t,-i,1];case 3:return[-1,-i,-t];case 4:return[i,-1,-t];case 5:return[i,t,-1];default:throw new Error("Invalid face")}}function zA([e,t,i]){const n=Math.atan2(i,Math.sqrt(e*e+t*t));return[Math.atan2(t,e)*OA,n*OA]}function UA(e,t,i,n){if(0===n){1===i&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);const n=t[0];t[0]=t[1],t[1]=n}}function VA(e){const{face:t,ij:i,level:n}=e,r=[[0,0],[0,1],[1,1],[1,0],[0,0]],s=Math.max(1,Math.ceil(100*Math.pow(2,-n))),o=new Float64Array(4*s*2+2);let a=0,l=0;for(let c=0;c<4;c++){const e=r[c].slice(0),u=r[c+1],h=(u[0]-e[0])/s,d=(u[1]-e[1])/s;for(let r=0;r<s;r++){e[0]+=h,e[1]+=d;const r=zA(NA(t,FA(DA(i,n,e))));Math.abs(r[1])>89.999&&(r[0]=l);const s=r[0]-l;r[0]+=s>180?-360:s<-180?360:0,o[a++]=r[0],o[a++]=r[1],l=r[0]}}return o[a++]=o[0],o[a++]=o[1],o}function GA(e){const t=function(e){if(e.indexOf("/")>0)return e;const t=LA(e);return function(e){if(e.isZero())return"";let t=e.toString(2);for(;t.length<64;)t="0"+t;const i=t.lastIndexOf("1"),n=t.substring(0,3),r=t.substring(3,i),s=r.length/2,o=cA.fromString(n,!0,2).toString(10);let a="";if(0!==s)for(a=cA.fromString(r,!0,2).toString(4);a.length<s;)a="0"+a;return`${o}/${a}`}(t)}(e);return function(e){if(0===e.length)throw new Error(`Invalid Hilbert quad key ${e}`);const t=e.split("/"),i=parseInt(t[0],10),n=t[1],r=n.length;let s=0;const o=[0,0];for(let a=r-1;a>=0;a--){s=r-a;const e=n[a];let t=0,i=0;"1"===e?i=1:"2"===e?(t=1,i=1):"3"===e&&(t=1);const l=Math.pow(2,s-1);UA(l,o,t,i),o[0]+=l*t,o[1]+=l*i}if(i%2==1){const e=o[0];o[0]=o[1],o[1]=e}return{face:i,ij:o,level:s}}(t)}function jA(e){return function(e){const t=FA(DA(e.ij,e.level,[.5,.5]));return zA(NA(e.face,t))}(GA(e))}function HA(e){if(e.length%2!=0)throw new Error("Invalid corners");const t=[],i=[];for(let n=0;n<e.length;n+=2)t.push(e[n]),i.push(e[n+1]);return t.sort((e,t)=>e-t),i.sort((e,t)=>e-t),{west:t[0],east:t[t.length-1],north:i[i.length-1],south:i[0]}}function WA(e,t){const i=t?.minimumHeight||0,n=t?.maximumHeight||0,r=function(e){let t;if(2===e.face||5===e.face){let i=null,n=0;for(let t=0;t<4;t++){const r=VA(GA(`${e.face}/${t}`));null==i&&(i=new Float64Array(4*r.length)),i.set(r,n),n+=r.length}t=HA(i)}else t=HA(VA(e));return t}(GA(e)),s=r.west,o=r.south,a=r.east,l=r.north,c=[];return c.push(new ca(s,l,i)),c.push(new ca(a,l,i)),c.push(new ca(a,o,i)),c.push(new ca(s,o,i)),c.push(new ca(s,l,n)),c.push(new ca(a,l,n)),c.push(new ca(a,o,n)),c.push(new ca(s,o,n)),c}function $A(e){const t=e.token,i={minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight},n=WA(t,i),r=jA(t),s=r[0],o=r[1],a=qb.WGS84.cartographicToCartesian([s,o,i.maximumHeight]),l=new ca(a[0],a[1],a[2]);n.push(l);const c=function(e,t=new __){if(!e||0===e.length)return t.halfAxes=new _a([0,0,0,0,0,0,0,0,0]),t.center=new ca,t;const i=e.length,n=new ca(0,0,0);for(const T of e)n.add(T);const r=1/i;n.multiplyByScalar(r);let s=0,o=0,a=0,l=0,c=0,u=0;for(const T of e){const e=D_.copy(T).subtract(n);s+=e.x*e.x,o+=e.x*e.y,a+=e.x*e.z,l+=e.y*e.y,c+=e.y*e.z,u+=e.z*e.z}s*=r,o*=r,a*=r,l*=r,c*=r,u*=r;const h=U_;h[0]=s,h[1]=o,h[2]=a,h[3]=o,h[4]=l,h[5]=c,h[6]=a,h[7]=c,h[8]=u;const{unitary:d}=R_(h,V_),p=t.halfAxes.copy(d);let f=p.getColumn(0,F_),m=p.getColumn(1,N_),g=p.getColumn(2,z_),_=-Number.MAX_VALUE,y=-Number.MAX_VALUE,v=-Number.MAX_VALUE,x=Number.MAX_VALUE,b=Number.MAX_VALUE,w=Number.MAX_VALUE;for(const T of e)D_.copy(T),_=Math.max(D_.dot(f),_),y=Math.max(D_.dot(m),y),v=Math.max(D_.dot(g),v),x=Math.min(D_.dot(f),x),b=Math.min(D_.dot(m),b),w=Math.min(D_.dot(g),w);f=f.multiplyByScalar(.5*(x+_)),m=m.multiplyByScalar(.5*(b+y)),g=g.multiplyByScalar(.5*(w+v)),t.center.copy(f).add(m).add(g);const E=k_.set(_-x,y-b,v-w).multiplyByScalar(.5),A=new _a([E[0],0,0,0,E[1],0,0,0,E[2]]);return t.halfAxes.multiplyRight(A),t}(n);return[...c.center,...c.halfAxes]}const qA={QUADTREE:4,OCTREE:8};function XA(e,t,i){if(e?.box){const n=function(e,t){const i=function(e){return e.and(e.not().add(1))}(e).shiftRightUnsigned(2);return e.add(cA.fromNumber(2*t+1-4).multiply(i))}(LA(e.s2VolumeInfo.token),t),r=function(e){if(e.isZero())return"X";let t=e.countTrailingZeros();t=(t-t%4)/4;const i=t;t*=4;const n=e.shiftRightUnsigned(t).toString(16).replace(/0+$/,"");return Array(17-i-n.length).join("0")+n}(n),s={...e.s2VolumeInfo};if(s.token=r,"OCTREE"===i){const t=e.s2VolumeInfo,i=t.maximumHeight-t.minimumHeight,n=i/2,r=t.minimumHeight+i/2;t.minimumHeight=r-n,t.maximumHeight=r+n}return{box:$A(s),s2VolumeInfo:s}}}async function ZA(e){const{subtree:t,subtreeData:i={level:0,x:0,y:0,z:0},parentData:n={mortonIndex:0,localLevel:-1,localX:0,localY:0,localZ:0},childIndex:r=0,implicitOptions:s,loaderOptions:o,s2VolumeBox:a}=e,{subdivisionScheme:l,subtreeLevels:c,maximumLevel:u,contentUrlTemplate:h,subtreesUriTemplate:d,basePath:p}=s,f={children:[],lodMetricValue:0,contentUrl:""};if(!u)return O.once(`Missing 'maximumLevel' or 'availableLevels' property. The subtree ${h} won't be loaded...`),f;const m=n.localLevel+1,g=i.level+m;if(g>u)return f;const _=qA[l],y=Math.log2(_),v=1&r,x=r>>1&1,b=r>>2&1,w=YA(n.localX,v,1),E=YA(n.localY,x,1),A=YA(n.localZ,b,1),T=YA(i.x,w,m),S=YA(i.y,E,m),C=YA(i.z,A,m),I=YA(n.mortonIndex,r,y);let M,R,P,B;if(m===c&&KA(t.childSubtreeAvailability,I)){const e=JA(`${p}/${d}`,g,T,S,C);M=await Et(e,aA,o),B=0,R={level:g,x:T,y:S,z:C},P={mortonIndex:0,localLevel:0,localX:0,localY:0,localZ:0}}else{M=t;B=(_**m-1)/(_-1)+I,R=i,P={mortonIndex:I,localLevel:m,localX:w,localY:E,localZ:A}}if(!KA(M.tileAvailability,B))return f;KA(M.contentAvailability,B)&&(f.contentUrl=JA(h,g,T,S,C));for(let L=0;L<_;L++){const e=XA(a,L,l),t=await ZA({subtree:M,subtreeData:R,parentData:P,childIndex:L,implicitOptions:s,loaderOptions:o,s2VolumeBox:e});(t.contentUrl||t.children.length)&&f.children.push(t)}if(f.contentUrl||f.children.length){const e=function(e,t,i,n){const{basePath:r,refine:s,getRefine:o,lodMetricType:a,getTileType:l,rootLodMetricValue:c,rootBoundingVolume:u}=i,h=e.contentUrl&&e.contentUrl.replace(`${r}/`,""),d=c/2**t.level,p=n?.box?{box:n.box}:u,f=function(e,t,i){if(e.region){const{level:n,x:r,y:s,z:o}=t,[a,l,c,u,h,d]=e.region,p=2**n,f=(c-a)/p,[m,g]=[a+f*r,a+f*(r+1)],_=(u-l)/p,[y,v]=[l+_*s,l+_*(s+1)];let x,b;if("OCTREE"===i){const e=(d-h)/p;[x,b]=[h+e*o,h+e*(o+1)]}else[x,b]=[h,d];return{region:[m,y,g,v,x,b]}}if(e.box)return e;throw new Error(`Unsupported bounding volume type ${JSON.stringify(e)}`)}(p,t,i.subdivisionScheme);return{children:e.children,contentUrl:e.contentUrl,content:{uri:h},id:e.contentUrl,refine:o(s),type:l(e),lodMetricType:a,lodMetricValue:d,geometricError:d,transform:e.transform,boundingVolume:f}}(f,{level:g,x:T,y:S,z:C},s,a);return e}return f}function KA(e,t){let i;return Array.isArray(e)?(i=e[0],e.length>1&&O.once('Not supported extension "3DTILES_multiple_contents" has been detected')):i=e,"constant"in i?Boolean(i.constant):!!i.explicitBitstream&&function(e,t){const i=Math.floor(e/8),n=e%8;return 1==(t[i]>>n&1)}(t,i.explicitBitstream)}function YA(e,t,i){return(e<<i)+t}function JA(e,t,i,n,r){const s=function(e){const t={};for(const i in e)t[`{${i}}`]=e[i];return t}({level:t,x:i,y:n,z:r});return e.replace(/{level}|{x}|{y}|{z}/gi,e=>s[e])}function QA(e,t=""){if(!t)return fw.EMPTY;const i=t.split("?")[0].split(".").pop();switch(i){case"pnts":return fw.POINTCLOUD;case"i3dm":case"b3dm":case"glb":case"gltf":return fw.SCENEGRAPH;default:return i||fw.EMPTY}}function eT(e){switch(e){case"REPLACE":case"replace":return dw.REPLACE;case"ADD":case"add":return dw.ADD;default:return e}}function tT(e,t){if(/^[a-z][0-9a-z+.-]*:/i.test(t)){const i=new URL(e,`${t}/`);return decodeURI(i.toString())}return e.startsWith("/")?e:Ae(t,e)}function iT(e,t){if(!e)return null;let i;if(e.content){const n=e.content.uri||e.content?.url;void 0!==n&&(i=tT(n,t))}return{...e,id:i,contentUrl:i,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:e.geometricError,transformMatrix:e.transform,type:QA(0,i),refine:eT(e.refine)}}async function nT(e,t,i,n,r){const{subdivisionScheme:s,maximumLevel:o,availableLevels:a,subtreeLevels:l,subtrees:{uri:c}}=n,u=tT(JA(c,0,0,0,0),i),h=await Et(u,aA,r),d=e.content?.uri,p=d?tT(d,i):"",f=t?.root?.refine,m=e.geometricError,g=e.boundingVolume.extensions?.["3DTILES_bounding_volume_S2"];if(g){const t={box:$A(g),s2VolumeInfo:g};e.boundingVolume=t}const _=e.boundingVolume,y={contentUrlTemplate:p,subtreesUriTemplate:c,subdivisionScheme:s,subtreeLevels:l,maximumLevel:Number.isFinite(a)?a-1:o,refine:f,basePath:i,lodMetricType:yw.GEOMETRIC_ERROR,rootLodMetricValue:m,rootBoundingVolume:_,getTileType:QA,getRefine:eT};return await async function(e,t,i,n,r){if(!e)return null;const{children:s,contentUrl:o}=await ZA({subtree:i,implicitOptions:n,loaderOptions:r});let a,l=null;o&&(a=o,l={uri:o.replace(`${t}/`,"")});const c={...e,id:a,contentUrl:a,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:e.geometricError,transformMatrix:e.transform,type:QA(0,a),refine:eT(e.refine),content:l||e.content,children:s};return c}(e,i,h,y,r)}function rT(e){return e?.extensions?.["3DTILES_implicit_tiling"]||e?.implicitTiling}const sT={dataType:null,batchType:null,id:"3d-tiles",name:"3D Tiles",module:"3d-tiles",version:mE,extensions:["cmpt","pnts","b3dm","i3dm"],mimeTypes:["application/octet-stream"],tests:["cmpt","pnts","b3dm","i3dm"],parse:async function(e,t={},i){const n=t["3d-tiles"]||{};let r;r="auto"===n.isTileset?i?.url&&-1!==i.url.indexOf(".json"):n.isTileset;return r?async function(e,t,i){const n=JSON.parse((new TextDecoder).decode(e)),r=i?.url||"",s=function(e){return Ee(e)}(r),o=await async function(e,t,i){let n=null;const r=rT(e.root);n=r&&e.root?await nT(e.root,e,t,r,i):iT(e.root,t);const s=[];for(s.push(n);s.length>0;){const n=s.pop()||{},r=n.children||[],o=[];for(const a of r){const n=rT(a);let r;r=n?await nT(a,e,t,n,i):iT(a,t),r&&(o.push(r),s.push(r))}n.children=o}return n}(n,s,t||{}),a={...n,shape:"tileset3d",loader:sT,url:r,queryString:i?.queryString||"",basePath:s,root:o||n.root,type:gw.TILES3D,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:n.root?.geometricError||0};return a}(e,t,i):async function(e,t,i){const n={content:{shape:"tile3d",featureIds:null}},r=0;return await rA(e,r,t,i,n.content),n.content}(e,t,i)},options:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!1,isTileset:"auto",assetGltfUpAxis:null}}};const oT=[0],aT={getPointColor:{type:"accessor",value:[0,0,0,255]},pointSize:1,data:"",loader:sT,onTilesetLoad:{type:"function",value:e=>{}},onTileLoad:{type:"function",value:e=>{}},onTileUnload:{type:"function",value:e=>{}},onTileError:{type:"function",value:(e,t,i)=>{}},_getMeshColor:{type:"function",value:e=>[255,255,255]}};let lT=class extends _g{initializeState(){"onTileLoadFail"in this.props&&qt.removed("onTileLoadFail","onTileError")(),this.state={layerMap:{},tileset3d:null,activeViewports:{},lastUpdatedViewports:null}}get isLoaded(){return Boolean(this.state?.tileset3d?.isLoaded()&&super.isLoaded)}shouldUpdateState({changeFlags:e}){return e.somethingChanged}updateState({props:e,oldProps:t,changeFlags:i}){if(e.data&&e.data!==t.data&&this._loadTileset(e.data),i.viewportChanged){const{activeViewports:e}=this.state;Object.keys(e).length&&(this._updateTileset(e),this.state.lastUpdatedViewports=e,this.state.activeViewports={})}if(i.propsChanged){const{layerMap:e}=this.state;for(const t in e)e[t].needsUpdate=!0}}activateViewport(e){const{activeViewports:t,lastUpdatedViewports:i}=this.state;this.internalState.viewport=e,t[e.id]=e;const n=i?.[e.id];n&&e.equals(n)||(this.setChangeFlags({viewportChanged:!0}),this.setNeedsUpdate())}getPickingInfo({info:e,sourceLayer:t}){const i=t&&t.props.tile;return e.picked&&(e.object=i),e.sourceTile=i,e}filterSubLayer({layer:e,viewport:t}){const{tile:i}=e.props,{id:n}=t;return i.selected&&i.viewportIds.includes(n)}_updateAutoHighlight(e){const t=e.sourceTile,i=this.state.layerMap[t?.id];i&&i.layer&&i.layer.updateAutoHighlight(e)}async _loadTileset(e){const{loadOptions:t={}}=this.props,i=this.props.loader||this.props.loaders,n=Array.isArray(i)?i[0]:i,r={loadOptions:{...t}};let s=e;if(n.preload){const i=await n.preload(e,t);i.url&&(s=i.url),i.headers&&(r.loadOptions.fetch={...r.loadOptions.fetch,headers:i.headers}),Object.assign(r,i)}const o=await Et(s,n,r.loadOptions),a=new fE(o,{onTileLoad:this._onTileLoad.bind(this),onTileUnload:this._onTileUnload.bind(this),onTileError:this.props.onTileError,...r});this.setState({tileset3d:a,layerMap:{}}),this._updateTileset(this.state.activeViewports),this.props.onTilesetLoad(a)}_onTileLoad(e){const{lastUpdatedViewports:t}=this.state;this.props.onTileLoad(e),this._updateTileset(t),this.setNeedsUpdate()}_onTileUnload(e){delete this.state.layerMap[e.id],this.props.onTileUnload(e)}_updateTileset(e){if(!e)return;const{tileset3d:t}=this.state,{timeline:i}=this.context,n=Object.keys(e).length;i&&n&&t&&t.selectTiles(Object.values(e)).then(e=>{this.state.frameNumber!==e&&this.setState({frameNumber:e})})}_getSubLayer(e,t){if(!e.content)return null;switch(e.type){case fw.POINTCLOUD:return this._makePointCloudLayer(e,t);case fw.SCENEGRAPH:return this._make3DModelLayer(e);case fw.MESH:return this._makeSimpleMeshLayer(e,t);default:throw new Error(`Tile3DLayer: Failed to render layer of type ${e.content.type}`)}}_makePointCloudLayer(e,t){const{attributes:i,pointCount:n,constantRGBA:r,cartographicOrigin:s,modelMatrix:o}=e.content,{positions:a,normals:l,colors:c}=i;if(!a)return null;const u=t&&t.props.data||{header:{vertexCount:n},attributes:{POSITION:a,NORMAL:l,COLOR_0:c}},{pointSize:h,getPointColor:d}=this.props;return new(this.getSubLayerClass("pointcloud",Xg))({pointSize:h},this.getSubLayerProps({id:"pointcloud"}),{id:`${this.id}-pointcloud-${e.id}`,tile:e,data:u,coordinateSystem:Ec.METER_OFFSETS,coordinateOrigin:s,modelMatrix:o,getColor:r||d,_offset:0})}_make3DModelLayer(e){const{gltf:t,instances:i,cartographicOrigin:n,modelMatrix:r}=e.content;return new(this.getSubLayerClass("scenegraph",Eb))({_lighting:"pbr"},this.getSubLayerProps({id:"scenegraph"}),{id:`${this.id}-scenegraph-${e.id}`,tile:e,data:i||oT,scenegraph:t,coordinateSystem:Ec.METER_OFFSETS,coordinateOrigin:n,modelMatrix:r,getTransformMatrix:e=>e.modelMatrix,getPosition:[0,0,0],_offset:0})}_makeSimpleMeshLayer(e,t){const i=e.content,{attributes:n,indices:r,modelMatrix:s,cartographicOrigin:o,coordinateSystem:a=Ec.METER_OFFSETS,material:l,featureIds:c}=i,{_getMeshColor:u}=this.props,h=t&&t.props.mesh||new Dh({topology:"triangle-list",attributes:cT(n),indices:r});return new(this.getSubLayerClass("mesh",Sb))(this.getSubLayerProps({id:"mesh"}),{id:`${this.id}-mesh-${e.id}`,tile:e,mesh:h,data:oT,getColor:u(e),pbrMaterial:l,modelMatrix:s,coordinateOrigin:o,coordinateSystem:a,featureIds:c,_offset:0})}renderLayers(){const{tileset3d:e,layerMap:t}=this.state;return e?e.tiles.map(e=>{const i=t[e.id]=t[e.id]||{tile:e};let{layer:n}=i;return e.selected&&(n?i.needsUpdate&&(n=this._getSubLayer(e,n),i.needsUpdate=!1):n=this._getSubLayer(e)),i.layer=n,n}).filter(Boolean):null}};function cT(e){const t={};return t.positions={...e.positions,value:new Float32Array(e.positions.value)},e.normals&&(t.normals=e.normals),e.texCoords&&(t.texCoords=e.texCoords),e.colors&&(t.colors=e.colors),e.uvRegions&&(t.uvRegions=e.uvRegions),t}lT.defaultProps=aT,lT.layerName="Tile3DLayer";class uT{map;sourceId=`gismap_placeholder_source_${Math.random().toString(10)}`;static symbolPointId="gismap_placeholder_symbol_point";static layerPointId="gismap_placeholder_layer_point";static layerLineId="gismap_placeholder_layer_line";static layerPolygonId="gismap_placeholder_layer_polygon";static maskLayerId="gismap_placeholder_mask_layer";constructor(e){this.map=e,this.map.addSource(this.sourceId,{type:"geojson",data:{type:"FeatureCollection",features:[]}})}addLayer(e){this.map.addLayer({id:uT.layerPolygonId,type:"fill",source:this.sourceId,paint:{}},e?.beforeLayerFillId),this.map.addLayer({id:uT.layerLineId,type:"line",source:this.sourceId,paint:{}},e?.beforeLayerLineId),this.map.addLayer({id:uT.layerPointId,type:"circle",source:this.sourceId,paint:{}},e?.beforeLayerPointId),this.map.addLayer({id:uT.symbolPointId,type:"symbol",source:this.sourceId,paint:{}},e?.beforeLayerPointId),this.map.addLayer({id:uT.maskLayerId,type:"circle",source:this.sourceId,paint:{}},e?.beforeMaskLayerId)}}class hT{map;layerId="";isQuery=!1;dataExtension={};templateId=void 0;feature=void 0;constructor(e){this.map=e}addSource(e){if(!this.map.getSource(e.id)){const t=Object.assign({type:"vector",tiles:[e.url]},e);this.map.addSource(e.id,t)}return this}add(e,t){this.addSource(e.source);const i=e.source.id,n=Object.assign({id:e.id,source:i},e.layer);"vector"===this.map.getSource(i).type&&(n["source-layer"]||(n["source-layer"]="layer")),this.dataExtension=e.dataExt||{},this.templateId=e.templateId||this.dataExtension?.templateId||void 0;let r=t;this.map.addLayer(n,r),this.layerId=n.id,(e.isQuery||e.query)&&(this.isQuery=!0,this.addInteraction())}remove(){this.map.getLayer(this.layerId)&&this.map.removeLayer(this.layerId),this.isQuery&&this.removeInteraction()}addInteraction(){this.map.on("click",`${this.layerId}`,e=>{e.features.length>0&&(this.feature=e.features[0],this.map.pubsub.emit("layer:click",{layerId:this.layerId,templateId:this.templateId,feature:this.feature,features:e.features}))}),this.map.on("mouseenter",`${this.layerId}`,e=>{this.map.getCanvas().style.cursor="pointer"}),this.map.on("mouseleave",`${this.layerId}`,e=>{this.map.getCanvas().style.cursor="default"})}removeInteraction(){this.map.off("click",`${this.layerId}`,e=>{}),this.map.off("mouseenter",`${this.layerId}`,e=>{}),this.map.off("mouseleave",`${this.layerId}`,e=>{})}}class dT{map;checkedParentLayers=new Map;checkedLayers=new Map;queryLayerIds=[];symbolLayerIds=[];pointLayerIds=[];lineLayerIds=[];polygonLayerIds=[];constructor(e){this.map=e}addSource(e){this.map.getSource(e.id)||this.map.addSource(e.id,e)}addLayer(e,t){const i=new hT(this.map);let n=t;switch(e.layerType){case"symbol":n=uT.symbolPointId,this.symbolLayerIds.push(e.id);break;case"point":n=uT.layerPointId,this.pointLayerIds.push(e.id);break;case"line":n=uT.layerLineId,this.lineLayerIds.push(e.id);break;case"fill":case"fill-extrusion":n=uT.layerPolygonId,this.polygonLayerIds.push(e.id)}return i.add(e,n),this.checkedLayers.set(e.id,i),i.isQuery&&this.queryLayerIds.push(e.id),this}addGroupLayer(e){const{id:t,layers:i}=e;i&&(i.forEach(e=>{e.layer=Object.assign({id:e.id,source:e.source.id||e.id},e.layer),e.source=Object.assign({id:e.id},e.source),e.source.id||(e.source.id=t),e.layer.id||(e.layer.id=t,e.layer.source=t),this.map.getLayer(e.layer.id)||this.addLayer(e)}),this.checkedParentLayers.get(t)||this.checkedParentLayers.set(t,e))}removeLayer(e){this.map.getLayer(e.layer.id)&&this.map.removeLayer(e.layer.id),this.checkedLayers.delete(e.layer.id),e.isQuery&&(this.queryLayerIds=this.queryLayerIds.filter(t=>t!==e.layer.id))}removeGroupLayer(e){const{id:t,layers:i}=e;i&&i.forEach(e=>{e.layer=Object.assign({id:e.id},e.layer),e.source=Object.assign({id:e.id},e.source),this.removeLayer(e)}),this.checkedParentLayers.delete(t)}getLayer(e){return e?this.checkedLayers.get(e):null}}class pT{map;eraserLayerId="eraser_layer";eraserDebugLayerId="eraser_debug_layer";constructor(e){this.map=e}add(e,t){this.map.addSource(this.eraserLayerId,{type:"geojson",data:e}),this.map.addLayer({id:this.eraserLayerId,source:this.eraserLayerId,type:"clip",layout:{"clip-layer-types":t,"clip-layer-scope":["basemap"]}})}remove(){this.map.removeLayer(this.eraserLayerId),this.map.removeSource(this.eraserLayerId)}showPolygon(){this.map.addLayer({id:this.eraserDebugLayerId,type:"line",source:this.eraserLayerId,paint:{"line-color":"rgba(255, 0, 0, 0.9)","line-dasharray":[0,4,3],"line-width":5}})}hidePolygon(){this.map.getLayer(this.eraserDebugLayerId)&&this.map.removeLayer(this.eraserDebugLayerId)}}class fT{map;layerId="mask_layer";constructor(e){this.map=e}add(e,t={},i){this.map.getSource(this.layerId)||this.map.addSource(this.layerId,{type:"geojson",data:e}),i||(i=uT.maskLayerId);const n=Object.assign({id:this.layerId,source:this.layerId,type:"fill",paint:{"fill-color":"#000000","fill-opacity":.7}},t);return this.map.getLayer(this.layerId)||this.map.addLayer(n,i),this}addLine(e,t={}){this.map.getSource(this.layerId)||this.map.addSource(this.layerId,{type:"geojson",data:e});const i=Object.assign({id:`${this.layerId}_line`,source:this.layerId,type:"line",paint:{"line-color":"#ff0000","line-width":2}},t);this.map.addLayer(i,this.layerId)}remove(){this.map.removeLayer(this.layerId),this.map.removeLayer(`${this.layerId}_line`),this.map.removeSource(this.layerId)}}class mT{map;popup;constructor(e){this.map=e,this.popup=new o.Popup({closeOnClick:!1,closeOnMove:!1,className:"gismap-popup",anchor:"bottom"})}show({position:e,html:t,offset:i=[0,-10],flyTo:n=!1}){t&&this.popup.setHTML(t),i&&this.popup.setOffset(i),this.popup.setLngLat(e),this.popup.addTo(this.map),n&&this.map.flyTo({center:e})}close(){this.popup.remove()}}class gT{map;tdtImgId="tdt-img";tdtVecId="tdt-vec";tdtCiaId="tdt-cia";tdtLayer=new Map;token="6c8a0fffe8f584f8310306723f5bc776";constructor(e,t){this.map=e,this.token=t||this.token,this.tdtLayer.set(this.tdtImgId,{type:"raster",tiles:[`https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t1.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t2.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t3.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t4.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t5.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t6.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t7.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:512,buffer:128,tolerance:0,maxzoom:17,scheme:"xyz",roundZoom:!0,crs:"EPSG:4326"}),this.tdtLayer.set(this.tdtCiaId,{type:"raster",tiles:[`https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t1.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t2.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t3.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t4.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t5.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t6.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t7.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:256,maxzoom:17,crs:"EPSG:4326"}),this.tdtLayer.set(this.tdtVecId,{type:"raster",tiles:[`http://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t1.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t2.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t3.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t5.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t6.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t7.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:256,maxzoom:18,crs:"EPSG:4326"})}addImgLayer(e){let t=this.map.getSource(this.tdtImgId);t||(t=this.tdtLayer.get(this.tdtImgId),this.map.addSource(this.tdtImgId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtImgId,type:"raster",source:this.tdtImgId},e):this.map.addLayer({id:this.tdtImgId,type:"raster",source:this.tdtImgId})}removeImgLayer(){this.map.getLayer(this.tdtImgId)&&this.map.removeLayer(this.tdtImgId)}addVecLayer(e){let t=this.map.getSource(this.tdtVecId);t||(t=this.tdtLayer.get(this.tdtVecId),this.map.addSource(this.tdtVecId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtVecId,type:"raster",source:this.tdtVecId},e):this.map.addLayer({id:this.tdtVecId,type:"raster",source:this.tdtVecId})}removeVecLayer(){this.map.getLayer(this.tdtVecId)&&this.map.removeLayer(this.tdtVecId)}addCiaLayer(e){let t=this.map.getSource(this.tdtCiaId);t||(t=this.tdtLayer.get(this.tdtCiaId),this.map.addSource(this.tdtCiaId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtCiaId,type:"raster",source:this.tdtCiaId},e):this.map.addLayer({id:this.tdtCiaId,type:"raster",source:this.tdtCiaId})}removeCiaLayer(){this.map.getLayer(this.tdtCiaId)&&this.map.removeLayer(this.tdtCiaId)}clear(){this.removeImgLayer(),this.removeVecLayer(),this.removeCiaLayer()}}class _T{map;constructor(e){this.map=e}addSource(e){if(e?.tiles&&!this.map.getSource("raster-dem"))return this.map.addSource("raster-dem",{type:"raster-dem",minzoom:6,maxzoom:14,tileSize:256,...e}),this}add(e={source:{},layer:{}}){return this.map.getSource("raster-dem")||this.addSource(e.source),this.map.setTerrain({source:"raster-dem",exaggeration:1,...e.layer}),this}remove(){return this.map.setTerrain(null),this}addHillshade(){if(this.map.getSource("raster-dem"))return this.map.addLayer({id:"hillshade",type:"hillshade",source:"raster-dem",paint:{"hillshade-exaggeration":.5,"hillshade-highlight-color":"#FFFFFF","hillshade-shadow-color":"#025505"}}),this}}class yT{map;constructor(e){this.map=e}addSource(e){if(!this.map.getSource(e.id)){const t=Object.assign({type:"geojson",tiles:[e.url],tileSize:256},e);this.map.addSource(e.id,t)}return this}addLayer(e){if(!this.map.getLayer(e.id)){const t=Object.assign({id:e.id,source:e.source},e);this.map.addLayer(t)}return this}removeSource(e){return this.map.getSource(e)&&this.map.removeSource(e),this}removeLayer(e){return this.map.getLayer(e)&&this.map.removeLayer(e),this}}function vT(e,t){return e.replace(/\{(?:p\.)?([^}]+)\}|\$\{(?:p\.)?([^}]+)\}/g,(e,i,n)=>{return r=t,(i||n).split(".").reduce((e,t)=>{const i=(e||{})[t];return void 0!==i?String(i):""},r);var r})}function xT(e,t,i="children"){function n(e){"function"==typeof t&&t(e),Array.isArray(e[i])&&e[i].forEach(e=>{n(e)})}Array.isArray(e)&&e.forEach(e=>{n(e)})}class bT{templates=new Map;constructor(){}add(e,t){this.templates.set(e,t)}get(e){return this.templates.get(e)}renderHtml(e,t){const i=this.templates.get(e);if(i){return this._unionFromTemplate(i,t)}}_unionFromTemplate(e,t){let i="";const n=[],r=[],{width:s,labelWidth:o,header:a,body:l,footer:c}=e,u=[];return u.push(`<div class="gismap-popup-box" style="width: ${s||260}px;">`),a&&(i=vT(a,t)),l&&(n.push('<div class="gismap-row gismap-popup-body no-scrollbar">'),l.forEach(e=>{n.push(`<div class="gismap-col gismap-col-${e.style.span||12}">`),n.push(`<div class="popup-label" style="width: ${o||80}px;">${e.fieldLabel}:</div>`);let i=t[e.fieldName]||"";switch(n.push('<div class="popup-value">'),e.fieldType){case"date":case"dateTime":case"number":break;default:n.push(`${i}`)}""!=i&&e.unit&&n.push(`<span class="popup-unit">${e.unit}</span>`),n.push("</div>"),n.push("</div>")}),n.push("</div>")),c&&c.length>0&&(r.push('<div class="gismap-popup-footer">'),c.forEach(e=>{if("click"===e.type)r.push(`<span class="footer-btn" @click=""><span class="s"></span> ${e.label}</span>`)}),r.push("</div>")),u.push(i),u.push(...n),u.push(...r),u.push("</div>"),u.join("")}remove(e){this.templates.delete(e)}}class wT{map;marker;constructor(e){this.map=e}show({position:e,html:t,markerIcon:i="marker",offset:n=[0,-30],iconName:r,flyTo:s=!1}){this.marker&&this.marker.remove();const a=document.createElement("div");a.className="marker-container";const l=document.createElement("div");l.className=`${i}`,r&&(l.innerHTML=`<img src='${r}' class="marker-icon" />`),a.appendChild(l),this.marker=new o.Marker({element:a,anchor:"bottom"}).setLngLat(e).addTo(this.map),t&&this.marker.setPopup(new o.Popup({closeOnClick:!1,closeOnMove:!1,className:"gismap-popup",anchor:"bottom",offset:n}).setHTML(t)).togglePopup(),s&&this.map.flyTo({center:e})}close(){this.marker?.remove()}}class ET{map;constructor(e){this.map=e}load(e){let t=[];for(let i of e)t.push(this._loadImage(i));return new Promise((e,i)=>{Promise.all(t).then(t=>{e(!0)}).catch(e=>{i(e)})})}_loadImage(e){return new Promise((t,i)=>{this.map.loadImage(e.url,(n,r)=>{if(n)throw i(!1),n;this.map.hasImage(e.name)?this.map.updateImage(e.name,r):this.map.addImage(e.name,r),t(!0)})})}}class AT{map;options;constructor(e){this.map=e,this.options={range:[-1,10],"horizon-blend":.3,color:"white","high-color":"#add8e6","space-color":"#d8f2ff","star-intensity":0}}setFog(e={}){this.map.setFog({...this.options,...e})}}class TT{map;layerManager;maskManager;tdtManager;eraserManager;popupManager;markerManager;terrainManager;vectorManager;templateManager;placeholderManager;iconManager;fogManager;constructor(e,t){this.map=e,this.layerManager=new dT(this.map),this.maskManager=new fT(this.map),this.tdtManager=new gT(this.map,t),this.eraserManager=new pT(this.map),this.popupManager=new mT(this.map),this.markerManager=new wT(this.map),this.terrainManager=new _T(this.map),this.vectorManager=new yT(this.map),this.templateManager=new bT,this.placeholderManager=new uT(this.map),this.iconManager=new ET(this.map),this.fogManager=new AT(this.map)}}const ST={key:0,class:"gismap-control"},CT={class:"widget top-left"},IT={class:"widget top-right"},MT={class:"widget bottom-left"},RT={class:"widget bottom-right"},PT=t.defineComponent({name:"MapView",props:{accessToken:{type:String,default:()=>""},tdtToken:{type:String,default:()=>""},options:{type:Object,default:()=>({})}},emits:["load"],setup(e,{emit:i}){const n=i,r=e,s=t.ref(!1),a=t.ref();return t.onMounted(()=>{r.accessToken&&(o.accessToken=r.accessToken);const e={container:a.value,center:[120.65851,29.5714],minZoom:8,maxZoom:20,zoom:15,pitch:0,bearing:0,maxPitch:65,attributionControl:!1,spriteFormat:"auto",...r.options};e.style={version:8,sources:{},layers:[],...e.style||{}};const i=new l(e);i.on("load",async()=>{i.manager=new TT(i,r.tdtToken),await i.manager.iconManager.load(r.options?.icons||[]),i.manager.placeholderManager.addLayer(),s.value=!0,n("load",i)}),t.provide("map",i)}),(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{ref_key:"mapContainer",ref:a,class:"gismap-container"},null,512),s.value?(t.openBlock(),t.createElementBlock("div",ST,[t.createElementVNode("div",CT,[t.renderSlot(e.$slots,"top-left")]),t.createElementVNode("div",IT,[t.renderSlot(e.$slots,"top-right")]),t.createElementVNode("div",MT,[t.renderSlot(e.$slots,"bottom-left")]),t.createElementVNode("div",RT,[t.renderSlot(e.$slots,"bottom-right")]),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)],64))}}),BT="el",LT=(e,t,i,n,r)=>{let s=`${e}-${t}`;return i&&(s+=`-${i}`),n&&(s+=`__${n}`),r&&(s+=`--${r}`),s},OT=Symbol("namespaceContextKey"),DT=e=>{const i=t.getCurrentInstance()?t.inject(OT,t.ref(BT)):t.ref(BT);return t.computed(()=>t.unref(i)||BT)},kT=(e,t)=>{const i=DT();return{namespace:i,b:(t="")=>LT(i.value,e,t,"",""),e:t=>t?LT(i.value,e,"",t,""):"",m:t=>t?LT(i.value,e,"","",t):"",be:(t,n)=>t&&n?LT(i.value,e,t,n,""):"",em:(t,n)=>t&&n?LT(i.value,e,"",t,n):"",bm:(t,n)=>t&&n?LT(i.value,e,t,"",n):"",bem:(t,n,r)=>t&&n&&r?LT(i.value,e,t,n,r):"",is:(e,...t)=>{const i=!(t.length>=1)||t[0];return e&&i?`is-${e}`:""},cssVar:e=>{const t={};for(const n in e)e[n]&&(t[`--${i.value}-${n}`]=e[n]);return t},cssVarName:e=>`--${i.value}-${e}`,cssVarBlock:t=>{const n={};for(const r in t)t[r]&&(n[`--${i.value}-${e}-${r}`]=t[r]);return n},cssVarBlockName:t=>`--${i.value}-${e}-${t}`}};
|
|
29
29
|
/**
|
|
30
30
|
* @vue/shared v3.5.21
|
|
31
31
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
**/
|
|
34
34
|
"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);const FT=()=>{},NT=Object.prototype.hasOwnProperty,zT=(e,t)=>NT.call(e,t),UT=Array.isArray,VT=e=>"function"==typeof e,GT=e=>"string"==typeof e,jT=e=>null!==e&&"object"==typeof e;var HT="object"==typeof global&&global&&global.Object===Object&&global,WT="object"==typeof self&&self&&self.Object===Object&&self,$T=HT||WT||Function("return this")(),qT=$T.Symbol,XT=Object.prototype,ZT=XT.hasOwnProperty,KT=XT.toString,YT=qT?qT.toStringTag:void 0;var JT=Object.prototype.toString;var QT=qT?qT.toStringTag:void 0;function eS(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":QT&&QT in Object(e)?function(e){var t=ZT.call(e,YT),i=e[YT];try{e[YT]=void 0;var n=!0}catch(cr){}var r=KT.call(e);return n&&(t?e[YT]=i:delete e[YT]),r}(e):function(e){return JT.call(e)}(e)}function tS(e){return null!=e&&"object"==typeof e}function iS(e){return"symbol"==typeof e||tS(e)&&"[object Symbol]"==eS(e)}var nS=Array.isArray,rS=qT?qT.prototype:void 0,sS=rS?rS.toString:void 0;function oS(e){if("string"==typeof e)return e;if(nS(e))return function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}(e,oS)+"";if(iS(e))return sS?sS.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function aS(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function lS(e){if(!aS(e))return!1;var t=eS(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var cS,uS=$T["__core-js_shared__"],hS=(cS=/[^.]+$/.exec(uS&&uS.keys&&uS.keys.IE_PROTO||""))?"Symbol(src)_1."+cS:"";var dS=Function.prototype.toString;function pS(e){if(null!=e){try{return dS.call(e)}catch(cr){}try{return e+""}catch(cr){}}return""}var fS=/^\[object .+?Constructor\]$/,mS=Function.prototype,gS=Object.prototype,_S=mS.toString,yS=gS.hasOwnProperty,vS=RegExp("^"+_S.call(yS).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xS(e){return!(!aS(e)||(t=e,hS&&hS in t))&&(lS(e)?vS:fS).test(pS(e));var t}function bS(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return xS(i)?i:void 0}var wS=bS($T,"WeakMap");var ES=Date.now;var AS,TS,SS,CS=function(){try{var e=bS(Object,"defineProperty");return e({},"",{}),e}catch(cr){}}(),IS=CS?function(e,t){return CS(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:function(e){return e},MS=(AS=IS,TS=0,SS=0,function(){var e=ES(),t=16-(e-SS);if(SS=e,t>0){if(++TS>=800)return arguments[0]}else TS=0;return AS.apply(void 0,arguments)}),RS=/^(?:0|[1-9]\d*)$/;function PS(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&RS.test(e))&&e>-1&&e%1==0&&e<t}function BS(e,t){return e===t||e!=e&&t!=t}var LS=Object.prototype.hasOwnProperty;function OS(e,t,i){var n=e[t];LS.call(e,t)&&BS(n,i)&&(void 0!==i||t in e)||function(e,t,i){"__proto__"==t&&CS?CS(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}(e,t,i)}var DS=Math.max;function kS(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var FS=Object.prototype;function NS(e){return tS(e)&&"[object Arguments]"==eS(e)}var zS=Object.prototype,US=zS.hasOwnProperty,VS=zS.propertyIsEnumerable,GS=NS(function(){return arguments}())?NS:function(e){return tS(e)&&US.call(e,"callee")&&!VS.call(e,"callee")};var jS="object"==typeof e&&e&&!e.nodeType&&e,HS=jS&&"object"==typeof module&&module&&!module.nodeType&&module,WS=HS&&HS.exports===jS?$T.Buffer:void 0,$S=(WS?WS.isBuffer:void 0)||function(){return!1},qS={};qS["[object Float32Array]"]=qS["[object Float64Array]"]=qS["[object Int8Array]"]=qS["[object Int16Array]"]=qS["[object Int32Array]"]=qS["[object Uint8Array]"]=qS["[object Uint8ClampedArray]"]=qS["[object Uint16Array]"]=qS["[object Uint32Array]"]=!0,qS["[object Arguments]"]=qS["[object Array]"]=qS["[object ArrayBuffer]"]=qS["[object Boolean]"]=qS["[object DataView]"]=qS["[object Date]"]=qS["[object Error]"]=qS["[object Function]"]=qS["[object Map]"]=qS["[object Number]"]=qS["[object Object]"]=qS["[object RegExp]"]=qS["[object Set]"]=qS["[object String]"]=qS["[object WeakMap]"]=!1;var XS="object"==typeof e&&e&&!e.nodeType&&e,ZS=XS&&"object"==typeof module&&module&&!module.nodeType&&module,KS=ZS&&ZS.exports===XS&&HT.process,YS=function(){try{var e=ZS&&ZS.require&&ZS.require("util").types;return e||KS&&KS.binding&&KS.binding("util")}catch(cr){}}(),JS=YS&&YS.isTypedArray,QS=JS?function(e){return function(t){return e(t)}}(JS):function(e){return tS(e)&&kS(e.length)&&!!qS[eS(e)]},eC=Object.prototype.hasOwnProperty;function tC(e,t){var i=nS(e),n=!i&&GS(e),r=!i&&!n&&$S(e),s=!i&&!n&&!r&&QS(e),o=i||n||r||s,a=o?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],l=a.length;for(var c in e)!eC.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||PS(c,l))||a.push(c);return a}var iC=function(e,t){return function(i){return e(t(i))}}(Object.keys,Object),nC=Object.prototype.hasOwnProperty;function rC(e){if(i=(t=e)&&t.constructor,t!==("function"==typeof i&&i.prototype||FS))return iC(e);var t,i,n=[];for(var r in Object(e))nC.call(e,r)&&"constructor"!=r&&n.push(r);return n}function sC(e){return null!=(t=e)&&kS(t.length)&&!lS(t)?tC(e):rC(e);var t}var oC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aC=/^\w*$/;var lC=bS(Object,"create");var cC=Object.prototype.hasOwnProperty;var uC=Object.prototype.hasOwnProperty;function hC(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function dC(e,t){for(var i=e.length;i--;)if(BS(e[i][0],t))return i;return-1}hC.prototype.clear=function(){this.__data__=lC?lC(null):{},this.size=0},hC.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},hC.prototype.get=function(e){var t=this.__data__;if(lC){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return cC.call(t,e)?t[e]:void 0},hC.prototype.has=function(e){var t=this.__data__;return lC?void 0!==t[e]:uC.call(t,e)},hC.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=lC&&void 0===t?"__lodash_hash_undefined__":t,this};var pC=Array.prototype.splice;function fC(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}fC.prototype.clear=function(){this.__data__=[],this.size=0},fC.prototype.delete=function(e){var t=this.__data__,i=dC(t,e);return!(i<0)&&(i==t.length-1?t.pop():pC.call(t,i,1),--this.size,!0)},fC.prototype.get=function(e){var t=this.__data__,i=dC(t,e);return i<0?void 0:t[i][1]},fC.prototype.has=function(e){return dC(this.__data__,e)>-1},fC.prototype.set=function(e,t){var i=this.__data__,n=dC(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};var mC=bS($T,"Map");function gC(e,t){var i,n,r=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function _C(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}_C.prototype.clear=function(){this.size=0,this.__data__={hash:new hC,map:new(mC||fC),string:new hC}},_C.prototype.delete=function(e){var t=gC(this,e).delete(e);return this.size-=t?1:0,t},_C.prototype.get=function(e){return gC(this,e).get(e)},_C.prototype.has=function(e){return gC(this,e).has(e)},_C.prototype.set=function(e,t){var i=gC(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function yC(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],s=i.cache;if(s.has(r))return s.get(r);var o=e.apply(this,n);return i.cache=s.set(r,o)||s,o};return i.cache=new(yC.Cache||_C),i}yC.Cache=_C;var vC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xC=/\\(\\)?/g,bC=function(e){var t=yC(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vC,function(e,i,n,r){t.push(n?r.replace(xC,"$1"):i||e)}),t});function wC(e,t){return nS(e)?e:function(e,t){if(nS(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!iS(e))||aC.test(e)||!oC.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:bC(function(e){return null==e?"":oS(e)}(e))}function EC(e){if("string"==typeof e||iS(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function AC(e,t){for(var i=0,n=(t=wC(t,e)).length;null!=e&&i<n;)e=e[EC(t[i++])];return i&&i==n?e:void 0}function TC(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}var SC=qT?qT.isConcatSpreadable:void 0;function CC(e){return nS(e)||GS(e)||!!(SC&&e&&e[SC])}function IC(e){return(null==e?0:e.length)?function(e,t,i,n,r){var s=-1,o=e.length;for(i||(i=CC),r||(r=[]);++s<o;){var a=e[s];i(a)?TC(r,a):r[r.length]=a}return r}(e):[]}function MC(e){var t=this.__data__=new fC(e);this.size=t.size}MC.prototype.clear=function(){this.__data__=new fC,this.size=0},MC.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},MC.prototype.get=function(e){return this.__data__.get(e)},MC.prototype.has=function(e){return this.__data__.has(e)},MC.prototype.set=function(e,t){var i=this.__data__;if(i instanceof fC){var n=i.__data__;if(!mC||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new _C(n)}return i.set(e,t),this.size=i.size,this};var RC=Object.prototype.propertyIsEnumerable,PC=Object.getOwnPropertySymbols,BC=PC?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,s=[];++i<n;){var o=e[i];t(o,i,e)&&(s[r++]=o)}return s}(PC(e),function(t){return RC.call(e,t)}))}:function(){return[]};function LC(e){return function(e,t,i){var n=t(e);return nS(e)?n:TC(n,i(e))}(e,sC,BC)}var OC=bS($T,"DataView"),DC=bS($T,"Promise"),kC=bS($T,"Set"),FC="[object Map]",NC="[object Promise]",zC="[object Set]",UC="[object WeakMap]",VC="[object DataView]",GC=pS(OC),jC=pS(mC),HC=pS(DC),WC=pS(kC),$C=pS(wS),qC=eS;(OC&&qC(new OC(new ArrayBuffer(1)))!=VC||mC&&qC(new mC)!=FC||DC&&qC(DC.resolve())!=NC||kC&&qC(new kC)!=zC||wS&&qC(new wS)!=UC)&&(qC=function(e){var t=eS(e),i="[object Object]"==t?e.constructor:void 0,n=i?pS(i):"";if(n)switch(n){case GC:return VC;case jC:return FC;case HC:return NC;case WC:return zC;case $C:return UC}return t});var XC=$T.Uint8Array;function ZC(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new _C;++t<i;)this.add(e[t])}function KC(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}ZC.prototype.add=ZC.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ZC.prototype.has=function(e){return this.__data__.has(e)};function YC(e,t,i,n,r,s){var o=1&i,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var h=-1,d=!0,p=2&i?new ZC:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var f=e[h],m=t[h];if(n)var g=o?n(m,f,h,t,e,s):n(f,m,h,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!KC(t,function(e,t){if(o=t,!p.has(o)&&(f===e||r(f,e,i,n,s)))return p.push(t);var o})){d=!1;break}}else if(f!==m&&!r(f,m,i,n,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function JC(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function QC(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var eI=qT?qT.prototype:void 0,tI=eI?eI.valueOf:void 0;var iI=Object.prototype.hasOwnProperty;var nI="[object Arguments]",rI="[object Array]",sI="[object Object]",oI=Object.prototype.hasOwnProperty;function aI(e,t,i,n,r,s){var o=nS(e),a=nS(t),l=o?rI:qC(e),c=a?rI:qC(t),u=(l=l==nI?sI:l)==sI,h=(c=c==nI?sI:c)==sI,d=l==c;if(d&&$S(e)){if(!$S(t))return!1;o=!0,u=!1}if(d&&!u)return s||(s=new MC),o||QS(e)?YC(e,t,i,n,r,s):function(e,t,i,n,r,s,o){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new XC(e),new XC(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return BS(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=JC;case"[object Set]":var l=1&n;if(a||(a=QC),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=YC(a(e),a(t),n,r,s,o);return o.delete(e),u;case"[object Symbol]":if(tI)return tI.call(e)==tI.call(t)}return!1}(e,t,l,i,n,r,s);if(!(1&i)){var p=u&&oI.call(e,"__wrapped__"),f=h&&oI.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,g=f?t.value():t;return s||(s=new MC),r(m,g,i,n,s)}}return!!d&&(s||(s=new MC),function(e,t,i,n,r,s){var o=1&i,a=LC(e),l=a.length;if(l!=LC(t).length&&!o)return!1;for(var c=l;c--;){var u=a[c];if(!(o?u in t:iI.call(t,u)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);for(var f=o;++c<l;){var m=e[u=a[c]],g=t[u];if(n)var _=o?n(g,m,u,t,e,s):n(m,g,u,e,t,s);if(!(void 0===_?m===g||r(m,g,i,n,s):_)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,i,n,r,s))}function lI(e,t,i,n,r){return e===t||(null==e||null==t||!tS(e)&&!tS(t)?e!=e&&t!=t:aI(e,t,i,n,lI,r))}function cI(e,t){return null!=e&&t in Object(e)}function uI(e,t){return null!=e&&function(e,t,i){for(var n=-1,r=(t=wC(t,e)).length,s=!1;++n<r;){var o=EC(t[n]);if(!(s=null!=e&&i(e,o)))break;e=e[o]}return s||++n!=r?s:!!(r=null==e?0:e.length)&&kS(r)&&PS(o,r)&&(nS(e)||GS(e))}(e,t,cI)}function hI(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var r=e[t];n[r[0]]=r[1]}return n}function dI(e,t){return lI(e,t)}function pI(e){return null==e}function fI(e,t,i,n){if(!aS(e))return e;for(var r=-1,s=(t=wC(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var l=EC(t[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(r!=o){var u=a[l];void 0===(c=void 0)&&(c=aS(u)?u:PS(t[r+1])?[]:{})}OS(a,l,c),a=a[l]}return e}function mI(e,t){return function(e,t,i){for(var n=-1,r=t.length,s={};++n<r;){var o=t[n],a=AC(e,o);i(a,o)&&fI(s,wC(o,e),a)}return s}(e,t,function(t,i){return uI(e,i)})}var gI=function(e){return MS(function(e,t,i){return t=DS(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,s=DS(n.length-t,0),o=Array(s);++r<s;)o[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=i(o),function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}(e,this,a)}}(e,void 0,IC),e+"")}(function(e,t){return null==e?{}:mI(e,t)});const _I=e=>void 0===e,yI=e=>"boolean"==typeof e,vI=e=>"number"==typeof e,xI=e=>"undefined"!=typeof Element&&e instanceof Element,bI=e=>pI(e);var wI,EI=Object.defineProperty,AI=Object.defineProperties,TI=Object.getOwnPropertyDescriptors,SI=Object.getOwnPropertySymbols,CI=Object.prototype.hasOwnProperty,II=Object.prototype.propertyIsEnumerable,MI=(e,t,i)=>t in e?EI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;function RI(e,i){const n=t.shallowRef();var r,s;return t.watchEffect(()=>{n.value=e()},(r=((e,t)=>{for(var i in t||(t={}))CI.call(t,i)&&MI(e,i,t[i]);if(SI)for(var i of SI(t))II.call(t,i)&&MI(e,i,t[i]);return e})({},i),s={flush:null!=void 0?void 0:"sync"},AI(r,TI(s)))),t.readonly(n)}const PI="undefined"!=typeof window,BI=()=>{},LI=PI&&(null==(wI=null==window?void 0:window.navigator)?void 0:wI.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function OI(e){return"function"==typeof e?e():t.unref(e)}function DI(e){return!!t.getCurrentScope()&&(t.onScopeDispose(e),!0)}function kI(e){var t;const i=OI(e);return null!=(t=null==i?void 0:i.$el)?t:i}const FI=PI?window:void 0;function NI(...e){let i,n,r,s;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,s]=e,i=FI):[i,n,r,s]=e,!i)return BI;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(e=>e()),o.length=0},l=t.watch(()=>[kI(i),OI(s)],([e,t])=>{a(),e&&o.push(...n.flatMap(i=>r.map(n=>((e,t,i,n)=>(e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)))(e,i,n,t))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return DI(c),c}let zI=!1;function UI(e,i=!1){const n=t.ref(),r=()=>n.value=Boolean(e());return r(),function(e,i=!0){t.getCurrentInstance()?t.onMounted(e):i?e():t.nextTick(e)}(r,i),n}const VI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},GI="__vueuse_ssr_handlers__";VI[GI]=VI[GI]||{};var jI,HI,WI=Object.getOwnPropertySymbols,$I=Object.prototype.hasOwnProperty,qI=Object.prototype.propertyIsEnumerable;function XI(e,i,n={}){const r=n,{window:s=FI}=r,o=((e,t)=>{var i={};for(var n in e)$I.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&WI)for(var n of WI(e))t.indexOf(n)<0&&qI.call(e,n)&&(i[n]=e[n]);return i})(r,["window"]);let a;const l=UI(()=>s&&"ResizeObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=t.watch(()=>kI(e),e=>{c(),l.value&&s&&e&&(a=new ResizeObserver(i),a.observe(e,o))},{immediate:!0,flush:"post"}),h=()=>{c(),u()};return DI(h),{isSupported:l,stop:h}}(HI=jI||(jI={})).UP="UP",HI.RIGHT="RIGHT",HI.DOWN="DOWN",HI.LEFT="LEFT",HI.NONE="NONE";var ZI=Object.defineProperty,KI=Object.getOwnPropertySymbols,YI=Object.prototype.hasOwnProperty,JI=Object.prototype.propertyIsEnumerable,QI=(e,t,i)=>t in e?ZI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;((e,t)=>{for(var i in t||(t={}))YI.call(t,i)&&QI(e,i,t[i]);if(KI)for(var i of KI(t))JI.call(t,i)&&QI(e,i,t[i])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const eM={current:0},tM=t.ref(0),iM=Symbol("elZIndexContextKey"),nM=Symbol("zIndexContextKey");var rM={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const sM=e=>(i,n)=>oM(i,n,t.unref(e)),oM=(e,t,i)=>function(e,t,i){var n=null==e?void 0:AC(e,t);return void 0===n?i:n}(i,e,e).replace(/\{(\w+)\}/g,(e,i)=>{var n;return`${null!=(n=null==t?void 0:t[i])?n:`{${i}}`}`}),aM=Symbol("localeContextKey"),lM=e=>{const i=t.inject(aM,t.ref());return(e=>({lang:t.computed(()=>t.unref(e).name),locale:t.isRef(e)?e:t.ref(e),t:sM(e)}))(t.computed(()=>i.value||rM))},cM="__epPropKey",uM=(e,i)=>{if(!jT(e)||jT(n=e)&&n[cM])return e;var n;const{values:r,required:s,default:o,type:a,validator:l}=e,c=r||l?n=>{let s=!1,a=[];if(r&&(a=Array.from(r),zT(e,"default")&&a.push(o),s||(s=a.includes(n))),l&&(s||(s=l(n))),!s&&a.length>0){const e=[...new Set(a)].map(e=>JSON.stringify(e)).join(", ");t.warn(`Invalid prop: validation failed${i?` for prop "${i}"`:""}. Expected one of [${e}], got value ${JSON.stringify(n)}.`)}return s}:void 0,u={type:a,required:!!s,validator:c,[cM]:!0};return zT(e,"default")&&(u.default=o),u},hM=e=>hI(Object.entries(e).map(([e,t])=>[e,uM(t,e)])),dM=["","default","small","large"],pM=uM({type:String,values:dM,required:!1}),fM=Symbol("size"),mM="update:modelValue",gM="change",_M="input";var yM=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i};const vM=(e="")=>e.split(" ").filter(e=>!!e.trim()),xM=(e,t)=>{e&&t.trim()&&e.classList.remove(...vM(t))};function bM(e,t="px"){return e?vI(e)||GT(i=e)&&!Number.isNaN(Number(i))?`${e}${t}`:GT(e)?e:void 0:"";var i}const wM=(e,t)=>{if(e.install=i=>{for(const n of[e,...Object.values(null!=t?t:{})])i.component(n.name,n)},t)for(const[i,n]of Object.entries(t))e[i]=n;return e},EM=e=>(e.install=FT,e),AM=hM({size:{type:[Number,String]},color:{type:String}}),TM=t.defineComponent({name:"ElIcon",inheritAttrs:!1});const SM=wM(yM(t.defineComponent({...TM,props:AM,setup(e){const i=e,n=kT("icon"),r=t.computed(()=>{const{size:e,color:t}=i;return e||t?{fontSize:_I(e)?void 0:bM(e),"--color":t}:{}});return(e,i)=>(t.openBlock(),t.createElementBlock("i",t.mergeProps({class:t.unref(n).b(),style:t.unref(r)},e.$attrs),[t.renderSlot(e.$slots,"default")],16))}}),[["__file","icon.vue"]]));function CM(){let e;const t=()=>window.clearTimeout(e);return DI(()=>t()),{registerTimeout:(i,n)=>{t(),e=window.setTimeout(i,n)},cancelTimeout:t}}const IM=hM({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}});
|
|
35
35
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
36
|
-
var MM=t.defineComponent({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),RM=t.defineComponent({name:"CaretRight",__name:"caret-right",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}),PM=t.defineComponent({name:"CircleCheck",__name:"circle-check",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),t.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}),BM=t.defineComponent({name:"CircleClose",__name:"circle-close",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),LM=t.defineComponent({name:"Hide",__name:"hide",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),t.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}),OM=t.defineComponent({name:"Loading",__name:"loading",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}),DM=t.defineComponent({name:"Search",__name:"search",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}),kM=t.defineComponent({name:"View",__name:"view",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))});const FM=[String,Object,Function],NM={validating:OM,success:PM,error:BM};let zM;const UM={height:"0",visibility:"hidden",overflow:PI&&/firefox/i.test(window.navigator.userAgent)?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VM=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function GM(e,t=1,i){var n,r;zM||(zM=document.createElement("textarea"),(null!=(n=e.parentNode)?n:document.body).appendChild(zM));const{paddingSize:s,borderSize:o,boxSizing:a,contextStyle:l}=function(e){const t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:VM.map(e=>[e,t.getPropertyValue(e)]),paddingSize:n,borderSize:r,boxSizing:i}}(e);l.forEach(([e,t])=>null==zM?void 0:zM.style.setProperty(e,t)),Object.entries(UM).forEach(([e,t])=>null==zM?void 0:zM.style.setProperty(e,t,"important")),zM.value=e.value||e.placeholder||"";let c=zM.scrollHeight;const u={};"border-box"===a?c+=o:"content-box"===a&&(c-=s),zM.value="";const h=zM.scrollHeight-s;if(vI(t)){let e=h*t;"border-box"===a&&(e=e+s+o),c=Math.max(e,c),u.minHeight=`${e}px`}if(vI(i)){let e=h*i;"border-box"===a&&(e=e+s+o),c=Math.min(e,c)}return u.height=`${c}px`,null==(r=zM.parentNode)||r.removeChild(zM),zM=void 0,u}const jM=hM({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),HM=e=>gI(jM,e),WM=hM({id:{type:String,default:void 0},size:pM,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:FM,default:BM},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:FM},prefixIcon:{type:FM},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})},autofocus:Boolean,rows:{type:Number,default:2},...HM(["ariaLabel"]),inputmode:{type:String,default:void 0},name:String}),$M={[mM]:e=>GT(e),input:e=>GT(e),change:e=>GT(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},qM=["class","style"],XM=/^on[A-Z]/,ZM={prefix:Math.floor(1e4*Math.random()),current:0},KM=Symbol("elIdInjection"),YM=()=>t.getCurrentInstance()?t.inject(KM,ZM):ZM,JM=e=>{const i=YM(),n=DT();return RI(()=>t.unref(e)||`${n.value}-id-${i.prefix}-${i.current++}`)},QM=Symbol("formContextKey"),eR=Symbol("formItemContextKey"),tR=()=>({form:t.inject(QM,void 0),formItem:t.inject(eR,void 0)}),iR=(e,{formItemContext:i,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=t.ref(!1)),r||(r=t.ref(!1));const s=t.getCurrentInstance(),o=t.ref();let a;const l=t.computed(()=>{var t;return!!(!e.label&&!e.ariaLabel&&i&&i.inputIds&&(null==(t=i.inputIds)?void 0:t.length)<=1)});return t.onMounted(()=>{a=t.watch([t.toRef(e,"id"),n],([e,t])=>{const n=null!=e?e:t?void 0:JM().value;n!==o.value&&((null==i?void 0:i.removeInputId)&&!(()=>{let e=null==s?void 0:s.parent;for(;e;){if("ElFormItem"===e.type.name)return!1;if("ElLabelWrap"===e.type.name)return!0;e=e.parent}return!1})()&&(o.value&&i.removeInputId(o.value),(null==r?void 0:r.value)||t||!n||i.addInputId(n)),o.value=n)},{immediate:!0})}),t.onUnmounted(()=>{a&&a(),(null==i?void 0:i.removeInputId)&&o.value&&i.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},nR=e=>{const i=t.getCurrentInstance();return t.computed(()=>{var t,n;return null==(n=null==(t=null==i?void 0:i.proxy)?void 0:t.$props)?void 0:n[e]})},rR=(e,i={})=>{const n=t.ref(void 0),r=i.prop?n:nR("size"),s=i.global?n:(()=>{const e=t.inject(fM,{});return t.computed(()=>t.unref(e.size)||"")})(),o=i.form?{size:void 0}:t.inject(QM,void 0),a=i.formItem?{size:void 0}:t.inject(eR,void 0);return t.computed(()=>r.value||t.unref(e)||(null==a?void 0:a.size)||(null==o?void 0:o.size)||s.value||"")},sR=e=>{const i=nR("disabled"),n=t.inject(QM,void 0);return t.computed(()=>i.value||t.unref(e)||(null==n?void 0:n.disabled)||!1)},oR=e=>"undefined"!=typeof Element&&e instanceof Element,aR=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},lR=(e,t)=>{if(!e||!e.focus)return;let i=!1;!oR(e)||aR(e)||e.getAttribute("tabindex")||(e.setAttribute("tabindex","-1"),i=!0),e.focus(t),oR(e)&&i&&e.removeAttribute("tabindex")};const cR=t.defineComponent({name:"ElInput",inheritAttrs:!1});const uR=wM(yM(t.defineComponent({...cR,props:WM,emits:$M,setup(e,{expose:i,emit:n}){const r=e,s=t.useAttrs(),o=((e={})=>{const{excludeListeners:i=!1,excludeKeys:n}=e,r=t.computed(()=>((null==n?void 0:n.value)||[]).concat(qM)),s=t.getCurrentInstance();return s?t.computed(()=>{var e;return hI(Object.entries(null==(e=s.proxy)?void 0:e.$attrs).filter(([e])=>!(r.value.includes(e)||i&&XM.test(e))))}):t.computed(()=>({}))})(),a=t.useSlots(),l=t.computed(()=>["textarea"===r.type?g.b():m.b(),m.m(p.value),m.is("disabled",f.value),m.is("exceed",z.value),{[m.b("group")]:a.prepend||a.append,[m.m("prefix")]:a.prefix||r.prefixIcon,[m.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[m.bm("suffix","password-clear")]:D.value&&k.value,[m.b("hidden")]:"hidden"===r.type},s.class]),c=t.computed(()=>[m.e("wrapper"),m.is("focus",T.value)]),{form:u,formItem:h}=tR(),{inputId:d}=iR(r,{formItemContext:h}),p=rR(),f=sR(),m=kT("input"),g=kT("textarea"),_=t.shallowRef(),y=t.shallowRef(),v=t.ref(!1),x=t.ref(!1),b=t.ref(),w=t.shallowRef(r.inputStyle),E=t.computed(()=>_.value||y.value),{wrapperRef:A,isFocused:T,handleFocus:S,handleBlur:C}=function(e,{disabled:i,beforeFocus:n,afterFocus:r,beforeBlur:s,afterBlur:o}={}){const a=t.getCurrentInstance(),{emit:l}=a,c=t.shallowRef(),u=t.ref(!1),h=e=>{const s=!!VT(n)&&n(e);t.unref(i)||u.value||s||(u.value=!0,l("focus",e),null==r||r())},d=e=>{var n;const r=!!VT(s)&&s(e);t.unref(i)||e.relatedTarget&&(null==(n=c.value)?void 0:n.contains(e.relatedTarget))||r||(u.value=!1,l("blur",e),null==o||o())};return t.watch([c,()=>t.unref(i)],([e,t])=>{e&&(t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"))}),NI(c,"focus",h,!0),NI(c,"blur",d,!0),NI(c,"click",n=>{var r,s;t.unref(i)||aR(n.target)||(null==(r=c.value)?void 0:r.contains(document.activeElement))&&c.value!==document.activeElement||null==(s=e.value)||s.focus()},!0),{isFocused:u,wrapperRef:c,handleFocus:h,handleBlur:d}}(E,{disabled:f,afterBlur(){var e;r.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"blur").catch(e=>{}))}}),I=t.computed(()=>{var e;return null!=(e=null==u?void 0:u.statusIcon)&&e}),M=t.computed(()=>(null==h?void 0:h.validateState)||""),R=t.computed(()=>M.value&&NM[M.value]),P=t.computed(()=>x.value?kM:LM),B=t.computed(()=>[s.style]),L=t.computed(()=>[r.inputStyle,w.value,{resize:r.resize}]),O=t.computed(()=>pI(r.modelValue)?"":String(r.modelValue)),D=t.computed(()=>r.clearable&&!f.value&&!r.readonly&&!!O.value&&(T.value||v.value)),k=t.computed(()=>r.showPassword&&!f.value&&!!O.value),F=t.computed(()=>r.showWordLimit&&!!r.maxlength&&("text"===r.type||"textarea"===r.type)&&!f.value&&!r.readonly&&!r.showPassword),N=t.computed(()=>O.value.length),z=t.computed(()=>!!F.value&&N.value>Number(r.maxlength)),U=t.computed(()=>!!a.suffix||!!r.suffixIcon||D.value||r.showPassword||F.value||!!M.value&&I.value),[V,G]=function(e){let t;return[function(){if(null==e.value)return;const{selectionStart:i,selectionEnd:n,value:r}=e.value;if(null==i||null==n)return;const s=r.slice(0,Math.max(0,i)),o=r.slice(Math.max(0,n));t={selectionStart:i,selectionEnd:n,value:r,beforeTxt:s,afterTxt:o}},function(){if(null==e.value||null==t)return;const{value:i}=e.value,{beforeTxt:n,afterTxt:r,selectionStart:s}=t;if(null==n||null==r||null==s)return;let o=i.length;if(i.endsWith(r))o=i.length-r.length;else if(i.startsWith(n))o=n.length;else{const e=n[s-1],t=i.indexOf(e,s-1);-1!==t&&(o=t+1)}e.value.setSelectionRange(o,o)}]}(_);XI(y,e=>{if(H(),!F.value||"both"!==r.resize)return;const t=e[0],{width:i}=t.contentRect;b.value={right:`calc(100% - ${i+15+6}px)`}});const j=()=>{const{type:e,autosize:i}=r;if(PI&&"textarea"===e&&y.value)if(i){const e=jT(i)?i.minRows:void 0,n=jT(i)?i.maxRows:void 0,r=GM(y.value,e,n);w.value={overflowY:"hidden",...r},t.nextTick(()=>{y.value.offsetHeight,w.value=r})}else w.value={minHeight:GM(y.value).minHeight}},H=(e=>{let t=!1;return()=>{var i;if(t||!r.autosize)return;null===(null==(i=y.value)?void 0:i.offsetParent)||(setTimeout(e),t=!0)}})(j),W=()=>{const e=E.value,t=r.formatter?r.formatter(O.value):O.value;e&&e.value!==t&&(e.value=t)},$=async e=>{V();let{value:i}=e.target;r.formatter&&r.parser&&(i=r.parser(i)),X.value||(i!==O.value?(n(mM,i),n(_M,i),await t.nextTick(),W(),G()):W())},q=e=>{let{value:t}=e.target;r.formatter&&r.parser&&(t=r.parser(t)),n(gM,t)},{isComposing:X,handleCompositionStart:Z,handleCompositionUpdate:K,handleCompositionEnd:Y}=function({afterComposition:e,emit:i}){const n=t.ref(!1),r=e=>{var t;null==i||i("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,s=r[r.length-1]||"";n.value=!(e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e))(s)},s=r=>{null==i||i("compositionend",r),n.value&&(n.value=!1,t.nextTick(()=>e(r)))};return{isComposing:n,handleComposition:e=>{"compositionend"===e.type?s(e):r(e)},handleCompositionStart:e=>{null==i||i("compositionstart",e),n.value=!0},handleCompositionUpdate:r,handleCompositionEnd:s}}({emit:n,afterComposition:$}),J=()=>{V(),x.value=!x.value,setTimeout(G)},Q=e=>{v.value=!1,n("mouseleave",e)},ee=e=>{v.value=!0,n("mouseenter",e)},te=e=>{n("keydown",e)},ie=()=>{n(mM,""),n(gM,""),n("clear"),n(_M,"")};return t.watch(()=>r.modelValue,()=>{var e;t.nextTick(()=>j()),r.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"change").catch(e=>{}))}),t.watch(O,()=>W()),t.watch(()=>r.type,async()=>{await t.nextTick(),W(),j()}),t.onMounted(()=>{!r.formatter&&r.parser,W(),t.nextTick(j)}),i({input:_,textarea:y,ref:E,textareaStyle:L,autosize:t.toRef(r,"autosize"),isComposing:X,focus:()=>{var e;return null==(e=E.value)?void 0:e.focus()},blur:()=>{var e;return null==(e=E.value)?void 0:e.blur()},select:()=>{var e;null==(e=E.value)||e.select()},clear:ie,resizeTextarea:j}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(l),{[t.unref(m).bm("group","append")]:e.$slots.append,[t.unref(m).bm("group","prepend")]:e.$slots.prepend}]),style:t.normalizeStyle(t.unref(B)),onMouseenter:ee,onMouseleave:Q},[t.createCommentVNode(" input "),"textarea"!==e.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createCommentVNode(" prepend slot "),e.$slots.prepend?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(m).be("group","prepend"))},[t.renderSlot(e.$slots,"prepend")],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref_key:"wrapperRef",ref:A,class:t.normalizeClass(t.unref(c))},[t.createCommentVNode(" prefix slot "),e.$slots.prefix||e.prefixIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(t.unref(m).e("prefix"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("prefix-inner"))},[t.renderSlot(e.$slots,"prefix"),e.prefixIcon?(t.openBlock(),t.createBlock(t.unref(SM),{key:0,class:t.normalizeClass(t.unref(m).e("icon"))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.prefixIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("input",t.mergeProps({id:t.unref(d),ref_key:"input",ref:_,class:t.unref(m).e("inner")},t.unref(o),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?x.value?"text":"password":e.type,disabled:t.unref(f),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:t.unref(Z),onCompositionupdate:t.unref(K),onCompositionend:t.unref(Y),onInput:$,onChange:q,onKeydown:te}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),t.createCommentVNode(" suffix slot "),t.unref(U)?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(t.unref(m).e("suffix"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("suffix-inner"))},[t.unref(D)&&t.unref(k)&&t.unref(F)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"suffix"),e.suffixIcon?(t.openBlock(),t.createBlock(t.unref(SM),{key:0,class:t.normalizeClass(t.unref(m).e("icon"))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.suffixIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],64)),t.unref(D)?(t.openBlock(),t.createBlock(t.unref(SM),{key:1,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("clear")]),onMousedown:t.withModifiers(t.unref(FT),["prevent"]),onClick:ie},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onMousedown"])):t.createCommentVNode("v-if",!0),t.unref(k)?(t.openBlock(),t.createBlock(t.unref(SM),{key:2,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("password")]),onClick:J},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(P))))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),t.unref(F)?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(t.unref(m).e("count"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("count-inner"))},t.toDisplayString(t.unref(N))+" / "+t.toDisplayString(e.maxlength),3)],2)):t.createCommentVNode("v-if",!0),t.unref(M)&&t.unref(R)&&t.unref(I)?(t.openBlock(),t.createBlock(t.unref(SM),{key:4,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("validateIcon"),t.unref(m).is("loading","validating"===t.unref(M))])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(R))))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],2)):t.createCommentVNode("v-if",!0)],2),t.createCommentVNode(" append slot "),e.$slots.append?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(t.unref(m).be("group","append"))},[t.renderSlot(e.$slots,"append")],2)):t.createCommentVNode("v-if",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" textarea "),t.createElementVNode("textarea",t.mergeProps({id:t.unref(d),ref_key:"textarea",ref:y,class:[t.unref(g).e("inner"),t.unref(m).is("focus",t.unref(T))]},t.unref(o),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:t.unref(f),readonly:e.readonly,autocomplete:e.autocomplete,style:t.unref(L),"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:t.unref(Z),onCompositionupdate:t.unref(K),onCompositionend:t.unref(Y),onInput:$,onFocus:t.unref(S),onBlur:t.unref(C),onChange:q,onKeydown:te}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),t.unref(F)?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(b.value),class:t.normalizeClass(t.unref(m).e("count"))},t.toDisplayString(t.unref(N))+" / "+t.toDisplayString(e.maxlength),7)):t.createCommentVNode("v-if",!0)],64))],38))}}),[["__file","input.vue"]])),hR=Symbol("popper"),dR=Symbol("popperContent"),pR=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],fR=hM({role:{type:String,values:pR,default:"tooltip"}}),mR=t.defineComponent({name:"ElPopper",inheritAttrs:!1});var gR=yM(t.defineComponent({...mR,props:fR,setup(e,{expose:i}){const n=e,r={triggerRef:t.ref(),popperInstanceRef:t.ref(),contentRef:t.ref(),referenceRef:t.ref(),role:t.computed(()=>n.role)};return i(r),t.provide(hR,r),(e,i)=>t.renderSlot(e.$slots,"default")}}),[["__file","popper.vue"]]);const _R=t.defineComponent({name:"ElPopperArrow",inheritAttrs:!1});var yR=yM(t.defineComponent({..._R,setup(e,{expose:i}){const n=kT("popper"),{arrowRef:r,arrowStyle:s}=t.inject(dR,void 0);return t.onBeforeUnmount(()=>{r.value=void 0}),i({arrowRef:r}),(e,i)=>(t.openBlock(),t.createElementBlock("span",{ref_key:"arrowRef",ref:r,class:t.normalizeClass(t.unref(n).e("arrow")),style:t.normalizeStyle(t.unref(s)),"data-popper-arrow":""},null,6))}}),[["__file","arrow.vue"]]);const vR=hM({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),xR=Symbol("elForwardRef"),bR=t.defineComponent({name:"ElOnlyChild",setup(e,{slots:i,attrs:n}){var r;const s=t.inject(xR),o=(a=null!=(r=null==s?void 0:s.setForwardRef)?r:FT,{mounted(e){a(e)},updated(e){a(e)},unmounted(){a(null)}});var a;return()=>{var e;const r=null==(e=i.default)?void 0:e.call(i,n);if(!r)return null;const[s,a]=wR(r);return s?t.withDirectives(t.cloneVNode(s,n),[[o]]):null}}});function wR(e){if(!e)return[null,0];const i=e,n=i.filter(e=>e.type!==t.Comment).length;for(const r of i){if(jT(r))switch(r.type){case t.Comment:continue;case t.Text:case"svg":return[ER(r),n];case t.Fragment:return wR(r.children);default:return[r,n]}return[ER(r),n]}return[null,0]}function ER(e){const i=kT("only-child");return t.createVNode("span",{class:i.e("content")},[e])}const AR=t.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1});var TR=yM(t.defineComponent({...AR,props:vR,setup(e,{expose:i}){const n=e,{role:r,triggerRef:s}=t.inject(hR,void 0);var o;o=s,t.provide(xR,{setForwardRef:e=>{o.value=e}});const a=t.computed(()=>c.value?n.id:void 0),l=t.computed(()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0}),c=t.computed(()=>{if(r&&"tooltip"!==r.value)return r.value}),u=t.computed(()=>c.value?`${n.open}`:void 0);let h;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return t.onMounted(()=>{t.watch(()=>n.virtualRef,e=>{e&&(s.value=kI(e))},{immediate:!0}),t.watch(s,(e,i)=>{null==h||h(),h=void 0,xI(e)&&(d.forEach(t=>{var r;const s=n[t];s&&(e.addEventListener(t.slice(2).toLowerCase(),s,["onFocus","onBlur"].includes(t)),null==(r=null==i?void 0:i.removeEventListener)||r.call(i,t.slice(2).toLowerCase(),s,["onFocus","onBlur"].includes(t)))}),aR(e)&&(h=t.watch([a,l,c,u],t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((i,n)=>{pI(t[n])?e.removeAttribute(i):e.setAttribute(i,t[n])})},{immediate:!0}))),xI(i)&&aR(i)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(e=>i.removeAttribute(e))},{immediate:!0})}),t.onBeforeUnmount(()=>{if(null==h||h(),h=void 0,s.value&&xI(s.value)){const e=s.value;d.forEach(t=>{const i=n[t];i&&e.removeEventListener(t.slice(2).toLowerCase(),i,["onFocus","onBlur"].includes(t))}),s.value=void 0}}),i({triggerRef:s}),(e,i)=>e.virtualTriggering?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(t.unref(bR),t.mergeProps({key:0},e.$attrs,{"aria-controls":t.unref(a),"aria-describedby":t.unref(l),"aria-expanded":t.unref(u),"aria-haspopup":t.unref(c)}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),[["__file","trigger.vue"]]);const SR="focus-trap.focus-after-trapped",CR="focus-trap.focus-after-released",IR={cancelable:!0,bubbles:!1},MR={cancelable:!0,bubbles:!1},RR="focusAfterTrapped",PR="focusAfterReleased",BR=Symbol("elFocusTrap"),LR=t.ref(),OR=t.ref(0),DR=t.ref(0);let kR=0;const FR=e=>{const t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t},NR=(e,t)=>{for(const i of e)if(!zR(i,t))return i},zR=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},UR=(e,t)=>{if(e){const i=document.activeElement;lR(e,{preventScroll:!0}),DR.value=window.performance.now(),e!==i&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function VR(e,t){const i=[...e],n=e.indexOf(t);return-1!==n&&i.splice(n,1),i}const GR=(()=>{let e=[];return{push:t=>{const i=e[0];i&&t!==i&&i.pause(),e=VR(e,t),e.unshift(t)},remove:t=>{var i,n;e=VR(e,t),null==(n=null==(i=e[0])?void 0:i.resume)||n.call(i)}}})(),jR=()=>{LR.value="pointer",OR.value=window.performance.now()},HR=()=>{LR.value="keyboard",OR.value=window.performance.now()},WR=e=>new CustomEvent("focus-trap.focusout-prevented",{...MR,detail:e}),$R={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",numpadEnter:"NumpadEnter"};let qR=[];const XR=e=>{e.code===$R.esc&&qR.forEach(t=>t(e))},ZR=t.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[RR,PR,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:i}){const n=t.ref();let r,s;const{focusReason:o}=(t.onMounted(()=>{0===kR&&(document.addEventListener("mousedown",jR),document.addEventListener("touchstart",jR),document.addEventListener("keydown",HR)),kR++}),t.onBeforeUnmount(()=>{kR--,kR<=0&&(document.removeEventListener("mousedown",jR),document.removeEventListener("touchstart",jR),document.removeEventListener("keydown",HR))}),{focusReason:LR,lastUserFocusTimestamp:OR,lastAutomatedFocusTimestamp:DR});var a;a=t=>{e.trapped&&!l.paused&&i("release-requested",t)},t.onMounted(()=>{0===qR.length&&document.addEventListener("keydown",XR),PI&&qR.push(a)}),t.onBeforeUnmount(()=>{qR=qR.filter(e=>e!==a),0===qR.length&&PI&&document.removeEventListener("keydown",XR)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=t=>{if(!e.loop&&!e.trapped)return;if(l.paused)return;const{code:n,altKey:r,ctrlKey:s,metaKey:a,currentTarget:c,shiftKey:u}=t,{loop:h}=e,d=n===$R.tab&&!r&&!s&&!a,p=document.activeElement;if(d&&p){const e=c,[n,r]=(e=>{const t=FR(e);return[NR(t,e),NR(t.reverse(),e)]})(e);if(n&&r)if(u||p!==r){if(u&&[n,e].includes(p)){const e=WR({focusReason:o.value});i("focusout-prevented",e),e.defaultPrevented||(t.preventDefault(),h&&UR(r,!0))}}else{const e=WR({focusReason:o.value});i("focusout-prevented",e),e.defaultPrevented||(t.preventDefault(),h&&UR(n,!0))}else if(p===e){const e=WR({focusReason:o.value});i("focusout-prevented",e),e.defaultPrevented||t.preventDefault()}}};t.provide(BR,{focusTrapRef:n,onKeydown:c}),t.watch(()=>e.focusTrapEl,e=>{e&&(n.value=e)},{immediate:!0}),t.watch([n],([e],[t])=>{e&&(e.addEventListener("keydown",c),e.addEventListener("focusin",d),e.addEventListener("focusout",p)),t&&(t.removeEventListener("keydown",c),t.removeEventListener("focusin",d),t.removeEventListener("focusout",p))});const u=e=>{i(RR,e)},h=e=>i(PR,e),d=o=>{const a=t.unref(n);if(!a)return;const c=o.target,u=o.relatedTarget,h=c&&a.contains(c);if(!e.trapped){u&&a.contains(u)||(r=u)}h&&i("focusin",o),l.paused||e.trapped&&(h?s=c:UR(s,!0))},p=r=>{const a=t.unref(n);if(!l.paused&&a)if(e.trapped){const t=r.relatedTarget;pI(t)||a.contains(t)||setTimeout(()=>{if(!l.paused&&e.trapped){const e=WR({focusReason:o.value});i("focusout-prevented",e),e.defaultPrevented||UR(s,!0)}},0)}else{const e=r.target;e&&a.contains(e)||i("focusout",r)}};async function f(){await t.nextTick();const i=t.unref(n);if(i){GR.push(l);const n=i.contains(document.activeElement)?r:document.activeElement;r=n;if(!i.contains(n)){const r=new Event(SR,IR);i.addEventListener(SR,u),i.dispatchEvent(r),r.defaultPrevented||t.nextTick(()=>{let t=e.focusStartEl;GT(t)||(UR(t),document.activeElement!==t&&(t="first")),"first"===t&&((e,t=!1)=>{const i=document.activeElement;for(const n of e)if(UR(n,t),document.activeElement!==i)return})(FR(i),!0),document.activeElement!==n&&"container"!==t||UR(i)})}}}function m(){const e=t.unref(n);if(e){e.removeEventListener(SR,u);const t=new CustomEvent(CR,{...IR,detail:{focusReason:o.value}});e.addEventListener(CR,h),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=o.value&&OR.value>DR.value&&!e.contains(document.activeElement)||UR(null!=r?r:document.body),e.removeEventListener(CR,h),GR.remove(l),r=null,s=null}}return t.onMounted(()=>{e.trapped&&f(),t.watch(()=>e.trapped,e=>{e?f():m()})}),t.onBeforeUnmount(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",c),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",p),n.value=void 0)}),{onKeydown:c}}});var KR=yM(ZR,[["render",function(e,i,n,r,s,o){return t.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]),YR="top",JR="bottom",QR="right",eP="left",tP="auto",iP=[YR,JR,QR,eP],nP="start",rP="end",sP="viewport",oP="popper",aP=iP.reduce(function(e,t){return e.concat([t+"-"+nP,t+"-"+rP])},[]),lP=[].concat(iP,[tP]).reduce(function(e,t){return e.concat([t,t+"-"+nP,t+"-"+rP])},[]),cP=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function uP(e){return e?(e.nodeName||"").toLowerCase():null}function hP(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dP(e){return e instanceof hP(e).Element||e instanceof Element}function pP(e){return e instanceof hP(e).HTMLElement||e instanceof HTMLElement}function fP(e){return"undefined"!=typeof ShadowRoot&&(e instanceof hP(e).ShadowRoot||e instanceof ShadowRoot)}var mP={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];!pP(r)||!uP(r)||(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});!pP(n)||!uP(n)||(Object.assign(n.style,s),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function gP(e){return e.split("-")[0]}var _P=Math.max,yP=Math.min,vP=Math.round;function xP(e,t){void 0===t&&(t=!1);var i=e.getBoundingClientRect(),n=1,r=1;if(pP(e)&&t){var s=e.offsetHeight,o=e.offsetWidth;o>0&&(n=vP(i.width)/o||1),s>0&&(r=vP(i.height)/s||1)}return{width:i.width/n,height:i.height/r,top:i.top/r,right:i.right/n,bottom:i.bottom/r,left:i.left/n,x:i.left/n,y:i.top/r}}function bP(e){var t=xP(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function wP(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&fP(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function EP(e){return hP(e).getComputedStyle(e)}function AP(e){return["table","td","th"].indexOf(uP(e))>=0}function TP(e){return((dP(e)?e.ownerDocument:e.document)||window.document).documentElement}function SP(e){return"html"===uP(e)?e:e.assignedSlot||e.parentNode||(fP(e)?e.host:null)||TP(e)}function CP(e){return pP(e)&&"fixed"!==EP(e).position?e.offsetParent:null}function IP(e){for(var t=hP(e),i=CP(e);i&&AP(i)&&"static"===EP(i).position;)i=CP(i);return i&&("html"===uP(i)||"body"===uP(i)&&"static"===EP(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&pP(e)&&"fixed"===EP(e).position)return null;var i=SP(e);for(fP(i)&&(i=i.host);pP(i)&&["html","body"].indexOf(uP(i))<0;){var n=EP(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function MP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function RP(e,t,i){return _P(e,yP(t,i))}function PP(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function BP(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}var LP={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,r=e.options,s=i.elements.arrow,o=i.modifiersData.popperOffsets,a=gP(i.placement),l=MP(a),c=[eP,QR].indexOf(a)>=0?"height":"width";if(s&&o){var u=function(e,t){return PP("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:BP(e,iP))}(r.padding,i),h=bP(s),d="y"===l?YR:eP,p="y"===l?JR:QR,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=IP(s),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,v=u[d],x=_-h[c]-u[p],b=_/2-h[c]/2+y,w=RP(v,b,x),E=l;i.modifiersData[n]=((t={})[E]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"==typeof n&&!(n=t.elements.popper.querySelector(n))||!wP(t.elements.popper,n)||(t.elements.arrow=n))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function OP(e){return e.split("-")[1]}var DP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kP(e){var t,i=e.popper,n=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=o.x,p=void 0===d?0:d,f=o.y,m=void 0===f?0:f,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var _=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=eP,x=YR,b=window;if(c){var w=IP(i),E="clientHeight",A="clientWidth";if(w===hP(i)&&("static"!==EP(w=TP(i)).position&&"absolute"===a&&(E="scrollHeight",A="scrollWidth")),r===YR||(r===eP||r===QR)&&s===rP)x=JR,m-=(h&&w===b&&b.visualViewport?b.visualViewport.height:w[E])-n.height,m*=l?1:-1;if(r===eP||(r===YR||r===JR)&&s===rP)v=QR,p-=(h&&w===b&&b.visualViewport?b.visualViewport.width:w[A])-n.width,p*=l?1:-1}var T,S=Object.assign({position:a},c&&DP),C=!0===u?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:vP(t*n)/n||0,y:vP(i*n)/n||0}}({x:p,y:m}):{x:p,y:m};return p=C.x,m=C.y,l?Object.assign({},S,((T={})[x]=y?"0":"",T[v]=_?"0":"",T.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T)):Object.assign({},S,((t={})[x]=y?m+"px":"",t[v]=_?p+"px":"",t.transform="",t))}var FP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,s=i.adaptive,o=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:gP(t.placement),variation:OP(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,kP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,kP(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},NP={passive:!0};var zP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,s=void 0===r||r,o=n.resize,a=void 0===o||o,l=hP(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",i.update,NP)}),a&&l.addEventListener("resize",i.update,NP),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",i.update,NP)}),a&&l.removeEventListener("resize",i.update,NP)}},data:{}},UP={left:"right",right:"left",bottom:"top",top:"bottom"};function VP(e){return e.replace(/left|right|bottom|top/g,function(e){return UP[e]})}var GP={start:"end",end:"start"};function jP(e){return e.replace(/start|end/g,function(e){return GP[e]})}function HP(e){var t=hP(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function WP(e){return xP(TP(e)).left+HP(e).scrollLeft}function $P(e){var t=EP(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function qP(e){return["html","body","#document"].indexOf(uP(e))>=0?e.ownerDocument.body:pP(e)&&$P(e)?e:qP(SP(e))}function XP(e,t){var i;void 0===t&&(t=[]);var n=qP(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),s=hP(n),o=r?[s].concat(s.visualViewport||[],$P(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(XP(SP(o)))}function ZP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function KP(e,t){return t===sP?ZP(function(e){var t=hP(e),i=TP(e),n=t.visualViewport,r=i.clientWidth,s=i.clientHeight,o=0,a=0;return n&&(r=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,a=n.offsetTop)),{width:r,height:s,x:o+WP(e),y:a}}(e)):dP(t)?function(e){var t=xP(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ZP(function(e){var t,i=TP(e),n=HP(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=_P(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=_P(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+WP(e),l=-n.scrollTop;return"rtl"===EP(r||i).direction&&(a+=_P(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}(TP(e)))}function YP(e,t,i){var n="clippingParents"===t?function(e){var t=XP(SP(e)),i=["absolute","fixed"].indexOf(EP(e).position)>=0&&pP(e)?IP(e):e;return dP(i)?t.filter(function(e){return dP(e)&&wP(e,i)&&"body"!==uP(e)}):[]}(e):[].concat(t),r=[].concat(n,[i]),s=r[0],o=r.reduce(function(t,i){var n=KP(e,i);return t.top=_P(n.top,t.top),t.right=yP(n.right,t.right),t.bottom=yP(n.bottom,t.bottom),t.left=_P(n.left,t.left),t},KP(e,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function JP(e){var t,i=e.reference,n=e.element,r=e.placement,s=r?gP(r):null,o=r?OP(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case YR:t={x:a,y:i.y-n.height};break;case JR:t={x:a,y:i.y+i.height};break;case QR:t={x:i.x+i.width,y:l};break;case eP:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=s?MP(s):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case nP:t[c]=t[c]-(i[u]/2-n[u]/2);break;case rP:t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function QP(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=void 0===n?e.placement:n,s=i.boundary,o=void 0===s?"clippingParents":s,a=i.rootBoundary,l=void 0===a?sP:a,c=i.elementContext,u=void 0===c?oP:c,h=i.altBoundary,d=void 0!==h&&h,p=i.padding,f=void 0===p?0:p,m=PP("number"!=typeof f?f:BP(f,iP)),g=u===oP?"reference":oP,_=e.rects.popper,y=e.elements[d?g:u],v=YP(dP(y)?y:y.contextElement||TP(e.elements.popper),o,l),x=xP(e.elements.reference),b=JP({reference:x,element:_,placement:r}),w=ZP(Object.assign({},_,b)),E=u===oP?w:x,A={top:v.top-E.top+m.top,bottom:E.bottom-v.bottom+m.bottom,left:v.left-E.left+m.left,right:E.right-v.right+m.right},T=e.modifiersData.offset;if(u===oP&&T){var S=T[r];Object.keys(A).forEach(function(e){var t=[QR,JR].indexOf(e)>=0?1:-1,i=[YR,JR].indexOf(e)>=0?"y":"x";A[e]+=S[i]*t})}return A}var eB={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,u=i.boundary,h=i.rootBoundary,d=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,g=t.options.placement,_=gP(g),y=l||(_===g||!f?[VP(g)]:function(e){if(gP(e)===tP)return[];var t=VP(e);return[jP(e),t,jP(t)]}(g)),v=[g].concat(y).reduce(function(e,i){return e.concat(gP(i)===tP?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=i.boundary,s=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?lP:l,u=OP(n),h=u?a?aP:aP.filter(function(e){return OP(e)===u}):iP,d=h.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=h);var p=d.reduce(function(t,i){return t[i]=QP(e,{placement:i,boundary:r,rootBoundary:s,padding:o})[gP(i)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:i,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)},[]),x=t.rects.reference,b=t.rects.popper,w=new Map,E=!0,A=v[0],T=0;T<v.length;T++){var S=v[T],C=gP(S),I=OP(S)===nP,M=[YR,JR].indexOf(C)>=0,R=M?"width":"height",P=QP(t,{placement:S,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),B=M?I?QR:eP:I?JR:YR;x[R]>b[R]&&(B=VP(B));var L=VP(B),O=[];if(s&&O.push(P[C]<=0),a&&O.push(P[B]<=0,P[L]<=0),O.every(function(e){return e})){A=S,E=!1;break}w.set(S,O)}if(E)for(var D=function(e){var t=v.find(function(t){var i=w.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},k=f?3:1;k>0;k--){if("break"===D(k))break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function tB(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function iB(e){return[YR,QR,JR,eP].some(function(t){return e[t]>=0})}var nB={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=QP(t,{elementContext:"reference"}),a=QP(t,{altBoundary:!0}),l=tB(o,n),c=tB(a,r,s),u=iB(l),h=iB(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};var rB={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,s=void 0===r?[0,0]:r,o=lP.reduce(function(e,i){return e[i]=function(e,t,i){var n=gP(e),r=[eP,YR].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[eP,QR].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,t.rects,s),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}};var sB={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=JP({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var oB={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,h=i.padding,d=i.tether,p=void 0===d||d,f=i.tetherOffset,m=void 0===f?0:f,g=QP(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),_=gP(t.placement),y=OP(t.placement),v=!y,x=MP(_),b=function(e){return"x"===e?"y":"x"}(x),w=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(w){if(s){var M,R="y"===x?YR:eP,P="y"===x?JR:QR,B="y"===x?"height":"width",L=w[x],O=L+g[R],D=L-g[P],k=p?-A[B]/2:0,F=y===nP?E[B]:A[B],N=y===nP?-A[B]:-E[B],z=t.elements.arrow,U=p&&z?bP(z):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=V[R],j=V[P],H=RP(0,E[B],U[B]),W=v?E[B]/2-k-H-G-S.mainAxis:F-H-G-S.mainAxis,$=v?-E[B]/2+k+H+j+S.mainAxis:N+H+j+S.mainAxis,q=t.elements.arrow&&IP(t.elements.arrow),X=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,Z=null!=(M=null==C?void 0:C[x])?M:0,K=L+$-Z,Y=RP(p?yP(O,L+W-Z-X):O,L,p?_P(D,K):D);w[x]=Y,I[x]=Y-L}if(a){var J,Q="x"===x?YR:eP,ee="x"===x?JR:QR,te=w[b],ie="y"===b?"height":"width",ne=te+g[Q],re=te-g[ee],se=-1!==[YR,eP].indexOf(_),oe=null!=(J=null==C?void 0:C[b])?J:0,ae=se?ne:te-E[ie]-A[ie]-oe+S.altAxis,le=se?te+E[ie]+A[ie]-oe-S.altAxis:re,ce=p&&se?function(e,t,i){var n=RP(e,t,i);return n>i?i:n}(ae,te,le):RP(p?ae:ne,te,p?le:re);w[b]=ce,I[b]=ce-te}t.modifiersData[n]=I}},requiresIfExists:["offset"]};function aB(e,t,i){void 0===i&&(i=!1);var n=pP(t),r=pP(t)&&function(e){var t=e.getBoundingClientRect(),i=vP(t.width)/e.offsetWidth||1,n=vP(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),s=TP(t),o=xP(e,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&(("body"!==uP(t)||$P(s))&&(a=function(e){return e!==hP(e)&&pP(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):HP(e)}(t)),pP(t)?((l=xP(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=WP(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function lB(e){var t=new Map,i=new Set,n=[];function r(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var n=t.get(e);n&&r(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||r(e)}),n}function cB(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}var uB={placement:"bottom",modifiers:[],strategy:"absolute"};function hB(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function dB(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,s=void 0===r?uB:r;return function(e,t,i){void 0===i&&(i=s);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},uB,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],a=!1,l={state:r,setOptions:function(i){var a="function"==typeof i?i(r.options):i;c(),r.options=Object.assign({},s,r.options,a),r.scrollParents={reference:dP(e)?XP(e):e.contextElement?XP(e.contextElement):[],popper:XP(t)};var u=function(e){var t=lB(e);return cP.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}(function(e){var t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,r.options.modifiers)));return r.orderedModifiers=u.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var a=s({state:r,name:t,instance:l,options:n}),c=function(){};o.push(a||c)}}),l.update()},forceUpdate:function(){if(!a){var e=r.elements,t=e.reference,i=e.popper;if(hB(t,i)){r.rects={reference:aB(t,IP(i),"fixed"===r.options.strategy),popper:bP(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var s=r.orderedModifiers[n],o=s.fn,c=s.options,u=void 0===c?{}:c,h=s.name;"function"==typeof o&&(r=o({state:r,options:u,name:h,instance:l})||r)}else r.reset=!1,n=-1}}},update:cB(function(){return new Promise(function(e){l.forceUpdate(),e(r)})}),destroy:function(){c(),a=!0}};if(!hB(e,t))return l;function c(){o.forEach(function(e){return e()}),o=[]}return l.setOptions(i).then(function(e){!a&&i.onFirstUpdate&&i.onFirstUpdate(e)}),l}}dB(),dB({defaultModifiers:[zP,sB,FP,mP]});var pB=dB({defaultModifiers:[zP,sB,FP,mP,rB,eB,oB,LP,nB]});const fB=hM({arrowOffset:{type:Number,default:5}}),mB=hM({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:lP,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),gB=hM({...mB,...fB,id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...HM(["ariaLabel"])}),_B={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},yB=(e,t=[])=>{const{placement:i,strategy:n,popperOptions:r}=e,s={placement:i,strategy:n,...r,modifiers:[...vB(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(s,null==r?void 0:r.modifiers),s};function vB(e){const{offset:t,gpuAcceleration:i,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:i}}]}const xB=(e,i,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements),i=hI(t.map(t=>[t,e.styles[t]||{}])),n=hI(t.map(t=>[t,e.attributes[t]]));return{styles:i,attributes:n}}(e);Object.assign(a.value,t)},requires:["computeStyles"]},s=t.computed(()=>{const{onFirstUpdate:e,placement:i,strategy:s,modifiers:o}=t.unref(n);return{onFirstUpdate:e,placement:i||"bottom",strategy:s||"absolute",modifiers:[...o||[],r,{name:"applyStyles",enabled:!1}]}}),o=t.shallowRef(),a=t.ref({styles:{popper:{position:t.unref(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return t.watch(s,e=>{const i=t.unref(o);i&&i.setOptions(e)},{deep:!0}),t.watch([e,i],([e,i])=>{l(),e&&i&&(o.value=pB(e,i,t.unref(s)))}),t.onBeforeUnmount(()=>{l()}),{state:t.computed(()=>{var e;return{...(null==(e=t.unref(o))?void 0:e.state)||{}}}),styles:t.computed(()=>t.unref(a).styles),attributes:t.computed(()=>t.unref(a).attributes),update:()=>{var e;return null==(e=t.unref(o))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=t.unref(o))?void 0:e.forceUpdate()},instanceRef:t.computed(()=>t.unref(o))}};const bB=e=>{const{popperInstanceRef:i,contentRef:n,triggerRef:r,role:s}=t.inject(hR,void 0),o=t.ref(),a=t.computed(()=>e.arrowOffset),l=t.computed(()=>({name:"eventListeners",enabled:!!e.visible})),c=t.computed(()=>{var e;const i=t.unref(o),n=null!=(e=t.unref(a))?e:0;return{name:"arrow",enabled:(r=i,!(void 0===r)),options:{element:i,padding:n}};var r}),u=t.computed(()=>({onFirstUpdate:()=>{m()},...yB(e,[t.unref(c),t.unref(l)])})),h=t.computed(()=>(e=>{if(PI)return kI(e)})(e.referenceEl)||t.unref(r)),{attributes:d,state:p,styles:f,update:m,forceUpdate:g,instanceRef:_}=xB(h,n,u);return t.watch(_,e=>i.value=e,{flush:"sync"}),t.onMounted(()=>{t.watch(()=>{var e,i;return null==(i=null==(e=t.unref(h))?void 0:e.getBoundingClientRect)?void 0:i.call(e)},()=>{m()})}),{attributes:d,arrowRef:o,contentRef:n,instanceRef:_,state:p,styles:f,role:s,forceUpdate:g,update:m}},wB=(e,{attributes:i,styles:n,role:r})=>{const{nextZIndex:s}=(()=>{const e=t.getCurrentInstance()?t.inject(iM,eM):eM,i=t.getCurrentInstance()?t.inject(nM,void 0):void 0,n=t.computed(()=>{const e=t.unref(i);return vI(e)?e:2e3}),r=t.computed(()=>n.value+tM.value);return!PI&&t.inject(iM),{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(e.current++,tM.value=e.current,r.value)}})(),o=kT("popper"),a=t.computed(()=>t.unref(i).popper),l=t.ref(vI(e.zIndex)?e.zIndex:s()),c=t.computed(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=t.computed(()=>[{zIndex:t.unref(l)},t.unref(n).popper,e.popperStyle||{}]);return{ariaModal:t.computed(()=>"dialog"===r.value?"false":void 0),arrowStyle:t.computed(()=>t.unref(n).arrow||{}),contentAttrs:a,contentClass:c,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=vI(e.zIndex)?e.zIndex:s()}}},EB=t.defineComponent({name:"ElPopperContent"}),AB=t.defineComponent({...EB,props:gB,emits:_B,setup(e,{expose:i,emit:n}){const r=e,{focusStartRef:s,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:h}=((e,i)=>{const n=t.ref(!1),r=t.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:e=>{var t;"pointer"!==(null==(t=e.detail)?void 0:t.focusReason)&&(r.value="first",i("blur"))},onFocusAfterTrapped:()=>{i("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,i("close")}}})(r,n),{attributes:d,arrowRef:p,contentRef:f,styles:m,instanceRef:g,role:_,update:y}=bB(r),{ariaModal:v,arrowStyle:x,contentAttrs:b,contentClass:w,contentStyle:E,updateZIndex:A}=wB(r,{styles:m,attributes:d,role:_}),T=t.inject(eR,void 0);let S;t.provide(dR,{arrowStyle:x,arrowRef:p}),T&&t.provide(eR,{...T,addInputId:FT,removeInputId:FT});const C=(e=!0)=>{y(),e&&A()},I=()=>{C(!1),r.visible&&r.focusOnShow?o.value=!0:!1===r.visible&&(o.value=!1)};return t.onMounted(()=>{t.watch(()=>r.triggerTargetEl,(e,i)=>{null==S||S(),S=void 0;const n=t.unref(e||f.value),s=t.unref(i||f.value);xI(n)&&(S=t.watch([_,()=>r.ariaLabel,v,()=>r.id],e=>{["role","aria-label","aria-modal","id"].forEach((t,i)=>{pI(e[i])?n.removeAttribute(t):n.setAttribute(t,e[i])})},{immediate:!0})),s!==n&&xI(s)&&["role","aria-label","aria-modal","id"].forEach(e=>{s.removeAttribute(e)})},{immediate:!0}),t.watch(()=>r.visible,I,{immediate:!0})}),t.onBeforeUnmount(()=>{null==S||S(),S=void 0}),i({popperContentRef:f,popperInstanceRef:g,updatePopper:C,contentStyle:E}),(e,i)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps({ref_key:"contentRef",ref:f},t.unref(b),{style:t.unref(E),class:t.unref(w),tabindex:"-1",onMouseenter:t=>e.$emit("mouseenter",t),onMouseleave:t=>e.$emit("mouseleave",t)}),[t.createVNode(t.unref(KR),{trapped:t.unref(o),"trap-on-focus-in":!0,"focus-trap-el":t.unref(f),"focus-start-el":t.unref(s),onFocusAfterTrapped:t.unref(l),onFocusAfterReleased:t.unref(a),onFocusin:t.unref(c),onFocusoutPrevented:t.unref(u),onReleaseRequested:t.unref(h)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var TB=yM(AB,[["__file","content.vue"]]);const SB=wM(gR),CB=Symbol("elTooltip"),IB=hM({to:{type:[String,Object],required:!0},disabled:Boolean}),MB=hM({...IM,...gB,appendTo:{type:IB.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...HM(["ariaLabel"])}),RB=hM({...vR,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[$R.enter,$R.numpadEnter,$R.space]},focusOnTarget:Boolean}),PB=uM({type:Boolean,default:null}),BB=uM({type:Function}),{useModelToggleProps:LB,useModelToggleEmits:OB,useModelToggle:DB}=(e=>{const i=`update:${e}`,n=`onUpdate:${e}`,r=[i];return{useModelToggle:({indicator:r,toggleReason:s,shouldHideWhenRouteChanges:o,shouldProceed:a,onShow:l,onHide:c})=>{const u=t.getCurrentInstance(),{emit:h}=u,d=u.props,p=t.computed(()=>VT(d[n])),f=t.computed(()=>null===d[e]),m=e=>{!0!==r.value&&(r.value=!0,s&&(s.value=e),VT(l)&&l(e))},g=e=>{!1!==r.value&&(r.value=!1,s&&(s.value=e),VT(c)&&c(e))},_=e=>{if(!0===d.disabled||VT(a)&&!a())return;const t=p.value&&PI;t&&h(i,!0),!f.value&&t||m(e)},y=e=>{if(!0===d.disabled||!PI)return;const t=p.value&&PI;t&&h(i,!1),!f.value&&t||g(e)},v=e=>{yI(e)&&(d.disabled&&e?p.value&&h(i,!1):r.value!==e&&(e?m():g()))};return t.watch(()=>d[e],v),o&&void 0!==u.appContext.config.globalProperties.$route&&t.watch(()=>({...u.proxy.$route}),()=>{o.value&&r.value&&y()}),t.onMounted(()=>{v(d[e])}),{hide:y,show:_,toggle:()=>{r.value?y():_()},hasUpdateHandler:p}},useModelToggleProps:{[e]:PB,[n]:BB},useModelToggleEmits:r}})("visible"),kB=hM({...fR,...LB,...MB,...RB,...fB,showArrow:{type:Boolean,default:!0}}),FB=[...OB,"before-show","before-hide","show","hide","open","close"],NB=(e,i,n)=>r=>{((e,t)=>UT(e)?e.includes(t):e===t)(t.unref(e),i)&&n(r)},zB=(e,t,{checkForDefaultPrevented:i=!0}={})=>n=>{const r=null==e?void 0:e(n);if(!1===i||!r)return null==t?void 0:t(n)},UB=t.defineComponent({name:"ElTooltipTrigger"}),VB=t.defineComponent({...UB,props:RB,setup(e,{expose:i}){const n=e,r=kT("tooltip"),{controlled:s,id:o,open:a,onOpen:l,onClose:c,onToggle:u}=t.inject(CB,void 0),h=t.ref(null),d=()=>{if(t.unref(s)||n.disabled)return!0},p=t.toRef(n,"trigger"),f=zB(d,NB(p,"hover",e=>{l(e),n.focusOnTarget&&e.target&&t.nextTick(()=>{lR(e.target,{preventScroll:!0})})})),m=zB(d,NB(p,"hover",c)),g=zB(d,NB(p,"click",e=>{0===e.button&&u(e)})),_=zB(d,NB(p,"focus",l)),y=zB(d,NB(p,"focus",c)),v=zB(d,NB(p,"contextmenu",e=>{e.preventDefault(),u(e)})),x=zB(d,e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),u(e))});return i({triggerRef:h}),(e,i)=>(t.openBlock(),t.createBlock(t.unref(TR),{id:t.unref(o),"virtual-ref":e.virtualRef,open:t.unref(a),"virtual-triggering":e.virtualTriggering,class:t.normalizeClass(t.unref(r).e("trigger")),onBlur:t.unref(y),onClick:t.unref(g),onContextmenu:t.unref(v),onFocus:t.unref(_),onMouseenter:t.unref(f),onMouseleave:t.unref(m),onKeydown:t.unref(x)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var GB=yM(VB,[["__file","trigger.vue"]]);const jB=wM(yM(t.defineComponent({__name:"teleport",props:IB,setup:e=>(e,i)=>e.disabled?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createBlock(t.Teleport,{key:1,to:e.to},[t.renderSlot(e.$slots,"default")],8,["to"]))}),[["__file","teleport.vue"]])),HB=()=>{const e=DT(),i=YM(),n=t.computed(()=>`${e.value}-popper-container-${i.prefix}`),r=t.computed(()=>`#${n.value}`);return{id:n,selector:r}},WB=()=>{const{id:e,selector:i}=HB();return t.onBeforeMount(()=>{PI&&(document.body.querySelector(i.value)||(e=>{const t=document.createElement("div");t.id=e,document.body.appendChild(t)})(e.value))}),{id:e,selector:i}},$B=t.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),qB=t.defineComponent({...$B,props:MB,setup(e,{expose:i}){const n=e,{selector:r}=HB(),s=kT("tooltip"),o=t.ref(),a=RI(()=>{var e;return null==(e=o.value)?void 0:e.popperContentRef});let l;const{controlled:c,id:u,open:h,trigger:d,onClose:p,onOpen:f,onShow:m,onHide:g,onBeforeShow:_,onBeforeHide:y}=t.inject(CB,void 0),v=t.computed(()=>n.transition||`${s.namespace.value}-fade-in-linear`),x=t.computed(()=>n.persistent);t.onBeforeUnmount(()=>{null==l||l()});const b=t.computed(()=>!!t.unref(x)||t.unref(h)),w=t.computed(()=>!n.disabled&&t.unref(h)),E=t.computed(()=>n.appendTo||r.value),A=t.computed(()=>{var e;return null!=(e=n.style)?e:{}}),T=t.ref(!0),S=()=>{g(),O()&&lR(document.body,{preventScroll:!0}),T.value=!0},C=()=>{if(t.unref(c))return!0},I=zB(C,()=>{n.enterable&&"hover"===t.unref(d)&&f()}),M=zB(C,()=>{"hover"===t.unref(d)&&p()}),R=()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.updatePopper)||t.call(e),null==_||_()},P=()=>{null==y||y()},B=()=>{m()},L=()=>{n.virtualTriggering||p()},O=e=>{var t;const i=null==(t=o.value)?void 0:t.popperContentRef,n=(null==e?void 0:e.relatedTarget)||document.activeElement;return null==i?void 0:i.contains(n)};return t.watch(()=>t.unref(h),e=>{e?(T.value=!1,l=function(e,t,i={}){const{window:n=FI,ignore:r=[],capture:s=!0,detectIframe:o=!1}=i;if(!n)return;LI&&!zI&&(zI=!0,Array.from(n.document.body.children).forEach(e=>e.addEventListener("click",BI)));let a=!0;const l=e=>r.some(t=>{if("string"==typeof t)return Array.from(n.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const i=kI(t);return i&&(e.target===i||e.composedPath().includes(i))}}),c=[NI(n,"click",i=>{const n=kI(e);n&&n!==i.target&&!i.composedPath().includes(n)&&(0===i.detail&&(a=!l(i)),a?t(i):a=!0)},{passive:!0,capture:s}),NI(n,"pointerdown",t=>{const i=kI(e);i&&(a=!t.composedPath().includes(i)&&!l(t))},{passive:!0}),o&&NI(n,"blur",i=>{var r;const s=kI(e);"IFRAME"!==(null==(r=n.document.activeElement)?void 0:r.tagName)||(null==s?void 0:s.contains(n.document.activeElement))||t(i)})].filter(Boolean);return()=>c.forEach(e=>e())}(a,()=>{if(t.unref(c))return;var e;(e=t.unref(d),e||0===e?UT(e)?e:[e]:[]).every(e=>"hover"!==e&&"focus"!==e)&&p()})):null==l||l()},{flush:"post"}),t.watch(()=>n.content,()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.updatePopper)||t.call(e)}),i({contentRef:o,isFocusInsideContent:O}),(e,i)=>(t.openBlock(),t.createBlock(t.unref(jB),{disabled:!e.teleported,to:t.unref(E)},{default:t.withCtx(()=>[t.unref(b)||!T.value?(t.openBlock(),t.createBlock(t.Transition,{key:0,name:t.unref(v),appear:!t.unref(x),onAfterLeave:S,onBeforeEnter:R,onAfterEnter:B,onBeforeLeave:P,persisted:""},{default:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(TB),t.mergeProps({id:t.unref(u),ref_key:"contentRef",ref:o},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":T.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,t.unref(A)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:t.unref(w),"z-index":e.zIndex,onMouseenter:t.unref(I),onMouseleave:t.unref(M),onBlur:L,onClose:t.unref(p)}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"]),[[t.vShow,t.unref(w)]])]),_:3},8,["name","appear"])):t.createCommentVNode("v-if",!0)]),_:3},8,["disabled","to"]))}});var XB=yM(qB,[["__file","content.vue"]]);const ZB=t.defineComponent({name:"ElTooltip"});const KB=wM(yM(t.defineComponent({...ZB,props:kB,emits:FB,setup(e,{expose:i,emit:n}){const r=e;WB();const s=kT("tooltip"),o=JM(),a=t.ref(),l=t.ref(),c=()=>{var e;const i=t.unref(a);i&&(null==(e=i.popperInstanceRef)||e.update())},u=t.ref(!1),h=t.ref(),{show:d,hide:p,hasUpdateHandler:f}=DB({indicator:u,toggleReason:h}),{onOpen:m,onClose:g}=(({showAfter:e,hideAfter:i,autoClose:n,open:r,close:s})=>{const{registerTimeout:o}=CM(),{registerTimeout:a,cancelTimeout:l}=CM();return{onOpen:i=>{o(()=>{r(i);const e=t.unref(n);vI(e)&&e>0&&a(()=>{s(i)},e)},t.unref(e))},onClose:e=>{l(),o(()=>{s(e)},t.unref(i))}}})({showAfter:t.toRef(r,"showAfter"),hideAfter:t.toRef(r,"hideAfter"),autoClose:t.toRef(r,"autoClose"),open:d,close:p}),_=t.computed(()=>yI(r.visible)&&!f.value),y=t.computed(()=>[s.b(),r.popperClass]);t.provide(CB,{controlled:_,id:o,open:t.readonly(u),trigger:t.toRef(r,"trigger"),onOpen:m,onClose:g,onToggle:e=>{t.unref(u)?g(e):m(e)},onShow:()=>{n("show",h.value)},onHide:()=>{n("hide",h.value)},onBeforeShow:()=>{n("before-show",h.value)},onBeforeHide:()=>{n("before-hide",h.value)},updatePopper:c}),t.watch(()=>r.disabled,e=>{e&&u.value&&(u.value=!1)});return t.onDeactivated(()=>u.value&&p()),i({popperRef:a,contentRef:l,isFocusInsideContent:e=>{var t;return null==(t=l.value)?void 0:t.isFocusInsideContent(e)},updatePopper:c,onOpen:m,onClose:g,hide:p}),(e,i)=>(t.openBlock(),t.createBlock(t.unref(SB),{ref_key:"popperRef",ref:a,role:e.role},{default:t.withCtx(()=>[t.createVNode(GB,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:t.withCtx(()=>[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),t.createVNode(XB,{ref_key:"contentRef",ref:l,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":t.unref(y),"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"content",{},()=>[e.rawContent?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,["innerHTML"])):(t.openBlock(),t.createElementBlock("span",{key:1},t.toDisplayString(e.content),1))]),e.showArrow?(t.openBlock(),t.createBlock(t.unref(yR),{key:0})):t.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}}),[["__file","tooltip.vue"]])),YB=({from:e,replacement:i,scope:n,version:r,ref:s,type:o="API"},a)=>{t.watch(()=>t.unref(a),e=>{},{immediate:!0})},JB={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:pM,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...HM(["ariaControls"])},QB={[mM]:e=>GT(e)||vI(e)||yI(e),change:e=>GT(e)||vI(e)||yI(e)},eL=Symbol("checkboxGroupContextKey"),tL=(e,{model:i,isLimitExceeded:n,hasOwnLabel:r,isDisabled:s,isLabeledByFormItem:o})=>{const a=t.inject(eL,void 0),{formItem:l}=tR(),{emit:c}=t.getCurrentInstance();function u(t){var i,n,r,s;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(n=null!=(i=e.trueValue)?i:e.trueLabel)||n:null!=(s=null!=(r=e.falseValue)?r:e.falseLabel)&&s}const h=t.computed(()=>(null==a?void 0:a.validateEvent)||e.validateEvent);return t.watch(()=>e.modelValue,()=>{h.value&&(null==l||l.validate("change").catch(e=>{}))}),{handleChange:function(e){if(n.value)return;const t=e.target;c(gM,u(t.checked),e)},onClickRoot:async function(a){if(!n.value&&!r.value&&!s.value&&o.value){a.composedPath().some(e=>"LABEL"===e.tagName)||(i.value=u([!1,e.falseValue,e.falseLabel].includes(i.value)),await t.nextTick(),function(e,t){c(gM,u(e),t)}(i.value,a))}}}},iL=(e,i)=>{const{formItem:n}=tR(),{model:r,isGroup:s,isLimitExceeded:o}=(e=>{const i=t.ref(!1),{emit:n}=t.getCurrentInstance(),r=t.inject(eL,void 0),s=t.computed(()=>!1===_I(r)),o=t.ref(!1),a=t.computed({get(){var t,n;return s.value?null==(t=null==r?void 0:r.modelValue)?void 0:t.value:null!=(n=e.modelValue)?n:i.value},set(e){var t,l;s.value&&UT(e)?(o.value=void 0!==(null==(t=null==r?void 0:r.max)?void 0:t.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>a.value.length,!1===o.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(mM,e),i.value=e)}});return{model:a,isGroup:s,isLimitExceeded:o}})(e),{isFocused:a,isChecked:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:h,actualValue:d}=((e,i,{model:n})=>{const r=t.inject(eL,void 0),s=t.ref(!1),o=t.computed(()=>bI(e.value)?e.label:e.value),a=t.computed(()=>{const i=n.value;return yI(i)?i:UT(i)?jT(o.value)?i.map(t.toRaw).some(e=>dI(e,o.value)):i.map(t.toRaw).includes(o.value):null!=i?i===e.trueValue||i===e.trueLabel:!!i});return{checkboxButtonSize:rR(t.computed(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}),{prop:!0}),isChecked:a,isFocused:s,checkboxSize:rR(t.computed(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),hasOwnLabel:t.computed(()=>!!i.default||!bI(o.value)),actualValue:o}})(e,i,{model:r}),{isDisabled:p}=(({model:e,isChecked:i})=>{const n=t.inject(eL,void 0),r=t.computed(()=>{var t,r;const s=null==(t=null==n?void 0:n.max)?void 0:t.value,o=null==(r=null==n?void 0:n.min)?void 0:r.value;return!_I(s)&&e.value.length>=s&&!i.value||!_I(o)&&e.value.length<=o&&i.value});return{isDisabled:sR(t.computed(()=>(null==n?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}})({model:r,isChecked:l}),{inputId:f,isLabeledByFormItem:m}=iR(e,{formItemContext:n,disableIdGeneration:h,disableIdManagement:s}),{handleChange:g,onClickRoot:_}=tL(e,{model:r,isLimitExceeded:o,hasOwnLabel:h,isDisabled:p,isLabeledByFormItem:m});var y,v;return e.checked&&(UT(r.value)&&!r.value.includes(d.value)?r.value.push(d.value):r.value=null==(v=null!=(y=e.trueValue)?y:e.trueLabel)||v),YB({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>s.value&&bI(e.value))),YB({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>!!e.trueLabel)),YB({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>!!e.falseLabel)),{inputId:f,isLabeledByFormItem:m,isChecked:l,isDisabled:p,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:h,model:r,actualValue:d,handleChange:g,onClickRoot:_}},nL=t.defineComponent({name:"ElCheckbox"});var rL=yM(t.defineComponent({...nL,props:JB,emits:QB,setup(e){const i=e,n=t.useSlots(),{inputId:r,isLabeledByFormItem:s,isChecked:o,isDisabled:a,isFocused:l,checkboxSize:c,hasOwnLabel:u,model:h,actualValue:d,handleChange:p,onClickRoot:f}=iL(i,n),m=kT("checkbox"),g=t.computed(()=>[m.b(),m.m(c.value),m.is("disabled",a.value),m.is("bordered",i.border),m.is("checked",o.value)]),_=t.computed(()=>[m.e("input"),m.is("disabled",a.value),m.is("checked",o.value),m.is("indeterminate",i.indeterminate),m.is("focus",l.value)]);return(e,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(!t.unref(u)&&t.unref(s)?"span":"label"),{class:t.normalizeClass(t.unref(g)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:t.unref(f)},{default:t.withCtx(()=>{var i,n,s,o;return[t.createElementVNode("span",{class:t.normalizeClass(t.unref(_))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(r),"onUpdate:modelValue":e=>t.isRef(h)?h.value=e:null,class:t.normalizeClass(t.unref(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:t.unref(a),"true-value":null==(n=null!=(i=e.trueValue)?i:e.trueLabel)||n,"false-value":null!=(o=null!=(s=e.falseValue)?s:e.falseLabel)&&o,onChange:t.unref(p),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(h)]]):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,id:t.unref(r),"onUpdate:modelValue":e=>t.isRef(h)?h.value=e:null,class:t.normalizeClass(t.unref(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:t.unref(a),value:t.unref(d),name:e.name,tabindex:e.tabindex,onChange:t.unref(p),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(h)]]),t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("inner"))},null,2)],2),t.unref(u)?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(t.unref(m).e("label"))},[t.renderSlot(e.$slots,"default"),e.$slots.default?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],2)):t.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}}),[["__file","checkbox.vue"]]);const sL=t.defineComponent({name:"ElCheckboxButton"});var oL=yM(t.defineComponent({...sL,props:JB,emits:QB,setup(e){const i=e,n=t.useSlots(),{isFocused:r,isChecked:s,isDisabled:o,checkboxButtonSize:a,model:l,actualValue:c,handleChange:u}=iL(i,n),h=t.inject(eL,void 0),d=kT("checkbox"),p=t.computed(()=>{var e,t,i,n;const r=null!=(t=null==(e=null==h?void 0:h.fill)?void 0:e.value)?t:"";return{backgroundColor:r,borderColor:r,color:null!=(n=null==(i=null==h?void 0:h.textColor)?void 0:i.value)?n:"",boxShadow:r?`-1px 0 0 0 ${r}`:void 0}}),f=t.computed(()=>[d.b("button"),d.bm("button",a.value),d.is("disabled",o.value),d.is("checked",s.value),d.is("focus",r.value)]);return(e,i)=>{var n,a,h,m;return t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(f))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":e=>t.isRef(l)?l.value=e:null,class:t.normalizeClass(t.unref(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:t.unref(o),"true-value":null==(a=null!=(n=e.trueValue)?n:e.trueLabel)||a,"false-value":null!=(m=null!=(h=e.falseValue)?h:e.falseLabel)&&m,onChange:t.unref(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(l)]]):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,"onUpdate:modelValue":e=>t.isRef(l)?l.value=e:null,class:t.normalizeClass(t.unref(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:t.unref(o),value:t.unref(c),onChange:t.unref(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(l)]]),e.$slots.default||e.label?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(t.unref(d).be("button","inner")),style:t.normalizeStyle(t.unref(s)?t.unref(p):void 0)},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],6)):t.createCommentVNode("v-if",!0)],2)}}}),[["__file","checkbox-button.vue"]]);const aL=hM({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:pM,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Array},props:{type:Object,default:()=>cL},...HM(["ariaLabel"])}),lL={[mM]:e=>UT(e),change:e=>UT(e)},cL={label:"label",value:"value",disabled:"disabled"},uL=t.defineComponent({name:"ElCheckboxGroup"});var hL=yM(t.defineComponent({...uL,props:aL,emits:lL,setup(e,{emit:i}){const n=e,r=kT("checkbox"),{formItem:s}=tR(),{inputId:o,isLabeledByFormItem:a}=iR(n,{formItemContext:s}),l=async e=>{i(mM,e),await t.nextTick(),i(gM,e)},c=t.computed({get:()=>n.modelValue,set(e){l(e)}}),u=t.computed(()=>({...cL,...n.props}));return t.provide(eL,{...gI(t.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),t.watch(()=>n.modelValue,(e,t)=>{n.validateEvent&&!dI(e,t)&&(null==s||s.validate("change").catch(e=>{}))}),(e,i)=>{var l;return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{id:t.unref(o),class:t.normalizeClass(t.unref(r).b("group")),role:"group","aria-label":t.unref(a)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":t.unref(a)?null==(l=t.unref(s))?void 0:l.labelId:void 0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(e,i)=>(t.openBlock(),t.createBlock(rL,t.mergeProps({key:i},(e=>{const t={label:e[u.value.label],value:e[u.value.value],disabled:e[u.value.disabled]};return{...e,...t}})(e)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),[["__file","checkbox-group.vue"]]);const dL=wM(rL,{CheckboxButton:oL,CheckboxGroup:hL});EM(oL),EM(hL);const pL=new Map;if(PI){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const i of pL.values())for(const{documentHandler:n}of i)n(t,e);e=void 0}})}function fL(e,t){let i=[];return UT(t.arg)?i=t.arg:xI(t.arg)&&i.push(t.arg),function(n,r){const s=t.instance.popperRef,o=n.target,a=null==r?void 0:r.target,l=!t||!t.instance,c=!o||!a,u=e.contains(o)||e.contains(a),h=e===o,d=i.length&&i.some(e=>null==e?void 0:e.contains(o))||i.length&&i.includes(a),p=s&&(s.contains(o)||s.contains(a));l||c||u||h||d||p||t.value(n,r)}}const mL={beforeMount(e,t){pL.has(e)||pL.set(e,[]),pL.get(e).push({documentHandler:fL(e,t),bindingFn:t.value})},updated(e,t){pL.has(e)||pL.set(e,[]);const i=pL.get(e),n=i.findIndex(e=>e.bindingFn===t.oldValue),r={documentHandler:fL(e,t),bindingFn:t.value};n>=0?i.splice(n,1,r):i.push(r)},unmounted(e){pL.delete(e)}},gL=t.defineComponent({name:"ElCollapseTransition"});const _L=wM(yM(t.defineComponent({...gL,setup(e){const i=kT("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},r={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"})},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){n(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(i).b()},t.toHandlers(r)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]]));var yL=yM(t.defineComponent({inheritAttrs:!1}),[["render",function(e,i,n,r,s,o){return t.renderSlot(e.$slots,"default")}],["__file","collection.vue"]]);var vL=yM(t.defineComponent({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,i,n,r,s,o){return t.renderSlot(e.$slots,"default")}],["__file","collection-item.vue"]]);const xL=hM({trigger:RB.trigger,triggerKeys:{type:Array,default:()=>[$R.enter,$R.numpadEnter,$R.space,$R.down]},effect:{...MB.effect,default:"light"},type:{type:String},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:pR,default:"menu"},buttonProps:{type:Object},teleported:MB.teleported,persistent:{type:Boolean,default:!0}});hM({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:FM}}),hM({onKeydown:{type:Function}}),(e=>{const i=`El${e}Collection`,n=`${i}Item`,r=Symbol(i),s=Symbol(n),o={...yL,name:i,setup(){const e=t.ref(),i=new Map;t.provide(r,{itemMap:i,getItems:()=>{const n=t.unref(e);if(!n)return[];const r=Array.from(n.querySelectorAll("[data-el-collection-item]"));return[...i.values()].sort((e,t)=>r.indexOf(e.ref)-r.indexOf(t.ref))},collectionRef:e})}},a={...vL,name:n,setup(e,{attrs:i}){const n=t.ref(),o=t.inject(r,void 0);t.provide(s,{collectionItemRef:n}),t.onMounted(()=>{const e=t.unref(n);e&&o.itemMap.set(e,{ref:e,...i})}),t.onBeforeUnmount(()=>{const e=t.unref(n);o.itemMap.delete(e)})}}})("Dropdown");const bL=t.defineComponent({name:"ImgEmpty"});var wL=yM(t.defineComponent({...bL,setup(e){const i=kT("empty"),n=JM();return(e,r)=>(t.openBlock(),t.createElementBlock("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`linearGradient-1-${t.unref(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),t.createElementVNode("linearGradient",{id:`linearGradient-2-${t.unref(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),t.createElementVNode("rect",{id:`path-3-${t.unref(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),t.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{transform:"translate(-1268.000000, -535.000000)"},[t.createElementVNode("g",{transform:"translate(1268.000000, 535.000000)"},[t.createElementVNode("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${t.unref(i).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),t.createElementVNode("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),t.createElementVNode("rect",{fill:`url(#linearGradient-1-${t.unref(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),t.createElementVNode("rect",{fill:`url(#linearGradient-2-${t.unref(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),t.createElementVNode("g",{transform:"translate(53.000000, 45.000000)"},[t.createElementVNode("use",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${t.unref(n)}`},null,8,["fill","xlink:href"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${t.unref(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}}),[["__file","img-empty.vue"]]);const EL=hM({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),AL=t.defineComponent({name:"ElEmpty"});const TL=wM(yM(t.defineComponent({...AL,props:EL,setup(e){const i=e,{t:n}=lM(),r=kT("empty"),s=t.computed(()=>i.description||n("el.table.emptyText")),o=t.computed(()=>({width:bM(i.imageSize)}));return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(r).b())},[t.createElementVNode("div",{class:t.normalizeClass(t.unref(r).e("image")),style:t.normalizeStyle(t.unref(o))},[e.image?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):t.renderSlot(e.$slots,"image",{key:1},()=>[t.createVNode(wL)])],6),t.createElementVNode("div",{class:t.normalizeClass(t.unref(r).e("description"))},[e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("p",{key:1},t.toDisplayString(t.unref(s)),1))],2),e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(r).e("bottom"))},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("v-if",!0)],2))}}),[["__file","empty.vue"]])),SL=Symbol("ElSelect"),CL=hM({trigger:RB.trigger,triggerKeys:RB.triggerKeys,placement:xL.placement,disabled:RB.disabled,visible:MB.visible,transition:MB.transition,popperOptions:xL.popperOptions,tabindex:xL.tabindex,content:MB.content,popperStyle:MB.popperStyle,popperClass:MB.popperClass,enterable:{...MB.enterable,default:!0},effect:{...MB.effect,default:"light"},teleported:MB.teleported,appendTo:MB.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),IL={"update:visible":e=>yI(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},ML=t.defineComponent({name:"ElPopover"}),RL=t.defineComponent({...ML,props:CL,emits:IL,setup(e,{expose:i,emit:n}){const r=e,s=t.computed(()=>r["onUpdate:visible"]),o=kT("popover"),a=t.ref(),l=t.computed(()=>{var e;return null==(e=t.unref(a))?void 0:e.popperRef}),c=t.computed(()=>[{width:bM(r.width)},r.popperStyle]),u=t.computed(()=>[o.b(),r.popperClass,{[o.m("plain")]:!!r.content}]),h=t.computed(()=>r.transition===`${o.namespace.value}-fade-in-linear`),d=()=>{n("before-enter")},p=()=>{n("before-leave")},f=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return i({popperRef:l,hide:()=>{var e;null==(e=a.value)||e.hide()}}),(e,i)=>(t.openBlock(),t.createBlock(t.unref(KB),t.mergeProps({ref_key:"tooltipRef",ref:a},e.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":t.unref(u),"popper-style":t.unref(c),teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":t.unref(h),"onUpdate:visible":t.unref(s),onBeforeShow:d,onBeforeHide:p,onShow:f,onHide:m}),{content:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(o).e("title")),role:"title"},t.toDisplayString(e.title),3)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.content),1)])]),default:t.withCtx(()=>[e.$slots.reference?t.renderSlot(e.$slots,"reference",{key:0}):t.createCommentVNode("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});const PL=(e,t)=>{const i=t.arg||t.value,n=null==i?void 0:i.popperRef;n&&(n.triggerRef=e)};var BL,LL;const OL=wM(yM(RL,[["__file","popover.vue"]]),{directive:(LL="popover",(BL={mounted(e,t){PL(e,t)},updated(e,t){PL(e,t)}}).install=e=>{e.directive(LL,BL)},BL)}),DL=hM({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:dM,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),kL=t.defineComponent({name:"ElText"});const FL=wM(yM(t.defineComponent({...kL,props:DL,setup(e){const i=e,n=t.ref(),r=rR(),s=kT("text"),o=t.computed(()=>[s.b(),s.m(i.type),s.m(r.value),s.is("truncated",i.truncated),s.is("line-clamp",!_I(i.lineClamp))]),a=()=>{var e,r,s,o,a,l,c;if(t.useAttrs().title)return;let u=!1;const h=(null==(e=n.value)?void 0:e.textContent)||"";if(i.truncated){const e=null==(r=n.value)?void 0:r.offsetWidth,t=null==(s=n.value)?void 0:s.scrollWidth;e&&t&&t>e&&(u=!0)}else if(!_I(i.lineClamp)){const e=null==(o=n.value)?void 0:o.offsetHeight,t=null==(a=n.value)?void 0:a.scrollHeight;e&&t&&t>e&&(u=!0)}u?null==(l=n.value)||l.setAttribute("title",h):null==(c=n.value)||c.removeAttribute("title")};return t.onMounted(a),t.onUpdated(a),(e,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{ref_key:"textRef",ref:n,class:t.normalizeClass(t.unref(o)),style:t.normalizeStyle({"-webkit-line-clamp":e.lineClamp})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["class","style"]))}}),[["__file","text.vue"]])),NL="$treeNodeId",zL=function(e,t){t&&!t[NL]&&Object.defineProperty(t,NL,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},UL=(e,t)=>null==t?void 0:t[e||NL],VL=(e,t,i)=>{const n=e.value.currentNode;i();const r=e.value.currentNode;n!==r&&t("current-change",r?r.data:null,r)},jL=e=>{let t=!0,i=!0,n=!0;for(let r=0,s=e.length;r<s;r++){const s=e[r];(!0!==s.checked||s.indeterminate)&&(t=!1,s.disabled||(n=!1)),(!1!==s.checked||s.indeterminate)&&(i=!1)}return{all:t,none:i,allWithoutDisable:n,half:!t&&!i}},HL=function(e){if(0===e.childNodes.length||e.loading)return;const{all:t,none:i,half:n}=jL(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):n?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);const r=e.parent;r&&0!==r.level&&(e.store.checkStrictly||HL(r))},WL=function(e,t){const i=e.store.props,n=e.data||{},r=i[t];if(VT(r))return r(n,e);if(GT(r))return n[r];if(_I(r)){const e=n[t];return _I(e)?"":e}},$L=function(e,t){e.forEach(e=>{e.canFocus=t,$L(e.childNodes,t)})};let qL=0;class XL{constructor(e){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=qL++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const t in e)zT(e,t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var e;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const i=t.props;if(i&&void 0!==i.isLeaf){const e=WL(this,"isLeaf");yI(e)&&(this.isLeafByUser=e)}if(!0!==t.lazy&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),UT(this.data)||zL(this,this.data),!this.data)return;const n=t.defaultExpandedKeys,r=t.key;r&&!pI(this.key)&&n&&n.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&void 0!==t.currentNodeKey&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),1!==this.level&&!0!==(null==(e=this.parent)?void 0:e.expanded)||(this.canFocus=!0)}setData(e){let t;UT(e)||zL(this,e),this.data=e,this.childNodes=[],t=0===this.level&&UT(this.data)?this.data:WL(this,"children")||[];for(let i=0,n=t.length;i<n;i++)this.insertChild({data:t[i]})}get label(){return WL(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return WL(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some(i=>i===e||t&&i.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,i,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof XL)){if(!n){const t=this.getChildren(!0);(null==t?void 0:t.includes(e.data))||(_I(i)||i<0?null==t||t.push(e.data):null==t||t.splice(i,0,e.data))}Object.assign(e,{parent:this,store:this.store}),(e=t.reactive(new XL(e)))instanceof XL&&e.initialize()}e.level=this.level+1,_I(i)||i<0?this.childNodes.push(e):this.childNodes.splice(i,0,e),this.updateLeafState()}insertBefore(e,t){let i;t&&(i=this.childNodes.indexOf(t)),this.insertChild(e,i)}insertAfter(e,t){let i;t&&(i=this.childNodes.indexOf(t),-1!==i&&(i+=1)),this.insertChild(e,i)}removeChild(e){const t=this.getChildren()||[],i=t.indexOf(e.data);i>-1&&t.splice(i,1);const n=this.childNodes.indexOf(e);n>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(n,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let i=0;i<this.childNodes.length;i++)if(this.childNodes[i].data===e){t=this.childNodes[i];break}t&&this.removeChild(t)}expand(e,t){const i=()=>{if(t){let e=this.parent;for(;e&&e.level>0;)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),$L(this.childNodes,!0)};this.shouldLoadData()?this.loadData(e=>{UT(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||HL(this),i())}):i()}doCreateChildren(e,t={}){e.forEach(e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)})}collapse(){this.expanded=!1,$L(this.childNodes,!1)}shouldLoadData(){return Boolean(!0===this.store.lazy&&this.store.load&&!this.loaded)}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,i,n){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:i,allWithoutDisable:r}=jL(this.childNodes);this.isLeaf||i||!r||(this.checked=!1,e=!1);const s=()=>{if(t){const i=this.childNodes;for(let o=0,a=i.length;o<a;o++){const r=i[o];n=n||!1!==e;const s=r.disabled?r.checked:n;r.setChecked(s,t,!0,n)}const{half:r,all:s}=jL(i);s||(this.checked=s,this.indeterminate=r)}};if(this.shouldLoadData())return void this.loadData(()=>{s(),HL(this)},{checked:!1!==e});s()}const r=this.parent;r&&0!==r.level&&(i||HL(r))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const i=this.store.props;let n="children";return i&&(n=i.children||"children"),_I(t[n])&&(t[n]=null),e&&!t[n]&&(t[n]=[]),t[n]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map(e=>e.data),i={},n=[];e.forEach((e,r)=>{const s=e[NL];!!s&&t.findIndex(e=>(null==e?void 0:e[NL])===s)>=0?i[s]={index:r,data:e}:n.push({index:r,data:e})}),this.store.lazy||t.forEach(e=>{i[null==e?void 0:e[NL]]||this.removeChildByData(e)}),n.forEach(({index:e,data:t})=>{this.insertChild({data:t},e)}),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const i=i=>{this.childNodes=[],this.doCreateChildren(i,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,i)},n=()=>{this.loading=!1};this.store.load(this,i,n)}}eachNode(e){const t=[this];for(;t.length;){const i=t.shift();t.unshift(...i.childNodes),e(i)}}reInitChecked(){this.store.checkStrictly||HL(this)}}class ZL{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)zT(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new XL({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){(0,this.load)(this.root,e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()},FT)}else this._initDefaultCheckedNodes()}filter(e){const i=this.filterNodeMethod,n=this.lazy,r=async function(s){const o=s.root?s.root.childNodes:s.childNodes;for(const[n,a]of o.entries())a.visible=!!(null==i?void 0:i.call(a,e,a.data,a)),n%80==0&&n>0&&await t.nextTick(),await r(a);if(!s.visible&&o.length){let e=!0;e=!o.some(e=>e.visible),s.root?s.root.visible=!1===e:s.visible=!1===e}e&&s.visible&&!s.isLeaf&&(n&&!s.loaded||s.expand())};r(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof XL)return e;const t=jT(e)?UL(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var i;const n=this.getNode(t);null==(i=n.parent)||i.insertBefore({data:e},n)}insertAfter(e,t){var i;const n=this.getNode(t);null==(i=n.parent)||i.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const i=bI(t)?this.root:this.getNode(t);i&&i.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(e=>{const i=t[e];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!pI(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;pI(t)||(this.nodesMap[t]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){this.key&&e&&e.data&&(e.childNodes.forEach(e=>{this.deregisterNode(e)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const i=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(r=>{(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&i.push(r.data),n(r)})};return n(this),i}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(e=>(e||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(i=>{i.indeterminate&&e.push(i.data),t(i)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const i in t)zT(t,i)&&e.push(t[i]);return e}updateChildren(e,t){const i=this.nodesMap[e];if(!i)return;const n=i.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];this.remove(e.data)}for(let r=0,s=t.length;r<s;r++){const e=t[r];this.append(e,i.data)}}_setCheckedKeys(e,t=!1,i){const n=this._getAllNodes().sort((e,t)=>e.level-t.level),r=Object.create(null),s=Object.keys(i);n.forEach(e=>e.setChecked(!1,!1));const o=t=>{t.childNodes.forEach(t=>{var i;r[t.data[e]]=!0,(null==(i=t.childNodes)?void 0:i.length)&&o(t)})};for(let a=0,l=n.length;a<l;a++){const i=n[a],l=i.data[e].toString();if(s.includes(l)){if(i.childNodes.length&&o(i),i.isLeaf||this.checkStrictly)i.setChecked(!0,!1);else if(i.setChecked(!0,!0),t){i.setChecked(!1,!1);const e=function(t){t.childNodes.forEach(t=>{t.isLeaf||t.setChecked(!1,!1),e(t)})};e(i)}}else i.checked&&!r[l]&&i.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const i=this.key,n={};e.forEach(e=>{n[(e||{})[i]]=!0}),this._setCheckedKeys(i,t,n)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const i=this.key,n={};e.forEach(e=>{n[e]=!0}),this._setCheckedKeys(i,t,n)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)})}setChecked(e,t,i){const n=this.getNode(e);n&&n.setChecked(!!t,i)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var i;const n=e[this.key],r=this.nodesMap[n];this.setCurrentNode(r),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0))}setCurrentNodeKey(e,t=!0){var i;if(this.currentNodeKey=e,bI(e))return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0)))}}const KL="RootTree",YL="NodeInstance",JL="TreeNodeMap";var QL=yM(t.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const i=kT("tree"),n=t.inject(YL),r=t.inject(KL);return()=>{const s=e.node,{data:o,store:a}=s;return e.renderContent?e.renderContent(t.h,{_self:n,node:s,data:o,store:a}):t.renderSlot(r.ctx.slots,"default",{node:s,data:o},()=>[t.h(FL,{tag:"span",truncated:!0,class:i.be("node","label")},()=>[s.label])])}}}),[["__file","tree-node-content.vue"]]);function eO(e){const i=t.inject(JL,null),n={treeNodeExpand:t=>{var i;e.node!==t&&(null==(i=e.node)||i.collapse())},children:[]};return i&&i.children.push(n),t.provide(JL,n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const tO=Symbol("dragEvents");function iO({props:e,ctx:i,el$:n,dropIndicator$:r,store:s}){const o=kT("tree"),a=t.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return t.provide(tO,{treeNodeDragStart:({event:t,treeNode:n})=>{if(t.dataTransfer){if(VT(e.allowDrag)&&!e.allowDrag(n.node))return t.preventDefault(),!1;t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain","")}catch(cr){}a.value.draggingNode=n,i.emit("node-drag-start",n.node,t)}},treeNodeDragOver:({event:t,treeNode:s})=>{if(!t.dataTransfer)return;const l=s,c=a.value.dropNode;c&&c.node.id!==l.node.id&&xM(c.$el,o.is("drop-inner"));const u=a.value.draggingNode;if(!u||!l)return;let h=!0,d=!0,p=!0,f=!0;VT(e.allowDrop)&&(h=e.allowDrop(u.node,l.node,"prev"),f=d=e.allowDrop(u.node,l.node,"inner"),p=e.allowDrop(u.node,l.node,"next")),t.dataTransfer.dropEffect=d||h||p?"move":"none",(h||d||p)&&(null==c?void 0:c.node.id)!==l.node.id&&(c&&i.emit("node-drag-leave",u.node,c.node,t),i.emit("node-drag-enter",u.node,l.node,t)),a.value.dropNode=h||d||p?l:null,l.node.nextSibling===u.node&&(p=!1),l.node.previousSibling===u.node&&(h=!1),l.node.contains(u.node,!1)&&(d=!1),(u.node===l.node||u.node.contains(l.node))&&(h=!1,d=!1,p=!1);const m=l.$el,g=m.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),_=n.value.getBoundingClientRect();let y;const v=h?d?.25:p?.45:1:-1,x=p?d?.75:h?.55:0:1;let b=-9999;const w=t.clientY-g.top;y=w<g.height*v?"before":w>g.height*x?"after":d?"inner":"none";const E=m.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),A=r.value;var T,S;"before"===y?b=E.top-_.top:"after"===y&&(b=E.bottom-_.top),A.style.top=`${b}px`,A.style.left=E.right-_.left+"px","inner"===y?(T=m,S=o.is("drop-inner"),T&&S.trim()&&T.classList.add(...vM(S))):xM(m,o.is("drop-inner")),a.value.showDropIndicator="before"===y||"after"===y,a.value.allowDrop=a.value.showDropIndicator||f,a.value.dropType=y,i.emit("node-drag-over",u.node,l.node,t)},treeNodeDragEnd:e=>{var t,n;const{draggingNode:r,dropType:l,dropNode:c}=a.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),(null==r?void 0:r.node.data)&&c){const a={data:r.node.data};"none"!==l&&r.node.remove(),"before"===l?null==(t=c.node.parent)||t.insertBefore(a,c.node):"after"===l?null==(n=c.node.parent)||n.insertAfter(a,c.node):"inner"===l&&c.node.insertChild(a),"none"!==l&&(s.value.registerNode(a),s.value.key&&r.node.eachNode(e=>{var t;null==(t=s.value.nodesMap[e.data[s.value.key]])||t.setChecked(e.checked,!s.value.checkStrictly)})),xM(c.$el,o.is("drop-inner")),i.emit("node-drag-end",r.node,c.node,l,e),"none"!==l&&i.emit("node-drop",r.node,c.node,l,e)}r&&!c&&i.emit("node-drag-end",r.node,null,l,e),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const nO=t.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_L,ElCheckbox:dL,NodeContent:QL,ElIcon:SM,Loading:OM},props:{node:{type:XL,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,i){const n=kT("tree"),{broadcastExpanded:r}=eO(e),s=t.inject(KL),o=t.ref(!1),a=t.ref(!1),l=t.ref(),c=t.ref(),u=t.ref(),h=t.inject(tO),d=t.getCurrentInstance();t.provide(YL,d),e.node.expanded&&(o.value=!0,a.value=!0);const p=s.props.props.children||"children";t.watch(()=>{var t;const i=null==(t=e.node.data)?void 0:t[p];return i&&[...i]},()=>{e.node.updateChildren()}),t.watch(()=>e.node.indeterminate,t=>{m(e.node.checked,t)}),t.watch(()=>e.node.checked,t=>{m(t,e.node.indeterminate)}),t.watch(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),t.watch(()=>e.node.expanded,e=>{t.nextTick(()=>o.value=e),e&&(a.value=!0)});const f=e=>UL(s.props.nodeKey,e.data),m=(t,i)=>{l.value===t&&c.value===i||s.ctx.emit("check-change",e.node.data,t,i),l.value=t,c.value=i},g=()=>{e.node.isLeaf||(o.value?(s.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand(()=>{i.emit("node-expand",e.node.data,e.node,d)}))},_=i=>{e.node.setChecked(i,!(null==s?void 0:s.props.checkStrictly)),t.nextTick(()=>{const t=s.store.value;s.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:s,expanded:o,childNodeRendered:a,oldChecked:l,oldIndeterminate:c,getNodeKey:f,getNodeClass:t=>{const i=e.props.class;if(!i)return{};let n;if(VT(i)){const{data:e}=t;n=i(e,t)}else n=i;return GT(n)?{[n]:!0}:n},handleSelectChange:m,handleClick:t=>{VL(s.store,s.ctx.emit,()=>{var t;if(null==(t=null==s?void 0:s.props)?void 0:t.nodeKey){const t=f(e.node);s.store.value.setCurrentNodeKey(t)}else s.store.value.setCurrentNode(e.node)}),s.currentNode.value=e.node,s.props.expandOnClickNode&&g(),(s.props.checkOnClickNode||e.node.isLeaf&&s.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&_(!e.node.checked),s.ctx.emit("node-click",e.node.data,e.node,d,t)},handleContextMenu:t=>{var i;(null==(i=s.instance.vnode.props)?void 0:i.onNodeContextmenu)&&(t.stopPropagation(),t.preventDefault()),s.ctx.emit("node-contextmenu",t,e.node.data,e.node,d)},handleExpandIconClick:g,handleCheckChange:_,handleChildNodeExpand:(e,t,i)=>{r(t),s.ctx.emit("node-expand",e,t,i)},handleDragStart:t=>{s.props.draggable&&h.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{t.preventDefault(),s.props.draggable&&h.treeNodeDragOver({event:t,treeNode:{$el:u.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{s.props.draggable&&h.treeNodeDragEnd(e)},CaretRight:RM}}});var rO=yM(nO,[["render",function(e,i,n,r,s,o){const a=t.resolveComponent("el-icon"),l=t.resolveComponent("el-checkbox"),c=t.resolveComponent("loading"),u=t.resolveComponent("node-content"),h=t.resolveComponent("el-tree-node"),d=t.resolveComponent("el-collapse-transition");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"node$",class:t.normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t.withModifiers(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:t.withModifiers(e.handleDragStart,["stop"]),onDragover:t.withModifiers(e.handleDragOver,["stop"]),onDragend:t.withModifiers(e.handleDragEnd,["stop"]),onDrop:t.withModifiers(e.handleDrop,["stop"])},[t.createElementVNode("div",{class:t.normalizeClass(e.ns.be("node","content")),style:t.normalizeStyle({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:t.withModifiers(e.handleExpandIconClick,["stop"])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):t.createCommentVNode("v-if",!0),e.showCheckbox?(t.openBlock(),t.createBlock(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t.withModifiers(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):t.createCommentVNode("v-if",!0),e.node.loading?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:t.withCtx(()=>[t.createVNode(c)]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),t.createVNode(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),t.createVNode(d,null,{default:t.withCtx(()=>[!e.renderAfterExpand||e.childNodeRendered?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t.withModifiers(()=>{},["stop"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.node.childNodes,i=>(t.openBlock(),t.createBlock(h,{key:e.getNodeKey(i),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:i,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[t.vShow,e.expanded]]):t.createCommentVNode("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[t.vShow,e.node.visible]])}],["__file","tree-node.vue"]]);const sO=wM(yM(t.defineComponent({name:"ElTree",components:{ElTreeNode:rO},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:{type:Function},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:Function},allowDrop:{type:Function},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:FM}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,i){const{t:n}=lM(),r=kT("tree"),s=t.inject(SL,null),o=t.ref(new ZL({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const a=t.ref(o.value.root),l=t.ref(null),c=t.ref(null),u=t.ref(null),{broadcastExpanded:h}=eO(e),{dragState:d}=iO({props:e,ctx:i,el$:c,dropIndicator$:u,store:o});!function({el$:e},i){const n=kT("tree");function r(e,t){var n,r;const s=i.value.getNode(e[t].dataset.key);return s.canFocus&&s.visible&&((null==(n=s.parent)?void 0:n.expanded)||0===(null==(r=s.parent)?void 0:r.level))}t.onMounted(()=>{s()}),t.onUpdated(()=>{Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")})}),NI(e,"keydown",t=>{const i=t.target;if(!i.className.includes(n.b("node")))return;const s=t.code,o=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a=o.indexOf(i);let l;if([$R.up,$R.down].includes(s)){if(t.preventDefault(),s===$R.up){l=-1===a?0:0!==a?a-1:o.length-1;const e=l;for(;!r(o,l);){if(l--,l===e){l=-1;break}l<0&&(l=o.length-1)}}else{l=-1===a?0:a<o.length-1?a+1:0;const e=l;for(;!r(o,l);){if(l++,l===e){l=-1;break}l>=o.length&&(l=0)}}-1!==l&&o[l].focus()}[$R.left,$R.right].includes(s)&&(t.preventDefault(),i.click());const c=i.querySelector('[type="checkbox"]');[$R.enter,$R.numpadEnter,$R.space].includes(s)&&c&&(t.preventDefault(),c.click())});const s=()=>{var t;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")});const r=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);r.length?r[0].setAttribute("tabindex","0"):null==(t=i[0])||t.setAttribute("tabindex","0")}}({el$:c},o);const p=t.computed(()=>{const{childNodes:e}=a.value,t=!!s&&0!==s.hasFilteredOptions;return(!e||0===e.length||e.every(({visible:e})=>!e))&&!t});t.watch(()=>e.currentNodeKey,e=>{o.value.setCurrentNodeKey(null!=e?e:null)}),t.watch(()=>e.defaultCheckedKeys,(e,t)=>{dI(e,t)||o.value.setDefaultCheckedKey(null!=e?e:[])}),t.watch(()=>e.defaultExpandedKeys,e=>{o.value.setDefaultExpandedKeys(null!=e?e:[])}),t.watch(()=>e.data,e=>{o.value.setData(e)},{deep:!0}),t.watch(()=>e.checkStrictly,e=>{o.value.checkStrictly=e});const f=()=>{const e=o.value.getCurrentNode();return e?e.data:null};return t.provide(KL,{ctx:i,props:e,store:o,root:a,currentNode:l,instance:t.getCurrentInstance()}),t.provide(eR,void 0),{ns:r,store:o,root:a,currentNode:l,dragState:d,el$:c,dropIndicator$:u,isEmpty:p,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(t)},getNodeKey:t=>UL(e.nodeKey,t.data),getNodePath:t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const i=o.value.getNode(t);if(!i)return[];const n=[i.data];let r=i.parent;for(;r&&r!==a.value;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:(e,t)=>o.value.getCheckedNodes(e,t),getCheckedKeys:e=>o.value.getCheckedKeys(e),getCurrentNode:f,getCurrentKey:()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=f();return t?t[e.nodeKey]:null},setCheckedNodes:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(t,i)},setCheckedKeys:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(t,i)},setChecked:(e,t,i)=>{o.value.setChecked(e,t,i)},getHalfCheckedNodes:()=>o.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>o.value.getHalfCheckedKeys(),setCurrentNode:(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");VL(o,i.emit,()=>{h(t),o.value.setUserCurrentNode(t,n)})},setCurrentKey:(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");VL(o,i.emit,()=>{h(),o.value.setCurrentNodeKey(null!=t?t:null,n)})},t:n,getNode:e=>o.value.getNode(e),remove:e=>{o.value.remove(e)},append:(e,t)=>{o.value.append(e,t)},insertBefore:(e,t)=>{o.value.insertBefore(e,t)},insertAfter:(e,t)=>{o.value.insertAfter(e,t)},handleNodeExpand:(e,t,n)=>{h(t),i.emit("node-expand",e,t,n)},updateKeyChildren:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(t,i)}}}}),[["render",function(e,i,n,r,s,o){const a=t.resolveComponent("el-tree-node");return t.openBlock(),t.createElementBlock("div",{ref:"el$",class:t.normalizeClass([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.root.childNodes,i=>(t.openBlock(),t.createBlock(a,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.e("empty-block"))},[t.renderSlot(e.$slots,"empty",{},()=>{var i;return[t.createElementVNode("span",{class:t.normalizeClass(e.ns.e("empty-text"))},t.toDisplayString(null!=(i=e.emptyText)?i:e.t("el.tree.emptyText")),3)]})],2)):t.createCommentVNode("v-if",!0),t.withDirectives(t.createElementVNode("div",{ref:"dropIndicator$",class:t.normalizeClass(e.ns.e("drop-indicator"))},null,2),[[t.vShow,e.dragState.showDropIndicator]])],2)}],["__file","tree.vue"]])),oO={class:"gismap-layer"},aO={class:"gismap-layer-title"},lO={class:"gismap-layer-search"},cO={class:"gismap-layer-tree-node"},uO={class:"gismap-layer-tree-node-icon"},hO=["src"],dO={key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pO={class:"gismap-layer-tree-node-label"},fO={class:"gismap-layer-tree-empty"},mO=t.defineComponent({name:"MapLayer",props:{title:{type:String,default:"资源管理"},maxHeight:{type:Number,default:void 0},data:{type:Array,default:()=>[]}},setup(e){const i=e,n=t.inject("map"),r=t.ref(),s=t.ref(i.maxHeight||n?.getContainer().clientHeight||0),o=t.ref(""),a=t.ref([]),l=t.ref([]);n?.on("resize",()=>{i.maxHeight||(s.value=n?.getContainer().clientHeight||0)});const c=(e,{checkedKeys:t})=>{xT([e],e=>{const i=t.includes(e.id);e.layers&&e.layers.length>0&&(i?n?.manager.layerManager.addGroupLayer(e):n?.manager.layerManager.removeGroupLayer(e))})},u=(e,t)=>!e||t.title.includes(e),h=e=>{const t=[],i=[];xT(e,e=>{e.checked&&(n?.manager.layerManager.addGroupLayer(e),i.push(e.id)),e.expand&&t.push(e.id),e.sourceInit&&e.source&&n?.manager.layerManager.addSource(e.source)}),a.value=t,l.value=i};return t.watch(()=>i.data,e=>{h(e)}),t.watch(o,e=>{r.value.filter(e)}),t.onMounted(()=>{h(i.data)}),(i,n)=>{const h=SM;return t.openBlock(),t.createElementBlock("div",oO,[t.createElementVNode("div",aO,t.toDisplayString(e.title),1),t.createElementVNode("div",lO,[t.createVNode(t.unref(uR),{class:"gismap-layer-search-input",placeholder:"请输入名称",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{prefix:t.withCtx(()=>[t.createVNode(h,null,{default:t.withCtx(()=>[t.createVNode(t.unref(DM))]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",{class:"gismap-layer-content no-scrollbar",style:t.normalizeStyle({maxHeight:s.value-400+"px"})},[t.createVNode(t.unref(sO),{ref_key:"treeRef",ref:r,data:e.data,props:{label:"title"},"show-checkbox":"","node-key":"id","default-expanded-keys":a.value,"default-checked-keys":l.value,onCheck:c,"filter-node-method":u},{default:t.withCtx(({node:e,data:i})=>[t.createElementVNode("div",cO,[t.createElementVNode("span",uO,[i.icon&&""!=i.icon?(t.openBlock(),t.createElementBlock("img",{key:0,src:"assets/icons/"+i.icon,height:"16"},null,8,hO)):(t.openBlock(),t.createElementBlock("svg",dO,[...n[1]||(n[1]=[t.createElementVNode("rect",{width:"16",height:"16",rx:"2",fill:"#f5f5f5",stroke:"#e0e0e0","stroke-width":"1"},null,-1),t.createElementVNode("path",{d:"M4 0V16M8 0V16M12 0V16M0 4H16M0 8H16M0 12H16",stroke:"#e0e0e0","stroke-width":"0.5"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"8",r:"3",stroke:"#999999","stroke-width":"1.0",fill:"none"},null,-1),t.createElementVNode("path",{d:"M11 11l2 2",stroke:"#999999","stroke-width":"1.0"},null,-1)])]))]),t.createElementVNode("span",pO,t.toDisplayString(e.label),1)])]),empty:t.withCtx(()=>[t.createElementVNode("div",fO,[t.createVNode(t.unref(TL),{description:"暂无数据","image-size":50})])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])],4)])}}}),gO={class:"gismap-legend"},_O={class:"gismap-legend-title"},yO={class:"gismap-legend-content"},vO={class:"gismap-legend-item"},xO={class:"gismap-legend-item-text"},bO=t.defineComponent({name:"MapLegend",props:{title:{type:String,default:"图例"}},setup(e){const i=t.ref(!0),n=t.ref([]),r=()=>{i.value=!i.value};return(s,o)=>{const a=SM;return t.withDirectives((t.openBlock(),t.createElementBlock("div",gO,[t.createElementVNode("div",_O,[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("span",{class:t.normalizeClass(["toggle",{expanded:i.value}]),onClick:r},[t.createVNode(a,null,{default:t.withCtx(()=>[t.createVNode(t.unref(MM))]),_:1})],2)]),t.withDirectives(t.createElementVNode("div",yO,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,e=>(t.openBlock(),t.createElementBlock("div",{key:e.id},[t.createElementVNode("div",vO,[t.createElementVNode("div",{class:"gismap-legend-item-icon",style:t.normalizeStyle({"background-image":`url(${e.legend})`})},null,4),t.createElementVNode("div",xO,t.toDisplayString(e.name),1)])]))),128))],512),[[t.vShow,i.value]])],512)),[[t.vShow,n.value.length>0]])}}}),wO=t.defineComponent({name:"MapTools",props:{data:{type:Array,default:()=>[]}},setup:e=>(e,t)=>null}),EO={class:"gismap-switch"},AO={key:0,class:"gismap-switch-extensions"},TO=["onClick"],SO={class:"gismap-switch-item-icon"},CO={class:"gismap-switch-item-text"},IO={class:"gismap-switch-layers"},MO=["onClick"],RO={class:"gismap-switch-item-text"},PO={key:1,class:"gismap-switch-extensions"},BO=["onClick"],LO={class:"gismap-switch-item-icon"},OO={class:"gismap-switch-item-text"},DO=t.defineComponent({name:"MapSwitch",props:{data:{type:Object,default:()=>({layers:[],extensions:[]})},extensionsPosition:{type:String,default:"left"}},setup(e){const i=e,n=t.inject("map"),r=t.ref(""),s=e=>{if(r.value!==e.name)switch((e=>{switch(e){case"tdt-vec":n?.manager?.tdtManager.removeVecLayer();break;case"tdt-img":n?.manager?.tdtManager.removeImgLayer()}})(r.value),r.value=e.name,e.name){case"tdt-vec":n?.manager?.tdtManager.addVecLayer(uT.layerPolygonId);break;case"tdt-img":n?.manager?.tdtManager.addImgLayer(uT.layerPolygonId);break;default:n?.pubsub.emit(`switch:${e.name}`,e)}},o=(e,t)=>{switch("click"===e&&(t.checked=!t.checked),t.name){case"tdt-cia":t.checked?n?.manager?.tdtManager.addCiaLayer(uT.layerPointId):n?.manager?.tdtManager.removeCiaLayer();break;case"terrain":t.checked?n?.manager?.terrainManager.setTerrain():n?.manager?.terrainManager.removeTerrain();break;default:n?.pubsub.emit(`switch:click:${t.name}`,{checked:t.checked,data:t})}};return t.onMounted(()=>{i.data.layers.forEach(e=>{e.checked&&(s(e),r.value=e.name)}),i.data.extensions.forEach(e=>{e.checked&&o("check",e)})}),(i,n)=>{const a=dL;return t.openBlock(),t.createElementBlock("div",EO,[t.renderSlot(i.$slots,"left"),"left"===e.extensionsPosition?(t.openBlock(),t.createElementBlock("div",AO,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.extensions,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t.withModifiers(t=>o("click",e),["stop"])},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:e.checked}])},[t.createElementVNode("span",SO,[t.createVNode(a,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,disabled:!0,onChange:t=>o("change",e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),t.createElementVNode("span",CO,t.toDisplayString(e.label),1)],2)],8,TO))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",IO,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.layers,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t=>s(e)},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:r.value===e.name}])},[t.createElementVNode("span",{class:t.normalizeClass(["gismap-switch-item-icon",e.iconName])},null,2),t.createElementVNode("span",RO,t.toDisplayString(e.label),1)],2)],8,MO))),128))]),"right"===e.extensionsPosition?(t.openBlock(),t.createElementBlock("div",PO,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.extensions,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t.withModifiers(t=>o("click",e),["stop"])},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:e.checked}])},[t.createElementVNode("span",LO,[t.createVNode(a,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,disabled:!0,onChange:t=>o("change",e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),t.createElementVNode("span",OO,t.toDisplayString(e.label),1)],2)],8,BO))),128))])):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"right")])}}}),kO=t.defineComponent({name:"MapCompass",setup(e){const i=t.inject("map");let n=t.ref(i?.getBearing()||0),r=t.ref(i?.getPitch()||0);const s=()=>{i?.resetNorthPitch()};return t.onMounted(()=>{i?.on("rotate",e=>{n.value=e.target.getBearing()}),i?.on("pitch",e=>{let t=e.target.getPitch();const i=e.target.getBearing()*Math.cos(t*Math.PI/180);r.value=i})}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-compass",onClick:s},[(t.openBlock(),t.createElementBlock("svg",{class:"compass",style:t.normalizeStyle({transformStyle:"preserve-3d",transform:`rotate(${-t.unref(n)}deg)`}),viewBox:"0 0 100 100"},[...i[0]||(i[0]=[t.createStaticVNode('<circle cx="50" cy="50" r="45" fill="rgba(0, 0, 0, 0.01)" stroke="#333" stroke-width="3"></circle><text x="50" y="20" text-anchor="middle" font-size="12" font-weight="bold"> N </text><text x="80" y="50" text-anchor="middle" font-size="12" font-weight="bold"> E </text><text x="50" y="85" text-anchor="middle" font-size="12" font-weight="bold"> S </text><text x="20" y="50" text-anchor="middle" font-size="12" font-weight="bold"> W </text><g class="needle"><polygon points="50,25 53,50 50,35 47,50" fill="#ff3333"></polygon><circle cx="50" cy="50" r="5" fill="#333"></circle></g>',6)])],4))]))}}),FO={class:"gismap-popupbar"};const NO=((e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i})({name:"GisMapPopupBar"},[["render",function(e,i,n,r,s,o){return t.openBlock(),t.createElementBlock("div",FO,[t.renderSlot(e.$slots,"default")])}]]),zO=t.defineComponent({name:"GisMapPopupBarItem",props:{iconName:{type:String,default:""},placement:{type:String,default:"left"},visible:{type:Boolean,default:!1},width:{type:Number,default:260}},setup(e){const i=e,n=t.ref(i.visible);return(i,r)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(OL),{trigger:"manual",placement:e.placement,width:e.width,visible:n.value,"onUpdate:visible":r[2]||(r[2]=e=>n.value=e),onClick:r[3]||(r[3]=t.withModifiers(()=>{},["prevent"]))},{reference:t.withCtx(()=>[t.renderSlot(i.$slots,"btn",{},()=>[t.createElementVNode("div",{class:"gis-map-popup-bar-item",onClick:r[0]||(r[0]=e=>n.value=!n.value)},[t.createElementVNode("span",{class:t.normalizeClass(["icon",e.iconName])},null,2)])])]),default:t.withCtx(()=>[t.createElementVNode("div",{class:"popover-content",onClick:r[1]||(r[1]=t.withModifiers(()=>{},["prevent"]))},[t.renderSlot(i.$slots,"default")])]),_:3},8,["placement","width","visible"])),[[t.unref(mL),n.value=!0]])}}),UO={class:"map-layout"},VO=t.defineComponent({name:"MapPage",props:{mapViewData:{type:Object,default:()=>{}},switchData:{type:Object,default:()=>[]},layerData:{type:Array,default:()=>[]},toolsData:{type:Array,default:()=>[]}},emits:["load"],setup(e,{emit:i}){const n=e,r=i,s=t.reactive({mapViewData:n.mapViewData||{center:[120.35826594964023,30.10842454359468]},switchData:n.switchData||{},layerData:n.layerData||[],toolsData:n.toolsData||[]});let o;const a=e=>{o=e,o.manager.fogManager.setFog(),r("load",o)};return t.watch(()=>n.mapViewData,e=>{s.mapViewData=e}),t.watch(()=>n.switchData,e=>{s.switchData=e}),t.watch(()=>n.layerData,e=>{s.layerData=e}),t.watch(()=>n.toolsData,e=>{s.toolsData=e}),(e,i)=>(t.openBlock(),t.createElementBlock("div",UO,[t.createVNode(t.unref(PT),{options:s.mapViewData,onLoad:a},{"top-left":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-top-left"),t.createVNode(t.unref(wO),{data:s.toolsData},null,8,["data"]),t.renderSlot(e.$slots,"top-left")]),"top-right":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-top-right"),t.createVNode(t.unref(NO),null,{default:t.withCtx(()=>[t.createVNode(t.unref(zO),{iconName:"layer",visible:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(mO),{data:s.layerData},null,8,["data"])]),_:1})]),_:1}),t.renderSlot(e.$slots,"top-right")]),"bottom-left":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-bottom-left"),t.createVNode(t.unref(bO)),t.renderSlot(e.$slots,"bottom-left")]),"bottom-right":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-bottom-right"),t.createVNode(t.unref(DO),{data:s.switchData},null,8,["data"]),t.renderSlot(e.$slots,"bottom-right")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["options"])]))}});e.GisMapCompass=kO,e.GisMapLayer=mO,e.GisMapLegend=bO,e.GisMapPopupBar=NO,e.GisMapPopupBarItem=zO,e.GisMapSwitch=DO,e.GisMapTools=wO,e.GisMapView=PT,e.GsMap=l,e.MapPage=VO,e.MarkerLayer=class{map;markers=new Map;constructor(e){this.map=e}add(e){const t={...e},i=new s.Marker(t);i.setLngLat(e.lngLat),i.addTo(this.map),this.markers.set(e.id,i)}remove(e){const t=this.markers.get(e);t&&t.remove(),this.markers.delete(e)}clear(){this.markers.forEach(e=>{e.remove()}),this.markers.clear()}},e.Tile3DLayer=class{layerId=Math.random().toString(36);map;layer;deckOverlay;constructor(e){return this.map=e,this}add(e){if(e.id&&(this.layerId=e.id),!e.data)throw new Error("3D瓦片图层数据不能为空");const t=new lT({id:this.layerId,name:this.layerId,data:e.data,coordinateSystem:Ec.LNGLAT,loader:sT,extruded:!0,parameter:{depthTest:!0,polygonOffset:[1,1]},pickable:e.pickable||!1,_meshOpt:{useInstancing:!1},opacity:e.opacity||1,loadOptions:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!0,skipLevelOfDetail:!0,maximumMemoryUsage:1024,isTileset:"auto",assetGltfUpAxis:null}},onTilesetError:e=>{},onTilesetLoad:t=>{const i=e.transform||{translateX:0,translateY:0};t.modelMatrix.translate([i.translateX,i.translateY,0])}});this.deckOverlay=new Gg({interleaved:!0,parameters:{blend:!0},layers:[t]}),this.map.addControl(this.deckOverlay),this.layer=t}setVisible(e=!0){this.map.getLayer(this.layerId)&&(e?this.map.setLayoutProperty(this.layerId,"visibility","visible"):this.map.setLayoutProperty(this.layerId,"visibility","none"))}setOpacity(e){if(this.map.getLayer(this.layerId)){if(!this.deckOverlay)return;const t=this.deckOverlay.props.layers.map(t=>t.id===this.layerId?t.clone({opacity:e}):t);this.deckOverlay.setProps({layers:t})}}remove(){this.deckOverlay&&this.map.removeControl(this.deckOverlay)}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
36
|
+
var MM=t.defineComponent({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),RM=t.defineComponent({name:"CaretRight",__name:"caret-right",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}),PM=t.defineComponent({name:"CircleCheck",__name:"circle-check",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),t.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}),BM=t.defineComponent({name:"CircleClose",__name:"circle-close",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),LM=t.defineComponent({name:"Hide",__name:"hide",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),t.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}),OM=t.defineComponent({name:"Loading",__name:"loading",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}),DM=t.defineComponent({name:"Search",__name:"search",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}),kM=t.defineComponent({name:"View",__name:"view",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))});const FM=[String,Object,Function],NM={validating:OM,success:PM,error:BM};let zM;const UM={height:"0",visibility:"hidden",overflow:PI&&/firefox/i.test(window.navigator.userAgent)?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VM=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function GM(e,t=1,i){var n,r;zM||(zM=document.createElement("textarea"),(null!=(n=e.parentNode)?n:document.body).appendChild(zM));const{paddingSize:s,borderSize:o,boxSizing:a,contextStyle:l}=function(e){const t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:VM.map(e=>[e,t.getPropertyValue(e)]),paddingSize:n,borderSize:r,boxSizing:i}}(e);l.forEach(([e,t])=>null==zM?void 0:zM.style.setProperty(e,t)),Object.entries(UM).forEach(([e,t])=>null==zM?void 0:zM.style.setProperty(e,t,"important")),zM.value=e.value||e.placeholder||"";let c=zM.scrollHeight;const u={};"border-box"===a?c+=o:"content-box"===a&&(c-=s),zM.value="";const h=zM.scrollHeight-s;if(vI(t)){let e=h*t;"border-box"===a&&(e=e+s+o),c=Math.max(e,c),u.minHeight=`${e}px`}if(vI(i)){let e=h*i;"border-box"===a&&(e=e+s+o),c=Math.min(e,c)}return u.height=`${c}px`,null==(r=zM.parentNode)||r.removeChild(zM),zM=void 0,u}const jM=hM({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),HM=e=>gI(jM,e),WM=hM({id:{type:String,default:void 0},size:pM,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:FM,default:BM},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:FM},prefixIcon:{type:FM},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})},autofocus:Boolean,rows:{type:Number,default:2},...HM(["ariaLabel"]),inputmode:{type:String,default:void 0},name:String}),$M={[mM]:e=>GT(e),input:e=>GT(e),change:e=>GT(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},qM=["class","style"],XM=/^on[A-Z]/,ZM={prefix:Math.floor(1e4*Math.random()),current:0},KM=Symbol("elIdInjection"),YM=()=>t.getCurrentInstance()?t.inject(KM,ZM):ZM,JM=e=>{const i=YM(),n=DT();return RI(()=>t.unref(e)||`${n.value}-id-${i.prefix}-${i.current++}`)},QM=Symbol("formContextKey"),eR=Symbol("formItemContextKey"),tR=()=>({form:t.inject(QM,void 0),formItem:t.inject(eR,void 0)}),iR=(e,{formItemContext:i,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=t.ref(!1)),r||(r=t.ref(!1));const s=t.getCurrentInstance(),o=t.ref();let a;const l=t.computed(()=>{var t;return!!(!e.label&&!e.ariaLabel&&i&&i.inputIds&&(null==(t=i.inputIds)?void 0:t.length)<=1)});return t.onMounted(()=>{a=t.watch([t.toRef(e,"id"),n],([e,t])=>{const n=null!=e?e:t?void 0:JM().value;n!==o.value&&((null==i?void 0:i.removeInputId)&&!(()=>{let e=null==s?void 0:s.parent;for(;e;){if("ElFormItem"===e.type.name)return!1;if("ElLabelWrap"===e.type.name)return!0;e=e.parent}return!1})()&&(o.value&&i.removeInputId(o.value),(null==r?void 0:r.value)||t||!n||i.addInputId(n)),o.value=n)},{immediate:!0})}),t.onUnmounted(()=>{a&&a(),(null==i?void 0:i.removeInputId)&&o.value&&i.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},nR=e=>{const i=t.getCurrentInstance();return t.computed(()=>{var t,n;return null==(n=null==(t=null==i?void 0:i.proxy)?void 0:t.$props)?void 0:n[e]})},rR=(e,i={})=>{const n=t.ref(void 0),r=i.prop?n:nR("size"),s=i.global?n:(()=>{const e=t.inject(fM,{});return t.computed(()=>t.unref(e.size)||"")})(),o=i.form?{size:void 0}:t.inject(QM,void 0),a=i.formItem?{size:void 0}:t.inject(eR,void 0);return t.computed(()=>r.value||t.unref(e)||(null==a?void 0:a.size)||(null==o?void 0:o.size)||s.value||"")},sR=e=>{const i=nR("disabled"),n=t.inject(QM,void 0);return t.computed(()=>i.value||t.unref(e)||(null==n?void 0:n.disabled)||!1)},oR=e=>"undefined"!=typeof Element&&e instanceof Element,aR=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},lR=(e,t)=>{if(!e||!e.focus)return;let i=!1;!oR(e)||aR(e)||e.getAttribute("tabindex")||(e.setAttribute("tabindex","-1"),i=!0),e.focus(t),oR(e)&&i&&e.removeAttribute("tabindex")};const cR=t.defineComponent({name:"ElInput",inheritAttrs:!1});const uR=wM(yM(t.defineComponent({...cR,props:WM,emits:$M,setup(e,{expose:i,emit:n}){const r=e,s=t.useAttrs(),o=((e={})=>{const{excludeListeners:i=!1,excludeKeys:n}=e,r=t.computed(()=>((null==n?void 0:n.value)||[]).concat(qM)),s=t.getCurrentInstance();return s?t.computed(()=>{var e;return hI(Object.entries(null==(e=s.proxy)?void 0:e.$attrs).filter(([e])=>!(r.value.includes(e)||i&&XM.test(e))))}):t.computed(()=>({}))})(),a=t.useSlots(),l=t.computed(()=>["textarea"===r.type?g.b():m.b(),m.m(p.value),m.is("disabled",f.value),m.is("exceed",z.value),{[m.b("group")]:a.prepend||a.append,[m.m("prefix")]:a.prefix||r.prefixIcon,[m.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[m.bm("suffix","password-clear")]:D.value&&k.value,[m.b("hidden")]:"hidden"===r.type},s.class]),c=t.computed(()=>[m.e("wrapper"),m.is("focus",T.value)]),{form:u,formItem:h}=tR(),{inputId:d}=iR(r,{formItemContext:h}),p=rR(),f=sR(),m=kT("input"),g=kT("textarea"),_=t.shallowRef(),y=t.shallowRef(),v=t.ref(!1),x=t.ref(!1),b=t.ref(),w=t.shallowRef(r.inputStyle),E=t.computed(()=>_.value||y.value),{wrapperRef:A,isFocused:T,handleFocus:S,handleBlur:C}=function(e,{disabled:i,beforeFocus:n,afterFocus:r,beforeBlur:s,afterBlur:o}={}){const a=t.getCurrentInstance(),{emit:l}=a,c=t.shallowRef(),u=t.ref(!1),h=e=>{const s=!!VT(n)&&n(e);t.unref(i)||u.value||s||(u.value=!0,l("focus",e),null==r||r())},d=e=>{var n;const r=!!VT(s)&&s(e);t.unref(i)||e.relatedTarget&&(null==(n=c.value)?void 0:n.contains(e.relatedTarget))||r||(u.value=!1,l("blur",e),null==o||o())};return t.watch([c,()=>t.unref(i)],([e,t])=>{e&&(t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"))}),NI(c,"focus",h,!0),NI(c,"blur",d,!0),NI(c,"click",n=>{var r,s;t.unref(i)||aR(n.target)||(null==(r=c.value)?void 0:r.contains(document.activeElement))&&c.value!==document.activeElement||null==(s=e.value)||s.focus()},!0),{isFocused:u,wrapperRef:c,handleFocus:h,handleBlur:d}}(E,{disabled:f,afterBlur(){var e;r.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"blur").catch(e=>{}))}}),I=t.computed(()=>{var e;return null!=(e=null==u?void 0:u.statusIcon)&&e}),M=t.computed(()=>(null==h?void 0:h.validateState)||""),R=t.computed(()=>M.value&&NM[M.value]),P=t.computed(()=>x.value?kM:LM),B=t.computed(()=>[s.style]),L=t.computed(()=>[r.inputStyle,w.value,{resize:r.resize}]),O=t.computed(()=>pI(r.modelValue)?"":String(r.modelValue)),D=t.computed(()=>r.clearable&&!f.value&&!r.readonly&&!!O.value&&(T.value||v.value)),k=t.computed(()=>r.showPassword&&!f.value&&!!O.value),F=t.computed(()=>r.showWordLimit&&!!r.maxlength&&("text"===r.type||"textarea"===r.type)&&!f.value&&!r.readonly&&!r.showPassword),N=t.computed(()=>O.value.length),z=t.computed(()=>!!F.value&&N.value>Number(r.maxlength)),U=t.computed(()=>!!a.suffix||!!r.suffixIcon||D.value||r.showPassword||F.value||!!M.value&&I.value),[V,G]=function(e){let t;return[function(){if(null==e.value)return;const{selectionStart:i,selectionEnd:n,value:r}=e.value;if(null==i||null==n)return;const s=r.slice(0,Math.max(0,i)),o=r.slice(Math.max(0,n));t={selectionStart:i,selectionEnd:n,value:r,beforeTxt:s,afterTxt:o}},function(){if(null==e.value||null==t)return;const{value:i}=e.value,{beforeTxt:n,afterTxt:r,selectionStart:s}=t;if(null==n||null==r||null==s)return;let o=i.length;if(i.endsWith(r))o=i.length-r.length;else if(i.startsWith(n))o=n.length;else{const e=n[s-1],t=i.indexOf(e,s-1);-1!==t&&(o=t+1)}e.value.setSelectionRange(o,o)}]}(_);XI(y,e=>{if(H(),!F.value||"both"!==r.resize)return;const t=e[0],{width:i}=t.contentRect;b.value={right:`calc(100% - ${i+15+6}px)`}});const j=()=>{const{type:e,autosize:i}=r;if(PI&&"textarea"===e&&y.value)if(i){const e=jT(i)?i.minRows:void 0,n=jT(i)?i.maxRows:void 0,r=GM(y.value,e,n);w.value={overflowY:"hidden",...r},t.nextTick(()=>{y.value.offsetHeight,w.value=r})}else w.value={minHeight:GM(y.value).minHeight}},H=(e=>{let t=!1;return()=>{var i;if(t||!r.autosize)return;null===(null==(i=y.value)?void 0:i.offsetParent)||(setTimeout(e),t=!0)}})(j),W=()=>{const e=E.value,t=r.formatter?r.formatter(O.value):O.value;e&&e.value!==t&&(e.value=t)},$=async e=>{V();let{value:i}=e.target;r.formatter&&r.parser&&(i=r.parser(i)),X.value||(i!==O.value?(n(mM,i),n(_M,i),await t.nextTick(),W(),G()):W())},q=e=>{let{value:t}=e.target;r.formatter&&r.parser&&(t=r.parser(t)),n(gM,t)},{isComposing:X,handleCompositionStart:Z,handleCompositionUpdate:K,handleCompositionEnd:Y}=function({afterComposition:e,emit:i}){const n=t.ref(!1),r=e=>{var t;null==i||i("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,s=r[r.length-1]||"";n.value=!(e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e))(s)},s=r=>{null==i||i("compositionend",r),n.value&&(n.value=!1,t.nextTick(()=>e(r)))};return{isComposing:n,handleComposition:e=>{"compositionend"===e.type?s(e):r(e)},handleCompositionStart:e=>{null==i||i("compositionstart",e),n.value=!0},handleCompositionUpdate:r,handleCompositionEnd:s}}({emit:n,afterComposition:$}),J=()=>{V(),x.value=!x.value,setTimeout(G)},Q=e=>{v.value=!1,n("mouseleave",e)},ee=e=>{v.value=!0,n("mouseenter",e)},te=e=>{n("keydown",e)},ie=()=>{n(mM,""),n(gM,""),n("clear"),n(_M,"")};return t.watch(()=>r.modelValue,()=>{var e;t.nextTick(()=>j()),r.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"change").catch(e=>{}))}),t.watch(O,()=>W()),t.watch(()=>r.type,async()=>{await t.nextTick(),W(),j()}),t.onMounted(()=>{!r.formatter&&r.parser,W(),t.nextTick(j)}),i({input:_,textarea:y,ref:E,textareaStyle:L,autosize:t.toRef(r,"autosize"),isComposing:X,focus:()=>{var e;return null==(e=E.value)?void 0:e.focus()},blur:()=>{var e;return null==(e=E.value)?void 0:e.blur()},select:()=>{var e;null==(e=E.value)||e.select()},clear:ie,resizeTextarea:j}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(l),{[t.unref(m).bm("group","append")]:e.$slots.append,[t.unref(m).bm("group","prepend")]:e.$slots.prepend}]),style:t.normalizeStyle(t.unref(B)),onMouseenter:ee,onMouseleave:Q},[t.createCommentVNode(" input "),"textarea"!==e.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createCommentVNode(" prepend slot "),e.$slots.prepend?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(m).be("group","prepend"))},[t.renderSlot(e.$slots,"prepend")],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref_key:"wrapperRef",ref:A,class:t.normalizeClass(t.unref(c))},[t.createCommentVNode(" prefix slot "),e.$slots.prefix||e.prefixIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(t.unref(m).e("prefix"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("prefix-inner"))},[t.renderSlot(e.$slots,"prefix"),e.prefixIcon?(t.openBlock(),t.createBlock(t.unref(SM),{key:0,class:t.normalizeClass(t.unref(m).e("icon"))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.prefixIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("input",t.mergeProps({id:t.unref(d),ref_key:"input",ref:_,class:t.unref(m).e("inner")},t.unref(o),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?x.value?"text":"password":e.type,disabled:t.unref(f),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:t.unref(Z),onCompositionupdate:t.unref(K),onCompositionend:t.unref(Y),onInput:$,onChange:q,onKeydown:te}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),t.createCommentVNode(" suffix slot "),t.unref(U)?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(t.unref(m).e("suffix"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("suffix-inner"))},[t.unref(D)&&t.unref(k)&&t.unref(F)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"suffix"),e.suffixIcon?(t.openBlock(),t.createBlock(t.unref(SM),{key:0,class:t.normalizeClass(t.unref(m).e("icon"))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.suffixIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],64)),t.unref(D)?(t.openBlock(),t.createBlock(t.unref(SM),{key:1,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("clear")]),onMousedown:t.withModifiers(t.unref(FT),["prevent"]),onClick:ie},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onMousedown"])):t.createCommentVNode("v-if",!0),t.unref(k)?(t.openBlock(),t.createBlock(t.unref(SM),{key:2,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("password")]),onClick:J},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(P))))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),t.unref(F)?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(t.unref(m).e("count"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("count-inner"))},t.toDisplayString(t.unref(N))+" / "+t.toDisplayString(e.maxlength),3)],2)):t.createCommentVNode("v-if",!0),t.unref(M)&&t.unref(R)&&t.unref(I)?(t.openBlock(),t.createBlock(t.unref(SM),{key:4,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("validateIcon"),t.unref(m).is("loading","validating"===t.unref(M))])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(R))))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],2)):t.createCommentVNode("v-if",!0)],2),t.createCommentVNode(" append slot "),e.$slots.append?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(t.unref(m).be("group","append"))},[t.renderSlot(e.$slots,"append")],2)):t.createCommentVNode("v-if",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" textarea "),t.createElementVNode("textarea",t.mergeProps({id:t.unref(d),ref_key:"textarea",ref:y,class:[t.unref(g).e("inner"),t.unref(m).is("focus",t.unref(T))]},t.unref(o),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:t.unref(f),readonly:e.readonly,autocomplete:e.autocomplete,style:t.unref(L),"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:t.unref(Z),onCompositionupdate:t.unref(K),onCompositionend:t.unref(Y),onInput:$,onFocus:t.unref(S),onBlur:t.unref(C),onChange:q,onKeydown:te}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),t.unref(F)?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(b.value),class:t.normalizeClass(t.unref(m).e("count"))},t.toDisplayString(t.unref(N))+" / "+t.toDisplayString(e.maxlength),7)):t.createCommentVNode("v-if",!0)],64))],38))}}),[["__file","input.vue"]])),hR=Symbol("popper"),dR=Symbol("popperContent"),pR=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],fR=hM({role:{type:String,values:pR,default:"tooltip"}}),mR=t.defineComponent({name:"ElPopper",inheritAttrs:!1});var gR=yM(t.defineComponent({...mR,props:fR,setup(e,{expose:i}){const n=e,r={triggerRef:t.ref(),popperInstanceRef:t.ref(),contentRef:t.ref(),referenceRef:t.ref(),role:t.computed(()=>n.role)};return i(r),t.provide(hR,r),(e,i)=>t.renderSlot(e.$slots,"default")}}),[["__file","popper.vue"]]);const _R=t.defineComponent({name:"ElPopperArrow",inheritAttrs:!1});var yR=yM(t.defineComponent({..._R,setup(e,{expose:i}){const n=kT("popper"),{arrowRef:r,arrowStyle:s}=t.inject(dR,void 0);return t.onBeforeUnmount(()=>{r.value=void 0}),i({arrowRef:r}),(e,i)=>(t.openBlock(),t.createElementBlock("span",{ref_key:"arrowRef",ref:r,class:t.normalizeClass(t.unref(n).e("arrow")),style:t.normalizeStyle(t.unref(s)),"data-popper-arrow":""},null,6))}}),[["__file","arrow.vue"]]);const vR=hM({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),xR=Symbol("elForwardRef"),bR=t.defineComponent({name:"ElOnlyChild",setup(e,{slots:i,attrs:n}){var r;const s=t.inject(xR),o=(a=null!=(r=null==s?void 0:s.setForwardRef)?r:FT,{mounted(e){a(e)},updated(e){a(e)},unmounted(){a(null)}});var a;return()=>{var e;const r=null==(e=i.default)?void 0:e.call(i,n);if(!r)return null;const[s,a]=wR(r);return s?t.withDirectives(t.cloneVNode(s,n),[[o]]):null}}});function wR(e){if(!e)return[null,0];const i=e,n=i.filter(e=>e.type!==t.Comment).length;for(const r of i){if(jT(r))switch(r.type){case t.Comment:continue;case t.Text:case"svg":return[ER(r),n];case t.Fragment:return wR(r.children);default:return[r,n]}return[ER(r),n]}return[null,0]}function ER(e){const i=kT("only-child");return t.createVNode("span",{class:i.e("content")},[e])}const AR=t.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1});var TR=yM(t.defineComponent({...AR,props:vR,setup(e,{expose:i}){const n=e,{role:r,triggerRef:s}=t.inject(hR,void 0);var o;o=s,t.provide(xR,{setForwardRef:e=>{o.value=e}});const a=t.computed(()=>c.value?n.id:void 0),l=t.computed(()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0}),c=t.computed(()=>{if(r&&"tooltip"!==r.value)return r.value}),u=t.computed(()=>c.value?`${n.open}`:void 0);let h;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return t.onMounted(()=>{t.watch(()=>n.virtualRef,e=>{e&&(s.value=kI(e))},{immediate:!0}),t.watch(s,(e,i)=>{null==h||h(),h=void 0,xI(e)&&(d.forEach(t=>{var r;const s=n[t];s&&(e.addEventListener(t.slice(2).toLowerCase(),s,["onFocus","onBlur"].includes(t)),null==(r=null==i?void 0:i.removeEventListener)||r.call(i,t.slice(2).toLowerCase(),s,["onFocus","onBlur"].includes(t)))}),aR(e)&&(h=t.watch([a,l,c,u],t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((i,n)=>{pI(t[n])?e.removeAttribute(i):e.setAttribute(i,t[n])})},{immediate:!0}))),xI(i)&&aR(i)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(e=>i.removeAttribute(e))},{immediate:!0})}),t.onBeforeUnmount(()=>{if(null==h||h(),h=void 0,s.value&&xI(s.value)){const e=s.value;d.forEach(t=>{const i=n[t];i&&e.removeEventListener(t.slice(2).toLowerCase(),i,["onFocus","onBlur"].includes(t))}),s.value=void 0}}),i({triggerRef:s}),(e,i)=>e.virtualTriggering?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(t.unref(bR),t.mergeProps({key:0},e.$attrs,{"aria-controls":t.unref(a),"aria-describedby":t.unref(l),"aria-expanded":t.unref(u),"aria-haspopup":t.unref(c)}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),[["__file","trigger.vue"]]);const SR="focus-trap.focus-after-trapped",CR="focus-trap.focus-after-released",IR={cancelable:!0,bubbles:!1},MR={cancelable:!0,bubbles:!1},RR="focusAfterTrapped",PR="focusAfterReleased",BR=Symbol("elFocusTrap"),LR=t.ref(),OR=t.ref(0),DR=t.ref(0);let kR=0;const FR=e=>{const t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t},NR=(e,t)=>{for(const i of e)if(!zR(i,t))return i},zR=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},UR=(e,t)=>{if(e){const i=document.activeElement;lR(e,{preventScroll:!0}),DR.value=window.performance.now(),e!==i&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function VR(e,t){const i=[...e],n=e.indexOf(t);return-1!==n&&i.splice(n,1),i}const GR=(()=>{let e=[];return{push:t=>{const i=e[0];i&&t!==i&&i.pause(),e=VR(e,t),e.unshift(t)},remove:t=>{var i,n;e=VR(e,t),null==(n=null==(i=e[0])?void 0:i.resume)||n.call(i)}}})(),jR=()=>{LR.value="pointer",OR.value=window.performance.now()},HR=()=>{LR.value="keyboard",OR.value=window.performance.now()},WR=e=>new CustomEvent("focus-trap.focusout-prevented",{...MR,detail:e}),$R={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",numpadEnter:"NumpadEnter"};let qR=[];const XR=e=>{e.code===$R.esc&&qR.forEach(t=>t(e))},ZR=t.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[RR,PR,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:i}){const n=t.ref();let r,s;const{focusReason:o}=(t.onMounted(()=>{0===kR&&(document.addEventListener("mousedown",jR),document.addEventListener("touchstart",jR),document.addEventListener("keydown",HR)),kR++}),t.onBeforeUnmount(()=>{kR--,kR<=0&&(document.removeEventListener("mousedown",jR),document.removeEventListener("touchstart",jR),document.removeEventListener("keydown",HR))}),{focusReason:LR,lastUserFocusTimestamp:OR,lastAutomatedFocusTimestamp:DR});var a;a=t=>{e.trapped&&!l.paused&&i("release-requested",t)},t.onMounted(()=>{0===qR.length&&document.addEventListener("keydown",XR),PI&&qR.push(a)}),t.onBeforeUnmount(()=>{qR=qR.filter(e=>e!==a),0===qR.length&&PI&&document.removeEventListener("keydown",XR)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=t=>{if(!e.loop&&!e.trapped)return;if(l.paused)return;const{code:n,altKey:r,ctrlKey:s,metaKey:a,currentTarget:c,shiftKey:u}=t,{loop:h}=e,d=n===$R.tab&&!r&&!s&&!a,p=document.activeElement;if(d&&p){const e=c,[n,r]=(e=>{const t=FR(e);return[NR(t,e),NR(t.reverse(),e)]})(e);if(n&&r)if(u||p!==r){if(u&&[n,e].includes(p)){const e=WR({focusReason:o.value});i("focusout-prevented",e),e.defaultPrevented||(t.preventDefault(),h&&UR(r,!0))}}else{const e=WR({focusReason:o.value});i("focusout-prevented",e),e.defaultPrevented||(t.preventDefault(),h&&UR(n,!0))}else if(p===e){const e=WR({focusReason:o.value});i("focusout-prevented",e),e.defaultPrevented||t.preventDefault()}}};t.provide(BR,{focusTrapRef:n,onKeydown:c}),t.watch(()=>e.focusTrapEl,e=>{e&&(n.value=e)},{immediate:!0}),t.watch([n],([e],[t])=>{e&&(e.addEventListener("keydown",c),e.addEventListener("focusin",d),e.addEventListener("focusout",p)),t&&(t.removeEventListener("keydown",c),t.removeEventListener("focusin",d),t.removeEventListener("focusout",p))});const u=e=>{i(RR,e)},h=e=>i(PR,e),d=o=>{const a=t.unref(n);if(!a)return;const c=o.target,u=o.relatedTarget,h=c&&a.contains(c);if(!e.trapped){u&&a.contains(u)||(r=u)}h&&i("focusin",o),l.paused||e.trapped&&(h?s=c:UR(s,!0))},p=r=>{const a=t.unref(n);if(!l.paused&&a)if(e.trapped){const t=r.relatedTarget;pI(t)||a.contains(t)||setTimeout(()=>{if(!l.paused&&e.trapped){const e=WR({focusReason:o.value});i("focusout-prevented",e),e.defaultPrevented||UR(s,!0)}},0)}else{const e=r.target;e&&a.contains(e)||i("focusout",r)}};async function f(){await t.nextTick();const i=t.unref(n);if(i){GR.push(l);const n=i.contains(document.activeElement)?r:document.activeElement;r=n;if(!i.contains(n)){const r=new Event(SR,IR);i.addEventListener(SR,u),i.dispatchEvent(r),r.defaultPrevented||t.nextTick(()=>{let t=e.focusStartEl;GT(t)||(UR(t),document.activeElement!==t&&(t="first")),"first"===t&&((e,t=!1)=>{const i=document.activeElement;for(const n of e)if(UR(n,t),document.activeElement!==i)return})(FR(i),!0),document.activeElement!==n&&"container"!==t||UR(i)})}}}function m(){const e=t.unref(n);if(e){e.removeEventListener(SR,u);const t=new CustomEvent(CR,{...IR,detail:{focusReason:o.value}});e.addEventListener(CR,h),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=o.value&&OR.value>DR.value&&!e.contains(document.activeElement)||UR(null!=r?r:document.body),e.removeEventListener(CR,h),GR.remove(l),r=null,s=null}}return t.onMounted(()=>{e.trapped&&f(),t.watch(()=>e.trapped,e=>{e?f():m()})}),t.onBeforeUnmount(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",c),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",p),n.value=void 0)}),{onKeydown:c}}});var KR=yM(ZR,[["render",function(e,i,n,r,s,o){return t.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]),YR="top",JR="bottom",QR="right",eP="left",tP="auto",iP=[YR,JR,QR,eP],nP="start",rP="end",sP="viewport",oP="popper",aP=iP.reduce(function(e,t){return e.concat([t+"-"+nP,t+"-"+rP])},[]),lP=[].concat(iP,[tP]).reduce(function(e,t){return e.concat([t,t+"-"+nP,t+"-"+rP])},[]),cP=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function uP(e){return e?(e.nodeName||"").toLowerCase():null}function hP(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dP(e){return e instanceof hP(e).Element||e instanceof Element}function pP(e){return e instanceof hP(e).HTMLElement||e instanceof HTMLElement}function fP(e){return"undefined"!=typeof ShadowRoot&&(e instanceof hP(e).ShadowRoot||e instanceof ShadowRoot)}var mP={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];!pP(r)||!uP(r)||(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});!pP(n)||!uP(n)||(Object.assign(n.style,s),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function gP(e){return e.split("-")[0]}var _P=Math.max,yP=Math.min,vP=Math.round;function xP(e,t){void 0===t&&(t=!1);var i=e.getBoundingClientRect(),n=1,r=1;if(pP(e)&&t){var s=e.offsetHeight,o=e.offsetWidth;o>0&&(n=vP(i.width)/o||1),s>0&&(r=vP(i.height)/s||1)}return{width:i.width/n,height:i.height/r,top:i.top/r,right:i.right/n,bottom:i.bottom/r,left:i.left/n,x:i.left/n,y:i.top/r}}function bP(e){var t=xP(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function wP(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&fP(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function EP(e){return hP(e).getComputedStyle(e)}function AP(e){return["table","td","th"].indexOf(uP(e))>=0}function TP(e){return((dP(e)?e.ownerDocument:e.document)||window.document).documentElement}function SP(e){return"html"===uP(e)?e:e.assignedSlot||e.parentNode||(fP(e)?e.host:null)||TP(e)}function CP(e){return pP(e)&&"fixed"!==EP(e).position?e.offsetParent:null}function IP(e){for(var t=hP(e),i=CP(e);i&&AP(i)&&"static"===EP(i).position;)i=CP(i);return i&&("html"===uP(i)||"body"===uP(i)&&"static"===EP(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&pP(e)&&"fixed"===EP(e).position)return null;var i=SP(e);for(fP(i)&&(i=i.host);pP(i)&&["html","body"].indexOf(uP(i))<0;){var n=EP(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function MP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function RP(e,t,i){return _P(e,yP(t,i))}function PP(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function BP(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}var LP={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,r=e.options,s=i.elements.arrow,o=i.modifiersData.popperOffsets,a=gP(i.placement),l=MP(a),c=[eP,QR].indexOf(a)>=0?"height":"width";if(s&&o){var u=function(e,t){return PP("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:BP(e,iP))}(r.padding,i),h=bP(s),d="y"===l?YR:eP,p="y"===l?JR:QR,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=IP(s),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,v=u[d],x=_-h[c]-u[p],b=_/2-h[c]/2+y,w=RP(v,b,x),E=l;i.modifiersData[n]=((t={})[E]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"==typeof n&&!(n=t.elements.popper.querySelector(n))||!wP(t.elements.popper,n)||(t.elements.arrow=n))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function OP(e){return e.split("-")[1]}var DP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kP(e){var t,i=e.popper,n=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=o.x,p=void 0===d?0:d,f=o.y,m=void 0===f?0:f,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var _=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=eP,x=YR,b=window;if(c){var w=IP(i),E="clientHeight",A="clientWidth";if(w===hP(i)&&("static"!==EP(w=TP(i)).position&&"absolute"===a&&(E="scrollHeight",A="scrollWidth")),r===YR||(r===eP||r===QR)&&s===rP)x=JR,m-=(h&&w===b&&b.visualViewport?b.visualViewport.height:w[E])-n.height,m*=l?1:-1;if(r===eP||(r===YR||r===JR)&&s===rP)v=QR,p-=(h&&w===b&&b.visualViewport?b.visualViewport.width:w[A])-n.width,p*=l?1:-1}var T,S=Object.assign({position:a},c&&DP),C=!0===u?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:vP(t*n)/n||0,y:vP(i*n)/n||0}}({x:p,y:m}):{x:p,y:m};return p=C.x,m=C.y,l?Object.assign({},S,((T={})[x]=y?"0":"",T[v]=_?"0":"",T.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T)):Object.assign({},S,((t={})[x]=y?m+"px":"",t[v]=_?p+"px":"",t.transform="",t))}var FP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,s=i.adaptive,o=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:gP(t.placement),variation:OP(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,kP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,kP(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},NP={passive:!0};var zP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,s=void 0===r||r,o=n.resize,a=void 0===o||o,l=hP(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",i.update,NP)}),a&&l.addEventListener("resize",i.update,NP),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",i.update,NP)}),a&&l.removeEventListener("resize",i.update,NP)}},data:{}},UP={left:"right",right:"left",bottom:"top",top:"bottom"};function VP(e){return e.replace(/left|right|bottom|top/g,function(e){return UP[e]})}var GP={start:"end",end:"start"};function jP(e){return e.replace(/start|end/g,function(e){return GP[e]})}function HP(e){var t=hP(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function WP(e){return xP(TP(e)).left+HP(e).scrollLeft}function $P(e){var t=EP(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function qP(e){return["html","body","#document"].indexOf(uP(e))>=0?e.ownerDocument.body:pP(e)&&$P(e)?e:qP(SP(e))}function XP(e,t){var i;void 0===t&&(t=[]);var n=qP(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),s=hP(n),o=r?[s].concat(s.visualViewport||[],$P(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(XP(SP(o)))}function ZP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function KP(e,t){return t===sP?ZP(function(e){var t=hP(e),i=TP(e),n=t.visualViewport,r=i.clientWidth,s=i.clientHeight,o=0,a=0;return n&&(r=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,a=n.offsetTop)),{width:r,height:s,x:o+WP(e),y:a}}(e)):dP(t)?function(e){var t=xP(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ZP(function(e){var t,i=TP(e),n=HP(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=_P(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=_P(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+WP(e),l=-n.scrollTop;return"rtl"===EP(r||i).direction&&(a+=_P(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}(TP(e)))}function YP(e,t,i){var n="clippingParents"===t?function(e){var t=XP(SP(e)),i=["absolute","fixed"].indexOf(EP(e).position)>=0&&pP(e)?IP(e):e;return dP(i)?t.filter(function(e){return dP(e)&&wP(e,i)&&"body"!==uP(e)}):[]}(e):[].concat(t),r=[].concat(n,[i]),s=r[0],o=r.reduce(function(t,i){var n=KP(e,i);return t.top=_P(n.top,t.top),t.right=yP(n.right,t.right),t.bottom=yP(n.bottom,t.bottom),t.left=_P(n.left,t.left),t},KP(e,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function JP(e){var t,i=e.reference,n=e.element,r=e.placement,s=r?gP(r):null,o=r?OP(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case YR:t={x:a,y:i.y-n.height};break;case JR:t={x:a,y:i.y+i.height};break;case QR:t={x:i.x+i.width,y:l};break;case eP:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=s?MP(s):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case nP:t[c]=t[c]-(i[u]/2-n[u]/2);break;case rP:t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function QP(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=void 0===n?e.placement:n,s=i.boundary,o=void 0===s?"clippingParents":s,a=i.rootBoundary,l=void 0===a?sP:a,c=i.elementContext,u=void 0===c?oP:c,h=i.altBoundary,d=void 0!==h&&h,p=i.padding,f=void 0===p?0:p,m=PP("number"!=typeof f?f:BP(f,iP)),g=u===oP?"reference":oP,_=e.rects.popper,y=e.elements[d?g:u],v=YP(dP(y)?y:y.contextElement||TP(e.elements.popper),o,l),x=xP(e.elements.reference),b=JP({reference:x,element:_,placement:r}),w=ZP(Object.assign({},_,b)),E=u===oP?w:x,A={top:v.top-E.top+m.top,bottom:E.bottom-v.bottom+m.bottom,left:v.left-E.left+m.left,right:E.right-v.right+m.right},T=e.modifiersData.offset;if(u===oP&&T){var S=T[r];Object.keys(A).forEach(function(e){var t=[QR,JR].indexOf(e)>=0?1:-1,i=[YR,JR].indexOf(e)>=0?"y":"x";A[e]+=S[i]*t})}return A}var eB={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,u=i.boundary,h=i.rootBoundary,d=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,g=t.options.placement,_=gP(g),y=l||(_===g||!f?[VP(g)]:function(e){if(gP(e)===tP)return[];var t=VP(e);return[jP(e),t,jP(t)]}(g)),v=[g].concat(y).reduce(function(e,i){return e.concat(gP(i)===tP?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=i.boundary,s=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?lP:l,u=OP(n),h=u?a?aP:aP.filter(function(e){return OP(e)===u}):iP,d=h.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=h);var p=d.reduce(function(t,i){return t[i]=QP(e,{placement:i,boundary:r,rootBoundary:s,padding:o})[gP(i)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:i,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)},[]),x=t.rects.reference,b=t.rects.popper,w=new Map,E=!0,A=v[0],T=0;T<v.length;T++){var S=v[T],C=gP(S),I=OP(S)===nP,M=[YR,JR].indexOf(C)>=0,R=M?"width":"height",P=QP(t,{placement:S,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),B=M?I?QR:eP:I?JR:YR;x[R]>b[R]&&(B=VP(B));var L=VP(B),O=[];if(s&&O.push(P[C]<=0),a&&O.push(P[B]<=0,P[L]<=0),O.every(function(e){return e})){A=S,E=!1;break}w.set(S,O)}if(E)for(var D=function(e){var t=v.find(function(t){var i=w.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},k=f?3:1;k>0;k--){if("break"===D(k))break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function tB(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function iB(e){return[YR,QR,JR,eP].some(function(t){return e[t]>=0})}var nB={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=QP(t,{elementContext:"reference"}),a=QP(t,{altBoundary:!0}),l=tB(o,n),c=tB(a,r,s),u=iB(l),h=iB(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};var rB={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,s=void 0===r?[0,0]:r,o=lP.reduce(function(e,i){return e[i]=function(e,t,i){var n=gP(e),r=[eP,YR].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[eP,QR].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,t.rects,s),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}};var sB={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=JP({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var oB={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,h=i.padding,d=i.tether,p=void 0===d||d,f=i.tetherOffset,m=void 0===f?0:f,g=QP(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),_=gP(t.placement),y=OP(t.placement),v=!y,x=MP(_),b=function(e){return"x"===e?"y":"x"}(x),w=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(w){if(s){var M,R="y"===x?YR:eP,P="y"===x?JR:QR,B="y"===x?"height":"width",L=w[x],O=L+g[R],D=L-g[P],k=p?-A[B]/2:0,F=y===nP?E[B]:A[B],N=y===nP?-A[B]:-E[B],z=t.elements.arrow,U=p&&z?bP(z):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=V[R],j=V[P],H=RP(0,E[B],U[B]),W=v?E[B]/2-k-H-G-S.mainAxis:F-H-G-S.mainAxis,$=v?-E[B]/2+k+H+j+S.mainAxis:N+H+j+S.mainAxis,q=t.elements.arrow&&IP(t.elements.arrow),X=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,Z=null!=(M=null==C?void 0:C[x])?M:0,K=L+$-Z,Y=RP(p?yP(O,L+W-Z-X):O,L,p?_P(D,K):D);w[x]=Y,I[x]=Y-L}if(a){var J,Q="x"===x?YR:eP,ee="x"===x?JR:QR,te=w[b],ie="y"===b?"height":"width",ne=te+g[Q],re=te-g[ee],se=-1!==[YR,eP].indexOf(_),oe=null!=(J=null==C?void 0:C[b])?J:0,ae=se?ne:te-E[ie]-A[ie]-oe+S.altAxis,le=se?te+E[ie]+A[ie]-oe-S.altAxis:re,ce=p&&se?function(e,t,i){var n=RP(e,t,i);return n>i?i:n}(ae,te,le):RP(p?ae:ne,te,p?le:re);w[b]=ce,I[b]=ce-te}t.modifiersData[n]=I}},requiresIfExists:["offset"]};function aB(e,t,i){void 0===i&&(i=!1);var n=pP(t),r=pP(t)&&function(e){var t=e.getBoundingClientRect(),i=vP(t.width)/e.offsetWidth||1,n=vP(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),s=TP(t),o=xP(e,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&(("body"!==uP(t)||$P(s))&&(a=function(e){return e!==hP(e)&&pP(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):HP(e)}(t)),pP(t)?((l=xP(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=WP(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function lB(e){var t=new Map,i=new Set,n=[];function r(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var n=t.get(e);n&&r(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||r(e)}),n}function cB(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}var uB={placement:"bottom",modifiers:[],strategy:"absolute"};function hB(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function dB(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,s=void 0===r?uB:r;return function(e,t,i){void 0===i&&(i=s);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},uB,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],a=!1,l={state:r,setOptions:function(i){var a="function"==typeof i?i(r.options):i;c(),r.options=Object.assign({},s,r.options,a),r.scrollParents={reference:dP(e)?XP(e):e.contextElement?XP(e.contextElement):[],popper:XP(t)};var u=function(e){var t=lB(e);return cP.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}(function(e){var t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,r.options.modifiers)));return r.orderedModifiers=u.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var a=s({state:r,name:t,instance:l,options:n}),c=function(){};o.push(a||c)}}),l.update()},forceUpdate:function(){if(!a){var e=r.elements,t=e.reference,i=e.popper;if(hB(t,i)){r.rects={reference:aB(t,IP(i),"fixed"===r.options.strategy),popper:bP(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var s=r.orderedModifiers[n],o=s.fn,c=s.options,u=void 0===c?{}:c,h=s.name;"function"==typeof o&&(r=o({state:r,options:u,name:h,instance:l})||r)}else r.reset=!1,n=-1}}},update:cB(function(){return new Promise(function(e){l.forceUpdate(),e(r)})}),destroy:function(){c(),a=!0}};if(!hB(e,t))return l;function c(){o.forEach(function(e){return e()}),o=[]}return l.setOptions(i).then(function(e){!a&&i.onFirstUpdate&&i.onFirstUpdate(e)}),l}}dB(),dB({defaultModifiers:[zP,sB,FP,mP]});var pB=dB({defaultModifiers:[zP,sB,FP,mP,rB,eB,oB,LP,nB]});const fB=hM({arrowOffset:{type:Number,default:5}}),mB=hM({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:lP,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),gB=hM({...mB,...fB,id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...HM(["ariaLabel"])}),_B={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},yB=(e,t=[])=>{const{placement:i,strategy:n,popperOptions:r}=e,s={placement:i,strategy:n,...r,modifiers:[...vB(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(s,null==r?void 0:r.modifiers),s};function vB(e){const{offset:t,gpuAcceleration:i,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:i}}]}const xB=(e,i,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements),i=hI(t.map(t=>[t,e.styles[t]||{}])),n=hI(t.map(t=>[t,e.attributes[t]]));return{styles:i,attributes:n}}(e);Object.assign(a.value,t)},requires:["computeStyles"]},s=t.computed(()=>{const{onFirstUpdate:e,placement:i,strategy:s,modifiers:o}=t.unref(n);return{onFirstUpdate:e,placement:i||"bottom",strategy:s||"absolute",modifiers:[...o||[],r,{name:"applyStyles",enabled:!1}]}}),o=t.shallowRef(),a=t.ref({styles:{popper:{position:t.unref(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return t.watch(s,e=>{const i=t.unref(o);i&&i.setOptions(e)},{deep:!0}),t.watch([e,i],([e,i])=>{l(),e&&i&&(o.value=pB(e,i,t.unref(s)))}),t.onBeforeUnmount(()=>{l()}),{state:t.computed(()=>{var e;return{...(null==(e=t.unref(o))?void 0:e.state)||{}}}),styles:t.computed(()=>t.unref(a).styles),attributes:t.computed(()=>t.unref(a).attributes),update:()=>{var e;return null==(e=t.unref(o))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=t.unref(o))?void 0:e.forceUpdate()},instanceRef:t.computed(()=>t.unref(o))}};const bB=e=>{const{popperInstanceRef:i,contentRef:n,triggerRef:r,role:s}=t.inject(hR,void 0),o=t.ref(),a=t.computed(()=>e.arrowOffset),l=t.computed(()=>({name:"eventListeners",enabled:!!e.visible})),c=t.computed(()=>{var e;const i=t.unref(o),n=null!=(e=t.unref(a))?e:0;return{name:"arrow",enabled:(r=i,!(void 0===r)),options:{element:i,padding:n}};var r}),u=t.computed(()=>({onFirstUpdate:()=>{m()},...yB(e,[t.unref(c),t.unref(l)])})),h=t.computed(()=>(e=>{if(PI)return kI(e)})(e.referenceEl)||t.unref(r)),{attributes:d,state:p,styles:f,update:m,forceUpdate:g,instanceRef:_}=xB(h,n,u);return t.watch(_,e=>i.value=e,{flush:"sync"}),t.onMounted(()=>{t.watch(()=>{var e,i;return null==(i=null==(e=t.unref(h))?void 0:e.getBoundingClientRect)?void 0:i.call(e)},()=>{m()})}),{attributes:d,arrowRef:o,contentRef:n,instanceRef:_,state:p,styles:f,role:s,forceUpdate:g,update:m}},wB=(e,{attributes:i,styles:n,role:r})=>{const{nextZIndex:s}=(()=>{const e=t.getCurrentInstance()?t.inject(iM,eM):eM,i=t.getCurrentInstance()?t.inject(nM,void 0):void 0,n=t.computed(()=>{const e=t.unref(i);return vI(e)?e:2e3}),r=t.computed(()=>n.value+tM.value);return!PI&&t.inject(iM),{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(e.current++,tM.value=e.current,r.value)}})(),o=kT("popper"),a=t.computed(()=>t.unref(i).popper),l=t.ref(vI(e.zIndex)?e.zIndex:s()),c=t.computed(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=t.computed(()=>[{zIndex:t.unref(l)},t.unref(n).popper,e.popperStyle||{}]);return{ariaModal:t.computed(()=>"dialog"===r.value?"false":void 0),arrowStyle:t.computed(()=>t.unref(n).arrow||{}),contentAttrs:a,contentClass:c,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=vI(e.zIndex)?e.zIndex:s()}}},EB=t.defineComponent({name:"ElPopperContent"}),AB=t.defineComponent({...EB,props:gB,emits:_B,setup(e,{expose:i,emit:n}){const r=e,{focusStartRef:s,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:h}=((e,i)=>{const n=t.ref(!1),r=t.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:e=>{var t;"pointer"!==(null==(t=e.detail)?void 0:t.focusReason)&&(r.value="first",i("blur"))},onFocusAfterTrapped:()=>{i("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,i("close")}}})(r,n),{attributes:d,arrowRef:p,contentRef:f,styles:m,instanceRef:g,role:_,update:y}=bB(r),{ariaModal:v,arrowStyle:x,contentAttrs:b,contentClass:w,contentStyle:E,updateZIndex:A}=wB(r,{styles:m,attributes:d,role:_}),T=t.inject(eR,void 0);let S;t.provide(dR,{arrowStyle:x,arrowRef:p}),T&&t.provide(eR,{...T,addInputId:FT,removeInputId:FT});const C=(e=!0)=>{y(),e&&A()},I=()=>{C(!1),r.visible&&r.focusOnShow?o.value=!0:!1===r.visible&&(o.value=!1)};return t.onMounted(()=>{t.watch(()=>r.triggerTargetEl,(e,i)=>{null==S||S(),S=void 0;const n=t.unref(e||f.value),s=t.unref(i||f.value);xI(n)&&(S=t.watch([_,()=>r.ariaLabel,v,()=>r.id],e=>{["role","aria-label","aria-modal","id"].forEach((t,i)=>{pI(e[i])?n.removeAttribute(t):n.setAttribute(t,e[i])})},{immediate:!0})),s!==n&&xI(s)&&["role","aria-label","aria-modal","id"].forEach(e=>{s.removeAttribute(e)})},{immediate:!0}),t.watch(()=>r.visible,I,{immediate:!0})}),t.onBeforeUnmount(()=>{null==S||S(),S=void 0}),i({popperContentRef:f,popperInstanceRef:g,updatePopper:C,contentStyle:E}),(e,i)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps({ref_key:"contentRef",ref:f},t.unref(b),{style:t.unref(E),class:t.unref(w),tabindex:"-1",onMouseenter:t=>e.$emit("mouseenter",t),onMouseleave:t=>e.$emit("mouseleave",t)}),[t.createVNode(t.unref(KR),{trapped:t.unref(o),"trap-on-focus-in":!0,"focus-trap-el":t.unref(f),"focus-start-el":t.unref(s),onFocusAfterTrapped:t.unref(l),onFocusAfterReleased:t.unref(a),onFocusin:t.unref(c),onFocusoutPrevented:t.unref(u),onReleaseRequested:t.unref(h)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var TB=yM(AB,[["__file","content.vue"]]);const SB=wM(gR),CB=Symbol("elTooltip"),IB=hM({to:{type:[String,Object],required:!0},disabled:Boolean}),MB=hM({...IM,...gB,appendTo:{type:IB.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...HM(["ariaLabel"])}),RB=hM({...vR,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[$R.enter,$R.numpadEnter,$R.space]},focusOnTarget:Boolean}),PB=uM({type:Boolean,default:null}),BB=uM({type:Function}),{useModelToggleProps:LB,useModelToggleEmits:OB,useModelToggle:DB}=(e=>{const i=`update:${e}`,n=`onUpdate:${e}`,r=[i];return{useModelToggle:({indicator:r,toggleReason:s,shouldHideWhenRouteChanges:o,shouldProceed:a,onShow:l,onHide:c})=>{const u=t.getCurrentInstance(),{emit:h}=u,d=u.props,p=t.computed(()=>VT(d[n])),f=t.computed(()=>null===d[e]),m=e=>{!0!==r.value&&(r.value=!0,s&&(s.value=e),VT(l)&&l(e))},g=e=>{!1!==r.value&&(r.value=!1,s&&(s.value=e),VT(c)&&c(e))},_=e=>{if(!0===d.disabled||VT(a)&&!a())return;const t=p.value&&PI;t&&h(i,!0),!f.value&&t||m(e)},y=e=>{if(!0===d.disabled||!PI)return;const t=p.value&&PI;t&&h(i,!1),!f.value&&t||g(e)},v=e=>{yI(e)&&(d.disabled&&e?p.value&&h(i,!1):r.value!==e&&(e?m():g()))};return t.watch(()=>d[e],v),o&&void 0!==u.appContext.config.globalProperties.$route&&t.watch(()=>({...u.proxy.$route}),()=>{o.value&&r.value&&y()}),t.onMounted(()=>{v(d[e])}),{hide:y,show:_,toggle:()=>{r.value?y():_()},hasUpdateHandler:p}},useModelToggleProps:{[e]:PB,[n]:BB},useModelToggleEmits:r}})("visible"),kB=hM({...fR,...LB,...MB,...RB,...fB,showArrow:{type:Boolean,default:!0}}),FB=[...OB,"before-show","before-hide","show","hide","open","close"],NB=(e,i,n)=>r=>{((e,t)=>UT(e)?e.includes(t):e===t)(t.unref(e),i)&&n(r)},zB=(e,t,{checkForDefaultPrevented:i=!0}={})=>n=>{const r=null==e?void 0:e(n);if(!1===i||!r)return null==t?void 0:t(n)},UB=t.defineComponent({name:"ElTooltipTrigger"}),VB=t.defineComponent({...UB,props:RB,setup(e,{expose:i}){const n=e,r=kT("tooltip"),{controlled:s,id:o,open:a,onOpen:l,onClose:c,onToggle:u}=t.inject(CB,void 0),h=t.ref(null),d=()=>{if(t.unref(s)||n.disabled)return!0},p=t.toRef(n,"trigger"),f=zB(d,NB(p,"hover",e=>{l(e),n.focusOnTarget&&e.target&&t.nextTick(()=>{lR(e.target,{preventScroll:!0})})})),m=zB(d,NB(p,"hover",c)),g=zB(d,NB(p,"click",e=>{0===e.button&&u(e)})),_=zB(d,NB(p,"focus",l)),y=zB(d,NB(p,"focus",c)),v=zB(d,NB(p,"contextmenu",e=>{e.preventDefault(),u(e)})),x=zB(d,e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),u(e))});return i({triggerRef:h}),(e,i)=>(t.openBlock(),t.createBlock(t.unref(TR),{id:t.unref(o),"virtual-ref":e.virtualRef,open:t.unref(a),"virtual-triggering":e.virtualTriggering,class:t.normalizeClass(t.unref(r).e("trigger")),onBlur:t.unref(y),onClick:t.unref(g),onContextmenu:t.unref(v),onFocus:t.unref(_),onMouseenter:t.unref(f),onMouseleave:t.unref(m),onKeydown:t.unref(x)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var GB=yM(VB,[["__file","trigger.vue"]]);const jB=wM(yM(t.defineComponent({__name:"teleport",props:IB,setup:e=>(e,i)=>e.disabled?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createBlock(t.Teleport,{key:1,to:e.to},[t.renderSlot(e.$slots,"default")],8,["to"]))}),[["__file","teleport.vue"]])),HB=()=>{const e=DT(),i=YM(),n=t.computed(()=>`${e.value}-popper-container-${i.prefix}`),r=t.computed(()=>`#${n.value}`);return{id:n,selector:r}},WB=()=>{const{id:e,selector:i}=HB();return t.onBeforeMount(()=>{PI&&(document.body.querySelector(i.value)||(e=>{const t=document.createElement("div");t.id=e,document.body.appendChild(t)})(e.value))}),{id:e,selector:i}},$B=t.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),qB=t.defineComponent({...$B,props:MB,setup(e,{expose:i}){const n=e,{selector:r}=HB(),s=kT("tooltip"),o=t.ref(),a=RI(()=>{var e;return null==(e=o.value)?void 0:e.popperContentRef});let l;const{controlled:c,id:u,open:h,trigger:d,onClose:p,onOpen:f,onShow:m,onHide:g,onBeforeShow:_,onBeforeHide:y}=t.inject(CB,void 0),v=t.computed(()=>n.transition||`${s.namespace.value}-fade-in-linear`),x=t.computed(()=>n.persistent);t.onBeforeUnmount(()=>{null==l||l()});const b=t.computed(()=>!!t.unref(x)||t.unref(h)),w=t.computed(()=>!n.disabled&&t.unref(h)),E=t.computed(()=>n.appendTo||r.value),A=t.computed(()=>{var e;return null!=(e=n.style)?e:{}}),T=t.ref(!0),S=()=>{g(),O()&&lR(document.body,{preventScroll:!0}),T.value=!0},C=()=>{if(t.unref(c))return!0},I=zB(C,()=>{n.enterable&&"hover"===t.unref(d)&&f()}),M=zB(C,()=>{"hover"===t.unref(d)&&p()}),R=()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.updatePopper)||t.call(e),null==_||_()},P=()=>{null==y||y()},B=()=>{m()},L=()=>{n.virtualTriggering||p()},O=e=>{var t;const i=null==(t=o.value)?void 0:t.popperContentRef,n=(null==e?void 0:e.relatedTarget)||document.activeElement;return null==i?void 0:i.contains(n)};return t.watch(()=>t.unref(h),e=>{e?(T.value=!1,l=function(e,t,i={}){const{window:n=FI,ignore:r=[],capture:s=!0,detectIframe:o=!1}=i;if(!n)return;LI&&!zI&&(zI=!0,Array.from(n.document.body.children).forEach(e=>e.addEventListener("click",BI)));let a=!0;const l=e=>r.some(t=>{if("string"==typeof t)return Array.from(n.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const i=kI(t);return i&&(e.target===i||e.composedPath().includes(i))}}),c=[NI(n,"click",i=>{const n=kI(e);n&&n!==i.target&&!i.composedPath().includes(n)&&(0===i.detail&&(a=!l(i)),a?t(i):a=!0)},{passive:!0,capture:s}),NI(n,"pointerdown",t=>{const i=kI(e);i&&(a=!t.composedPath().includes(i)&&!l(t))},{passive:!0}),o&&NI(n,"blur",i=>{var r;const s=kI(e);"IFRAME"!==(null==(r=n.document.activeElement)?void 0:r.tagName)||(null==s?void 0:s.contains(n.document.activeElement))||t(i)})].filter(Boolean);return()=>c.forEach(e=>e())}(a,()=>{if(t.unref(c))return;var e;(e=t.unref(d),e||0===e?UT(e)?e:[e]:[]).every(e=>"hover"!==e&&"focus"!==e)&&p()})):null==l||l()},{flush:"post"}),t.watch(()=>n.content,()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.updatePopper)||t.call(e)}),i({contentRef:o,isFocusInsideContent:O}),(e,i)=>(t.openBlock(),t.createBlock(t.unref(jB),{disabled:!e.teleported,to:t.unref(E)},{default:t.withCtx(()=>[t.unref(b)||!T.value?(t.openBlock(),t.createBlock(t.Transition,{key:0,name:t.unref(v),appear:!t.unref(x),onAfterLeave:S,onBeforeEnter:R,onAfterEnter:B,onBeforeLeave:P,persisted:""},{default:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(TB),t.mergeProps({id:t.unref(u),ref_key:"contentRef",ref:o},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":T.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,t.unref(A)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:t.unref(w),"z-index":e.zIndex,onMouseenter:t.unref(I),onMouseleave:t.unref(M),onBlur:L,onClose:t.unref(p)}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"]),[[t.vShow,t.unref(w)]])]),_:3},8,["name","appear"])):t.createCommentVNode("v-if",!0)]),_:3},8,["disabled","to"]))}});var XB=yM(qB,[["__file","content.vue"]]);const ZB=t.defineComponent({name:"ElTooltip"});const KB=wM(yM(t.defineComponent({...ZB,props:kB,emits:FB,setup(e,{expose:i,emit:n}){const r=e;WB();const s=kT("tooltip"),o=JM(),a=t.ref(),l=t.ref(),c=()=>{var e;const i=t.unref(a);i&&(null==(e=i.popperInstanceRef)||e.update())},u=t.ref(!1),h=t.ref(),{show:d,hide:p,hasUpdateHandler:f}=DB({indicator:u,toggleReason:h}),{onOpen:m,onClose:g}=(({showAfter:e,hideAfter:i,autoClose:n,open:r,close:s})=>{const{registerTimeout:o}=CM(),{registerTimeout:a,cancelTimeout:l}=CM();return{onOpen:i=>{o(()=>{r(i);const e=t.unref(n);vI(e)&&e>0&&a(()=>{s(i)},e)},t.unref(e))},onClose:e=>{l(),o(()=>{s(e)},t.unref(i))}}})({showAfter:t.toRef(r,"showAfter"),hideAfter:t.toRef(r,"hideAfter"),autoClose:t.toRef(r,"autoClose"),open:d,close:p}),_=t.computed(()=>yI(r.visible)&&!f.value),y=t.computed(()=>[s.b(),r.popperClass]);t.provide(CB,{controlled:_,id:o,open:t.readonly(u),trigger:t.toRef(r,"trigger"),onOpen:m,onClose:g,onToggle:e=>{t.unref(u)?g(e):m(e)},onShow:()=>{n("show",h.value)},onHide:()=>{n("hide",h.value)},onBeforeShow:()=>{n("before-show",h.value)},onBeforeHide:()=>{n("before-hide",h.value)},updatePopper:c}),t.watch(()=>r.disabled,e=>{e&&u.value&&(u.value=!1)});return t.onDeactivated(()=>u.value&&p()),i({popperRef:a,contentRef:l,isFocusInsideContent:e=>{var t;return null==(t=l.value)?void 0:t.isFocusInsideContent(e)},updatePopper:c,onOpen:m,onClose:g,hide:p}),(e,i)=>(t.openBlock(),t.createBlock(t.unref(SB),{ref_key:"popperRef",ref:a,role:e.role},{default:t.withCtx(()=>[t.createVNode(GB,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:t.withCtx(()=>[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),t.createVNode(XB,{ref_key:"contentRef",ref:l,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":t.unref(y),"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"content",{},()=>[e.rawContent?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,["innerHTML"])):(t.openBlock(),t.createElementBlock("span",{key:1},t.toDisplayString(e.content),1))]),e.showArrow?(t.openBlock(),t.createBlock(t.unref(yR),{key:0})):t.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}}),[["__file","tooltip.vue"]])),YB=({from:e,replacement:i,scope:n,version:r,ref:s,type:o="API"},a)=>{t.watch(()=>t.unref(a),e=>{},{immediate:!0})},JB={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:pM,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...HM(["ariaControls"])},QB={[mM]:e=>GT(e)||vI(e)||yI(e),change:e=>GT(e)||vI(e)||yI(e)},eL=Symbol("checkboxGroupContextKey"),tL=(e,{model:i,isLimitExceeded:n,hasOwnLabel:r,isDisabled:s,isLabeledByFormItem:o})=>{const a=t.inject(eL,void 0),{formItem:l}=tR(),{emit:c}=t.getCurrentInstance();function u(t){var i,n,r,s;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(n=null!=(i=e.trueValue)?i:e.trueLabel)||n:null!=(s=null!=(r=e.falseValue)?r:e.falseLabel)&&s}const h=t.computed(()=>(null==a?void 0:a.validateEvent)||e.validateEvent);return t.watch(()=>e.modelValue,()=>{h.value&&(null==l||l.validate("change").catch(e=>{}))}),{handleChange:function(e){if(n.value)return;const t=e.target;c(gM,u(t.checked),e)},onClickRoot:async function(a){if(!n.value&&!r.value&&!s.value&&o.value){a.composedPath().some(e=>"LABEL"===e.tagName)||(i.value=u([!1,e.falseValue,e.falseLabel].includes(i.value)),await t.nextTick(),function(e,t){c(gM,u(e),t)}(i.value,a))}}}},iL=(e,i)=>{const{formItem:n}=tR(),{model:r,isGroup:s,isLimitExceeded:o}=(e=>{const i=t.ref(!1),{emit:n}=t.getCurrentInstance(),r=t.inject(eL,void 0),s=t.computed(()=>!1===_I(r)),o=t.ref(!1),a=t.computed({get(){var t,n;return s.value?null==(t=null==r?void 0:r.modelValue)?void 0:t.value:null!=(n=e.modelValue)?n:i.value},set(e){var t,l;s.value&&UT(e)?(o.value=void 0!==(null==(t=null==r?void 0:r.max)?void 0:t.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>a.value.length,!1===o.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(mM,e),i.value=e)}});return{model:a,isGroup:s,isLimitExceeded:o}})(e),{isFocused:a,isChecked:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:h,actualValue:d}=((e,i,{model:n})=>{const r=t.inject(eL,void 0),s=t.ref(!1),o=t.computed(()=>bI(e.value)?e.label:e.value),a=t.computed(()=>{const i=n.value;return yI(i)?i:UT(i)?jT(o.value)?i.map(t.toRaw).some(e=>dI(e,o.value)):i.map(t.toRaw).includes(o.value):null!=i?i===e.trueValue||i===e.trueLabel:!!i});return{checkboxButtonSize:rR(t.computed(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}),{prop:!0}),isChecked:a,isFocused:s,checkboxSize:rR(t.computed(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),hasOwnLabel:t.computed(()=>!!i.default||!bI(o.value)),actualValue:o}})(e,i,{model:r}),{isDisabled:p}=(({model:e,isChecked:i})=>{const n=t.inject(eL,void 0),r=t.computed(()=>{var t,r;const s=null==(t=null==n?void 0:n.max)?void 0:t.value,o=null==(r=null==n?void 0:n.min)?void 0:r.value;return!_I(s)&&e.value.length>=s&&!i.value||!_I(o)&&e.value.length<=o&&i.value});return{isDisabled:sR(t.computed(()=>(null==n?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}})({model:r,isChecked:l}),{inputId:f,isLabeledByFormItem:m}=iR(e,{formItemContext:n,disableIdGeneration:h,disableIdManagement:s}),{handleChange:g,onClickRoot:_}=tL(e,{model:r,isLimitExceeded:o,hasOwnLabel:h,isDisabled:p,isLabeledByFormItem:m});var y,v;return e.checked&&(UT(r.value)&&!r.value.includes(d.value)?r.value.push(d.value):r.value=null==(v=null!=(y=e.trueValue)?y:e.trueLabel)||v),YB({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>s.value&&bI(e.value))),YB({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>!!e.trueLabel)),YB({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>!!e.falseLabel)),{inputId:f,isLabeledByFormItem:m,isChecked:l,isDisabled:p,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:h,model:r,actualValue:d,handleChange:g,onClickRoot:_}},nL=t.defineComponent({name:"ElCheckbox"});var rL=yM(t.defineComponent({...nL,props:JB,emits:QB,setup(e){const i=e,n=t.useSlots(),{inputId:r,isLabeledByFormItem:s,isChecked:o,isDisabled:a,isFocused:l,checkboxSize:c,hasOwnLabel:u,model:h,actualValue:d,handleChange:p,onClickRoot:f}=iL(i,n),m=kT("checkbox"),g=t.computed(()=>[m.b(),m.m(c.value),m.is("disabled",a.value),m.is("bordered",i.border),m.is("checked",o.value)]),_=t.computed(()=>[m.e("input"),m.is("disabled",a.value),m.is("checked",o.value),m.is("indeterminate",i.indeterminate),m.is("focus",l.value)]);return(e,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(!t.unref(u)&&t.unref(s)?"span":"label"),{class:t.normalizeClass(t.unref(g)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:t.unref(f)},{default:t.withCtx(()=>{var i,n,s,o;return[t.createElementVNode("span",{class:t.normalizeClass(t.unref(_))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(r),"onUpdate:modelValue":e=>t.isRef(h)?h.value=e:null,class:t.normalizeClass(t.unref(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:t.unref(a),"true-value":null==(n=null!=(i=e.trueValue)?i:e.trueLabel)||n,"false-value":null!=(o=null!=(s=e.falseValue)?s:e.falseLabel)&&o,onChange:t.unref(p),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(h)]]):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,id:t.unref(r),"onUpdate:modelValue":e=>t.isRef(h)?h.value=e:null,class:t.normalizeClass(t.unref(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:t.unref(a),value:t.unref(d),name:e.name,tabindex:e.tabindex,onChange:t.unref(p),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(h)]]),t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("inner"))},null,2)],2),t.unref(u)?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(t.unref(m).e("label"))},[t.renderSlot(e.$slots,"default"),e.$slots.default?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],2)):t.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}}),[["__file","checkbox.vue"]]);const sL=t.defineComponent({name:"ElCheckboxButton"});var oL=yM(t.defineComponent({...sL,props:JB,emits:QB,setup(e){const i=e,n=t.useSlots(),{isFocused:r,isChecked:s,isDisabled:o,checkboxButtonSize:a,model:l,actualValue:c,handleChange:u}=iL(i,n),h=t.inject(eL,void 0),d=kT("checkbox"),p=t.computed(()=>{var e,t,i,n;const r=null!=(t=null==(e=null==h?void 0:h.fill)?void 0:e.value)?t:"";return{backgroundColor:r,borderColor:r,color:null!=(n=null==(i=null==h?void 0:h.textColor)?void 0:i.value)?n:"",boxShadow:r?`-1px 0 0 0 ${r}`:void 0}}),f=t.computed(()=>[d.b("button"),d.bm("button",a.value),d.is("disabled",o.value),d.is("checked",s.value),d.is("focus",r.value)]);return(e,i)=>{var n,a,h,m;return t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(f))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":e=>t.isRef(l)?l.value=e:null,class:t.normalizeClass(t.unref(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:t.unref(o),"true-value":null==(a=null!=(n=e.trueValue)?n:e.trueLabel)||a,"false-value":null!=(m=null!=(h=e.falseValue)?h:e.falseLabel)&&m,onChange:t.unref(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(l)]]):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,"onUpdate:modelValue":e=>t.isRef(l)?l.value=e:null,class:t.normalizeClass(t.unref(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:t.unref(o),value:t.unref(c),onChange:t.unref(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(l)]]),e.$slots.default||e.label?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(t.unref(d).be("button","inner")),style:t.normalizeStyle(t.unref(s)?t.unref(p):void 0)},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],6)):t.createCommentVNode("v-if",!0)],2)}}}),[["__file","checkbox-button.vue"]]);const aL=hM({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:pM,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Array},props:{type:Object,default:()=>cL},...HM(["ariaLabel"])}),lL={[mM]:e=>UT(e),change:e=>UT(e)},cL={label:"label",value:"value",disabled:"disabled"},uL=t.defineComponent({name:"ElCheckboxGroup"});var hL=yM(t.defineComponent({...uL,props:aL,emits:lL,setup(e,{emit:i}){const n=e,r=kT("checkbox"),{formItem:s}=tR(),{inputId:o,isLabeledByFormItem:a}=iR(n,{formItemContext:s}),l=async e=>{i(mM,e),await t.nextTick(),i(gM,e)},c=t.computed({get:()=>n.modelValue,set(e){l(e)}}),u=t.computed(()=>({...cL,...n.props}));return t.provide(eL,{...gI(t.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),t.watch(()=>n.modelValue,(e,t)=>{n.validateEvent&&!dI(e,t)&&(null==s||s.validate("change").catch(e=>{}))}),(e,i)=>{var l;return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{id:t.unref(o),class:t.normalizeClass(t.unref(r).b("group")),role:"group","aria-label":t.unref(a)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":t.unref(a)?null==(l=t.unref(s))?void 0:l.labelId:void 0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(e,i)=>(t.openBlock(),t.createBlock(rL,t.mergeProps({key:i},(e=>{const t={label:e[u.value.label],value:e[u.value.value],disabled:e[u.value.disabled]};return{...e,...t}})(e)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),[["__file","checkbox-group.vue"]]);const dL=wM(rL,{CheckboxButton:oL,CheckboxGroup:hL});EM(oL),EM(hL);const pL=new Map;if(PI){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const i of pL.values())for(const{documentHandler:n}of i)n(t,e);e=void 0}})}function fL(e,t){let i=[];return UT(t.arg)?i=t.arg:xI(t.arg)&&i.push(t.arg),function(n,r){const s=t.instance.popperRef,o=n.target,a=null==r?void 0:r.target,l=!t||!t.instance,c=!o||!a,u=e.contains(o)||e.contains(a),h=e===o,d=i.length&&i.some(e=>null==e?void 0:e.contains(o))||i.length&&i.includes(a),p=s&&(s.contains(o)||s.contains(a));l||c||u||h||d||p||t.value(n,r)}}const mL={beforeMount(e,t){pL.has(e)||pL.set(e,[]),pL.get(e).push({documentHandler:fL(e,t),bindingFn:t.value})},updated(e,t){pL.has(e)||pL.set(e,[]);const i=pL.get(e),n=i.findIndex(e=>e.bindingFn===t.oldValue),r={documentHandler:fL(e,t),bindingFn:t.value};n>=0?i.splice(n,1,r):i.push(r)},unmounted(e){pL.delete(e)}},gL=t.defineComponent({name:"ElCollapseTransition"});const _L=wM(yM(t.defineComponent({...gL,setup(e){const i=kT("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},r={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"})},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){n(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(i).b()},t.toHandlers(r)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]]));var yL=yM(t.defineComponent({inheritAttrs:!1}),[["render",function(e,i,n,r,s,o){return t.renderSlot(e.$slots,"default")}],["__file","collection.vue"]]);var vL=yM(t.defineComponent({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,i,n,r,s,o){return t.renderSlot(e.$slots,"default")}],["__file","collection-item.vue"]]);const xL=hM({trigger:RB.trigger,triggerKeys:{type:Array,default:()=>[$R.enter,$R.numpadEnter,$R.space,$R.down]},effect:{...MB.effect,default:"light"},type:{type:String},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:pR,default:"menu"},buttonProps:{type:Object},teleported:MB.teleported,persistent:{type:Boolean,default:!0}});hM({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:FM}}),hM({onKeydown:{type:Function}}),(e=>{const i=`El${e}Collection`,n=`${i}Item`,r=Symbol(i),s=Symbol(n),o={...yL,name:i,setup(){const e=t.ref(),i=new Map;t.provide(r,{itemMap:i,getItems:()=>{const n=t.unref(e);if(!n)return[];const r=Array.from(n.querySelectorAll("[data-el-collection-item]"));return[...i.values()].sort((e,t)=>r.indexOf(e.ref)-r.indexOf(t.ref))},collectionRef:e})}},a={...vL,name:n,setup(e,{attrs:i}){const n=t.ref(),o=t.inject(r,void 0);t.provide(s,{collectionItemRef:n}),t.onMounted(()=>{const e=t.unref(n);e&&o.itemMap.set(e,{ref:e,...i})}),t.onBeforeUnmount(()=>{const e=t.unref(n);o.itemMap.delete(e)})}}})("Dropdown");const bL=t.defineComponent({name:"ImgEmpty"});var wL=yM(t.defineComponent({...bL,setup(e){const i=kT("empty"),n=JM();return(e,r)=>(t.openBlock(),t.createElementBlock("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`linearGradient-1-${t.unref(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),t.createElementVNode("linearGradient",{id:`linearGradient-2-${t.unref(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),t.createElementVNode("rect",{id:`path-3-${t.unref(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),t.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{transform:"translate(-1268.000000, -535.000000)"},[t.createElementVNode("g",{transform:"translate(1268.000000, 535.000000)"},[t.createElementVNode("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${t.unref(i).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),t.createElementVNode("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),t.createElementVNode("rect",{fill:`url(#linearGradient-1-${t.unref(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),t.createElementVNode("rect",{fill:`url(#linearGradient-2-${t.unref(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),t.createElementVNode("g",{transform:"translate(53.000000, 45.000000)"},[t.createElementVNode("use",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${t.unref(n)}`},null,8,["fill","xlink:href"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${t.unref(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}}),[["__file","img-empty.vue"]]);const EL=hM({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),AL=t.defineComponent({name:"ElEmpty"});const TL=wM(yM(t.defineComponent({...AL,props:EL,setup(e){const i=e,{t:n}=lM(),r=kT("empty"),s=t.computed(()=>i.description||n("el.table.emptyText")),o=t.computed(()=>({width:bM(i.imageSize)}));return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(r).b())},[t.createElementVNode("div",{class:t.normalizeClass(t.unref(r).e("image")),style:t.normalizeStyle(t.unref(o))},[e.image?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):t.renderSlot(e.$slots,"image",{key:1},()=>[t.createVNode(wL)])],6),t.createElementVNode("div",{class:t.normalizeClass(t.unref(r).e("description"))},[e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("p",{key:1},t.toDisplayString(t.unref(s)),1))],2),e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(r).e("bottom"))},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("v-if",!0)],2))}}),[["__file","empty.vue"]])),SL=Symbol("ElSelect"),CL=hM({trigger:RB.trigger,triggerKeys:RB.triggerKeys,placement:xL.placement,disabled:RB.disabled,visible:MB.visible,transition:MB.transition,popperOptions:xL.popperOptions,tabindex:xL.tabindex,content:MB.content,popperStyle:MB.popperStyle,popperClass:MB.popperClass,enterable:{...MB.enterable,default:!0},effect:{...MB.effect,default:"light"},teleported:MB.teleported,appendTo:MB.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),IL={"update:visible":e=>yI(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},ML=t.defineComponent({name:"ElPopover"}),RL=t.defineComponent({...ML,props:CL,emits:IL,setup(e,{expose:i,emit:n}){const r=e,s=t.computed(()=>r["onUpdate:visible"]),o=kT("popover"),a=t.ref(),l=t.computed(()=>{var e;return null==(e=t.unref(a))?void 0:e.popperRef}),c=t.computed(()=>[{width:bM(r.width)},r.popperStyle]),u=t.computed(()=>[o.b(),r.popperClass,{[o.m("plain")]:!!r.content}]),h=t.computed(()=>r.transition===`${o.namespace.value}-fade-in-linear`),d=()=>{n("before-enter")},p=()=>{n("before-leave")},f=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return i({popperRef:l,hide:()=>{var e;null==(e=a.value)||e.hide()}}),(e,i)=>(t.openBlock(),t.createBlock(t.unref(KB),t.mergeProps({ref_key:"tooltipRef",ref:a},e.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":t.unref(u),"popper-style":t.unref(c),teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":t.unref(h),"onUpdate:visible":t.unref(s),onBeforeShow:d,onBeforeHide:p,onShow:f,onHide:m}),{content:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(o).e("title")),role:"title"},t.toDisplayString(e.title),3)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.content),1)])]),default:t.withCtx(()=>[e.$slots.reference?t.renderSlot(e.$slots,"reference",{key:0}):t.createCommentVNode("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});const PL=(e,t)=>{const i=t.arg||t.value,n=null==i?void 0:i.popperRef;n&&(n.triggerRef=e)};var BL,LL;const OL=wM(yM(RL,[["__file","popover.vue"]]),{directive:(LL="popover",(BL={mounted(e,t){PL(e,t)},updated(e,t){PL(e,t)}}).install=e=>{e.directive(LL,BL)},BL)}),DL=hM({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:dM,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),kL=t.defineComponent({name:"ElText"});const FL=wM(yM(t.defineComponent({...kL,props:DL,setup(e){const i=e,n=t.ref(),r=rR(),s=kT("text"),o=t.computed(()=>[s.b(),s.m(i.type),s.m(r.value),s.is("truncated",i.truncated),s.is("line-clamp",!_I(i.lineClamp))]),a=()=>{var e,r,s,o,a,l,c;if(t.useAttrs().title)return;let u=!1;const h=(null==(e=n.value)?void 0:e.textContent)||"";if(i.truncated){const e=null==(r=n.value)?void 0:r.offsetWidth,t=null==(s=n.value)?void 0:s.scrollWidth;e&&t&&t>e&&(u=!0)}else if(!_I(i.lineClamp)){const e=null==(o=n.value)?void 0:o.offsetHeight,t=null==(a=n.value)?void 0:a.scrollHeight;e&&t&&t>e&&(u=!0)}u?null==(l=n.value)||l.setAttribute("title",h):null==(c=n.value)||c.removeAttribute("title")};return t.onMounted(a),t.onUpdated(a),(e,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{ref_key:"textRef",ref:n,class:t.normalizeClass(t.unref(o)),style:t.normalizeStyle({"-webkit-line-clamp":e.lineClamp})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["class","style"]))}}),[["__file","text.vue"]])),NL="$treeNodeId",zL=function(e,t){t&&!t[NL]&&Object.defineProperty(t,NL,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},UL=(e,t)=>null==t?void 0:t[e||NL],VL=(e,t,i)=>{const n=e.value.currentNode;i();const r=e.value.currentNode;n!==r&&t("current-change",r?r.data:null,r)},jL=e=>{let t=!0,i=!0,n=!0;for(let r=0,s=e.length;r<s;r++){const s=e[r];(!0!==s.checked||s.indeterminate)&&(t=!1,s.disabled||(n=!1)),(!1!==s.checked||s.indeterminate)&&(i=!1)}return{all:t,none:i,allWithoutDisable:n,half:!t&&!i}},HL=function(e){if(0===e.childNodes.length||e.loading)return;const{all:t,none:i,half:n}=jL(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):n?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);const r=e.parent;r&&0!==r.level&&(e.store.checkStrictly||HL(r))},WL=function(e,t){const i=e.store.props,n=e.data||{},r=i[t];if(VT(r))return r(n,e);if(GT(r))return n[r];if(_I(r)){const e=n[t];return _I(e)?"":e}},$L=function(e,t){e.forEach(e=>{e.canFocus=t,$L(e.childNodes,t)})};let qL=0;class XL{constructor(e){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=qL++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const t in e)zT(e,t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var e;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const i=t.props;if(i&&void 0!==i.isLeaf){const e=WL(this,"isLeaf");yI(e)&&(this.isLeafByUser=e)}if(!0!==t.lazy&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),UT(this.data)||zL(this,this.data),!this.data)return;const n=t.defaultExpandedKeys,r=t.key;r&&!pI(this.key)&&n&&n.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&void 0!==t.currentNodeKey&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),1!==this.level&&!0!==(null==(e=this.parent)?void 0:e.expanded)||(this.canFocus=!0)}setData(e){let t;UT(e)||zL(this,e),this.data=e,this.childNodes=[],t=0===this.level&&UT(this.data)?this.data:WL(this,"children")||[];for(let i=0,n=t.length;i<n;i++)this.insertChild({data:t[i]})}get label(){return WL(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return WL(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some(i=>i===e||t&&i.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,i,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof XL)){if(!n){const t=this.getChildren(!0);(null==t?void 0:t.includes(e.data))||(_I(i)||i<0?null==t||t.push(e.data):null==t||t.splice(i,0,e.data))}Object.assign(e,{parent:this,store:this.store}),(e=t.reactive(new XL(e)))instanceof XL&&e.initialize()}e.level=this.level+1,_I(i)||i<0?this.childNodes.push(e):this.childNodes.splice(i,0,e),this.updateLeafState()}insertBefore(e,t){let i;t&&(i=this.childNodes.indexOf(t)),this.insertChild(e,i)}insertAfter(e,t){let i;t&&(i=this.childNodes.indexOf(t),-1!==i&&(i+=1)),this.insertChild(e,i)}removeChild(e){const t=this.getChildren()||[],i=t.indexOf(e.data);i>-1&&t.splice(i,1);const n=this.childNodes.indexOf(e);n>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(n,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let i=0;i<this.childNodes.length;i++)if(this.childNodes[i].data===e){t=this.childNodes[i];break}t&&this.removeChild(t)}expand(e,t){const i=()=>{if(t){let e=this.parent;for(;e&&e.level>0;)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),$L(this.childNodes,!0)};this.shouldLoadData()?this.loadData(e=>{UT(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||HL(this),i())}):i()}doCreateChildren(e,t={}){e.forEach(e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)})}collapse(){this.expanded=!1,$L(this.childNodes,!1)}shouldLoadData(){return Boolean(!0===this.store.lazy&&this.store.load&&!this.loaded)}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,i,n){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:i,allWithoutDisable:r}=jL(this.childNodes);this.isLeaf||i||!r||(this.checked=!1,e=!1);const s=()=>{if(t){const i=this.childNodes;for(let o=0,a=i.length;o<a;o++){const r=i[o];n=n||!1!==e;const s=r.disabled?r.checked:n;r.setChecked(s,t,!0,n)}const{half:r,all:s}=jL(i);s||(this.checked=s,this.indeterminate=r)}};if(this.shouldLoadData())return void this.loadData(()=>{s(),HL(this)},{checked:!1!==e});s()}const r=this.parent;r&&0!==r.level&&(i||HL(r))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const i=this.store.props;let n="children";return i&&(n=i.children||"children"),_I(t[n])&&(t[n]=null),e&&!t[n]&&(t[n]=[]),t[n]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map(e=>e.data),i={},n=[];e.forEach((e,r)=>{const s=e[NL];!!s&&t.findIndex(e=>(null==e?void 0:e[NL])===s)>=0?i[s]={index:r,data:e}:n.push({index:r,data:e})}),this.store.lazy||t.forEach(e=>{i[null==e?void 0:e[NL]]||this.removeChildByData(e)}),n.forEach(({index:e,data:t})=>{this.insertChild({data:t},e)}),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const i=i=>{this.childNodes=[],this.doCreateChildren(i,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,i)},n=()=>{this.loading=!1};this.store.load(this,i,n)}}eachNode(e){const t=[this];for(;t.length;){const i=t.shift();t.unshift(...i.childNodes),e(i)}}reInitChecked(){this.store.checkStrictly||HL(this)}}class ZL{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)zT(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new XL({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){(0,this.load)(this.root,e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()},FT)}else this._initDefaultCheckedNodes()}filter(e){const i=this.filterNodeMethod,n=this.lazy,r=async function(s){const o=s.root?s.root.childNodes:s.childNodes;for(const[n,a]of o.entries())a.visible=!!(null==i?void 0:i.call(a,e,a.data,a)),n%80==0&&n>0&&await t.nextTick(),await r(a);if(!s.visible&&o.length){let e=!0;e=!o.some(e=>e.visible),s.root?s.root.visible=!1===e:s.visible=!1===e}e&&s.visible&&!s.isLeaf&&(n&&!s.loaded||s.expand())};r(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof XL)return e;const t=jT(e)?UL(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var i;const n=this.getNode(t);null==(i=n.parent)||i.insertBefore({data:e},n)}insertAfter(e,t){var i;const n=this.getNode(t);null==(i=n.parent)||i.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const i=bI(t)?this.root:this.getNode(t);i&&i.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(e=>{const i=t[e];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!pI(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;pI(t)||(this.nodesMap[t]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){this.key&&e&&e.data&&(e.childNodes.forEach(e=>{this.deregisterNode(e)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const i=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(r=>{(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&i.push(r.data),n(r)})};return n(this),i}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(e=>(e||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(i=>{i.indeterminate&&e.push(i.data),t(i)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const i in t)zT(t,i)&&e.push(t[i]);return e}updateChildren(e,t){const i=this.nodesMap[e];if(!i)return;const n=i.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];this.remove(e.data)}for(let r=0,s=t.length;r<s;r++){const e=t[r];this.append(e,i.data)}}_setCheckedKeys(e,t=!1,i){const n=this._getAllNodes().sort((e,t)=>e.level-t.level),r=Object.create(null),s=Object.keys(i);n.forEach(e=>e.setChecked(!1,!1));const o=t=>{t.childNodes.forEach(t=>{var i;r[t.data[e]]=!0,(null==(i=t.childNodes)?void 0:i.length)&&o(t)})};for(let a=0,l=n.length;a<l;a++){const i=n[a],l=i.data[e].toString();if(s.includes(l)){if(i.childNodes.length&&o(i),i.isLeaf||this.checkStrictly)i.setChecked(!0,!1);else if(i.setChecked(!0,!0),t){i.setChecked(!1,!1);const e=function(t){t.childNodes.forEach(t=>{t.isLeaf||t.setChecked(!1,!1),e(t)})};e(i)}}else i.checked&&!r[l]&&i.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const i=this.key,n={};e.forEach(e=>{n[(e||{})[i]]=!0}),this._setCheckedKeys(i,t,n)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const i=this.key,n={};e.forEach(e=>{n[e]=!0}),this._setCheckedKeys(i,t,n)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)})}setChecked(e,t,i){const n=this.getNode(e);n&&n.setChecked(!!t,i)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var i;const n=e[this.key],r=this.nodesMap[n];this.setCurrentNode(r),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0))}setCurrentNodeKey(e,t=!0){var i;if(this.currentNodeKey=e,bI(e))return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0)))}}const KL="RootTree",YL="NodeInstance",JL="TreeNodeMap";var QL=yM(t.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const i=kT("tree"),n=t.inject(YL),r=t.inject(KL);return()=>{const s=e.node,{data:o,store:a}=s;return e.renderContent?e.renderContent(t.h,{_self:n,node:s,data:o,store:a}):t.renderSlot(r.ctx.slots,"default",{node:s,data:o},()=>[t.h(FL,{tag:"span",truncated:!0,class:i.be("node","label")},()=>[s.label])])}}}),[["__file","tree-node-content.vue"]]);function eO(e){const i=t.inject(JL,null),n={treeNodeExpand:t=>{var i;e.node!==t&&(null==(i=e.node)||i.collapse())},children:[]};return i&&i.children.push(n),t.provide(JL,n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const tO=Symbol("dragEvents");function iO({props:e,ctx:i,el$:n,dropIndicator$:r,store:s}){const o=kT("tree"),a=t.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return t.provide(tO,{treeNodeDragStart:({event:t,treeNode:n})=>{if(t.dataTransfer){if(VT(e.allowDrag)&&!e.allowDrag(n.node))return t.preventDefault(),!1;t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain","")}catch(cr){}a.value.draggingNode=n,i.emit("node-drag-start",n.node,t)}},treeNodeDragOver:({event:t,treeNode:s})=>{if(!t.dataTransfer)return;const l=s,c=a.value.dropNode;c&&c.node.id!==l.node.id&&xM(c.$el,o.is("drop-inner"));const u=a.value.draggingNode;if(!u||!l)return;let h=!0,d=!0,p=!0,f=!0;VT(e.allowDrop)&&(h=e.allowDrop(u.node,l.node,"prev"),f=d=e.allowDrop(u.node,l.node,"inner"),p=e.allowDrop(u.node,l.node,"next")),t.dataTransfer.dropEffect=d||h||p?"move":"none",(h||d||p)&&(null==c?void 0:c.node.id)!==l.node.id&&(c&&i.emit("node-drag-leave",u.node,c.node,t),i.emit("node-drag-enter",u.node,l.node,t)),a.value.dropNode=h||d||p?l:null,l.node.nextSibling===u.node&&(p=!1),l.node.previousSibling===u.node&&(h=!1),l.node.contains(u.node,!1)&&(d=!1),(u.node===l.node||u.node.contains(l.node))&&(h=!1,d=!1,p=!1);const m=l.$el,g=m.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),_=n.value.getBoundingClientRect();let y;const v=h?d?.25:p?.45:1:-1,x=p?d?.75:h?.55:0:1;let b=-9999;const w=t.clientY-g.top;y=w<g.height*v?"before":w>g.height*x?"after":d?"inner":"none";const E=m.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),A=r.value;var T,S;"before"===y?b=E.top-_.top:"after"===y&&(b=E.bottom-_.top),A.style.top=`${b}px`,A.style.left=E.right-_.left+"px","inner"===y?(T=m,S=o.is("drop-inner"),T&&S.trim()&&T.classList.add(...vM(S))):xM(m,o.is("drop-inner")),a.value.showDropIndicator="before"===y||"after"===y,a.value.allowDrop=a.value.showDropIndicator||f,a.value.dropType=y,i.emit("node-drag-over",u.node,l.node,t)},treeNodeDragEnd:e=>{var t,n;const{draggingNode:r,dropType:l,dropNode:c}=a.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),(null==r?void 0:r.node.data)&&c){const a={data:r.node.data};"none"!==l&&r.node.remove(),"before"===l?null==(t=c.node.parent)||t.insertBefore(a,c.node):"after"===l?null==(n=c.node.parent)||n.insertAfter(a,c.node):"inner"===l&&c.node.insertChild(a),"none"!==l&&(s.value.registerNode(a),s.value.key&&r.node.eachNode(e=>{var t;null==(t=s.value.nodesMap[e.data[s.value.key]])||t.setChecked(e.checked,!s.value.checkStrictly)})),xM(c.$el,o.is("drop-inner")),i.emit("node-drag-end",r.node,c.node,l,e),"none"!==l&&i.emit("node-drop",r.node,c.node,l,e)}r&&!c&&i.emit("node-drag-end",r.node,null,l,e),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const nO=t.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_L,ElCheckbox:dL,NodeContent:QL,ElIcon:SM,Loading:OM},props:{node:{type:XL,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,i){const n=kT("tree"),{broadcastExpanded:r}=eO(e),s=t.inject(KL),o=t.ref(!1),a=t.ref(!1),l=t.ref(),c=t.ref(),u=t.ref(),h=t.inject(tO),d=t.getCurrentInstance();t.provide(YL,d),e.node.expanded&&(o.value=!0,a.value=!0);const p=s.props.props.children||"children";t.watch(()=>{var t;const i=null==(t=e.node.data)?void 0:t[p];return i&&[...i]},()=>{e.node.updateChildren()}),t.watch(()=>e.node.indeterminate,t=>{m(e.node.checked,t)}),t.watch(()=>e.node.checked,t=>{m(t,e.node.indeterminate)}),t.watch(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),t.watch(()=>e.node.expanded,e=>{t.nextTick(()=>o.value=e),e&&(a.value=!0)});const f=e=>UL(s.props.nodeKey,e.data),m=(t,i)=>{l.value===t&&c.value===i||s.ctx.emit("check-change",e.node.data,t,i),l.value=t,c.value=i},g=()=>{e.node.isLeaf||(o.value?(s.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand(()=>{i.emit("node-expand",e.node.data,e.node,d)}))},_=i=>{e.node.setChecked(i,!(null==s?void 0:s.props.checkStrictly)),t.nextTick(()=>{const t=s.store.value;s.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:s,expanded:o,childNodeRendered:a,oldChecked:l,oldIndeterminate:c,getNodeKey:f,getNodeClass:t=>{const i=e.props.class;if(!i)return{};let n;if(VT(i)){const{data:e}=t;n=i(e,t)}else n=i;return GT(n)?{[n]:!0}:n},handleSelectChange:m,handleClick:t=>{VL(s.store,s.ctx.emit,()=>{var t;if(null==(t=null==s?void 0:s.props)?void 0:t.nodeKey){const t=f(e.node);s.store.value.setCurrentNodeKey(t)}else s.store.value.setCurrentNode(e.node)}),s.currentNode.value=e.node,s.props.expandOnClickNode&&g(),(s.props.checkOnClickNode||e.node.isLeaf&&s.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&_(!e.node.checked),s.ctx.emit("node-click",e.node.data,e.node,d,t)},handleContextMenu:t=>{var i;(null==(i=s.instance.vnode.props)?void 0:i.onNodeContextmenu)&&(t.stopPropagation(),t.preventDefault()),s.ctx.emit("node-contextmenu",t,e.node.data,e.node,d)},handleExpandIconClick:g,handleCheckChange:_,handleChildNodeExpand:(e,t,i)=>{r(t),s.ctx.emit("node-expand",e,t,i)},handleDragStart:t=>{s.props.draggable&&h.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{t.preventDefault(),s.props.draggable&&h.treeNodeDragOver({event:t,treeNode:{$el:u.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{s.props.draggable&&h.treeNodeDragEnd(e)},CaretRight:RM}}});var rO=yM(nO,[["render",function(e,i,n,r,s,o){const a=t.resolveComponent("el-icon"),l=t.resolveComponent("el-checkbox"),c=t.resolveComponent("loading"),u=t.resolveComponent("node-content"),h=t.resolveComponent("el-tree-node"),d=t.resolveComponent("el-collapse-transition");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"node$",class:t.normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t.withModifiers(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:t.withModifiers(e.handleDragStart,["stop"]),onDragover:t.withModifiers(e.handleDragOver,["stop"]),onDragend:t.withModifiers(e.handleDragEnd,["stop"]),onDrop:t.withModifiers(e.handleDrop,["stop"])},[t.createElementVNode("div",{class:t.normalizeClass(e.ns.be("node","content")),style:t.normalizeStyle({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:t.withModifiers(e.handleExpandIconClick,["stop"])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):t.createCommentVNode("v-if",!0),e.showCheckbox?(t.openBlock(),t.createBlock(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t.withModifiers(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):t.createCommentVNode("v-if",!0),e.node.loading?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:t.withCtx(()=>[t.createVNode(c)]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),t.createVNode(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),t.createVNode(d,null,{default:t.withCtx(()=>[!e.renderAfterExpand||e.childNodeRendered?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t.withModifiers(()=>{},["stop"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.node.childNodes,i=>(t.openBlock(),t.createBlock(h,{key:e.getNodeKey(i),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:i,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[t.vShow,e.expanded]]):t.createCommentVNode("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[t.vShow,e.node.visible]])}],["__file","tree-node.vue"]]);const sO=wM(yM(t.defineComponent({name:"ElTree",components:{ElTreeNode:rO},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:{type:Function},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:Function},allowDrop:{type:Function},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:FM}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,i){const{t:n}=lM(),r=kT("tree"),s=t.inject(SL,null),o=t.ref(new ZL({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const a=t.ref(o.value.root),l=t.ref(null),c=t.ref(null),u=t.ref(null),{broadcastExpanded:h}=eO(e),{dragState:d}=iO({props:e,ctx:i,el$:c,dropIndicator$:u,store:o});!function({el$:e},i){const n=kT("tree");function r(e,t){var n,r;const s=i.value.getNode(e[t].dataset.key);return s.canFocus&&s.visible&&((null==(n=s.parent)?void 0:n.expanded)||0===(null==(r=s.parent)?void 0:r.level))}t.onMounted(()=>{s()}),t.onUpdated(()=>{Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")})}),NI(e,"keydown",t=>{const i=t.target;if(!i.className.includes(n.b("node")))return;const s=t.code,o=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a=o.indexOf(i);let l;if([$R.up,$R.down].includes(s)){if(t.preventDefault(),s===$R.up){l=-1===a?0:0!==a?a-1:o.length-1;const e=l;for(;!r(o,l);){if(l--,l===e){l=-1;break}l<0&&(l=o.length-1)}}else{l=-1===a?0:a<o.length-1?a+1:0;const e=l;for(;!r(o,l);){if(l++,l===e){l=-1;break}l>=o.length&&(l=0)}}-1!==l&&o[l].focus()}[$R.left,$R.right].includes(s)&&(t.preventDefault(),i.click());const c=i.querySelector('[type="checkbox"]');[$R.enter,$R.numpadEnter,$R.space].includes(s)&&c&&(t.preventDefault(),c.click())});const s=()=>{var t;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")});const r=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);r.length?r[0].setAttribute("tabindex","0"):null==(t=i[0])||t.setAttribute("tabindex","0")}}({el$:c},o);const p=t.computed(()=>{const{childNodes:e}=a.value,t=!!s&&0!==s.hasFilteredOptions;return(!e||0===e.length||e.every(({visible:e})=>!e))&&!t});t.watch(()=>e.currentNodeKey,e=>{o.value.setCurrentNodeKey(null!=e?e:null)}),t.watch(()=>e.defaultCheckedKeys,(e,t)=>{dI(e,t)||o.value.setDefaultCheckedKey(null!=e?e:[])}),t.watch(()=>e.defaultExpandedKeys,e=>{o.value.setDefaultExpandedKeys(null!=e?e:[])}),t.watch(()=>e.data,e=>{o.value.setData(e)},{deep:!0}),t.watch(()=>e.checkStrictly,e=>{o.value.checkStrictly=e});const f=()=>{const e=o.value.getCurrentNode();return e?e.data:null};return t.provide(KL,{ctx:i,props:e,store:o,root:a,currentNode:l,instance:t.getCurrentInstance()}),t.provide(eR,void 0),{ns:r,store:o,root:a,currentNode:l,dragState:d,el$:c,dropIndicator$:u,isEmpty:p,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(t)},getNodeKey:t=>UL(e.nodeKey,t.data),getNodePath:t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const i=o.value.getNode(t);if(!i)return[];const n=[i.data];let r=i.parent;for(;r&&r!==a.value;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:(e,t)=>o.value.getCheckedNodes(e,t),getCheckedKeys:e=>o.value.getCheckedKeys(e),getCurrentNode:f,getCurrentKey:()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=f();return t?t[e.nodeKey]:null},setCheckedNodes:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(t,i)},setCheckedKeys:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(t,i)},setChecked:(e,t,i)=>{o.value.setChecked(e,t,i)},getHalfCheckedNodes:()=>o.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>o.value.getHalfCheckedKeys(),setCurrentNode:(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");VL(o,i.emit,()=>{h(t),o.value.setUserCurrentNode(t,n)})},setCurrentKey:(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");VL(o,i.emit,()=>{h(),o.value.setCurrentNodeKey(null!=t?t:null,n)})},t:n,getNode:e=>o.value.getNode(e),remove:e=>{o.value.remove(e)},append:(e,t)=>{o.value.append(e,t)},insertBefore:(e,t)=>{o.value.insertBefore(e,t)},insertAfter:(e,t)=>{o.value.insertAfter(e,t)},handleNodeExpand:(e,t,n)=>{h(t),i.emit("node-expand",e,t,n)},updateKeyChildren:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(t,i)}}}}),[["render",function(e,i,n,r,s,o){const a=t.resolveComponent("el-tree-node");return t.openBlock(),t.createElementBlock("div",{ref:"el$",class:t.normalizeClass([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.root.childNodes,i=>(t.openBlock(),t.createBlock(a,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.e("empty-block"))},[t.renderSlot(e.$slots,"empty",{},()=>{var i;return[t.createElementVNode("span",{class:t.normalizeClass(e.ns.e("empty-text"))},t.toDisplayString(null!=(i=e.emptyText)?i:e.t("el.tree.emptyText")),3)]})],2)):t.createCommentVNode("v-if",!0),t.withDirectives(t.createElementVNode("div",{ref:"dropIndicator$",class:t.normalizeClass(e.ns.e("drop-indicator"))},null,2),[[t.vShow,e.dragState.showDropIndicator]])],2)}],["__file","tree.vue"]])),oO={class:"gismap-layer"},aO={class:"gismap-layer-title"},lO={class:"gismap-layer-search"},cO={class:"gismap-layer-tree-node"},uO={class:"gismap-layer-tree-node-icon"},hO=["src"],dO={key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pO={class:"gismap-layer-tree-node-label"},fO={class:"gismap-layer-tree-empty"},mO=t.defineComponent({name:"MapLayer",props:{title:{type:String,default:"资源管理"},maxHeight:{type:Number,default:void 0},data:{type:Array,default:()=>[]}},setup(e){const i=e,n=t.inject("map"),r=t.ref(),s=t.ref(i.maxHeight||n?.getContainer().clientHeight||0),o=t.ref(""),a=t.ref([]),l=t.ref([]);n?.on("resize",()=>{i.maxHeight||(s.value=n?.getContainer().clientHeight||0)});const c=(e,{checkedKeys:t})=>{xT([e],e=>{const i=t.includes(e.id);e.layers&&e.layers.length>0&&(i?n?.manager.layerManager.addGroupLayer(e):n?.manager.layerManager.removeGroupLayer(e))})},u=(e,t)=>!e||t.title.includes(e),h=e=>{const t=[],i=[];xT(e,e=>{e.checked&&(n?.manager.layerManager.addGroupLayer(e),i.push(e.id)),e.expand&&t.push(e.id),e.sourceInit&&e.source&&n?.manager.layerManager.addSource(e.source)}),a.value=t,l.value=i};return t.watch(()=>i.data,e=>{h(e)}),t.watch(o,e=>{r.value.filter(e)}),t.onMounted(()=>{h(i.data)}),(i,n)=>{const h=SM;return t.openBlock(),t.createElementBlock("div",oO,[t.createElementVNode("div",aO,t.toDisplayString(e.title),1),t.createElementVNode("div",lO,[t.createVNode(t.unref(uR),{class:"gismap-layer-search-input",placeholder:"请输入名称",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{prefix:t.withCtx(()=>[t.createVNode(h,null,{default:t.withCtx(()=>[t.createVNode(t.unref(DM))]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",{class:"gismap-layer-content no-scrollbar",style:t.normalizeStyle({maxHeight:s.value-400+"px"})},[t.createVNode(t.unref(sO),{ref_key:"treeRef",ref:r,data:e.data,props:{label:"title"},"show-checkbox":"","node-key":"id","default-expanded-keys":a.value,"default-checked-keys":l.value,onCheck:c,"filter-node-method":u},{default:t.withCtx(({node:e,data:i})=>[t.createElementVNode("div",cO,[t.createElementVNode("span",uO,[i.icon&&""!=i.icon?(t.openBlock(),t.createElementBlock("img",{key:0,src:"assets/icons/"+i.icon,height:"16"},null,8,hO)):(t.openBlock(),t.createElementBlock("svg",dO,[...n[1]||(n[1]=[t.createElementVNode("rect",{width:"16",height:"16",rx:"2",fill:"#f5f5f5",stroke:"#e0e0e0","stroke-width":"1"},null,-1),t.createElementVNode("path",{d:"M4 0V16M8 0V16M12 0V16M0 4H16M0 8H16M0 12H16",stroke:"#e0e0e0","stroke-width":"0.5"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"8",r:"3",stroke:"#999999","stroke-width":"1.0",fill:"none"},null,-1),t.createElementVNode("path",{d:"M11 11l2 2",stroke:"#999999","stroke-width":"1.0"},null,-1)])]))]),t.createElementVNode("span",pO,t.toDisplayString(e.label),1)])]),empty:t.withCtx(()=>[t.createElementVNode("div",fO,[t.createVNode(t.unref(TL),{description:"暂无数据","image-size":50})])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])],4)])}}}),gO={class:"gismap-legend"},_O={class:"gismap-legend-title"},yO={class:"gismap-legend-content"},vO={class:"gismap-legend-item"},xO={class:"gismap-legend-item-text"},bO=t.defineComponent({name:"MapLegend",props:{title:{type:String,default:"图例"}},setup(e){const i=t.ref(!0),n=t.ref([]),r=()=>{i.value=!i.value};return(s,o)=>{const a=SM;return t.withDirectives((t.openBlock(),t.createElementBlock("div",gO,[t.createElementVNode("div",_O,[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("span",{class:t.normalizeClass(["toggle",{expanded:i.value}]),onClick:r},[t.createVNode(a,null,{default:t.withCtx(()=>[t.createVNode(t.unref(MM))]),_:1})],2)]),t.withDirectives(t.createElementVNode("div",yO,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,e=>(t.openBlock(),t.createElementBlock("div",{key:e.id},[t.createElementVNode("div",vO,[t.createElementVNode("div",{class:"gismap-legend-item-icon",style:t.normalizeStyle({"background-image":`url(${e.legend})`})},null,4),t.createElementVNode("div",xO,t.toDisplayString(e.name),1)])]))),128))],512),[[t.vShow,i.value]])],512)),[[t.vShow,n.value.length>0]])}}}),wO=t.defineComponent({name:"MapTools",props:{data:{type:Array,default:()=>[]}},setup:e=>(e,t)=>null}),EO={class:"gismap-switch"},AO={key:0,class:"gismap-switch-extensions"},TO=["onClick"],SO={class:"gismap-switch-item-icon"},CO={class:"gismap-switch-item-text"},IO={class:"gismap-switch-layers"},MO=["onClick"],RO={class:"gismap-switch-item-text"},PO={key:1,class:"gismap-switch-extensions"},BO=["onClick"],LO={class:"gismap-switch-item-icon"},OO={class:"gismap-switch-item-text"},DO=t.defineComponent({name:"MapSwitch",props:{data:{type:Object,default:()=>({layers:[],extensions:[]})},extensionsPosition:{type:String,default:"left"}},setup(e){const i=e,n=t.inject("map"),r=t.ref(""),s=e=>{if(r.value!==e.name)switch((e=>{switch(e){case"tdt-vec":n?.manager?.tdtManager.removeVecLayer();break;case"tdt-img":n?.manager?.tdtManager.removeImgLayer()}})(r.value),r.value=e.name,e.name){case"tdt-vec":n?.manager?.tdtManager.addVecLayer(uT.layerPolygonId);break;case"tdt-img":n?.manager?.tdtManager.addImgLayer(uT.layerPolygonId);break;default:n?.pubsub.emit(`switch:${e.name}`,e)}},o=(e,t)=>{switch("click"===e&&(t.checked=!t.checked),t.name){case"tdt-cia":t.checked?n?.manager?.tdtManager.addCiaLayer(uT.layerPointId):n?.manager?.tdtManager.removeCiaLayer();break;case"terrain":t.checked?n?.manager?.terrainManager.add(t?.config||{}):n?.manager?.terrainManager.remove();break;default:n?.pubsub.emit(`switch:click:${t.name}`,{checked:t.checked,data:t})}};return t.onMounted(()=>{i.data.layers.forEach(e=>{e.checked&&(s(e),r.value=e.name)}),i.data.extensions.forEach(e=>{e.checked&&o("check",e)})}),(i,n)=>{const a=dL;return t.openBlock(),t.createElementBlock("div",EO,[t.renderSlot(i.$slots,"left"),"left"===e.extensionsPosition?(t.openBlock(),t.createElementBlock("div",AO,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.extensions,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t.withModifiers(t=>o("click",e),["stop"])},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:e.checked}])},[t.createElementVNode("span",SO,[t.createVNode(a,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,disabled:!0,onChange:t=>o("change",e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),t.createElementVNode("span",CO,t.toDisplayString(e.label),1)],2)],8,TO))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",IO,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.layers,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t=>s(e)},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:r.value===e.name}])},[t.createElementVNode("span",{class:t.normalizeClass(["gismap-switch-item-icon",e.iconName])},null,2),t.createElementVNode("span",RO,t.toDisplayString(e.label),1)],2)],8,MO))),128))]),"right"===e.extensionsPosition?(t.openBlock(),t.createElementBlock("div",PO,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.extensions,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t.withModifiers(t=>o("click",e),["stop"])},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:e.checked}])},[t.createElementVNode("span",LO,[t.createVNode(a,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,disabled:!0,onChange:t=>o("change",e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),t.createElementVNode("span",OO,t.toDisplayString(e.label),1)],2)],8,BO))),128))])):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"right")])}}}),kO=t.defineComponent({name:"MapCompass",setup(e){const i=t.inject("map");let n=t.ref(i?.getBearing()||0),r=t.ref(i?.getPitch()||0);const s=()=>{i?.resetNorthPitch()};return t.onMounted(()=>{i?.on("rotate",e=>{n.value=e.target.getBearing()}),i?.on("pitch",e=>{let t=e.target.getPitch();const i=e.target.getBearing()*Math.cos(t*Math.PI/180);r.value=i})}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-compass",onClick:s},[(t.openBlock(),t.createElementBlock("svg",{class:"compass",style:t.normalizeStyle({transformStyle:"preserve-3d",transform:`rotate(${-t.unref(n)}deg)`}),viewBox:"0 0 100 100"},[...i[0]||(i[0]=[t.createStaticVNode('<circle cx="50" cy="50" r="45" fill="rgba(0, 0, 0, 0.01)" stroke="#333" stroke-width="3"></circle><text x="50" y="20" text-anchor="middle" font-size="12" font-weight="bold"> N </text><text x="80" y="50" text-anchor="middle" font-size="12" font-weight="bold"> E </text><text x="50" y="85" text-anchor="middle" font-size="12" font-weight="bold"> S </text><text x="20" y="50" text-anchor="middle" font-size="12" font-weight="bold"> W </text><g class="needle"><polygon points="50,25 53,50 50,35 47,50" fill="#ff3333"></polygon><circle cx="50" cy="50" r="5" fill="#333"></circle></g>',6)])],4))]))}}),FO={class:"gismap-popupbar"};const NO=((e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i})({name:"GisMapPopupBar"},[["render",function(e,i,n,r,s,o){return t.openBlock(),t.createElementBlock("div",FO,[t.renderSlot(e.$slots,"default")])}]]),zO=t.defineComponent({name:"GisMapPopupBarItem",props:{iconName:{type:String,default:""},placement:{type:String,default:"left"},visible:{type:Boolean,default:!1},width:{type:Number,default:260}},setup(e){const i=e,n=t.ref(i.visible);return(i,r)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(OL),{trigger:"manual",placement:e.placement,width:e.width,visible:n.value,"onUpdate:visible":r[2]||(r[2]=e=>n.value=e),onClick:r[3]||(r[3]=t.withModifiers(()=>{},["prevent"]))},{reference:t.withCtx(()=>[t.renderSlot(i.$slots,"btn",{},()=>[t.createElementVNode("div",{class:"gis-map-popup-bar-item",onClick:r[0]||(r[0]=e=>n.value=!n.value)},[t.createElementVNode("span",{class:t.normalizeClass(["icon",e.iconName])},null,2)])])]),default:t.withCtx(()=>[t.createElementVNode("div",{class:"popover-content",onClick:r[1]||(r[1]=t.withModifiers(()=>{},["prevent"]))},[t.renderSlot(i.$slots,"default")])]),_:3},8,["placement","width","visible"])),[[t.unref(mL),n.value=!0]])}}),UO={class:"map-layout"},VO=t.defineComponent({name:"MapPage",props:{mapViewData:{type:Object,default:()=>{}},switchData:{type:Object,default:()=>[]},layerData:{type:Array,default:()=>[]},toolsData:{type:Array,default:()=>[]}},emits:["load"],setup(e,{emit:i}){const n=e,r=i,s=t.reactive({mapViewData:n.mapViewData||{center:[120.35826594964023,30.10842454359468]},switchData:n.switchData||{},layerData:n.layerData||[],toolsData:n.toolsData||[]});let o;const a=e=>{o=e,o.manager.fogManager.setFog(),r("load",o)};return t.watch(()=>n.mapViewData,e=>{s.mapViewData=e}),t.watch(()=>n.switchData,e=>{s.switchData=e}),t.watch(()=>n.layerData,e=>{s.layerData=e}),t.watch(()=>n.toolsData,e=>{s.toolsData=e}),(e,i)=>(t.openBlock(),t.createElementBlock("div",UO,[t.createVNode(t.unref(PT),{options:s.mapViewData,onLoad:a},{"top-left":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-top-left"),t.createVNode(t.unref(wO),{data:s.toolsData},null,8,["data"]),t.renderSlot(e.$slots,"top-left")]),"top-right":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-top-right"),t.createVNode(t.unref(NO),null,{default:t.withCtx(()=>[t.createVNode(t.unref(zO),{iconName:"layer",visible:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(mO),{data:s.layerData},null,8,["data"])]),_:1})]),_:1}),t.renderSlot(e.$slots,"top-right")]),"bottom-left":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-bottom-left"),t.createVNode(t.unref(bO)),t.renderSlot(e.$slots,"bottom-left")]),"bottom-right":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-bottom-right"),t.createVNode(t.unref(DO),{data:s.switchData},null,8,["data"]),t.renderSlot(e.$slots,"bottom-right")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["options"])]))}});e.GisMapCompass=kO,e.GisMapLayer=mO,e.GisMapLegend=bO,e.GisMapPopupBar=NO,e.GisMapPopupBarItem=zO,e.GisMapSwitch=DO,e.GisMapTools=wO,e.GisMapView=PT,e.GsMap=l,e.MapPage=VO,e.MarkerLayer=class{map;markers=new Map;constructor(e){this.map=e}add(e){const t={...e},i=new s.Marker(t);i.setLngLat(e.lngLat),i.addTo(this.map),this.markers.set(e.id,i)}remove(e){const t=this.markers.get(e);t&&t.remove(),this.markers.delete(e)}clear(){this.markers.forEach(e=>{e.remove()}),this.markers.clear()}},e.Tile3DLayer=class{layerId=Math.random().toString(36);map;layer;deckOverlay;constructor(e){return this.map=e,this}add(e){if(e.id&&(this.layerId=e.id),!e.data)throw new Error("3D瓦片图层数据不能为空");const t=new lT({id:this.layerId,name:this.layerId,data:e.data,coordinateSystem:Ec.LNGLAT,loader:sT,extruded:!0,parameter:{depthTest:!0,polygonOffset:[1,1]},pickable:e.pickable||!1,_meshOpt:{useInstancing:!1},opacity:e.opacity||1,loadOptions:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!0,skipLevelOfDetail:!0,maximumMemoryUsage:1024,isTileset:"auto",assetGltfUpAxis:null}},onTilesetError:e=>{},onTilesetLoad:t=>{const i=e.transform||{translateX:0,translateY:0};t.modelMatrix.translate([i.translateX,i.translateY,0])}});this.deckOverlay=new Gg({interleaved:!0,parameters:{blend:!0},layers:[t]}),this.map.addControl(this.deckOverlay),this.layer=t}setVisible(e=!0){this.map.getLayer(this.layerId)&&(e?this.map.setLayoutProperty(this.layerId,"visibility","visible"):this.map.setLayoutProperty(this.layerId,"visibility","none"))}setOpacity(e){if(this.map.getLayer(this.layerId)){if(!this.deckOverlay)return;const t=this.deckOverlay.props.layers.map(t=>t.id===this.layerId?t.clone({opacity:e}):t);this.deckOverlay.setProps({layers:t})}}remove(){this.deckOverlay&&this.map.removeControl(this.deckOverlay)}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|